	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cache_do_local_copies          ## -- Begin function cache_do_local_copies
	.p2align	4, 0x90
_cache_do_local_copies:                 ## @cache_do_local_copies
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%esi, %esi
	callq	_get_uri_f
	movl	$-1, %ebx
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_LC@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movq	_CACHE_MAX_LOCAL_COPIES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_cache_local_copy_unpack
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	(%r12), %rcx
	movq	%rcx, (%r15)
	movl	%eax, %ebx
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_vkprintf
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cache_do_local_copies (uri: %s): cache_local_copy_unpack failed.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cache_do_local_copies          ; -- Begin function cache_do_local_copies
	.p2align	2
_cache_do_local_copies:                 ; @cache_do_local_copies
	.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, x1
	mov	x19, x0
	mov	w1, #0
	bl	_get_uri_f
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x21, _LC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _LC@GOTPAGEOFF]
	ldr	x1, [x21]
Lloh2:
	adrp	x8, _CACHE_MAX_LOCAL_COPIES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CACHE_MAX_LOCAL_COPIES@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w3, #1
	mov	x4, #0
	bl	_cache_local_copy_unpack
	tbnz	w0, #31, LBB0_3
; %bb.2:
	ldr	x8, [x21]
	str	x8, [x20]
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_vkprintf
LBB0_4:
	mov	w0, #-1
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_LC,8,3                         ; @LC
	.comm	_CACHE_MAX_LOCAL_COPIES,4,2     ; @CACHE_MAX_LOCAL_COPIES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cache_do_local_copies (uri: %s): cache_local_copy_unpack failed.\n"

.subsections_via_symbols
