	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_enable_vblank
_i915_enable_vblank:                    ## @i915_enable_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, %r15d
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	callq	_i915_pipe_enabled
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_INTEL_INFO
	cmpl	$4, (%rax)
	jl	LBB0_3
## %bb.4:
	movq	_PIPE_START_VBLANK_INTERRUPT_ENABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_3:
	movq	_PIPE_VBLANK_INTERRUPT_ENABLE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_i915_enable_pipestat
	movq	8(%r14), %rax
	cmpl	$3, (%rax)
	jne	LBB0_7
## %bb.6:
	movq	_INSTPM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_INSTPM_AGPBUSY_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__MASKED_BIT_DISABLE
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
LBB0_7:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PIPE_START_VBLANK_INTERRUPT_ENABLE,4,2 ## @PIPE_START_VBLANK_INTERRUPT_ENABLE
	.comm	_PIPE_VBLANK_INTERRUPT_ENABLE,4,2 ## @PIPE_VBLANK_INTERRUPT_ENABLE
	.comm	_INSTPM,4,2                     ## @INSTPM
	.comm	_INSTPM_AGPBUSY_DIS,4,2         ## @INSTPM_AGPBUSY_DIS
	.no_dead_strip	_i915_enable_vblank
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915_enable_vblank
_i915_enable_vblank:                    ; @i915_enable_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	x20, x1
	mov	x21, x0
	ldr	x19, [x0]
	bl	_i915_pipe_enabled
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x0, x21
	bl	_INTEL_INFO
Lloh0:
	adrp	x8, _PIPE_START_VBLANK_INTERRUPT_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PIPE_START_VBLANK_INTERRUPT_ENABLE@GOTPAGEOFF]
	ldr	w9, [x0]
Lloh2:
	adrp	x10, _PIPE_VBLANK_INTERRUPT_ENABLE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PIPE_VBLANK_INTERRUPT_ENABLE@GOTPAGEOFF]
	cmp	w9, #3
	csel	x8, x8, x10, gt
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_i915_enable_pipestat
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w8, #3
	b.ne	LBB0_3
; %bb.2:
Lloh4:
	adrp	x8, _INSTPM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _INSTPM@GOTPAGEOFF]
Lloh6:
	ldr	w20, [x8]
Lloh7:
	adrp	x8, _INSTPM_AGPBUSY_DIS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _INSTPM_AGPBUSY_DIS@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	__MASKED_BIT_DISABLE
	mov	x1, x0
	mov	x0, x20
	bl	_I915_WRITE
LBB0_3:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PIPE_START_VBLANK_INTERRUPT_ENABLE,4,2 ; @PIPE_START_VBLANK_INTERRUPT_ENABLE
	.comm	_PIPE_VBLANK_INTERRUPT_ENABLE,4,2 ; @PIPE_VBLANK_INTERRUPT_ENABLE
	.comm	_INSTPM,4,2                     ; @INSTPM
	.comm	_INSTPM_AGPBUSY_DIS,4,2         ; @INSTPM_AGPBUSY_DIS
	.no_dead_strip	_i915_enable_vblank
.subsections_via_symbols
