	.file	"extr_radeon_irq.c_radeon_wait_irq.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	radeon_wait_irq, @function
radeon_wait_irq:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbp, QWORD PTR [rdi]
	mov	edi, DWORD PTR RADEON_LAST_SWI_REG[rip]
	call	RADEON_READ@PLT
	cmp	eax, ebx
	jge	.L2
	mov	eax, DWORD PTR RADEON_BOX_WAIT_IDLE[rip]
	or	DWORD PTR 4[rbp], eax
	mov	edi, DWORD PTR RADEON_LAST_SWI_REG[rip]
	call	RADEON_READ@PLT
	xor	ecx, ecx
	mov	esi, DWORD PTR 0[rbp]
	cmp	eax, ebx
	mov	eax, DWORD PTR DRM_HZ[rip]
	setge	cl
	xor	edi, edi
	lea	edx, [rax+rax*2]
	call	DRM_WAIT_ON@PLT
.L2:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	radeon_wait_irq, .-radeon_wait_irq
	.comm	RADEON_LAST_SWI_REG,4,4
	.comm	RADEON_BOX_WAIT_IDLE,4,4
	.comm	DRM_HZ,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_radeon_irq.c_radeon_wait_irq.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	radeon_wait_irq, %function
radeon_wait_irq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L5
	ldr	r6, [r0]
	ldr	r0, [r5]
	mov	r4, r1
	bl	RADEON_READ
	cmp	r0, r4
	bge	.L2
	ldr	r2, .L5+4
	ldr	r3, [r6, #4]
	ldr	r1, [r2]
	ldr	r2, .L5+8
	orr	r3, r3, r1
	ldr	r2, [r2]
	str	r3, [r6, #4]
	ldr	r0, [r5]
	ldr	r6, [r6]
	add	r5, r2, r2, lsl #1
	bl	RADEON_READ
	cmp	r0, r4
	mov	r2, r5
	mov	r1, r6
	movlt	r3, #0
	movge	r3, #1
	mov	r0, #0
	bl	DRM_WAIT_ON
.L2:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L6:
	.align	2
.L5:
	.word	RADEON_LAST_SWI_REG
	.word	RADEON_BOX_WAIT_IDLE
	.word	DRM_HZ
	.size	radeon_wait_irq, .-radeon_wait_irq
	.comm	RADEON_LAST_SWI_REG,4,4
	.comm	RADEON_BOX_WAIT_IDLE,4,4
	.comm	DRM_HZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
