	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_hdmi_connector_irq         ## -- Begin function msm_hdmi_connector_irq
	.p2align	4, 0x90
_msm_hdmi_connector_irq:                ## @msm_hdmi_connector_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
	callq	_to_hdmi_connector
	movq	%rax, %r14
	movq	8(%rax), %rbx
	movq	_REG_HDMI_HPD_INT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hdmi_read
	movl	%eax, %r15d
	movq	_REG_HDMI_HPD_INT_CTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_hdmi_read
	movl	%eax, %r12d
	movq	_HDMI_HPD_INT_CTRL_INT_EN@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_5
## %bb.1:
	movq	_HDMI_HPD_INT_STATUS_INT@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_5
## %bb.2:
	movq	_HDMI_HPD_INT_STATUS_CABLE_DETECTED@GOTPCREL(%rip), %rax
	movq	%r13, %rcx
	movl	(%rax), %r13d
	andl	%r15d, %r13d
	movl	(%rcx), %esi
	movq	_HDMI_HPD_INT_CTRL_INT_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_hdmi_write
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_DBG
	xorl	%edx, %edx
	testl	%r13d, %r13d
	jne	LBB0_4
## %bb.3:
	movq	_HDMI_HPD_INT_CTRL_INT_CONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_4:
	movq	_HDMI_HPD_INT_CTRL_INT_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_REG_HDMI_HPD_INT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hdmi_write
	movl	(%rbx), %edi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_queue_work                     ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_HDMI_HPD_INT_STATUS,4,2    ## @REG_HDMI_HPD_INT_STATUS
	.comm	_REG_HDMI_HPD_INT_CTRL,4,2      ## @REG_HDMI_HPD_INT_CTRL
	.comm	_HDMI_HPD_INT_CTRL_INT_EN,4,2   ## @HDMI_HPD_INT_CTRL_INT_EN
	.comm	_HDMI_HPD_INT_STATUS_INT,4,2    ## @HDMI_HPD_INT_STATUS_INT
	.comm	_HDMI_HPD_INT_STATUS_CABLE_DETECTED,4,2 ## @HDMI_HPD_INT_STATUS_CABLE_DETECTED
	.comm	_HDMI_HPD_INT_CTRL_INT_ACK,4,2  ## @HDMI_HPD_INT_CTRL_INT_ACK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"status=%04x, ctrl=%04x"

	.comm	_HDMI_HPD_INT_CTRL_INT_CONNECT,4,2 ## @HDMI_HPD_INT_CTRL_INT_CONNECT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_hdmi_connector_irq         ; -- Begin function msm_hdmi_connector_irq
	.p2align	2
_msm_hdmi_connector_irq:                ; @msm_hdmi_connector_irq
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	bl	_to_hdmi_connector
	mov	x19, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _REG_HDMI_HPD_INT_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_HDMI_HPD_INT_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_hdmi_read
	mov	x21, x0
Lloh3:
	adrp	x23, _REG_HDMI_HPD_INT_CTRL@GOTPAGE
Lloh4:
	ldr	x23, [x23, _REG_HDMI_HPD_INT_CTRL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_hdmi_read
Lloh5:
	adrp	x24, _HDMI_HPD_INT_CTRL_INT_EN@GOTPAGE
Lloh6:
	ldr	x24, [x24, _HDMI_HPD_INT_CTRL_INT_EN@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
Lloh7:
	adrp	x8, _HDMI_HPD_INT_STATUS_INT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HDMI_HPD_INT_STATUS_INT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_3
; %bb.2:
	mov	x22, x0
Lloh10:
	adrp	x8, _HDMI_HPD_INT_STATUS_CABLE_DETECTED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HDMI_HPD_INT_STATUS_CABLE_DETECTED@GOTPAGEOFF]
Lloh12:
	ldr	w25, [x8]
	ldr	w1, [x23]
Lloh13:
	adrp	x8, _HDMI_HPD_INT_CTRL_INT_ACK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HDMI_HPD_INT_CTRL_INT_ACK@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_hdmi_write
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x22
	bl	_DBG
Lloh18:
	adrp	x8, _HDMI_HPD_INT_CTRL_INT_CONNECT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HDMI_HPD_INT_CTRL_INT_CONNECT@GOTPAGEOFF]
	ldr	w9, [x24]
Lloh20:
	ldr	w8, [x8]
	tst	w25, w21
	csel	w8, w8, wzr, eq
	orr	w2, w8, w9
	ldr	w1, [x23]
	mov	x0, x20
	bl	_hdmi_write
	ldr	w0, [x20]
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_queue_work
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_HDMI_HPD_INT_STATUS,4,2    ; @REG_HDMI_HPD_INT_STATUS
	.comm	_REG_HDMI_HPD_INT_CTRL,4,2      ; @REG_HDMI_HPD_INT_CTRL
	.comm	_HDMI_HPD_INT_CTRL_INT_EN,4,2   ; @HDMI_HPD_INT_CTRL_INT_EN
	.comm	_HDMI_HPD_INT_STATUS_INT,4,2    ; @HDMI_HPD_INT_STATUS_INT
	.comm	_HDMI_HPD_INT_STATUS_CABLE_DETECTED,4,2 ; @HDMI_HPD_INT_STATUS_CABLE_DETECTED
	.comm	_HDMI_HPD_INT_CTRL_INT_ACK,4,2  ; @HDMI_HPD_INT_CTRL_INT_ACK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"status=%04x, ctrl=%04x"

	.comm	_HDMI_HPD_INT_CTRL_INT_CONNECT,4,2 ; @HDMI_HPD_INT_CTRL_INT_CONNECT
.subsections_via_symbols
