	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i9xx_hpd_irq_ack
_i9xx_hpd_irq_ack:                      ## @i9xx_hpd_irq_ack
	.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, %rbx
	callq	_IS_G4X
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_IS_VALLEYVIEW
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_IS_CHERRYVIEW
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	_HOTPLUG_INT_STATUS_G4X@GOTPCREL(%rip), %rax
	movq	_DP_AUX_CHANNEL_MASK_INT_STATUS_G4X@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
LBB0_5:
	movq	_PORT_HOTPLUG_STAT@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_I915_READ
	movl	%eax, %ebx
	andl	%r15d, %ebx
	je	LBB0_6
## %bb.7:
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	(%r14), %edi
	callq	_I915_READ
	andl	%r15d, %eax
	je	LBB0_17
## %bb.8:
	orl	%eax, %ebx
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	(%r14), %edi
	callq	_I915_READ
	andl	%r15d, %eax
	je	LBB0_17
## %bb.9:
	orl	%eax, %ebx
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	(%r14), %edi
	callq	_I915_READ
	andl	%r15d, %eax
	je	LBB0_17
## %bb.10:
	orl	%eax, %ebx
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	(%r14), %edi
	callq	_I915_READ
	andl	%r15d, %eax
	je	LBB0_17
## %bb.11:
	orl	%eax, %ebx
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	(%r14), %edi
	callq	_I915_READ
	andl	%r15d, %eax
	je	LBB0_17
## %bb.12:
	orl	%eax, %ebx
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	(%r14), %edi
	callq	_I915_READ
	andl	%r15d, %eax
	je	LBB0_17
## %bb.13:
	orl	%eax, %ebx
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	(%r14), %edi
	callq	_I915_READ
	andl	%r15d, %eax
	je	LBB0_17
## %bb.14:
	orl	%eax, %ebx
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	(%r14), %edi
	callq	_I915_READ
	andl	%r15d, %eax
	je	LBB0_17
## %bb.15:
	orl	%eax, %ebx
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	(%r14), %edi
	callq	_I915_READ
	andl	%r15d, %eax
	je	LBB0_17
## %bb.16:
	orl	%eax, %ebx
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	(%r14), %edi
	callq	_I915_READ
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_WARN_ONCE
	jmp	LBB0_17
LBB0_6:
	xorl	%ebx, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_HOTPLUG_INT_STATUS_I915@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_HOTPLUG_INT_STATUS_G4X,4,2     ## @HOTPLUG_INT_STATUS_G4X
	.comm	_DP_AUX_CHANNEL_MASK_INT_STATUS_G4X,4,2 ## @DP_AUX_CHANNEL_MASK_INT_STATUS_G4X
	.comm	_HOTPLUG_INT_STATUS_I915,4,2    ## @HOTPLUG_INT_STATUS_I915
	.comm	_PORT_HOTPLUG_STAT,4,2          ## @PORT_HOTPLUG_STAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PORT_HOTPLUG_STAT did not clear (0x%08x)\n"

	.no_dead_strip	_i9xx_hpd_irq_ack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i9xx_hpd_irq_ack
_i9xx_hpd_irq_ack:                      ; @i9xx_hpd_irq_ack
	.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	_IS_G4X
	cbnz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_IS_VALLEYVIEW
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_IS_CHERRYVIEW
	cbz	x0, LBB0_16
LBB0_3:
Lloh0:
	adrp	x8, _HOTPLUG_INT_STATUS_G4X@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HOTPLUG_INT_STATUS_G4X@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DP_AUX_CHANNEL_MASK_INT_STATUS_G4X@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DP_AUX_CHANNEL_MASK_INT_STATUS_G4X@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w21, w9, w8
LBB0_4:
Lloh6:
	adrp	x20, _PORT_HOTPLUG_STAT@GOTPAGE
Lloh7:
	ldr	x20, [x20, _PORT_HOTPLUG_STAT@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_I915_READ
	ands	w19, w0, w21
	b.eq	LBB0_15
; %bb.5:
	ldr	w0, [x20]
	mov	x1, x19
	bl	_I915_WRITE
	ldr	w0, [x20]
	bl	_I915_READ
	ands	w8, w0, w21
	b.eq	LBB0_15
; %bb.6:
	orr	w19, w8, w19
	ldr	w0, [x20]
	mov	x1, x19
	bl	_I915_WRITE
	ldr	w0, [x20]
	bl	_I915_READ
	ands	w8, w0, w21
	b.eq	LBB0_15
; %bb.7:
	orr	w19, w8, w19
	ldr	w0, [x20]
	mov	x1, x19
	bl	_I915_WRITE
	ldr	w0, [x20]
	bl	_I915_READ
	ands	w8, w0, w21
	b.eq	LBB0_15
; %bb.8:
	orr	w19, w8, w19
	ldr	w0, [x20]
	mov	x1, x19
	bl	_I915_WRITE
	ldr	w0, [x20]
	bl	_I915_READ
	ands	w8, w0, w21
	b.eq	LBB0_15
; %bb.9:
	orr	w19, w8, w19
	ldr	w0, [x20]
	mov	x1, x19
	bl	_I915_WRITE
	ldr	w0, [x20]
	bl	_I915_READ
	ands	w8, w0, w21
	b.eq	LBB0_15
; %bb.10:
	orr	w19, w8, w19
	ldr	w0, [x20]
	mov	x1, x19
	bl	_I915_WRITE
	ldr	w0, [x20]
	bl	_I915_READ
	ands	w8, w0, w21
	b.eq	LBB0_15
; %bb.11:
	orr	w19, w8, w19
	ldr	w0, [x20]
	mov	x1, x19
	bl	_I915_WRITE
	ldr	w0, [x20]
	bl	_I915_READ
	ands	w8, w0, w21
	b.eq	LBB0_15
; %bb.12:
	orr	w19, w8, w19
	ldr	w0, [x20]
	mov	x1, x19
	bl	_I915_WRITE
	ldr	w0, [x20]
	bl	_I915_READ
	ands	w8, w0, w21
	b.eq	LBB0_15
; %bb.13:
	orr	w19, w8, w19
	ldr	w0, [x20]
	mov	x1, x19
	bl	_I915_WRITE
	ldr	w0, [x20]
	bl	_I915_READ
	ands	w8, w0, w21
	b.eq	LBB0_15
; %bb.14:
	orr	w19, w8, w19
	ldr	w0, [x20]
	mov	x1, x19
	bl	_I915_WRITE
	ldr	w0, [x20]
	bl	_I915_READ
	mov	x2, x0
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN_ONCE
LBB0_15:
	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
	ret
LBB0_16:
Lloh10:
	adrp	x8, _HOTPLUG_INT_STATUS_I915@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HOTPLUG_INT_STATUS_I915@GOTPAGEOFF]
Lloh12:
	ldr	w21, [x8]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_HOTPLUG_INT_STATUS_G4X,4,2     ; @HOTPLUG_INT_STATUS_G4X
	.comm	_DP_AUX_CHANNEL_MASK_INT_STATUS_G4X,4,2 ; @DP_AUX_CHANNEL_MASK_INT_STATUS_G4X
	.comm	_HOTPLUG_INT_STATUS_I915,4,2    ; @HOTPLUG_INT_STATUS_I915
	.comm	_PORT_HOTPLUG_STAT,4,2          ; @PORT_HOTPLUG_STAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PORT_HOTPLUG_STAT did not clear (0x%08x)\n"

	.no_dead_strip	_i9xx_hpd_irq_ack
.subsections_via_symbols
