	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibx_hpd_detection_setup
_ibx_hpd_detection_setup:               ## @ibx_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_PCH_PORT_HOTPLUG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_I915_READ
	movq	_PORTB_PULSE_DURATION_MASK@GOTPCREL(%rip), %rcx
	movq	_PORTC_PULSE_DURATION_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_PORTD_PULSE_DURATION_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	_PORTB_HOTPLUG_ENABLE@GOTPCREL(%rip), %rax
	movq	_PORTB_PULSE_DURATION_2ms@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_PORTC_HOTPLUG_ENABLE@GOTPCREL(%rip), %rcx
	movq	_PORTC_PULSE_DURATION_2ms@GOTPCREL(%rip), %rsi
	movq	_PORTD_HOTPLUG_ENABLE@GOTPCREL(%rip), %rdi
	movq	_PORTD_PULSE_DURATION_2ms@GOTPCREL(%rip), %r8
	orl	(%rax), %ebx
	orl	%edx, %ebx
	orl	(%rcx), %ebx
	orl	(%rsi), %ebx
	orl	(%rdi), %ebx
	orl	(%r8), %ebx
	movq	%r14, %rdi
	callq	_HAS_PCH_LPT_LP
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_PORTA_HOTPLUG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_2:
	orl	%ecx, %ebx
	movl	(%r15), %edi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCH_PORT_HOTPLUG,4,2           ## @PCH_PORT_HOTPLUG
	.comm	_PORTB_PULSE_DURATION_MASK,4,2  ## @PORTB_PULSE_DURATION_MASK
	.comm	_PORTC_PULSE_DURATION_MASK,4,2  ## @PORTC_PULSE_DURATION_MASK
	.comm	_PORTD_PULSE_DURATION_MASK,4,2  ## @PORTD_PULSE_DURATION_MASK
	.comm	_PORTB_HOTPLUG_ENABLE,4,2       ## @PORTB_HOTPLUG_ENABLE
	.comm	_PORTB_PULSE_DURATION_2ms,4,2   ## @PORTB_PULSE_DURATION_2ms
	.comm	_PORTC_HOTPLUG_ENABLE,4,2       ## @PORTC_HOTPLUG_ENABLE
	.comm	_PORTC_PULSE_DURATION_2ms,4,2   ## @PORTC_PULSE_DURATION_2ms
	.comm	_PORTD_HOTPLUG_ENABLE,4,2       ## @PORTD_HOTPLUG_ENABLE
	.comm	_PORTD_PULSE_DURATION_2ms,4,2   ## @PORTD_PULSE_DURATION_2ms
	.comm	_PORTA_HOTPLUG_ENABLE,4,2       ## @PORTA_HOTPLUG_ENABLE
	.no_dead_strip	_ibx_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 ibx_hpd_detection_setup
_ibx_hpd_detection_setup:               ; @ibx_hpd_detection_setup
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x20, _PCH_PORT_HOTPLUG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PCH_PORT_HOTPLUG@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_I915_READ
Lloh2:
	adrp	x8, _PORTB_PULSE_DURATION_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PORTB_PULSE_DURATION_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _PORTC_PULSE_DURATION_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PORTC_PULSE_DURATION_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _PORTD_PULSE_DURATION_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PORTD_PULSE_DURATION_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w21, w0, w8
Lloh11:
	adrp	x8, _PORTB_HOTPLUG_ENABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PORTB_HOTPLUG_ENABLE@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
Lloh14:
	adrp	x8, _PORTB_PULSE_DURATION_2ms@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PORTB_PULSE_DURATION_2ms@GOTPAGEOFF]
Lloh16:
	ldr	w23, [x8]
Lloh17:
	adrp	x8, _PORTC_HOTPLUG_ENABLE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PORTC_HOTPLUG_ENABLE@GOTPAGEOFF]
Lloh19:
	ldr	w24, [x8]
Lloh20:
	adrp	x8, _PORTC_PULSE_DURATION_2ms@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PORTC_PULSE_DURATION_2ms@GOTPAGEOFF]
Lloh22:
	ldr	w25, [x8]
Lloh23:
	adrp	x8, _PORTD_HOTPLUG_ENABLE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PORTD_HOTPLUG_ENABLE@GOTPAGEOFF]
Lloh25:
	ldr	w26, [x8]
Lloh26:
	adrp	x8, _PORTD_PULSE_DURATION_2ms@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PORTD_PULSE_DURATION_2ms@GOTPAGEOFF]
Lloh28:
	ldr	w27, [x8]
	mov	x0, x19
	bl	_HAS_PCH_LPT_LP
Lloh29:
	adrp	x8, _PORTA_HOTPLUG_ENABLE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PORTA_HOTPLUG_ENABLE@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w9, w23, w22
	orr	w9, w9, w21
	orr	w9, w9, w24
	orr	w9, w9, w25
	orr	w9, w9, w26
	orr	w9, w9, w27
	orr	w1, w9, w8
	ldr	w0, [x20]
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_I915_WRITE
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PCH_PORT_HOTPLUG,4,2           ; @PCH_PORT_HOTPLUG
	.comm	_PORTB_PULSE_DURATION_MASK,4,2  ; @PORTB_PULSE_DURATION_MASK
	.comm	_PORTC_PULSE_DURATION_MASK,4,2  ; @PORTC_PULSE_DURATION_MASK
	.comm	_PORTD_PULSE_DURATION_MASK,4,2  ; @PORTD_PULSE_DURATION_MASK
	.comm	_PORTB_HOTPLUG_ENABLE,4,2       ; @PORTB_HOTPLUG_ENABLE
	.comm	_PORTB_PULSE_DURATION_2ms,4,2   ; @PORTB_PULSE_DURATION_2ms
	.comm	_PORTC_HOTPLUG_ENABLE,4,2       ; @PORTC_HOTPLUG_ENABLE
	.comm	_PORTC_PULSE_DURATION_2ms,4,2   ; @PORTC_PULSE_DURATION_2ms
	.comm	_PORTD_HOTPLUG_ENABLE,4,2       ; @PORTD_HOTPLUG_ENABLE
	.comm	_PORTD_PULSE_DURATION_2ms,4,2   ; @PORTD_PULSE_DURATION_2ms
	.comm	_PORTA_HOTPLUG_ENABLE,4,2       ; @PORTA_HOTPLUG_ENABLE
	.no_dead_strip	_ibx_hpd_detection_setup
.subsections_via_symbols
