	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cache_local_copy_pack          ## -- Begin function cache_local_copy_pack
	.p2align	4, 0x90
_cache_local_copy_pack:                 ## @cache_local_copy_pack
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	xorl	%r14d, %r14d
	testl	%esi, %esi
	jle	LBB0_31
## %bb.1:
	movq	%rdx, %r13
	movq	%rdi, %r15
	cmpl	$1, %esi
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_13
## %bb.2:
	leal	-2(%rsi), %eax
	cmpl	$3, %eax
	jb	LBB0_8
## %bb.3:
	movq	%rax, %rcx
	shlq	$5, %rcx
	movq	_CACHE_LOCAL_COPY_FLAG_LAST@GOTPCREL(%rip), %rdi
	leaq	4(%rdi), %rdx
	cmpq	%rdx, %r15
	jae	LBB0_5
## %bb.4:
	leaq	(%r15,%rcx), %rdx
	addq	$4, %rdx
	cmpq	_CACHE_LOCAL_COPY_FLAG_LAST@GOTPCREL(%rip), %rdx
	ja	LBB0_8
LBB0_5:
	leaq	1(%rax), %rbx
	movq	%rbx, %rdx
	andq	$-4, %rdx
	subq	%rdx, %rax
	movd	(%rdi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm1                ## xmm1 = xmm0[0,0,0,0]
	pcmpeqd	%xmm0, %xmm0
	pxor	%xmm1, %xmm0
	addq	%r15, %rcx
	movq	%rdx, %rdi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movd	(%rcx), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	pinsrd	$1, -32(%rcx), %xmm1
	pinsrd	$2, -64(%rcx), %xmm1
	pinsrd	$3, -96(%rcx), %xmm1
	pand	%xmm0, %xmm1
	movd	%xmm1, (%rcx)
	pextrd	$1, %xmm1, -32(%rcx)
	pextrd	$2, %xmm1, -64(%rcx)
	pextrd	$3, %xmm1, -96(%rcx)
	addq	$-128, %rcx
	addq	$-4, %rdi
	jne	LBB0_6
## %bb.7:
	cmpq	%rdx, %rbx
	je	LBB0_13
LBB0_8:
	movq	%rax, %rcx
	testb	$1, %al
	jne	LBB0_10
## %bb.9:
	movq	_CACHE_LOCAL_COPY_FLAG_LAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	movq	%rax, %rdx
	shlq	$5, %rdx
	andl	%ecx, (%r15,%rdx)
	leaq	-1(%rax), %rcx
LBB0_10:
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	%rcx, %rax
	shlq	$5, %rax
	addq	%r15, %rax
	incq	%rcx
	movq	_CACHE_LOCAL_COPY_FLAG_LAST@GOTPCREL(%rip), %rdx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx), %edi
	notl	%edi
	andl	%edi, (%rax)
	movl	(%rdx), %edi
	notl	%edi
	andl	%edi, -32(%rax)
	addq	$-64, %rax
	addq	$-2, %rcx
	jne	LBB0_12
LBB0_13:
	movq	_CACHE_LOCAL_COPY_FLAG_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	-1(%rsi), %ecx
	shlq	$5, %rcx
	orl	%eax, (%r15,%rcx)
	testl	%esi, %esi
	jle	LBB0_31
## %bb.14:
	movl	%esi, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	movq	_CACHE_LOCAL_COPY_FLAG_INT@GOTPCREL(%rip), %rbx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_18 Depth=1
	leal	4(%rdx), %r12d
	cmpl	%ebx, %r12d
	movq	_CACHE_LOCAL_COPY_FLAG_INT@GOTPCREL(%rip), %rbx
	jg	LBB0_31
## %bb.16:                              ##   in Loop: Header=BB0_18 Depth=1
	leaq	4(%r15), %rsi
	movslq	%edx, %rdi
	addq	%r13, %rdi
	movl	$4, %edx
LBB0_17:                                ##   in Loop: Header=BB0_18 Depth=1
	callq	_memcpy
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$32, %r15
	movl	%r12d, %edx
	movl	%r12d, %r14d
	decq	%rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_31
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rcx
	movl	(%rbx), %eax
	notl	%eax
	andl	(%r15), %eax
	movl	%eax, (%r15)
	cmpl	$0, 4(%r15)
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	orl	(%rbx), %eax
	movl	%eax, (%r15)
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	leal	4(%rdx), %ebx
	movl	$-1, %r14d
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	cmpl	%r13d, %ebx
	jg	LBB0_31
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	movslq	%edx, %rdi
	movq	%rcx, %r14
	addq	%rcx, %rdi
	movq	%r15, %rsi
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	$4, %edx
	callq	_memcpy
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	8(%rax), %r12d
	cmpl	%r13d, %r12d
	jg	LBB0_30
## %bb.22:                              ##   in Loop: Header=BB0_18 Depth=1
	movslq	%ebx, %rdi
	addq	%r14, %rdi
	leaq	8(%r15), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r15, %rcx
	movl	(%r15), %eax
	movq	_CACHE_LOCAL_COPY_FLAG_YELLOW_LIGHT_MASK@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	movq	%r14, %r13
	je	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addl	$12, %eax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%ebx, %eax
	jg	LBB0_30
## %bb.24:                              ##   in Loop: Header=BB0_18 Depth=1
	movslq	%r12d, %rdi
	addq	%r13, %rdi
	movq	%rcx, %r15
	leaq	16(%rcx), %rsi
	movq	%rax, %r14
	movl	$4, %edx
	callq	_memcpy
	movq	%r14, %rdx
	movl	(%r15), %eax
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	%r12d, %edx
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	%rcx, %r15
LBB0_26:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	$-1, %r14d
	movq	_CACHE_LOCAL_COPY_FLAG_INT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_15
## %bb.27:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	24(%r15), %rdi
	movq	%rdx, %r12
	callq	_strlen
	movq	%r12, %rcx
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %r12d
	incl	%r12d
	cmpl	%ebx, %r12d
	movq	_CACHE_LOCAL_COPY_FLAG_INT@GOTPCREL(%rip), %rbx
	jg	LBB0_31
## %bb.28:                              ##   in Loop: Header=BB0_18 Depth=1
	incl	%eax
	movslq	%ecx, %rdi
	addq	%r13, %rdi
	movq	24(%r15), %rsi
	movl	%eax, %edx
	jmp	LBB0_17
LBB0_30:
	movl	$-1, %r14d
LBB0_31:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CACHE_LOCAL_COPY_FLAG_LAST,4,2 ## @CACHE_LOCAL_COPY_FLAG_LAST
	.comm	_CACHE_LOCAL_COPY_FLAG_INT,4,2  ## @CACHE_LOCAL_COPY_FLAG_INT
	.comm	_CACHE_LOCAL_COPY_FLAG_YELLOW_LIGHT_MASK,4,2 ## @CACHE_LOCAL_COPY_FLAG_YELLOW_LIGHT_MASK
	.comm	_CACHE_LOCAL_COPY_FLAG_MONTHLY_COUNTER,4,2 ## @CACHE_LOCAL_COPY_FLAG_MONTHLY_COUNTER
	.comm	_amortization_counter_types,4,2 ## @amortization_counter_types
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cache_local_copy_pack          ; -- Begin function cache_local_copy_pack
	.p2align	2
_cache_local_copy_pack:                 ; @cache_local_copy_pack
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cmp	w1, #1
	b.lt	LBB0_19
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
Lloh0:
	adrp	x8, _CACHE_LOCAL_COPY_FLAG_LAST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CACHE_LOCAL_COPY_FLAG_LAST@GOTPAGEOFF]
	b.eq	LBB0_4
; %bb.2:
	sub	w9, w1, #2
	lsl	x9, x9, #5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x21, x9]
	ldr	w11, [x8]
	bic	w10, w10, w11
	str	w10, [x21, x9]
	sub	x9, x9, #32
	cmn	x9, #32
	b.ne	LBB0_3
LBB0_4:
	ldr	w8, [x8]
	subs	w9, w1, #1
	lsl	x9, x9, #5
	ldr	w10, [x21, x9]
	orr	w8, w10, w8
	str	w8, [x21, x9]
	mov	w22, #0
	b.lt	LBB0_21
; %bb.5:
Lloh2:
	adrp	x24, _CACHE_LOCAL_COPY_FLAG_INT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _CACHE_LOCAL_COPY_FLAG_INT@GOTPAGEOFF]
Lloh4:
	adrp	x25, _CACHE_LOCAL_COPY_FLAG_YELLOW_LIGHT_MASK@GOTPAGE
Lloh5:
	ldr	x25, [x25, _CACHE_LOCAL_COPY_FLAG_YELLOW_LIGHT_MASK@GOTPAGEOFF]
	mov	w26, w1
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w22, w27, #4
	cmp	w22, w19
	b.gt	LBB0_20
; %bb.7:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x0, x20, w27, sxtw
	mov	x1, x23
	mov	w2, #4
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	bl	_memcpy
	add	x21, x21, #32
	subs	x26, x26, #1
	b.eq	LBB0_21
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	ldr	w9, [x21]
	bic	w8, w9, w8
	str	w8, [x21]
	mov	x23, x21
	ldr	w9, [x23, #4]!
	cbz	w9, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [x24]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	sxtw	x27, w22
	add	x28, x27, #4
	cmp	w28, w19
	b.gt	LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x0, x20, x27
	mov	x1, x21
	mov	w2, #4
	bl	_memcpy
	add	x27, x27, #8
	cmp	w27, w19
	b.gt	LBB0_20
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x0, x20, x28
	add	x1, x21, #8
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x21]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w22, w22, #12
	cmp	w22, w19
	b.gt	LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x0, x20, x27
	add	x1, x21, #16
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x21]
	mov	x27, x22
LBB0_16:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.17:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [x21, #24]
	bl	_strlen
	add	w2, w0, #1
	add	w22, w2, w27
	cmp	w22, w19
	b.gt	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x0, x20, w27, sxtw
	ldr	x1, [x21, #24]
	b	LBB0_8
LBB0_19:
	mov	w22, #0
	b	LBB0_21
LBB0_20:
	mov	w22, #-1
LBB0_21:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_CACHE_LOCAL_COPY_FLAG_LAST,4,2 ; @CACHE_LOCAL_COPY_FLAG_LAST
	.comm	_CACHE_LOCAL_COPY_FLAG_INT,4,2  ; @CACHE_LOCAL_COPY_FLAG_INT
	.comm	_CACHE_LOCAL_COPY_FLAG_YELLOW_LIGHT_MASK,4,2 ; @CACHE_LOCAL_COPY_FLAG_YELLOW_LIGHT_MASK
	.comm	_CACHE_LOCAL_COPY_FLAG_MONTHLY_COUNTER,4,2 ; @CACHE_LOCAL_COPY_FLAG_MONTHLY_COUNTER
	.comm	_amortization_counter_types,4,2 ; @amortization_counter_types
.subsections_via_symbols
