	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_cmd_set@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	%rdi, %rbx
	movq	_mct_set@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_13
## %bb.1:
	movl	16(%rbp), %r14d
	movq	_VALUE_BUFFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	cmpl	%r14d, %eax
	jle	LBB0_13
## %bb.2:
	leaq	-32(%rbp), %rax
	leaq	L_.str(%rip), %rsi
	movq	%rdx, %rdi
	movq	%rax, %rdx
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_13
## %bb.3:
	movq	_max_msg_size@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jge	LBB0_5
## %bb.4:
	movl	%r14d, (%rax)
LBB0_5:
	leaq	4(%rbx), %rdi
	movq	_value_buff@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movl	%r14d, %edx
	callq	_read_in
	xorl	%edi, %edi
	cmpl	%r14d, %eax
	sete	%dil
	callq	_assert
	movq	(%r15), %rdi
	movslq	%r14d, %rax
	movq	$0, (%rdi,%rax,8)
	movq	-40(%rbp), %rsi
	movq	_test_mode@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	callq	_spell_check
	testl	%eax, %eax
	je	LBB0_6
## %bb.12:
	movq	%rbx, %rdi
	callq	_free_tmp_buffers
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_13:
	movq	%rbx, %rdi
	callq	_free_tmp_buffers
	movl	$-2, %eax
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_max_misspell_words@GOTPCREL(%rip), %rax
	movq	-40(%rbp), %rcx
	movq	8(%rcx), %rcx
	cmpq	%rcx, (%rax)
	jge	LBB0_11
## %bb.7:
	movq	%rcx, (%rax)
	cmpq	$0, (%r14)
	je	LBB0_11
## %bb.8:
	movq	_worst_misspell_msg@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_free
LBB0_10:
	movq	(%r15), %rdi
	callq	_strdup
	movq	%rax, (%r14)
LBB0_11:
	movq	%rbx, %rdi
	callq	_init_tmp_buffers
	movl	(%rbx), %edi
	leaq	-40(%rbp), %rsi
	movl	$16, %edx
	callq	_write_out
	movl	$1, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_cmd_set,4,2                    ## @cmd_set
	.comm	_mct_set,4,2                    ## @mct_set
	.comm	_VALUE_BUFFSIZE,4,2             ## @VALUE_BUFFSIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"text%d"

	.comm	_max_msg_size,4,2               ## @max_msg_size
	.comm	_value_buff,8,3                 ## @value_buff
	.comm	_test_mode,8,3                  ## @test_mode
	.comm	_max_misspell_words,8,3         ## @max_misspell_words
	.comm	_worst_misspell_msg,8,3         ## @worst_misspell_msg
.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, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _cmd_set@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cmd_set@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh2:
	adrp	x8, _mct_set@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mct_set@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_7
; %bb.1:
	mov	x20, x6
Lloh5:
	adrp	x8, _VALUE_BUFFSIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VALUE_BUFFSIZE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	sub	w8, w8, #1
	cmp	w8, w6
	b.le	LBB0_7
; %bb.2:
	mov	x8, sp
	add	x8, x8, #8
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x2
	mov	x2, x8
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.3:
Lloh10:
	adrp	x8, _max_msg_size@GOTPAGE
Lloh11:
	ldr	x8, [x8, _max_msg_size@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, w20
	b.ge	LBB0_5
; %bb.4:
	str	w20, [x8]
LBB0_5:
	add	x0, x19, #4
Lloh12:
	adrp	x21, _value_buff@GOTPAGE
Lloh13:
	ldr	x21, [x21, _value_buff@GOTPAGEOFF]
	ldr	x1, [x21]
	mov	x2, x20
	bl	_read_in
	cmp	w0, w20
	cset	w0, eq
	bl	_assert
	ldr	x0, [x21]
	str	xzr, [x0, w20, sxtw #3]
	ldr	x1, [sp]
Lloh14:
	adrp	x20, _test_mode@GOTPAGE
Lloh15:
	ldr	x20, [x20, _test_mode@GOTPAGEOFF]
	ldr	x2, [x20]
	bl	_spell_check
	cbz	w0, LBB0_9
; %bb.6:
	mov	x0, x19
	bl	_free_tmp_buffers
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_free_tmp_buffers
	mov	w0, #-2
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
Lloh16:
	adrp	x8, _max_misspell_words@GOTPAGE
Lloh17:
	ldr	x8, [x8, _max_misspell_words@GOTPAGEOFF]
	ldr	x10, [x8]
	ldr	x9, [sp]
	ldr	x9, [x9, #8]
	cmp	x10, x9
	b.ge	LBB0_14
; %bb.10:
	str	x9, [x8]
	ldr	x8, [x20]
	cbz	x8, LBB0_14
; %bb.11:
Lloh18:
	adrp	x20, _worst_misspell_msg@GOTPAGE
Lloh19:
	ldr	x20, [x20, _worst_misspell_msg@GOTPAGEOFF]
	ldr	x0, [x20]
	cbz	x0, LBB0_13
; %bb.12:
	bl	_free
LBB0_13:
	ldr	x0, [x21]
	bl	_strdup
	str	x0, [x20]
LBB0_14:
	mov	x0, x19
	bl	_init_tmp_buffers
	ldr	w0, [x19]
	mov	x1, sp
	mov	w2, #16
	bl	_write_out
	mov	w0, #1
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_cmd_set,4,2                    ; @cmd_set
	.comm	_mct_set,4,2                    ; @mct_set
	.comm	_VALUE_BUFFSIZE,4,2             ; @VALUE_BUFFSIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"text%d"

	.comm	_max_msg_size,4,2               ; @max_msg_size
	.comm	_value_buff,8,3                 ; @value_buff
	.comm	_test_mode,8,3                  ; @test_mode
	.comm	_max_misspell_words,8,3         ; @max_misspell_words
	.comm	_worst_misspell_msg,8,3         ; @worst_misspell_msg
.subsections_via_symbols
