	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vkms_plane_atomic_update
_vkms_plane_atomic_update:              ## @vkms_plane_atomic_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	cmpl	$0, 48(%rdi)
	je	LBB0_3
## %bb.1:
	movq	56(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_3
## %bb.2:
	callq	_to_vkms_plane_state
	movq	(%rax), %r15
	leaq	20(%r15), %rdi
	movq	(%rbx), %rsi
	addq	$24, %rsi
	movl	$4, %edx
	callq	_memcpy
	leaq	16(%r15), %rdi
	movq	(%rbx), %rsi
	movl	$4, %edx
	callq	_memcpy
	leaq	12(%r15), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$24, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_drm_framebuffer_get
	movq	16(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	8(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vkms_plane_atomic_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vkms_plane_atomic_update
_vkms_plane_atomic_update:              ; @vkms_plane_atomic_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	x20, x0
	ldr	x0, [x0]
	ldr	x19, [x0, #56]
	ldr	w8, [x0, #48]
	cmp	w8, #0
	ccmp	x19, #0, #4, ne
	b.eq	LBB0_2
; %bb.1:
	bl	_to_vkms_plane_state
	ldr	x21, [x0]
	add	x0, x21, #20
	ldr	x8, [x20]
	add	x1, x8, #24
	mov	w2, #4
	bl	_memcpy
	add	x0, x21, #16
	ldr	x1, [x20]
	mov	w2, #4
	bl	_memcpy
	add	x20, x21, #12
	mov	x0, x20
	mov	x1, x19
	mov	w2, #24
	bl	_memcpy
	mov	x0, x20
	bl	_drm_framebuffer_get
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	str	w8, [x21, #8]
	ldp	x9, x8, [x19]
	ldr	w8, [x8]
	str	w8, [x21, #4]
	ldr	x8, [x9]
	ldr	w8, [x8]
	str	w8, [x21]
LBB0_2:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vkms_plane_atomic_update
.subsections_via_symbols
