	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qxl_irq_handler                ## -- Begin function qxl_irq_handler
	.p2align	4, 0x90
_qxl_irq_handler:                       ## @qxl_irq_handler
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rsi), %rbx
	movq	8(%rbx), %rdi
	addq	$4, %rdi
	xorl	%esi, %esi
	callq	_xchg
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r14d
	leaq	48(%rbx), %rdi
	callq	_atomic_inc
	movq	_QXL_INTERRUPT_DISPLAY@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_4
## %bb.3:
	leaq	44(%rbx), %rdi
	callq	_atomic_inc
	leaq	40(%rbx), %rdi
	callq	_wake_up_all
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_qxl_queue_garbage_collect
LBB0_4:
	movq	_QXL_INTERRUPT_CURSOR@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_6
## %bb.5:
	leaq	36(%rbx), %rdi
	callq	_atomic_inc
	leaq	32(%rbx), %rdi
	callq	_wake_up_all
LBB0_6:
	movq	_QXL_INTERRUPT_IO_CMD@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_8
## %bb.7:
	leaq	28(%rbx), %rdi
	callq	_atomic_inc
	leaq	24(%rbx), %rdi
	callq	_wake_up_all
LBB0_8:
	movq	_QXL_INTERRUPT_ERROR@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_10
## %bb.9:
	incl	20(%rbx)
	leaq	L_.str(%rip), %rdi
	callq	_DRM_WARN
LBB0_10:
	movq	_QXL_INTERRUPT_CLIENT_MONITORS_CONFIG@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_12
## %bb.11:
	leaq	16(%rbx), %rdi
	callq	_schedule_work
LBB0_12:
	movq	_QXL_INTERRUPT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	_QXL_IO_UPDATE_IRQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	xorl	%edi, %edi
	callq	_outb
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_QXL_INTERRUPT_DISPLAY,4,2      ## @QXL_INTERRUPT_DISPLAY
	.comm	_QXL_INTERRUPT_CURSOR,4,2       ## @QXL_INTERRUPT_CURSOR
	.comm	_QXL_INTERRUPT_IO_CMD,4,2       ## @QXL_INTERRUPT_IO_CMD
	.comm	_QXL_INTERRUPT_ERROR,4,2        ## @QXL_INTERRUPT_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"driver is in bug mode\n"

	.comm	_QXL_INTERRUPT_CLIENT_MONITORS_CONFIG,4,2 ## @QXL_INTERRUPT_CLIENT_MONITORS_CONFIG
	.comm	_QXL_INTERRUPT_MASK,4,2         ## @QXL_INTERRUPT_MASK
	.comm	_QXL_IO_UPDATE_IRQ,8,3          ## @QXL_IO_UPDATE_IRQ
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qxl_irq_handler                ; -- Begin function qxl_irq_handler
	.p2align	2
_qxl_irq_handler:                       ; @qxl_irq_handler
	.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
	ldr	x19, [x1]
	ldr	x8, [x19, #8]
	add	x0, x8, #4
	mov	w1, #0
	bl	_xchg
	cbz	w0, LBB0_12
; %bb.1:
	mov	x20, x0
	add	x0, x19, #48
	bl	_atomic_inc
Lloh0:
	adrp	x8, _QXL_INTERRUPT_DISPLAY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QXL_INTERRUPT_DISPLAY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.2:
	add	x0, x19, #44
	bl	_atomic_inc
	add	x0, x19, #40
	bl	_wake_up_all
	mov	x0, x19
	mov	w1, #0
	bl	_qxl_queue_garbage_collect
LBB0_3:
Lloh3:
	adrp	x8, _QXL_INTERRUPT_CURSOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QXL_INTERRUPT_CURSOR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
	add	x0, x19, #36
	bl	_atomic_inc
	add	x0, x19, #32
	bl	_wake_up_all
LBB0_5:
Lloh6:
	adrp	x8, _QXL_INTERRUPT_IO_CMD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QXL_INTERRUPT_IO_CMD@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:
	add	x0, x19, #28
	bl	_atomic_inc
	add	x0, x19, #24
	bl	_wake_up_all
LBB0_7:
Lloh9:
	adrp	x8, _QXL_INTERRUPT_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QXL_INTERRUPT_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.8:
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_WARN
LBB0_9:
Lloh14:
	adrp	x8, _QXL_INTERRUPT_CLIENT_MONITORS_CONFIG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _QXL_INTERRUPT_CLIENT_MONITORS_CONFIG@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_11
; %bb.10:
	add	x0, x19, #16
	bl	_schedule_work
LBB0_11:
Lloh17:
	adrp	x8, _QXL_INTERRUPT_MASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _QXL_INTERRUPT_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldp	x10, x9, [x19]
	str	w8, [x9]
Lloh20:
	adrp	x8, _QXL_IO_UPDATE_IRQ@GOTPAGE
Lloh21:
	ldr	x8, [x8, _QXL_IO_UPDATE_IRQ@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	add	x1, x8, x10
	mov	w0, #0
	bl	_outb
Lloh23:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh25:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_QXL_INTERRUPT_DISPLAY,4,2      ; @QXL_INTERRUPT_DISPLAY
	.comm	_QXL_INTERRUPT_CURSOR,4,2       ; @QXL_INTERRUPT_CURSOR
	.comm	_QXL_INTERRUPT_IO_CMD,4,2       ; @QXL_INTERRUPT_IO_CMD
	.comm	_QXL_INTERRUPT_ERROR,4,2        ; @QXL_INTERRUPT_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"driver is in bug mode\n"

	.comm	_QXL_INTERRUPT_CLIENT_MONITORS_CONFIG,4,2 ; @QXL_INTERRUPT_CLIENT_MONITORS_CONFIG
	.comm	_QXL_INTERRUPT_MASK,4,2         ; @QXL_INTERRUPT_MASK
	.comm	_QXL_IO_UPDATE_IRQ,8,3          ; @QXL_IO_UPDATE_IRQ
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
.subsections_via_symbols
