	.file	"extr_free-space-tree.c_btrfs_clear_free_space_tree.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	btrfs_clear_free_space_tree
	.type	btrfs_clear_free_space_tree, @function
btrfs_clear_free_space_tree:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	esi, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13, QWORD PTR [rdi]
	mov	rdi, QWORD PTR 8[rdi]
	call	btrfs_start_transaction@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L6
	mov	esi, DWORD PTR FREE_SPACE_TREE[rip]
	mov	rdi, rbx
	call	btrfs_clear_fs_compat_ro@PLT
	mov	esi, DWORD PTR FREE_SPACE_TREE_VALID[rip]
	mov	rdi, rbx
	call	btrfs_clear_fs_compat_ro@PLT
	mov	QWORD PTR [rbx], 0
	mov	rsi, r13
	mov	rdi, rbp
	call	clear_free_space_tree@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L7
.L3:
	mov	esi, r12d
	mov	rdi, rbp
	call	btrfs_abort_transaction@PLT
	mov	rdi, rbp
	call	btrfs_end_transaction@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	lea	rsi, 12[r13]
	mov	rdi, rbp
	call	btrfs_del_root@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L3
	lea	rdi, 8[r13]
	call	list_del@PLT
	mov	edi, DWORD PTR 4[r13]
	call	btrfs_tree_lock@PLT
	mov	edi, DWORD PTR 4[r13]
	call	btrfs_clean_tree_block@PLT
	mov	edi, DWORD PTR 4[r13]
	call	btrfs_tree_unlock@PLT
	mov	edx, DWORD PTR 4[r13]
	mov	rsi, r13
	xor	ecx, ecx
	mov	r8d, 1
	mov	rdi, rbp
	call	btrfs_free_tree_block@PLT
	mov	edi, DWORD PTR 4[r13]
	call	free_extent_buffer@PLT
	mov	edi, DWORD PTR 0[r13]
	call	free_extent_buffer@PLT
	mov	rdi, r13
	call	kfree@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	btrfs_commit_transaction@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.cfi_endproc
.LFE0:
	.size	btrfs_clear_free_space_tree, .-btrfs_clear_free_space_tree
	.comm	FREE_SPACE_TREE_VALID,4,4
	.comm	FREE_SPACE_TREE,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_free-space-tree.c_btrfs_clear_free_space_tree.c"
	.text
	.align	2
	.global	btrfs_clear_free_space_tree
	.syntax unified
	.arm
	.fpu softvfp
	.type	btrfs_clear_free_space_tree, %function
btrfs_clear_free_space_tree:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r0
	mov	r1, #0
	sub	sp, sp, #12
	ldr	r0, [r0, #4]
	ldr	r7, [r4]
	bl	btrfs_start_transaction
	mov	r5, r0
	bl	IS_ERR
	subs	r6, r0, #0
	bne	.L6
	ldr	r3, .L8
	mov	r0, r4
	ldr	r1, [r3]
	bl	btrfs_clear_fs_compat_ro
	ldr	r3, .L8+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	btrfs_clear_fs_compat_ro
	str	r6, [r4]
	mov	r1, r7
	mov	r0, r5
	bl	clear_free_space_tree
	subs	r4, r0, #0
	beq	.L7
.L3:
	mov	r1, r4
	mov	r0, r5
	bl	btrfs_abort_transaction
	mov	r0, r5
	bl	btrfs_end_transaction
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L7:
	mov	r0, r5
	add	r1, r7, #12
	bl	btrfs_del_root
	subs	r4, r0, #0
	bne	.L3
	add	r0, r7, #8
	bl	list_del
	ldr	r0, [r7, #4]
	bl	btrfs_tree_lock
	ldr	r0, [r7, #4]
	bl	btrfs_clean_tree_block
	ldr	r0, [r7, #4]
	bl	btrfs_tree_unlock
	mov	r1, #1
	ldr	r2, [r7, #4]
	mov	r3, r4
	str	r1, [sp]
	mov	r0, r5
	mov	r1, r7
	bl	btrfs_free_tree_block
	ldr	r0, [r7, #4]
	bl	free_extent_buffer
	ldr	r0, [r7]
	bl	free_extent_buffer
	mov	r0, r7
	bl	kfree
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	btrfs_commit_transaction
.L6:
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	PTR_ERR
.L9:
	.align	2
.L8:
	.word	FREE_SPACE_TREE
	.word	FREE_SPACE_TREE_VALID
	.size	btrfs_clear_free_space_tree, .-btrfs_clear_free_space_tree
	.comm	FREE_SPACE_TREE_VALID,4,4
	.comm	FREE_SPACE_TREE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
