	.file	"extr_radeon_irq.c_radeon_driver_irq_postinstall.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	radeon_driver_irq_postinstall
	.type	radeon_driver_irq_postinstall, @function
radeon_driver_irq_postinstall:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	esi, esi
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbx, QWORD PTR 8[rdi]
	lea	rdi, 8[rbx]
	call	atomic_set@PLT
	lea	rdi, 4[rbx]
	call	DRM_INIT_WAITQUEUE@PLT
	mov	eax, DWORD PTR [rbx]
	and	eax, DWORD PTR RADEON_FAMILY_MASK[rip]
	mov	DWORD PTR 0[rbp], 2097151
	cmp	eax, DWORD PTR CHIP_R600[rip]
	jge	.L2
	mov	esi, DWORD PTR RADEON_SW_INT_ENABLE[rip]
	mov	edx, 1
	mov	rdi, rbp
	call	radeon_irq_set_state@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_driver_irq_postinstall, .-radeon_driver_irq_postinstall
	.comm	RADEON_SW_INT_ENABLE,4,4
	.comm	RADEON_FAMILY_MASK,4,4
	.comm	CHIP_R600,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_driver_irq_postinstall.c"
	.text
	.align	2
	.global	radeon_driver_irq_postinstall
	.syntax unified
	.arm
	.fpu softvfp
	.type	radeon_driver_irq_postinstall, %function
radeon_driver_irq_postinstall:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r5, [r0, #4]
	mov	r1, #0
	add	r0, r5, #8
	bl	atomic_set
	add	r0, r5, #4
	bl	DRM_INIT_WAITQUEUE
	ldr	r1, .L5
	ldr	r2, .L5+4
	ldr	r0, [r1]
	ldr	r3, [r5]
	ldr	r1, [r2]
	and	r3, r3, r0
	ldr	r2, .L5+8
	cmp	r3, r1
	str	r2, [r4]
	bge	.L2
	ldr	r3, .L5+12
	mov	r0, r4
	mov	r2, #1
	ldr	r1, [r3]
	bl	radeon_irq_set_state
.L2:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L6:
	.align	2
.L5:
	.word	RADEON_FAMILY_MASK
	.word	CHIP_R600
	.word	2097151
	.word	RADEON_SW_INT_ENABLE
	.size	radeon_driver_irq_postinstall, .-radeon_driver_irq_postinstall
	.comm	RADEON_SW_INT_ENABLE,4,4
	.comm	RADEON_FAMILY_MASK,4,4
	.comm	CHIP_R600,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
