	.file	"extr_extents.c_ext4_ext_truncate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ext4_ext_truncate
	.type	ext4_ext_truncate, @function
ext4_ext_truncate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r14, QWORD PTR 32[rdi]
	mov	r13, QWORD PTR 24[rdi]
	call	flush_aio_dio_completed_IO@PLT
	mov	rdi, rbp
	call	ext4_writepage_trans_blocks@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	ext4_journal_start@PLT
	mov	rdi, rax
	mov	r12, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L1
	mov	eax, DWORD PTR 0[r13]
	mov	edx, DWORD PTR 0[rbp]
	sub	eax, 1
	test	eax, edx
	jne	.L16
	mov	rsi, rbp
	mov	rdi, r12
	call	ext4_orphan_add@PLT
	test	rax, rax
	je	.L17
.L5:
	mov	rdi, rbp
	call	EXT4_I@PLT
	lea	rdi, 4[rax]
	call	up_write@PLT
	cmp	QWORD PTR 16[rbp], 0
	jne	.L18
.L7:
	mov	rdi, rbp
	call	ext4_current_time@PLT
	mov	rdi, r12
	mov	rsi, rbp
	mov	DWORD PTR 4[rbp], eax
	mov	DWORD PTR 8[rbp], eax
	call	ext4_mark_inode_dirty@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	ext4_journal_stop@PLT
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	rdi, rbp
	call	EXT4_I@PLT
	lea	rdi, 4[rax]
	call	down_write@PLT
	mov	rdi, rbp
	call	ext4_ext_invalidate_cache@PLT
	mov	rdi, rbp
	call	ext4_discard_preallocations@PLT
	mov	rdi, rbp
	call	EXT4_I@PLT
	mov	edx, DWORD PTR 0[rbp]
	mov	rsi, rbp
	mov	rdi, r12
	mov	DWORD PTR [rax], edx
	call	ext4_mark_inode_dirty@PLT
	mov	rdi, r13
	mov	r14d, DWORD PTR 0[r13]
	add	r14d, DWORD PTR 0[rbp]
	call	EXT4_BLOCK_SIZE_BITS@PLT
	mov	rcx, QWORD PTR EXT_MAX_BLOCKS[rip]
	sub	r14d, 1
	mov	rdi, rbp
	mov	esi, r14d
	lea	rdx, -1[rcx]
	mov	ecx, eax
	sar	esi, cl
	call	ext4_ext_remove_space@PLT
	mov	rdi, rbp
	call	IS_SYNC@PLT
	test	rax, rax
	je	.L5
	mov	rdi, r12
	call	ext4_handle_sync@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rsi, r14
	mov	rdi, r12
	call	ext4_block_truncate_page@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	ext4_orphan_add@PLT
	test	rax, rax
	jne	.L5
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rsi, rbp
	mov	rdi, r12
	call	ext4_orphan_del@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ext4_ext_truncate, .-ext4_ext_truncate
	.comm	EXT_MAX_BLOCKS,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_extents.c_ext4_ext_truncate.c"
	.text
	.align	2
	.global	ext4_ext_truncate
	.syntax unified
	.arm
	.fpu softvfp
	.type	ext4_ext_truncate, %function
ext4_ext_truncate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r7, [r0, #20]
	ldr	r6, [r0, #16]
	bl	flush_aio_dio_completed_IO
	mov	r0, r4
	bl	ext4_writepage_trans_blocks
	mov	r1, r0
	mov	r0, r4
	bl	ext4_journal_start
	mov	r5, r0
	bl	IS_ERR
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	r3, [r6]
	ldr	r2, [r4]
	sub	r3, r3, #1
	tst	r3, r2
	bne	.L19
.L3:
	mov	r1, r4
	mov	r0, r5
	bl	ext4_orphan_add
	cmp	r0, #0
	beq	.L20
.L5:
	mov	r0, r4
	bl	EXT4_I
	add	r0, r0, #4
	bl	up_write
	ldr	r3, [r4, #12]
	cmp	r3, #0
	bne	.L21
.L7:
	mov	r0, r4
	bl	ext4_current_time
	mov	r1, r4
	str	r0, [r4, #4]
	str	r0, [r4, #8]
	mov	r0, r5
	bl	ext4_mark_inode_dirty
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	ext4_journal_stop
.L20:
	mov	r0, r4
	bl	EXT4_I
	add	r0, r0, #4
	bl	down_write
	mov	r0, r4
	bl	ext4_ext_invalidate_cache
	mov	r0, r4
	bl	ext4_discard_preallocations
	mov	r0, r4
	bl	EXT4_I
	ldr	r3, [r4]
	mov	r1, r4
	str	r3, [r0]
	mov	r0, r5
	bl	ext4_mark_inode_dirty
	ldr	r1, [r4]
	ldr	r3, [r6]
	mov	r0, r6
	add	r6, r1, r3
	bl	EXT4_BLOCK_SIZE_BITS
	ldr	r3, .L22
	sub	r6, r6, #1
	ldr	r2, [r3]
	asr	r1, r6, r0
	sub	r2, r2, #1
	mov	r0, r4
	bl	ext4_ext_remove_space
	mov	r0, r4
	bl	IS_SYNC
	cmp	r0, #0
	beq	.L5
	mov	r0, r5
	bl	ext4_handle_sync
	b	.L5
.L19:
	mov	r1, r7
	mov	r0, r5
	bl	ext4_block_truncate_page
	b	.L3
.L21:
	mov	r1, r4
	mov	r0, r5
	bl	ext4_orphan_del
	b	.L7
.L23:
	.align	2
.L22:
	.word	EXT_MAX_BLOCKS
	.size	ext4_ext_truncate, .-ext4_ext_truncate
	.comm	EXT_MAX_BLOCKS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
