	.file	"extr_disk-io.c_btrfs_replay_log.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"log replay required on RO media"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"failed to read log tree"
.LC2:
	.string	"Failed to recover log tree"
	.text
	.p2align 4
	.type	btrfs_replay_log, @function
btrfs_replay_log:
.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
	mov	r12, rsi
	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 16[rdi]
	mov	rdi, r14
	call	btrfs_super_log_root@PLT
	mov	rdi, r14
	mov	r13d, eax
	call	btrfs_super_log_root_level@PLT
	cmp	QWORD PTR [r12], 0
	je	.L13
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	rdi, rbp
	mov	r14d, eax
	call	btrfs_alloc_root@PLT
	mov	r12, rax
	test	rax, rax
	je	.L14
	mov	edx, DWORD PTR BTRFS_TREE_LOG_OBJECTID[rip]
	mov	rsi, rbp
	mov	rdi, rax
	call	__setup_root@PLT
	mov	rax, QWORD PTR 8[rbp]
	xor	r8d, r8d
	mov	rdi, rbp
	mov	ecx, r14d
	mov	esi, r13d
	lea	rdx, 1[rax]
	call	read_tree_block@PLT
	mov	DWORD PTR [r12], eax
	mov	edi, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L15
	mov	edi, DWORD PTR [r12]
	call	extent_buffer_uptodate@PLT
	test	eax, eax
	je	.L16
	mov	rdi, r12
	call	btrfs_recover_log_trees@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L17
	mov	edi, DWORD PTR 0[rbp]
	call	sb_rdonly@PLT
	test	rax, rax
	je	.L1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	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	btrfs_commit_super@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	call	btrfs_warn@PLT
	mov	r13d, DWORD PTR EIO[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	r13d
	mov	eax, r13d
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	btrfs_err@PLT
	mov	edi, DWORD PTR [r12]
	call	free_extent_buffer@PLT
	mov	rdi, r12
	call	kfree@PLT
	mov	r13d, DWORD PTR EIO[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	r13d
	mov	eax, r13d
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	btrfs_warn@PLT
	mov	edi, DWORD PTR [r12]
	call	PTR_ERR@PLT
	mov	rdi, r12
	mov	r13d, eax
	call	kfree@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	lea	rdx, .LC2[rip]
	mov	esi, eax
	mov	rdi, rbp
	call	btrfs_handle_fs_error@PLT
	mov	edi, DWORD PTR [r12]
	call	free_extent_buffer@PLT
	mov	rdi, r12
	call	kfree@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	btrfs_replay_log, .-btrfs_replay_log
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.comm	BTRFS_TREE_LOG_OBJECTID,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_replay_log.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"log replay required on RO media\000"
	.align	2
.LC1:
	.ascii	"failed to read log tree\000"
	.align	2
.LC2:
	.ascii	"Failed to recover log tree\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	btrfs_replay_log, %function
btrfs_replay_log:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r6, [r0, #8]
	sub	sp, sp, #12
	mov	r4, r0
	mov	r0, r6
	mov	r5, r1
	bl	btrfs_super_log_root
	mov	r7, r0
	mov	r0, r6
	bl	btrfs_super_log_root_level
	ldr	r2, [r5]
	cmp	r2, #0
	beq	.L13
	ldr	r3, .L18
	mov	r5, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	btrfs_alloc_root
	subs	r6, r0, #0
	beq	.L14
	ldr	r3, .L18+4
	mov	r1, r4
	ldr	r2, [r3]
	bl	__setup_root
	mov	r0, #0
	ldr	r2, [r4, #4]
	mov	r3, r5
	mov	r1, r7
	str	r0, [sp]
	add	r2, r2, #1
	mov	r0, r4
	bl	read_tree_block
	str	r0, [r6]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L15
	ldr	r0, [r6]
	bl	extent_buffer_uptodate
	cmp	r0, #0
	beq	.L16
	mov	r0, r6
	bl	btrfs_recover_log_trees
	subs	r5, r0, #0
	bne	.L17
	ldr	r0, [r4]
	bl	sb_rdonly
	subs	r5, r0, #0
	beq	.L1
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	btrfs_commit_super
.L14:
	ldr	r3, .L18+8
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L13:
	mov	r0, r4
	ldr	r1, .L18+12
	bl	btrfs_warn
	ldr	r3, .L18+16
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L16:
	ldr	r1, .L18+20
	mov	r0, r4
	bl	btrfs_err
	ldr	r0, [r6]
	bl	free_extent_buffer
	mov	r0, r6
	bl	kfree
	ldr	r3, .L18+16
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L15:
	ldr	r1, .L18+20
	mov	r0, r4
	bl	btrfs_warn
	ldr	r0, [r6]
	bl	PTR_ERR
	mov	r5, r0
	mov	r0, r6
	bl	kfree
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L17:
	mov	r1, r5
	ldr	r2, .L18+24
	mov	r0, r4
	bl	btrfs_handle_fs_error
	ldr	r0, [r6]
	bl	free_extent_buffer
	mov	r0, r6
	bl	kfree
	b	.L1
.L19:
	.align	2
.L18:
	.word	GFP_KERNEL
	.word	BTRFS_TREE_LOG_OBJECTID
	.word	ENOMEM
	.word	.LC0
	.word	EIO
	.word	.LC1
	.word	.LC2
	.size	btrfs_replay_log, .-btrfs_replay_log
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.comm	BTRFS_TREE_LOG_OBJECTID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
