	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movl	16(%rbp), %r15d
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	callq	_fprintf
LBB0_2:
	leal	1(%r15), %eax
	movq	_MAX_VALUE_LEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_24
## %bb.3:
	leaq	-80(%rbp), %rdx
	leaq	-68(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_eat_at
	cmpl	$14, -68(%rbp)
	jl	LBB0_24
## %bb.4:
	movq	-80(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$14, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_24
## %bb.5:
	movq	-80(%rbp), %rdi
	addq	$14, %rdi
	leaq	L_.str.2(%rip), %rsi
	leaq	-64(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	callq	_sscanf
	movl	%eax, %ebx
	movl	-44(%rbp), %eax
	addl	$4, %eax
	cmpl	$8, %eax
	ja	LBB0_7
## %bb.6:
	movl	$297, %ecx                      ## imm = 0x129
	btl	%eax, %ecx
	jb	LBB0_8
LBB0_7:
	movq	_active_aio_queries@GOTPCREL(%rip), %rax
	orb	$4, 2(%rax)
	movq	_set@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-2, %esi
	callq	_RETURN
LBB0_8:
	leal	-3(%rbx), %eax
	cmpl	$-3, %eax
	ja	LBB0_10
## %bb.9:
	movq	_set@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-2, %esi
	callq	_RETURN
	jmp	LBB0_12
LBB0_10:
	cmpl	$1, %ebx
	jne	LBB0_12
## %bb.11:
	movl	$1, -44(%rbp)
LBB0_12:
	movq	_buf@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_safe_read_in
	movq	(%rbx), %rax
	movslq	%r15d, %rcx
	movb	$0, (%rax,%rcx)
	movq	(%rbx), %rax
	movq	%rax, -56(%rbp)
	leaq	-56(%rbp), %rdi
	callq	_get_int
	movl	%eax, %ebx
	movq	_MAX_FRIENDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	cmpl	%eax, %ebx
	jl	LBB0_14
## %bb.13:
	movq	_active_aio_queries@GOTPCREL(%rip), %rax
	orb	$-128, 1(%rax)
	movq	_set@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_RETURN
LBB0_14:
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	js	LBB0_15
## %bb.16:
	je	LBB0_23
## %bb.17:
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	xorl	%ebx, %ebx
	movq	_set@GOTPCREL(%rip), %r13
	leaq	-56(%rbp), %r15
	movq	_fr_buff@GOTPCREL(%rip), %r14
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%rbx
	cmpq	%rbx, %r12
	je	LBB0_23
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax
	cmpb	$0, (%rax)
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	(%r13), %edi
	xorl	%esi, %esi
	callq	_RETURN
	movq	-56(%rbp), %rax
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%rax
	movq	%rax, -56(%rbp)
	movq	%r15, %rdi
	callq	_get_int
	movq	(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	addl	$-268435456, %eax               ## imm = 0xF0000000
	cmpl	$-268435456, %eax               ## imm = 0xF0000000
	ja	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	_active_aio_queries@GOTPCREL(%rip), %rax
	orb	$2, 2(%rax)
	movl	(%r13), %edi
	xorl	%esi, %esi
	callq	_RETURN
	jmp	LBB0_22
LBB0_15:
	movq	_active_aio_queries@GOTPCREL(%rip), %rax
	orb	$1, 2(%rax)
	movq	_set@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_RETURN
LBB0_23:
	movl	-64(%rbp), %edi
	movl	-44(%rbp), %esi
	movq	_fr_buff@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	callq	_add_common_friends
	movq	_set@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_RETURN
LBB0_24:
	movq	_set@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-2, %esi
	callq	_RETURN
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INIT,4,2                       ## @INIT
	.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, \n"

	.comm	_MAX_VALUE_LEN,4,2              ## @MAX_VALUE_LEN
L_.str.1:                               ## @.str.1
	.asciz	"common_friends"

L_.str.2:                               ## @.str.2
	.asciz	"%d,%d\n"

	.comm	_active_aio_queries,4,2         ## @active_aio_queries
	.comm	_set,4,2                        ## @set
	.comm	_buf,8,3                        ## @buf
	.comm	_MAX_FRIENDS,4,2                ## @MAX_FRIENDS
	.comm	_fr_buff,8,3                    ## @fr_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:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x3
	mov	x22, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _verbosity@GOTPAGE
Lloh1:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #2
	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	x4, x19
	bl	_fprintf
LBB0_2:
	add	w8, w19, #1
Lloh8:
	adrp	x9, _MAX_VALUE_LEN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MAX_VALUE_LEN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x23, _set@GOTPAGE
Lloh12:
	ldr	x23, [x23, _set@GOTPAGEOFF]
	cmp	w8, w9
	b.ge	LBB0_24
; %bb.3:
	add	x2, sp, #24
	add	x3, sp, #20
	mov	x0, x22
	mov	x1, x21
	bl	_eat_at
	ldr	w8, [sp, #20]
	cmp	w8, #14
	b.lt	LBB0_24
; %bb.4:
	ldr	x0, [sp, #24]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #14
	bl	_strncmp
	cbnz	w0, LBB0_24
; %bb.5:
	ldr	x8, [sp, #24]
	add	x0, x8, #14
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #16
	add	x3, sp, #12
	bl	_sscanf
	mov	x21, x0
	ldr	w8, [sp, #12]
	add	w8, w8, #4
	cmp	w8, #8
	b.hi	LBB0_7
; %bb.6:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #297
	tst	w8, w9
	b.ne	LBB0_8
LBB0_7:
Lloh17:
	adrp	x8, _active_aio_queries@GOTPAGE
Lloh18:
	ldr	x8, [x8, _active_aio_queries@GOTPAGEOFF]
	ldr	w9, [x8]
	orr	w9, w9, #0x40000
	str	w9, [x8]
	ldr	w0, [x23]
	mov	w1, #-2
	bl	_RETURN
LBB0_8:
	sub	w8, w21, #3
	cmn	w8, #3
	b.hi	LBB0_10
; %bb.9:
	ldr	w0, [x23]
	mov	w1, #-2
	bl	_RETURN
	b	LBB0_12
LBB0_10:
	cmp	w21, #1
	b.ne	LBB0_12
; %bb.11:
	mov	w8, #1
	str	w8, [sp, #12]
LBB0_12:
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, [x21]
	strb	wzr, [x8, w19, sxtw]
	ldr	x8, [x21]
	str	x8, [sp]
	mov	x0, sp
	bl	_get_int
	mov	x19, x0
Lloh21:
	adrp	x8, _MAX_FRIENDS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MAX_FRIENDS@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	sub	w8, w8, #1
	cmp	w0, w8
	b.lt	LBB0_14
; %bb.13:
Lloh24:
	adrp	x8, _active_aio_queries@GOTPAGE
Lloh25:
	ldr	x8, [x8, _active_aio_queries@GOTPAGEOFF]
	ldr	w9, [x8]
	orr	w9, w9, #0x8000
	str	w9, [x8]
	ldr	w0, [x23]
	mov	w1, #0
	bl	_RETURN
LBB0_14:
Lloh26:
	adrp	x20, _fr_buff@GOTPAGE
Lloh27:
	ldr	x20, [x20, _fr_buff@GOTPAGEOFF]
	tbnz	w19, #31, LBB0_22
; %bb.15:
	cbz	w19, LBB0_23
; %bb.16:
	mov	x21, #0
	mov	w8, w19
	lsl	x22, x8, #2
	mov	w24, #-268435456
Lloh28:
	adrp	x25, _active_aio_queries@GOTPAGE
Lloh29:
	ldr	x25, [x25, _active_aio_queries@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x21, x21, #4
	cmp	x22, x21
	b.eq	LBB0_23
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp]
	ldrb	w9, [x8]
	cbnz	w9, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	w0, [x23]
	mov	w1, #0
	bl	_RETURN
	ldr	x8, [sp]
LBB0_20:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x8, x8, #1
	str	x8, [sp]
	mov	x0, sp
	bl	_get_int
	ldr	x8, [x20]
	str	w0, [x8, x21]
	add	w8, w0, w24
	cmp	w8, w24
	b.hi	LBB0_17
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	w8, [x25]
	orr	w8, w8, #0x20000
	str	w8, [x25]
	ldr	w0, [x23]
	mov	w1, #0
	bl	_RETURN
	b	LBB0_17
LBB0_22:
Lloh30:
	adrp	x8, _active_aio_queries@GOTPAGE
Lloh31:
	ldr	x8, [x8, _active_aio_queries@GOTPAGEOFF]
	ldr	w9, [x8]
	orr	w9, w9, #0x10000
	str	w9, [x8]
	ldr	w0, [x23]
	mov	w1, #0
	bl	_RETURN
LBB0_23:
	ldp	w1, w0, [sp, #12]
	ldr	x2, [x20]
	mov	x3, x19
	bl	_add_common_friends
	mov	x1, x0
	ldr	w0, [x23]
	bl	_RETURN
LBB0_24:
	ldr	w0, [x23]
	mov	w1, #-2
	bl	_RETURN
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_INIT,4,2                       ; @INIT
	.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, \n"

	.comm	_MAX_VALUE_LEN,4,2              ; @MAX_VALUE_LEN
l_.str.1:                               ; @.str.1
	.asciz	"common_friends"

l_.str.2:                               ; @.str.2
	.asciz	"%d,%d\n"

	.comm	_active_aio_queries,4,2         ; @active_aio_queries
	.comm	_set,4,2                        ; @set
	.comm	_buf,8,3                        ; @buf
	.comm	_MAX_FRIENDS,4,2                ; @MAX_FRIENDS
	.comm	_fr_buff,8,3                    ; @fr_buff
.subsections_via_symbols
