	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i965_hpd_irq_setup
_i965_hpd_irq_setup:                    ## @i965_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
	movq	(%rdi), %rbx
	movl	(%rbx), %eax
	movq	_PORTB_HOTPLUG_INT_STATUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	je	LBB0_2
## %bb.1:
	movq	_PORTB_HOTPLUG_INT_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_2:
	movq	_PORTC_HOTPLUG_INT_STATUS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r15d
	andl	%eax, %r15d
	je	LBB0_4
## %bb.3:
	movq	_PORTC_HOTPLUG_INT_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r15d
LBB0_4:
	orl	%ecx, %r15d
	movq	_PORTD_HOTPLUG_INT_STATUS@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	je	LBB0_6
## %bb.5:
	movq	_PORTD_HOTPLUG_INT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	orl	%eax, %r15d
	movq	%r14, %rdi
	callq	_IS_G4X
	movl	(%rbx), %ecx
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	_SDVOC_HOTPLUG_INT_STATUS_G4X@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%ecx, %ebx
	je	LBB0_9
## %bb.8:
	movq	_SDVOC_HOTPLUG_INT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_9:
	orl	%r15d, %ebx
	movq	_SDVOB_HOTPLUG_INT_STATUS_G4X@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_15
LBB0_14:
	movq	_SDVOB_HOTPLUG_INT_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_15:
	movq	_CRT_HOTPLUG_INT_STATUS@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_19
## %bb.16:
	movq	_CRT_HOTPLUG_INT_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_IS_G4X
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	_CRT_HOTPLUG_ACTIVATION_PERIOD_64@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_18:
	orl	%ecx, %ebx
	movq	_CRT_HOTPLUG_VOLTAGE_COMPARE_50@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_19:
	movq	_PORT_HOTPLUG_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
LBB0_10:
	movq	_SDVOC_HOTPLUG_INT_STATUS_I965@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%ecx, %ebx
	je	LBB0_12
## %bb.11:
	movq	_SDVOC_HOTPLUG_INT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_12:
	orl	%r15d, %ebx
	movq	_SDVOB_HOTPLUG_INT_STATUS_I965@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	jne	LBB0_14
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.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_G4X,4,2 ## @SDVOC_HOTPLUG_INT_STATUS_G4X
	.comm	_SDVOC_HOTPLUG_INT_EN,4,2       ## @SDVOC_HOTPLUG_INT_EN
	.comm	_SDVOB_HOTPLUG_INT_STATUS_G4X,4,2 ## @SDVOB_HOTPLUG_INT_STATUS_G4X
	.comm	_SDVOB_HOTPLUG_INT_EN,4,2       ## @SDVOB_HOTPLUG_INT_EN
	.comm	_SDVOC_HOTPLUG_INT_STATUS_I965,4,2 ## @SDVOC_HOTPLUG_INT_STATUS_I965
	.comm	_SDVOB_HOTPLUG_INT_STATUS_I965,4,2 ## @SDVOB_HOTPLUG_INT_STATUS_I965
	.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_ACTIVATION_PERIOD_64,4,2 ## @CRT_HOTPLUG_ACTIVATION_PERIOD_64
	.comm	_CRT_HOTPLUG_VOLTAGE_COMPARE_50,4,2 ## @CRT_HOTPLUG_VOLTAGE_COMPARE_50
	.comm	_PORT_HOTPLUG_EN,4,2            ## @PORT_HOTPLUG_EN
	.no_dead_strip	_i965_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 i965_hpd_irq_setup
_i965_hpd_irq_setup:                    ; @i965_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
	ldr	x21, [x0]
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _PORTB_HOTPLUG_INT_STATUS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PORTB_HOTPLUG_INT_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _PORTB_HOTPLUG_INT_EN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PORTB_HOTPLUG_INT_EN@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w9, wzr, w10, eq
Lloh6:
	adrp	x10, _PORTC_HOTPLUG_INT_STATUS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PORTC_HOTPLUG_INT_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _PORTC_HOTPLUG_INT_EN@GOTPAGE
Lloh10:
	ldr	x11, [x11, _PORTC_HOTPLUG_INT_EN@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w10, wzr, w11, eq
	orr	w9, w10, w9
Lloh12:
	adrp	x10, _PORTD_HOTPLUG_INT_STATUS@GOTPAGE
Lloh13:
	ldr	x10, [x10, _PORTD_HOTPLUG_INT_STATUS@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
Lloh15:
	adrp	x11, _PORTD_HOTPLUG_INT_EN@GOTPAGE
Lloh16:
	ldr	x11, [x11, _PORTD_HOTPLUG_INT_EN@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w8, wzr, w11, eq
	orr	w20, w9, w8
	bl	_IS_G4X
	ldr	w8, [x21]
	cbz	x0, LBB0_2
; %bb.1:
Lloh18:
	adrp	x9, _SDVOC_HOTPLUG_INT_STATUS_G4X@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SDVOC_HOTPLUG_INT_STATUS_G4X@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _SDVOC_HOTPLUG_INT_EN@GOTPAGE
Lloh22:
	ldr	x10, [x10, _SDVOC_HOTPLUG_INT_EN@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w9, wzr, w10, eq
	orr	w1, w9, w20
Lloh24:
	adrp	x9, _SDVOB_HOTPLUG_INT_STATUS_G4X@GOTPAGE
Lloh25:
	ldr	x9, [x9, _SDVOB_HOTPLUG_INT_STATUS_G4X@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh26:
	adrp	x9, _SDVOC_HOTPLUG_INT_STATUS_I965@GOTPAGE
Lloh27:
	ldr	x9, [x9, _SDVOC_HOTPLUG_INT_STATUS_I965@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
Lloh29:
	adrp	x10, _SDVOC_HOTPLUG_INT_EN@GOTPAGE
Lloh30:
	ldr	x10, [x10, _SDVOC_HOTPLUG_INT_EN@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w9, wzr, w10, eq
	orr	w1, w9, w20
Lloh32:
	adrp	x9, _SDVOB_HOTPLUG_INT_STATUS_I965@GOTPAGE
Lloh33:
	ldr	x9, [x9, _SDVOB_HOTPLUG_INT_STATUS_I965@GOTPAGEOFF]
LBB0_3:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh34:
	adrp	x9, _SDVOB_HOTPLUG_INT_EN@GOTPAGE
Lloh35:
	ldr	x9, [x9, _SDVOB_HOTPLUG_INT_EN@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w1, w9, w1
LBB0_5:
Lloh37:
	adrp	x9, _CRT_HOTPLUG_INT_STATUS@GOTPAGE
Lloh38:
	ldr	x9, [x9, _CRT_HOTPLUG_INT_STATUS@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh40:
	adrp	x8, _CRT_HOTPLUG_INT_EN@GOTPAGE
Lloh41:
	ldr	x8, [x8, _CRT_HOTPLUG_INT_EN@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	orr	w20, w8, w1
	mov	x0, x19
	bl	_IS_G4X
Lloh43:
	adrp	x8, _CRT_HOTPLUG_ACTIVATION_PERIOD_64@GOTPAGE
Lloh44:
	ldr	x8, [x8, _CRT_HOTPLUG_ACTIVATION_PERIOD_64@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w8, w20, w8
Lloh46:
	adrp	x9, _CRT_HOTPLUG_VOLTAGE_COMPARE_50@GOTPAGE
Lloh47:
	ldr	x9, [x9, _CRT_HOTPLUG_VOLTAGE_COMPARE_50@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	orr	w1, w8, w9
LBB0_7:
Lloh49:
	adrp	x8, _PORT_HOTPLUG_EN@GOTPAGE
Lloh50:
	ldr	x8, [x8, _PORT_HOTPLUG_EN@GOTPAGEOFF]
Lloh51:
	ldr	w0, [x8]
	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	_I915_WRITE
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.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_G4X,4,2 ; @SDVOC_HOTPLUG_INT_STATUS_G4X
	.comm	_SDVOC_HOTPLUG_INT_EN,4,2       ; @SDVOC_HOTPLUG_INT_EN
	.comm	_SDVOB_HOTPLUG_INT_STATUS_G4X,4,2 ; @SDVOB_HOTPLUG_INT_STATUS_G4X
	.comm	_SDVOB_HOTPLUG_INT_EN,4,2       ; @SDVOB_HOTPLUG_INT_EN
	.comm	_SDVOC_HOTPLUG_INT_STATUS_I965,4,2 ; @SDVOC_HOTPLUG_INT_STATUS_I965
	.comm	_SDVOB_HOTPLUG_INT_STATUS_I965,4,2 ; @SDVOB_HOTPLUG_INT_STATUS_I965
	.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_ACTIVATION_PERIOD_64,4,2 ; @CRT_HOTPLUG_ACTIVATION_PERIOD_64
	.comm	_CRT_HOTPLUG_VOLTAGE_COMPARE_50,4,2 ; @CRT_HOTPLUG_VOLTAGE_COMPARE_50
	.comm	_PORT_HOTPLUG_EN,4,2            ; @PORT_HOTPLUG_EN
	.no_dead_strip	_i965_hpd_irq_setup
.subsections_via_symbols
