	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_friends_data_store             ## -- Begin function friends_data_store
	.p2align	4, 0x90
_friends_data_store:                    ## @friends_data_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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rdi, %r15
	movl	16(%rbp), %r14d
	movl	$0, -36(%rbp)
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_2
## %bb.1:
	movl	%esi, %edx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rcx
	pushq	$0
	pushq	%r14
	callq	_fprintf
	addq	$16, %rsp
LBB0_2:
	cmpl	$1048575, %r14d                 ## imm = 0xFFFFF
	ja	LBB0_15
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_15
## %bb.4:
	movl	-36(%rbp), %eax
	testl	%eax, %eax
	jns	LBB0_15
## %bb.5:
	movq	16(%r15), %rcx
	testq	%rcx, %rcx
	jne	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_alloc_head_buffer
	movq	%rax, 16(%r15)
	movq	%rax, %rdi
	callq	_assert
	movq	16(%r15), %rcx
	movl	-36(%rbp), %eax
LBB0_7:
	movq	(%rcx), %rbx
	movq	_FRIENDS_STORE_MAGIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rbx)
	movl	%eax, (%rbx)
	movq	_userlist@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movq	_MAX_USERLIST_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	8(%r15), %rcx
	movl	$1, %edx
	movl	%r14d, %r8d
	callq	_np_news_parse_list
	movl	%eax, 4(%rbx)
	movq	16(%r15), %rdi
	movl	$12, %esi
	callq	_advance_write_ptr
	movl	4(%rbx), %edx
	movl	-36(%rbp), %eax
	testl	%edx, %edx
	jle	LBB0_10
## %bb.8:
	testl	%eax, %eax
	jns	LBB0_10
## %bb.9:
	movq	16(%r15), %rdi
	movq	(%r12), %rsi
	shll	$2, %edx
	callq	_write_out
	movl	4(%rbx), %edx
	movl	-36(%rbp), %eax
LBB0_10:
	testl	%edx, %edx
	jle	LBB0_12
## %bb.11:
	testl	%eax, %eax
	jns	LBB0_12
## %bb.13:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	$8, %edx
	callq	_write_out
	movq	%r15, %rdi
	callq	_flush_output
	jmp	LBB0_14
LBB0_15:
	leaq	8(%r15), %rdi
	movl	%r14d, %esi
	callq	_advance_skip_read_ptr
LBB0_12:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	$12, %edx
	callq	_write_out
	movq	%r15, %rdi
	callq	_flush_output
	movq	%r15, %rdi
	callq	_free_tmp_buffers
LBB0_14:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	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	"userlist%d"

	.comm	_FRIENDS_STORE_MAGIC,4,2        ## @FRIENDS_STORE_MAGIC
	.comm	_userlist,8,3                   ## @userlist
	.comm	_MAX_USERLIST_NUM,4,2           ## @MAX_USERLIST_NUM
L_.str.2:                               ## @.str.2
	.asciz	"NOT_STORED\r\n"

L_.str.3:                               ## @.str.3
	.asciz	"STORED\r\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_friends_data_store             ; -- Begin function friends_data_store
	.p2align	2
_friends_data_store:                    ; @friends_data_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, x6
	mov	x21, x2
	mov	x20, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _verbosity@GOTPAGE
Lloh1:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.1:
	mov	x2, x1
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	x3, x21
	mov	x6, x19
	mov	w7, #0
	bl	_fprintf
LBB0_2:
	lsr	w8, w19, #20
	cbnz	w8, LBB0_13
; %bb.3:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	mov	x0, x21
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_13
; %bb.4:
	ldr	w8, [sp, #12]
	tbz	w8, #31, LBB0_13
; %bb.5:
	ldr	x9, [x20, #16]
	cbnz	x9, LBB0_7
; %bb.6:
	bl	_alloc_head_buffer
	str	x0, [x20, #16]
	bl	_assert
	ldr	x9, [x20, #16]
	ldr	w8, [sp, #12]
LBB0_7:
	ldr	x21, [x9]
Lloh10:
	adrp	x9, _FRIENDS_STORE_MAGIC@GOTPAGE
Lloh11:
	ldr	x9, [x9, _FRIENDS_STORE_MAGIC@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	str	w9, [x21, #8]
Lloh13:
	adrp	x22, _userlist@GOTPAGE
Lloh14:
	ldr	x22, [x22, _userlist@GOTPAGEOFF]
	str	w8, [x21]
	ldr	x0, [x22]
Lloh15:
	adrp	x8, _MAX_USERLIST_NUM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MAX_USERLIST_NUM@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x3, x20, #8
	mov	w2, #1
	mov	x4, x19
	bl	_np_news_parse_list
	str	w0, [x21, #4]
	ldr	x0, [x20, #16]
	mov	w1, #12
	bl	_advance_write_ptr
	ldr	w8, [x21, #4]
	ldr	w9, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	tbz	w9, #31, LBB0_10
; %bb.9:
	ldr	x0, [x20, #16]
	ldr	x1, [x22]
	lsl	w2, w8, #2
	bl	_write_out
	ldr	w8, [x21, #4]
	ldr	w9, [sp, #12]
LBB0_10:
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.11:
	tbz	w9, #31, LBB0_14
; %bb.12:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	w2, #8
	bl	_write_out
	mov	x0, x20
	bl	_flush_output
	b	LBB0_15
LBB0_13:
	add	x0, x20, #8
	mov	x1, x19
	bl	_advance_skip_read_ptr
LBB0_14:
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	w2, #12
	bl	_write_out
	mov	x0, x20
	bl	_flush_output
	mov	x0, x20
	bl	_free_tmp_buffers
LBB0_15:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.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	"userlist%d"

	.comm	_FRIENDS_STORE_MAGIC,4,2        ; @FRIENDS_STORE_MAGIC
	.comm	_userlist,8,3                   ; @userlist
	.comm	_MAX_USERLIST_NUM,4,2           ; @MAX_USERLIST_NUM
l_.str.2:                               ; @.str.2
	.asciz	"NOT_STORED\r\n"

l_.str.3:                               ; @.str.3
	.asciz	"STORED\r\n"

.subsections_via_symbols
