	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cache_local_copy_compute_packed_location
_cache_local_copy_compute_packed_location: ## @cache_local_copy_compute_packed_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	_CACHE_LOCAL_COPY_FLAG_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	8(%rdi), %rax
	movq	%rax, (%rbx)
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	$0, (%rbx)
	movl	4(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-20(%rbp), %rdx
	leaq	-16(%rbp), %rcx
	leaq	-12(%rbp), %r8
	callq	_sscanf
	cmpl	$3, %eax
	jne	LBB0_10
## %bb.3:
	movl	-20(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.4:
	movq	_MAX_NODE_ID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_10
## %bb.5:
	movl	-16(%rbp), %ecx
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.6:
	movq	_MAX_SERVER_ID@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jg	LBB0_10
## %bb.7:
	movl	-12(%rbp), %edx
	testl	%edx, %edx
	jle	LBB0_10
## %bb.8:
	movq	_MAX_DISK_ID@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jg	LBB0_10
## %bb.9:
	movl	%eax, (%rbx)
	movl	%ecx, 4(%rbx)
	movl	%edx, 8(%rbx)
	jmp	LBB0_10
	.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"

	.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
	.no_dead_strip	_cache_local_copy_compute_packed_location
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cache_local_copy_compute_packed_location
_cache_local_copy_compute_packed_location: ; @cache_local_copy_compute_packed_location
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _CACHE_LOCAL_COPY_FLAG_INT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CACHE_LOCAL_COPY_FLAG_INT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x0, #8]
	str	x8, [x19]
	b	LBB0_6
LBB0_2:
	str	xzr, [x19]
	ldr	w0, [x0, #4]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	add	x3, sp, #8
	add	x4, sp, #4
	bl	_sscanf
	ldr	w8, [sp, #12]
	cmp	w0, #3
	ccmp	w8, #1, #8, eq
	b.lt	LBB0_6
; %bb.3:
Lloh5:
	adrp	x9, _MAX_NODE_ID@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MAX_NODE_ID@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x9]
	ldr	w9, [sp, #8]
	cmp	w8, w10
	ccmp	w9, #1, #8, le
	b.lt	LBB0_6
; %bb.4:
Lloh8:
	adrp	x10, _MAX_SERVER_ID@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MAX_SERVER_ID@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x10]
	ldr	w10, [sp, #4]
Lloh11:
	adrp	x12, _MAX_DISK_ID@GOTPAGE
Lloh12:
	ldr	x12, [x12, _MAX_DISK_ID@GOTPAGEOFF]
Lloh13:
	ldr	w12, [x12]
	cmp	w9, w11
	ccmp	w10, #1, #8, le
	ccmp	w10, w12, #0, ge
	b.gt	LBB0_6
; %bb.5:
	stp	w8, w9, [x19]
	str	w10, [x19, #8]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.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"

	.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
	.no_dead_strip	_cache_local_copy_compute_packed_location
.subsections_via_symbols
