	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qxl_irq_init                   ## -- Begin function qxl_irq_init
	.p2align	4, 0x90
_qxl_irq_init:                          ## @qxl_irq_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	addq	$52, %rdi
	callq	_init_waitqueue_head
	leaq	48(%rbx), %rdi
	callq	_init_waitqueue_head
	leaq	44(%rbx), %rdi
	callq	_init_waitqueue_head
	leaq	40(%rbx), %rdi
	movq	_qxl_client_monitors_config_work_func@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	36(%rbx), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	32(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	28(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	24(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	$0, 16(%rbx)
	leaq	8(%rbx), %rdi
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	callq	_drm_irq_install
	movl	%eax, %r15d
	movq	_QXL_INTERRUPT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	xorl	%edi, %edi
	testl	%r15d, %r15d
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_DRM_ERROR
	movl	$1, %r14d
LBB0_2:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qxl_client_monitors_config_work_func,4,2 ## @qxl_client_monitors_config_work_func
	.comm	_QXL_INTERRUPT_MASK,4,2         ## @QXL_INTERRUPT_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed installing irq: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qxl_irq_init                   ; -- Begin function qxl_irq_init
	.p2align	2
_qxl_irq_init:                          ; @qxl_irq_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, #52
	bl	_init_waitqueue_head
	add	x0, x19, #48
	bl	_init_waitqueue_head
	add	x0, x19, #44
	bl	_init_waitqueue_head
	add	x0, x19, #40
Lloh0:
	adrp	x8, _qxl_client_monitors_config_work_func@GOTPAGE
Lloh1:
	ldr	x8, [x8, _qxl_client_monitors_config_work_func@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #36
	mov	w1, #0
	bl	_atomic_set
	add	x0, x19, #32
	mov	w1, #0
	bl	_atomic_set
	add	x0, x19, #28
	mov	w1, #0
	bl	_atomic_set
	add	x0, x19, #24
	mov	w1, #0
	bl	_atomic_set
	str	xzr, [x19, #16]
	mov	x0, x19
	ldr	x8, [x0, #8]!
	ldr	w1, [x8]
	bl	_drm_irq_install
	mov	x20, x0
Lloh3:
	adrp	x8, _QXL_INTERRUPT_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QXL_INTERRUPT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9]
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DRM_ERROR
	mov	w0, #1
LBB0_2:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_qxl_client_monitors_config_work_func,4,2 ; @qxl_client_monitors_config_work_func
	.comm	_QXL_INTERRUPT_MASK,4,2         ; @QXL_INTERRUPT_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed installing irq: %d\n"

.subsections_via_symbols
