	.file	"extr_db.c_execute_insert.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	execute_insert
	.type	execute_insert, @function
execute_insert:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13, QWORD PTR [rdi]
	mov	rdi, r12
	mov	rsi, r13
	call	table_find@PLT
	mov	edi, DWORD PTR [r12]
	mov	esi, DWORD PTR 8[rax]
	mov	rbp, rax
	call	get_page@PLT
	mov	rdi, rax
	mov	r12, rax
	call	leaf_node_num_cells@PLT
	mov	rsi, QWORD PTR 0[rbp]
	cmp	rsi, QWORD PTR [rax]
	jge	.L2
	mov	rdi, r12
	call	leaf_node_key@PLT
	cmp	r13, QWORD PTR [rax]
	je	.L6
.L2:
	mov	rsi, QWORD PTR [rbx]
	mov	rdx, rbx
	mov	rdi, rbp
	call	leaf_node_insert@PLT
	mov	rdi, rbp
	call	free@PLT
	mov	eax, DWORD PTR EXECUTE_SUCCESS[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	eax, DWORD PTR EXECUTE_DUPLICATE_KEY[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	execute_insert, .-execute_insert
	.comm	EXECUTE_SUCCESS,4,4
	.comm	EXECUTE_DUPLICATE_KEY,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_db.c_execute_insert.c"
	.text
	.align	2
	.global	execute_insert
	.syntax unified
	.arm
	.fpu softvfp
	.type	execute_insert, %function
execute_insert:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, [r0]
	mov	r5, r1
	mov	r6, r0
	mov	r0, r1
	mov	r1, r7
	bl	table_find
	mov	r4, r0
	ldr	r0, [r5]
	ldr	r1, [r4, #4]
	bl	get_page
	mov	r5, r0
	bl	leaf_node_num_cells
	ldr	r1, [r4]
	ldr	r3, [r0]
	cmp	r1, r3
	bge	.L2
	mov	r0, r5
	bl	leaf_node_key
	ldr	r3, [r0]
	cmp	r7, r3
	beq	.L6
.L2:
	mov	r2, r6
	ldr	r1, [r6]
	mov	r0, r4
	bl	leaf_node_insert
	mov	r0, r4
	bl	free
	ldr	r3, .L7
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r3, .L7+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	EXECUTE_SUCCESS
	.word	EXECUTE_DUPLICATE_KEY
	.size	execute_insert, .-execute_insert
	.comm	EXECUTE_SUCCESS,4,4
	.comm	EXECUTE_DUPLICATE_KEY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
