	.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, %r14d
	movq	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, %r13
	movl	16(%rbp), %ebx
	movl	$0, -56(%rbp)
	movl	$0, -52(%rbp)
	movl	$0, -60(%rbp)
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, (%rsp)
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_2:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	_binlog_disabled@GOTPCREL(%rip), %rax
	movl	$-2, %ebx
	cmpl	$2, (%rax)
	jne	LBB0_3
LBB0_34:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_reverse_friends_mode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	_mct_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	je	LBB0_8
## %bb.4:
	xorl	%ebx, %ebx
	cmpl	$8, %r14d
	jl	LBB0_34
## %bb.5:
	cmpl	%r15d, %eax
	jne	LBB0_34
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	$8, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_34
## %bb.7:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_exec_store_userlist            ## TAILCALL
LBB0_8:
	cmpl	%r15d, %eax
	jne	LBB0_18
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	leaq	-44(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	%r12, %rdi
	callq	_sscanf
	cmpl	$2, %eax
	jne	LBB0_18
## %bb.10:
	cmpl	$0, -44(%rbp)
	jle	LBB0_18
## %bb.11:
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_18
## %bb.12:
	cmpl	$31, %eax
	jg	LBB0_18
## %bb.13:
	movq	_R@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_MAX_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_parse_list
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_14
## %bb.15:
	movl	-44(%rbp), %edi
	movl	-56(%rbp), %esi
	movl	(%rbx), %edx
	movl	%r14d, %ecx
	callq	_do_set_category_friend_list
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_18:
	cmpl	$1024, -48(%rbp)                ## 4-byte Folded Reload
                                        ## imm = 0x400
	jg	LBB0_34
## %bb.19:
	movq	_stats_buff@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	movq	%rax, %r13
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_read_in
	xorl	%edi, %edi
	cmpl	%ebx, %eax
	sete	%dil
	callq	_assert
	movq	(%r13), %rax
	movslq	%ebx, %rcx
	movq	$0, (%rax,%rcx,8)
	leaq	L_.str.4(%rip), %rsi
	leaq	-44(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	movq	%r12, %rdi
	callq	_sscanf
	cmpl	$2, %eax
	jne	LBB0_23
## %bb.20:
	movl	-44(%rbp), %ebx
	testl	%ebx, %ebx
	jle	LBB0_23
## %bb.21:
	movl	-52(%rbp), %r14d
	testl	%r14d, %r14d
	jle	LBB0_23
## %bb.22:
	movq	(%r13), %rdi
	callq	_atol
	movq	_mct_add@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	%r15d, (%rcx)
	sete	%dl
	xorl	%ecx, %ecx
	movq	_mct_set@GOTPCREL(%rip), %rsi
	cmpl	%r15d, (%rsi)
	sete	%cl
	leal	(%rcx,%rdx,2), %ecx
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_do_add_friend_request
	movq	%rax, %rbx
	shrq	$63, %rbx
	xorl	$1, %ebx
	jmp	LBB0_34
LBB0_23:
	movq	_mct_add@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	%r15d, (%rax)
	je	LBB0_34
## %bb.24:
	leaq	L_.str.5(%rip), %rsi
	leaq	-44(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	movq	%r12, %rdi
	callq	_sscanf
	cmpl	$2, %eax
	jne	LBB0_28
## %bb.25:
	movl	-44(%rbp), %r14d
	testl	%r14d, %r14d
	jle	LBB0_28
## %bb.26:
	movl	-52(%rbp), %r13d
	testl	%r13d, %r13d
	jle	LBB0_28
## %bb.27:
	movq	_stats_buff@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_atol
	xorl	%r8d, %r8d
	movq	_mct_set@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	sete	%r8b
	movl	%r14d, %edi
	movl	%r13d, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_do_add_friend
LBB0_33:
	movl	%eax, %ebx
	jmp	LBB0_34
LBB0_14:
	xorl	%ebx, %ebx
LBB0_16:
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_34
## %bb.17:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_34
LBB0_28:
	movq	_mct_add@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_34
## %bb.29:
	leaq	L_.str.6(%rip), %rsi
	leaq	-44(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	movq	%r12, %rdi
	callq	_sscanf
	testl	%eax, %eax
	jle	LBB0_34
## %bb.30:
	cmpl	$0, -44(%rbp)
	jle	LBB0_34
## %bb.31:
	movslq	-64(%rbp), %rax
	addq	%rax, %r12
	leaq	-60(%rbp), %rsi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_parse_privacy_key
	testq	%rax, %rax
	movq	_mct_set@GOTPCREL(%rip), %rax
	jle	LBB0_34
## %bb.32:
	movl	-44(%rbp), %edi
	movl	-60(%rbp), %esi
	movq	_stats_buff@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	xorl	%r8d, %r8d
	cmpl	%r15d, (%rax)
	sete	%r8b
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_do_set_privacy
	jmp	LBB0_33
	.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, delay=%d, bytes=%d\n"

	.comm	_binlog_disabled,4,2            ## @binlog_disabled
	.comm	_reverse_friends_mode,8,3       ## @reverse_friends_mode
	.comm	_mct_set,4,2                    ## @mct_set
L_.str.1:                               ## @.str.1
	.asciz	"userlist"

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

	.comm	_R,4,2                          ## @R
	.comm	_MAX_RES,4,2                    ## @MAX_RES
L_.str.3:                               ## @.str.3
	.asciz	"set friend cat list: size = %d, res = %d\n"

	.comm	_stats_buff,8,3                 ## @stats_buff
L_.str.4:                               ## @.str.4
	.asciz	"friendreq%d_%d"

	.comm	_mct_add,4,2                    ## @mct_add
L_.str.5:                               ## @.str.5
	.asciz	"friend%d_%d"

L_.str.6:                               ## @.str.6
	.asciz	"privacy%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, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
                                        ; kill: def $w5 killed $w5 def $x5
                                        ; kill: def $w4 killed $w4 def $x4
	mov	x24, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	stp	wzr, wzr, [sp, #52]
	str	wzr, [sp, #44]
Lloh0:
	adrp	x26, _verbosity@GOTPAGE
Lloh1:
	ldr	x26, [x26, _verbosity@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _stderr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	stp	x5, x19, [sp, #16]
	stp	x21, x4, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_fprintf
LBB0_2:
Lloh7:
	adrp	x8, _binlog_disabled@GOTPAGE
Lloh8:
	ldr	x8, [x8, _binlog_disabled@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, #2
	b.ne	LBB0_5
LBB0_3:
	mov	w23, #-2
LBB0_4:
	mov	x0, x23
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_5:
Lloh10:
	adrp	x8, _reverse_friends_mode@GOTPAGE
Lloh11:
	ldr	x8, [x8, _reverse_friends_mode@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x8]
Lloh13:
	adrp	x25, _mct_set@GOTPAGE
Lloh14:
	ldr	x25, [x25, _mct_set@GOTPAGEOFF]
	ldr	w8, [x25]
	cbz	x9, LBB0_10
; %bb.6:
	mov	w23, #0
	cmp	w24, #8
	b.lt	LBB0_4
; %bb.7:
	cmp	w8, w20
	b.ne	LBB0_4
; %bb.8:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	w2, #8
	bl	_strncmp
	cbz	w0, LBB0_22
LBB0_9:
	mov	w23, #0
	b	LBB0_4
LBB0_10:
	cmp	w8, w20
	b.ne	LBB0_17
; %bb.11:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #60
	add	x3, sp, #56
	mov	x0, x21
	bl	_sscanf
	cmp	w0, #2
	b.ne	LBB0_17
; %bb.12:
	ldr	w8, [sp, #60]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.13:
	ldr	w8, [sp, #56]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.14:
	cmp	w8, #31
	b.gt	LBB0_17
; %bb.15:
Lloh19:
	adrp	x20, _R@GOTPAGE
Lloh20:
	ldr	x20, [x20, _R@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh21:
	adrp	x8, _MAX_RES@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MAX_RES@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x2, x22
	mov	x3, x19
	bl	_parse_list
	mov	x19, x0
	tbnz	w0, #31, LBB0_29
; %bb.16:
	ldp	w1, w0, [sp, #56]
	ldr	w2, [x20]
	mov	x3, x19
	bl	_do_set_category_friend_list
	mov	x23, x0
	b	LBB0_30
LBB0_17:
	cmp	w19, #1024
	b.gt	LBB0_3
; %bb.18:
Lloh24:
	adrp	x24, _stats_buff@GOTPAGE
Lloh25:
	ldr	x24, [x24, _stats_buff@GOTPAGEOFF]
	ldr	x1, [x24]
	mov	x0, x22
	mov	x2, x19
	bl	_read_in
	cmp	w0, w19
	cset	w0, eq
	bl	_assert
	ldr	x8, [x24]
	str	xzr, [x8, w19, sxtw #3]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #60
	add	x3, sp, #52
	mov	x0, x21
	bl	_sscanf
	cmp	w0, #2
	b.ne	LBB0_23
; %bb.19:
	ldr	w22, [sp, #60]
	cmp	w22, #1
	b.lt	LBB0_23
; %bb.20:
	ldr	w23, [sp, #52]
	cmp	w23, #1
	b.lt	LBB0_23
; %bb.21:
	ldr	x0, [x24]
	bl	_atol
	mov	x2, x0
Lloh28:
	adrp	x8, _mct_add@GOTPAGE
Lloh29:
	ldr	x8, [x8, _mct_add@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cmp	w8, w20
	cset	w8, eq
	ldr	w9, [x25]
	cmp	w9, w20
	cset	w3, eq
	bfi	w3, w8, #1, #1
	mov	x0, x22
	mov	x1, x23
	bl	_do_add_friend_request
	lsr	x8, x0, #63
	eor	w23, w8, #0x1
	b	LBB0_4
LBB0_22:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x24
	mov	x3, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_exec_store_userlist
LBB0_23:
Lloh31:
	adrp	x26, _mct_add@GOTPAGE
Lloh32:
	ldr	x26, [x26, _mct_add@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, w20
	b.eq	LBB0_9
; %bb.24:
Lloh33:
	adrp	x1, l_.str.5@PAGE
Lloh34:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x2, sp, #60
	add	x3, sp, #52
	mov	x0, x21
	bl	_sscanf
	cmp	w0, #2
	b.ne	LBB0_32
; %bb.25:
	ldr	w22, [sp, #60]
	cmp	w22, #1
	b.lt	LBB0_32
; %bb.26:
	ldr	w23, [sp, #52]
	cmp	w23, #1
	b.lt	LBB0_32
; %bb.27:
	ldr	x0, [x24]
	bl	_atol
	mov	x2, x0
	ldr	w8, [x25]
	cmp	w8, w20
	cset	w4, eq
	mov	x0, x22
	mov	x1, x23
	mov	w3, #0
	bl	_do_add_friend
LBB0_28:
	mov	x23, x0
	b	LBB0_4
LBB0_29:
	mov	w23, #0
LBB0_30:
	ldr	x8, [x26]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.31:
Lloh35:
	adrp	x8, _stderr@GOTPAGE
Lloh36:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	str	x23, [sp]
Lloh38:
	adrp	x1, l_.str.3@PAGE
Lloh39:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x19
	bl	_fprintf
	b	LBB0_4
LBB0_32:
	ldr	w8, [x26]
	cmp	w8, w20
	b.eq	LBB0_9
; %bb.33:
Lloh40:
	adrp	x1, l_.str.6@PAGE
Lloh41:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x2, sp, #60
	add	x3, sp, #48
	mov	x0, x21
	bl	_sscanf
	mov	w23, #0
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.34:
	ldr	w8, [sp, #60]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.35:
	ldrsw	x8, [sp, #48]
	add	x0, x21, x8
	add	x1, sp, #44
	mov	w2, #1
	bl	_parse_privacy_key
	cmp	x0, #1
	b.lt	LBB0_9
; %bb.36:
	ldr	w0, [sp, #60]
	ldr	w1, [sp, #44]
	ldr	x2, [x24]
	ldr	w8, [x25]
	cmp	w8, w20
	cset	w4, eq
	mov	x3, x19
	bl	_do_set_privacy
	b	LBB0_28
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh40, Lloh41
	.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, delay=%d, bytes=%d\n"

	.comm	_binlog_disabled,4,2            ; @binlog_disabled
	.comm	_reverse_friends_mode,8,3       ; @reverse_friends_mode
	.comm	_mct_set,4,2                    ; @mct_set
l_.str.1:                               ; @.str.1
	.asciz	"userlist"

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

	.comm	_R,4,2                          ; @R
	.comm	_MAX_RES,4,2                    ; @MAX_RES
l_.str.3:                               ; @.str.3
	.asciz	"set friend cat list: size = %d, res = %d\n"

	.comm	_stats_buff,8,3                 ; @stats_buff
l_.str.4:                               ; @.str.4
	.asciz	"friendreq%d_%d"

	.comm	_mct_add,4,2                    ; @mct_add
l_.str.5:                               ; @.str.5
	.asciz	"friend%d_%d"

l_.str.6:                               ; @.str.6
	.asciz	"privacy%d_%n"

.subsections_via_symbols
