	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vop_plane_atomic_async_update
_vop_plane_atomic_async_update:         ## @vop_plane_atomic_async_update
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movl	(%rax), %edi
	callq	_to_vop
	movq	%rax, %r14
	movq	(%r12), %rax
	movq	8(%rax), %r15
	movups	20(%rbx), %xmm0
	movups	%xmm0, 32(%rax)
	movups	4(%rbx), %xmm0
	movups	%xmm0, 16(%rax)
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_swap
	cmpq	$0, 16(%r14)
	je	LBB0_3
## %bb.1:
	movq	(%r12), %rsi
	movq	%r12, %rdi
	callq	_vop_plane_atomic_update
	leaq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	%r14, %rdi
	callq	_vop_cfg_done
	movq	%rbx, %rdi
	callq	_spin_unlock
	testq	%r15, %r15
	je	LBB0_3
## %bb.2:
	movq	(%r12), %rax
	cmpq	%r15, 8(%rax)
	je	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	callq	_drm_framebuffer_get
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_drm_crtc_vblank_get
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_WARN_ON
	movq	%r14, %rdi
	addq	$4, %rdi
	movq	%r15, %rsi
	callq	_drm_flip_work_queue
	movq	_VOP_PENDING_FB_UNREF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_bit                        ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VOP_PENDING_FB_UNREF,4,2       ## @VOP_PENDING_FB_UNREF
	.no_dead_strip	_vop_plane_atomic_async_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vop_plane_atomic_async_update
_vop_plane_atomic_async_update:         ; @vop_plane_atomic_async_update
	.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	x22, x1
	mov	x21, x0
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_to_vop
	mov	x19, x0
	ldr	x8, [x21]
	ldr	x20, [x8, #8]
	ldur	q0, [x22, #20]
	str	q0, [x8, #32]
	ldur	q0, [x22, #4]
	str	q0, [x8, #16]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_swap
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x1, [x21]
	mov	x0, x21
	bl	_vop_plane_atomic_update
	add	x22, x19, #8
	mov	x0, x22
	bl	_spin_lock
	mov	x0, x19
	bl	_vop_cfg_done
	mov	x0, x22
	bl	_spin_unlock
	cbz	x20, LBB0_4
; %bb.2:
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	cmp	x8, x20
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_drm_framebuffer_get
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_drm_crtc_vblank_get
	cmp	x0, #0
	cset	w0, ne
	bl	_WARN_ON
	add	x0, x19, #4
	mov	x1, x20
	bl	_drm_flip_work_queue
Lloh0:
	adrp	x8, _VOP_PENDING_FB_UNREF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VOP_PENDING_FB_UNREF@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, 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
	b	_set_bit
LBB0_4:
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VOP_PENDING_FB_UNREF,4,2       ; @VOP_PENDING_FB_UNREF
	.no_dead_strip	_vop_plane_atomic_async_update
.subsections_via_symbols
