	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_friends_load_saved_data        ## -- Begin function friends_load_saved_data
	.p2align	4, 0x90
_friends_load_saved_data:               ## @friends_load_saved_data
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rax), %r14
	movq	(%r14), %rax
	movq	_FRIENDS_STORE_MAGIC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movl	8(%r14), %eax
	movq	_user_num@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	(%rbx), %rsi
	leaq	-20(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_nbit_set
	movq	%rbx, %rdi
	movl	$24, %esi
	callq	_nbit_advance
	xorl	%edi, %edi
	cmpl	$24, %eax
	sete	%dil
	callq	_assert
	movq	_userlist@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %edx
	shll	$2, %edx
	movq	%rbx, %rdi
	callq	_nbit_read_in
	movl	8(%r14), %ecx
	shll	$2, %ecx
	xorl	%edi, %edi
	cmpl	%ecx, %eax
	sete	%dil
	callq	_assert
	movq	16(%r14), %rax
	movq	_list_id@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_3
LBB0_2:
	movq	_user_num@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_list_id@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FRIENDS_STORE_MAGIC,8,3        ## @FRIENDS_STORE_MAGIC
	.comm	_user_num,4,2                   ## @user_num
	.comm	_list_id,8,3                    ## @list_id
	.comm	_userlist,4,2                   ## @userlist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_friends_load_saved_data        ; -- Begin function friends_load_saved_data
	.p2align	2
_friends_load_saved_data:               ; @friends_load_saved_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x20, [x8]
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _FRIENDS_STORE_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FRIENDS_STORE_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	w8, [x20, #8]
Lloh3:
	adrp	x9, _user_num@GOTPAGE
Lloh4:
	ldr	x9, [x9, _user_num@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
	ldr	x1, [x19]
	add	x0, sp, #12
	bl	_nbit_set
	add	x0, sp, #12
	mov	w1, #24
	bl	_nbit_advance
	cmp	w0, #24
	cset	w0, eq
	bl	_assert
Lloh6:
	adrp	x8, _userlist@GOTPAGE
Lloh7:
	ldr	x8, [x8, _userlist@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w8, [x20, #8]
	lsl	w2, w8, #2
	add	x0, sp, #12
	bl	_nbit_read_in
	ldr	w8, [x20, #8]
	cmp	w0, w8, lsl #2
	cset	w0, eq
	bl	_assert
	ldr	x8, [x20, #16]
Lloh9:
	adrp	x9, _list_id@GOTPAGE
Lloh10:
	ldr	x9, [x9, _list_id@GOTPAGEOFF]
Lloh11:
	str	x8, [x9]
	b	LBB0_3
LBB0_2:
Lloh12:
	adrp	x8, _user_num@GOTPAGE
Lloh13:
	ldr	x8, [x8, _user_num@GOTPAGEOFF]
Lloh14:
	str	wzr, [x8]
Lloh15:
	adrp	x8, _list_id@GOTPAGE
Lloh16:
	ldr	x8, [x8, _list_id@GOTPAGEOFF]
Lloh17:
	str	xzr, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_FRIENDS_STORE_MAGIC,8,3        ; @FRIENDS_STORE_MAGIC
	.comm	_user_num,4,2                   ; @user_num
	.comm	_list_id,8,3                    ; @list_id
	.comm	_userlist,4,2                   ; @userlist
.subsections_via_symbols
