	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_edp_ctrl_irq               ## -- Begin function msm_edp_ctrl_irq
	.p2align	4, 0x90
_msm_edp_ctrl_irq:                      ## @msm_edp_ctrl_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	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBG
	leaq	8(%r14), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	movq	_REG_EDP_INTERRUPT_REG_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r14), %rdi
	callq	_edp_read
	movl	%eax, %r15d
	movq	_REG_EDP_INTERRUPT_REG_2@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r14), %rdi
	callq	_edp_read
	movl	%eax, %r13d
	movq	_EDP_INTR_MASK1@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	andl	%r15d, %r12d
	movq	_EDP_INTR_MASK2@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%r13d, %ebx
	xorl	%r12d, %r15d
	xorl	%ebx, %r13d
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_DBG
	movq	_EDP_INTR_STATUS1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	%r15d, %esi
	addl	%esi, %esi
	orl	%r12d, %esi
	movq	_REG_EDP_INTERRUPT_REG_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r14), %rdi
	callq	_edp_write
	movq	_EDP_INTR_STATUS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	%r13d, %esi
	addl	%esi, %esi
	orl	%ebx, %esi
	movq	_REG_EDP_INTERRUPT_REG_2@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r14), %rdi
	callq	_edp_write
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	movq	_EDP_INTERRUPT_REG_1_HPD@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBG
LBB0_2:
	movq	_EDP_INTERRUPT_REG_2_READY_FOR_VIDEO@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_4
## %bb.3:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBG
LBB0_4:
	movq	_EDP_INTERRUPT_REG_2_IDLE_PATTERNs_SENT@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_6
## %bb.5:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBG
	leaq	4(%r14), %rdi
	callq	_complete
LBB0_6:
	movl	(%r14), %edi
	movl	%r15d, %esi
	callq	_msm_edp_aux_irq
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_REG_EDP_INTERRUPT_REG_1,8,3    ## @REG_EDP_INTERRUPT_REG_1
	.comm	_REG_EDP_INTERRUPT_REG_2,8,3    ## @REG_EDP_INTERRUPT_REG_2
	.comm	_EDP_INTR_MASK1,4,2             ## @EDP_INTR_MASK1
	.comm	_EDP_INTR_MASK2,4,2             ## @EDP_INTR_MASK2
L_.str.1:                               ## @.str.1
	.asciz	"isr=%x mask=%x isr2=%x mask2=%x"

	.comm	_EDP_INTR_STATUS1,4,2           ## @EDP_INTR_STATUS1
	.comm	_EDP_INTR_STATUS2,4,2           ## @EDP_INTR_STATUS2
	.comm	_EDP_INTERRUPT_REG_1_HPD,4,2    ## @EDP_INTERRUPT_REG_1_HPD
L_.str.2:                               ## @.str.2
	.asciz	"edp_hpd"

	.comm	_EDP_INTERRUPT_REG_2_READY_FOR_VIDEO,4,2 ## @EDP_INTERRUPT_REG_2_READY_FOR_VIDEO
L_.str.3:                               ## @.str.3
	.asciz	"edp_video_ready"

	.comm	_EDP_INTERRUPT_REG_2_IDLE_PATTERNs_SENT,4,2 ## @EDP_INTERRUPT_REG_2_IDLE_PATTERNs_SENT
L_.str.4:                               ## @.str.4
	.asciz	"idle_patterns_sent"

	.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	_msm_edp_ctrl_irq               ; -- Begin function msm_edp_ctrl_irq
	.p2align	2
_msm_edp_ctrl_irq:                      ; @msm_edp_ctrl_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG
	add	x21, x19, #8
	mov	x0, x21
	bl	_spin_lock
	ldr	x8, [x19, #16]
Lloh2:
	adrp	x23, _REG_EDP_INTERRUPT_REG_1@GOTPAGE
Lloh3:
	ldr	x23, [x23, _REG_EDP_INTERRUPT_REG_1@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_edp_read
	mov	x20, x0
	ldr	x8, [x19, #16]
Lloh4:
	adrp	x24, _REG_EDP_INTERRUPT_REG_2@GOTPAGE
Lloh5:
	ldr	x24, [x24, _REG_EDP_INTERRUPT_REG_2@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_edp_read
Lloh6:
	adrp	x8, _EDP_INTR_MASK1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EDP_INTR_MASK1@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w25, w8, w20
Lloh9:
	adrp	x8, _EDP_INTR_MASK2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EDP_INTR_MASK2@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w26, w8, w0
	eor	w20, w25, w20
	eor	w22, w26, w0
	stp	x22, x26, [sp, #16]
	stp	x20, x25, [sp]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DBG
Lloh14:
	adrp	x8, _EDP_INTR_STATUS1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EDP_INTR_STATUS1@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	and	w8, w8, w20
	orr	w1, w25, w8, lsl #1
	ldr	x8, [x19, #16]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_edp_write
Lloh17:
	adrp	x8, _EDP_INTR_STATUS2@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EDP_INTR_STATUS2@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	and	w8, w8, w22
	orr	w1, w26, w8, lsl #1
	ldr	x8, [x19, #16]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_edp_write
	mov	x0, x21
	bl	_spin_unlock
Lloh20:
	adrp	x8, _EDP_INTERRUPT_REG_1_HPD@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EDP_INTERRUPT_REG_1_HPD@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DBG
LBB0_2:
Lloh25:
	adrp	x8, _EDP_INTERRUPT_REG_2_READY_FOR_VIDEO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EDP_INTERRUPT_REG_2_READY_FOR_VIDEO@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_4
; %bb.3:
Lloh28:
	adrp	x0, l_.str.3@PAGE
Lloh29:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DBG
LBB0_4:
Lloh30:
	adrp	x8, _EDP_INTERRUPT_REG_2_IDLE_PATTERNs_SENT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EDP_INTERRUPT_REG_2_IDLE_PATTERNs_SENT@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_6
; %bb.5:
Lloh33:
	adrp	x0, l_.str.4@PAGE
Lloh34:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DBG
	add	x0, x19, #4
	bl	_complete
LBB0_6:
	ldr	w0, [x19]
	mov	x1, x20
	bl	_msm_edp_aux_irq
Lloh35:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh36:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_REG_EDP_INTERRUPT_REG_1,8,3    ; @REG_EDP_INTERRUPT_REG_1
	.comm	_REG_EDP_INTERRUPT_REG_2,8,3    ; @REG_EDP_INTERRUPT_REG_2
	.comm	_EDP_INTR_MASK1,4,2             ; @EDP_INTR_MASK1
	.comm	_EDP_INTR_MASK2,4,2             ; @EDP_INTR_MASK2
l_.str.1:                               ; @.str.1
	.asciz	"isr=%x mask=%x isr2=%x mask2=%x"

	.comm	_EDP_INTR_STATUS1,4,2           ; @EDP_INTR_STATUS1
	.comm	_EDP_INTR_STATUS2,4,2           ; @EDP_INTR_STATUS2
	.comm	_EDP_INTERRUPT_REG_1_HPD,4,2    ; @EDP_INTERRUPT_REG_1_HPD
l_.str.2:                               ; @.str.2
	.asciz	"edp_hpd"

	.comm	_EDP_INTERRUPT_REG_2_READY_FOR_VIDEO,4,2 ; @EDP_INTERRUPT_REG_2_READY_FOR_VIDEO
l_.str.3:                               ; @.str.3
	.asciz	"edp_video_ready"

	.comm	_EDP_INTERRUPT_REG_2_IDLE_PATTERNs_SENT,4,2 ; @EDP_INTERRUPT_REG_2_IDLE_PATTERNs_SENT
l_.str.4:                               ; @.str.4
	.asciz	"idle_patterns_sent"

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