	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlv_display_irq_reset
_vlv_display_irq_reset:                 ## @vlv_display_irq_reset
	.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, %r15
	leaq	4(%rdi), %r14
	callq	_IS_CHERRYVIEW
	movq	_DPINVGTT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_DPINVGTT_STATUS_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_DPINVGTT_STATUS_MASK_CHV@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_intel_uncore_write
	movq	%r15, %rdi
	movl	$-1, %esi
	xorl	%edx, %edx
	callq	_i915_hotplug_interrupt_update_locked
	movq	_PORT_HOTPLUG_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_I915_READ
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_intel_uncore_write
	movq	%r15, %rdi
	callq	_i9xx_pipestat_irq_reset
	movq	_VLV_@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_GEN3_IRQ_RESET
	movl	$-1, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DPINVGTT,4,2                   ## @DPINVGTT
	.comm	_DPINVGTT_STATUS_MASK_CHV,4,2   ## @DPINVGTT_STATUS_MASK_CHV
	.comm	_DPINVGTT_STATUS_MASK,4,2       ## @DPINVGTT_STATUS_MASK
	.comm	_PORT_HOTPLUG_STAT,4,2          ## @PORT_HOTPLUG_STAT
	.comm	_VLV_,4,2                       ## @VLV_
	.no_dead_strip	_vlv_display_irq_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlv_display_irq_reset
_vlv_display_irq_reset:                 ; @vlv_display_irq_reset
	.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
	add	x20, x0, #4
	bl	_IS_CHERRYVIEW
Lloh0:
	adrp	x8, _DPINVGTT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPINVGTT@GOTPAGEOFF]
Lloh2:
	adrp	x9, _DPINVGTT_STATUS_MASK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DPINVGTT_STATUS_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _DPINVGTT_STATUS_MASK_CHV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DPINVGTT_STATUS_MASK_CHV@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w2, [x8]
	mov	x0, x20
	bl	_intel_uncore_write
	mov	w22, #-1
	mov	x0, x19
	mov	w1, #-1
	mov	w2, #0
	bl	_i915_hotplug_interrupt_update_locked
Lloh7:
	adrp	x8, _PORT_HOTPLUG_STAT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PORT_HOTPLUG_STAT@GOTPAGEOFF]
Lloh9:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_I915_READ
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_intel_uncore_write
	mov	x0, x19
	bl	_i9xx_pipestat_irq_reset
Lloh10:
	adrp	x8, _VLV_@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VLV_@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_GEN3_IRQ_RESET
	str	w22, [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
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DPINVGTT,4,2                   ; @DPINVGTT
	.comm	_DPINVGTT_STATUS_MASK_CHV,4,2   ; @DPINVGTT_STATUS_MASK_CHV
	.comm	_DPINVGTT_STATUS_MASK,4,2       ; @DPINVGTT_STATUS_MASK
	.comm	_PORT_HOTPLUG_STAT,4,2          ; @PORT_HOTPLUG_STAT
	.comm	_VLV_,4,2                       ; @VLV_
	.no_dead_strip	_vlv_display_irq_reset
.subsections_via_symbols
