	.file	"extr_mga_state.c_mga_dma_iload.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"\n"
	.text
	.p2align 4
	.type	mga_dma_iload, @function
mga_dma_iload:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r13, QWORD PTR 8[rdi]
	mov	rbx, rsi
	mov	r14, QWORD PTR [rdi]
	lea	rdi, .LC0[rip]
	call	DRM_DEBUG@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	LOCK_TEST_WITH_RETURN@PLT
	mov	rax, QWORD PTR [rbx]
	cmp	rax, QWORD PTR 0[r13]
	jbe	.L2
.L6:
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdx, QWORD PTR 8[r13]
	mov	esi, DWORD PTR 12[rbx]
	mov	rdi, r14
	mov	r12, QWORD PTR [rdx+rax*8]
	mov	edx, DWORD PTR 8[rbx]
	call	mga_verify_iload@PLT
	test	rax, rax
	jne	.L8
	mov	rdi, r14
	call	WRAP_TEST_WITH_RETURN@PLT
	mov	edx, DWORD PTR 12[rbx]
	mov	ecx, DWORD PTR 8[rbx]
	mov	rsi, r12
	mov	rdi, rbp
	call	mga_dma_dispatch_iload@PLT
	mov	rax, QWORD PTR [r14]
	mov	edx, DWORD PTR MGA_UPLOAD_CONTEXT[rip]
	or	DWORD PTR [rax], edx
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rsi, r12
	mov	rdi, rbp
	call	mga_freelist_put@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	mga_dma_iload, .-mga_dma_iload
	.comm	MGA_UPLOAD_CONTEXT,4,4
	.comm	MGA_DMA_DEBUG,8,8
	.comm	EINVAL,4,4
	.comm	EBUSY,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_iload.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mga_dma_iload, %function
mga_dma_iload:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r2
	mov	r4, r0
	mov	r5, r1
	ldr	r7, [r0, #4]
	ldr	r0, .L9
	ldr	r8, [r4]
	bl	DRM_DEBUG
	mov	r1, r6
	mov	r0, r4
	bl	LOCK_TEST_WITH_RETURN
	ldr	r2, [r7]
	ldr	r3, [r5]
	cmp	r3, r2
	bls	.L2
.L6:
	ldr	r3, .L9+4
	ldr	r6, [r3]
	rsb	r6, r6, #0
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	ip, [r7, #4]
	mov	r0, r8
	ldr	r2, [r5, #4]
	ldr	r1, [r5, #8]
	ldr	r7, [ip, r3, lsl #2]
	bl	mga_verify_iload
	subs	r6, r0, #0
	bne	.L8
	mov	r0, r8
	bl	WRAP_TEST_WITH_RETURN
	mov	r1, r7
	ldr	r3, [r5, #4]
	ldr	r2, [r5, #8]
	mov	r0, r4
	bl	mga_dma_dispatch_iload
	ldr	r2, [r8]
	ldr	r1, .L9+8
	ldr	r3, [r2]
	ldr	r1, [r1]
	mov	r0, r6
	orr	r3, r3, r1
	str	r3, [r2]
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	mov	r1, r7
	mov	r0, r4
	bl	mga_freelist_put
	b	.L6
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	EINVAL
	.word	MGA_UPLOAD_CONTEXT
	.size	mga_dma_iload, .-mga_dma_iload
	.comm	MGA_UPLOAD_CONTEXT,4,4
	.comm	MGA_DMA_DEBUG,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
