	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cache_local_copy_try_pack_location ## -- Begin function cache_local_copy_try_pack_location
	.p2align	4, 0x90
_cache_local_copy_try_pack_location:    ## @cache_local_copy_try_pack_location
	.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
	subq	$624, %rsp                      ## imm = 0x270
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	$0, 16(%rsi)
	movq	_CACHE_LOCAL_COPY_FLAG_INT@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	notl	%eax
	andl	%eax, 8(%rsi)
	movq	(%rsi), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-632(%rbp), %rdx
	leaq	-628(%rbp), %rcx
	leaq	-636(%rbp), %r8
	leaq	-304(%rbp), %r9
	callq	_sscanf
	movl	$-1, %r14d
	cmpl	$4, %eax
	jne	LBB0_10
## %bb.1:
	movl	-632(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.2:
	movq	_MAX_NODE_ID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_10
## %bb.3:
	movl	-628(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.4:
	movq	_MAX_SERVER_ID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_10
## %bb.5:
	movl	-636(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.6:
	movq	_MAX_DISK_ID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_10
## %bb.7:
	movq	%r15, %rdi
	callq	_cache_uri_get_basename
	leaq	-304(%rbp), %r15
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	movl	-632(%rbp), %ecx
	movl	-628(%rbp), %r8d
	movl	-636(%rbp), %r9d
	movq	%r15, (%rsp)
	leaq	L_.str.1(%rip), %rdx
	leaq	-624(%rbp), %r15
	movq	%r15, %rdi
	movl	$320, %esi                      ## imm = 0x140
	callq	_snprintf
	xorl	%edi, %edi
	cmpl	$320, %eax                      ## imm = 0x140
	setb	%dil
	callq	_assert
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movl	-632(%rbp), %eax
	movl	-628(%rbp), %ecx
	shlq	$32, %rcx
	orq	%rax, %rcx
	movq	%rcx, 16(%rbx)
	movl	(%r12), %eax
	orl	%eax, 8(%rbx)
	xorl	%r14d, %r14d
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%r14d, %eax
	addq	$624, %rsp                      ## imm = 0x270
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CACHE_LOCAL_COPY_FLAG_INT,4,2  ## @CACHE_LOCAL_COPY_FLAG_INT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cs%d_%d/d%d/%255s"

	.comm	_MAX_NODE_ID,4,2                ## @MAX_NODE_ID
	.comm	_MAX_SERVER_ID,4,2              ## @MAX_SERVER_ID
	.comm	_MAX_DISK_ID,4,2                ## @MAX_DISK_ID
L_.str.1:                               ## @.str.1
	.asciz	"cs%d_%d/d%d/%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cache_local_copy_try_pack_location ; -- Begin function cache_local_copy_try_pack_location
	.p2align	2
_cache_local_copy_try_pack_location:    ; @cache_local_copy_try_pack_location
	.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
	sub	sp, sp, #608
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x21, _CACHE_LOCAL_COPY_FLAG_INT@GOTPAGE
Lloh4:
	ldr	x21, [x21, _CACHE_LOCAL_COPY_FLAG_INT@GOTPAGEOFF]
	str	xzr, [x1, #16]
	ldr	w8, [x21]
	ldr	w9, [x1, #8]
	bic	w8, w9, w8
	str	w8, [x1, #8]
	ldr	x0, [x1]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #20
	add	x3, sp, #16
	add	x4, sp, #12
	add	x5, sp, #344
	bl	_sscanf
	ldr	w9, [sp, #20]
	cmp	w0, #4
	ccmp	w9, #1, #8, eq
	b.lt	LBB0_5
; %bb.1:
Lloh7:
	adrp	x8, _MAX_NODE_ID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MAX_NODE_ID@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x8]
	ldr	w8, [sp, #16]
	cmp	w9, w10
	ccmp	w8, #1, #8, le
	b.lt	LBB0_5
; %bb.2:
Lloh10:
	adrp	x9, _MAX_SERVER_ID@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MAX_SERVER_ID@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	ldr	w10, [sp, #12]
Lloh13:
	adrp	x11, _MAX_DISK_ID@GOTPAGE
Lloh14:
	ldr	x11, [x11, _MAX_DISK_ID@GOTPAGEOFF]
Lloh15:
	ldr	w11, [x11]
	cmp	w8, w9
	ccmp	w10, #1, #8, le
	ccmp	w10, w11, #0, ge
	b.gt	LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_cache_uri_get_basename
	add	x1, sp, #344
	bl	_strcmp
	cbnz	w0, LBB0_5
; %bb.4:
	ldp	w4, w3, [sp, #16]
	ldr	w5, [sp, #12]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #24
	add	x6, sp, #344
	mov	w1, #320
	bl	_snprintf
	cmp	w0, #320
	cset	w0, lo
	bl	_assert
	ldr	x1, [x19]
	add	x0, sp, #24
	bl	_strcmp
	cbz	w0, LBB0_8
LBB0_5:
	mov	w0, #-1
LBB0_6:
	ldur	x8, [x29, #-40]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.7:
	add	sp, sp, #608
	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
LBB0_8:
	ldp	w9, w8, [sp, #16]
	bfi	x8, x9, #32, #32
	str	x8, [x19, #16]
	ldr	w8, [x21]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	b	LBB0_6
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_CACHE_LOCAL_COPY_FLAG_INT,4,2  ; @CACHE_LOCAL_COPY_FLAG_INT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cs%d_%d/d%d/%255s"

	.comm	_MAX_NODE_ID,4,2                ; @MAX_NODE_ID
	.comm	_MAX_SERVER_ID,4,2              ; @MAX_SERVER_ID
	.comm	_MAX_DISK_ID,4,2                ; @MAX_DISK_ID
l_.str.1:                               ; @.str.1
	.asciz	"cs%d_%d/d%d/%s"

.subsections_via_symbols
