	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function icp_irq_postinstall
_icp_irq_postinstall:                   ## @icp_irq_postinstall
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_SDE_GMBUS_ICP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_SDEIER@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_I915_READ
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_WARN_ON
	movl	(%r15), %edi
	movl	$-1, %esi
	callq	_I915_WRITE
	movl	(%r15), %edi
	callq	_POSTING_READ
	movq	_SDEIIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_gen3_assert_iir_is_zero
	movq	_SDEIMR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	notl	%ebx
	movl	%ebx, %esi
	callq	_I915_WRITE
	movq	%r14, %rdi
	callq	_HAS_PCH_TGP
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_TGP_TC_HPD_ENABLE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_TGP_DDI_HPD_ENABLE_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	%r14, %rdi
	callq	_HAS_PCH_MCC
	xorl	%edx, %edx
	testq	%rax, %rax
	movq	_ICP_TC_HPD_ENABLE_MASK@GOTPCREL(%rip), %rax
	cmovel	(%rax), %edx
	movq	_TGP_DDI_HPD_ENABLE_MASK@GOTPCREL(%rip), %rax
	cmoveq	_ICP_DDI_HPD_ENABLE_MASK@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_icp_hpd_detection_setup        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SDE_GMBUS_ICP,4,2              ## @SDE_GMBUS_ICP
	.comm	_SDEIER,4,2                     ## @SDEIER
	.comm	_SDEIIR,4,2                     ## @SDEIIR
	.comm	_SDEIMR,4,2                     ## @SDEIMR
	.comm	_TGP_DDI_HPD_ENABLE_MASK,4,2    ## @TGP_DDI_HPD_ENABLE_MASK
	.comm	_TGP_TC_HPD_ENABLE_MASK,4,2     ## @TGP_TC_HPD_ENABLE_MASK
	.comm	_ICP_DDI_HPD_ENABLE_MASK,4,2    ## @ICP_DDI_HPD_ENABLE_MASK
	.comm	_ICP_TC_HPD_ENABLE_MASK,4,2     ## @ICP_TC_HPD_ENABLE_MASK
	.no_dead_strip	_icp_irq_postinstall
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function icp_irq_postinstall
_icp_irq_postinstall:                   ; @icp_irq_postinstall
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _SDE_GMBUS_ICP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDE_GMBUS_ICP@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x21, _SDEIER@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SDEIER@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_I915_READ
	cmp	x0, #0
	cset	w0, ne
	bl	_WARN_ON
	ldr	w0, [x21]
	mov	w1, #-1
	bl	_I915_WRITE
	ldr	w0, [x21]
	bl	_POSTING_READ
Lloh5:
	adrp	x8, _SDEIIR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SDEIIR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gen3_assert_iir_is_zero
Lloh8:
	adrp	x8, _SDEIMR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SDEIMR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mvn	w1, w20
	bl	_I915_WRITE
	mov	x0, x19
	bl	_HAS_PCH_TGP
	cbz	x0, LBB0_2
; %bb.1:
Lloh11:
	adrp	x8, _TGP_TC_HPD_ENABLE_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TGP_TC_HPD_ENABLE_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _TGP_DDI_HPD_ENABLE_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TGP_DDI_HPD_ENABLE_MASK@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_HAS_PCH_MCC
Lloh16:
	adrp	x8, _ICP_TC_HPD_ENABLE_MASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ICP_TC_HPD_ENABLE_MASK@GOTPAGEOFF]
Lloh18:
	adrp	x9, _TGP_DDI_HPD_ENABLE_MASK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _TGP_DDI_HPD_ENABLE_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x8]
Lloh21:
	adrp	x8, _ICP_DDI_HPD_ENABLE_MASK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ICP_DDI_HPD_ENABLE_MASK@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	csel	w2, w10, wzr, eq
LBB0_3:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_icp_hpd_detection_setup
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_SDE_GMBUS_ICP,4,2              ; @SDE_GMBUS_ICP
	.comm	_SDEIER,4,2                     ; @SDEIER
	.comm	_SDEIIR,4,2                     ; @SDEIIR
	.comm	_SDEIMR,4,2                     ; @SDEIMR
	.comm	_TGP_DDI_HPD_ENABLE_MASK,4,2    ; @TGP_DDI_HPD_ENABLE_MASK
	.comm	_TGP_TC_HPD_ENABLE_MASK,4,2     ; @TGP_TC_HPD_ENABLE_MASK
	.comm	_ICP_DDI_HPD_ENABLE_MASK,4,2    ; @ICP_DDI_HPD_ENABLE_MASK
	.comm	_ICP_TC_HPD_ENABLE_MASK,4,2     ; @ICP_TC_HPD_ENABLE_MASK
	.no_dead_strip	_icp_irq_postinstall
.subsections_via_symbols
