	.file	"extr_lpt.c_ubifs_read_nnode.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"error %d reading nnode at %d:%d"
	.text
	.p2align 4
	.globl	ubifs_read_nnode
	.type	ubifs_read_nnode, @function
ubifs_read_nnode:
.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
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	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 40[rdi]
	mov	QWORD PTR 8[rsp], rax
	test	rsi, rsi
	je	.L2
	movsx	rbp, edx
	sal	rbp, 4
	add	rbp, QWORD PTR 32[rsi]
	mov	eax, DWORD PTR 4[rbp]
	mov	r13d, DWORD PTR 0[rbp]
	mov	DWORD PTR 4[rsp], eax
.L3:
	mov	esi, DWORD PTR GFP_NOFS[rip]
	mov	edi, 40
	call	kzalloc@PLT
	mov	r8d, DWORD PTR ENOMEM[rip]
	mov	r15, rax
	neg	r8d
	test	rax, rax
	je	.L5
	test	r13d, r13d
	jne	.L6
	cmp	QWORD PTR 24[rbx], 0
	jne	.L16
.L8:
	mov	ecx, r12d
	mov	rdx, r14
	mov	rsi, r15
	mov	rdi, rbx
	call	validate_nnode@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L5
	cmp	QWORD PTR 24[rbx], 0
	je	.L17
	test	r14, r14
	je	.L11
.L19:
	mov	rax, QWORD PTR 16[r14]
	mov	QWORD PTR 8[rbp], r15
	sub	rax, 1
	mov	QWORD PTR 16[r15], rax
.L12:
	mov	QWORD PTR 8[r15], r14
	mov	DWORD PTR [r15], r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	r8d, DWORD PTR 32[rbx]
	mov	edi, DWORD PTR 36[rbx]
	mov	esi, r13d
	mov	ecx, DWORD PTR 4[rsp]
	mov	rdx, QWORD PTR 8[rsp]
	call	ubi_read@PLT
	mov	r8d, eax
	test	eax, eax
	je	.L18
.L5:
	mov	ecx, DWORD PTR 4[rsp]
	mov	esi, r8d
	mov	edx, r13d
	lea	rdi, .LC0[rip]
	mov	DWORD PTR 4[rsp], r8d
	call	ubifs_err@PLT
	mov	rdi, r15
	call	kfree@PLT
	mov	r8d, DWORD PTR 4[rsp]
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	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
	mov	eax, DWORD PTR 4[rdi]
	mov	r13d, DWORD PTR [rdi]
	xor	ebp, ebp
	mov	DWORD PTR 4[rsp], eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edx, r12d
	mov	rsi, r14
	mov	rdi, rbx
	call	calc_nnode_num_from_parent@PLT
	mov	QWORD PTR 24[r15], rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdx, r15
	mov	rdi, rbx
	call	ubifs_unpack_nnode@PLT
	mov	r8d, eax
	test	eax, eax
	je	.L8
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edx, r12d
	mov	rsi, r14
	mov	rdi, rbx
	mov	DWORD PTR 4[rsp], eax
	call	calc_nnode_num_from_parent@PLT
	mov	r8d, DWORD PTR 4[rsp]
	mov	QWORD PTR 24[r15], rax
	test	r14, r14
	jne	.L19
.L11:
	mov	rax, QWORD PTR 8[rbx]
	mov	QWORD PTR 16[rbx], r15
	mov	QWORD PTR 16[r15], rax
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	ubifs_read_nnode, .-ubifs_read_nnode
	.comm	GFP_NOFS,4,4
	.comm	ENOMEM,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_ubifs_read_nnode.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"error %d reading nnode at %d:%d\000"
	.text
	.align	2
	.global	ubifs_read_nnode
	.syntax unified
	.arm
	.fpu softvfp
	.type	ubifs_read_nnode, %function
ubifs_read_nnode:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0, #28]
	subs	r6, r1, #0
	sub	sp, sp, #20
	str	r3, [sp, #12]
	ldrne	r3, [r6, #16]
	mov	r8, r2
	ldmeq	r0, {r9, fp}
	addne	r2, r2, r2, lsl #1
	addne	r10, r3, r2, lsl #2
	ldrne	r9, [r3, r2, lsl #2]
	ldr	r3, .L19
	mov	r4, r0
	ldr	r1, [r3]
	mov	r0, #20
	moveq	r10, r6
	ldrne	fp, [r10, #4]
	bl	kzalloc
	subs	r5, r0, #0
	beq	.L16
	cmp	r9, #0
	bne	.L6
	ldr	r3, [r4, #16]
	cmp	r3, #0
	bne	.L17
.L8:
	mov	r3, r8
	mov	r2, r6
	mov	r1, r5
	mov	r0, r4
	bl	validate_nnode
	subs	r7, r0, #0
	bne	.L5
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L18
.L10:
	mov	r0, r7
	cmp	r6, #0
	ldrne	r3, [r6, #8]
	ldreq	r3, [r4, #8]
	subne	r3, r3, #1
	strne	r5, [r10, #8]
	streq	r5, [r4, #12]
	str	r3, [r5, #8]
	str	r6, [r5, #4]
	str	r8, [r5]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	ldr	r3, .L19+4
	ldr	r7, [r3]
	rsb	r7, r7, #0
.L5:
	mov	r3, fp
	mov	r2, r9
	mov	r1, r7
	ldr	r0, .L19+8
	bl	ubifs_err
	mov	r0, r5
	bl	kfree
	mov	r0, r7
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	ldr	r2, [r4, #20]
	mov	r3, fp
	str	r2, [sp]
	mov	r1, r9
	ldr	r2, [sp, #12]
	ldr	r0, [r4, #24]
	bl	ubi_read
	subs	r7, r0, #0
	bne	.L5
	mov	r2, r5
	mov	r0, r4
	ldr	r1, [sp, #12]
	bl	ubifs_unpack_nnode
	subs	r7, r0, #0
	beq	.L8
	b	.L5
.L17:
	mov	r2, r8
	mov	r1, r6
	mov	r0, r4
	bl	calc_nnode_num_from_parent
	str	r0, [r5, #12]
	b	.L8
.L18:
	mov	r2, r8
	mov	r1, r6
	mov	r0, r4
	bl	calc_nnode_num_from_parent
	str	r0, [r5, #12]
	b	.L10
.L20:
	.align	2
.L19:
	.word	GFP_NOFS
	.word	ENOMEM
	.word	.LC0
	.size	ubifs_read_nnode, .-ubifs_read_nnode
	.comm	GFP_NOFS,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
