	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_output_user_friends            ## -- Begin function output_user_friends
	.p2align	4, 0x90
_output_user_friends:                   ## @output_user_friends
	.cfi_startproc
## %bb.0:
	testq	%rsi, %rsi
	je	LBB0_23
## %bb.1:
	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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	movl	$-1, %r13d
	movq	%rsi, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	incl	%r13d
	xorl	%eax, %eax
	cmpl	$1, (%rbx)
	setne	%al
	addl	%eax, %r14d
	movq	8(%rbx), %rbx
	xorl	%edi, %edi
	cmpl	$1000000, %r13d                 ## imm = 0xF4240
	setb	%dil
	callq	_assert
	testq	%rbx, %rbx
	jne	LBB0_2
## %bb.3:
	movq	_MAX_IMPORT_FRIENDS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r8d
	leal	1(%r13), %r15d
	cmpl	%r8d, %r13d
	jl	LBB0_9
## %bb.4:
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_6
## %bb.5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r15d, %ecx
	callq	_fprintf
	movl	(%rbx), %r8d
LBB0_6:
	cmpl	%r8d, %r13d
	jl	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	cmpl	$1, (%r12)
	setne	%al
	subl	%eax, %r14d
	movq	8(%r12), %r12
	decl	%r15d
	cmpl	%r8d, %r15d
	jg	LBB0_7
## %bb.8:
	cmpl	%r13d, %r8d
	cmovll	%r8d, %r13d
	movl	%r13d, %r15d
LBB0_9:
	movq	_list_len_cnt@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r15d, %r13
	incl	(%rax,%r13,4)
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.16:
	leal	(,%r15,8), %edi
	cmpl	$256, %r15d                     ## imm = 0x100
	jl	LBB0_18
## %bb.17:
	addl	$12, %edi
	callq	_write_alloc
	movq	_LEV_FR_SETLIST_CAT_LONG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movl	%r15d, 4(%rax)
	jmp	LBB0_19
LBB0_10:
	leal	(,%r15,4), %edi
	cmpl	$256, %r15d                     ## imm = 0x100
	jl	LBB0_12
## %bb.11:
	addl	$12, %edi
	callq	_write_alloc
	movq	_LEV_FR_SETLIST_LONG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movl	%r15d, 4(%rax)
	jmp	LBB0_13
LBB0_18:
	addl	$8, %edi
	callq	_write_alloc
	movq	_LEV_FR_SETLIST_CAT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%r13, %rcx
	movq	%rcx, 16(%rax)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
LBB0_19:
	movq	_ext_lists_output@GOTPCREL(%rip), %r14
	testq	%r12, %r12
	je	LBB0_22
## %bb.20:
	movq	8(%rax), %rax
	leaq	(%rax,%r13,8), %rax
	addq	$-4, %rax
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%r12), %ecx
	movl	%ecx, -4(%rax)
	movl	(%r12), %ecx
	movl	%ecx, (%rax)
	movq	8(%r12), %r12
	addq	$-8, %rax
	testq	%r12, %r12
	jne	LBB0_21
	jmp	LBB0_22
LBB0_12:
	addl	$8, %edi
	callq	_write_alloc
	movq	_LEV_FR_SETLIST@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%r13, %rcx
	movq	%rcx, 16(%rax)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
LBB0_13:
	movq	_lists_output@GOTPCREL(%rip), %r14
	testq	%r12, %r12
	je	LBB0_22
## %bb.14:
	movq	8(%rax), %rax
	leaq	(%rax,%r13,4), %rbx
	addq	$-4, %rbx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%r12), %eax
	movl	%eax, (%rbx)
	xorl	%edi, %edi
	cmpl	$1, (%r12)
	sete	%dil
	callq	_assert
	movq	8(%r12), %r12
	addq	$-4, %rbx
	testq	%r12, %r12
	jne	LBB0_15
LBB0_22:
	incl	(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
LBB0_23:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_IMPORT_FRIENDS,4,2         ## @MAX_IMPORT_FRIENDS
	.comm	_verbosity,8,3                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"warning: user %d has %d friends, only %d imported\n"

	.comm	_list_len_cnt,8,3               ## @list_len_cnt
	.comm	_LEV_FR_SETLIST_LONG,4,2        ## @LEV_FR_SETLIST_LONG
	.comm	_LEV_FR_SETLIST,8,3             ## @LEV_FR_SETLIST
	.comm	_lists_output,4,2               ## @lists_output
	.comm	_LEV_FR_SETLIST_CAT_LONG,4,2    ## @LEV_FR_SETLIST_CAT_LONG
	.comm	_LEV_FR_SETLIST_CAT,8,3         ## @LEV_FR_SETLIST_CAT
	.comm	_ext_lists_output,4,2           ## @ext_lists_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_output_user_friends            ; -- Begin function output_user_friends
	.p2align	2
_output_user_friends:                   ; @output_user_friends
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_23
; %bb.1:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	mov	w22, #0
	mov	w23, #-1
	mov	w21, #16960
	movk	w21, #15, lsl #16
	mov	x24, x1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w23, w23, #1
	ldr	w8, [x24]
	cmp	w8, #1
	cinc	w22, w22, ne
	ldr	x24, [x24, #8]
	cmp	w23, w21
	cset	w0, lo
	bl	_assert
	cbnz	x24, LBB0_2
; %bb.3:
Lloh0:
	adrp	x24, _MAX_IMPORT_FRIENDS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MAX_IMPORT_FRIENDS@GOTPAGEOFF]
	ldr	w4, [x24]
	add	w21, w23, #1
	cmp	w23, w4
	b.lt	LBB0_9
; %bb.4:
Lloh2:
	adrp	x8, _verbosity@GOTPAGE
Lloh3:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.5:
Lloh5:
	adrp	x8, _stderr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x21
	bl	_fprintf
	ldr	w4, [x24]
LBB0_6:
	cmp	w23, w4
	b.lt	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	cmp	w8, #1
	cset	w8, ne
	sub	w22, w22, w8
	ldr	x19, [x19, #8]
	sub	w21, w21, #1
	cmp	w21, w4
	b.gt	LBB0_7
; %bb.8:
	cmp	w4, w23
	csel	w21, w4, w23, lt
LBB0_9:
Lloh10:
	adrp	x8, _list_len_cnt@GOTPAGE
Lloh11:
	ldr	x8, [x8, _list_len_cnt@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	sxtw	x23, w21
	sbfiz	x9, x21, #2, #32
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
	cbz	w22, LBB0_14
; %bb.10:
	lsl	w8, w21, #3
	cmp	w21, #256
	b.lt	LBB0_18
; %bb.11:
	add	w0, w8, #12
	bl	_write_alloc
Lloh13:
	adrp	x8, _LEV_FR_SETLIST_CAT_LONG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LEV_FR_SETLIST_CAT_LONG@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	stp	w20, w21, [x0]
	cbz	x19, LBB0_19
LBB0_12:
	ldr	x8, [x0, #8]
	add	x8, x8, x23, lsl #3
	sub	x8, x8, #8
Lloh16:
	adrp	x20, _ext_lists_output@GOTPAGE
Lloh17:
	ldr	x20, [x20, _ext_lists_output@GOTPAGEOFF]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x19]
	rev64.2s	v0, v0
	str	d0, [x8], #-8
	ldr	x19, [x19, #8]
	cbnz	x19, LBB0_13
	b	LBB0_22
LBB0_14:
	lsl	w8, w21, #2
	cmp	w21, #256
	b.lt	LBB0_20
; %bb.15:
	add	w0, w8, #12
	bl	_write_alloc
Lloh18:
	adrp	x8, _LEV_FR_SETLIST_LONG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LEV_FR_SETLIST_LONG@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	stp	w20, w21, [x0]
	cbz	x19, LBB0_21
LBB0_16:
	ldr	x8, [x0, #8]
	add	x8, x8, x23, lsl #2
	sub	x21, x8, #4
Lloh21:
	adrp	x20, _lists_output@GOTPAGE
Lloh22:
	ldr	x20, [x20, _lists_output@GOTPAGEOFF]
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #4]
	str	w8, [x21], #-4
	ldr	w8, [x19]
	cmp	w8, #1
	cset	w0, eq
	bl	_assert
	ldr	x19, [x19, #8]
	cbnz	x19, LBB0_17
	b	LBB0_22
LBB0_18:
	add	w0, w8, #8
	bl	_write_alloc
Lloh23:
	adrp	x8, _LEV_FR_SETLIST_CAT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _LEV_FR_SETLIST_CAT@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	add	x8, x8, x23
	str	x8, [x0, #16]
	str	w20, [x0]
	cbnz	x19, LBB0_12
LBB0_19:
Lloh26:
	adrp	x20, _ext_lists_output@GOTPAGE
Lloh27:
	ldr	x20, [x20, _ext_lists_output@GOTPAGEOFF]
	b	LBB0_22
LBB0_20:
	add	w0, w8, #8
	bl	_write_alloc
Lloh28:
	adrp	x8, _LEV_FR_SETLIST@GOTPAGE
Lloh29:
	ldr	x8, [x8, _LEV_FR_SETLIST@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	add	x8, x8, x23
	str	x8, [x0, #16]
	str	w20, [x0]
	cbnz	x19, LBB0_16
LBB0_21:
Lloh31:
	adrp	x20, _lists_output@GOTPAGE
Lloh32:
	ldr	x20, [x20, _lists_output@GOTPAGEOFF]
LBB0_22:
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
LBB0_23:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_IMPORT_FRIENDS,4,2         ; @MAX_IMPORT_FRIENDS
	.comm	_verbosity,8,3                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"warning: user %d has %d friends, only %d imported\n"

	.comm	_list_len_cnt,8,3               ; @list_len_cnt
	.comm	_LEV_FR_SETLIST_LONG,4,2        ; @LEV_FR_SETLIST_LONG
	.comm	_LEV_FR_SETLIST,8,3             ; @LEV_FR_SETLIST
	.comm	_lists_output,4,2               ; @lists_output
	.comm	_LEV_FR_SETLIST_CAT_LONG,4,2    ; @LEV_FR_SETLIST_CAT_LONG
	.comm	_LEV_FR_SETLIST_CAT,8,3         ; @LEV_FR_SETLIST_CAT
	.comm	_ext_lists_output,4,2           ; @ext_lists_output
.subsections_via_symbols
