	.file	"extr_inode.c_ext4_free_branches.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Read failure, inode=%lu, block=%llu"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"free child branches"
.LC2:
	.string	"get_write_access"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"call ext4_handle_dirty_metadata"
	.section	.rodata.str1.1
.LC4:
	.string	"free data blocks"
	.text
	.p2align 4
	.type	ext4_free_branches, @function
ext4_free_branches:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, r8
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	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
	mov	ebx, r9d
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	call	ext4_handle_is_aborted@PLT
	test	rax, rax
	jne	.L1
	mov	DWORD PTR 8[rsp], ebx
	test	ebx, ebx
	je	.L4
	mov	edi, DWORD PTR 4[r12]
	lea	rbx, -8[r14]
	call	EXT4_ADDR_PER_BLOCK@PLT
	cmp	r13, rbx
	ja	.L1
	cdqe
	mov	edx, DWORD PTR 8[rsp]
	sal	rax, 3
	mov	QWORD PTR 16[rsp], rax
	mov	rax, rbx
	sub	edx, 1
	sub	rax, r13
	mov	DWORD PTR 28[rsp], edx
	and	rax, -8
	neg	rax
	lea	rax, -16[r14+rax]
	mov	QWORD PTR 8[rsp], rax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r8d, DWORD PTR EXT4_FREE_BLOCKS_METADATA[rip]
	mov	edx, r14d
	mov	rsi, r12
	mov	rdi, rbp
	mov	ecx, 1
	call	ext4_free_blocks@PLT
	test	r15, r15
	je	.L7
	lea	rsi, .LC2[rip]
	mov	rdi, r15
	call	BUFFER_TRACE@PLT
	mov	rsi, r15
	mov	rdi, rbp
	call	ext4_journal_get_write_access@PLT
	test	eax, eax
	je	.L21
	.p2align 4,,10
	.p2align 3
.L7:
	sub	rbx, 8
	cmp	rbx, QWORD PTR 8[rsp]
	je	.L1
.L11:
	mov	rdi, QWORD PTR [rbx]
	call	le32_to_cpu@PLT
	mov	r14d, eax
	test	eax, eax
	je	.L7
	mov	edi, DWORD PTR 4[r12]
	mov	esi, eax
	call	sb_bread@PLT
	mov	r13, rax
	test	rax, rax
	je	.L22
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	BUFFER_TRACE@PLT
	mov	rcx, QWORD PTR 8[r13]
	mov	rdx, r13
	mov	rsi, r12
	mov	rax, QWORD PTR 16[rsp]
	mov	r9d, DWORD PTR 28[rsp]
	mov	rdi, rbp
	lea	r8, [rcx+rax]
	call	ext4_free_branches
	mov	r8d, DWORD PTR 0[r13]
	mov	rdi, rbp
	mov	rcx, r13
	mov	rdx, r12
	mov	esi, 1
	call	ext4_forget@PLT
	mov	rdi, rbp
	call	ext4_handle_is_aborted@PLT
	test	rax, rax
	jne	.L1
	mov	rsi, r12
	mov	rdi, rbp
	call	try_to_extend_transaction@PLT
	test	rax, rax
	je	.L9
	mov	rsi, r12
	mov	rdi, rbp
	call	ext4_mark_inode_dirty@PLT
	mov	rdi, r12
	call	blocks_for_truncate@PLT
	mov	rsi, r12
	mov	rdi, rbp
	mov	edx, eax
	call	ext4_truncate_restart_trans@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L1:
	add	rsp, 40
	.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
.L4:
	.cfi_restore_state
	mov	rdi, r15
	lea	rsi, .LC4[rip]
	call	BUFFER_TRACE@PLT
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	r8, r14
	mov	rcx, r13
	pop	rbx
	.cfi_def_cfa_offset 48
	mov	rdx, r15
	mov	rsi, r12
	mov	rdi, rbp
	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	ext4_free_data@PLT
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[r12]
	mov	edx, DWORD PTR [r12]
	mov	ecx, r14d
	lea	rsi, .LC0[rip]
	call	ext4_error@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L21:
	mov	QWORD PTR [rbx], 0
	mov	rdi, r15
	lea	rsi, .LC3[rip]
	call	BUFFER_TRACE@PLT
	mov	rdx, r15
	mov	rsi, r12
	mov	rdi, rbp
	call	ext4_handle_dirty_metadata@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	ext4_free_branches, .-ext4_free_branches
	.comm	EXT4_FREE_BLOCKS_METADATA,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_inode.c_ext4_free_branches.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Read failure, inode=%lu, block=%llu\000"
	.align	2
.LC1:
	.ascii	"free child branches\000"
	.align	2
.LC2:
	.ascii	"get_write_access\000"
	.align	2
.LC3:
	.ascii	"call ext4_handle_dirty_metadata\000"
	.align	2
.LC4:
	.ascii	"free data blocks\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ext4_free_branches, %function
ext4_free_branches:
	@ args = 8, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #20
	mov	r5, r1
	mov	r8, r2
	mov	r10, r3
	mov	r6, r0
	ldr	r7, [sp, #56]
	ldr	r4, [sp, #60]
	bl	ext4_handle_is_aborted
	cmp	r0, #0
	bne	.L1
	cmp	r4, #0
	beq	.L4
	ldr	r0, [r5, #4]
	sub	r9, r7, #4
	bl	EXT4_ADDR_PER_BLOCK
	cmp	r10, r9
	bhi	.L1
	sub	r3, r9, r10
	bic	r3, r3, #3
	sub	r9, r9, r3
	sub	r3, r4, #1
	str	r3, [sp, #12]
	lsl	r3, r0, #2
	ldr	r10, .L23
	str	r3, [sp, #8]
	b	.L11
.L9:
	ldr	r3, .L23+4
	mov	r2, r4
	ldr	r3, [r3]
	mov	r1, r5
	str	r3, [sp]
	mov	r0, r6
	mov	r3, #1
	bl	ext4_free_blocks
	cmp	r8, #0
	beq	.L7
	ldr	r1, .L23+8
	mov	r0, r8
	bl	BUFFER_TRACE
	mov	r1, r8
	mov	r0, r6
	bl	ext4_journal_get_write_access
	cmp	r0, #0
	beq	.L21
.L7:
	cmp	r7, r9
	beq	.L1
.L11:
	ldr	r0, [r7, #-4]!
	bl	le32_to_cpu
	subs	r4, r0, #0
	beq	.L7
	mov	r1, r4
	ldr	r0, [r5, #4]
	bl	sb_bread
	subs	fp, r0, #0
	beq	.L22
	mov	r1, r10
	bl	BUFFER_TRACE
	ldr	r3, [fp, #4]
	ldr	r1, [sp, #8]
	ldr	r0, [sp, #12]
	add	r1, r3, r1
	mov	r2, fp
	str	r0, [sp, #4]
	str	r1, [sp]
	mov	r0, r6
	mov	r1, r5
	bl	ext4_free_branches
	ldr	r1, [fp]
	mov	r3, fp
	mov	r2, r5
	str	r1, [sp]
	mov	r0, r6
	mov	r1, #1
	bl	ext4_forget
	mov	r0, r6
	bl	ext4_handle_is_aborted
	cmp	r0, #0
	bne	.L1
	mov	r1, r5
	mov	r0, r6
	bl	try_to_extend_transaction
	cmp	r0, #0
	beq	.L9
	mov	r1, r5
	mov	r0, r6
	bl	ext4_mark_inode_dirty
	mov	r0, r5
	bl	blocks_for_truncate
	mov	r1, r5
	mov	r2, r0
	mov	r0, r6
	bl	ext4_truncate_restart_trans
	b	.L9
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	mov	r0, r8
	ldr	r1, .L23+12
	bl	BUFFER_TRACE
	mov	r3, r10
	mov	r2, r8
	mov	r1, r5
	mov	r0, r6
	str	r7, [sp, #56]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	ext4_free_data
.L22:
	mov	r3, r4
	ldr	r2, [r5]
	ldr	r1, .L23+16
	ldr	r0, [r5, #4]
	bl	ext4_error
	b	.L7
.L21:
	str	r0, [r7]
	ldr	r1, .L23+20
	mov	r0, r8
	bl	BUFFER_TRACE
	mov	r2, r8
	mov	r1, r5
	mov	r0, r6
	bl	ext4_handle_dirty_metadata
	b	.L7
.L24:
	.align	2
.L23:
	.word	.LC1
	.word	EXT4_FREE_BLOCKS_METADATA
	.word	.LC2
	.word	.LC4
	.word	.LC0
	.word	.LC3
	.size	ext4_free_branches, .-ext4_free_branches
	.comm	EXT4_FREE_BLOCKS_METADATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
