	.file	"extr_recovery.c_nilfs_salvage_orphan_logs.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"error %d loading the latest checkpoint"
	.align 8
.LC1:
	.string	"error %d preparing segment for recovery"
	.align 8
.LC2:
	.string	"error %d writing segment for recovery"
	.text
	.p2align 4
	.globl	nilfs_salvage_orphan_logs
	.type	nilfs_salvage_orphan_logs, @function
nilfs_salvage_orphan_logs:
.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
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR [rdx], 0
	je	.L1
	cmp	QWORD PTR 8[rdx], 0
	mov	rbp, rdx
	jne	.L12
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L12:
	.cfi_restore_state
	mov	r14, rsi
	mov	esi, DWORD PTR 24[rdx]
	mov	r13, rdi
	mov	rcx, rsp
	mov	rdi, r14
	mov	edx, 1
	call	nilfs_attach_checkpoint@PLT
	mov	edi, eax
	mov	r12d, eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L14
	mov	rdx, QWORD PTR [rsp]
	mov	rdi, r13
	mov	rcx, rbp
	mov	rsi, r14
	call	nilfs_do_roll_forward@PLT
	mov	edi, eax
	mov	r12d, eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L4
	mov	rax, QWORD PTR NILFS_RECOVERY_ROLLFORWARD_DONE[rip]
	cmp	QWORD PTR 16[rbp], rax
	je	.L15
.L4:
	mov	rdi, QWORD PTR [rsp]
	call	nilfs_put_root@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	esi, DWORD PTR KERN_ERR[rip]
	mov	ecx, r12d
	lea	rdx, .LC0[rip]
	mov	rdi, r14
	call	nilfs_msg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, r13
	mov	rdx, rbp
	mov	rsi, r14
	call	nilfs_prepare_segment_for_recovery@PLT
	mov	edi, eax
	mov	r12d, eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L16
	mov	rsi, QWORD PTR [rsp]
	mov	rdi, r14
	call	nilfs_attach_log_writer@PLT
	mov	edi, eax
	mov	r12d, eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L4
	mov	rdi, r13
	call	set_nilfs_discontinued@PLT
	mov	rdi, r14
	call	nilfs_construct_segment@PLT
	mov	rdi, r14
	mov	r12d, eax
	call	nilfs_detach_log_writer@PLT
	mov	edi, r12d
	call	unlikely@PLT
	test	rax, rax
	jne	.L17
	mov	rsi, rbp
	mov	rdi, r13
	call	nilfs_finish_roll_forward@PLT
	jmp	.L4
.L16:
	mov	esi, DWORD PTR KERN_ERR[rip]
	mov	ecx, r12d
	lea	rdx, .LC1[rip]
	mov	rdi, r14
	call	nilfs_msg@PLT
	jmp	.L4
.L17:
	mov	esi, DWORD PTR KERN_ERR[rip]
	mov	ecx, r12d
	lea	rdx, .LC2[rip]
	mov	rdi, r14
	call	nilfs_msg@PLT
	jmp	.L4
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	nilfs_salvage_orphan_logs, .-nilfs_salvage_orphan_logs
	.comm	NILFS_RECOVERY_ROLLFORWARD_DONE,8,8
	.comm	KERN_ERR,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_recovery.c_nilfs_salvage_orphan_logs.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"error %d loading the latest checkpoint\000"
	.align	2
.LC1:
	.ascii	"error %d preparing segment for recovery\000"
	.align	2
.LC2:
	.ascii	"error %d writing segment for recovery\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	nilfs_salvage_orphan_logs
	.syntax unified
	.arm
	.fpu softvfp
	.type	nilfs_salvage_orphan_logs, %function
nilfs_salvage_orphan_logs:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r4, [r2]
	ldr	r3, .L22
	sub	sp, sp, #12
	cmp	r4, #0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	beq	.L1
	ldr	r4, [r2, #4]
	mov	r5, r2
	cmp	r4, #0
	bne	.L16
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L16:
	mov	r7, r1
	mov	r3, sp
	mov	r2, #1
	ldr	r1, [r5, #12]
	mov	r6, r0
	mov	r0, r7
	bl	nilfs_attach_checkpoint
	mov	r4, r0
	bl	unlikely
	cmp	r0, #0
	bne	.L18
	mov	r3, r5
	mov	r1, r7
	ldr	r2, [sp]
	mov	r0, r6
	bl	nilfs_do_roll_forward
	mov	r4, r0
	bl	unlikely
	cmp	r0, #0
	bne	.L4
	ldr	r3, .L22+4
	ldr	r2, [r5, #8]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L19
.L4:
	ldr	r0, [sp]
	bl	nilfs_put_root
	b	.L1
.L18:
	ldr	r3, .L22+8
	mov	r0, r7
	ldr	r1, [r3]
	ldr	r2, .L22+12
	mov	r3, r4
	bl	nilfs_msg
	b	.L1
.L19:
	mov	r2, r5
	mov	r1, r7
	mov	r0, r6
	bl	nilfs_prepare_segment_for_recovery
	mov	r4, r0
	bl	unlikely
	cmp	r0, #0
	bne	.L20
	ldr	r1, [sp]
	mov	r0, r7
	bl	nilfs_attach_log_writer
	mov	r4, r0
	bl	unlikely
	cmp	r0, #0
	bne	.L4
	mov	r0, r6
	bl	set_nilfs_discontinued
	mov	r0, r7
	bl	nilfs_construct_segment
	mov	r4, r0
	mov	r0, r7
	bl	nilfs_detach_log_writer
	mov	r0, r4
	bl	unlikely
	cmp	r0, #0
	bne	.L21
	mov	r1, r5
	mov	r0, r6
	bl	nilfs_finish_roll_forward
	b	.L4
.L20:
	ldr	r3, .L22+8
	mov	r0, r7
	ldr	r1, [r3]
	ldr	r2, .L22+16
	mov	r3, r4
	bl	nilfs_msg
	b	.L4
.L21:
	ldr	r3, .L22+8
	mov	r0, r7
	ldr	r1, [r3]
	ldr	r2, .L22+20
	mov	r3, r4
	bl	nilfs_msg
	b	.L4
.L17:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC3
	.word	NILFS_RECOVERY_ROLLFORWARD_DONE
	.word	KERN_ERR
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	nilfs_salvage_orphan_logs, .-nilfs_salvage_orphan_logs
	.comm	NILFS_RECOVERY_ROLLFORWARD_DONE,4,4
	.comm	KERN_ERR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
