	.file	"extr_friend-import-dump.c_output_user_friends.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"warning: user %d has %d friends, only %d imported\n"
	.text
	.p2align 4
	.globl	output_user_friends
	.type	output_user_friends, @function
output_user_friends:
.LFB0:
	.cfi_startproc
	endbr64
	test	rsi, rsi
	je	.L28
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	r15d, r15d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, edi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L18:
	mov	r15d, r12d
.L4:
	xor	eax, eax
	cmp	DWORD PTR 0[rbp], 1
	lea	r12d, 1[r15]
	mov	rbp, QWORD PTR 8[rbp]
	setne	al
	xor	edi, edi
	add	r13d, eax
	cmp	r12d, 1000000
	setle	dil
	call	assert@PLT
	test	rbp, rbp
	jne	.L18
	mov	r8d, DWORD PTR MAX_IMPORT_FRIENDS[rip]
	cmp	r8d, r12d
	jge	.L5
	cmp	QWORD PTR verbosity[rip], 0
	jg	.L34
.L6:
	mov	eax, r12d
	.p2align 4,,10
	.p2align 3
.L8:
	xor	edx, edx
	cmp	DWORD PTR [rbx], 1
	mov	rbx, QWORD PTR 8[rbx]
	setne	dl
	sub	eax, 1
	sub	r13d, edx
	cmp	r8d, eax
	jl	.L8
	mov	eax, r8d
	mov	edx, 0
	sub	eax, r15d
	cmp	r8d, r12d
	cmovge	eax, edx
	lea	r12d, [rax+r15]
.L5:
	mov	rax, QWORD PTR list_len_cnt[rip]
	movsx	r15, r12d
	lea	rbp, 0[0+r15*4]
	add	rax, rbp
	add	DWORD PTR [rax], 1
	test	r13d, r13d
	jne	.L9
	cmp	r12d, 255
	jle	.L10
	lea	edi, 12[0+r12*4]
	call	write_alloc@PLT
	mov	edx, DWORD PTR LEV_FR_SETLIST_LONG[rip]
	mov	DWORD PTR 4[rax], r12d
	add	rbp, QWORD PTR 8[rax]
	mov	DWORD PTR 16[rax], edx
	mov	DWORD PTR [rax], r14d
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, DWORD PTR 4[rbx]
	sub	rbp, 4
	xor	edi, edi
	mov	DWORD PTR 0[rbp], eax
	cmp	DWORD PTR [rbx], 1
	sete	dil
	call	assert@PLT
	mov	rbx, QWORD PTR 8[rbx]
.L31:
	test	rbx, rbx
	jne	.L12
	add	DWORD PTR lists_output[rip], 1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	lea	rbp, 0[0+r15*8]
	cmp	r12d, 255
	jle	.L14
	lea	edi, 12[0+r12*8]
	call	write_alloc@PLT
	mov	edx, DWORD PTR LEV_FR_SETLIST_CAT_LONG[rip]
	add	rbp, QWORD PTR 8[rax]
	mov	DWORD PTR [rax], r14d
	mov	DWORD PTR 16[rax], edx
	mov	DWORD PTR 4[rax], r12d
	mov	rax, rbp
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edx, DWORD PTR 4[rbx]
	sub	rax, 8
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR [rbx]
	mov	rbx, QWORD PTR 8[rbx]
	mov	DWORD PTR 4[rax], edx
.L32:
	test	rbx, rbx
	jne	.L16
	add	DWORD PTR ext_lists_output[rip], 1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	lea	edi, 8[0+r12*4]
	call	write_alloc@PLT
	add	r15, QWORD PTR LEV_FR_SETLIST[rip]
	mov	QWORD PTR 16[rax], r15
	add	rbp, QWORD PTR 8[rax]
	mov	DWORD PTR [rax], r14d
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L14:
	lea	edi, 8[0+r12*8]
	call	write_alloc@PLT
	add	r15, QWORD PTR LEV_FR_SETLIST_CAT[rip]
	add	rbp, QWORD PTR 8[rax]
	mov	QWORD PTR 16[rax], r15
	mov	DWORD PTR [rax], r14d
	mov	rax, rbp
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	ret
	.p2align 4,,10
	.p2align 3
.L34:
	.cfi_def_cfa_offset 64
	.cfi_offset 3, -56
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	mov	edi, DWORD PTR stderr[rip]
	mov	ecx, r12d
	mov	edx, r14d
	lea	rsi, .LC0[rip]
	call	fprintf@PLT
	mov	r8d, DWORD PTR MAX_IMPORT_FRIENDS[rip]
	cmp	r12d, r8d
	jg	.L6
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	output_user_friends, .-output_user_friends
	.comm	verbosity,8,8
	.comm	stderr,4,4
	.comm	lists_output,4,4
	.comm	list_len_cnt,8,8
	.comm	ext_lists_output,4,4
	.comm	MAX_IMPORT_FRIENDS,4,4
	.comm	LEV_FR_SETLIST_LONG,4,4
	.comm	LEV_FR_SETLIST_CAT_LONG,4,4
	.comm	LEV_FR_SETLIST_CAT,8,8
	.comm	LEV_FR_SETLIST,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_friend-import-dump.c_output_user_friends.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"warning: user %d has %d friends, only %d imported\012"
	.ascii	"\000"
	.text
	.align	2
	.global	output_user_friends
	.syntax unified
	.arm
	.fpu softvfp
	.type	output_user_friends, %function
output_user_friends:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	subs	r4, r1, #0
	sub	sp, sp, #8
	beq	.L1
	mov	r7, #0
	mov	r9, r0
	mov	r5, r4
	mov	r8, r7
	ldr	r10, .L37
	b	.L4
.L19:
	mov	r8, r6
.L4:
	ldr	r3, [r5]
	add	r6, r8, #1
	cmp	r3, #1
	ldr	r5, [r5, #8]
	addne	r7, r7, #1
	cmp	r6, r10
	movgt	r0, #0
	movle	r0, #1
	bl	assert
	cmp	r5, #0
	bne	.L19
	ldr	r5, .L37+4
	ldr	r1, [r5]
	cmp	r1, r6
	bge	.L5
	ldr	r3, .L37+8
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L36
.L6:
	mov	r3, r6
.L8:
	ldr	r2, [r4]
	sub	r3, r3, #1
	cmp	r2, #1
	subne	r7, r7, #1
	cmp	r1, r3
	ldr	r4, [r4, #8]
	blt	.L8
	cmp	r1, r6
	movlt	r6, r1
	movge	r6, r8
.L5:
	ldr	r3, .L37+12
	cmp	r7, #0
	ldr	r2, [r3]
	lsl	r5, r6, #2
	ldr	r3, [r2, r6, lsl #2]
	add	r3, r3, #1
	str	r3, [r2, r6, lsl #2]
	bne	.L9
	cmp	r6, #255
	ble	.L10
	add	r0, r6, #3
	lsl	r0, r0, #2
	bl	write_alloc
	ldr	r3, .L37+16
	str	r6, [r0, #4]
	ldr	r2, [r3]
	ldr	r3, [r0, #8]
	str	r2, [r0, #12]
	str	r9, [r0]
	add	r5, r3, r5
	b	.L34
.L12:
	ldr	r3, [r4, #4]
	str	r3, [r5, #-4]!
	ldr	r0, [r4]
	sub	r0, r0, #1
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r4, [r4, #8]
.L34:
	cmp	r4, #0
	bne	.L12
	ldr	r2, .L37+20
	ldr	r3, [r2]
	add	r3, r3, #1
	str	r3, [r2]
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	cmp	r6, #255
	lsl	r5, r6, #3
	ble	.L14
	add	r0, r5, #12
	bl	write_alloc
	ldr	r3, .L37+24
	str	r6, [r0, #4]
	ldr	r2, [r3]
	ldr	r3, [r0, #8]
	str	r2, [r0, #12]
	str	r9, [r0]
	add	r3, r3, r5
.L15:
	cmp	r4, #0
	beq	.L18
.L17:
	ldr	r2, [r4, #4]
	sub	r3, r3, #8
	str	r2, [r3]
	ldr	r2, [r4]
	ldr	r4, [r4, #8]
	str	r2, [r3, #4]
	cmp	r4, #0
	bne	.L17
.L18:
	ldr	r2, .L37+28
	ldr	r3, [r2]
	add	r3, r3, #1
	str	r3, [r2]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	add	r0, r6, #2
	lsl	r0, r0, #2
	bl	write_alloc
	ldr	r3, .L37+32
	ldr	r2, [r0, #4]
	ldr	r3, [r3]
	add	r5, r2, r5
	add	r3, r3, r6
	str	r3, [r0, #8]
	str	r9, [r0]
	b	.L34
.L14:
	add	r0, r6, #1
	lsl	r0, r0, #3
	bl	write_alloc
	ldr	r2, .L37+36
	ldr	r3, [r0, #4]
	ldr	r2, [r2]
	add	r3, r3, r5
	add	r6, r2, r6
	str	r6, [r0, #8]
	str	r9, [r0]
	b	.L15
.L36:
	ldr	r3, .L37+40
	str	r1, [sp]
	ldr	r0, [r3]
	ldr	r1, .L37+44
	mov	r3, r6
	mov	r2, r9
	bl	fprintf
	ldr	r1, [r5]
	cmp	r6, r1
	bgt	.L6
	b	.L5
.L38:
	.align	2
.L37:
	.word	1000000
	.word	MAX_IMPORT_FRIENDS
	.word	verbosity
	.word	list_len_cnt
	.word	LEV_FR_SETLIST_LONG
	.word	lists_output
	.word	LEV_FR_SETLIST_CAT_LONG
	.word	ext_lists_output
	.word	LEV_FR_SETLIST
	.word	LEV_FR_SETLIST_CAT
	.word	stderr
	.word	.LC0
	.size	output_user_friends, .-output_user_friends
	.comm	verbosity,4,4
	.comm	stderr,4,4
	.comm	lists_output,4,4
	.comm	list_len_cnt,4,4
	.comm	ext_lists_output,4,4
	.comm	MAX_IMPORT_FRIENDS,4,4
	.comm	LEV_FR_SETLIST_LONG,4,4
	.comm	LEV_FR_SETLIST_CAT_LONG,4,4
	.comm	LEV_FR_SETLIST_CAT,4,4
	.comm	LEV_FR_SETLIST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
