	.file	"extr_dm-table.c_setup_btree_index.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	setup_btree_index, @function
setup_btree_index:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	eax, edi
	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
	lea	rbx, 0[0+rax*4]
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rdx, QWORD PTR [rsi]
	mov	DWORD PTR 12[rsp], eax
	mov	edx, DWORD PTR [rdx+rax*4]
	mov	QWORD PTR [rsp], rbx
	test	edx, edx
	je	.L12
	mov	r12, rsi
	xor	ebx, ebx
	lea	r13d, 1[rax]
	.p2align 4,,10
	.p2align 3
.L2:
	mov	esi, DWORD PTR 12[rsp]
	mov	edx, ebx
	mov	rdi, r12
	xor	r15d, r15d
	call	get_node@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR KEYS_PER_NODE[rip]
	test	eax, eax
	je	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, r15d
	mov	edi, ebx
	call	get_child@PLT
	mov	esi, r13d
	mov	rdi, r12
	mov	edx, eax
	mov	eax, r15d
	add	r15d, 1
	lea	r14, 0[rbp+rax*4]
	call	high@PLT
	mov	DWORD PTR [r14], eax
	cmp	DWORD PTR KEYS_PER_NODE[rip], r15d
	ja	.L5
.L6:
	mov	rax, QWORD PTR [r12]
	mov	rcx, QWORD PTR [rsp]
	add	ebx, 1
	cmp	DWORD PTR [rax+rcx], ebx
	ja	.L2
.L12:
	add	rsp, 24
	.cfi_def_cfa_offset 56
	xor	eax, 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
	ret
	.cfi_endproc
.LFE0:
	.size	setup_btree_index, .-setup_btree_index
	.comm	KEYS_PER_NODE,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_dm-table.c_setup_btree_index.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_btree_index, %function
setup_btree_index:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r1]
	ldr	r3, [r3, r0, lsl #2]
	cmp	r3, #0
	beq	.L10
	mov	r7, r1
	mov	r9, r0
	mov	r6, #0
	ldr	fp, .L13
	lsl	r10, r0, #2
	add	r8, r0, #1
.L2:
	mov	r2, r6
	mov	r1, r9
	mov	r0, r7
	bl	get_node
	ldr	r3, [fp]
	cmp	r3, #0
	movne	r4, #0
	subne	r5, r0, #4
	beq	.L6
.L5:
	mov	r1, r4
	mov	r0, r6
	bl	get_child
	mov	r1, r8
	mov	r2, r0
	mov	r0, r7
	bl	high
	str	r0, [r5, #4]!
	ldr	r3, [fp]
	add	r4, r4, #1
	cmp	r3, r4
	bhi	.L5
.L6:
	ldr	r3, [r7]
	add	r6, r6, #1
	ldr	r3, [r3, r10]
	cmp	r3, r6
	bhi	.L2
.L10:
	mov	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	.align	2
.L13:
	.word	KEYS_PER_NODE
	.size	setup_btree_index, .-setup_btree_index
	.comm	KEYS_PER_NODE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
