	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spt_hpd_detection_setup
_spt_hpd_detection_setup:               ## @spt_hpd_detection_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_HAS_PCH_CNP
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_SOUTH_CHICKEN1@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_I915_READ
	movq	_CHASSIS_CLK_REQ_DURATION_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	$15, %edi
	callq	_CHASSIS_CLK_REQ_DURATION
	orl	%eax, %ebx
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
LBB0_2:
	movq	_PCH_PORT_HOTPLUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_I915_READ
	movq	_PORTA_HOTPLUG_ENABLE@GOTPCREL(%rip), %rcx
	movq	_PORTB_HOTPLUG_ENABLE@GOTPCREL(%rip), %rdx
	movq	_PORTC_HOTPLUG_ENABLE@GOTPCREL(%rip), %rsi
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	orl	(%rsi), %eax
	movq	_PORTD_HOTPLUG_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	_PCH_PORT_HOTPLUG2@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_I915_READ
	movq	_PORTE_HOTPLUG_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SOUTH_CHICKEN1,4,2             ## @SOUTH_CHICKEN1
	.comm	_CHASSIS_CLK_REQ_DURATION_MASK,4,2 ## @CHASSIS_CLK_REQ_DURATION_MASK
	.comm	_PCH_PORT_HOTPLUG,4,2           ## @PCH_PORT_HOTPLUG
	.comm	_PORTA_HOTPLUG_ENABLE,4,2       ## @PORTA_HOTPLUG_ENABLE
	.comm	_PORTB_HOTPLUG_ENABLE,4,2       ## @PORTB_HOTPLUG_ENABLE
	.comm	_PORTC_HOTPLUG_ENABLE,4,2       ## @PORTC_HOTPLUG_ENABLE
	.comm	_PORTD_HOTPLUG_ENABLE,4,2       ## @PORTD_HOTPLUG_ENABLE
	.comm	_PCH_PORT_HOTPLUG2,4,2          ## @PCH_PORT_HOTPLUG2
	.comm	_PORTE_HOTPLUG_ENABLE,4,2       ## @PORTE_HOTPLUG_ENABLE
	.no_dead_strip	_spt_hpd_detection_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spt_hpd_detection_setup
_spt_hpd_detection_setup:               ; @spt_hpd_detection_setup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_HAS_PCH_CNP
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x19, _SOUTH_CHICKEN1@GOTPAGE
Lloh1:
	ldr	x19, [x19, _SOUTH_CHICKEN1@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_I915_READ
Lloh2:
	adrp	x8, _CHASSIS_CLK_REQ_DURATION_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CHASSIS_CLK_REQ_DURATION_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w20, w0, w8
	mov	w0, #15
	bl	_CHASSIS_CLK_REQ_DURATION
	orr	w1, w20, w0
	ldr	w0, [x19]
	bl	_I915_WRITE
LBB0_2:
Lloh5:
	adrp	x19, _PCH_PORT_HOTPLUG@GOTPAGE
Lloh6:
	ldr	x19, [x19, _PCH_PORT_HOTPLUG@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_I915_READ
Lloh7:
	adrp	x8, _PORTA_HOTPLUG_ENABLE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PORTA_HOTPLUG_ENABLE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _PORTB_HOTPLUG_ENABLE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PORTB_HOTPLUG_ENABLE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x10, _PORTC_HOTPLUG_ENABLE@GOTPAGE
Lloh14:
	ldr	x10, [x10, _PORTC_HOTPLUG_ENABLE@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
Lloh16:
	adrp	x11, _PORTD_HOTPLUG_ENABLE@GOTPAGE
Lloh17:
	ldr	x11, [x11, _PORTD_HOTPLUG_ENABLE@GOTPAGEOFF]
Lloh18:
	ldr	w11, [x11]
	orr	w8, w8, w0
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w1, w8, w11
	ldr	w0, [x19]
	bl	_I915_WRITE
Lloh19:
	adrp	x19, _PCH_PORT_HOTPLUG2@GOTPAGE
Lloh20:
	ldr	x19, [x19, _PCH_PORT_HOTPLUG2@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_I915_READ
Lloh21:
	adrp	x8, _PORTE_HOTPLUG_ENABLE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PORTE_HOTPLUG_ENABLE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_I915_WRITE
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_SOUTH_CHICKEN1,4,2             ; @SOUTH_CHICKEN1
	.comm	_CHASSIS_CLK_REQ_DURATION_MASK,4,2 ; @CHASSIS_CLK_REQ_DURATION_MASK
	.comm	_PCH_PORT_HOTPLUG,4,2           ; @PCH_PORT_HOTPLUG
	.comm	_PORTA_HOTPLUG_ENABLE,4,2       ; @PORTA_HOTPLUG_ENABLE
	.comm	_PORTB_HOTPLUG_ENABLE,4,2       ; @PORTB_HOTPLUG_ENABLE
	.comm	_PORTC_HOTPLUG_ENABLE,4,2       ; @PORTC_HOTPLUG_ENABLE
	.comm	_PORTD_HOTPLUG_ENABLE,4,2       ; @PORTD_HOTPLUG_ENABLE
	.comm	_PCH_PORT_HOTPLUG2,4,2          ; @PCH_PORT_HOTPLUG2
	.comm	_PORTE_HOTPLUG_ENABLE,4,2       ; @PORTE_HOTPLUG_ENABLE
	.no_dead_strip	_spt_hpd_detection_setup
.subsections_via_symbols
