	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zx_hdmi_irq_handler
_zx_hdmi_irq_handler:                   ## @zx_hdmi_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_L1_INTR_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hdmi_readb
	movq	_L1_INTR_STAT_INTR1@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	movq	_INTR1_STAT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_hdmi_readb
	movl	%eax, %r14d
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_hdmi_writeb
	movq	_INTR1_MONITOR_DETECT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_IRQ_WAKE_THREAD@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_L1_INTR_STAT,4,2               ## @L1_INTR_STAT
	.comm	_L1_INTR_STAT_INTR1,4,2         ## @L1_INTR_STAT_INTR1
	.comm	_INTR1_STAT,4,2                 ## @INTR1_STAT
	.comm	_INTR1_MONITOR_DETECT,4,2       ## @INTR1_MONITOR_DETECT
	.comm	_IRQ_WAKE_THREAD,4,2            ## @IRQ_WAKE_THREAD
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.no_dead_strip	_zx_hdmi_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zx_hdmi_irq_handler
_zx_hdmi_irq_handler:                   ; @zx_hdmi_irq_handler
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
Lloh0:
	adrp	x8, _L1_INTR_STAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _L1_INTR_STAT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hdmi_readb
Lloh3:
	adrp	x8, _L1_INTR_STAT_INTR1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _L1_INTR_STAT_INTR1@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
Lloh6:
	adrp	x21, _INTR1_STAT@GOTPAGE
Lloh7:
	ldr	x21, [x21, _INTR1_STAT@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_hdmi_readb
	mov	x20, x0
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_hdmi_writeb
Lloh8:
	adrp	x8, _INTR1_MONITOR_DETECT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INTR1_MONITOR_DETECT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.2:
Lloh11:
	adrp	x8, _IRQ_WAKE_THREAD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQ_WAKE_THREAD@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh13:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_L1_INTR_STAT,4,2               ; @L1_INTR_STAT
	.comm	_L1_INTR_STAT_INTR1,4,2         ; @L1_INTR_STAT_INTR1
	.comm	_INTR1_STAT,4,2                 ; @INTR1_STAT
	.comm	_INTR1_MONITOR_DETECT,4,2       ; @INTR1_MONITOR_DETECT
	.comm	_IRQ_WAKE_THREAD,4,2            ; @IRQ_WAKE_THREAD
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.no_dead_strip	_zx_hdmi_irq_handler
.subsections_via_symbols
