	.file	"extr_gc.c_f2fs_gc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	f2fs_gc
	.type	f2fs_gc, @function
f2fs_gc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	r12d, DWORD PTR BG_GC[rip]
	mov	DWORD PTR 44[rsp], ecx
	mov	edi, DWORD PTR 64[rsp]
	mov	DWORD PTR 28[rsp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	test	esi, esi
	mov	DWORD PTR [rsp], esi
	mov	esi, DWORD PTR GFP_NOFS[rip]
	mov	DWORD PTR 40[rsp], ecx
	cmovne	r12d, DWORD PTR FG_GC[rip]
	call	RADIX_TREE_INIT@PLT
	mov	edi, DWORD PTR 68[rsp]
	mov	DWORD PTR 64[rsp], eax
	call	LIST_HEAD_INIT@PLT
	mov	rdx, QWORD PTR FG_GC[rip]
	mov	rdi, rbx
	mov	DWORD PTR 68[rsp], eax
	mov	rax, QWORD PTR [rbx]
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	QWORD PTR 16[rsp], rax
	call	prefree_segments@PLT
	mov	rdi, rbx
	mov	QWORD PTR 8[rsp], rax
	call	reserved_segments@PLT
	mov	rdi, rbx
	mov	DWORD PTR 4[rsp], eax
	call	free_segments@PLT
	mov	rdi, rbx
	mov	r15d, eax
	call	free_sections@PLT
	mov	esi, DWORD PTR F2FS_DIRTY_IMETA[rip]
	mov	rdi, rbx
	mov	r14d, eax
	call	get_pages@PLT
	mov	esi, DWORD PTR F2FS_DIRTY_DENTS[rip]
	mov	rdi, rbx
	mov	r13d, eax
	call	get_pages@PLT
	mov	esi, DWORD PTR F2FS_DIRTY_NODES[rip]
	mov	rdi, rbx
	mov	ebp, eax
	call	get_pages@PLT
	mov	r10, QWORD PTR 8[rsp]
	mov	r9d, r13d
	mov	r8d, ebp
	mov	rdi, QWORD PTR 24[rbx]
	mov	ecx, eax
	xor	r13d, r13d
	push	r10
	.cfi_def_cfa_offset 152
	mov	edx, DWORD PTR 12[rsp]
	push	rdx
	.cfi_def_cfa_offset 160
	push	r15
	.cfi_def_cfa_offset 168
	push	r14
	.cfi_def_cfa_offset 176
	mov	edx, DWORD PTR 60[rsp]
	xor	r14d, r14d
	mov	esi, DWORD PTR 32[rsp]
	call	trace_f2fs_gc_begin@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 144
	mov	rdi, rbx
	call	__get_cp_reason@PLT
	lea	r15, 64[rsp]
	mov	QWORD PTR 8[rbx], 0
	mov	DWORD PTR 60[rsp], eax
	mov	rax, QWORD PTR 16[rsp]
	mov	DWORD PTR 24[rsp], 0
	mov	QWORD PTR 8[rsp], rax
	lea	rax, 60[rsp]
	mov	DWORD PTR 4[rsp], 0
	mov	QWORD PTR 32[rsp], rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L12:
	add	DWORD PTR 4[rsp], eax
.L15:
	mov	edx, DWORD PTR [rsp]
	test	edx, edx
	jne	.L26
.L60:
	xor	edx, edx
	mov	esi, r14d
	mov	rdi, rbx
	call	has_not_enough_free_secs@PLT
	test	rax, rax
	je	.L27
	cmp	DWORD PTR MAX_SKIP_GC_COUNT[rip], r13d
	jnb	.L54
	lea	eax, [r13+r13]
	cmp	eax, DWORD PTR 24[rsp]
	jb	.L54
	mov	rcx, QWORD PTR 16[rsp]
	mov	rax, QWORD PTR 8[rsp]
	cmp	rcx, rax
	jnb	.L19
	sub	rax, rcx
	cmp	rax, QWORD PTR 8[rbx]
	jbe	.L19
	mov	esi, 1
	mov	rdi, rbx
	call	f2fs_drop_inmem_pages_all@PLT
.L54:
	mov	rax, QWORD PTR NULL_SEGNO[rip]
	mov	DWORD PTR 44[rsp], eax
.L4:
	mov	rax, QWORD PTR 24[rbx]
	xor	edi, edi
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR SB_ACTIVE[rip], eax
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L55
	mov	rdi, rbx
	call	f2fs_cp_error@PLT
	mov	edi, eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L57
	movsx	rbp, r12d
	cmp	rbp, QWORD PTR BG_GC[rip]
	je	.L58
.L8:
	lea	rsi, 44[rsp]
	mov	edx, r12d
	mov	rdi, rbx
	call	__get_victim@PLT
	test	eax, eax
	je	.L59
	mov	esi, DWORD PTR 44[rsp]
	mov	ecx, r12d
	mov	rdx, r15
	mov	rdi, rbx
	call	do_garbage_collect@PLT
	cmp	QWORD PTR FG_GC[rip], rbp
	jne	.L12
	xor	edx, edx
	cmp	DWORD PTR 16[rbx], eax
	sete	dl
	add	DWORD PTR 4[rsp], eax
	add	r14d, edx
	mov	rdx, QWORD PTR [rbx]
	mov	rdx, QWORD PTR [rdx+rbp*8]
	cmp	rdx, QWORD PTR 8[rsp]
	ja	.L21
	cmp	QWORD PTR 8[rbx], 0
	je	.L14
.L21:
	add	r13d, 1
.L14:
	add	DWORD PTR 24[rsp], 1
	mov	QWORD PTR 8[rsp], rdx
	test	eax, eax
	je	.L15
	mov	rax, QWORD PTR NULL_SEGNO[rip]
	mov	edx, DWORD PTR [rsp]
	mov	QWORD PTR 32[rbx], rax
	test	edx, edx
	je	.L60
	.p2align 4,,10
	.p2align 3
.L26:
	mov	BYTE PTR 32[rsp], 1
	xor	r10d, r10d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L58:
	xor	edx, edx
	xor	esi, esi
	mov	rdi, rbx
	call	has_not_enough_free_secs@PLT
	test	rax, rax
	jne	.L61
.L9:
	cmp	QWORD PTR BG_GC[rip], rbp
	jne	.L8
	mov	ecx, DWORD PTR 28[rsp]
	test	ecx, ecx
	jne	.L8
.L55:
	mov	eax, DWORD PTR EINVAL[rip]
	mov	r10d, eax
	neg	r10d
	test	eax, eax
	sete	BYTE PTR 32[rsp]
.L6:
	mov	rdi, rbx
	mov	DWORD PTR 28[rsp], r10d
	call	SIT_I@PLT
	mov	rdx, QWORD PTR ALLOC_NEXT[rip]
	mov	rdi, rbx
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR [rax+rdx*4], 0
	call	SIT_I@PLT
	mov	ecx, DWORD PTR 40[rsp]
	mov	rdx, QWORD PTR FLUSH_DEVICE[rip]
	mov	rdi, rbx
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR [rax+rdx*4], ecx
	call	prefree_segments@PLT
	mov	rdi, rbx
	mov	QWORD PTR 8[rsp], rax
	call	reserved_segments@PLT
	mov	rdi, rbx
	mov	DWORD PTR 16[rsp], eax
	call	free_segments@PLT
	mov	rdi, rbx
	mov	DWORD PTR 24[rsp], eax
	call	free_sections@PLT
	mov	esi, DWORD PTR F2FS_DIRTY_IMETA[rip]
	mov	rdi, rbx
	mov	r12d, eax
	call	get_pages@PLT
	mov	esi, DWORD PTR F2FS_DIRTY_DENTS[rip]
	mov	rdi, rbx
	mov	r13d, eax
	call	get_pages@PLT
	mov	esi, DWORD PTR F2FS_DIRTY_NODES[rip]
	mov	rdi, rbx
	mov	ebp, eax
	call	get_pages@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 152
	mov	rdi, QWORD PTR 24[rbx]
	mov	r9d, ebp
	push	QWORD PTR 16[rsp]
	.cfi_def_cfa_offset 160
	mov	r11d, DWORD PTR 32[rsp]
	mov	r8d, eax
	push	r11
	.cfi_def_cfa_offset 168
	mov	ecx, DWORD PTR 48[rsp]
	push	rcx
	.cfi_def_cfa_offset 176
	mov	ecx, r14d
	push	r12
	.cfi_def_cfa_offset 184
	push	r13
	.cfi_def_cfa_offset 192
	mov	r10d, DWORD PTR 76[rsp]
	mov	edx, DWORD PTR 52[rsp]
	mov	esi, r10d
	mov	DWORD PTR 52[rsp], r10d
	call	trace_f2fs_gc_end@PLT
	add	rsp, 48
	.cfi_def_cfa_offset 144
	lea	rdi, 20[rbx]
	call	mutex_unlock@PLT
	mov	rdi, r15
	call	put_gc_inode@PLT
	mov	eax, DWORD PTR [rsp]
	mov	r10d, DWORD PTR 4[rsp]
	test	eax, eax
	je	.L1
	cmp	BYTE PTR 32[rsp], 0
	je	.L1
	xor	r10d, r10d
	test	r14d, r14d
	jne	.L1
	mov	r10d, DWORD PTR EAGAIN[rip]
	neg	r10d
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L62
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r10d
	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
.L61:
	.cfi_restore_state
	mov	rdi, rbx
	call	prefree_segments@PLT
	test	rax, rax
	je	.L10
	mov	esi, DWORD PTR SBI_CP_DISABLED[rip]
	mov	rdi, rbx
	call	is_sbi_flag_set@PLT
	test	eax, eax
	je	.L63
.L10:
	xor	edx, edx
	xor	esi, esi
	mov	rdi, rbx
	call	has_not_enough_free_secs@PLT
	test	rax, rax
	je	.L9
	mov	rbp, QWORD PTR FG_GC[rip]
	mov	r12d, ebp
	movsx	rbp, ebp
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L63:
	mov	rsi, QWORD PTR 32[rsp]
	mov	rdi, rbx
	call	f2fs_write_checkpoint@PLT
	test	eax, eax
	je	.L10
	mov	BYTE PTR 32[rsp], 0
	mov	r10d, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L57:
	mov	eax, DWORD PTR EIO[rip]
	mov	r10d, eax
	neg	r10d
	test	eax, eax
	sete	BYTE PTR 32[rsp]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L59:
	mov	eax, DWORD PTR ENODATA[rip]
	mov	r10d, eax
	neg	r10d
	test	eax, eax
	sete	BYTE PTR 32[rsp]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L27:
	mov	BYTE PTR 32[rsp], 1
	xor	r10d, r10d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L19:
	xor	r10d, r10d
	cmp	rbp, QWORD PTR FG_GC[rip]
	mov	BYTE PTR 32[rsp], 1
	jne	.L6
	mov	esi, DWORD PTR SBI_CP_DISABLED[rip]
	mov	rdi, rbx
	mov	DWORD PTR 8[rsp], r10d
	call	is_sbi_flag_set@PLT
	mov	r10d, DWORD PTR 8[rsp]
	test	eax, eax
	jne	.L6
	lea	rsi, 60[rsp]
	mov	rdi, rbx
	call	f2fs_write_checkpoint@PLT
	test	eax, eax
	mov	r10d, eax
	sete	BYTE PTR 32[rsp]
	jmp	.L6
.L62:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	f2fs_gc, .-f2fs_gc
	.comm	SB_ACTIVE,4,4
	.comm	SBI_CP_DISABLED,4,4
	.comm	NULL_SEGNO,8,8
	.comm	MAX_SKIP_GC_COUNT,4,4
	.comm	GFP_NOFS,4,4
	.comm	FLUSH_DEVICE,8,8
	.comm	FG_GC,8,8
	.comm	F2FS_DIRTY_NODES,4,4
	.comm	F2FS_DIRTY_IMETA,4,4
	.comm	F2FS_DIRTY_DENTS,4,4
	.comm	ENODATA,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.comm	EAGAIN,4,4
	.comm	BG_GC,8,8
	.comm	ALLOC_NEXT,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_gc.c_f2fs_gc.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	f2fs_gc
	.syntax unified
	.arm
	.fpu softvfp
	.type	f2fs_gc, %function
f2fs_gc:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #108
	str	r3, [sp, #84]
	ldr	r3, .L64
	str	r2, [sp, #72]
	ldr	r3, [r3]
	str	r3, [sp, #100]
	mov	r3,#0
	subs	r6, r1, #0
	ldrne	r3, .L64+4
	ldreq	r3, .L64+8
	strne	r3, [sp, #52]
	ldr	r7, [r3]
	ldr	r3, .L64+12
	ldreq	r2, .L64+4
	ldr	r1, [r3]
	ldr	r3, [sp, #84]
	mov	r4, r0
	ldr	r0, [sp, #92]
	streq	r2, [sp, #52]
	str	r3, [sp, #76]
	bl	RADIX_TREE_INIT
	mov	r3, r0
	ldr	r0, [sp, #96]
	str	r3, [sp, #92]
	bl	LIST_HEAD_INIT
	mov	r2, r0
	ldr	r3, [sp, #52]
	mov	r0, r4
	ldr	r1, [r3]
	ldr	r3, [r4]
	ldr	r10, [r4, #24]
	add	r3, r3, r1, lsl #3
	ldr	r1, .L64+16
	ldmia	r3, {r8-r9}
	ldr	r1, [r1]
	str	r2, [sp, #96]
	str	r8, [sp, #64]
	str	r9, [sp, #68]
	bl	get_pages
	ldr	r3, .L64+20
	mov	r5, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	get_pages
	ldr	r3, .L64+24
	mov	fp, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	get_pages
	mov	r3, r0
	mov	r0, r4
	str	r3, [sp, #32]
	bl	free_sections
	mov	r8, r0
	mov	r0, r4
	bl	free_segments
	mov	r9, r0
	mov	r0, r4
	bl	reserved_segments
	mov	r3, r0
	mov	r0, r4
	str	r3, [sp, #40]
	bl	prefree_segments
	mov	r1, #0
	ldr	r3, [sp, #40]
	ldr	r2, [sp, #32]
	str	r1, [sp, #48]
	str	fp, [sp]
	mov	r1, r6
	str	r3, [sp, #16]
	str	r9, [sp, #12]
	mov	r3, r5
	str	r8, [sp, #8]
	str	r2, [sp, #4]
	str	r0, [sp, #20]
	ldr	r2, [sp, #72]
	mov	r0, r10
	bl	trace_f2fs_gc_begin
	mov	r0, r4
	bl	__get_cp_reason
	add	r9, sp, #64
	ldmia	r9, {r8-r9}
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	str	r8, [sp, #32]
	str	r9, [sp, #36]
	mov	fp, r1
	str	r2, [r4, #8]
	str	r3, [r4, #12]
	ldr	r10, .L64+28
	ldr	r8, .L64+8
	ldr	r9, .L64+32
	str	r1, [sp, #40]
	str	r1, [sp, #44]
	str	r0, [sp, #88]
	b	.L4
.L12:
	ldr	r3, [sp, #40]
	add	r3, r3, r0
	str	r3, [sp, #40]
.L15:
	cmp	r6, #0
	bne	.L52
.L59:
	mov	r2, r6
	mov	r0, r4
	ldr	r1, [sp, #44]
	bl	has_not_enough_free_secs
	subs	r5, r0, #0
	beq	.L52
	ldr	r3, .L64+36
	ldr	r3, [r3]
	cmp	r3, fp
	bcs	.L51
	ldr	r3, [sp, #48]
	cmp	r3, fp, lsl #1
	bhi	.L51
	add	r1, sp, #64
	ldmia	r1, {r0-r1}
	add	r3, sp, #32
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bcs	.L19
	add	r3, r4, #8
	ldmia	r3, {r2-r3}
	ldr	ip, [sp, #32]
	subs	ip, ip, r0
	str	ip, [sp, #56]
	ldr	ip, [sp, #36]
	sbc	r1, ip, r1
	str	r1, [sp, #60]
	add	r1, sp, #56
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	bls	.L19
	mov	r1, #1
	mov	r0, r4
	bl	f2fs_drop_inmem_pages_all
.L51:
	ldr	r3, [r9]
	str	r3, [sp, #84]
.L4:
	ldr	r2, [r4, #24]
	ldr	r3, [r10]
	ldr	r2, [r2]
	tst	r2, r3
	moveq	r0, #1
	movne	r0, #0
	bl	unlikely
	cmp	r0, #0
	bne	.L54
	mov	r0, r4
	bl	f2fs_cp_error
	bl	unlikely
	subs	r5, r0, #0
	bne	.L56
	ldr	r3, [r8]
	cmp	r3, r7
	beq	.L57
.L8:
	mov	r2, r7
	mov	r0, r4
	add	r1, sp, #84
	bl	__get_victim
	cmp	r0, #0
	beq	.L58
	mov	r3, r7
	mov	r0, r4
	ldr	r1, [sp, #84]
	add	r2, sp, #92
	bl	do_garbage_collect
	ldr	r3, [sp, #52]
	mov	ip, r0
	ldr	r3, [r3]
	cmp	r3, r7
	bne	.L12
	ldr	r2, [r4, #16]
	cmp	r2, r0
	ldreq	r2, [sp, #44]
	addeq	r2, r2, #1
	streq	r2, [sp, #44]
.L13:
	ldr	r2, [r4]
	ldr	r1, [sp, #40]
	add	r3, r2, r3, lsl #3
	add	r1, r1, ip
	str	r1, [sp, #40]
	ldmia	r3, {r0-r1}
	add	r3, sp, #32
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bhi	.L21
	add	r3, r4, #8
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	beq	.L14
.L21:
	add	fp, fp, #1
.L14:
	ldr	r3, [sp, #48]
	cmp	ip, #0
	add	r3, r3, #1
	str	r3, [sp, #48]
	beq	.L25
	ldr	r3, [r9]
	cmp	r6, #0
	str	r0, [sp, #32]
	str	r1, [sp, #36]
	str	r3, [r4, #28]
	beq	.L59
.L52:
	mov	r3, #1
	str	r3, [sp, #56]
	b	.L6
.L57:
	mov	r2, r5
	mov	r1, r5
	mov	r0, r4
	bl	has_not_enough_free_secs
	cmp	r0, #0
	bne	.L60
.L9:
	ldr	r3, [r8]
	ldr	r2, [sp, #72]
	cmp	r3, r7
	cmpeq	r2, #0
	bne	.L8
.L54:
	ldr	r3, .L64+40
.L53:
	ldr	r5, [r3]
	clz	r3, r5
	lsr	r3, r3, #5
	rsb	r5, r5, #0
	str	r3, [sp, #56]
.L6:
	mov	r0, r4
	bl	SIT_I
	mov	fp, #0
	ldr	r2, .L64+44
	ldr	r3, [r0]
	ldr	r2, [r2]
	mov	r0, r4
	str	fp, [r3, r2, lsl #2]
	bl	SIT_I
	ldr	r2, .L64+48
	ldr	r3, [r0]
	ldr	r2, [r2]
	ldr	r1, [sp, #76]
	mov	r0, r4
	str	r1, [r3, r2, lsl #2]
	ldr	r3, .L64+16
	ldr	r2, [r4, #24]
	ldr	r1, [r3]
	str	r2, [sp, #52]
	bl	get_pages
	ldr	r3, .L64+20
	mov	r7, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	get_pages
	ldr	r3, .L64+24
	mov	r8, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	get_pages
	mov	r1, r0
	mov	r0, r4
	str	r1, [sp, #48]
	bl	free_sections
	mov	r9, r0
	mov	r0, r4
	bl	free_segments
	mov	r10, r0
	mov	r0, r4
	bl	reserved_segments
	mov	r3, r0
	mov	r0, r4
	str	r3, [sp, #32]
	bl	prefree_segments
	ldr	r1, [sp, #48]
	ldr	r3, [sp, #32]
	ldr	r2, [sp, #52]
	stm	sp, {r7, r8}
	ldr	r7, [sp, #44]
	str	r1, [sp, #8]
	str	r3, [sp, #20]
	mov	r1, r5
	mov	r3, r7
	str	r0, [sp, #24]
	str	r10, [sp, #16]
	mov	r0, r2
	str	r9, [sp, #12]
	ldr	r2, [sp, #40]
	bl	trace_f2fs_gc_end
	add	r0, r4, #20
	bl	mutex_unlock
	add	r0, sp, #92
	bl	put_gc_inode
	cmp	r6, fp
	ldr	r2, [sp, #56]
	moveq	r2, fp
	cmp	r2, fp
	beq	.L1
	cmp	r7, fp
	movne	r5, fp
	ldreq	r3, .L64+52
	ldreq	r5, [r3]
	rsbeq	r5, r5, #0
.L1:
	ldr	r3, .L64
	ldr	r2, [r3]
	ldr	r3, [sp, #100]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L61
	mov	r0, r5
	add	sp, sp, #108
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L25:
	str	r0, [sp, #32]
	str	r1, [sp, #36]
	b	.L15
.L60:
	mov	r0, r4
	bl	prefree_segments
	cmp	r0, #0
	beq	.L10
	ldr	r3, .L64+56
	mov	r0, r4
	ldr	r1, [r3]
	bl	is_sbi_flag_set
	subs	r3, r0, #0
	beq	.L62
.L10:
	mov	r2, #0
	mov	r0, r4
	mov	r1, r2
	bl	has_not_enough_free_secs
	cmp	r0, #0
	ldrne	r3, [sp, #52]
	ldrne	r7, [r3]
	b	.L9
.L62:
	mov	r0, r4
	add	r1, sp, #88
	str	r3, [sp, #80]
	bl	f2fs_write_checkpoint
	cmp	r0, #0
	ldr	r3, [sp, #80]
	beq	.L10
	mov	r5, r0
	str	r3, [sp, #56]
	b	.L6
.L56:
	ldr	r3, .L64+60
	b	.L53
.L58:
	ldr	r3, .L64+64
	b	.L53
.L19:
	ldr	r3, [sp, #52]
	ldr	r3, [r3]
	cmp	r7, r3
	beq	.L63
.L29:
	mov	r3, #1
	mov	r5, #0
	str	r3, [sp, #56]
	b	.L6
.L63:
	ldr	r3, .L64+56
	mov	r0, r4
	ldr	r1, [r3]
	bl	is_sbi_flag_set
	cmp	r0, #0
	bne	.L29
	mov	r0, r4
	add	r1, sp, #88
	bl	f2fs_write_checkpoint
	clz	r3, r0
	lsr	r3, r3, #5
	mov	r5, r0
	str	r3, [sp, #56]
	b	.L6
.L61:
	bl	__stack_chk_fail
.L65:
	.align	2
.L64:
	.word	.LC0
	.word	FG_GC
	.word	BG_GC
	.word	GFP_NOFS
	.word	F2FS_DIRTY_NODES
	.word	F2FS_DIRTY_DENTS
	.word	F2FS_DIRTY_IMETA
	.word	SB_ACTIVE
	.word	NULL_SEGNO
	.word	MAX_SKIP_GC_COUNT
	.word	EINVAL
	.word	ALLOC_NEXT
	.word	FLUSH_DEVICE
	.word	EAGAIN
	.word	SBI_CP_DISABLED
	.word	EIO
	.word	ENODATA
	.size	f2fs_gc, .-f2fs_gc
	.comm	SB_ACTIVE,4,4
	.comm	SBI_CP_DISABLED,4,4
	.comm	NULL_SEGNO,4,4
	.comm	MAX_SKIP_GC_COUNT,4,4
	.comm	GFP_NOFS,4,4
	.comm	FLUSH_DEVICE,4,4
	.comm	FG_GC,4,4
	.comm	F2FS_DIRTY_NODES,4,4
	.comm	F2FS_DIRTY_IMETA,4,4
	.comm	F2FS_DIRTY_DENTS,4,4
	.comm	ENODATA,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.comm	EAGAIN,4,4
	.comm	BG_GC,4,4
	.comm	ALLOC_NEXT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
