	.file	"extr_mga_state.c_mga_dma_dispatch_vertex.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"buf=%d used=%d\n"
	.text
	.p2align 4
	.type	mga_dma_dispatch_vertex, @function
mga_dma_dispatch_vertex:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r12, QWORD PTR [rsi]
	mov	rbx, QWORD PTR [rdi]
	mov	rax, QWORD PTR 24[rsi]
	mov	r14d, DWORD PTR 20[rsi]
	mov	QWORD PTR 8[rsp], rdi
	lea	rdi, .LC0[rip]
	mov	esi, DWORD PTR 16[rsi]
	mov	rdx, r12
	mov	r13, QWORD PTR 8[rbx]
	mov	QWORD PTR [rsp], rax
	call	DRM_DEBUG@PLT
	cmp	QWORD PTR 0[rbp], 0
	jne	.L2
.L7:
	mov	rax, QWORD PTR [rsp]
	cmp	QWORD PTR 8[rax], 0
	jne	.L11
.L4:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	FLUSH_DMA@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR [rsp]
	mov	esi, DWORD PTR 16[r13]
	mov	rdi, rbx
	add	r12d, r14d
	xor	r15d, r15d
	mov	DWORD PTR [rax], 1
	call	MGA_EMIT_STATE@PLT
	mov	ecx, DWORD PTR 0[r13]
	test	ecx, ecx
	jg	.L8
.L5:
	mov	edi, 1
	add	r15, 1
	call	BEGIN_DMA@PLT
	mov	eax, DWORD PTR [rbx]
	mov	edi, DWORD PTR MGA_DMAPAD[rip]
	xor	ecx, ecx
	mov	r9d, DWORD PTR MGA_DMA_VERTEX[rip]
	mov	r8d, DWORD PTR MGA_SECADDRESS[rip]
	xor	esi, esi
	or	eax, r12d
	mov	edx, edi
	push	rax
	.cfi_def_cfa_offset 88
	mov	eax, DWORD PTR MGA_SECEND[rip]
	or	r9d, r14d
	push	rax
	.cfi_def_cfa_offset 96
	call	DMA_BLOCK@PLT
	xor	eax, eax
	call	ADVANCE_DMA@PLT
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	cmp	DWORD PTR 0[r13], r15d
	jle	.L7
.L8:
	mov	rax, QWORD PTR 8[r13]
	mov	rdi, rbx
	lea	rsi, [rax+r15*4]
	call	mga_emit_clip_rect@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rbx, QWORD PTR [rsp]
	mov	rdi, rbx
	call	AGE_BUFFER@PLT
	mov	QWORD PTR 8[rbp], 0
	mov	rdi, QWORD PTR 8[rsp]
	mov	rsi, rbp
	mov	QWORD PTR 0[rbp], 0
	mov	DWORD PTR [rbx], 0
	call	mga_freelist_put@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	mga_dma_dispatch_vertex, .-mga_dma_dispatch_vertex
	.comm	MGA_SECEND,4,4
	.comm	MGA_SECADDRESS,4,4
	.comm	MGA_DMA_VERTEX,4,4
	.comm	MGA_DMAPAD,4,4
	.comm	DMA_LOCALS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_mga_state.c_mga_dma_dispatch_vertex.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"buf=%d used=%d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mga_dma_dispatch_vertex, %function
mga_dma_dispatch_vertex:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r1
	ldr	r3, [r5, #16]
	sub	sp, sp, #44
	ldr	r2, [r1]
	ldr	r6, [r0]
	str	r3, [sp, #28]
	ldr	r3, [r5, #12]
	str	r0, [sp, #32]
	ldr	r1, [r1, #8]
	ldr	r0, .L13
	str	r2, [sp, #20]
	str	r3, [sp, #24]
	ldr	r7, [r6, #4]
	bl	DRM_DEBUG
	ldr	r3, [r5]
	ldr	r2, [sp, #20]
	cmp	r3, #0
	bne	.L2
.L7:
	ldr	r3, [sp, #28]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L11
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	FLUSH_DMA
.L2:
	mov	r3, #1
	str	r2, [sp, #20]
	ldr	r2, [sp, #28]
	ldr	r1, [r7, #8]
	str	r3, [r2]
	mov	r0, r6
	bl	MGA_EMIT_STATE
	ldr	r1, [sp, #24]
	ldr	r2, [sp, #20]
	str	r5, [sp, #36]
	add	r2, r1, r2
	mov	r4, #0
	mov	r5, r2
	ldr	fp, .L13+4
	ldr	r3, [r7]
	ldr	r10, .L13+8
	ldr	r9, .L13+12
	ldr	r8, .L13+16
	b	.L6
.L5:
	mov	r0, #1
	bl	BEGIN_DMA
	mov	r3, #0
	ldr	r2, [fp]
	ldr	r1, [r9]
	str	r2, [sp, #20]
	ldr	r2, [sp, #24]
	ldr	r0, [r6]
	ldr	lr, [r10]
	ldr	ip, [r8]
	orr	r1, r2, r1
	ldr	r2, [sp, #20]
	orr	r0, r5, r0
	str	r0, [sp, #12]
	str	r1, [sp, #4]
	mov	r0, r2
	mov	r1, r3
	str	lr, [sp, #8]
	str	ip, [sp]
	bl	DMA_BLOCK
	bl	ADVANCE_DMA
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L12
.L6:
	cmp	r4, r3
	bge	.L5
	ldr	r1, [r7, #4]
	mov	r0, r6
	add	r1, r1, r4, lsl #2
	bl	mga_emit_clip_rect
	b	.L5
.L11:
	ldr	r4, [sp, #28]
	mov	r0, r4
	bl	AGE_BUFFER
	mov	r3, #0
	mov	r1, r5
	str	r3, [r5, #4]
	str	r3, [r5]
	ldr	r0, [sp, #32]
	str	r3, [r4]
	bl	mga_freelist_put
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	FLUSH_DMA
.L12:
	ldr	r5, [sp, #36]
	b	.L7
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	MGA_DMAPAD
	.word	MGA_SECEND
	.word	MGA_DMA_VERTEX
	.word	MGA_SECADDRESS
	.size	mga_dma_dispatch_vertex, .-mga_dma_dispatch_vertex
	.comm	MGA_SECEND,4,4
	.comm	MGA_SECADDRESS,4,4
	.comm	MGA_DMA_VERTEX,4,4
	.comm	MGA_DMAPAD,4,4
	.comm	DMA_LOCALS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
