	.file	"extr_recovery.c_find_good_lh.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	find_good_lh, @function
find_good_lh:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	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
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebp, DWORD PTR [rsi]
	mov	rbx, rdx
	mov	esi, ebp
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, DWORD PTR 0[r13]
	lea	esi, 1[rax]
	mov	DWORD PTR 0[r13], esi
	cmp	esi, DWORD PTR [r14]
	cmove	esi, r12d
	mov	DWORD PTR 0[r13], esi
	cmp	ebp, esi
	je	.L8
.L4:
	mov	rdx, rbx
	mov	rdi, r14
	call	get_log_header@PLT
	test	eax, eax
	jg	.L9
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[r14]
	call	GFS2_I@PLT
	mov	edi, eax
	call	gfs2_consist_inode@PLT
	mov	eax, DWORD PTR EIO[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	find_good_lh, .-find_good_lh
	.comm	EIO,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_find_good_lh.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_good_lh, %function
find_good_lh:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r1]
	mov	r4, r1
	mov	r5, r0
	mov	r7, r2
	mov	r1, r6
.L4:
	mov	r2, r7
	mov	r0, r5
	bl	get_log_header
	cmp	r0, #0
	pople	{r4, r5, r6, r7, r8, pc}
	ldr	r1, [r4]
	add	r1, r1, #1
	str	r1, [r4]
	ldr	r3, [r5]
	cmp	r1, r3
	moveq	r1, #0
	cmp	r6, r1
	str	r1, [r4]
	bne	.L4
	ldr	r0, [r5, #4]
	bl	GFS2_I
	bl	gfs2_consist_inode
	ldr	r3, .L8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	.align	2
.L8:
	.word	EIO
	.size	find_good_lh, .-find_good_lh
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
