	.file	"extr_lpt_commit.c_lpt_gc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	lpt_gc, @function
lpt_gc:
.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
	lea	r14, 24[rdi]
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	mov	rdi, r14
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	mutex_lock@PLT
	mov	edx, DWORD PTR 0[rbp]
	test	edx, edx
	jle	.L2
	xor	r15d, r15d
	xor	r12d, r12d
	mov	r13d, -1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 32[rbp]
	mov	rbx, r15
	xor	edi, edi
	sal	rbx, 4
	mov	eax, DWORD PTR 12[rax+rbx]
	test	eax, eax
	sete	dil
	call	ubifs_assert@PLT
	mov	ecx, DWORD PTR 4[rbp]
	add	ecx, r15d
	cmp	ecx, DWORD PTR 8[rbp]
	je	.L3
	add	rbx, QWORD PTR 32[rbp]
	movsx	rax, DWORD PTR 8[rbx]
	mov	rdx, rax
	add	rax, QWORD PTR [rbx]
	cmp	rax, QWORD PTR 16[rbp]
	je	.L3
	cmp	edx, r12d
	cmovg	r12d, edx
	cmovg	r13d, ecx
.L3:
	add	r15, 1
	cmp	DWORD PTR 0[rbp], r15d
	jg	.L5
	mov	rdi, r14
	call	mutex_unlock@PLT
	cmp	r13d, -1
	je	.L7
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	esi, r13d
	mov	rdi, rbp
	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
	jmp	lpt_gc_lnum@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, r14
	call	mutex_unlock@PLT
.L7:
	mov	eax, DWORD PTR ENOSPC[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	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
	.cfi_endproc
.LFE0:
	.size	lpt_gc, .-lpt_gc
	.comm	ENOSPC,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_lpt_commit.c_lpt_gc.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lpt_gc, %function
lpt_gc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	add	r7, r0, #16
	mov	r0, r7
	bl	mutex_lock
	ldr	r3, [r4]
	cmp	r3, #0
	ble	.L2
	mov	r8, #0
	mvn	r6, #0
	mov	r5, r8
.L4:
	ldr	r3, [r4, #20]
	add	r9, r5, r5, lsl #1
	add	r3, r3, r9, lsl #2
	ldr	r0, [r3, #8]
	lsl	r10, r9, #2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ubifs_assert
	ldr	r3, [r4, #4]
	ldr	r2, [r4, #8]
	add	r3, r5, r3
	cmp	r3, r2
	add	r5, r5, #1
	beq	.L3
	ldr	r0, [r4, #20]
	ldr	ip, [r4, #12]
	add	r10, r0, r10
	ldr	r1, [r10, #4]
	ldr	r2, [r0, r9, lsl #2]
	add	r2, r1, r2
	cmp	r2, ip
	cmpne	r1, r8
	movgt	r2, #1
	movle	r2, #0
	cmp	r2, #0
	movne	r8, r1
	movne	r6, r3
.L3:
	ldr	r3, [r4]
	cmp	r3, r5
	bgt	.L4
	mov	r0, r7
	bl	mutex_unlock
	cmn	r6, #1
	beq	.L6
	mov	r1, r6
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	lpt_gc_lnum
.L2:
	mov	r0, r7
	bl	mutex_unlock
.L6:
	ldr	r3, .L15
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	.align	2
.L15:
	.word	ENOSPC
	.size	lpt_gc, .-lpt_gc
	.comm	ENOSPC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
