	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmemcached_store_current       ## -- Begin function pmemcached_store_current
	.p2align	4, 0x90
_pmemcached_store_current:              ## @pmemcached_store_current
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movl	%ecx, %r15d
	movl	%edx, %r13d
	movq	%rsi, %r12
	movl	%edi, %ebx
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$4, (%rax)
	jl	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_current_cache@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	24(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
LBB0_2:
	movq	_pmct_add@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_current_cache@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%eax, %eax
	cmpl	$-1, 24(%rcx)
	jne	LBB0_15
LBB0_4:
	movq	_pmct_replace@GOTPCREL(%rip), %rcx
	movq	_current_cache@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	%ebx, (%rcx)
	jne	LBB0_7
## %bb.5:
	cmpl	$-1, 24(%rax)
	je	LBB0_6
LBB0_7:
	movq	(%rax), %rdi
	movl	8(%rax), %esi
	callq	_on_value_change
	movq	_current_cache@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.8:
	movl	(%rbx), %esi
	testl	%esi, %esi
	js	LBB0_11
## %bb.9:
	movq	8(%rbx), %rdi
	incl	%esi
	callq	_zzfree
	movl	(%rbx), %eax
	notl	%eax
	movq	_entry_memory@GOTPCREL(%rip), %rcx
	addl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_del_entry_time
LBB0_11:
	testl	%r13d, %r13d
	js	LBB0_12
LBB0_13:
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	leal	1(%r13), %r14d
	movl	%r14d, %edi
	callq	_zzmalloc
	movq	%r12, %r15
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_assert
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movl	%r13d, %eax
	movb	$0, (%r12,%rax)
	movq	_entry_memory@GOTPCREL(%rip), %rax
	addl	%r14d, (%rax)
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_14
LBB0_10:
	xorl	%eax, %eax
	callq	_get_new_entry
	movq	%rax, %rbx
	movq	_current_cache@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	8(%rax), %edi
	incl	%edi
	callq	_zzmalloc
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %r12
	movq	_current_cache@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rsi
	movl	8(%rax), %edx
	movq	%r12, %rdi
	callq	_memcpy
	movq	_current_cache@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movslq	8(%rax), %rax
	movb	$0, (%r12,%rax)
	movq	(%rcx), %rax
	movl	8(%rax), %eax
	movq	_entry_memory@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leal	1(%rax,%rdx), %edx
	movl	%edx, (%rcx)
	movq	%r12, 16(%rbx)
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	%eax, 24(%rbx)
	movq	%rbx, %rdi
	callq	_add_entry
	testl	%r13d, %r13d
	jns	LBB0_13
LBB0_12:
	xorl	%r12d, %r12d
LBB0_14:
	movq	%r12, 8(%rbx)
	movl	%r13d, (%rbx)
	movl	%r15d, 28(%rbx)
	movl	%r14d, 32(%rbx)
	xorl	%eax, %eax
	callq	_local_clock
	movl	%eax, 36(%rbx)
	movq	%rbx, %rdi
	callq	_add_entry_time
	movq	_current_cache@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_cache_reload
	movl	$1, %eax
	jmp	LBB0_15
LBB0_6:
	xorl	%eax, %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"data_len=%d\n"

	.comm	_current_cache,8,3              ## @current_cache
	.comm	_pmct_add,4,2                   ## @pmct_add
	.comm	_pmct_replace,4,2               ## @pmct_replace
	.comm	_entry_memory,4,2               ## @entry_memory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmemcached_store_current       ; -- Begin function pmemcached_store_current
	.p2align	2
_pmemcached_store_current:              ; @pmemcached_store_current
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _verbosity@GOTPAGE
Lloh1:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x26, _current_cache@GOTPAGE
Lloh4:
	ldr	x26, [x26, _current_cache@GOTPAGEOFF]
	cmp	w8, #4
	b.lt	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _stderr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	x8, [x26]
	ldr	w2, [x8, #24]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_2:
Lloh10:
	adrp	x8, _pmct_add@GOTPAGE
Lloh11:
	ldr	x8, [x8, _pmct_add@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x26]
	ldr	w8, [x8, #24]
	cmn	w8, #1
	b.ne	LBB0_11
LBB0_4:
Lloh13:
	adrp	x8, _pmct_replace@GOTPAGE
Lloh14:
	ldr	x8, [x8, _pmct_replace@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x8]
	ldr	x8, [x26]
	cmp	w9, w23
	b.ne	LBB0_6
; %bb.5:
	ldr	w9, [x8, #24]
	cmn	w9, #1
	b.eq	LBB0_11
LBB0_6:
	ldr	x0, [x8]
	ldr	w1, [x8, #8]
	bl	_on_value_change
	ldr	x8, [x26]
	ldr	x23, [x8, #16]
Lloh16:
	adrp	x27, _entry_memory@GOTPAGE
Lloh17:
	ldr	x27, [x27, _entry_memory@GOTPAGEOFF]
	cbz	x23, LBB0_12
; %bb.7:
	ldr	w8, [x23]
	tbnz	w8, #31, LBB0_9
; %bb.8:
	ldr	x0, [x23, #8]
	add	w1, w8, #1
	bl	_zzfree
	ldr	w8, [x23]
	mvn	w8, w8
	ldr	w9, [x27]
	add	w8, w9, w8
	str	w8, [x27]
	mov	x0, x23
	bl	_del_entry_time
LBB0_9:
	tbnz	w21, #31, LBB0_13
LBB0_10:
	add	w25, w21, #1
	mov	x0, x25
	bl	_zzmalloc
	mov	x24, x0
	bl	_assert
	mov	x0, x24
	mov	x1, x22
	mov	x2, x21
	bl	_memcpy
	strb	wzr, [x24, w21, uxtw]
	ldr	w8, [x27]
	add	w8, w8, w25
	str	w8, [x27]
	b	LBB0_14
LBB0_11:
	mov	w0, #0
	b	LBB0_15
LBB0_12:
	bl	_get_new_entry
	mov	x23, x0
	ldr	x8, [x26]
	ldr	w8, [x8, #8]
	add	w0, w8, #1
	bl	_zzmalloc
	mov	x24, x0
	ldr	x8, [x26]
	ldr	x1, [x8]
	ldr	w2, [x8, #8]
	bl	_memcpy
	ldr	x8, [x26]
	ldrsw	x8, [x8, #8]
	strb	wzr, [x24, x8]
	ldr	x8, [x26]
	ldr	w8, [x8, #8]
	ldr	w9, [x27]
	add	w9, w8, w9
	add	w9, w9, #1
	str	w9, [x27]
	str	x24, [x23, #16]
	str	w8, [x23, #24]
	mov	x0, x23
	bl	_add_entry
	tbz	w21, #31, LBB0_10
LBB0_13:
	mov	x24, #0
LBB0_14:
	str	x24, [x23, #8]
	str	w21, [x23]
	stp	w20, w19, [x23, #28]
	bl	_local_clock
	str	w0, [x23, #36]
	mov	x0, x23
	bl	_add_entry_time
	ldr	x0, [x26]
	bl	_cache_reload
	mov	w0, #1
LBB0_15:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"data_len=%d\n"

	.comm	_current_cache,8,3              ; @current_cache
	.comm	_pmct_add,4,2                   ; @pmct_add
	.comm	_pmct_replace,4,2               ; @pmct_replace
	.comm	_entry_memory,4,2               ; @entry_memory
.subsections_via_symbols
