	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function icp_irq_handler
_icp_irq_handler:                       ## @icp_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %r12
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	callq	_HAS_PCH_MCC
	movq	_SDE_TC_MASK_ICP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r14d, %ecx
	xorl	%r13d, %r13d
	testq	%rax, %rax
	movq	_SDE_DDI_MASK_TGP@GOTPCREL(%rip), %rax
	cmoveq	_SDE_DDI_MASK_ICP@GOTPCREL(%rip), %rax
	cmovel	%ecx, %r13d
	movl	(%rax), %ebx
	andl	%r14d, %ebx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movq	_SHOTPLUG_CTL_DDI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %r15d
	movq	_SHOTPLUG_CTL_DDI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_I915_WRITE
	movq	_icp_ddi_port_hotplug_long_detect@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	callq	_intel_get_hpd_pins
LBB0_2:
	testl	%r13d, %r13d
	je	LBB0_4
## %bb.3:
	movq	_SHOTPLUG_CTL_TC@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movl	(%r15), %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	_icp_tc_port_hotplug_long_detect@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	movl	%r13d, %ecx
	movl	%ebx, %r8d
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	callq	_intel_get_hpd_pins
LBB0_4:
	movl	-48(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_6
## %bb.5:
	movl	-44(%rbp), %edx
	movq	%r12, %rdi
	callq	_intel_hpd_irq_handler
LBB0_6:
	movq	_SDE_GMBUS_ICP@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	callq	_gmbus_irq_handler
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDE_DDI_MASK_TGP,4,2           ## @SDE_DDI_MASK_TGP
	.comm	_SDE_DDI_MASK_ICP,4,2           ## @SDE_DDI_MASK_ICP
	.comm	_SDE_TC_MASK_ICP,4,2            ## @SDE_TC_MASK_ICP
	.comm	_SHOTPLUG_CTL_DDI,4,2           ## @SHOTPLUG_CTL_DDI
	.comm	_icp_ddi_port_hotplug_long_detect,4,2 ## @icp_ddi_port_hotplug_long_detect
	.comm	_SHOTPLUG_CTL_TC,4,2            ## @SHOTPLUG_CTL_TC
	.comm	_icp_tc_port_hotplug_long_detect,4,2 ## @icp_tc_port_hotplug_long_detect
	.comm	_SDE_GMBUS_ICP,4,2              ## @SDE_GMBUS_ICP
	.no_dead_strip	_icp_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function icp_irq_handler
_icp_irq_handler:                       ; @icp_irq_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	str	xzr, [sp, #8]
	bl	_HAS_PCH_MCC
Lloh0:
	adrp	x8, _SDE_TC_MASK_ICP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDE_TC_MASK_ICP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SDE_DDI_MASK_ICP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SDE_DDI_MASK_ICP@GOTPAGEOFF]
Lloh5:
	adrp	x10, _SDE_DDI_MASK_TGP@GOTPAGE
Lloh6:
	ldr	x10, [x10, _SDE_DDI_MASK_TGP@GOTPAGEOFF]
	and	w8, w8, w20
	cmp	x0, #0
	csel	x9, x9, x10, eq
	csel	w22, w8, wzr, eq
	ldr	w8, [x9]
	ands	w23, w8, w20
	b.eq	LBB0_2
; %bb.1:
Lloh7:
	adrp	x25, _SHOTPLUG_CTL_DDI@GOTPAGE
Lloh8:
	ldr	x25, [x25, _SHOTPLUG_CTL_DDI@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_I915_READ
	mov	x24, x0
	ldr	w0, [x25]
	mov	x1, x24
	bl	_I915_WRITE
Lloh9:
	adrp	x8, _icp_ddi_port_hotplug_long_detect@GOTPAGE
Lloh10:
	ldr	x8, [x8, _icp_ddi_port_hotplug_long_detect@GOTPAGEOFF]
Lloh11:
	ldr	w6, [x8]
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x19
	mov	x3, x23
	mov	x4, x24
	mov	x5, x21
	bl	_intel_get_hpd_pins
LBB0_2:
	cbz	w22, LBB0_4
; %bb.3:
Lloh12:
	adrp	x24, _SHOTPLUG_CTL_TC@GOTPAGE
Lloh13:
	ldr	x24, [x24, _SHOTPLUG_CTL_TC@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_I915_READ
	mov	x23, x0
	ldr	w0, [x24]
	mov	x1, x23
	bl	_I915_WRITE
Lloh14:
	adrp	x8, _icp_tc_port_hotplug_long_detect@GOTPAGE
Lloh15:
	ldr	x8, [x8, _icp_tc_port_hotplug_long_detect@GOTPAGEOFF]
Lloh16:
	ldr	w6, [x8]
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x19
	mov	x3, x22
	mov	x4, x23
	mov	x5, x21
	bl	_intel_get_hpd_pins
LBB0_4:
	ldr	w1, [sp, #12]
	cbz	w1, LBB0_6
; %bb.5:
	ldr	w2, [sp, #8]
	mov	x0, x19
	bl	_intel_hpd_irq_handler
LBB0_6:
Lloh17:
	adrp	x8, _SDE_GMBUS_ICP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SDE_GMBUS_ICP@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_gmbus_irq_handler
LBB0_8:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_SDE_DDI_MASK_TGP,4,2           ; @SDE_DDI_MASK_TGP
	.comm	_SDE_DDI_MASK_ICP,4,2           ; @SDE_DDI_MASK_ICP
	.comm	_SDE_TC_MASK_ICP,4,2            ; @SDE_TC_MASK_ICP
	.comm	_SHOTPLUG_CTL_DDI,4,2           ; @SHOTPLUG_CTL_DDI
	.comm	_icp_ddi_port_hotplug_long_detect,4,2 ; @icp_ddi_port_hotplug_long_detect
	.comm	_SHOTPLUG_CTL_TC,4,2            ; @SHOTPLUG_CTL_TC
	.comm	_icp_tc_port_hotplug_long_detect,4,2 ; @icp_tc_port_hotplug_long_detect
	.comm	_SDE_GMBUS_ICP,4,2              ; @SDE_GMBUS_ICP
	.no_dead_strip	_icp_irq_handler
.subsections_via_symbols
