	.file	"extr_file.c_f2fs_truncate_data_blocks_range.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	f2fs_truncate_data_blocks_range
	.type	f2fs_truncate_data_blocks_range, @function
f2fs_truncate_data_blocks_range:
.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, 24
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR 8[rdi]
	mov	DWORD PTR 4[rsp], esi
	call	F2FS_I_SB@PLT
	mov	edi, DWORD PTR 12[rbx]
	mov	r13, rax
	mov	eax, DWORD PTR [rbx]
	mov	DWORD PTR [rsp], eax
	call	IS_INODE@PLT
	test	rax, rax
	jne	.L2
.L4:
	xor	ebp, ebp
.L3:
	mov	edi, DWORD PTR 12[rbx]
	call	F2FS_NODE@PLT
	mov	rdi, rax
	call	blkaddr_in_node@PLT
	movsx	rcx, DWORD PTR [rsp]
	add	rbp, rcx
	mov	QWORD PTR 8[rsp], rcx
	lea	rbp, [rax+rbp*4]
	mov	eax, DWORD PTR 4[rsp]
	test	eax, eax
	jle	.L12
	sub	eax, 1
	xor	r12d, r12d
	lea	r14, 4[rbp+rax*4]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L6:
	mov	QWORD PTR 16[rbx], rax
	mov	rdi, rbx
	call	f2fs_set_data_blkaddr@PLT
	mov	rdi, r15
	call	__is_valid_data_blkaddr@PLT
	test	rax, rax
	je	.L8
	mov	edx, DWORD PTR DATA_GENERIC_ENHANCE[rip]
	mov	rsi, r15
	mov	rdi, r13
	call	f2fs_is_valid_blkaddr@PLT
	test	eax, eax
	je	.L25
.L8:
	mov	rsi, r15
	mov	rdi, r13
	call	f2fs_invalidate_blocks@PLT
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	je	.L27
.L9:
	add	eax, 1
	add	rbp, 4
	add	r12d, 1
	mov	DWORD PTR [rbx], eax
	cmp	r14, rbp
	je	.L28
.L11:
	mov	edi, DWORD PTR 0[rbp]
	call	le32_to_cpu@PLT
	mov	r15, rax
	mov	rax, QWORD PTR NULL_ADDR[rip]
	cmp	rax, r15
	jne	.L6
.L25:
	mov	eax, DWORD PTR [rbx]
	add	rbp, 4
	add	eax, 1
	mov	DWORD PTR [rbx], eax
	cmp	r14, rbp
	jne	.L11
.L28:
	test	r12d, r12d
	je	.L5
	mov	edi, DWORD PTR 12[rbx]
	mov	ebp, DWORD PTR 8[rbx]
	call	ofs_of_node@PLT
	mov	esi, ebp
	mov	edi, eax
	call	f2fs_start_bidx_of_node@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	ecx, DWORD PTR 4[rsp]
	xor	edx, edx
	mov	rdi, rbx
	add	rsi, rax
	call	f2fs_update_extent_cache_range@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	edx, r12d
	mov	rdi, r13
	call	dec_valid_block_count@PLT
.L5:
	mov	eax, DWORD PTR [rsp]
	mov	esi, DWORD PTR REQ_TIME[rip]
	mov	rdi, r13
	mov	DWORD PTR [rbx], eax
	call	f2fs_update_time@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR 8[rbx]
	mov	ecx, r12d
	mov	edx, DWORD PTR [rbx]
	add	rsp, 24
	.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
	jmp	trace_f2fs_truncate_data_blocks_range@PLT
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	mov	edi, DWORD PTR 12[rbx]
	call	IS_INODE@PLT
	test	rax, rax
	jne	.L10
	mov	eax, DWORD PTR [rbx]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR FI_FIRST_BLOCK_WRITTEN[rip]
	call	clear_inode_flag@PLT
	mov	eax, DWORD PTR [rbx]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, DWORD PTR 8[rbx]
	call	f2fs_has_extra_attr@PLT
	test	rax, rax
	je	.L4
	mov	edi, DWORD PTR 8[rbx]
	call	get_extra_isize@PLT
	movsx	rbp, eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	xor	r12d, r12d
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	f2fs_truncate_data_blocks_range, .-f2fs_truncate_data_blocks_range
	.comm	REQ_TIME,4,4
	.comm	NULL_ADDR,8,8
	.comm	FI_FIRST_BLOCK_WRITTEN,4,4
	.comm	DATA_GENERIC_ENHANCE,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_file.c_f2fs_truncate_data_blocks_range.c"
	.text
	.align	2
	.global	f2fs_truncate_data_blocks_range
	.syntax unified
	.arm
	.fpu softvfp
	.type	f2fs_truncate_data_blocks_range, %function
f2fs_truncate_data_blocks_range:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	sub	sp, sp, #12
	ldr	r0, [r0, #8]
	str	r1, [sp, #4]
	bl	F2FS_I_SB
	ldr	r3, [r4]
	mov	r8, r0
	ldr	r0, [r4, #12]
	str	r3, [sp]
	bl	IS_INODE
	cmp	r0, #0
	bne	.L2
.L4:
	mov	r5, #0
.L3:
	ldr	r0, [r4, #12]
	bl	F2FS_NODE
	bl	blkaddr_in_node
	ldr	r3, [sp]
	ldr	r2, [sp, #4]
	add	r5, r3, r5
	cmp	r2, #0
	lsl	r3, r5, #2
	ble	.L12
	sub	r3, r3, #4
	mov	r5, r2
	mov	r7, #0
	ldr	r9, .L29
	ldr	fp, .L29+4
	add	r6, r0, r3
	b	.L11
.L6:
	str	r3, [r4, #16]
	mov	r0, r4
	bl	f2fs_set_data_blkaddr
	mov	r0, r10
	bl	__is_valid_data_blkaddr
	cmp	r0, #0
	beq	.L8
	mov	r1, r10
	mov	r0, r8
	ldr	r2, [fp]
	bl	f2fs_is_valid_blkaddr
	cmp	r0, #0
	beq	.L25
.L8:
	mov	r1, r10
	mov	r0, r8
	bl	f2fs_invalidate_blocks
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L27
.L9:
	add	r3, r3, #1
	subs	r5, r5, #1
	add	r7, r7, #1
	str	r3, [r4]
	beq	.L28
.L11:
	ldr	r0, [r6, #4]!
	bl	le32_to_cpu
	ldr	r3, [r9]
	mov	r10, r0
	cmp	r3, r0
	bne	.L6
.L25:
	ldr	r3, [r4]
	subs	r5, r5, #1
	add	r3, r3, #1
	str	r3, [r4]
	bne	.L11
.L28:
	cmp	r7, #0
	beq	.L5
	ldr	r0, [r4, #12]
	bl	ofs_of_node
	ldr	r1, [r4, #8]
	bl	f2fs_start_bidx_of_node
	ldr	r1, [sp]
	mov	r2, r5
	add	r1, r0, r1
	ldr	r3, [sp, #4]
	mov	r0, r4
	bl	f2fs_update_extent_cache_range
	mov	r2, r7
	mov	r0, r8
	ldr	r1, [r4, #8]
	bl	dec_valid_block_count
.L5:
	ldr	r2, [sp]
	ldr	r3, .L29+8
	str	r2, [r4]
	ldr	r1, [r3]
	mov	r0, r8
	bl	f2fs_update_time
	mov	r3, r7
	ldr	r2, [r4]
	ldr	r1, [r4, #4]
	ldr	r0, [r4, #8]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	trace_f2fs_truncate_data_blocks_range
.L27:
	ldr	r0, [r4, #12]
	bl	IS_INODE
	cmp	r0, #0
	bne	.L10
.L24:
	ldr	r3, [r4]
	b	.L9
.L10:
	ldr	r3, .L29+12
	ldr	r0, [r4, #8]
	ldr	r1, [r3]
	bl	clear_inode_flag
	b	.L24
.L2:
	ldr	r0, [r4, #8]
	bl	f2fs_has_extra_attr
	cmp	r0, #0
	beq	.L4
	ldr	r0, [r4, #8]
	bl	get_extra_isize
	mov	r5, r0
	b	.L3
.L12:
	mov	r7, #0
	b	.L5
.L30:
	.align	2
.L29:
	.word	NULL_ADDR
	.word	DATA_GENERIC_ENHANCE
	.word	REQ_TIME
	.word	FI_FIRST_BLOCK_WRITTEN
	.size	f2fs_truncate_data_blocks_range, .-f2fs_truncate_data_blocks_range
	.comm	REQ_TIME,4,4
	.comm	NULL_ADDR,4,4
	.comm	FI_FIRST_BLOCK_WRITTEN,4,4
	.comm	DATA_GENERIC_ENHANCE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
