	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movl	16(%rbp), %r15d
	leaq	L_.str(%rip), %rdi
	movq	%rdx, %rsi
	movl	%ecx, %edx
	movl	%r15d, %ecx
	callq	_hst
	movq	_MAX_VALUE_LEN@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%r15d, (%rax)
	setle	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_set@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-2, %esi
	callq	_RETURN
LBB0_2:
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_eat_at
	movl	-56(%rbp), %eax
	cmpl	$8, %eax
	jl	LBB0_10
## %bb.3:
	movq	-48(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$8, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movq	-48(%rbp), %rdi
	addq	$8, %rdi
	leaq	L_.str.2(%rip), %rsi
	leaq	-40(%rbp), %rdx
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$1, %eax
	je	LBB0_6
## %bb.5:
	movq	_set@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-2, %esi
	callq	_RETURN
LBB0_6:
	movq	%r14, %rdi
	callq	_MESSAGE
	movl	-40(%rbp), %edx
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_msg_reinit
	testq	%rax, %rax
	jns	LBB0_8
## %bb.7:
	movq	_set@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-2, %esi
	callq	_RETURN
LBB0_8:
	movq	%r14, %rdi
	callq	_MESSAGE
	movl	%eax, %edi
	callq	_msg_get_buf
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	%r15d, %edx
	callq	_safe_read_in
	movq	_set@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_RETURN
LBB0_9:
	movl	-56(%rbp), %eax
LBB0_10:
	cmpl	$6, %eax
	jl	LBB0_16
## %bb.11:
	movq	-48(%rbp), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	$6, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_12
LBB0_16:
	cmpl	$4, -56(%rbp)
	jl	LBB0_24
LBB0_17:
	movq	-48(%rbp), %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	$4, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_24
## %bb.18:
	movq	_buf@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_safe_read_in
	movq	-48(%rbp), %rdi
	addq	$4, %rdi
	leaq	L_.str.6(%rip), %rsi
	leaq	-40(%rbp), %rdx
	leaq	-36(%rbp), %rcx
	xorl	%eax, %eax
	callq	_sscanf
	testl	%eax, %eax
	jle	LBB0_22
## %bb.19:
	movq	-48(%rbp), %rax
	movslq	-36(%rbp), %rcx
	cmpb	$0, 4(%rcx,%rax)
	je	LBB0_20
LBB0_22:
	movq	_set@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_RETURN
LBB0_23:
	movl	-40(%rbp), %edi
	movl	-52(%rbp), %esi
	callq	_do_set_mark
	movq	_set@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_RETURN
	jmp	LBB0_24
LBB0_12:
	movq	_buf@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_safe_read_in
	movq	-48(%rbp), %rdi
	addq	$6, %rdi
	leaq	L_.str.4(%rip), %rsi
	leaq	-40(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	leaq	-36(%rbp), %r8
	leaq	-60(%rbp), %r9
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$3, %eax
	jl	LBB0_14
## %bb.13:
	movq	-48(%rbp), %rax
	movslq	-60(%rbp), %rcx
	cmpb	$0, 6(%rcx,%rax)
	je	LBB0_15
LBB0_14:
	movq	_set@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_RETURN
LBB0_15:
	movl	-40(%rbp), %edi
	movl	-52(%rbp), %esi
	movl	-36(%rbp), %edx
	movq	(%rbx), %r8
	movl	%r15d, %ecx
	callq	_do_add_answer
	movq	_set@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_RETURN
	cmpl	$4, -56(%rbp)
	jge	LBB0_17
LBB0_24:
	movq	_set@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-2, %esi
	callq	_RETURN
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	(%rbx), %rdi
	leaq	L_.str.6(%rip), %rsi
	leaq	-52(%rbp), %rdx
	leaq	-36(%rbp), %rcx
	xorl	%eax, %eax
	callq	_sscanf
	testl	%eax, %eax
	jle	LBB0_22
## %bb.21:
	movq	(%rbx), %rax
	movslq	-36(%rbp), %rcx
	cmpb	$0, (%rax,%rcx)
	jne	LBB0_22
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_INIT,4,2                       ## @INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"memcache_store: key='%s', key_len=%d, value_len=%d\n"

	.comm	_MAX_VALUE_LEN,4,2              ## @MAX_VALUE_LEN
	.comm	_set,4,2                        ## @set
L_.str.1:                               ## @.str.1
	.asciz	"question"

L_.str.2:                               ## @.str.2
	.asciz	"%d"

L_.str.3:                               ## @.str.3
	.asciz	"answer"

	.comm	_buf,8,3                        ## @buf
L_.str.4:                               ## @.str.4
	.asciz	"%d,%d,%d%n"

L_.str.5:                               ## @.str.5
	.asciz	"mark"

L_.str.6:                               ## @.str.6
	.asciz	"%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	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
	mov	x19, x6
	mov	x21, x3
	mov	x22, x2
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x2
	mov	x2, x3
	mov	x3, x6
	bl	_hst
Lloh2:
	adrp	x8, _MAX_VALUE_LEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_VALUE_LEN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w19
	cset	w0, le
	bl	_unlikely
Lloh5:
	adrp	x23, _set@GOTPAGE
Lloh6:
	ldr	x23, [x23, _set@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x23]
	mov	w1, #-2
	bl	_RETURN
LBB0_2:
	add	x2, sp, #56
	add	x3, sp, #52
	mov	x0, x22
	mov	x1, x21
	bl	_eat_at
	ldr	w8, [sp, #52]
	cmp	w8, #8
	b.lt	LBB0_10
; %bb.3:
	ldr	x0, [sp, #56]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #8
	bl	_strncmp
	cbnz	w0, LBB0_9
; %bb.4:
	ldr	x8, [sp, #56]
	add	x0, x8, #8
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #48
	bl	_sscanf
	cmp	w0, #1
	b.eq	LBB0_6
; %bb.5:
	ldr	w0, [x23]
	mov	w1, #-2
	bl	_RETURN
LBB0_6:
	mov	x0, x20
	bl	_MESSAGE
	ldr	w2, [sp, #48]
	mov	x1, x19
	bl	_msg_reinit
	tbz	x0, #63, LBB0_8
; %bb.7:
	ldr	w0, [x23]
	mov	w1, #-2
	bl	_RETURN
LBB0_8:
	mov	x0, x20
	bl	_MESSAGE
	bl	_msg_get_buf
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	bl	_safe_read_in
	ldr	w0, [x23]
	mov	w1, #1
	bl	_RETURN
LBB0_9:
	ldr	w8, [sp, #52]
LBB0_10:
	cmp	w8, #6
	b.lt	LBB0_16
; %bb.11:
	ldr	x0, [sp, #56]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #6
	bl	_strncmp
	cbnz	w0, LBB0_16
; %bb.12:
Lloh13:
	adrp	x21, _buf@GOTPAGE
Lloh14:
	ldr	x21, [x21, _buf@GOTPAGEOFF]
	ldr	x1, [x21]
	mov	x0, x20
	mov	x2, x19
	bl	_safe_read_in
	ldr	x8, [sp, #56]
	add	x0, x8, #6
	add	x8, sp, #36
	str	x8, [sp, #16]
	add	x8, sp, #40
	add	x9, sp, #44
	stp	x9, x8, [sp]
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #48
	bl	_sscanf
	cmp	w0, #3
	b.lt	LBB0_14
; %bb.13:
	ldr	x8, [sp, #56]
	ldrsw	x9, [sp, #36]
	add	x8, x9, x8
	ldrb	w8, [x8, #6]
	cbz	w8, LBB0_15
LBB0_14:
	ldr	w0, [x23]
	mov	w1, #0
	bl	_RETURN
LBB0_15:
	ldp	w1, w0, [sp, #44]
	ldr	w2, [sp, #40]
	ldr	x4, [x21]
	mov	x3, x19
	bl	_do_add_answer
	mov	x1, x0
	ldr	w0, [x23]
	bl	_RETURN
LBB0_16:
	ldr	w8, [sp, #52]
	cmp	w8, #4
	b.lt	LBB0_22
; %bb.17:
	ldr	x0, [sp, #56]
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w2, #4
	bl	_strncmp
	cbnz	w0, LBB0_22
; %bb.18:
Lloh19:
	adrp	x21, _buf@GOTPAGE
Lloh20:
	ldr	x21, [x21, _buf@GOTPAGEOFF]
	ldr	x1, [x21]
	mov	x0, x20
	mov	x2, x19
	bl	_safe_read_in
	ldr	x8, [sp, #56]
	add	x0, x8, #4
	add	x8, sp, #40
	str	x8, [sp]
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x2, sp, #48
	bl	_sscanf
	cmp	w0, #1
	b.lt	LBB0_20
; %bb.19:
	ldr	x8, [sp, #56]
	ldrsw	x9, [sp, #40]
	add	x8, x9, x8
	ldrb	w8, [x8, #4]
	cbz	w8, LBB0_23
LBB0_20:
	ldr	w0, [x23]
	mov	w1, #0
	bl	_RETURN
LBB0_21:
	ldp	w1, w0, [sp, #44]
	bl	_do_set_mark
	mov	x1, x0
	ldr	w0, [x23]
	bl	_RETURN
LBB0_22:
	ldr	w0, [x23]
	mov	w1, #-2
	bl	_RETURN
	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
	add	sp, sp, #128
	ret
LBB0_23:
	ldr	x0, [x21]
	add	x8, sp, #40
	str	x8, [sp]
Lloh23:
	adrp	x1, l_.str.6@PAGE
Lloh24:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x2, sp, #44
	bl	_sscanf
	cmp	w0, #1
	b.lt	LBB0_20
; %bb.24:
	ldr	x8, [x21]
	ldrsw	x9, [sp, #40]
	ldrb	w8, [x8, x9]
	cbnz	w8, LBB0_20
	b	LBB0_21
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_INIT,4,2                       ; @INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"memcache_store: key='%s', key_len=%d, value_len=%d\n"

	.comm	_MAX_VALUE_LEN,4,2              ; @MAX_VALUE_LEN
	.comm	_set,4,2                        ; @set
l_.str.1:                               ; @.str.1
	.asciz	"question"

l_.str.2:                               ; @.str.2
	.asciz	"%d"

l_.str.3:                               ; @.str.3
	.asciz	"answer"

	.comm	_buf,8,3                        ; @buf
l_.str.4:                               ; @.str.4
	.asciz	"%d,%d,%d%n"

l_.str.5:                               ; @.str.5
	.asciz	"mark"

l_.str.6:                               ; @.str.6
	.asciz	"%d%n"

.subsections_via_symbols
