	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_hpd_irq_setup
_i915_hpd_irq_setup:                    ## @i915_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	callq	_I915_HAS_HOTPLUG
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	_PORT_HOTPLUG_EN@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_I915_READ
	movl	(%rbx), %ecx
	movq	_PORTB_HOTPLUG_INT_STATUS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ecx, %edx
	je	LBB0_3
## %bb.2:
	movq	_PORTB_HOTPLUG_INT_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_3:
	movq	_PORTC_HOTPLUG_INT_STATUS@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%ecx, %esi
	je	LBB0_5
## %bb.4:
	movq	_PORTC_HOTPLUG_INT_EN@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
LBB0_5:
	movq	_PORTD_HOTPLUG_INT_STATUS@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	andl	%ecx, %edi
	je	LBB0_7
## %bb.6:
	movq	_PORTD_HOTPLUG_INT_EN@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
LBB0_7:
	orl	%edi, %esi
	orl	%eax, %edx
	movq	_SDVOC_HOTPLUG_INT_STATUS_I915@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ecx, %eax
	je	LBB0_9
## %bb.8:
	movq	_SDVOC_HOTPLUG_INT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	orl	%esi, %edx
	movq	_SDVOB_HOTPLUG_INT_STATUS_I915@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%ecx, %esi
	je	LBB0_11
## %bb.10:
	movq	_SDVOB_HOTPLUG_INT_EN@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
LBB0_11:
	orl	%esi, %eax
	orl	%eax, %edx
	movq	_CRT_HOTPLUG_INT_STATUS@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	movq	_CRT_HOTPLUG_INT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	%edx, %esi
	movq	_CRT_HOTPLUG_VOLTAGE_COMPARE_50@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	testl	%ecx, %ecx
	cmovel	%edx, %esi
	movl	(%r14), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_HOTPLUG_EN,4,2            ## @PORT_HOTPLUG_EN
	.comm	_PORTB_HOTPLUG_INT_STATUS,4,2   ## @PORTB_HOTPLUG_INT_STATUS
	.comm	_PORTB_HOTPLUG_INT_EN,4,2       ## @PORTB_HOTPLUG_INT_EN
	.comm	_PORTC_HOTPLUG_INT_STATUS,4,2   ## @PORTC_HOTPLUG_INT_STATUS
	.comm	_PORTC_HOTPLUG_INT_EN,4,2       ## @PORTC_HOTPLUG_INT_EN
	.comm	_PORTD_HOTPLUG_INT_STATUS,4,2   ## @PORTD_HOTPLUG_INT_STATUS
	.comm	_PORTD_HOTPLUG_INT_EN,4,2       ## @PORTD_HOTPLUG_INT_EN
	.comm	_SDVOC_HOTPLUG_INT_STATUS_I915,4,2 ## @SDVOC_HOTPLUG_INT_STATUS_I915
	.comm	_SDVOC_HOTPLUG_INT_EN,4,2       ## @SDVOC_HOTPLUG_INT_EN
	.comm	_SDVOB_HOTPLUG_INT_STATUS_I915,4,2 ## @SDVOB_HOTPLUG_INT_STATUS_I915
	.comm	_SDVOB_HOTPLUG_INT_EN,4,2       ## @SDVOB_HOTPLUG_INT_EN
	.comm	_CRT_HOTPLUG_INT_STATUS,4,2     ## @CRT_HOTPLUG_INT_STATUS
	.comm	_CRT_HOTPLUG_INT_EN,4,2         ## @CRT_HOTPLUG_INT_EN
	.comm	_CRT_HOTPLUG_VOLTAGE_COMPARE_50,4,2 ## @CRT_HOTPLUG_VOLTAGE_COMPARE_50
	.no_dead_strip	_i915_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 i915_hpd_irq_setup
_i915_hpd_irq_setup:                    ; @i915_hpd_irq_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
	ldr	x19, [x0]
	bl	_I915_HAS_HOTPLUG
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x20, _PORT_HOTPLUG_EN@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PORT_HOTPLUG_EN@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_I915_READ
Lloh2:
	adrp	x8, _PORTB_HOTPLUG_INT_STATUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PORTB_HOTPLUG_INT_STATUS@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x10, _PORTB_HOTPLUG_INT_EN@GOTPAGE
Lloh6:
	ldr	x10, [x10, _PORTB_HOTPLUG_INT_EN@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w8, w9
	csel	w8, wzr, w10, eq
	orr	w8, w8, w0
Lloh8:
	adrp	x10, _PORTC_HOTPLUG_INT_STATUS@GOTPAGE
Lloh9:
	ldr	x10, [x10, _PORTC_HOTPLUG_INT_STATUS@GOTPAGEOFF]
Lloh10:
	adrp	x11, _PORTC_HOTPLUG_INT_EN@GOTPAGE
Lloh11:
	ldr	x11, [x11, _PORTC_HOTPLUG_INT_EN@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
Lloh13:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w10, wzr, w11, eq
Lloh14:
	adrp	x11, _PORTD_HOTPLUG_INT_STATUS@GOTPAGE
Lloh15:
	ldr	x11, [x11, _PORTD_HOTPLUG_INT_STATUS@GOTPAGEOFF]
	orr	w8, w8, w10
Lloh16:
	ldr	w10, [x11]
Lloh17:
	adrp	x11, _PORTD_HOTPLUG_INT_EN@GOTPAGE
Lloh18:
	ldr	x11, [x11, _PORTD_HOTPLUG_INT_EN@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w10, wzr, w11, eq
	orr	w8, w8, w10
Lloh20:
	adrp	x10, _SDVOC_HOTPLUG_INT_STATUS_I915@GOTPAGE
Lloh21:
	ldr	x10, [x10, _SDVOC_HOTPLUG_INT_STATUS_I915@GOTPAGEOFF]
Lloh22:
	adrp	x11, _SDVOC_HOTPLUG_INT_EN@GOTPAGE
Lloh23:
	ldr	x11, [x11, _SDVOC_HOTPLUG_INT_EN@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
Lloh25:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w10, wzr, w11, eq
Lloh26:
	adrp	x11, _SDVOB_HOTPLUG_INT_STATUS_I915@GOTPAGE
Lloh27:
	ldr	x11, [x11, _SDVOB_HOTPLUG_INT_STATUS_I915@GOTPAGEOFF]
	orr	w8, w8, w10
Lloh28:
	ldr	w10, [x11]
Lloh29:
	adrp	x11, _SDVOB_HOTPLUG_INT_EN@GOTPAGE
Lloh30:
	ldr	x11, [x11, _SDVOB_HOTPLUG_INT_EN@GOTPAGEOFF]
Lloh31:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w10, wzr, w11, eq
	orr	w8, w8, w10
Lloh32:
	adrp	x10, _CRT_HOTPLUG_INT_STATUS@GOTPAGE
Lloh33:
	ldr	x10, [x10, _CRT_HOTPLUG_INT_STATUS@GOTPAGEOFF]
Lloh34:
	adrp	x11, _CRT_HOTPLUG_INT_EN@GOTPAGE
Lloh35:
	ldr	x11, [x11, _CRT_HOTPLUG_INT_EN@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x10]
Lloh37:
	ldr	w11, [x11]
	orr	w11, w8, w11
Lloh38:
	adrp	x12, _CRT_HOTPLUG_VOLTAGE_COMPARE_50@GOTPAGE
Lloh39:
	ldr	x12, [x12, _CRT_HOTPLUG_VOLTAGE_COMPARE_50@GOTPAGEOFF]
Lloh40:
	ldr	w12, [x12]
	orr	w11, w11, w12
	tst	w10, w9
	csel	w1, w8, w11, eq
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_I915_WRITE
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh36
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh24
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_HOTPLUG_EN,4,2            ; @PORT_HOTPLUG_EN
	.comm	_PORTB_HOTPLUG_INT_STATUS,4,2   ; @PORTB_HOTPLUG_INT_STATUS
	.comm	_PORTB_HOTPLUG_INT_EN,4,2       ; @PORTB_HOTPLUG_INT_EN
	.comm	_PORTC_HOTPLUG_INT_STATUS,4,2   ; @PORTC_HOTPLUG_INT_STATUS
	.comm	_PORTC_HOTPLUG_INT_EN,4,2       ; @PORTC_HOTPLUG_INT_EN
	.comm	_PORTD_HOTPLUG_INT_STATUS,4,2   ; @PORTD_HOTPLUG_INT_STATUS
	.comm	_PORTD_HOTPLUG_INT_EN,4,2       ; @PORTD_HOTPLUG_INT_EN
	.comm	_SDVOC_HOTPLUG_INT_STATUS_I915,4,2 ; @SDVOC_HOTPLUG_INT_STATUS_I915
	.comm	_SDVOC_HOTPLUG_INT_EN,4,2       ; @SDVOC_HOTPLUG_INT_EN
	.comm	_SDVOB_HOTPLUG_INT_STATUS_I915,4,2 ; @SDVOB_HOTPLUG_INT_STATUS_I915
	.comm	_SDVOB_HOTPLUG_INT_EN,4,2       ; @SDVOB_HOTPLUG_INT_EN
	.comm	_CRT_HOTPLUG_INT_STATUS,4,2     ; @CRT_HOTPLUG_INT_STATUS
	.comm	_CRT_HOTPLUG_INT_EN,4,2         ; @CRT_HOTPLUG_INT_EN
	.comm	_CRT_HOTPLUG_VOLTAGE_COMPARE_50,4,2 ; @CRT_HOTPLUG_VOLTAGE_COMPARE_50
	.no_dead_strip	_i915_hpd_irq_setup
.subsections_via_symbols
