	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmi_irq_thread
_hdmi_irq_thread:                       ## @hdmi_irq_thread
	.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	%rsi, %rbx
	movq	_HDMI_INT_HOT_PLUG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_3
## %bb.1:
	movq	_HDMI_STA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%rbx), %rdi
	callq	_readl
	movq	_HDMI_STA_HOT_PLUG@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, 4(%rbx)
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_drm_helper_hpd_irq_event
LBB0_3:
	movl	(%rbx), %eax
	movq	_HDMI_INT_SW_RST@GOTPCREL(%rip), %rcx
	movq	_HDMI_INT_DLL_LCK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_5
## %bb.4:
	movl	$1, 8(%rbx)
	leaq	12(%rbx), %rdi
	callq	_wake_up_interruptible
	movl	(%rbx), %eax
LBB0_5:
	movq	_HDMI_INT_AUDIO_FIFO_XRUN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_INFO
LBB0_7:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_INT_HOT_PLUG,4,2          ## @HDMI_INT_HOT_PLUG
	.comm	_HDMI_STA,8,3                   ## @HDMI_STA
	.comm	_HDMI_STA_HOT_PLUG,4,2          ## @HDMI_STA_HOT_PLUG
	.comm	_HDMI_INT_SW_RST,4,2            ## @HDMI_INT_SW_RST
	.comm	_HDMI_INT_DLL_LCK,4,2           ## @HDMI_INT_DLL_LCK
	.comm	_HDMI_INT_AUDIO_FIFO_XRUN,4,2   ## @HDMI_INT_AUDIO_FIFO_XRUN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Warning: audio FIFO underrun occurs!\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_hdmi_irq_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdmi_irq_thread
_hdmi_irq_thread:                       ; @hdmi_irq_thread
	.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, x1
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _HDMI_INT_HOT_PLUG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HDMI_INT_HOT_PLUG@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x19, #24]
Lloh3:
	adrp	x9, _HDMI_STA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HDMI_STA@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh6:
	adrp	x8, _HDMI_STA_HOT_PLUG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HDMI_STA_HOT_PLUG@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w0
	str	w8, [x19, #4]
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_drm_helper_hpd_irq_event
LBB0_3:
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _HDMI_INT_SW_RST@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HDMI_INT_SW_RST@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _HDMI_INT_DLL_LCK@GOTPAGE
Lloh13:
	ldr	x10, [x10, _HDMI_INT_DLL_LCK@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [x19, #8]
	add	x0, x19, #12
	bl	_wake_up_interruptible
	ldr	w8, [x19]
LBB0_5:
Lloh15:
	adrp	x9, _HDMI_INT_AUDIO_FIFO_XRUN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _HDMI_INT_AUDIO_FIFO_XRUN@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_INFO
LBB0_7:
Lloh20:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh22:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_INT_HOT_PLUG,4,2          ; @HDMI_INT_HOT_PLUG
	.comm	_HDMI_STA,8,3                   ; @HDMI_STA
	.comm	_HDMI_STA_HOT_PLUG,4,2          ; @HDMI_STA_HOT_PLUG
	.comm	_HDMI_INT_SW_RST,4,2            ; @HDMI_INT_SW_RST
	.comm	_HDMI_INT_DLL_LCK,4,2           ; @HDMI_INT_DLL_LCK
	.comm	_HDMI_INT_AUDIO_FIFO_XRUN,4,2   ; @HDMI_INT_AUDIO_FIFO_XRUN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Warning: audio FIFO underrun occurs!\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_hdmi_irq_thread
.subsections_via_symbols
