	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen11_hpd_detection_setup
_gen11_hpd_detection_setup:             ## @gen11_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	%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	_GEN11_TC_HOTPLUG_CTL@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_I915_READ
	movl	%eax, %r14d
	movq	_PORT_TC1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GEN11_HOTPLUG_CTL_ENABLE
	movl	%eax, %r12d
	movq	_PORT_TC2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GEN11_HOTPLUG_CTL_ENABLE
	movl	%eax, %r15d
	movq	_PORT_TC3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GEN11_HOTPLUG_CTL_ENABLE
	movl	%eax, %ebx
	movq	_PORT_TC4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GEN11_HOTPLUG_CTL_ENABLE
	orl	%r14d, %r12d
	orl	%r15d, %ebx
	orl	%r12d, %ebx
	orl	%eax, %ebx
	movl	(%r13), %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movq	_GEN11_TBT_HOTPLUG_CTL@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_I915_READ
	movl	%eax, %r14d
	movq	_PORT_TC1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GEN11_HOTPLUG_CTL_ENABLE
	movl	%eax, %r12d
	movq	_PORT_TC2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GEN11_HOTPLUG_CTL_ENABLE
	movl	%eax, %r15d
	movq	_PORT_TC3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GEN11_HOTPLUG_CTL_ENABLE
	movl	%eax, %ebx
	movq	_PORT_TC4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GEN11_HOTPLUG_CTL_ENABLE
	orl	%r14d, %r12d
	orl	%r15d, %ebx
	orl	%r12d, %ebx
	orl	%eax, %ebx
	movl	(%r13), %edi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN11_TC_HOTPLUG_CTL,4,2       ## @GEN11_TC_HOTPLUG_CTL
	.comm	_PORT_TC1,4,2                   ## @PORT_TC1
	.comm	_PORT_TC2,4,2                   ## @PORT_TC2
	.comm	_PORT_TC3,4,2                   ## @PORT_TC3
	.comm	_PORT_TC4,4,2                   ## @PORT_TC4
	.comm	_GEN11_TBT_HOTPLUG_CTL,4,2      ## @GEN11_TBT_HOTPLUG_CTL
	.no_dead_strip	_gen11_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 gen11_hpd_detection_setup
_gen11_hpd_detection_setup:             ; @gen11_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
Lloh0:
	adrp	x23, _GEN11_TC_HOTPLUG_CTL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GEN11_TC_HOTPLUG_CTL@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_I915_READ
	mov	x19, x0
Lloh2:
	adrp	x24, _PORT_TC1@GOTPAGE
Lloh3:
	ldr	x24, [x24, _PORT_TC1@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_GEN11_HOTPLUG_CTL_ENABLE
	mov	x20, x0
Lloh4:
	adrp	x25, _PORT_TC2@GOTPAGE
Lloh5:
	ldr	x25, [x25, _PORT_TC2@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_GEN11_HOTPLUG_CTL_ENABLE
	mov	x21, x0
Lloh6:
	adrp	x26, _PORT_TC3@GOTPAGE
Lloh7:
	ldr	x26, [x26, _PORT_TC3@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_GEN11_HOTPLUG_CTL_ENABLE
	mov	x22, x0
Lloh8:
	adrp	x27, _PORT_TC4@GOTPAGE
Lloh9:
	ldr	x27, [x27, _PORT_TC4@GOTPAGEOFF]
	ldr	w0, [x27]
	bl	_GEN11_HOTPLUG_CTL_ENABLE
	orr	w8, w20, w19
	orr	w8, w8, w21
	orr	w8, w8, w22
	orr	w1, w8, w0
	ldr	w0, [x23]
	bl	_I915_WRITE
Lloh10:
	adrp	x23, _GEN11_TBT_HOTPLUG_CTL@GOTPAGE
Lloh11:
	ldr	x23, [x23, _GEN11_TBT_HOTPLUG_CTL@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_I915_READ
	mov	x19, x0
	ldr	w0, [x24]
	bl	_GEN11_HOTPLUG_CTL_ENABLE
	mov	x20, x0
	ldr	w0, [x25]
	bl	_GEN11_HOTPLUG_CTL_ENABLE
	mov	x21, x0
	ldr	w0, [x26]
	bl	_GEN11_HOTPLUG_CTL_ENABLE
	mov	x22, x0
	ldr	w0, [x27]
	bl	_GEN11_HOTPLUG_CTL_ENABLE
	orr	w8, w20, w19
	orr	w8, w8, w21
	orr	w8, w8, w22
	orr	w1, w8, w0
	ldr	w0, [x23]
	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 AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN11_TC_HOTPLUG_CTL,4,2       ; @GEN11_TC_HOTPLUG_CTL
	.comm	_PORT_TC1,4,2                   ; @PORT_TC1
	.comm	_PORT_TC2,4,2                   ; @PORT_TC2
	.comm	_PORT_TC3,4,2                   ; @PORT_TC3
	.comm	_PORT_TC4,4,2                   ; @PORT_TC4
	.comm	_GEN11_TBT_HOTPLUG_CTL,4,2      ; @GEN11_TBT_HOTPLUG_CTL
	.no_dead_strip	_gen11_hpd_detection_setup
.subsections_via_symbols
