	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cache_set_new_local_copy
_cache_set_new_local_copy:              ## @cache_set_new_local_copy
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_LC@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movq	_CACHE_MAX_LOCAL_COPIES@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	-44(%rbp), %r8
	xorl	%ecx, %ecx
	callq	_cache_local_copy_unpack
	movl	%eax, %ebx
	movl	$-1, %eax
	testl	%ebx, %ebx
	js	LBB0_3
## %bb.1:
	cmpl	(%r13), %ebx
	jge	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_cache_uri_incr_server_stats
	movl	%ebx, %edi
	incl	%ebx
	shlq	$2, %rdi
	addq	(%r12), %rdi
	movq	%r14, %rsi
	callq	_cache_local_copy_cpy
	movq	(%r12), %rsi
	movl	-44(%rbp), %ecx
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_cache_uri_update_local_copy
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LC,8,3                         ## @LC
	.comm	_CACHE_MAX_LOCAL_COPIES,4,2     ## @CACHE_MAX_LOCAL_COPIES
	.no_dead_strip	_cache_set_new_local_copy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cache_set_new_local_copy
_cache_set_new_local_copy:              ; @cache_set_new_local_copy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _LC@GOTPAGE
Lloh1:
	ldr	x23, [x23, _LC@GOTPAGEOFF]
	ldr	x1, [x23]
Lloh2:
	adrp	x22, _CACHE_MAX_LOCAL_COPIES@GOTPAGE
Lloh3:
	ldr	x22, [x22, _CACHE_MAX_LOCAL_COPIES@GOTPAGEOFF]
	ldr	w2, [x22]
	add	x4, sp, #12
	mov	w3, #0
	bl	_cache_local_copy_unpack
	mov	x21, x0
	mov	w0, #-1
	tbnz	w21, #31, LBB0_3
; %bb.1:
	ldr	w8, [x22]
	cmp	w21, w8
	b.ge	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_cache_uri_incr_server_stats
	ldr	x8, [x23]
	add	w22, w21, #1
	add	x0, x8, w21, uxtw #2
	mov	x1, x20
	bl	_cache_local_copy_cpy
	ldr	x1, [x23]
	ldr	w3, [sp, #12]
	mov	x0, x19
	mov	x2, x22
	bl	_cache_uri_update_local_copy
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LC,8,3                         ; @LC
	.comm	_CACHE_MAX_LOCAL_COPIES,4,2     ; @CACHE_MAX_LOCAL_COPIES
	.no_dead_strip	_cache_set_new_local_copy
.subsections_via_symbols
