	.file	"extr_lsm_log.c_lsmLogRecover.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	lsmLogRecover
	.type	lsmLogRecover, @function
lsmLogRecover:
.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, rdi
	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
	sub	rsp, 152
	.cfi_def_cfa_offset 208
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 136[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR LSM_OK[rip]
	lea	rsi, 36[rsp]
	mov	DWORD PTR 32[rsp], eax
	call	lsmFsOpenLog@PLT
	cmp	eax, DWORD PTR LSM_OK[rip]
	mov	DWORD PTR 32[rsp], eax
	je	.L62
.L1:
	mov	rcx, QWORD PTR 136[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L63
	add	rsp, 152
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L62:
	.cfi_restore_state
	mov	rdi, r13
	call	lsmTreeInit@PLT
	cmp	eax, DWORD PTR LSM_OK[rip]
	mov	DWORD PTR 32[rsp], eax
	jne	.L1
	mov	rax, QWORD PTR 16[r13]
	lea	r15, 24[r13]
	lea	rbx, 96[rsp]
	mov	rsi, r15
	mov	QWORD PTR 24[rsp], r15
	lea	r14, 64[rsp]
	mov	edi, DWORD PTR [rax]
	call	lsmCheckpointLogoffset@PLT
	mov	edx, 1
	mov	rcx, rbx
	mov	rsi, r15
	mov	rdi, r13
	call	logReaderInit@PLT
	mov	esi, DWORD PTR 8[r13]
	mov	rdi, r14
	call	lsmStringInit@PLT
	lea	rax, 80[rsp]
	mov	esi, DWORD PTR 8[r13]
	mov	rdi, rax
	mov	QWORD PTR [rsp], rax
	call	lsmStringInit@PLT
	mov	edi, DWORD PTR 36[rsp]
	mov	eax, DWORD PTR 32[rsp]
	mov	edx, DWORD PTR LSM_OK[rip]
	test	edi, edi
	je	.L39
	mov	QWORD PTR 8[rsp], r13
	xor	r15d, r15d
	lea	r12, .L7[rip]
	mov	DWORD PTR 20[rsp], 0
	mov	DWORD PTR 16[rsp], 0
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	edx, eax
	jne	.L64
	mov	DWORD PTR 40[rsp], 0
	lea	rbp, 32[rsp]
	lea	r13, 44[rsp]
	.p2align 4,,10
	.p2align 3
.L36:
	mov	rdx, rbp
	mov	rsi, r13
	mov	rdi, rbx
	mov	DWORD PTR 44[rsp], 0
	call	logReaderByte@PLT
	mov	eax, DWORD PTR 44[rsp]
	add	eax, -128
	cmp	eax, 9
	ja	.L5
	movsx	rax, DWORD PTR [r12+rax*4]
	add	rax, r12
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L7:
	.long	.L9-.L7
	.long	.L9-.L7
	.long	.L12-.L7
	.long	.L59-.L7
	.long	.L10-.L7
	.long	.L9-.L7
	.long	.L9-.L7
	.long	.L8-.L7
	.long	.L8-.L7
	.long	.L6-.L7
	.text
	.p2align 4,,10
	.p2align 3
.L9:
	lea	rdx, 48[rsp]
	mov	rcx, rbp
	mov	rsi, r14
	mov	rdi, rbx
	call	logReaderVarint@PLT
	mov	rsi, QWORD PTR [rsp]
	mov	rcx, rbp
	mov	rdi, rbx
	lea	rdx, 52[rsp]
	call	logReaderVarint@PLT
	mov	eax, DWORD PTR 44[rsp]
	cmp	eax, 128
	je	.L50
	cmp	eax, 133
	je	.L50
	mov	esi, DWORD PTR 52[rsp]
	mov	rdi, rbx
	add	esi, DWORD PTR 48[rsp]
	call	logRequireCksum@PLT
	mov	DWORD PTR 40[rsp], eax
	test	eax, eax
	je	.L17
	.p2align 4,,10
	.p2align 3
.L59:
	mov	eax, DWORD PTR 32[rsp]
	mov	edx, DWORD PTR LSM_OK[rip]
.L13:
	cmp	eax, edx
	jne	.L51
	mov	edx, DWORD PTR 40[rsp]
	test	edx, edx
	je	.L36
	test	r15d, r15d
	je	.L43
	mov	r13, QWORD PTR 8[rsp]
.L46:
	mov	rdx, QWORD PTR 32[r13]
	mov	eax, DWORD PTR 96[rsp]
	mov	rdi, r13
	sub	eax, DWORD PTR 104[rsp]
	add	eax, DWORD PTR 100[rsp]
	mov	DWORD PTR 40[rdx], eax
	mov	rax, QWORD PTR 120[rsp]
	mov	QWORD PTR 24[r13], rax
	call	lsmFinishRecovery@PLT
	mov	DWORD PTR 32[rsp], eax
.L45:
	cmp	QWORD PTR 0[r13], 0
	jne	.L65
.L42:
	mov	rdi, r14
	call	lsmStringClear@PLT
	mov	rdi, QWORD PTR [rsp]
	call	lsmStringClear@PLT
	lea	rdi, 104[rsp]
	call	lsmStringClear@PLT
	mov	eax, DWORD PTR 32[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	lea	rdx, 52[rsp]
	mov	rcx, rbp
	mov	rsi, r14
	mov	rdi, rbx
	call	logReaderVarint@PLT
	cmp	DWORD PTR 44[rsp], 135
	je	.L66
	mov	esi, DWORD PTR 52[rsp]
	mov	rdi, rbx
	call	logRequireCksum@PLT
	mov	DWORD PTR 40[rsp], eax
.L22:
	test	eax, eax
	jne	.L59
	mov	edx, DWORD PTR 52[rsp]
	lea	rcx, 56[rsp]
	mov	r8, rbp
	mov	rsi, r14
	mov	rdi, rbx
	call	logReaderBlob@PLT
	mov	eax, DWORD PTR 32[rsp]
	mov	edx, DWORD PTR LSM_OK[rip]
	cmp	r15d, 1
	jne	.L13
	cmp	eax, edx
	jne	.L51
	mov	edx, DWORD PTR 52[rsp]
	mov	rsi, QWORD PTR 56[rsp]
	mov	r8d, -1
	xor	ecx, ecx
	mov	rdi, QWORD PTR 8[rsp]
.L60:
	call	lsmTreeInsert@PLT
	mov	edx, DWORD PTR LSM_OK[rip]
	mov	DWORD PTR 32[rsp], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rdx, 56[rsp]
	mov	rcx, rbp
	mov	rsi, r14
	mov	rdi, rbx
	call	logReaderVarint@PLT
	mov	edx, DWORD PTR 56[rsp]
	mov	r8, rbp
	xor	ecx, ecx
	mov	rsi, r14
	mov	rdi, rbx
	call	logReaderBlob@PLT
	mov	eax, DWORD PTR 32[rsp]
	mov	edx, DWORD PTR LSM_OK[rip]
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L10:
	lea	rdx, 56[rsp]
	mov	rcx, rbp
	mov	rsi, r14
	mov	rdi, rbx
	mov	DWORD PTR 56[rsp], 0
	call	logReaderVarint@PLT
	mov	eax, DWORD PTR 32[rsp]
	mov	edx, DWORD PTR LSM_OK[rip]
	cmp	eax, edx
	je	.L67
.L51:
	add	r15d, 1
.L35:
	cmp	r15d, 2
	jne	.L4
	mov	r13, QWORD PTR 8[rsp]
	.p2align 4,,10
	.p2align 3
.L39:
	cmp	eax, edx
	je	.L46
.L41:
	mov	rdi, r13
	call	lsmFinishRecovery@PLT
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rsi, r14
	lea	rdx, 40[rsp]
	mov	rcx, rbp
	mov	rdi, rbx
	call	logReaderCksum@PLT
	mov	esi, DWORD PTR 40[rsp]
	test	esi, esi
	jne	.L59
	add	DWORD PTR 16[rsp], 1
	mov	eax, DWORD PTR 16[rsp]
	test	eax, eax
	setg	dil
	or	edi, r15d
	and	edi, 1
	call	assert@PLT
	mov	ecx, DWORD PTR 16[rsp]
	test	ecx, ecx
	jne	.L59
.L5:
	mov	DWORD PTR 40[rsp], 1
	jmp	.L59
	.p2align 4,,10
	.p2align 3
.L50:
	lea	rdx, 40[rsp]
	mov	rcx, rbp
	mov	rsi, r14
	mov	rdi, rbx
	call	logReaderCksum@PLT
	mov	eax, DWORD PTR 40[rsp]
	test	eax, eax
	jne	.L59
.L17:
	mov	edx, DWORD PTR 48[rsp]
	mov	r8, rbp
	xor	ecx, ecx
	mov	rsi, r14
	mov	rdi, rbx
	call	logReaderBlob@PLT
	mov	edx, DWORD PTR 52[rsp]
	mov	rsi, QWORD PTR [rsp]
	mov	r8, rbp
	lea	rcx, 56[rsp]
	mov	rdi, rbx
	call	logReaderBlob@PLT
	mov	eax, DWORD PTR 32[rsp]
	mov	edx, DWORD PTR LSM_OK[rip]
	cmp	r15d, 1
	jne	.L13
	cmp	eax, edx
	jne	.L51
	mov	eax, DWORD PTR 44[rsp]
	mov	r8d, DWORD PTR 52[rsp]
	mov	rcx, QWORD PTR 56[rsp]
	mov	edx, DWORD PTR 48[rsp]
	add	eax, -128
	mov	rsi, QWORD PTR 72[rsp]
	mov	rdi, QWORD PTR 8[rsp]
	cmp	eax, 1
	jbe	.L60
	call	lsmTreeDelete@PLT
	mov	edx, DWORD PTR LSM_OK[rip]
	mov	DWORD PTR 32[rsp], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L67:
	cmp	r15d, 1
	je	.L68
	mov	edi, DWORD PTR 20[rsp]
	mov	ecx, DWORD PTR 56[rsp]
	mov	esi, DWORD PTR 100[rsp]
	cmp	edi, 2
	je	.L33
	add	edi, 1
	mov	DWORD PTR 20[rsp], edi
.L32:
	mov	DWORD PTR 96[rsp], ecx
	mov	DWORD PTR 104[rsp], esi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L66:
	lea	rdx, 40[rsp]
	mov	rcx, rbp
	mov	rsi, r14
	mov	rdi, rbx
	call	logReaderCksum@PLT
	mov	eax, DWORD PTR 40[rsp]
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L43:
	mov	eax, DWORD PTR 16[rsp]
	mov	r15d, 1
	test	eax, eax
	jne	.L38
	mov	rax, QWORD PTR 8[rsp]
	mov	r15d, 2
	mov	rax, QWORD PTR 32[rax]
	cmp	QWORD PTR 32[rax], 0
	je	.L38
	mov	QWORD PTR 32[rax], 0
	mov	rdi, QWORD PTR 8[rsp]
	xor	r15d, r15d
	call	lsmCheckpointZeroLogoffset@PLT
	.p2align 4,,10
	.p2align 3
.L38:
	mov	rsi, QWORD PTR 24[rsp]
	mov	rdi, QWORD PTR 8[rsp]
	xor	edx, edx
	mov	rcx, rbx
	call	logReaderInit@PLT
	neg	DWORD PTR 16[rsp]
	mov	eax, DWORD PTR 32[rsp]
	mov	edx, DWORD PTR LSM_OK[rip]
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L68:
	mov	rax, QWORD PTR 8[rsp]
	mov	rax, QWORD PTR 32[rax]
	cmp	QWORD PTR 32[rax], 0
	je	.L69
	xor	edi, edi
	cmp	QWORD PTR [rax], 0
	sete	dil
	call	assert@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	esi, DWORD PTR 100[rsp]
	mov	rax, QWORD PTR 32[rax]
	mov	rdx, QWORD PTR 32[rax]
	mov	QWORD PTR [rax], rdx
	mov	edx, DWORD PTR 96[rsp]
	add	edx, esi
	sub	edx, DWORD PTR 104[rsp]
	mov	DWORD PTR 8[rax], edx
.L31:
	movsx	rdx, DWORD PTR 56[rsp]
	mov	QWORD PTR 32[rax], rdx
	mov	rcx, rdx
	mov	eax, DWORD PTR 32[rsp]
	mov	edx, DWORD PTR LSM_OK[rip]
	jmp	.L32
.L69:
	xor	edi, edi
	cmp	QWORD PTR 16[rax], 0
	sete	dil
	call	assert@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	edx, DWORD PTR 96[rsp]
	mov	esi, DWORD PTR 100[rsp]
	mov	rax, QWORD PTR 32[rax]
	mov	DWORD PTR 24[rax], edx
	jmp	.L31
.L33:
	mov	DWORD PTR 40[rsp], 1
	mov	DWORD PTR 20[rsp], 3
	jmp	.L32
.L65:
	mov	rdi, r13
	call	lsmFsCloseLog@PLT
	jmp	.L42
.L64:
	mov	r13, QWORD PTR 8[rsp]
	jmp	.L41
.L63:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	lsmLogRecover, .-lsmLogRecover
	.comm	LSM_OK,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_lsm_log.c_lsmLogRecover.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	lsmLogRecover
	.syntax unified
	.arm
	.fpu softvfp
	.type	lsmLogRecover, %function
lsmLogRecover:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r4, .L72
	sub	sp, sp, #84
	ldr	r3, [r4]
	ldr	r2, .L72+4
	add	r1, sp, #12
	ldr	r2, [r2]
	str	r2, [sp, #76]
	mov	r2,#0
	mov	r6, r0
	str	r3, [sp, #8]
	bl	lsmFsOpenLog
	ldr	r3, [r4]
	str	r0, [sp, #8]
	cmp	r0, r3
	beq	.L65
.L1:
	ldr	r3, .L72+4
	ldr	r2, [r3]
	ldr	r3, [sp, #76]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L66
	add	sp, sp, #84
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L65:
	mov	r0, r6
	bl	lsmTreeInit
	ldr	r3, [r4]
	str	r0, [sp, #8]
	cmp	r0, r3
	bne	.L1
	ldr	r3, [r6, #8]
	add	fp, r6, #12
	mov	r1, fp
	ldr	r0, [r3]
	bl	lsmCheckpointLogoffset
	add	r3, sp, #52
	mov	r2, #1
	mov	r1, fp
	mov	r0, r6
	bl	logReaderInit
	ldr	r1, [r6, #4]
	add	r0, sp, #36
	bl	lsmStringInit
	ldr	r1, [r6, #4]
	add	r0, sp, #44
	bl	lsmStringInit
	ldr	r3, [sp, #12]
	cmp	r3, #0
	beq	.L3
	mov	r10, #0
	mov	r8, r10
	mov	r9, r10
	mov	r5, r10
	ldr	r0, [sp, #8]
	ldr	r3, [r4]
.L4:
	cmp	r3, r0
	bne	.L40
	str	r5, [sp, #16]
.L35:
	add	r2, sp, #8
	add	r1, sp, #20
	add	r0, sp, #52
	str	r5, [sp, #20]
	bl	logReaderByte
	ldr	r3, [sp, #20]
	sub	r3, r3, #128
	cmp	r3, #9
	ldrls	pc, [pc, r3, asl #2]
	b	.L5
.L7:
	.word	.L9
	.word	.L9
	.word	.L12
	.word	.L63
	.word	.L10
	.word	.L9
	.word	.L9
	.word	.L8
	.word	.L8
	.word	.L6
.L9:
	add	r3, sp, #8
	add	r2, sp, #24
	add	r1, sp, #36
	add	r0, sp, #52
	bl	logReaderVarint
	add	r3, sp, #8
	add	r2, sp, #28
	add	r1, sp, #44
	add	r0, sp, #52
	bl	logReaderVarint
	ldr	r3, [sp, #20]
	cmp	r3, #133
	cmpne	r3, #128
	bne	.L14
	add	r3, sp, #8
	add	r2, sp, #16
	add	r1, sp, #36
	add	r0, sp, #52
	bl	logReaderCksum
	ldr	r3, [sp, #16]
	cmp	r3, #0
	beq	.L16
.L63:
	ldr	r0, [sp, #8]
	ldr	r3, [r4]
.L13:
	cmp	r0, r3
	bne	.L49
	ldr	r3, [sp, #16]
	cmp	r3, #0
	beq	.L35
	cmp	r8, #0
	beq	.L42
.L45:
	ldr	r1, [sp, #60]
	ldr	r3, [sp, #52]
	ldr	r2, [sp, #56]
	sub	r3, r3, r1
	ldr	r1, [r6, #20]
	add	r3, r3, r2
	ldr	r2, [sp, #72]
	str	r3, [r1, #20]
	ldr	r3, [sp, #68]
	mov	r0, r6
	str	r2, [r6, #16]
	str	r3, [r6, #12]
	bl	lsmFinishRecovery
	str	r0, [sp, #8]
.L44:
	ldr	r3, [r6]
	cmp	r3, #0
	bne	.L67
.L41:
	add	r0, sp, #36
	bl	lsmStringClear
	add	r0, sp, #44
	bl	lsmStringClear
	add	r0, sp, #60
	bl	lsmStringClear
	ldr	r0, [sp, #8]
	b	.L1
.L8:
	add	r3, sp, #8
	add	r2, sp, #28
	add	r1, sp, #36
	add	r0, sp, #52
	bl	logReaderVarint
	ldr	r3, [sp, #20]
	cmp	r3, #135
	beq	.L68
	ldr	r1, [sp, #28]
	add	r0, sp, #52
	bl	logRequireCksum
	mov	r7, r0
	str	r0, [sp, #16]
.L21:
	cmp	r7, #0
	bne	.L63
	add	r3, sp, #8
	str	r3, [sp]
	ldr	r2, [sp, #28]
	add	r3, sp, #32
	add	r1, sp, #36
	add	r0, sp, #52
	bl	logReaderBlob
	cmp	r8, #1
	ldr	r0, [sp, #8]
	ldr	r3, [r4]
	bne	.L13
	cmp	r0, r3
	bne	.L49
	mvn	r2, #0
	mov	r3, r7
	mov	r0, r6
	str	r2, [sp]
	ldr	r1, [sp, #32]
	ldr	r2, [sp, #28]
.L62:
	bl	lsmTreeInsert
	ldr	r3, [r4]
	str	r0, [sp, #8]
	b	.L13
.L12:
	add	r3, sp, #8
	add	r2, sp, #32
	add	r1, sp, #36
	add	r0, sp, #52
	bl	logReaderVarint
	add	r3, sp, #8
	str	r3, [sp]
	ldr	r2, [sp, #32]
	mov	r3, #0
	add	r1, sp, #36
	add	r0, sp, #52
	bl	logReaderBlob
	ldr	r0, [sp, #8]
	ldr	r3, [r4]
	b	.L13
.L10:
	add	r3, sp, #8
	add	r2, sp, #32
	add	r1, sp, #36
	add	r0, sp, #52
	str	r5, [sp, #32]
	bl	logReaderVarint
	ldr	r0, [sp, #8]
	ldr	r3, [r4]
	cmp	r0, r3
	beq	.L69
.L49:
	add	r8, r8, #1
.L34:
	cmp	r8, #2
	bne	.L4
	b	.L38
.L6:
	add	r3, sp, #8
	add	r2, sp, #16
	add	r1, sp, #36
	add	r0, sp, #52
	bl	logReaderCksum
	ldr	r3, [sp, #16]
	cmp	r3, #0
	bne	.L63
	add	r9, r9, #1
	and	r0, r8, #1
	cmp	r9, #0
	orrgt	r0, r0, #1
	bl	assert
	cmp	r9, #0
	moveq	r3, #1
	streq	r3, [sp, #16]
	b	.L63
.L14:
	ldr	r3, [sp, #28]
	ldr	r1, [sp, #24]
	add	r0, sp, #52
	add	r1, r1, r3
	bl	logRequireCksum
	mov	r3, r0
	cmp	r3, #0
	str	r0, [sp, #16]
	bne	.L63
.L16:
	add	r2, sp, #8
	str	r2, [sp]
	add	r1, sp, #36
	ldr	r2, [sp, #24]
	add	r0, sp, #52
	bl	logReaderBlob
	add	r3, sp, #8
	str	r3, [sp]
	ldr	r2, [sp, #28]
	add	r3, sp, #32
	add	r1, sp, #44
	add	r0, sp, #52
	bl	logReaderBlob
	cmp	r8, #1
	ldr	r0, [sp, #8]
	ldr	r3, [r4]
	bne	.L13
	cmp	r0, r3
	bne	.L49
	ldr	r3, [sp, #20]
	ldr	r0, [sp, #28]
	sub	r3, r3, #128
	cmp	r3, #1
	str	r0, [sp]
	ldr	r1, [sp, #40]
	mov	r0, r6
	ldr	r2, [sp, #24]
	ldr	r3, [sp, #32]
	bls	.L62
	bl	lsmTreeDelete
	ldr	r3, [r4]
	str	r0, [sp, #8]
	b	.L13
.L68:
	add	r3, sp, #8
	add	r2, sp, #16
	add	r1, sp, #36
	add	r0, sp, #52
	bl	logReaderCksum
	ldr	r7, [sp, #16]
	b	.L21
.L69:
	cmp	r8, #1
	beq	.L70
	cmp	r10, #2
	moveq	ip, #1
	moveq	r10, #3
	ldr	r2, [sp, #32]
	ldr	r1, [sp, #56]
	addne	r10, r10, #1
	streq	ip, [sp, #16]
.L31:
	str	r2, [sp, #52]
	str	r1, [sp, #60]
	b	.L13
.L42:
	cmp	r9, #0
	movne	r8, #1
	bne	.L37
	ldr	r3, [r6, #20]
	ldr	r2, [r3, #16]
	cmp	r2, #0
	moveq	r8, #2
	beq	.L37
	mov	r0, r6
	str	r9, [r3, #16]
	bl	lsmCheckpointZeroLogoffset
	mov	r8, r9
.L37:
	add	r3, sp, #52
	mov	r2, #0
	mov	r1, fp
	mov	r0, r6
	bl	logReaderInit
	rsb	r9, r9, #0
	ldr	r0, [sp, #8]
	ldr	r3, [r4]
	b	.L34
.L3:
	ldr	r3, [r4]
	ldr	r0, [sp, #8]
.L38:
	cmp	r0, r3
	beq	.L45
.L40:
	mov	r0, r6
	bl	lsmFinishRecovery
	b	.L44
.L70:
	ldr	r3, [r6, #20]
	ldr	r2, [r3, #16]
	cmp	r2, #0
	beq	.L71
	ldr	r0, [r3]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r0, [sp, #60]
	ldr	r2, [sp, #52]
	ldr	r3, [r6, #20]
	ldr	r1, [sp, #56]
	sub	r2, r2, r0
	ldr	r0, [r3, #16]
	add	r2, r2, r1
	stm	r3, {r0, r2}
.L30:
	ldr	r2, [sp, #32]
	ldr	r0, [sp, #8]
	str	r2, [r3, #16]
	ldr	r3, [r4]
	b	.L31
.L71:
	ldr	r0, [r3, #8]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r3, [r6, #20]
	ldr	r2, [sp, #52]
	ldr	r1, [sp, #56]
	str	r2, [r3, #12]
	b	.L30
.L67:
	mov	r0, r6
	bl	lsmFsCloseLog
	b	.L41
.L66:
	bl	__stack_chk_fail
.L5:
	mov	r2, #1
	ldr	r0, [sp, #8]
	ldr	r3, [r4]
	str	r2, [sp, #16]
	b	.L13
.L73:
	.align	2
.L72:
	.word	LSM_OK
	.word	.LC0
	.size	lsmLogRecover, .-lsmLogRecover
	.comm	LSM_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
