	.file	"extr_lpt.c_scan_get_pnode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	scan_get_pnode, @function
scan_get_pnode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movsx	rax, ecx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	lea	rdx, [rax+rax*2]
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rax
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR [r14]
	lea	rbx, [rax+rdx*8]
	mov	r15, QWORD PTR 16[rbx]
	test	r15, r15
	je	.L2
	mov	DWORD PTR [rsi], 1
	mov	QWORD PTR 8[rsi], r15
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r15
	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
.L2:
	.cfi_restore_state
	lea	r15, 16[rsi]
	mov	rax, QWORD PTR 40[rdi]
	mov	rbp, rdi
	mov	edx, 32
	mov	DWORD PTR [rsi], 0
	mov	rdi, r15
	mov	QWORD PTR 8[rsi], r15
	xor	esi, esi
	mov	QWORD PTR 8[rsp], rax
	call	memset@PLT
	mov	rax, QWORD PTR [rbx]
	test	rax, rax
	je	.L22
	xor	esi, esi
	cmp	rax, QWORD PTR 8[rbp]
	jl	.L8
	xor	esi, esi
	cmp	rax, QWORD PTR 16[rbp]
	setle	sil
.L8:
	mov	rdi, rbp
	call	ubifs_assert@PLT
	mov	rax, QWORD PTR 8[rbx]
	xor	esi, esi
	test	rax, rax
	js	.L9
	xor	esi, esi
	cmp	rax, QWORD PTR 0[rbp]
	setl	sil
.L9:
	mov	rdi, rbp
	call	ubifs_assert@PLT
	mov	rcx, QWORD PTR 8[rbx]
	mov	r8d, DWORD PTR 32[rbp]
	mov	rdi, rbp
	mov	rdx, QWORD PTR 8[rsp]
	mov	rsi, QWORD PTR [rbx]
	mov	r9d, 1
	call	ubifs_leb_read@PLT
	test	eax, eax
	jne	.L20
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdx, r15
	mov	rdi, rbp
	call	unpack_pnode@PLT
	test	eax, eax
	jne	.L20
.L6:
	mov	ecx, r13d
	mov	rdx, r14
	mov	rsi, r15
	mov	rdi, rbp
	call	validate_pnode@PLT
	test	eax, eax
	jne	.L20
	cmp	QWORD PTR 24[rbp], 0
	je	.L23
.L12:
	mov	QWORD PTR 24[r12], r14
	mov	rsi, r15
	mov	rdi, rbp
	mov	DWORD PTR 16[r12], r13d
	call	set_pnode_lnum@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	cmp	QWORD PTR 24[rbp], 0
	jne	.L24
.L5:
	mov	eax, DWORD PTR UBIFS_LPT_FANOUT[rip]
	test	eax, eax
	jle	.L6
	xor	edx, edx
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rbx, rdx
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, rbp
	mov	QWORD PTR 8[rsp], rdx
	sal	rbx, 4
	add	rbx, QWORD PTR 40[r12]
	mov	QWORD PTR [rbx], rax
	mov	rsi, rbx
	call	ubifs_categorize_lprops@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	DWORD PTR 8[rbx], eax
	add	rdx, 1
	cmp	DWORD PTR UBIFS_LPT_FANOUT[rip], edx
	jg	.L7
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L20:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	edi, eax
	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	ERR_PTR@PLT
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	edx, r13d
	mov	rsi, r14
	mov	rdi, rbp
	call	calc_pnode_num_from_parent@PLT
	mov	QWORD PTR 32[r12], rax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L24:
	mov	edx, r13d
	mov	rsi, r14
	mov	rdi, rbp
	call	calc_pnode_num_from_parent@PLT
	mov	QWORD PTR 32[r12], rax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	scan_get_pnode, .-scan_get_pnode
	.comm	UBIFS_LPT_FANOUT,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.c_scan_get_pnode.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	scan_get_pnode, %function
scan_get_pnode:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	fp, [r2]
	add	r10, r3, r3, lsl #1
	mov	r8, r3
	add	r3, fp, r10, lsl #2
	ldr	r7, [r3, #8]
	mov	r6, r1
	cmp	r7, #0
	sub	sp, sp, #20
	beq	.L2
	mov	r3, #1
	mov	r0, r7
	stm	r1, {r3, r7}
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r7, r1
	mov	r1, #0
	str	r3, [sp, #8]
	ldr	r3, [r0, #20]
	str	r1, [r7], #8
	mov	r9, r2
	mov	r4, r0
	mov	r2, #16
	mov	r0, r7
	lsl	r10, r10, #2
	str	r7, [r6, #4]
	str	r3, [sp, #12]
	bl	memset
	ldr	r5, [fp, r10]
	mov	r1, #0
	cmp	r5, #0
	ldr	r3, [sp, #8]
	beq	.L25
	ldr	r2, [r4, #4]
	cmp	r5, r2
	blt	.L8
	ldr	r1, [r4, #8]
	cmp	r5, r1
	movgt	r1, #0
	movle	r1, #1
.L8:
	mov	r0, r4
	str	r3, [sp, #8]
	bl	ubifs_assert
	ldr	r3, [sp, #8]
	ldr	r1, [r3, #4]
	cmp	r1, #0
	movlt	r1, #0
	blt	.L9
	ldr	r2, [r4]
	cmp	r1, r2
	movge	r1, #0
	movlt	r1, #1
.L9:
	mov	r0, r4
	str	r3, [sp, #8]
	bl	ubifs_assert
	mov	r0, #1
	ldr	r2, [r4, #16]
	ldr	r3, [sp, #8]
	ldr	r1, [fp, r10]
	ldr	r3, [r3, #4]
	str	r0, [sp, #4]
	str	r2, [sp]
	mov	r0, r4
	ldr	r2, [sp, #12]
	bl	ubifs_leb_read
	cmp	r0, #0
	bne	.L23
	mov	r2, r7
	mov	r0, r4
	ldr	r1, [sp, #12]
	bl	unpack_pnode
	cmp	r0, #0
	bne	.L23
.L6:
	mov	r3, r8
	mov	r2, r9
	mov	r1, r7
	mov	r0, r4
	bl	validate_pnode
	cmp	r0, #0
	bne	.L23
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L26
.L12:
	mov	r0, r4
	mov	r1, r7
	str	r9, [r6, #12]
	str	r8, [r6, #8]
	bl	set_pnode_lnum
	mov	r0, r7
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L25:
	ldr	r3, [r4, #12]
	cmp	r3, r1
	bne	.L27
.L5:
	ldr	fp, .L28
	ldr	r3, [fp]
	cmp	r3, #0
	ble	.L6
.L7:
	ldr	r3, [r6, #20]
	ldr	r2, [r4]
	add	r10, r3, r5, lsl #3
	str	r2, [r3, r5, lsl #3]
	mov	r1, r10
	mov	r0, r4
	bl	ubifs_categorize_lprops
	ldr	r3, [fp]
	add	r5, r5, #1
	cmp	r3, r5
	str	r0, [r10, #4]
	bgt	.L7
	b	.L6
.L23:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	ERR_PTR
.L26:
	mov	r2, r8
	mov	r1, r9
	mov	r0, r4
	bl	calc_pnode_num_from_parent
	str	r0, [r6, #16]
	b	.L12
.L27:
	mov	r2, r8
	mov	r1, r9
	mov	r0, r4
	bl	calc_pnode_num_from_parent
	str	r0, [r6, #16]
	b	.L5
.L29:
	.align	2
.L28:
	.word	UBIFS_LPT_FANOUT
	.size	scan_get_pnode, .-scan_get_pnode
	.comm	UBIFS_LPT_FANOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
