	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function valleyview_disable_vblank
_valleyview_disable_vblank:             ## @valleyview_disable_vblank
	.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
	movl	%esi, %ebx
	movq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_PIPE_START_VBLANK_INTERRUPT_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_i915_disable_pipestat
	movq	_VLV_IMR@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_I915_READ
	testl	%ebx, %ebx
	jne	LBB0_1
## %bb.2:
	movq	_I915_DISPLAY_PIPE_A_VBLANK_INTERRUPT@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_I915_DISPLAY_PIPE_B_VBLANK_INTERRUPT@GOTPCREL(%rip), %rcx
LBB0_3:
	orl	(%rcx), %eax
	movl	(%r15), %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PIPE_START_VBLANK_INTERRUPT_ENABLE,4,2 ## @PIPE_START_VBLANK_INTERRUPT_ENABLE
	.comm	_VLV_IMR,4,2                    ## @VLV_IMR
	.comm	_I915_DISPLAY_PIPE_A_VBLANK_INTERRUPT,4,2 ## @I915_DISPLAY_PIPE_A_VBLANK_INTERRUPT
	.comm	_I915_DISPLAY_PIPE_B_VBLANK_INTERRUPT,4,2 ## @I915_DISPLAY_PIPE_B_VBLANK_INTERRUPT
	.no_dead_strip	_valleyview_disable_vblank
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function valleyview_disable_vblank
_valleyview_disable_vblank:             ; @valleyview_disable_vblank
	.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, x1
	ldr	x20, [x0]
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _PIPE_START_VBLANK_INTERRUPT_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PIPE_START_VBLANK_INTERRUPT_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_i915_disable_pipestat
Lloh3:
	adrp	x21, _VLV_IMR@GOTPAGE
Lloh4:
	ldr	x21, [x21, _VLV_IMR@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_I915_READ
Lloh5:
	adrp	x8, _I915_DISPLAY_PIPE_A_VBLANK_INTERRUPT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I915_DISPLAY_PIPE_A_VBLANK_INTERRUPT@GOTPAGEOFF]
Lloh7:
	adrp	x9, _I915_DISPLAY_PIPE_B_VBLANK_INTERRUPT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _I915_DISPLAY_PIPE_B_VBLANK_INTERRUPT@GOTPAGEOFF]
	cmp	w19, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w0, [x21]
	bl	_I915_WRITE
	mov	x0, x20
	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	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PIPE_START_VBLANK_INTERRUPT_ENABLE,4,2 ; @PIPE_START_VBLANK_INTERRUPT_ENABLE
	.comm	_VLV_IMR,4,2                    ; @VLV_IMR
	.comm	_I915_DISPLAY_PIPE_A_VBLANK_INTERRUPT,4,2 ; @I915_DISPLAY_PIPE_A_VBLANK_INTERRUPT
	.comm	_I915_DISPLAY_PIPE_B_VBLANK_INTERRUPT,4,2 ; @I915_DISPLAY_PIPE_B_VBLANK_INTERRUPT
	.no_dead_strip	_valleyview_disable_vblank
.subsections_via_symbols
