	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_overlay_flip_prepare
_intel_overlay_flip_prepare:            ## @intel_overlay_flip_prepare
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	movq	24(%rbx), %rax
	movl	(%rax), %r14d
	callq	_WARN_ON
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rax), %rax
	movq	(%rax), %r12
	testq	%r15, %r15
	je	LBB0_5
LBB0_4:
	movq	(%r15), %rax
	movq	(%rax), %r13
	movl	%r14d, %edi
	callq	_INTEL_FRONTBUFFER_OVERLAY
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_intel_frontbuffer_track
	movl	16(%rbx), %r12d
	movl	%r14d, %edi
	callq	_INTEL_FRONTBUFFER_OVERLAY
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_intel_frontbuffer_flip_prepare
	movq	(%rbx), %rax
	movq	%rax, 8(%rbx)
	movq	%r15, %rdi
	callq	_i915_vma_get
	movq	%rax, %r15
	jmp	LBB0_6
LBB0_1:
	xorl	%r12d, %r12d
	testq	%r15, %r15
	jne	LBB0_4
LBB0_5:
	movl	%r14d, %edi
	callq	_INTEL_FRONTBUFFER_OVERLAY
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_intel_frontbuffer_track
	movl	16(%rbx), %r12d
	movl	%r14d, %edi
	callq	_INTEL_FRONTBUFFER_OVERLAY
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_intel_frontbuffer_flip_prepare
	movq	(%rbx), %rax
	movq	%rax, 8(%rbx)
LBB0_6:
	movq	%r15, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_intel_overlay_flip_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_overlay_flip_prepare
_intel_overlay_flip_prepare:            ; @intel_overlay_flip_prepare
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldr	w20, [x8]
	ldr	x0, [x0, #8]
	bl	_WARN_ON
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x8]
	ldr	x22, [x8]
	cbz	x21, LBB0_4
LBB0_2:
	ldr	x8, [x21]
	ldr	x23, [x8]
	mov	x0, x20
	bl	_INTEL_FRONTBUFFER_OVERLAY
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_intel_frontbuffer_track
	ldr	w22, [x19, #16]
	mov	x0, x20
	bl	_INTEL_FRONTBUFFER_OVERLAY
	mov	x1, x0
	mov	x0, x22
	bl	_intel_frontbuffer_flip_prepare
	ldr	x8, [x19]
	str	x8, [x19, #8]
	mov	x0, x21
	bl	_i915_vma_get
	b	LBB0_5
LBB0_3:
	mov	x22, #0
	cbnz	x21, LBB0_2
LBB0_4:
	mov	x0, x20
	bl	_INTEL_FRONTBUFFER_OVERLAY
	mov	x2, x0
	mov	x0, x22
	mov	x1, #0
	bl	_intel_frontbuffer_track
	ldr	w21, [x19, #16]
	mov	x0, x20
	bl	_INTEL_FRONTBUFFER_OVERLAY
	mov	x1, x0
	mov	x0, x21
	bl	_intel_frontbuffer_flip_prepare
	mov	x0, #0
	ldr	x8, [x19]
	str	x8, [x19, #8]
LBB0_5:
	str	x0, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_intel_overlay_flip_prepare
.subsections_via_symbols
