	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ironlake_enable_vblank
_ironlake_enable_vblank:                ## @ironlake_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	(%rdi), %r14
	callq	_i915_pipe_enabled
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	testl	%ebx, %ebx
	jne	LBB0_3
## %bb.4:
	movq	_DE_PIPEA_VBLANK@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_3:
	movq	_DE_PIPEB_VBLANK@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ironlake_enable_display_irq
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DE_PIPEA_VBLANK,4,2            ## @DE_PIPEA_VBLANK
	.comm	_DE_PIPEB_VBLANK,4,2            ## @DE_PIPEB_VBLANK
	.no_dead_strip	_ironlake_enable_vblank
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ironlake_enable_vblank
_ironlake_enable_vblank:                ; @ironlake_enable_vblank
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	ldr	x19, [x0]
	bl	_i915_pipe_enabled
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _DE_PIPEA_VBLANK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DE_PIPEA_VBLANK@GOTPAGEOFF]
Lloh2:
	adrp	x9, _DE_PIPEB_VBLANK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DE_PIPEB_VBLANK@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ironlake_enable_display_irq
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DE_PIPEA_VBLANK,4,2            ; @DE_PIPEA_VBLANK
	.comm	_DE_PIPEB_VBLANK,4,2            ; @DE_PIPEB_VBLANK
	.no_dead_strip	_ironlake_enable_vblank
.subsections_via_symbols
