	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_hdmi_irq
_dw_hdmi_irq:                           ## @dw_hdmi_irq
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_HDMI_IH_PHY_STAT0@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_hdmi_readb
	movl	%eax, %ebx
	movq	_HDMI_PHY_POL0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_hdmi_readb
	movl	%eax, %r15d
	movq	_HDMI_PHY_STAT0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_hdmi_readb
	movl	%eax, %r12d
	movq	_HDMI_IH_PHY_STAT0_HPD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	andl	%ebx, %ecx
	je	LBB0_2
## %bb.1:
	movq	_HDMI_PHY_HPD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_2:
	movq	_HDMI_IH_PHY_STAT0_RX_SENSE0@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ebx, %edx
	je	LBB0_4
## %bb.3:
	movq	_HDMI_PHY_RX_SENSE0@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_4:
	movq	_HDMI_IH_PHY_STAT0_RX_SENSE1@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%ebx, %esi
	je	LBB0_6
## %bb.5:
	movq	_HDMI_PHY_RX_SENSE1@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
LBB0_6:
	orl	%ecx, %edx
	movq	_HDMI_IH_PHY_STAT0_RX_SENSE2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%ebx, %ecx
	je	LBB0_8
## %bb.7:
	movq	_HDMI_PHY_RX_SENSE2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_8:
	orl	%ecx, %esi
	orl	%esi, %edx
	movq	_HDMI_IH_PHY_STAT0_RX_SENSE3@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%ebx, %ecx
	je	LBB0_10
## %bb.9:
	movq	_HDMI_PHY_RX_SENSE3@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_10:
	orl	%ecx, %edx
	je	LBB0_12
## %bb.11:
	movl	%r15d, %esi
	notl	%esi
	movq	_HDMI_PHY_POL0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_hdmi_modb
	movq	_HDMI_IH_PHY_STAT0_HPD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_12:
	movq	_HDMI_IH_PHY_STAT0_RX_SENSE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%ebx, %eax
	je	LBB0_15
## %bb.13:
	movq	_HDMI_PHY_HPD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	%r12d, %esi
	movq	_HDMI_PHY_RX_SENSE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	andl	%r12d, %edx
	movq	%r14, %rdi
	callq	_dw_hdmi_setup_rx_sense
	movq	_HDMI_PHY_HPD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%r13), %eax
	movq	_HDMI_IH_PHY_STAT0@GOTPCREL(%rip), %r13
	testl	%r12d, %eax
	jne	LBB0_15
## %bb.14:
	leaq	12(%r14), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movl	16(%r14), %edi
	callq	_cec_notifier_phys_addr_invalidate
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_15:
	movq	_HDMI_IH_PHY_STAT0_HPD@GOTPCREL(%rip), %r12
	testl	%ebx, (%r12)
	je	LBB0_18
## %bb.16:
	movl	8(%r14), %edi
	movq	_HDMI_PHY_HPD@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:
	callq	_drm_helper_hpd_irq_event
LBB0_18:
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_hdmi_writeb
	movq	_HDMI_IH_PHY_STAT0_RX_SENSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r12), %esi
	notl	%esi
	movq	_HDMI_IH_MUTE_PHY_STAT0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_hdmi_writeb
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_IH_PHY_STAT0,4,2          ## @HDMI_IH_PHY_STAT0
	.comm	_HDMI_PHY_POL0,4,2              ## @HDMI_PHY_POL0
	.comm	_HDMI_PHY_STAT0,4,2             ## @HDMI_PHY_STAT0
	.comm	_HDMI_IH_PHY_STAT0_HPD,4,2      ## @HDMI_IH_PHY_STAT0_HPD
	.comm	_HDMI_PHY_HPD,4,2               ## @HDMI_PHY_HPD
	.comm	_HDMI_IH_PHY_STAT0_RX_SENSE0,4,2 ## @HDMI_IH_PHY_STAT0_RX_SENSE0
	.comm	_HDMI_PHY_RX_SENSE0,4,2         ## @HDMI_PHY_RX_SENSE0
	.comm	_HDMI_IH_PHY_STAT0_RX_SENSE1,4,2 ## @HDMI_IH_PHY_STAT0_RX_SENSE1
	.comm	_HDMI_PHY_RX_SENSE1,4,2         ## @HDMI_PHY_RX_SENSE1
	.comm	_HDMI_IH_PHY_STAT0_RX_SENSE2,4,2 ## @HDMI_IH_PHY_STAT0_RX_SENSE2
	.comm	_HDMI_PHY_RX_SENSE2,4,2         ## @HDMI_PHY_RX_SENSE2
	.comm	_HDMI_IH_PHY_STAT0_RX_SENSE3,4,2 ## @HDMI_IH_PHY_STAT0_RX_SENSE3
	.comm	_HDMI_PHY_RX_SENSE3,4,2         ## @HDMI_PHY_RX_SENSE3
	.comm	_HDMI_IH_PHY_STAT0_RX_SENSE,4,2 ## @HDMI_IH_PHY_STAT0_RX_SENSE
	.comm	_HDMI_PHY_RX_SENSE,4,2          ## @HDMI_PHY_RX_SENSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EVENT=%s\n"

L_.str.1:                               ## @.str.1
	.asciz	"plugin"

L_.str.2:                               ## @.str.2
	.asciz	"plugout"

	.comm	_HDMI_IH_MUTE_PHY_STAT0,4,2     ## @HDMI_IH_MUTE_PHY_STAT0
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_dw_hdmi_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_hdmi_irq
_dw_hdmi_irq:                           ; @dw_hdmi_irq
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
Lloh0:
	adrp	x23, _HDMI_IH_PHY_STAT0@GOTPAGE
Lloh1:
	ldr	x23, [x23, _HDMI_IH_PHY_STAT0@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_hdmi_readb
	mov	x20, x0
Lloh2:
	adrp	x26, _HDMI_PHY_POL0@GOTPAGE
Lloh3:
	ldr	x26, [x26, _HDMI_PHY_POL0@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x19
	bl	_hdmi_readb
	mov	x21, x0
Lloh4:
	adrp	x8, _HDMI_PHY_STAT0@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HDMI_PHY_STAT0@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hdmi_readb
	mov	x22, x0
Lloh7:
	adrp	x24, _HDMI_IH_PHY_STAT0_HPD@GOTPAGE
Lloh8:
	ldr	x24, [x24, _HDMI_IH_PHY_STAT0_HPD@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh9:
	adrp	x25, _HDMI_PHY_HPD@GOTPAGE
Lloh10:
	ldr	x25, [x25, _HDMI_PHY_HPD@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w8, w20
	csel	w9, wzr, w9, eq
Lloh11:
	adrp	x10, _HDMI_IH_PHY_STAT0_RX_SENSE0@GOTPAGE
Lloh12:
	ldr	x10, [x10, _HDMI_IH_PHY_STAT0_RX_SENSE0@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
Lloh14:
	adrp	x11, _HDMI_PHY_RX_SENSE0@GOTPAGE
Lloh15:
	ldr	x11, [x11, _HDMI_PHY_RX_SENSE0@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
	tst	w10, w20
	csel	w10, wzr, w11, eq
	orr	w9, w10, w9
Lloh17:
	adrp	x10, _HDMI_IH_PHY_STAT0_RX_SENSE1@GOTPAGE
Lloh18:
	ldr	x10, [x10, _HDMI_IH_PHY_STAT0_RX_SENSE1@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
Lloh20:
	adrp	x11, _HDMI_PHY_RX_SENSE1@GOTPAGE
Lloh21:
	ldr	x11, [x11, _HDMI_PHY_RX_SENSE1@GOTPAGEOFF]
Lloh22:
	ldr	w11, [x11]
	tst	w10, w20
	csel	w10, wzr, w11, eq
	orr	w9, w9, w10
Lloh23:
	adrp	x10, _HDMI_IH_PHY_STAT0_RX_SENSE2@GOTPAGE
Lloh24:
	ldr	x10, [x10, _HDMI_IH_PHY_STAT0_RX_SENSE2@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
Lloh26:
	adrp	x11, _HDMI_PHY_RX_SENSE2@GOTPAGE
Lloh27:
	ldr	x11, [x11, _HDMI_PHY_RX_SENSE2@GOTPAGEOFF]
Lloh28:
	ldr	w11, [x11]
	tst	w10, w20
	csel	w10, wzr, w11, eq
	orr	w9, w9, w10
Lloh29:
	adrp	x10, _HDMI_IH_PHY_STAT0_RX_SENSE3@GOTPAGE
Lloh30:
	ldr	x10, [x10, _HDMI_IH_PHY_STAT0_RX_SENSE3@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
Lloh32:
	adrp	x11, _HDMI_PHY_RX_SENSE3@GOTPAGE
Lloh33:
	ldr	x11, [x11, _HDMI_PHY_RX_SENSE3@GOTPAGEOFF]
Lloh34:
	ldr	w11, [x11]
	tst	w10, w20
	csel	w10, wzr, w11, eq
	orr	w2, w9, w10
	cbz	w2, LBB0_2
; %bb.1:
	mvn	w1, w21
	ldr	w3, [x26]
	mov	x0, x19
	bl	_hdmi_modb
	ldr	w8, [x24]
LBB0_2:
Lloh35:
	adrp	x26, _HDMI_IH_PHY_STAT0_RX_SENSE@GOTPAGE
Lloh36:
	ldr	x26, [x26, _HDMI_IH_PHY_STAT0_RX_SENSE@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w8, w8, w9
	tst	w8, w20
	b.eq	LBB0_5
; %bb.3:
	ldr	w8, [x25]
	and	w1, w8, w22
Lloh37:
	adrp	x27, _HDMI_PHY_RX_SENSE@GOTPAGE
Lloh38:
	ldr	x27, [x27, _HDMI_PHY_RX_SENSE@GOTPAGEOFF]
	ldr	w8, [x27]
	and	w2, w8, w22
	mov	x0, x19
	bl	_dw_hdmi_setup_rx_sense
	ldr	w8, [x27]
	ldr	w9, [x25]
	orr	w8, w9, w8
	tst	w8, w22
	b.ne	LBB0_5
; %bb.4:
	add	x22, x19, #12
	mov	x0, x22
	bl	_mutex_lock
	ldr	w0, [x19, #16]
	bl	_cec_notifier_phys_addr_invalidate
	mov	x0, x22
	bl	_mutex_unlock
LBB0_5:
	ldr	w8, [x24]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.6:
	ldr	w0, [x19, #8]
	ldr	w8, [x25]
Lloh39:
	adrp	x9, l_.str.1@PAGE
Lloh40:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh41:
	adrp	x10, l_.str.2@PAGE
Lloh42:
	add	x10, x10, l_.str.2@PAGEOFF
	tst	w8, w21
	csel	x2, x10, x9, eq
Lloh43:
	adrp	x1, l_.str@PAGE
Lloh44:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	x0, [x19]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_drm_helper_hpd_irq_event
LBB0_8:
	ldr	w2, [x23]
	mov	x0, x19
	mov	x1, x20
	bl	_hdmi_writeb
	ldr	w8, [x24]
	ldr	w9, [x26]
	orr	w8, w9, w8
	mvn	w1, w8
Lloh45:
	adrp	x8, _HDMI_IH_MUTE_PHY_STAT0@GOTPAGE
Lloh46:
	ldr	x8, [x8, _HDMI_IH_MUTE_PHY_STAT0@GOTPAGEOFF]
Lloh47:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_hdmi_writeb
Lloh48:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh49:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_IH_PHY_STAT0,4,2          ; @HDMI_IH_PHY_STAT0
	.comm	_HDMI_PHY_POL0,4,2              ; @HDMI_PHY_POL0
	.comm	_HDMI_PHY_STAT0,4,2             ; @HDMI_PHY_STAT0
	.comm	_HDMI_IH_PHY_STAT0_HPD,4,2      ; @HDMI_IH_PHY_STAT0_HPD
	.comm	_HDMI_PHY_HPD,4,2               ; @HDMI_PHY_HPD
	.comm	_HDMI_IH_PHY_STAT0_RX_SENSE0,4,2 ; @HDMI_IH_PHY_STAT0_RX_SENSE0
	.comm	_HDMI_PHY_RX_SENSE0,4,2         ; @HDMI_PHY_RX_SENSE0
	.comm	_HDMI_IH_PHY_STAT0_RX_SENSE1,4,2 ; @HDMI_IH_PHY_STAT0_RX_SENSE1
	.comm	_HDMI_PHY_RX_SENSE1,4,2         ; @HDMI_PHY_RX_SENSE1
	.comm	_HDMI_IH_PHY_STAT0_RX_SENSE2,4,2 ; @HDMI_IH_PHY_STAT0_RX_SENSE2
	.comm	_HDMI_PHY_RX_SENSE2,4,2         ; @HDMI_PHY_RX_SENSE2
	.comm	_HDMI_IH_PHY_STAT0_RX_SENSE3,4,2 ; @HDMI_IH_PHY_STAT0_RX_SENSE3
	.comm	_HDMI_PHY_RX_SENSE3,4,2         ; @HDMI_PHY_RX_SENSE3
	.comm	_HDMI_IH_PHY_STAT0_RX_SENSE,4,2 ; @HDMI_IH_PHY_STAT0_RX_SENSE
	.comm	_HDMI_PHY_RX_SENSE,4,2          ; @HDMI_PHY_RX_SENSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EVENT=%s\n"

l_.str.1:                               ; @.str.1
	.asciz	"plugin"

l_.str.2:                               ; @.str.2
	.asciz	"plugout"

	.comm	_HDMI_IH_MUTE_PHY_STAT0,4,2     ; @HDMI_IH_MUTE_PHY_STAT0
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_dw_hdmi_irq
.subsections_via_symbols
