	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cache_load                     ## -- Begin function cache_load
	.p2align	4, 0x90
_cache_load:                            ## @cache_load
	.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
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_verbosity@GOTPCREL(%rip), %r12
	cmpl	$4, (%r12)
	jl	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_2:
	movq	_disable_cache@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_get_cache_item_simple
	jmp	LBB0_5
LBB0_4:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_get_cache_item
LBB0_5:
	movq	_current_cache@GOTPCREL(%rip), %r13
	movq	%rax, (%r13)
	cmpl	$4, (%r12)
	jl	LBB0_7
## %bb.6:
	movq	_stderr@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	12(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%r13), %rax
	movq	(%rax), %rdi
	movl	8(%rax), %esi
	callq	_debug_dump_key
	movl	(%r12), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_debug_dump_key
	movl	(%r12), %edi
	movq	_verbosity@GOTPCREL(%rip), %r12
	movq	(%r13), %rax
	movl	8(%rax), %ecx
	leaq	L_.str.5(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_7:
	notl	%ebx
	shrl	$31, %ebx
	movl	%ebx, %edi
	callq	_assert
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.8:
	movq	(%r13), %rdi
	cmpl	$-2, 12(%rdi)
	jne	LBB0_9
## %bb.12:
	movq	_cache_miss@GOTPCREL(%rip), %rax
	incl	(%rax)
	cmpl	$4, (%r12)
	jl	LBB0_14
## %bb.13:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%r13), %rdi
LBB0_14:
	callq	_cache_reload
	movq	(%r13), %rdi
	cmpq	$0, 24(%rdi)
	je	LBB0_16
## %bb.15:
	cmpl	$-2, 12(%rdi)
	jne	LBB0_29
LBB0_16:
	cmpl	$4, (%r12)
	jl	LBB0_18
## %bb.17:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%r13), %rdi
LBB0_18:
	callq	_cache_assign_index_entry
	cmpl	$-2, %eax
	jne	LBB0_21
## %bb.19:
	movl	$-2, %ebx
	cmpl	$4, (%r12)
	jl	LBB0_30
## %bb.20:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_30
LBB0_9:
	movq	_cache_ok@GOTPCREL(%rip), %rax
	incl	(%rax)
	cmpl	$4, (%r12)
	jl	LBB0_11
## %bb.10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_11:
	movq	(%r13), %rdi
	callq	_cache_reload
LBB0_29:
	movq	(%r13), %rax
	xorl	%ebx, %ebx
	cmpl	$-1, 12(%rax)
	setne	%bl
LBB0_30:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	(%r13), %rax
	movq	24(%rax), %rax
	testq	%rax, %rax
	je	LBB0_27
## %bb.22:
	cmpq	$0, (%rax)
	je	LBB0_27
## %bb.23:
	xorl	%edi, %edi
	cmpl	$-2, 8(%rax)
	sete	%dil
	callq	_assert
	cmpl	$4, (%r12)
	jl	LBB0_25
## %bb.24:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_25:
	movq	(%r13), %rax
	movq	24(%rax), %rdi
	movq	(%rdi), %rbx
	callq	_del_entry
	movq	(%r13), %rax
	movq	$0, 24(%rax)
	cmpq	$0, 16(%rax)
	je	LBB0_27
## %bb.26:
	movq	%rbx, %rdi
	callq	_pmemcached_incr_current
LBB0_27:
	cmpl	$4, (%r12)
	jl	LBB0_29
## %bb.28:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.12(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"loading cache item... "

	.comm	_disable_cache,8,3              ## @disable_cache
	.comm	_current_cache,8,3              ## @current_cache
L_.str.1:                               ## @.str.1
	.asciz	"current_cache->data.data_len = %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"forceload = %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"current_cache->key = "

L_.str.4:                               ## @.str.4
	.asciz	"key = "

L_.str.5:                               ## @.str.5
	.asciz	"key_len = %d, current_cache->key_len = %d\n"

	.comm	_cache_ok,4,2                   ## @cache_ok
L_.str.6:                               ## @.str.6
	.asciz	"already in cache\n"

	.comm	_cache_miss,4,2                 ## @cache_miss
L_.str.7:                               ## @.str.7
	.asciz	"not in cache. Adding..."

L_.str.8:                               ## @.str.8
	.asciz	"Copying data from index..."

L_.str.9:                               ## @.str.9
	.asciz	"Data is not loaded. Using aio.\n"

L_.str.10:                              ## @.str.10
	.asciz	"Adding accumulated data..."

L_.str.12:                              ## @.str.12
	.asciz	"Added successfully.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cache_load                     ; -- Begin function cache_load
	.p2align	2
_cache_load:                            ; @cache_load
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _verbosity@GOTPAGE
Lloh1:
	ldr	x22, [x22, _verbosity@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #4
	b.lt	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _stderr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_2:
Lloh7:
	adrp	x8, _disable_cache@GOTPAGE
Lloh8:
	ldr	x8, [x8, _disable_cache@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x21
	mov	x1, x20
	bl	_get_cache_item_simple
	b	LBB0_5
LBB0_4:
	mov	x0, x21
	mov	x1, x20
	bl	_get_cache_item
LBB0_5:
Lloh10:
	adrp	x23, _current_cache@GOTPAGE
Lloh11:
	ldr	x23, [x23, _current_cache@GOTPAGEOFF]
	str	x0, [x23]
	ldr	w8, [x22]
	cmp	w8, #4
	b.lt	LBB0_7
; %bb.6:
Lloh12:
	adrp	x24, _stderr@GOTPAGE
Lloh13:
	ldr	x24, [x24, _stderr@GOTPAGEOFF]
	ldr	w8, [x24]
	ldr	w9, [x0, #12]
	str	x9, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
	bl	_fprintf
	ldr	w0, [x24]
	str	x19, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	ldr	w0, [x24]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	ldr	x8, [x23]
	ldr	x0, [x8]
	ldr	w1, [x8, #8]
	bl	_debug_dump_key
	ldr	w0, [x24]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	mov	x0, x21
	mov	x1, x20
	bl	_debug_dump_key
	ldr	w0, [x24]
	ldr	x8, [x23]
	ldr	w8, [x8, #8]
	stp	x20, x8, [sp]
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fprintf
LBB0_7:
	mvn	w8, w20
	lsr	w0, w8, #31
	bl	_assert
	cbz	w19, LBB0_18
; %bb.8:
	ldr	x0, [x23]
	ldr	w8, [x0, #12]
	cmn	w8, #2
	b.ne	LBB0_18
; %bb.9:
Lloh24:
	adrp	x8, _cache_miss@GOTPAGE
Lloh25:
	ldr	x8, [x8, _cache_miss@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldr	w8, [x22]
	cmp	w8, #4
	b.lt	LBB0_11
; %bb.10:
Lloh26:
	adrp	x8, _stderr@GOTPAGE
Lloh27:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str.7@PAGE
Lloh30:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_fprintf
	ldr	x0, [x23]
LBB0_11:
	bl	_cache_reload
	ldr	x0, [x23]
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_13
; %bb.12:
	ldr	w8, [x0, #12]
	cmn	w8, #2
	b.ne	LBB0_21
LBB0_13:
	ldr	w8, [x22]
	cmp	w8, #4
	b.lt	LBB0_15
; %bb.14:
Lloh31:
	adrp	x8, _stderr@GOTPAGE
Lloh32:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x1, l_.str.8@PAGE
Lloh35:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_fprintf
	ldr	x0, [x23]
LBB0_15:
	bl	_cache_assign_index_entry
	cmn	w0, #2
	b.ne	LBB0_23
; %bb.16:
	ldr	w8, [x22]
	cmp	w8, #4
	b.lt	LBB0_31
; %bb.17:
Lloh36:
	adrp	x8, _stderr@GOTPAGE
Lloh37:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x1, l_.str.9@PAGE
Lloh40:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_fprintf
	mov	w0, #-2
	b	LBB0_22
LBB0_18:
Lloh41:
	adrp	x8, _cache_ok@GOTPAGE
Lloh42:
	ldr	x8, [x8, _cache_ok@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldr	w8, [x22]
	cmp	w8, #4
	b.lt	LBB0_20
; %bb.19:
Lloh43:
	adrp	x8, _stderr@GOTPAGE
Lloh44:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
Lloh46:
	adrp	x1, l_.str.6@PAGE
Lloh47:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fprintf
LBB0_20:
	ldr	x0, [x23]
	bl	_cache_reload
LBB0_21:
	ldr	x8, [x23]
	ldr	w8, [x8, #12]
	cmn	w8, #1
	cset	w0, ne
LBB0_22:
	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
LBB0_23:
	ldr	x8, [x23]
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_29
; %bb.24:
	ldr	x9, [x8]
	cbz	x9, LBB0_29
; %bb.25:
	ldr	w8, [x8, #8]
	cmn	w8, #2
	cset	w0, eq
	bl	_assert
	ldr	w8, [x22]
	cmp	w8, #4
	b.lt	LBB0_27
; %bb.26:
Lloh48:
	adrp	x8, _stderr@GOTPAGE
Lloh49:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x8]
Lloh51:
	adrp	x1, l_.str.10@PAGE
Lloh52:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_fprintf
LBB0_27:
	ldr	x8, [x23]
	ldr	x0, [x8, #24]
	ldr	x19, [x0]
	bl	_del_entry
	ldr	x8, [x23]
	str	xzr, [x8, #24]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_29
; %bb.28:
	mov	x0, x19
	bl	_pmemcached_incr_current
LBB0_29:
	ldr	w8, [x22]
	cmp	w8, #4
	b.lt	LBB0_21
; %bb.30:
Lloh53:
	adrp	x8, _stderr@GOTPAGE
Lloh54:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
Lloh56:
	adrp	x1, l_.str.12@PAGE
Lloh57:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_fprintf
	b	LBB0_21
LBB0_31:
	mov	w0, #-2
	b	LBB0_22
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"loading cache item... "

	.comm	_disable_cache,8,3              ; @disable_cache
	.comm	_current_cache,8,3              ; @current_cache
l_.str.1:                               ; @.str.1
	.asciz	"current_cache->data.data_len = %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"forceload = %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"current_cache->key = "

l_.str.4:                               ; @.str.4
	.asciz	"key = "

l_.str.5:                               ; @.str.5
	.asciz	"key_len = %d, current_cache->key_len = %d\n"

	.comm	_cache_ok,4,2                   ; @cache_ok
l_.str.6:                               ; @.str.6
	.asciz	"already in cache\n"

	.comm	_cache_miss,4,2                 ; @cache_miss
l_.str.7:                               ; @.str.7
	.asciz	"not in cache. Adding..."

l_.str.8:                               ; @.str.8
	.asciz	"Copying data from index..."

l_.str.9:                               ; @.str.9
	.asciz	"Data is not loaded. Using aio.\n"

l_.str.10:                              ; @.str.10
	.asciz	"Adding accumulated data..."

l_.str.12:                              ; @.str.12
	.asciz	"Added successfully.\n"

.subsections_via_symbols
