	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen11_hpd_irq_handler
_gen11_hpd_irq_handler:                 ## @gen11_hpd_irq_handler
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	movq	_GEN11_DE_TC_HOTPLUG_MASK@GOTPCREL(%rip), %rax
	movq	_GEN11_DE_TBT_HOTPLUG_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	andl	%esi, %r13d
	movl	(%rax), %r14d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_INTEL_GEN
	cmpl	$12, %eax
	movq	_gen11_port_hotplug_long_detect@GOTPCREL(%rip), %rax
	cmovgeq	_gen12_port_hotplug_long_detect@GOTPCREL(%rip), %rax
	movq	_hpd_gen11@GOTPCREL(%rip), %rcx
	cmovgeq	_hpd_gen12@GOTPCREL(%rip), %rcx
	movl	(%rax), %r15d
	movq	(%rcx), %rbx
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	andl	%r12d, %r14d
	je	LBB0_2
## %bb.1:
	movq	_GEN11_TC_HOTPLUG_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %r12d
	movq	_GEN11_TC_HOTPLUG_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_I915_WRITE
	movl	%r15d, (%rsp)
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %ecx
	movl	%r12d, %r8d
	movq	%rbx, %r9
	callq	_intel_get_hpd_pins
LBB0_2:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	testl	%r13d, %r13d
	je	LBB0_4
## %bb.3:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	_GEN11_TBT_HOTPLUG_CTL@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movl	(%r12), %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movl	%r15d, (%rsp)
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r13d, %ecx
	movl	%ebx, %r8d
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	callq	_intel_get_hpd_pins
LBB0_4:
	movl	-48(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_6
## %bb.5:
	movl	-44(%rbp), %edx
	movq	%r14, %rdi
	callq	_intel_hpd_irq_handler
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str(%rip), %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_DRM_ERROR
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	_gen12_port_hotplug_long_detect,4,2 ## @gen12_port_hotplug_long_detect
	.comm	_hpd_gen12,8,3                  ## @hpd_gen12
	.comm	_gen11_port_hotplug_long_detect,4,2 ## @gen11_port_hotplug_long_detect
	.comm	_hpd_gen11,8,3                  ## @hpd_gen11
	.comm	_GEN11_TC_HOTPLUG_CTL,4,2       ## @GEN11_TC_HOTPLUG_CTL
	.comm	_GEN11_TBT_HOTPLUG_CTL,4,2      ## @GEN11_TBT_HOTPLUG_CTL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected DE HPD interrupt 0x%08x\n"

	.no_dead_strip	_gen11_hpd_irq_handler
.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_handler
_gen11_hpd_irq_handler:                 ; @gen11_hpd_irq_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x1
	mov	x20, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _GEN11_DE_TC_HOTPLUG_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GEN11_DE_TC_HOTPLUG_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w24, w8, w1
Lloh3:
	adrp	x8, _GEN11_DE_TBT_HOTPLUG_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GEN11_DE_TBT_HOTPLUG_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w21, w8, w1
	bl	_INTEL_GEN
Lloh6:
	adrp	x8, _gen12_port_hotplug_long_detect@GOTPAGE
Lloh7:
	ldr	x8, [x8, _gen12_port_hotplug_long_detect@GOTPAGEOFF]
Lloh8:
	adrp	x9, _gen11_port_hotplug_long_detect@GOTPAGE
Lloh9:
	ldr	x9, [x9, _gen11_port_hotplug_long_detect@GOTPAGEOFF]
	cmp	w0, #11
	csel	x8, x8, x9, gt
	ldr	w22, [x8]
Lloh10:
	adrp	x8, _hpd_gen12@GOTPAGE
Lloh11:
	ldr	x8, [x8, _hpd_gen12@GOTPAGEOFF]
Lloh12:
	adrp	x9, _hpd_gen11@GOTPAGE
Lloh13:
	ldr	x9, [x9, _hpd_gen11@GOTPAGEOFF]
	csel	x8, x8, x9, gt
	ldr	x23, [x8]
	cbz	w24, LBB0_2
; %bb.1:
Lloh14:
	adrp	x26, _GEN11_TC_HOTPLUG_CTL@GOTPAGE
Lloh15:
	ldr	x26, [x26, _GEN11_TC_HOTPLUG_CTL@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_I915_READ
	mov	x25, x0
	ldr	w0, [x26]
	mov	x1, x25
	bl	_I915_WRITE
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x20
	mov	x3, x24
	mov	x4, x25
	mov	x5, x23
	mov	x6, x22
	bl	_intel_get_hpd_pins
LBB0_2:
	cbz	w21, LBB0_4
; %bb.3:
Lloh16:
	adrp	x25, _GEN11_TBT_HOTPLUG_CTL@GOTPAGE
Lloh17:
	ldr	x25, [x25, _GEN11_TBT_HOTPLUG_CTL@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_I915_READ
	mov	x24, x0
	ldr	w0, [x25]
	mov	x1, x24
	bl	_I915_WRITE
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x20
	mov	x3, x21
	mov	x4, x24
	mov	x5, x23
	mov	x6, x22
	bl	_intel_get_hpd_pins
LBB0_4:
	ldr	w1, [sp, #12]
	cbz	w1, LBB0_6
; %bb.5:
	ldr	w2, [sp, #8]
	mov	x0, x20
	bl	_intel_hpd_irq_handler
	b	LBB0_7
LBB0_6:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_DRM_ERROR
LBB0_7:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.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	_gen12_port_hotplug_long_detect,4,2 ; @gen12_port_hotplug_long_detect
	.comm	_hpd_gen12,8,3                  ; @hpd_gen12
	.comm	_gen11_port_hotplug_long_detect,4,2 ; @gen11_port_hotplug_long_detect
	.comm	_hpd_gen11,8,3                  ; @hpd_gen11
	.comm	_GEN11_TC_HOTPLUG_CTL,4,2       ; @GEN11_TC_HOTPLUG_CTL
	.comm	_GEN11_TBT_HOTPLUG_CTL,4,2      ; @GEN11_TBT_HOTPLUG_CTL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected DE HPD interrupt 0x%08x\n"

	.no_dead_strip	_gen11_hpd_irq_handler
.subsections_via_symbols
