	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_irq_kms_init            ## -- Begin function radeon_irq_kms_init
	.p2align	4, 0x90
_radeon_irq_kms_init:                   ## @radeon_irq_kms_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	addq	$32, %rdi
	movq	_radeon_hotplug_work_func@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	28(%rbx), %rdi
	movq	_r600_audio_update_hdmi@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	8(%rbx), %rdi
	callq	_spin_lock_init
	movl	12(%rbx), %edi
	movl	24(%rbx), %esi
	callq	_drm_vblank_init
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movl	$0, (%rbx)
	movq	%rbx, %rdi
	callq	_radeon_msi_ok
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	20(%rbx), %edi
	callq	_pci_enable_msi
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	$1, (%rbx)
	movl	16(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
LBB0_4:
	movl	$1, 4(%rbx)
	movl	12(%rbx), %edi
	callq	_drm_irq_install
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	$0, 4(%rbx)
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_INFO
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_radeon_hotplug_work_func,4,2   ## @radeon_hotplug_work_func
	.comm	_r600_audio_update_hdmi,4,2     ## @r600_audio_update_hdmi
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"radeon: using MSI.\n"

L_.str.1:                               ## @.str.1
	.asciz	"radeon: irq initialized.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_irq_kms_init            ; -- Begin function radeon_irq_kms_init
	.p2align	2
_radeon_irq_kms_init:                   ; @radeon_irq_kms_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, x0, #32
Lloh0:
	adrp	x8, _radeon_hotplug_work_func@GOTPAGE
Lloh1:
	ldr	x8, [x8, _radeon_hotplug_work_func@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #28
Lloh3:
	adrp	x8, _r600_audio_update_hdmi@GOTPAGE
Lloh4:
	ldr	x8, [x8, _r600_audio_update_hdmi@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #8
	bl	_spin_lock_init
	ldr	w0, [x19, #12]
	ldr	w1, [x19, #24]
	bl	_drm_vblank_init
	cbnz	w0, LBB0_7
; %bb.1:
	str	wzr, [x19]
	mov	x0, x19
	bl	_radeon_msi_ok
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x19, #20]
	bl	_pci_enable_msi
	cbnz	w0, LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x19]
	ldr	w0, [x19, #16]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
LBB0_4:
	mov	w8, #1
	str	w8, [x19, #4]
	ldr	w0, [x19, #12]
	bl	_drm_irq_install
	cbz	w0, LBB0_6
; %bb.5:
	str	wzr, [x19, #4]
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_INFO
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_radeon_hotplug_work_func,4,2   ; @radeon_hotplug_work_func
	.comm	_r600_audio_update_hdmi,4,2     ; @r600_audio_update_hdmi
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"radeon: using MSI.\n"

l_.str.1:                               ; @.str.1
	.asciz	"radeon: irq initialized.\n"

.subsections_via_symbols
