	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function restore_last_bytes
_restore_last_bytes:                    ## @restore_last_bytes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdx), %r10
	movl	(%rdi), %eax
	cmpl	$2, %eax
	movl	$1, %r8d
	cmovael	%eax, %r8d
	xorl	%edx, %edx
	cmpl	$8, %r8d
	jb	LBB0_11
## %bb.1:
	movq	%rsi, %rax
	subq	%r10, %rax
	cmpq	$32, %rax
	jb	LBB0_11
## %bb.2:
	movl	%r8d, %edx
	andl	$-8, %edx
	leaq	-8(%rdx), %rax
	movq	%rax, %rdi
	shrq	$3, %rdi
	incq	%rdi
	movl	%edi, %r9d
	andl	$3, %r9d
	cmpq	$24, %rax
	jae	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	andq	$-4, %rdi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%r10,%rax,4), %xmm0
	movups	16(%r10,%rax,4), %xmm1
	movups	%xmm0, (%rsi,%rax,4)
	movups	%xmm1, 16(%rsi,%rax,4)
	movups	32(%r10,%rax,4), %xmm0
	movups	48(%r10,%rax,4), %xmm1
	movups	%xmm0, 32(%rsi,%rax,4)
	movups	%xmm1, 48(%rsi,%rax,4)
	movups	64(%r10,%rax,4), %xmm0
	movups	80(%r10,%rax,4), %xmm1
	movups	%xmm0, 64(%rsi,%rax,4)
	movups	%xmm1, 80(%rsi,%rax,4)
	movups	96(%r10,%rax,4), %xmm0
	movups	112(%r10,%rax,4), %xmm1
	movups	%xmm0, 96(%rsi,%rax,4)
	movups	%xmm1, 112(%rsi,%rax,4)
	addq	$32, %rax
	addq	$-4, %rdi
	jne	LBB0_5
LBB0_6:
	testq	%r9, %r9
	je	LBB0_9
## %bb.7:
	leaq	(%rsi,%rax,4), %rdi
	addq	$16, %rdi
	leaq	(%r10,%rax,4), %rax
	addq	$16, %rax
	shlq	$5, %r9
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movups	-16(%rax,%rcx), %xmm0
	movups	(%rax,%rcx), %xmm1
	movups	%xmm0, -16(%rdi,%rcx)
	movups	%xmm1, (%rdi,%rcx)
	addq	$32, %rcx
	cmpq	%rcx, %r9
	jne	LBB0_8
LBB0_9:
	cmpq	%r8, %rdx
	je	LBB0_16
## %bb.10:
	leaq	(%rsi,%rdx,4), %rsi
LBB0_11:
	movq	%rdx, %rax
	notq	%rax
	addq	%r8, %rax
	movq	%r8, %rdi
	andq	$7, %rdi
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r10,%rdx,4), %ecx
	movl	%ecx, (%rsi)
	addq	$4, %rsi
	incq	%rdx
	decq	%rdi
	jne	LBB0_12
LBB0_13:
	cmpq	$7, %rax
	jb	LBB0_16
## %bb.14:
	subq	%rdx, %r8
	leaq	(%r10,%rdx,4), %rax
	addq	$28, %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	-28(%rax,%rcx,4), %edx
	movl	%edx, (%rsi,%rcx,4)
	movl	-24(%rax,%rcx,4), %edx
	movl	%edx, 4(%rsi,%rcx,4)
	movl	-20(%rax,%rcx,4), %edx
	movl	%edx, 8(%rsi,%rcx,4)
	movl	-16(%rax,%rcx,4), %edx
	movl	%edx, 12(%rsi,%rcx,4)
	movl	-12(%rax,%rcx,4), %edx
	movl	%edx, 16(%rsi,%rcx,4)
	movl	-8(%rax,%rcx,4), %edx
	movl	%edx, 20(%rsi,%rcx,4)
	movl	-4(%rax,%rcx,4), %edx
	movl	%edx, 24(%rsi,%rcx,4)
	movl	(%rax,%rcx,4), %edx
	movl	%edx, 28(%rsi,%rcx,4)
	addq	$8, %rcx
	cmpq	%rcx, %r8
	jne	LBB0_15
LBB0_16:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_restore_last_bytes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function restore_last_bytes
_restore_last_bytes:                    ; @restore_last_bytes
	.cfi_startproc
; %bb.0:
	mov	x9, #0
	ldr	x10, [x2]
	ldr	w8, [x0]
	cmp	w8, #1
	csinc	w11, w8, wzr, hi
	cmp	w11, #16
	b.lo	LBB0_5
; %bb.1:
	sub	x8, x1, x10
	cmp	x8, #64
	b.lo	LBB0_5
; %bb.2:
	and	x9, x11, #0xfffffff0
	add	x8, x1, x9, lsl #2
	add	x12, x10, #32
	add	x13, x1, #32
	mov	x14, x9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x12, #-32]
	ldp	q2, q3, [x12], #64
	stp	q0, q1, [x13, #-32]
	stp	q2, q3, [x13], #64
	subs	x14, x14, #16
	b.ne	LBB0_3
; %bb.4:
	cmp	x9, x11
	b.ne	LBB0_6
	b	LBB0_8
LBB0_5:
	mov	x8, x1
LBB0_6:
	add	x10, x10, x9, lsl #2
	sub	x9, x11, x9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10], #4
	str	w11, [x8], #4
	subs	x9, x9, #1
	b.ne	LBB0_7
LBB0_8:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_restore_last_bytes
.subsections_via_symbols
