	.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
	movq	%rdx, %r12
	movl	%esi, %r13d
	movq	%rdi, %r14
	movl	16(%rbp), %r15d
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	movq	%r12, %rcx
	pushq	$0
	pushq	%r15
	callq	_fprintf
	addq	$16, %rsp
LBB0_2:
	movl	$0, -48(%rbp)
	movl	$-2, %ebx
	cmpl	$65535, %r15d                   ## imm = 0xFFFF
	jg	LBB0_40
## %bb.3:
	movq	%r14, %r15
	cmpl	$1, %r13d
	jne	LBB0_11
## %bb.4:
	movl	16(%rbp), %eax
	testl	%eax, %eax
	js	LBB0_11
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	leaq	-44(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	leaq	-52(%rbp), %r8
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$3, %eax
	jne	LBB0_7
## %bb.6:
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	jg	LBB0_10
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	leaq	-56(%rbp), %r8
	leaq	-52(%rbp), %r9
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$4, %eax
	jne	LBB0_11
## %bb.8:
	movl	-48(%rbp), %r14d
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.9:
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_11
LBB0_10:
	movq	_update_queries@GOTPCREL(%rip), %rcx
	incl	(%rcx)
	movl	%eax, %eax
	movq	%rax, %rcx
	shlq	$32, %rcx
	movl	%r14d, %ebx
	orq	%rcx, %rbx
	testl	%r14d, %r14d
	cmoveq	%rax, %rbx
	leaq	L_.str.3(%rip), %rsi
	xorl	%r13d, %r13d
	movl	$3, %edi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_vkprintf
	movq	%r15, %r14
	movl	16(%rbp), %r15d
	jmp	LBB0_39
LBB0_11:
	cmpl	$1, %r13d
	movq	%r15, %r14
	movl	16(%rbp), %r15d
	jne	LBB0_41
## %bb.12:
	cmpl	$255, %r15d
	ja	LBB0_41
## %bb.13:
	movl	$0, -48(%rbp)
	leaq	1(%r12), %rbx
	leaq	L_.str.4(%rip), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$2, %eax
	jne	LBB0_16
## %bb.14:
	cmpl	$0, -48(%rbp)
	je	LBB0_16
## %bb.15:
	cmpl	$0, -44(%rbp)
	jg	LBB0_19
LBB0_16:
	leaq	L_.str.5(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_22
## %bb.17:
	cmpl	$0, -44(%rbp)
	jle	LBB0_22
## %bb.18:
	movl	$0, -48(%rbp)
LBB0_19:
	movsbl	(%r12), %edi
	callq	_get_sorting_mode
	movl	%eax, %r13d
	movslq	%eax, %rdx
	movsbl	(%r12), %ecx
	leaq	L_.str.6(%rip), %rsi
	movl	$4, %edi
	xorl	%eax, %eax
	callq	_vkprintf
	testl	%r13d, %r13d
	js	LBB0_22
## %bb.20:
	movq	_MAX_RATES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jge	LBB0_22
## %bb.21:
	incl	%r13d
	jmp	LBB0_25
LBB0_22:
	leaq	L_.str.7(%rip), %rsi
	xorl	%r13d, %r13d
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$2, %eax
	jne	LBB0_25
## %bb.23:
	cmpl	$0, -48(%rbp)
	je	LBB0_25
## %bb.24:
	cmpl	$0, -44(%rbp)
	jg	LBB0_28
LBB0_25:
	leaq	L_.str.8(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_29
## %bb.26:
	cmpl	$0, -44(%rbp)
	jle	LBB0_29
## %bb.27:
	movl	$0, -48(%rbp)
LBB0_28:
	movq	_MAX_RATES@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	incl	%r13d
LBB0_29:
	testl	%r13d, %r13d
	je	LBB0_30
LBB0_33:
	leaq	L_.str.10(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_sscanf
	movl	-44(%rbp), %ecx
	cmpl	$1, %eax
	jne	LBB0_37
## %bb.34:
	testl	%ecx, %ecx
	jle	LBB0_37
## %bb.35:
	movl	$0, -48(%rbp)
	jmp	LBB0_36
LBB0_30:
	leaq	L_.str.9(%rip), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$2, %eax
	jne	LBB0_33
## %bb.31:
	cmpl	$0, -48(%rbp)
	je	LBB0_33
## %bb.32:
	movl	-44(%rbp), %ecx
	testl	%ecx, %ecx
	jle	LBB0_33
LBB0_36:
	movq	_MAX_RATES@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	addl	$2, %r13d
LBB0_37:
	testl	%r13d, %r13d
	je	LBB0_41
## %bb.38:
	movq	_minor_update_queries@GOTPCREL(%rip), %rax
	incl	(%rax)
	movl	$0, -56(%rbp)
	movl	$0, -52(%rbp)
	movl	-48(%rbp), %eax
	movq	%rcx, %rdx
	shlq	$32, %rdx
	orq	%rax, %rdx
	testq	%rax, %rax
	movslq	%ecx, %rbx
	cmovneq	%rdx, %rbx
LBB0_39:
	leaq	L_.str.11(%rip), %rsi
	movl	$3, %edi
	movq	%rbx, %rdx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_vkprintf
	movl	-56(%rbp), %edx
	movl	-52(%rbp), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %r8d
	movl	%r15d, %r9d
	callq	_do_store
	xorl	%ebx, %ebx
	testl	%eax, %eax
	setg	%bl
	jmp	LBB0_40
LBB0_41:
	leaq	L_.str.11(%rip), %rsi
	xorl	%ebx, %ebx
	movl	$3, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	callq	_vkprintf
LBB0_40:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbosity,8,3                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mc_store: op=%d, key=\"%s\", flags=%d, expire=%d, bytes=%d, noreply=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"item%d#%d,%d "

L_.str.2:                               ## @.str.2
	.asciz	"item%d_%d#%d,%d "

	.comm	_update_queries,4,2             ## @update_queries
L_.str.3:                               ## @.str.3
	.asciz	"store: item_id=%016llx\n"

L_.str.4:                               ## @.str.4
	.asciz	"ate%d_%d "

L_.str.5:                               ## @.str.5
	.asciz	"ate%d "

L_.str.6:                               ## @.str.6
	.asciz	"p = %d, *key=%c\n"

	.comm	_MAX_RATES,4,2                  ## @MAX_RATES
L_.str.7:                               ## @.str.7
	.asciz	"rates%d_%d "

L_.str.8:                               ## @.str.8
	.asciz	"rates%d "

L_.str.9:                               ## @.str.9
	.asciz	"hash%d_%d "

L_.str.10:                              ## @.str.10
	.asciz	"hash%d "

	.comm	_minor_update_queries,4,2       ## @minor_update_queries
L_.str.11:                              ## @.str.11
	.asciz	"store: item_id=%016llx, cur_op = %d\n"

.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:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x6
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _verbosity@GOTPAGE
Lloh1:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _stderr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	mov	x3, x21
	mov	x6, x19
	mov	w7, #0
	bl	_fprintf
LBB0_2:
	str	wzr, [sp, #36]
	cmp	w19, #16, lsl #12               ; =65536
	b.lt	LBB0_4
; %bb.3:
	mov	w0, #-2
	b	LBB0_43
LBB0_4:
	cmp	w22, #1
	b.ne	LBB0_13
; %bb.5:
	tbnz	w19, #31, LBB0_13
; %bb.6:
	add	x23, sp, #40
	add	x24, sp, #44
	stp	x24, x23, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x25, sp, #32
	add	x2, sp, #32
	mov	x0, x21
	bl	_sscanf
	cmp	w0, #3
	b.ne	LBB0_9
; %bb.7:
	ldr	w9, [sp, #32]
	cmp	w9, #0
	b.le	LBB0_9
; %bb.8:
	mov	w8, #0
	b	LBB0_12
LBB0_9:
	stp	x24, x23, [sp, #8]
	str	x25, [sp]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #36
	mov	x0, x21
	bl	_sscanf
	cmp	w0, #4
	b.ne	LBB0_13
; %bb.10:
	ldr	w8, [sp, #36]
	cbz	w8, LBB0_13
; %bb.11:
	ldr	w9, [sp, #32]
	cmp	w9, #1
	b.lt	LBB0_13
LBB0_12:
Lloh12:
	adrp	x10, _update_queries@GOTPAGE
Lloh13:
	ldr	x10, [x10, _update_queries@GOTPAGEOFF]
	ldr	w11, [x10]
	add	w11, w11, #1
	str	w11, [x10]
	mov	w9, w9
	mov	w10, w8
	bfi	x10, x9, #32, #32
	cmp	w8, #0
	csel	x21, x9, x10, eq
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #3
	mov	x2, x21
	bl	_vkprintf
	mov	w22, #0
	b	LBB0_41
LBB0_13:
	cmp	w22, #1
	b.ne	LBB0_42
; %bb.14:
	cmp	w19, #255
	b.hi	LBB0_42
; %bb.15:
	str	wzr, [sp, #36]
	add	x22, x21, #1
	add	x8, sp, #32
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #36
	mov	x0, x22
	bl	_sscanf
Lloh18:
	adrp	x23, _MAX_RATES@GOTPAGE
Lloh19:
	ldr	x23, [x23, _MAX_RATES@GOTPAGEOFF]
	cmp	w0, #2
	b.ne	LBB0_18
; %bb.16:
	ldr	w8, [sp, #36]
	cbz	w8, LBB0_18
; %bb.17:
	ldr	w8, [sp, #32]
	cmp	w8, #0
	b.gt	LBB0_21
LBB0_18:
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x2, sp, #32
	mov	x0, x22
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_24
; %bb.19:
	ldr	w8, [sp, #32]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.20:
	str	wzr, [sp, #36]
LBB0_21:
	ldrsb	w0, [x21]
	bl	_get_sorting_mode
	mov	x22, x0
	sxtw	x2, w22
	ldrsb	x8, [x21]
	str	x8, [sp]
Lloh22:
	adrp	x1, l_.str.6@PAGE
Lloh23:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #4
	bl	_vkprintf
	tbnz	w22, #31, LBB0_24
; %bb.22:
	ldr	w8, [x23]
	cmp	w22, w8
	b.ge	LBB0_24
; %bb.23:
	add	w22, w22, #1
	b	LBB0_27
LBB0_24:
	add	x8, sp, #32
	str	x8, [sp]
Lloh24:
	adrp	x1, l_.str.7@PAGE
Lloh25:
	add	x1, x1, l_.str.7@PAGEOFF
	add	x2, sp, #36
	mov	x0, x21
	bl	_sscanf
	mov	w22, #0
	cmp	w0, #2
	b.ne	LBB0_27
; %bb.25:
	ldr	w8, [sp, #36]
	cbz	w8, LBB0_27
; %bb.26:
	ldr	w8, [sp, #32]
	cmp	w8, #1
	b.ge	LBB0_30
LBB0_27:
Lloh26:
	adrp	x1, l_.str.8@PAGE
Lloh27:
	add	x1, x1, l_.str.8@PAGEOFF
	add	x2, sp, #32
	mov	x0, x21
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_31
; %bb.28:
	ldr	w8, [sp, #32]
	cmp	w8, #1
	b.lt	LBB0_31
; %bb.29:
	str	wzr, [sp, #36]
LBB0_30:
	ldr	w8, [x23]
	add	w22, w8, #1
LBB0_31:
	cbz	w22, LBB0_35
LBB0_32:
Lloh28:
	adrp	x1, l_.str.10@PAGE
Lloh29:
	add	x1, x1, l_.str.10@PAGEOFF
	add	x2, sp, #32
	mov	x0, x21
	bl	_sscanf
	ldr	w8, [sp, #32]
	cmp	w0, #1
	b.ne	LBB0_39
; %bb.33:
	cmp	w8, #1
	b.lt	LBB0_39
; %bb.34:
	str	wzr, [sp, #36]
	b	LBB0_38
LBB0_35:
	add	x8, sp, #32
	str	x8, [sp]
Lloh30:
	adrp	x1, l_.str.9@PAGE
Lloh31:
	add	x1, x1, l_.str.9@PAGEOFF
	add	x2, sp, #36
	mov	x0, x21
	bl	_sscanf
	cmp	w0, #2
	b.ne	LBB0_32
; %bb.36:
	ldr	w8, [sp, #36]
	cbz	w8, LBB0_32
; %bb.37:
	ldr	w8, [sp, #32]
	cmp	w8, #1
	b.lt	LBB0_32
LBB0_38:
	ldr	w9, [x23]
	add	w22, w9, #2
LBB0_39:
	cbz	w22, LBB0_42
; %bb.40:
Lloh32:
	adrp	x9, _minor_update_queries@GOTPAGE
Lloh33:
	ldr	x9, [x9, _minor_update_queries@GOTPAGEOFF]
	ldr	w10, [x9]
	add	w10, w10, #1
	str	w10, [x9]
	str	xzr, [sp, #40]
	ldr	w9, [sp, #36]
	cmp	w9, #0
	bfi	x9, x8, #32, #32
	sxtw	x8, w8
	csel	x21, x8, x9, eq
LBB0_41:
	str	x22, [sp]
Lloh34:
	adrp	x1, l_.str.11@PAGE
Lloh35:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	w0, #3
	mov	x2, x21
	bl	_vkprintf
	ldp	w3, w2, [sp, #40]
	mov	x0, x20
	mov	x1, x21
	mov	x4, x22
	mov	x5, x19
	bl	_do_store
	cmp	w0, #0
	cset	w0, gt
	b	LBB0_43
LBB0_42:
	str	xzr, [sp]
Lloh36:
	adrp	x1, l_.str.11@PAGE
Lloh37:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	w0, #3
	mov	x2, #0
	bl	_vkprintf
	mov	w0, #0
LBB0_43:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,8,3                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mc_store: op=%d, key=\"%s\", flags=%d, expire=%d, bytes=%d, noreply=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"item%d#%d,%d "

l_.str.2:                               ; @.str.2
	.asciz	"item%d_%d#%d,%d "

	.comm	_update_queries,4,2             ; @update_queries
l_.str.3:                               ; @.str.3
	.asciz	"store: item_id=%016llx\n"

l_.str.4:                               ; @.str.4
	.asciz	"ate%d_%d "

l_.str.5:                               ; @.str.5
	.asciz	"ate%d "

l_.str.6:                               ; @.str.6
	.asciz	"p = %d, *key=%c\n"

	.comm	_MAX_RATES,4,2                  ; @MAX_RATES
l_.str.7:                               ; @.str.7
	.asciz	"rates%d_%d "

l_.str.8:                               ; @.str.8
	.asciz	"rates%d "

l_.str.9:                               ; @.str.9
	.asciz	"hash%d_%d "

l_.str.10:                              ; @.str.10
	.asciz	"hash%d "

	.comm	_minor_update_queries,4,2       ; @minor_update_queries
l_.str.11:                              ; @.str.11
	.asciz	"store: item_id=%016llx, cur_op = %d\n"

.subsections_via_symbols
