	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cache_load_local               ## -- Begin function cache_load_local
	.p2align	4, 0x90
_cache_load_local:                      ## @cache_load_local
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	_disable_cache@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	callq	_get_cache_item_simple
	jmp	LBB0_3
LBB0_2:
	callq	_get_cache_item
LBB0_3:
	movq	%rax, %rdi
	movq	_current_cache@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_cache_reload_local
	movq	(%r15), %rdi
	cmpl	$-2, (%rdi)
	jne	LBB0_8
## %bb.4:
	movq	%rbx, %rsi
	callq	_cache_assign_index_entry_local
	movq	(%r15), %rdi
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.6:
	xorl	%edi, %edi
	cmpl	$-2, 8(%rax)
	sete	%dil
	callq	_assert
	movq	(%r15), %rax
	movq	16(%rax), %rdi
	movq	(%rdi), %rbx
	callq	_del_entry
	movq	(%r15), %rdi
	movq	$0, 16(%rdi)
	cmpq	$0, 8(%rdi)
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_pmemcached_incr_current
	movq	(%r15), %rdi
LBB0_8:
	movq	_cache_ok@GOTPCREL(%rip), %rax
	incl	(%rax)
	xorl	%eax, %eax
	cmpl	$-1, (%rdi)
	setne	%al
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_disable_cache,8,3              ## @disable_cache
	.comm	_current_cache,8,3              ## @current_cache
	.comm	_cache_ok,4,2                   ## @cache_ok
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cache_load_local               ; -- Begin function cache_load_local
	.p2align	2
_cache_load_local:                      ; @cache_load_local
	.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	x19, x3
	mov	x20, x2
Lloh0:
	adrp	x8, _disable_cache@GOTPAGE
Lloh1:
	ldr	x8, [x8, _disable_cache@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_get_cache_item_simple
	b	LBB0_3
LBB0_2:
	bl	_get_cache_item
LBB0_3:
Lloh3:
	adrp	x21, _current_cache@GOTPAGE
Lloh4:
	ldr	x21, [x21, _current_cache@GOTPAGEOFF]
	str	x0, [x21]
	mov	x1, x20
	mov	x2, x19
	bl	_cache_reload_local
	ldr	x0, [x21]
	ldr	w8, [x0]
	cmn	w8, #2
	b.ne	LBB0_8
; %bb.4:
	mov	x1, x19
	bl	_cache_assign_index_entry_local
	ldr	x0, [x21]
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_8
; %bb.5:
	ldr	x9, [x8]
	cbz	x9, LBB0_8
; %bb.6:
	ldr	w8, [x8, #8]
	cmn	w8, #2
	cset	w0, eq
	bl	_assert
	ldr	x8, [x21]
	ldr	x0, [x8, #16]
	ldr	x19, [x0]
	bl	_del_entry
	ldr	x0, [x21]
	str	xzr, [x0, #16]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_pmemcached_incr_current
	ldr	x0, [x21]
LBB0_8:
Lloh5:
	adrp	x8, _cache_ok@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cache_ok@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldr	w8, [x0]
	cmn	w8, #1
	cset	w0, ne
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_disable_cache,8,3              ; @disable_cache
	.comm	_current_cache,8,3              ; @current_cache
	.comm	_cache_ok,4,2                   ; @cache_ok
.subsections_via_symbols
