	.file	"extr_jfs_dmap.c_dbInitTree.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dbInitTree, @function
dbInitTree:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, 1
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR [rdi]
	mov	edi, DWORD PTR 20[rdi]
	mov	QWORD PTR 16[rsp], rax
	call	le32_to_cpu@PLT
	mov	r14d, DWORD PTR 8[r15]
	add	eax, r14d
	mov	DWORD PTR 24[rsp], r14d
	mov	DWORD PTR 28[rsp], eax
	cmp	r14d, eax
	jge	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, DWORD PTR 16[r15]
	mov	ebp, ebx
	add	ebx, ebx
	xor	r14d, r14d
	movsx	r12, ebx
	call	le32_to_cpu@PLT
	mov	rsi, QWORD PTR 16[rsp]
	sal	r12, 2
	cdqe
	lea	r13, [rsi+rax*4]
	movsx	rax, ebp
	sal	rax, 2
	mov	QWORD PTR 8[rsp], rax
	mov	eax, DWORD PTR 24[rsp]
	mov	ebp, eax
	add	eax, 1
	mov	DWORD PTR 24[rsp], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	add	r14d, ebx
	add	r13, r12
.L5:
	mov	edi, DWORD PTR 12[r15]
	call	le32_to_cpu@PLT
	cmp	eax, r14d
	jle	.L20
	cmp	DWORD PTR 0[r13], ebp
	jne	.L6
	mov	rax, QWORD PTR 8[rsp]
	cmp	DWORD PTR 0[r13+rax], ebp
	jne	.L6
	mov	eax, DWORD PTR 24[rsp]
	mov	DWORD PTR 0[r13], eax
	mov	rax, QWORD PTR 8[rsp]
	mov	DWORD PTR 0[r13+rax], -1
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L20:
	mov	esi, DWORD PTR 28[rsp]
	cmp	DWORD PTR 24[rsp], esi
	jne	.L8
.L9:
	mov	edi, DWORD PTR 16[r15]
	call	le32_to_cpu@PLT
	mov	edi, DWORD PTR 12[r15]
	mov	r14d, eax
	call	le32_to_cpu@PLT
	sar	eax, 2
	mov	r13d, eax
	test	eax, eax
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	movsx	rdx, r14d
	mov	rcx, QWORD PTR 16[rsp]
	xor	ebx, ebx
	lea	r14d, -1[rdx]
	sar	r14d, 2
	lea	r12, [rcx+rdx*4]
	movsx	rax, r14d
	lea	rbp, [rcx+rax*4]
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, r12
	add	ebx, 1
	add	r12, 16
	add	rbp, 4
	call	TREEMAX@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	ebx, r13d
	jl	.L10
	sar	r13d, 2
	jne	.L3
.L4:
	mov	rax, QWORD PTR 16[rsp]
	mov	eax, DWORD PTR [rax]
	add	rsp, 40
	.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
	.cfi_endproc
.LFE0:
	.size	dbInitTree, .-dbInitTree
	.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_jfs_dmap.c_dbInitTree.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dbInitTree, %function
dbInitTree:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r0
	ldr	r3, [r6]
	sub	sp, sp, #12
	ldr	r0, [r0, #16]
	str	r3, [sp]
	bl	le32_to_cpu
	ldr	r9, [r6, #4]
	add	r3, r0, r9
	cmp	r9, r3
	movlt	r4, #1
	str	r3, [sp, #4]
	bge	.L9
.L8:
	ldr	r0, [r6, #12]
	bl	le32_to_cpu
	mov	r8, r4
	ldr	r3, [sp]
	lsl	r4, r4, #1
	mov	r5, r9
	mov	fp, #0
	add	r10, r3, r0, lsl #2
	lsl	r8, r8, #2
	lsl	r7, r4, #2
	add	r9, r9, #1
	b	.L5
.L7:
	ldr	r1, [r10]
	add	fp, fp, r4
	cmp	r1, r5
	bne	.L6
	ldr	r1, [r10, r8]
	cmp	r1, r5
	mvneq	r3, #0
	streq	r9, [r10]
	streq	r3, [r10, r8]
.L6:
	add	r10, r10, r7
.L5:
	ldr	r0, [r6, #8]
	bl	le32_to_cpu
	cmp	r0, fp
	bgt	.L7
	ldr	r3, [sp, #4]
	cmp	r9, r3
	bne	.L8
.L9:
	ldr	r0, [r6, #12]
	bl	le32_to_cpu
	mov	r8, r0
	ldr	r0, [r6, #8]
	bl	le32_to_cpu
	asr	r7, r0, #2
	cmp	r7, #0
	ble	.L4
.L3:
	mov	r4, r8
	mov	r5, #0
	ldr	r3, [sp]
	sub	r8, r8, #1
	bic	r6, r8, #3
	add	r4, r3, r4, lsl #2
	add	r6, r3, r6
	asr	r8, r8, #2
.L10:
	mov	r0, r4
	bl	TREEMAX
	add	r5, r5, #1
	cmp	r5, r7
	str	r0, [r6], #4
	add	r4, r4, #16
	blt	.L10
	asrs	r7, r7, #2
	bne	.L3
.L4:
	ldr	r3, [sp]
	ldr	r0, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
	.size	dbInitTree, .-dbInitTree
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
