	.file	"extr_alloc.c_ocfs2_complete_truncate_log_recovery.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Asked to recover my own truncate log!\n"
	.text
	.p2align 4
	.globl	ocfs2_complete_truncate_log_recovery
	.type	ocfs2_complete_truncate_log_recovery, @function
ocfs2_complete_truncate_log_recovery:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR 8[rdi]
	mov	rdi, rax
	mov	QWORD PTR 8[rsp], rax
	call	OCFS2_I@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	rbp, QWORD PTR [rax]
	call	le64_to_cpu@PLT
	cmp	rbp, rax
	je	.L17
	mov	edi, DWORD PTR 16[r13]
	call	le16_to_cpu@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	ebp, eax
	call	le64_to_cpu@PLT
	mov	esi, ebp
	mov	rdi, rax
	call	trace_ocfs2_complete_truncate_log_recovery@PLT
	mov	rdi, QWORD PTR 8[rsp]
	call	inode_lock@PLT
	test	ebp, ebp
	je	.L9
	lea	eax, -1[rbp]
	xor	ebp, ebp
	lea	r14, 8[0+rax*8]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 8[r13]
	mov	edi, DWORD PTR 4[rax+rbp]
	call	le32_to_cpu@PLT
	mov	r12d, eax
	mov	rax, QWORD PTR 8[r13]
	mov	edi, DWORD PTR [rax+rbp]
	call	le32_to_cpu@PLT
	mov	edi, DWORD PTR [rbx]
	mov	esi, eax
	call	ocfs2_clusters_to_blocks@PLT
	mov	ecx, r12d
	mov	rsi, r15
	mov	rdi, rbx
	mov	edx, eax
	call	ocfs2_truncate_log_append@PLT
	mov	rsi, r15
	mov	rdi, rbx
	mov	r12d, eax
	call	ocfs2_commit_trans@PLT
	test	r12d, r12d
	js	.L15
	add	rbp, 8
	cmp	rbp, r14
	je	.L4
.L8:
	mov	rdi, rbx
	call	ocfs2_truncate_log_needs_flush@PLT
	test	rax, rax
	je	.L5
	mov	rdi, rbx
	call	__ocfs2_flush_truncate_log@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L15
.L5:
	mov	esi, DWORD PTR OCFS2_TRUNCATE_LOG_UPDATE[rip]
	mov	rdi, rbx
	call	ocfs2_start_trans@PLT
	mov	rdi, rax
	mov	r15, rax
	call	IS_ERR@PLT
	test	rax, rax
	je	.L6
	mov	rdi, r15
	call	PTR_ERR@PLT
	mov	edi, eax
	mov	r12d, eax
	call	mlog_errno@PLT
.L4:
	mov	rdi, QWORD PTR 8[rsp]
	call	inode_unlock@PLT
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L15:
	.cfi_restore_state
	mov	edi, r12d
	call	mlog_errno@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edi, DWORD PTR ML_ERROR[rip]
	lea	rsi, .LC0[rip]
	call	mlog@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
.L9:
	xor	r12d, r12d
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	ocfs2_complete_truncate_log_recovery, .-ocfs2_complete_truncate_log_recovery
	.comm	OCFS2_TRUNCATE_LOG_UPDATE,4,4
	.comm	ML_ERROR,4,4
	.comm	EINVAL,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_alloc.c_ocfs2_complete_truncate_log_recovery.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Asked to recover my own truncate log!\012\000"
	.text
	.align	2
	.global	ocfs2_complete_truncate_log_recovery
	.syntax unified
	.arm
	.fpu softvfp
	.type	ocfs2_complete_truncate_log_recovery, %function
ocfs2_complete_truncate_log_recovery:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	fp, [r0, #4]
	mov	r5, r0
	mov	r0, fp
	mov	r8, r1
	bl	OCFS2_I
	mov	r3, r0
	ldr	r0, [r8]
	ldr	r4, [r3]
	bl	le64_to_cpu
	cmp	r4, r0
	beq	.L17
	ldr	r0, [r8, #8]
	bl	le16_to_cpu
	mov	r9, r0
	ldr	r0, [r8]
	bl	le64_to_cpu
	mov	r2, r9
	asr	r1, r0, #31
	bl	trace_ocfs2_complete_truncate_log_recovery
	mov	r0, fp
	bl	inode_lock
	cmp	r9, #0
	beq	.L9
	mov	r7, #0
	ldr	r10, .L19
	b	.L8
.L6:
	ldr	r3, [r8, #4]
	add	r3, r3, r7, lsl #3
	ldr	r0, [r3, #4]
	bl	le32_to_cpu
	ldr	r2, [r8, #4]
	mov	r4, r0
	ldr	r0, [r2, r7, lsl #3]
	bl	le32_to_cpu
	mov	r1, r0
	ldr	r0, [r5]
	bl	ocfs2_clusters_to_blocks
	mov	r3, r4
	mov	r2, r0
	mov	r1, r6
	mov	r0, r5
	bl	ocfs2_truncate_log_append
	mov	r4, r0
	mov	r1, r6
	mov	r0, r5
	bl	ocfs2_commit_trans
	cmp	r4, #0
	add	r7, r7, #1
	blt	.L18
	cmp	r9, r7
	beq	.L4
.L8:
	mov	r0, r5
	bl	ocfs2_truncate_log_needs_flush
	cmp	r0, #0
	beq	.L5
	mov	r0, r5
	bl	__ocfs2_flush_truncate_log
	subs	r4, r0, #0
	blt	.L15
.L5:
	ldr	r1, [r10]
	mov	r0, r5
	bl	ocfs2_start_trans
	mov	r6, r0
	bl	IS_ERR
	cmp	r0, #0
	beq	.L6
	mov	r0, r6
	bl	PTR_ERR
	mov	r4, r0
	bl	mlog_errno
.L4:
	mov	r0, fp
	bl	inode_unlock
	mov	r0, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	mov	r0, r4
.L15:
	bl	mlog_errno
	b	.L4
.L17:
	ldr	r3, .L19+4
	ldr	r1, .L19+8
	ldr	r0, [r3]
	bl	mlog
	ldr	r3, .L19+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	mov	r4, r9
	b	.L4
.L20:
	.align	2
.L19:
	.word	OCFS2_TRUNCATE_LOG_UPDATE
	.word	ML_ERROR
	.word	.LC0
	.word	EINVAL
	.size	ocfs2_complete_truncate_log_recovery, .-ocfs2_complete_truncate_log_recovery
	.comm	OCFS2_TRUNCATE_LOG_UPDATE,4,4
	.comm	ML_ERROR,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
