	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_surface_update_to_plane
_copy_surface_update_to_plane:          ## @copy_surface_update_to_plane
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	72(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	12(%rax), %ecx
	movl	%ecx, 148(%rbx)
	movl	8(%rax), %ecx
	movl	%ecx, 144(%rbx)
	movq	(%rax), %rcx
	subq	128(%rbx), %rcx
	movq	120(%rbx), %rdx
	movq	136(%rbx), %rsi
	movq	%rcx, (%rsi,%rdx,8)
	movq	(%rax), %rax
	movq	%rax, 128(%rbx)
	movq	120(%rbx), %rax
	incq	%rax
	movq	_DC_PLANE_UPDATE_TIMES_MAX@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	cmovbq	%rax, %rdx
	movq	%rdx, 120(%rbx)
LBB0_2:
	movq	64(%r14), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movups	(%rax), %xmm0
	movups	%xmm0, 104(%rbx)
LBB0_4:
	movq	56(%r14), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	52(%rax), %ecx
	movl	%ecx, 100(%rbx)
	movl	48(%rax), %ecx
	movl	%ecx, 96(%rbx)
	movups	32(%rax), %xmm0
	movups	%xmm0, 80(%rbx)
	movups	16(%rax), %xmm0
	movups	%xmm0, 64(%rbx)
	movups	(%rax), %xmm0
	movups	%xmm0, 48(%rbx)
LBB0_6:
	movq	48(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.7:
	movq	40(%rbx), %rdi
	cmpq	%rsi, %rdi
	je	LBB0_9
## %bb.8:
	addq	$12, %rdi
	addq	$12, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	48(%r14), %rax
	movl	8(%rax), %ecx
	movq	40(%rbx), %rdx
	movl	%ecx, 8(%rdx)
	movl	4(%rax), %ecx
	movl	%ecx, 4(%rdx)
	movl	(%rax), %eax
	movl	%eax, (%rdx)
LBB0_9:
	movq	40(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.10:
	movq	32(%rbx), %rdi
	cmpq	%rsi, %rdi
	je	LBB0_12
## %bb.11:
	movl	12(%rsi), %eax
	movl	%eax, 12(%rdi)
	movl	8(%rsi), %eax
	movl	%eax, 8(%rdi)
	movl	4(%rsi), %eax
	movl	%eax, 4(%rdi)
	movl	$4, %edx
	callq	_memcpy
LBB0_12:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
LBB0_14:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_16:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DC_PLANE_UPDATE_TIMES_MAX,8,3  ## @DC_PLANE_UPDATE_TIMES_MAX
	.no_dead_strip	_copy_surface_update_to_plane
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_surface_update_to_plane
_copy_surface_update_to_plane:          ; @copy_surface_update_to_plane
	.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
	mov	x19, x0
	ldr	x8, [x1, #72]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	d0, [x8, #8]
	str	d0, [x19, #144]
	ldr	x9, [x8]
	ldp	x11, x10, [x19, #120]
	sub	x9, x9, x10
	ldr	x10, [x19, #136]
	str	x9, [x10, x11, lsl #3]
	ldr	x8, [x8]
	ldr	x9, [x19, #120]
Lloh0:
	adrp	x10, _DC_PLANE_UPDATE_TIMES_MAX@GOTPAGE
Lloh1:
	ldr	x10, [x10, _DC_PLANE_UPDATE_TIMES_MAX@GOTPAGEOFF]
	add	x11, x9, #1
Lloh2:
	ldr	x10, [x10]
	cmp	x11, x10
	csinc	x9, xzr, x9, hs
	stp	x9, x8, [x19, #120]
LBB0_2:
	ldr	x8, [x20, #64]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	q0, [x8]
	stur	q0, [x19, #104]
LBB0_4:
	ldr	x8, [x20, #56]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	d0, [x8, #48]
	str	d0, [x19, #96]
	ldr	q0, [x8, #32]
	str	q0, [x19, #80]
	ldr	q0, [x8, #16]
	str	q0, [x19, #64]
	ldr	q0, [x8]
	str	q0, [x19, #48]
LBB0_6:
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	x9, [x19, #40]
	cmp	x9, x8
	b.eq	LBB0_9
; %bb.8:
	add	x0, x9, #12
	add	x1, x8, #12
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x20, #48]
	ldr	w9, [x8, #8]
	ldr	x10, [x19, #40]
	str	w9, [x10, #8]
	ldr	d0, [x8]
	str	d0, [x10]
LBB0_9:
	ldr	x1, [x20, #40]
	cbz	x1, LBB0_12
; %bb.10:
	ldr	x0, [x19, #32]
	cmp	x0, x1
	b.eq	LBB0_12
; %bb.11:
	ldr	w8, [x1, #12]
	str	w8, [x0, #12]
	ldur	d0, [x1, #4]
	stur	d0, [x0, #4]
	mov	w2, #4
	bl	_memcpy
LBB0_12:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_14
; %bb.13:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_14:
	ldr	x8, [x20]
	cbz	x8, LBB0_16
; %bb.15:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_16:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DC_PLANE_UPDATE_TIMES_MAX,8,3  ; @DC_PLANE_UPDATE_TIMES_MAX
	.no_dead_strip	_copy_surface_update_to_plane
.subsections_via_symbols
