	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_memcache_store                 ## -- Begin function memcache_store
	.p2align	4, 0x90
_memcache_store:                        ## @memcache_store
	.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, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	_binlog_disabled@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	movl	$-2, %r15d
	je	LBB0_26
## %bb.1:
	movq	_protected_mode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_26
## %bb.2:
	movl	%r9d, %ebx
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movq	%rdi, %r13
	movq	_C_INTIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 4(%rdi)
	movq	_cmd_set@GOTPCREL(%rip), %rax
	incl	(%rax)
	testl	%r9d, %r9d
	je	LBB0_3
## %bb.4:
	movq	_SEC_IN_MONTH@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jl	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_get_double_time_since_epoch
	addl	%ebx, %eax
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_3:
	movq	_DELAY_INFINITY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_6:
	movl	16(%rbp), %ecx
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$3, (%rax)
	jl	LBB0_8
## %bb.7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, (%rsp)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	movl	16(%rbp), %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_fprintf
	movl	16(%rbp), %ecx
LBB0_8:
	cmpl	$6, %r12d
	jl	LBB0_9
## %bb.10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	xorl	%edx, %edx
	jmp	LBB0_13
LBB0_9:
	xorl	%edx, %edx
	jmp	LBB0_14
LBB0_12:
	addq	$8, %r14
	addl	$-8, %r12d
	movb	$1, %dl
LBB0_13:
	movl	16(%rbp), %ecx
LBB0_14:
	movq	_MAX_VALUE_LEN@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jle	LBB0_26
## %bb.15:
	movq	_mct_set@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	setne	%al
	orb	%dl, %al
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movzbl	%al, %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_do_pmemcached_preload
	cmpl	$-2, %eax
	jne	LBB0_18
## %bb.16:
	movq	%r13, %rdi
	callq	_memcache_wait
	xorl	%r15d, %r15d
	testq	%rax, %rax
	movl	16(%rbp), %edx
	jne	LBB0_26
## %bb.17:
	movq	_value_buff@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	movl	%edx, %ebx
	callq	_read_in
	cmpl	%ebx, %eax
	sete	%al
	xorl	%r15d, %r15d
	jmp	LBB0_25
LBB0_18:
	movl	%eax, %r15d
	movq	_value_buff@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	movl	16(%rbp), %r13d
	movl	%r13d, %edx
	callq	_read_in
	xorl	%edi, %edi
	cmpl	%r13d, %eax
	sete	%dil
	callq	_assert
	movq	_value_buff@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movslq	%r13d, %rax
	movq	$0, (%r9,%rax,8)
	cmpb	$0, -52(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_22
## %bb.19:
	testl	%r15d, %r15d
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	je	LBB0_20
## %bb.21:
	movq	%r9, %rdi
	callq	_atoll
	xorl	%edi, %edi
	movq	%r14, %rsi
	movl	%r12d, %edx
	movq	%rax, %rcx
	callq	_do_pmemcached_incr
	xorl	%edi, %edi
	cmpl	$-2, %eax
	setne	%dil
	callq	_assert
	movl	$1, %r15d
	jmp	LBB0_24
LBB0_22:
	movl	%r13d, (%rsp)
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_23
LBB0_20:
	movl	%r13d, (%rsp)
LBB0_23:
	movq	%r14, %rsi
	movl	%r12d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ebx, %r8d
	callq	_do_pmemcached_store
	movl	%eax, %r15d
LBB0_24:
	cmpl	$-2, %r15d
	setne	%al
LBB0_25:
	movzbl	%al, %edi
	callq	_assert
LBB0_26:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_binlog_disabled,4,2            ## @binlog_disabled
	.comm	_protected_mode,8,3             ## @protected_mode
	.comm	_C_INTIMEOUT,4,2                ## @C_INTIMEOUT
	.comm	_cmd_set,4,2                    ## @cmd_set
	.comm	_DELAY_INFINITY,4,2             ## @DELAY_INFINITY
	.comm	_SEC_IN_MONTH,4,2               ## @SEC_IN_MONTH
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"memcache_store: key='%s', key_len=%d, value_len=%d, flags = %d, exp_time = %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"##incr##"

	.comm	_MAX_VALUE_LEN,4,2              ## @MAX_VALUE_LEN
	.comm	_mct_set,4,2                    ## @mct_set
	.comm	_value_buff,8,3                 ## @value_buff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_memcache_store                 ; -- Begin function memcache_store
	.p2align	2
_memcache_store:                        ; @memcache_store
	.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
Lloh0:
	adrp	x8, _binlog_disabled@GOTPAGE
Lloh1:
	ldr	x8, [x8, _binlog_disabled@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _protected_mode@GOTPAGE
Lloh4:
	ldr	x9, [x9, _protected_mode@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	w8, #1
	ccmp	x9, #0, #0, ne
	b.ne	LBB0_14
; %bb.1:
	mov	x19, x6
	mov	x22, x5
	mov	x23, x4
	mov	x20, x3
	mov	x21, x2
	mov	x24, x1
	mov	x25, x0
Lloh6:
	adrp	x8, _C_INTIMEOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _C_INTIMEOUT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x0, #4]
	bic	w8, w9, w8
	str	w8, [x0, #4]
Lloh9:
	adrp	x8, _cmd_set@GOTPAGE
Lloh10:
	ldr	x8, [x8, _cmd_set@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	cbz	w5, LBB0_4
; %bb.2:
Lloh11:
	adrp	x8, _SEC_IN_MONTH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SEC_IN_MONTH@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w8, w22
	b.lt	LBB0_5
; %bb.3:
	bl	_get_double_time_since_epoch
	add	w22, w0, w22
	b	LBB0_5
LBB0_4:
Lloh14:
	adrp	x8, _DELAY_INFINITY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DELAY_INFINITY@GOTPAGEOFF]
Lloh16:
	ldr	w22, [x8]
LBB0_5:
Lloh17:
	adrp	x8, _verbosity@GOTPAGE
Lloh18:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w8, #3
	b.lt	LBB0_7
; %bb.6:
Lloh20:
	adrp	x8, _stderr@GOTPAGE
Lloh21:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	mov	x5, x23
	mov	x6, x22
	bl	_fprintf
LBB0_7:
	cmp	w20, #6
	b.lt	LBB0_9
; %bb.8:
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	w2, #8
	bl	_strncmp
	cbz	w0, LBB0_19
LBB0_9:
	mov	w27, #0
LBB0_10:
Lloh27:
	adrp	x8, _MAX_VALUE_LEN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MAX_VALUE_LEN@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmp	w8, w19
	b.le	LBB0_14
; %bb.11:
Lloh30:
	adrp	x8, _mct_set@GOTPAGE
Lloh31:
	ldr	x8, [x8, _mct_set@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	cmp	w8, w24
	cset	w8, ne
	orr	w2, w27, w8
	mov	x0, x21
	mov	x1, x20
	bl	_do_pmemcached_preload
	cmn	w0, #2
	b.ne	LBB0_16
; %bb.12:
	mov	x0, x25
	bl	_memcache_wait
	cbz	x0, LBB0_22
; %bb.13:
	mov	w20, #0
	b	LBB0_15
LBB0_14:
	mov	w20, #-2
LBB0_15:
	mov	x0, x20
	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
LBB0_16:
	mov	x26, x0
Lloh33:
	adrp	x28, _value_buff@GOTPAGE
Lloh34:
	ldr	x28, [x28, _value_buff@GOTPAGEOFF]
	ldr	x1, [x28]
	mov	x0, x25
	mov	x2, x19
	bl	_read_in
	cmp	w0, w19
	cset	w0, eq
	bl	_assert
	ldr	x5, [x28]
	str	xzr, [x5, w19, sxtw #3]
	cbz	w27, LBB0_20
; %bb.17:
	cbz	w26, LBB0_20
; %bb.18:
	mov	x0, x5
	bl	_atoll
	mov	x3, x0
	mov	w0, #0
	mov	x1, x21
	mov	x2, x20
	bl	_do_pmemcached_incr
	cmn	w0, #2
	cset	w0, ne
	bl	_assert
	mov	w20, #1
	b	LBB0_21
LBB0_19:
	add	x21, x21, #8
	sub	w20, w20, #8
	mov	w27, #1
	b	LBB0_10
LBB0_20:
	mov	x0, x24
	mov	x1, x21
	mov	x2, x20
	mov	x3, x23
	mov	x4, x22
	mov	x6, x19
	bl	_do_pmemcached_store
	mov	x20, x0
LBB0_21:
	cmn	w20, #2
	cset	w0, ne
	b	LBB0_23
LBB0_22:
Lloh35:
	adrp	x8, _value_buff@GOTPAGE
Lloh36:
	ldr	x8, [x8, _value_buff@GOTPAGEOFF]
Lloh37:
	ldr	x1, [x8]
	mov	x0, x25
	mov	x2, x19
	bl	_read_in
	mov	w20, #0
	cmp	w0, w19
	cset	w0, eq
LBB0_23:
	bl	_assert
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_binlog_disabled,4,2            ; @binlog_disabled
	.comm	_protected_mode,8,3             ; @protected_mode
	.comm	_C_INTIMEOUT,4,2                ; @C_INTIMEOUT
	.comm	_cmd_set,4,2                    ; @cmd_set
	.comm	_DELAY_INFINITY,4,2             ; @DELAY_INFINITY
	.comm	_SEC_IN_MONTH,4,2               ; @SEC_IN_MONTH
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"memcache_store: key='%s', key_len=%d, value_len=%d, flags = %d, exp_time = %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"##incr##"

	.comm	_MAX_VALUE_LEN,4,2              ; @MAX_VALUE_LEN
	.comm	_mct_set,4,2                    ; @mct_set
	.comm	_value_buff,8,3                 ; @value_buff
.subsections_via_symbols
