	.file	"extr_disk-io.c_btrfs_drop_and_free_fs_root.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	btrfs_drop_and_free_fs_root
	.type	btrfs_drop_and_free_fs_root, @function
btrfs_drop_and_free_fs_root:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	r13, 8[rdi]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	mov	rdi, r13
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	call	spin_lock@PLT
	mov	rsi, QWORD PTR 32[rbp]
	lea	rdi, 12[r12]
	call	radix_tree_delete@PLT
	mov	rdi, r13
	call	spin_unlock@PLT
	lea	rdi, 24[rbp]
	call	btrfs_root_refs@PLT
	test	rax, rax
	je	.L19
.L2:
	mov	edi, DWORD PTR BTRFS_FS_STATE_ERROR[rip]
	mov	rsi, r12
	call	test_bit@PLT
	test	rax, rax
	jne	.L20
.L4:
	mov	rdi, QWORD PTR 8[rbp]
	test	rdi, rdi
	jne	.L21
.L6:
	mov	rdi, QWORD PTR 0[rbp]
	test	rdi, rdi
	jne	.L22
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	btrfs_free_fs_root@PLT
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	lea	rdi, 4[r12]
	call	synchronize_srcu@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L22:
	call	__btrfs_remove_free_space_cache@PLT
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	btrfs_free_fs_root@PLT
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	call	__btrfs_remove_free_space_cache@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rsi, rbp
	xor	edi, edi
	call	btrfs_free_log@PLT
	mov	rax, QWORD PTR 16[rbp]
	test	rax, rax
	je	.L4
	mov	edi, DWORD PTR 4[rax]
	call	free_extent_buffer@PLT
	mov	rax, QWORD PTR 16[rbp]
	mov	edi, DWORD PTR [rax]
	call	free_extent_buffer@PLT
	mov	rdi, QWORD PTR 16[rbp]
	call	btrfs_put_fs_root@PLT
	mov	QWORD PTR 16[rbp], 0
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	btrfs_drop_and_free_fs_root, .-btrfs_drop_and_free_fs_root
	.comm	BTRFS_FS_STATE_ERROR,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_disk-io.c_btrfs_drop_and_free_fs_root.c"
	.text
	.align	2
	.global	btrfs_drop_and_free_fs_root
	.syntax unified
	.arm
	.fpu softvfp
	.type	btrfs_drop_and_free_fs_root, %function
btrfs_drop_and_free_fs_root:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	mov	r5, r0
	add	r6, r0, #8
	mov	r0, r6
	bl	spin_lock
	ldr	r1, [r4, #16]
	add	r0, r5, #12
	bl	radix_tree_delete
	mov	r0, r6
	bl	spin_unlock
	add	r0, r4, #12
	bl	btrfs_root_refs
	cmp	r0, #0
	beq	.L19
.L2:
	ldr	r3, .L23
	mov	r1, r5
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	bne	.L20
.L4:
	ldr	r0, [r4, #4]
	cmp	r0, #0
	bne	.L21
.L6:
	ldr	r0, [r4]
	cmp	r0, #0
	bne	.L22
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	btrfs_free_fs_root
.L19:
	add	r0, r5, #4
	bl	synchronize_srcu
	b	.L2
.L22:
	bl	__btrfs_remove_free_space_cache
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	btrfs_free_fs_root
.L21:
	bl	__btrfs_remove_free_space_cache
	b	.L6
.L20:
	mov	r1, r4
	mov	r0, #0
	bl	btrfs_free_log
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L4
	ldr	r0, [r3, #4]
	bl	free_extent_buffer
	ldr	r3, [r4, #8]
	ldr	r0, [r3]
	bl	free_extent_buffer
	ldr	r0, [r4, #8]
	bl	btrfs_put_fs_root
	mov	r3, #0
	str	r3, [r4, #8]
	b	.L4
.L24:
	.align	2
.L23:
	.word	BTRFS_FS_STATE_ERROR
	.size	btrfs_drop_and_free_fs_root, .-btrfs_drop_and_free_fs_root
	.comm	BTRFS_FS_STATE_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
