	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen11_hpd_irq_setup
_gen11_hpd_irq_setup:                   ## @gen11_hpd_irq_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
	callq	_INTEL_GEN
	cmpl	$12, %eax
	jl	LBB0_1
## %bb.2:
	movq	_hpd_gen12@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_hpd_gen11@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_intel_hpd_enabled_irqs
	movq	_GEN11_DE_TC_HOTPLUG_MASK@GOTPCREL(%rip), %rax
	movq	_GEN11_DE_TBT_HOTPLUG_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_GEN11_DE_HPD_IMR@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_I915_READ
	notl	%ebx
	andl	%eax, %ebx
	movl	(%r15), %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	(%r15), %edi
	callq	_POSTING_READ
	movq	%r14, %rdi
	callq	_gen11_hpd_detection_setup
	movq	%r14, %rdi
	callq	_INTEL_PCH_TYPE
	movq	_PCH_TGP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	callq	_INTEL_PCH_TYPE
	movq	_PCH_ICP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_7
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tgp_hpd_irq_setup              ## TAILCALL
LBB0_7:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_icp_hpd_irq_setup              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_hpd_gen12,8,3                  ## @hpd_gen12
	.comm	_hpd_gen11,8,3                  ## @hpd_gen11
	.comm	_GEN11_DE_TC_HOTPLUG_MASK,4,2   ## @GEN11_DE_TC_HOTPLUG_MASK
	.comm	_GEN11_DE_TBT_HOTPLUG_MASK,4,2  ## @GEN11_DE_TBT_HOTPLUG_MASK
	.comm	_GEN11_DE_HPD_IMR,4,2           ## @GEN11_DE_HPD_IMR
	.comm	_PCH_TGP,8,3                    ## @PCH_TGP
	.comm	_PCH_ICP,8,3                    ## @PCH_ICP
	.no_dead_strip	_gen11_hpd_irq_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_irq_setup
_gen11_hpd_irq_setup:                   ; @gen11_hpd_irq_setup
	.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
	bl	_INTEL_GEN
Lloh0:
	adrp	x8, _hpd_gen12@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hpd_gen12@GOTPAGEOFF]
Lloh2:
	adrp	x9, _hpd_gen11@GOTPAGE
Lloh3:
	ldr	x9, [x9, _hpd_gen11@GOTPAGEOFF]
	cmp	w0, #11
	csel	x8, x8, x9, gt
	ldr	x1, [x8]
	mov	x0, x19
	bl	_intel_hpd_enabled_irqs
Lloh4:
	adrp	x8, _GEN11_DE_TC_HOTPLUG_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GEN11_DE_TC_HOTPLUG_MASK@GOTPAGEOFF]
Lloh6:
	adrp	x9, _GEN11_DE_TBT_HOTPLUG_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GEN11_DE_TBT_HOTPLUG_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	ldr	w9, [x9]
	orr	w20, w9, w8
Lloh10:
	adrp	x21, _GEN11_DE_HPD_IMR@GOTPAGE
Lloh11:
	ldr	x21, [x21, _GEN11_DE_HPD_IMR@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_I915_READ
	bic	w1, w0, w20
	ldr	w0, [x21]
	bl	_I915_WRITE
	ldr	w0, [x21]
	bl	_POSTING_READ
	mov	x0, x19
	bl	_gen11_hpd_detection_setup
	mov	x0, x19
	bl	_INTEL_PCH_TYPE
Lloh12:
	adrp	x8, _PCH_TGP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PCH_TGP@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_INTEL_PCH_TYPE
Lloh15:
	adrp	x8, _PCH_ICP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PCH_ICP@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_4
; %bb.2:
	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
	ret
LBB0_3:
	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	_tgp_hpd_irq_setup
LBB0_4:
	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_irq_setup
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_hpd_gen12,8,3                  ; @hpd_gen12
	.comm	_hpd_gen11,8,3                  ; @hpd_gen11
	.comm	_GEN11_DE_TC_HOTPLUG_MASK,4,2   ; @GEN11_DE_TC_HOTPLUG_MASK
	.comm	_GEN11_DE_TBT_HOTPLUG_MASK,4,2  ; @GEN11_DE_TBT_HOTPLUG_MASK
	.comm	_GEN11_DE_HPD_IMR,4,2           ; @GEN11_DE_HPD_IMR
	.comm	_PCH_TGP,8,3                    ; @PCH_TGP
	.comm	_PCH_ICP,8,3                    ; @PCH_ICP
	.no_dead_strip	_gen11_hpd_irq_setup
.subsections_via_symbols
