	.file	"extr_segment.c_build_sit_entries.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Wrong journal entry on segno %u"
	.align 8
.LC1:
	.string	"SIT is corrupted node# %u vs %u"
	.text
	.p2align 4
	.type	build_sit_entries, @function
build_sit_entries:
.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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	lea	r14, 68[rsp]
	call	SIT_I@PLT
	mov	esi, DWORD PTR CURSEG_COLD_DATA[rip]
	mov	rdi, rbp
	mov	r15, rax
	call	CURSEG_I@PLT
	mov	rdi, rbp
	mov	QWORD PTR 48[rsp], rax
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR 56[rsp], rax
	call	SIT_BLK_CNT@PLT
	mov	DWORD PTR 36[rsp], 0
	mov	DWORD PTR 44[rsp], eax
	mov	DWORD PTR 40[rsp], 0
.L11:
	mov	ebx, DWORD PTR 40[rsp]
	mov	ecx, DWORD PTR META_SIT[rip]
	mov	r8d, 1
	mov	rdi, rbp
	mov	edx, DWORD PTR BIO_MAX_PAGES[rip]
	mov	esi, ebx
	call	f2fs_ra_meta_pages@PLT
	mov	ecx, ebx
	mov	r8d, eax
	mov	eax, DWORD PTR [r15]
	add	ecx, r8d
	imul	ebx, eax
	mov	DWORD PTR 40[rsp], ecx
	imul	eax, ecx
	mov	DWORD PTR 24[rsp], eax
	cmp	ebx, eax
	jnb	.L2
	mov	r13d, ebx
	sal	r13, 4
	mov	QWORD PTR 8[rsp], r13
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L50:
	mov	edi, DWORD PTR 8[r12]
	mov	edx, DWORD PTR SIT_VBLOCK_MAP_SIZE[rip]
	mov	esi, 255
	call	memset@PLT
	mov	rdi, rbp
	call	__is_large_section@PLT
	test	rax, rax
	jne	.L48
.L9:
	add	QWORD PTR 8[rsp], 16
	add	ebx, 1
	cmp	DWORD PTR 24[rsp], ebx
	je	.L2
.L3:
	mov	rdi, rbp
	call	MAIN_SEGS@PLT
	cmp	eax, ebx
	jbe	.L2
	mov	esi, ebx
	mov	rdi, rbp
	mov	r12, QWORD PTR 8[rsp]
	add	r12, QWORD PTR 8[r15]
	call	get_current_sit_page@PLT
	mov	rdi, rax
	mov	r13, rax
	call	IS_ERR@PLT
	mov	rdi, r13
	test	rax, rax
	jne	.L49
	call	page_address@PLT
	mov	esi, ebx
	mov	rdi, r15
	mov	rdx, QWORD PTR [rax]
	mov	QWORD PTR 16[rsp], rdx
	call	SIT_ENTRY_OFFSET@PLT
	mov	rdx, QWORD PTR 16[rsp]
	mov	esi, 1
	mov	rdi, r13
	mov	eax, DWORD PTR [rdx+rax*4]
	mov	DWORD PTR 68[rsp], eax
	call	f2fs_put_page@PLT
	mov	rdx, r14
	mov	esi, ebx
	mov	rdi, rbp
	call	check_block_count@PLT
	test	eax, eax
	jne	.L44
	mov	rdi, r12
	mov	rsi, r14
	call	seg_info_from_raw_sit@PLT
	mov	edi, DWORD PTR 12[r12]
	call	IS_NODESEG@PLT
	test	rax, rax
	je	.L6
	mov	ecx, DWORD PTR [r12]
	add	DWORD PTR 36[rsp], ecx
.L6:
	mov	esi, DWORD PTR CP_TRIMMED_FLAG[rip]
	mov	rdi, rbp
	call	is_set_ckpt_flags@PLT
	test	rax, rax
	jne	.L50
	mov	edi, DWORD PTR 8[r12]
	mov	esi, DWORD PTR 4[r12]
	mov	edx, DWORD PTR SIT_VBLOCK_MAP_SIZE[rip]
	call	memcpy@PLT
	mov	eax, DWORD PTR 4[rbp]
	add	eax, DWORD PTR 0[rbp]
	mov	rdi, rbp
	sub	eax, DWORD PTR [r12]
	mov	DWORD PTR 0[rbp], eax
	call	__is_large_section@PLT
	test	rax, rax
	je	.L9
.L48:
	mov	esi, ebx
	mov	rdi, rbp
	add	ebx, 1
	call	get_sec_entry@PLT
	mov	edx, DWORD PTR [r12]
	add	QWORD PTR 8[rsp], 16
	add	DWORD PTR [rax], edx
	cmp	DWORD PTR 24[rsp], ebx
	jne	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	mov	ecx, DWORD PTR 44[rsp]
	cmp	DWORD PTR 40[rsp], ecx
	jb	.L11
	mov	rdi, QWORD PTR 48[rsp]
	lea	r14, 68[rsp]
	xor	r13d, r13d
	call	down_read@PLT
	mov	QWORD PTR 24[rsp], r15
	mov	r15, QWORD PTR 56[rsp]
	mov	QWORD PTR 16[rsp], r14
	mov	r14d, DWORD PTR 36[rsp]
	jmp	.L12
.L54:
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR SIT_VBLOCK_MAP_SIZE[rip]
	mov	esi, 255
	call	memset@PLT
	mov	rdi, rbp
	call	__is_large_section@PLT
	test	rax, rax
	jne	.L51
.L20:
	add	r13d, 1
.L12:
	mov	rdi, r15
	call	sits_in_cursum@PLT
	cmp	eax, r13d
	jbe	.L52
	mov	esi, r13d
	mov	rdi, r15
	call	segno_in_journal@PLT
	mov	edi, eax
	call	le32_to_cpu@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	MAIN_SEGS@PLT
	cmp	eax, r12d
	jbe	.L53
	mov	rax, QWORD PTR 24[rsp]
	mov	esi, r13d
	mov	rdi, r15
	mov	ebx, r12d
	sal	rbx, 4
	add	rbx, QWORD PTR 8[rax]
	call	sit_in_journal@PLT
	mov	edi, DWORD PTR 12[rbx]
	mov	DWORD PTR 68[rsp], eax
	mov	eax, DWORD PTR [rbx]
	mov	DWORD PTR 8[rsp], eax
	call	IS_NODESEG@PLT
	mov	rdx, QWORD PTR 16[rsp]
	mov	esi, r12d
	mov	rdi, rbp
	mov	r8, rax
	mov	eax, r14d
	sub	eax, DWORD PTR 8[rsp]
	test	r8, r8
	cmovne	r14d, eax
	call	check_block_count@PLT
	test	eax, eax
	jne	.L16
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdi, rbx
	call	seg_info_from_raw_sit@PLT
	mov	edi, DWORD PTR 12[rbx]
	call	IS_NODESEG@PLT
	test	rax, rax
	je	.L17
	add	r14d, DWORD PTR [rbx]
.L17:
	mov	esi, DWORD PTR CP_TRIMMED_FLAG[rip]
	mov	rdi, rbp
	call	is_set_ckpt_flags@PLT
	test	rax, rax
	jne	.L54
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR SIT_VBLOCK_MAP_SIZE[rip]
	call	memcpy@PLT
	mov	eax, DWORD PTR 8[rsp]
	add	eax, DWORD PTR 0[rbp]
	mov	rdi, rbp
	sub	eax, DWORD PTR [rbx]
	mov	DWORD PTR 0[rbp], eax
	call	__is_large_section@PLT
	test	rax, rax
	je	.L20
.L51:
	mov	esi, r12d
	mov	rdi, rbp
	call	get_sec_entry@PLT
	mov	edx, DWORD PTR [rbx]
	mov	esi, r12d
	mov	rdi, rbp
	add	DWORD PTR [rax], edx
	call	get_sec_entry@PLT
	mov	ecx, DWORD PTR 8[rsp]
	sub	DWORD PTR [rax], ecx
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L49:
	call	PTR_ERR@PLT
	mov	r8d, eax
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L55
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	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
.L44:
	.cfi_restore_state
	mov	r8d, eax
	jmp	.L1
.L53:
	mov	edx, r12d
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	xor	eax, eax
	mov	DWORD PTR 36[rsp], r14d
	call	f2fs_err@PLT
	mov	ebx, DWORD PTR EFSCORRUPTED[rip]
	mov	rdi, QWORD PTR 48[rsp]
	mov	r8d, ebx
	neg	r8d
	mov	DWORD PTR 8[rsp], r8d
	call	up_read@PLT
	test	ebx, ebx
	mov	r8d, DWORD PTR 8[rsp]
	jne	.L1
.L14:
	mov	rdi, rbp
	call	valid_node_count@PLT
	mov	ebx, DWORD PTR 36[rsp]
	xor	r8d, r8d
	cmp	eax, ebx
	je	.L1
	mov	rdi, rbp
	call	valid_node_count@PLT
	mov	edx, ebx
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	mov	ecx, eax
	xor	eax, eax
	call	f2fs_err@PLT
	mov	r8d, DWORD PTR EFSCORRUPTED[rip]
	neg	r8d
	jmp	.L1
.L52:
	mov	rdi, QWORD PTR 48[rsp]
	mov	DWORD PTR 36[rsp], r14d
	call	up_read@PLT
	jmp	.L14
.L16:
	mov	rdi, QWORD PTR 48[rsp]
	mov	DWORD PTR 8[rsp], eax
	call	up_read@PLT
	mov	r8d, DWORD PTR 8[rsp]
	jmp	.L1
.L55:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	build_sit_entries, .-build_sit_entries
	.comm	SIT_VBLOCK_MAP_SIZE,4,4
	.comm	META_SIT,4,4
	.comm	EFSCORRUPTED,4,4
	.comm	CURSEG_COLD_DATA,4,4
	.comm	CP_TRIMMED_FLAG,4,4
	.comm	BIO_MAX_PAGES,4,4
	.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_segment.c_build_sit_entries.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Wrong journal entry on segno %u\000"
	.align	2
.LC1:
	.ascii	"SIT is corrupted node# %u vs %u\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	build_sit_entries, %function
build_sit_entries:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L59
	sub	sp, sp, #44
	mov	r5, r0
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	bl	SIT_I
	ldr	r3, .L59+4
	mov	r8, r0
	ldr	r1, [r3]
	mov	r0, r5
	bl	CURSEG_I
	mov	r3, r0
	ldr	r3, [r3, #4]
	str	r0, [sp, #24]
	str	r3, [sp, #28]
	mov	r3, #0
	mov	r0, r5
	mov	r4, r3
	str	r3, [sp, #12]
	bl	SIT_BLK_CNT
	str	r4, [sp, #16]
	str	r0, [sp, #20]
.L11:
	mov	r2, #1
	ldr	r3, .L59+8
	ldr	r4, [sp, #16]
	ldr	r3, [r3]
	str	r2, [sp]
	ldr	r2, .L59+12
	mov	r1, r4
	mov	r0, r5
	ldr	r2, [r2]
	bl	f2fs_ra_meta_pages
	mov	r3, r4
	ldr	r10, [r8]
	add	r3, r3, r0
	mul	r4, r10, r4
	str	r3, [sp, #16]
	mul	r3, r10, r3
	cmp	r4, r3
	str	r3, [sp, #8]
	bcc	.L2
	b	.L3
.L53:
	ldr	r3, .L59+16
	mov	r1, #255
	ldr	r2, [r3]
	ldr	r0, [r6, #8]
	bl	memset
	mov	r0, r5
	bl	__is_large_section
	cmp	r0, #0
	bne	.L51
.L9:
	ldr	r3, [sp, #8]
	add	r4, r4, #1
	cmp	r3, r4
	beq	.L3
.L2:
	mov	r0, r5
	bl	MAIN_SEGS
	cmp	r0, r4
	bls	.L3
	mov	r1, r4
	mov	r0, r5
	ldr	r7, [r8, #4]
	bl	get_current_sit_page
	mov	r10, r0
	bl	IS_ERR
	cmp	r0, #0
	add	r6, r7, r4, lsl #4
	lsl	r9, r4, #4
	bne	.L52
	mov	r0, r10
	bl	page_address
	mov	r2, r0
	mov	r1, r4
	mov	r0, r8
	ldr	fp, [r2]
	bl	SIT_ENTRY_OFFSET
	ldr	r2, [fp, r0, lsl #2]
	mov	r1, #1
	mov	r0, r10
	str	r2, [sp, #32]
	bl	f2fs_put_page
	mov	r1, r4
	mov	r0, r5
	add	r2, sp, #32
	bl	check_block_count
	cmp	r0, #0
	bne	.L47
	add	r1, sp, #32
	mov	r0, r6
	bl	seg_info_from_raw_sit
	ldr	r0, [r6, #12]
	bl	IS_NODESEG
	cmp	r0, #0
	ldrne	r3, [r7, r9]
	ldrne	r2, [sp, #12]
	mov	r0, r5
	addne	r3, r2, r3
	strne	r3, [sp, #12]
	ldr	r3, .L59+20
	ldr	r1, [r3]
	bl	is_set_ckpt_flags
	cmp	r0, #0
	bne	.L53
	ldr	r3, .L59+16
	ldr	r1, [r6, #4]
	ldr	r2, [r3]
	ldr	r0, [r6, #8]
	bl	memcpy
	ldr	r3, [r5]
	ldr	r1, [r5, #4]
	ldr	r2, [r7, r9]
	add	r3, r3, r1
	sub	r3, r3, r2
	mov	r0, r5
	str	r3, [r5]
	bl	__is_large_section
	cmp	r0, #0
	beq	.L9
.L51:
	mov	r1, r4
	mov	r0, r5
	bl	get_sec_entry
	ldr	r2, [r7, r9]
	ldr	r3, [r0]
	add	r4, r4, #1
	add	r3, r3, r2
	str	r3, [r0]
	ldr	r3, [sp, #8]
	cmp	r3, r4
	bne	.L2
.L3:
	ldr	r3, [sp, #16]
	ldr	r2, [sp, #20]
	cmp	r3, r2
	bcc	.L11
	ldr	r0, [sp, #24]
	bl	down_read
	mov	r7, #0
	ldr	fp, [sp, #12]
	ldr	r9, [sp, #28]
	str	r8, [sp, #8]
	b	.L12
.L57:
	ldr	r3, .L59+16
	mov	r1, #255
	ldr	r2, [r3]
	ldr	r0, [r6, #8]
	bl	memset
	mov	r0, r5
	bl	__is_large_section
	cmp	r0, #0
	bne	.L54
.L20:
	add	r7, r7, #1
.L12:
	mov	r0, r9
	bl	sits_in_cursum
	cmp	r0, r7
	bls	.L55
	mov	r1, r7
	mov	r0, r9
	bl	segno_in_journal
	bl	le32_to_cpu
	mov	r4, r0
	mov	r0, r5
	bl	MAIN_SEGS
	cmp	r0, r4
	bls	.L56
	ldr	r3, [sp, #8]
	mov	r1, r7
	mov	r0, r9
	ldr	r8, [r3, #4]
	bl	sit_in_journal
	mov	r3, r0
	add	r6, r8, r4, lsl #4
	ldr	r0, [r6, #12]
	ldr	r10, [r8, r4, lsl #4]
	str	r3, [sp, #32]
	bl	IS_NODESEG
	mov	r1, r4
	cmp	r0, #0
	add	r2, sp, #32
	mov	r0, r5
	subne	fp, fp, r10
	bl	check_block_count
	cmp	r0, #0
	bne	.L16
	add	r1, sp, #32
	mov	r0, r6
	bl	seg_info_from_raw_sit
	ldr	r0, [r6, #12]
	bl	IS_NODESEG
	cmp	r0, #0
	ldrne	r3, [r8, r4, lsl #4]
	mov	r0, r5
	addne	fp, fp, r3
	ldr	r3, .L59+20
	ldr	r1, [r3]
	bl	is_set_ckpt_flags
	cmp	r0, #0
	bne	.L57
	ldr	r3, .L59+16
	ldr	r1, [r6, #4]
	ldr	r2, [r3]
	ldr	r0, [r6, #8]
	bl	memcpy
	ldr	r3, [r5]
	ldr	r2, [r8, r4, lsl #4]
	add	r3, r10, r3
	sub	r3, r3, r2
	mov	r0, r5
	str	r3, [r5]
	bl	__is_large_section
	cmp	r0, #0
	beq	.L20
.L54:
	mov	r1, r4
	mov	r0, r5
	bl	get_sec_entry
	ldr	r2, [r8, r4, lsl #4]
	ldr	r3, [r0]
	mov	r1, r4
	add	r3, r3, r2
	str	r3, [r0]
	mov	r0, r5
	bl	get_sec_entry
	ldr	r3, [r0]
	sub	r10, r3, r10
	str	r10, [r0]
	b	.L20
.L52:
	mov	r0, r10
	bl	PTR_ERR
	mov	r3, r0
.L1:
	ldr	r2, .L59
	ldr	r1, [r2]
	ldr	r2, [sp, #36]
	eors	r1, r2, r1
	mov	r2, #0
	bne	.L58
	mov	r0, r3
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L47:
	mov	r3, r0
	b	.L1
.L56:
	mov	r2, r4
	ldr	r1, .L59+24
	mov	r0, r5
	str	fp, [sp, #12]
	bl	f2fs_err
	ldr	r3, .L59+28
	ldr	r0, [sp, #24]
	ldr	r4, [r3]
	bl	up_read
	cmp	r4, #0
	rsb	r3, r4, #0
	bne	.L1
.L14:
	mov	r0, r5
	bl	valid_node_count
	ldr	r4, [sp, #12]
	cmp	r0, r4
	moveq	r3, #0
	beq	.L1
	mov	r0, r5
	bl	valid_node_count
	mov	r2, r4
	mov	r3, r0
	ldr	r1, .L59+32
	mov	r0, r5
	bl	f2fs_err
	ldr	r3, .L59+28
	ldr	r3, [r3]
	rsb	r3, r3, #0
	b	.L1
.L55:
	ldr	r0, [sp, #24]
	str	fp, [sp, #12]
	bl	up_read
	b	.L14
.L16:
	str	r0, [sp, #8]
	ldr	r0, [sp, #24]
	bl	up_read
	ldr	r3, [sp, #8]
	b	.L1
.L58:
	bl	__stack_chk_fail
.L60:
	.align	2
.L59:
	.word	.LC2
	.word	CURSEG_COLD_DATA
	.word	META_SIT
	.word	BIO_MAX_PAGES
	.word	SIT_VBLOCK_MAP_SIZE
	.word	CP_TRIMMED_FLAG
	.word	.LC0
	.word	EFSCORRUPTED
	.word	.LC1
	.size	build_sit_entries, .-build_sit_entries
	.comm	SIT_VBLOCK_MAP_SIZE,4,4
	.comm	META_SIT,4,4
	.comm	EFSCORRUPTED,4,4
	.comm	CURSEG_COLD_DATA,4,4
	.comm	CP_TRIMMED_FLAG,4,4
	.comm	BIO_MAX_PAGES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
