	.file	"extr_nouveau_dma.c_READ_GET.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	READ_GET, @function
READ_GET:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rsi, QWORD PTR 24[rdi]
	mov	edi, DWORD PTR 16[rdi]
	call	nv_ro32@PLT
	mov	rsi, QWORD PTR 8[rbx]
	mov	ebp, eax
	test	rsi, rsi
	jne	.L15
.L2:
	cmp	DWORD PTR 0[r13], ebp
	je	.L3
	mov	DWORD PTR 0[r13], ebp
	mov	DWORD PTR [r12], 1
.L4:
	mov	eax, DWORD PTR [rbx]
	cmp	eax, ebp
	jg	.L7
	mov	edx, DWORD PTR 4[rbx]
	mov	ecx, ebp
	sub	ecx, eax
	lea	edx, [rax+rdx*4]
	mov	eax, ecx
	sar	eax, 2
	cmp	edx, ebp
	jl	.L7
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	eax, DWORD PTR [r12]
	add	eax, 1
	mov	DWORD PTR [r12], eax
	test	al, al
	jne	.L4
	mov	edi, 1
	call	udelay@PLT
	mov	eax, DWORD PTR EBUSY[rip]
	neg	eax
	cmp	DWORD PTR [r12], 100000
	jle	.L4
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	edi, DWORD PTR 16[rbx]
	call	nv_ro32@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	READ_GET, .-READ_GET
	.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_nouveau_dma.c_READ_GET.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	READ_GET, %function
READ_GET:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	mov	r5, r1
	ldr	r1, [r0, #16]
	ldr	r0, [r0, #12]
	mov	r7, r2
	bl	nv_ro32
	ldr	r1, [r6, #8]
	mov	r4, r0
	cmp	r1, #0
	bne	.L14
.L2:
	ldr	r3, [r5]
	cmp	r3, r4
	beq	.L3
	mov	r3, #1
	str	r4, [r5]
	str	r3, [r7]
.L4:
	ldr	r3, [r6]
	cmp	r3, r4
	bgt	.L7
	ldr	r2, [r6, #4]
	add	r2, r3, r2, lsl #2
	cmp	r2, r4
	blt	.L7
	sub	r0, r4, r3
	asr	r0, r0, #2
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r3, .L15
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	ldr	r3, [r7]
	add	r3, r3, #1
	tst	r3, #255
	str	r3, [r7]
	bne	.L4
	mov	r0, #1
	bl	udelay
	ldr	r2, [r7]
	ldr	r3, .L15+4
	cmp	r2, r3
	ble	.L4
	ldr	r3, .L15+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	ldr	r0, [r6, #12]
	bl	nv_ro32
	b	.L2
.L16:
	.align	2
.L15:
	.word	EINVAL
	.word	100000
	.word	EBUSY
	.size	READ_GET, .-READ_GET
	.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
