	.file	"1199983.c"
	.intel_syntax noprefix
	.text
	.globl	ID_SIZE
	.section	.rodata
	.align 4
	.type	ID_SIZE, @object
	.size	ID_SIZE, 4
ID_SIZE:
	.long	4
	.globl	USERNAME_SIZE
	.align 4
	.type	USERNAME_SIZE, @object
	.size	USERNAME_SIZE, 4
USERNAME_SIZE:
	.long	33
	.globl	EMAIL_SIZE
	.align 4
	.type	EMAIL_SIZE, @object
	.size	EMAIL_SIZE, 4
EMAIL_SIZE:
	.long	256
	.globl	ID_OFFSET
	.align 4
	.type	ID_OFFSET, @object
	.size	ID_OFFSET, 4
ID_OFFSET:
	.zero	4
	.globl	USERNAME_OFFSET
	.align 4
	.type	USERNAME_OFFSET, @object
	.size	USERNAME_OFFSET, 4
USERNAME_OFFSET:
	.long	4
	.globl	EMAIL_OFFSET
	.align 4
	.type	EMAIL_OFFSET, @object
	.size	EMAIL_OFFSET, 4
EMAIL_OFFSET:
	.long	37
	.globl	ROW_SIZE
	.align 4
	.type	ROW_SIZE, @object
	.size	ROW_SIZE, 4
ROW_SIZE:
	.long	293
	.globl	PAGE_SIZE
	.align 4
	.type	PAGE_SIZE, @object
	.size	PAGE_SIZE, 4
PAGE_SIZE:
	.long	4096
	.text
	.globl	new_input_buffer
	.type	new_input_buffer, @function
new_input_buffer:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	new_input_buffer, .-new_input_buffer
	.globl	NODE_TYPE_SIZE
	.section	.rodata
	.align 4
	.type	NODE_TYPE_SIZE, @object
	.size	NODE_TYPE_SIZE, 4
NODE_TYPE_SIZE:
	.long	1
	.globl	NODE_TYPE_OFFSET
	.align 4
	.type	NODE_TYPE_OFFSET, @object
	.size	NODE_TYPE_OFFSET, 4
NODE_TYPE_OFFSET:
	.zero	4
	.globl	IS_ROOT_SIZE
	.align 4
	.type	IS_ROOT_SIZE, @object
	.size	IS_ROOT_SIZE, 4
IS_ROOT_SIZE:
	.long	1
	.globl	IS_ROOT_OFFSET
	.align 4
	.type	IS_ROOT_OFFSET, @object
	.size	IS_ROOT_OFFSET, 4
IS_ROOT_OFFSET:
	.long	1
	.globl	PARENT_POINTER_SIZE
	.align 4
	.type	PARENT_POINTER_SIZE, @object
	.size	PARENT_POINTER_SIZE, 4
PARENT_POINTER_SIZE:
	.long	4
	.globl	PARENT_POINTER_OFFSET
	.align 4
	.type	PARENT_POINTER_OFFSET, @object
	.size	PARENT_POINTER_OFFSET, 4
PARENT_POINTER_OFFSET:
	.long	2
	.globl	COMMON_NODE_HEADER_SIZE
	.align 4
	.type	COMMON_NODE_HEADER_SIZE, @object
	.size	COMMON_NODE_HEADER_SIZE, 4
COMMON_NODE_HEADER_SIZE:
	.long	6
	.globl	LEAF_NODE_NUM_CELLS_SIZE
	.align 4
	.type	LEAF_NODE_NUM_CELLS_SIZE, @object
	.size	LEAF_NODE_NUM_CELLS_SIZE, 4
LEAF_NODE_NUM_CELLS_SIZE:
	.long	4
	.globl	LEAF_NODE_NUM_CELLS_OFFSET
	.align 4
	.type	LEAF_NODE_NUM_CELLS_OFFSET, @object
	.size	LEAF_NODE_NUM_CELLS_OFFSET, 4
LEAF_NODE_NUM_CELLS_OFFSET:
	.long	6
	.globl	LEAF_NODE_NEXT_LEAF_SIZE
	.align 4
	.type	LEAF_NODE_NEXT_LEAF_SIZE, @object
	.size	LEAF_NODE_NEXT_LEAF_SIZE, 4
LEAF_NODE_NEXT_LEAF_SIZE:
	.long	4
	.globl	LEAF_NODE_NEXT_LEAF_OFFSET
	.align 4
	.type	LEAF_NODE_NEXT_LEAF_OFFSET, @object
	.size	LEAF_NODE_NEXT_LEAF_OFFSET, 4
LEAF_NODE_NEXT_LEAF_OFFSET:
	.long	10
	.globl	LEAF_NODE_HEADER_SIZE
	.align 4
	.type	LEAF_NODE_HEADER_SIZE, @object
	.size	LEAF_NODE_HEADER_SIZE, 4
LEAF_NODE_HEADER_SIZE:
	.long	14
	.globl	LEAF_NODE_KEY_SIZE
	.align 4
	.type	LEAF_NODE_KEY_SIZE, @object
	.size	LEAF_NODE_KEY_SIZE, 4
LEAF_NODE_KEY_SIZE:
	.long	4
	.globl	LEAF_NODE_KEY_OFFSET
	.align 4
	.type	LEAF_NODE_KEY_OFFSET, @object
	.size	LEAF_NODE_KEY_OFFSET, 4
LEAF_NODE_KEY_OFFSET:
	.zero	4
	.globl	LEAF_NODE_VALUE_SIZE
	.align 4
	.type	LEAF_NODE_VALUE_SIZE, @object
	.size	LEAF_NODE_VALUE_SIZE, 4
LEAF_NODE_VALUE_SIZE:
	.long	293
	.globl	LEAF_NODE_VALUE_OFFSET
	.align 4
	.type	LEAF_NODE_VALUE_OFFSET, @object
	.size	LEAF_NODE_VALUE_OFFSET, 4
LEAF_NODE_VALUE_OFFSET:
	.long	4
	.globl	LEAF_NODE_CELL_SIZE
	.align 4
	.type	LEAF_NODE_CELL_SIZE, @object
	.size	LEAF_NODE_CELL_SIZE, 4
LEAF_NODE_CELL_SIZE:
	.long	297
	.globl	LEAF_NODE_SPACE_FOR_CELLS
	.align 4
	.type	LEAF_NODE_SPACE_FOR_CELLS, @object
	.size	LEAF_NODE_SPACE_FOR_CELLS, 4
LEAF_NODE_SPACE_FOR_CELLS:
	.long	4082
	.globl	LEAF_NODE_MAX_CELLS
	.align 4
	.type	LEAF_NODE_MAX_CELLS, @object
	.size	LEAF_NODE_MAX_CELLS, 4
LEAF_NODE_MAX_CELLS:
	.long	13
	.globl	INTERNAL_NODE_NUM_KEYS_SIZE
	.align 4
	.type	INTERNAL_NODE_NUM_KEYS_SIZE, @object
	.size	INTERNAL_NODE_NUM_KEYS_SIZE, 4
INTERNAL_NODE_NUM_KEYS_SIZE:
	.long	4
	.globl	INTERNAL_NODE_NUM_KEYS_OFFSET
	.align 4
	.type	INTERNAL_NODE_NUM_KEYS_OFFSET, @object
	.size	INTERNAL_NODE_NUM_KEYS_OFFSET, 4
INTERNAL_NODE_NUM_KEYS_OFFSET:
	.long	6
	.globl	INTERNAL_NODE_RIGHT_CHILD_SIZE
	.align 4
	.type	INTERNAL_NODE_RIGHT_CHILD_SIZE, @object
	.size	INTERNAL_NODE_RIGHT_CHILD_SIZE, 4
INTERNAL_NODE_RIGHT_CHILD_SIZE:
	.long	4
	.globl	INTERNAL_NODE_RIGHT_CHILD_OFFSET
	.align 4
	.type	INTERNAL_NODE_RIGHT_CHILD_OFFSET, @object
	.size	INTERNAL_NODE_RIGHT_CHILD_OFFSET, 4
INTERNAL_NODE_RIGHT_CHILD_OFFSET:
	.long	10
	.globl	INTERNAL_NODE_HEADER_SIZE
	.align 4
	.type	INTERNAL_NODE_HEADER_SIZE, @object
	.size	INTERNAL_NODE_HEADER_SIZE, 4
INTERNAL_NODE_HEADER_SIZE:
	.long	14
	.globl	INTERNAL_NODE_KEY_SIZE
	.align 4
	.type	INTERNAL_NODE_KEY_SIZE, @object
	.size	INTERNAL_NODE_KEY_SIZE, 4
INTERNAL_NODE_KEY_SIZE:
	.long	4
	.globl	INTERNAL_NODE_CHILD_SIZE
	.align 4
	.type	INTERNAL_NODE_CHILD_SIZE, @object
	.size	INTERNAL_NODE_CHILD_SIZE, 4
INTERNAL_NODE_CHILD_SIZE:
	.long	4
	.globl	INTERNAL_NODE_CELL_SIZE
	.align 4
	.type	INTERNAL_NODE_CELL_SIZE, @object
	.size	INTERNAL_NODE_CELL_SIZE, 4
INTERNAL_NODE_CELL_SIZE:
	.long	8
	.globl	INTERNAL_NODE_MAX_CELLS
	.align 4
	.type	INTERNAL_NODE_MAX_CELLS, @object
	.size	INTERNAL_NODE_MAX_CELLS, 4
INTERNAL_NODE_MAX_CELLS:
	.long	3
	.text
	.globl	get_node_type
	.type	get_node_type, @function
get_node_type:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, 0
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -1[rbp], al
	movzx	eax, BYTE PTR -1[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_node_type, .-get_node_type
	.globl	set_node_type
	.type	set_node_type, @function
set_node_type:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	eax, DWORD PTR -28[rbp]
	mov	BYTE PTR -1[rbp], al
	mov	eax, 0
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -1[rbp]
	mov	BYTE PTR [rdx], al
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	set_node_type, .-set_node_type
	.globl	leaf_node_num_cells
	.type	leaf_node_num_cells, @function
leaf_node_num_cells:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	eax, 6
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	leaf_node_num_cells, .-leaf_node_num_cells
	.globl	internal_node_num_keys
	.type	internal_node_num_keys, @function
internal_node_num_keys:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	eax, 6
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	internal_node_num_keys, .-internal_node_num_keys
	.globl	leaf_node_cell
	.type	leaf_node_cell, @function
leaf_node_cell:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	eax, 14
	mov	edx, eax
	mov	eax, 297
	imul	eax, DWORD PTR -12[rbp]
	mov	eax, eax
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	leaf_node_cell, .-leaf_node_cell
	.globl	leaf_node_key
	.type	leaf_node_key, @function
leaf_node_key:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	leaf_node_cell
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	leaf_node_key, .-leaf_node_key
	.globl	leaf_node_value
	.type	leaf_node_value, @function
leaf_node_value:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	leaf_node_cell
	mov	edx, 4
	mov	edx, edx
	add	rax, rdx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	leaf_node_value, .-leaf_node_value
	.globl	leaf_node_next_leaf
	.type	leaf_node_next_leaf, @function
leaf_node_next_leaf:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	eax, 10
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	leaf_node_next_leaf, .-leaf_node_next_leaf
	.globl	is_node_root
	.type	is_node_root, @function
is_node_root:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, 1
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -1[rbp], al
	cmp	BYTE PTR -1[rbp], 0
	setne	al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	is_node_root, .-is_node_root
	.globl	set_node_root
	.type	set_node_root, @function
set_node_root:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, esi
	mov	BYTE PTR -28[rbp], al
	movzx	eax, BYTE PTR -28[rbp]
	mov	BYTE PTR -1[rbp], al
	mov	eax, 1
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -1[rbp]
	mov	BYTE PTR [rdx], al
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	set_node_root, .-set_node_root
	.globl	node_parent
	.type	node_parent, @function
node_parent:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	eax, 2
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	node_parent, .-node_parent
	.globl	initialize_leaf_node
	.type	initialize_leaf_node, @function
initialize_leaf_node:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 8
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	set_node_type
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	set_node_root
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	leaf_node_num_cells
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	leaf_node_next_leaf
	mov	DWORD PTR [rax], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	initialize_leaf_node, .-initialize_leaf_node
	.globl	initialize_internal_node
	.type	initialize_internal_node, @function
initialize_internal_node:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 8
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	set_node_type
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	set_node_root
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	internal_node_num_keys
	mov	DWORD PTR [rax], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	initialize_internal_node, .-initialize_internal_node
	.globl	internal_node_right_child
	.type	internal_node_right_child, @function
internal_node_right_child:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	eax, 10
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	internal_node_right_child, .-internal_node_right_child
	.globl	internal_node_cell
	.type	internal_node_cell, @function
internal_node_cell:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	eax, 14
	mov	edx, eax
	mov	eax, 8
	imul	eax, DWORD PTR -12[rbp]
	mov	eax, eax
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	internal_node_cell, .-internal_node_cell
	.section	.rodata
	.align 8
.LC0:
	.string	"Tried to access child_num %d > num_keys %d\n"
	.text
	.globl	internal_node_child
	.type	internal_node_child, @function
internal_node_child:
.LFB22:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	internal_node_num_keys
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jbe	.L30
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L30:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jne	.L31
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	internal_node_right_child
	jmp	.L32
.L31:
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	internal_node_cell
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	internal_node_child, .-internal_node_child
	.globl	internal_node_key
	.type	internal_node_key, @function
internal_node_key:
.LFB23:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	internal_node_cell
	mov	edx, 4
	mov	edx, edx
	add	rax, rdx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	internal_node_key, .-internal_node_key
	.globl	internal_node_find_child
	.type	internal_node_find_child, @function
internal_node_find_child:
.LFB24:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	internal_node_num_keys
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
	mov	DWORD PTR -8[rbp], 0
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	internal_node_find_child, .-internal_node_find_child
	.globl	update_internal_node_key
	.type	update_internal_node_key, @function
update_internal_node_key:
.LFB25:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	internal_node_find_child
	mov	DWORD PTR -4[rbp], eax
	mov	edx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	internal_node_key
	mov	edx, DWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE25:
	.size	update_internal_node_key, .-update_internal_node_key
	.globl	get_node_max_key
	.type	get_node_max_key, @function
get_node_max_key:
.LFB26:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 8
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	get_node_type
	test	eax, eax
	je	.L39
	cmp	eax, 1
	je	.L40
	jmp	.L43
.L39:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	internal_node_num_keys
	mov	eax, DWORD PTR [rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	internal_node_key
	mov	eax, DWORD PTR [rax]
	jmp	.L38
.L40:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	leaf_node_num_cells
	mov	eax, DWORD PTR [rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	leaf_node_key
	mov	eax, DWORD PTR [rax]
	jmp	.L38
.L43:
.L38:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE26:
	.size	get_node_max_key, .-get_node_max_key
	.section	.rodata
.LC1:
	.string	"Unable to open file %s\n"
	.align 8
.LC2:
	.string	"Db file is not a whole number of pages. Corrupt file."
	.text
	.globl	pager_open
	.type	pager_open, @function
pager_open:
.LFB27:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 384
	mov	esi, 66
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	jne	.L45
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L45:
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	edi, 816
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	eax, 4096
	mov	ecx, eax
	mov	rax, QWORD PTR -16[rbp]
	cqo
	idiv	rcx
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	eax, 4096
	mov	ecx, eax
	mov	rax, QWORD PTR -16[rbp]
	cqo
	idiv	rcx
	mov	rax, rdx
	test	rax, rax
	je	.L46
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L46:
	mov	DWORD PTR -24[rbp], 0
	jmp	.L47
.L48:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -24[rbp]
	add	rdx, 2
	mov	QWORD PTR [rax+rdx*8], 0
	add	DWORD PTR -24[rbp], 1
.L47:
	cmp	DWORD PTR -24[rbp], 99
	jbe	.L48
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE27:
	.size	pager_open, .-pager_open
	.section	.rodata
	.align 8
.LC3:
	.string	"Attempted fetch on out-of-bounds page number. %d > %d\n"
.LC4:
	.string	"Error reading file: %d\n"
	.text
	.globl	get_page
	.type	get_page, @function
get_page:
.LFB28:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	cmp	DWORD PTR -44[rbp], 100
	jbe	.L51
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, 100
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L51:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -44[rbp]
	add	rdx, 2
	mov	rax, QWORD PTR [rax+rdx*8]
	test	rax, rax
	jne	.L52
	mov	eax, 4096
	mov	eax, eax
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, 4096
	mov	edx, 0
	div	esi
	mov	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	ecx, 4096
	mov	edx, 0
	div	ecx
	mov	eax, edx
	test	eax, eax
	je	.L53
	add	DWORD PTR -20[rbp], 1
.L53:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	ja	.L54
	mov	eax, 4096
	imul	eax, DWORD PTR -44[rbp]
	mov	ecx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	mov	eax, 4096
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], -1
	jne	.L54
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L54:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -44[rbp]
	lea	rcx, 2[rdx]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax+rcx*8], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	DWORD PTR -44[rbp], eax
	jb	.L52
	mov	eax, DWORD PTR -44[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 8[rax], edx
.L52:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -44[rbp]
	add	rdx, 2
	mov	rax, QWORD PTR [rax+rdx*8]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE28:
	.size	get_page, .-get_page
	.section	.rodata
	.align 8
.LC5:
	.string	"Fatal: Tried to flush NULL page"
.LC6:
	.string	"Fatal: Error seeking: %d\n"
.LC7:
	.string	"Fatal: Write error: %d\n"
	.text
	.globl	pager_flush
	.type	pager_flush, @function
pager_flush:
.LFB29:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -28[rbp]
	add	rdx, 2
	mov	rax, QWORD PTR [rax+rdx*8]
	test	rax, rax
	jne	.L57
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L57:
	mov	eax, 4096
	imul	eax, DWORD PTR -28[rbp]
	mov	ecx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], -1
	jne	.L58
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L58:
	mov	eax, 4096
	mov	esi, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -28[rbp]
	add	rdx, 2
	mov	rcx, QWORD PTR [rax+rdx*8]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rdx, rsi
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], -1
	jne	.L60
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L60:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE29:
	.size	pager_flush, .-pager_flush
	.globl	db_open
	.type	db_open, @function
db_open:
.LFB30:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	pager_open
	mov	QWORD PTR -24[rbp], rax
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 4[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	jne	.L62
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	get_page
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	initialize_leaf_node
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	set_node_root
.L62:
	mov	rax, QWORD PTR -16[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE30:
	.size	db_open, .-db_open
	.section	.rodata
.LC8:
	.string	"Fatal: Error closing db file."
	.text
	.globl	db_close
	.type	db_close, @function
db_close:
.LFB31:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -28[rbp], 0
	jmp	.L65
.L68:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -28[rbp]
	add	rdx, 2
	mov	rax, QWORD PTR [rax+rdx*8]
	test	rax, rax
	je	.L73
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	pager_flush
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -28[rbp]
	add	rdx, 2
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -28[rbp]
	add	rdx, 2
	mov	QWORD PTR [rax+rdx*8], 0
	jmp	.L67
.L73:
	nop
.L67:
	add	DWORD PTR -28[rbp], 1
.L65:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	DWORD PTR -28[rbp], eax
	jb	.L68
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	jne	.L69
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L69:
	mov	DWORD PTR -24[rbp], 0
	jmp	.L70
.L72:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -24[rbp]
	add	rdx, 2
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L71
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -24[rbp]
	add	rdx, 2
	mov	QWORD PTR [rax+rdx*8], 0
.L71:
	add	DWORD PTR -24[rbp], 1
.L70:
	cmp	DWORD PTR -24[rbp], 99
	jbe	.L72
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE31:
	.size	db_close, .-db_close
	.globl	leaf_node_find
	.type	leaf_node_find, @function
leaf_node_find:
.LFB32:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	mov	DWORD PTR -64[rbp], edx
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR -60[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	get_page
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	leaf_node_num_cells
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -28[rbp], eax
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -60[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	DWORD PTR -36[rbp], 0
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -32[rbp], eax
	jmp	.L75
.L79:
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	shr	eax
	mov	DWORD PTR -24[rbp], eax
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	leaf_node_key
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -64[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jne	.L76
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -24[rbp]
	mov	DWORD PTR 12[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L77
.L76:
	mov	eax, DWORD PTR -64[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jnb	.L78
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -32[rbp], eax
	jmp	.L75
.L78:
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 1
	mov	DWORD PTR -36[rbp], eax
.L75:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jne	.L79
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	DWORD PTR 12[rax], edx
	mov	rax, QWORD PTR -8[rbp]
.L77:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE32:
	.size	leaf_node_find, .-leaf_node_find
	.globl	internal_node_find
	.type	internal_node_find, @function
internal_node_find:
.LFB33:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -48[rbp], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR -44[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	get_page
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	internal_node_num_keys
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -28[rbp], eax
	mov	edx, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	internal_node_find_child
	mov	DWORD PTR -24[rbp], eax
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	internal_node_child
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	get_page
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	get_node_type
	test	eax, eax
	je	.L81
	cmp	eax, 1
	jne	.L82
	mov	edx, DWORD PTR -48[rbp]
	mov	ecx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	leaf_node_find
	jmp	.L80
.L81:
	mov	edx, DWORD PTR -48[rbp]
	mov	ecx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	internal_node_find
	jmp	.L80
.L82:
.L80:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE33:
	.size	internal_node_find, .-internal_node_find
	.globl	table_find
	.type	table_find, @function
table_find:
.LFB34:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	get_page
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	get_node_type
	cmp	eax, 1
	jne	.L85
	mov	edx, DWORD PTR -28[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	leaf_node_find
	jmp	.L86
.L85:
	mov	edx, DWORD PTR -28[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	internal_node_find
.L86:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE34:
	.size	table_find, .-table_find
	.globl	table_start
	.type	table_start, @function
table_start:
.LFB35:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	table_find
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	esi, edx
	mov	rdi, rax
	call	get_page
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	leaf_node_num_cells
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	sete	dl
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR 16[rax], dl
	mov	rax, QWORD PTR -16[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE35:
	.size	table_start, .-table_start
	.globl	cursor_advance
	.type	cursor_advance, @function
cursor_advance:
.LFB36:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR -32[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR -32[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	get_page
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 12[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 12[rax], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	ebx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	leaf_node_num_cells
	mov	eax, DWORD PTR [rax]
	cmp	ebx, eax
	jb	.L92
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	leaf_node_next_leaf
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	jne	.L91
	mov	rax, QWORD PTR -40[rbp]
	mov	BYTE PTR 16[rax], 1
	jmp	.L92
.L91:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 12[rax], 0
.L92:
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE36:
	.size	cursor_advance, .-cursor_advance
	.globl	cursor_value
	.type	cursor_value, @function
cursor_value:
.LFB37:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	get_page
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	leaf_node_value
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE37:
	.size	cursor_value, .-cursor_value
	.globl	get_unused_page_num
	.type	get_unused_page_num, @function
get_unused_page_num:
.LFB38:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE38:
	.size	get_unused_page_num, .-get_unused_page_num
	.globl	serialize_row
	.type	serialize_row, @function
serialize_row:
.LFB39:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	eax, 4
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, 0
	mov	esi, ecx
	mov	rcx, QWORD PTR -16[rbp]
	add	rcx, rsi
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	eax, 33
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, 4[rax]
	mov	eax, 4
	mov	esi, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rsi
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	eax, 256
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, 37[rax]
	mov	eax, 37
	mov	esi, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rsi
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE39:
	.size	serialize_row, .-serialize_row
	.globl	deserialize_row
	.type	deserialize_row, @function
deserialize_row:
.LFB40:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	eax, 4
	mov	edx, eax
	mov	eax, 0
	mov	ecx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, 33
	mov	edx, eax
	mov	eax, 4
	mov	ecx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 4
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, 256
	mov	edx, eax
	mov	eax, 37
	mov	ecx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 37
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE40:
	.size	deserialize_row, .-deserialize_row
	.section	.rodata
.LC9:
	.string	"(%d, %s, %s)\n"
	.text
	.globl	print_row
	.type	print_row, @function
print_row:
.LFB41:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, 37[rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE41:
	.size	print_row, .-print_row
	.globl	create_new_root
	.type	create_new_root, @function
create_new_root:
.LFB42:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	esi, edx
	mov	rdi, rax
	call	get_page
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR -44[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	get_page
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	get_unused_page_num
	mov	DWORD PTR -32[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR -32[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	get_page
	mov	QWORD PTR -8[rbp], rax
	mov	eax, 4096
	mov	edx, eax
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	set_node_root
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	initialize_internal_node
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	set_node_root
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	internal_node_num_keys
	mov	DWORD PTR [rax], 1
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	internal_node_child
	mov	edx, DWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	get_node_max_key
	mov	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	internal_node_key
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	internal_node_right_child
	mov	edx, DWORD PTR -44[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	node_parent
	mov	rdx, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 4[rdx]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	node_parent
	mov	rdx, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 4[rdx]
	mov	DWORD PTR [rax], edx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE42:
	.size	create_new_root, .-create_new_root
	.globl	LEAF_NODE_RIGHT_SPLIT_COUNT
	.section	.rodata
	.align 4
	.type	LEAF_NODE_RIGHT_SPLIT_COUNT, @object
	.size	LEAF_NODE_RIGHT_SPLIT_COUNT, 4
LEAF_NODE_RIGHT_SPLIT_COUNT:
	.long	7
	.globl	LEAF_NODE_LEFT_SPLIT_COUNT
	.align 4
	.type	LEAF_NODE_LEFT_SPLIT_COUNT, @object
	.size	LEAF_NODE_LEFT_SPLIT_COUNT, 4
LEAF_NODE_LEFT_SPLIT_COUNT:
	.long	7
	.align 8
.LC10:
	.string	"Need to implement splitting internal node"
	.text
	.globl	internal_node_insert
	.type	internal_node_insert, @function
internal_node_insert:
.LFB43:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 88
	.cfi_offset 3, -24
	mov	QWORD PTR -88[rbp], rdi
	mov	DWORD PTR -92[rbp], esi
	mov	DWORD PTR -96[rbp], edx
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR -92[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	get_page
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR -96[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	get_page
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	get_node_max_key
	mov	DWORD PTR -72[rbp], eax
	mov	edx, DWORD PTR -72[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	internal_node_find_child
	mov	DWORD PTR -68[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	internal_node_num_keys
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -64[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	internal_node_num_keys
	mov	edx, DWORD PTR -64[rbp]
	add	edx, 1
	mov	DWORD PTR [rax], edx
	mov	eax, 3
	cmp	DWORD PTR -64[rbp], eax
	jb	.L102
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L102:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	internal_node_right_child
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -60[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR -60[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	get_page
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	get_node_max_key
	cmp	DWORD PTR -72[rbp], eax
	jbe	.L103
	mov	edx, DWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	internal_node_child
	mov	edx, DWORD PTR -60[rbp]
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	internal_node_key
	mov	rbx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	get_node_max_key
	mov	DWORD PTR [rbx], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	internal_node_right_child
	mov	edx, DWORD PTR -96[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L107
.L103:
	mov	eax, DWORD PTR -64[rbp]
	mov	DWORD PTR -76[rbp], eax
	jmp	.L105
.L106:
	mov	edx, DWORD PTR -76[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	internal_node_cell
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -76[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	internal_node_cell
	mov	QWORD PTR -24[rbp], rax
	mov	eax, 8
	mov	edx, eax
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	sub	DWORD PTR -76[rbp], 1
.L105:
	mov	eax, DWORD PTR -76[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	ja	.L106
	mov	edx, DWORD PTR -68[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	internal_node_child
	mov	edx, DWORD PTR -96[rbp]
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR -68[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	internal_node_key
	mov	edx, DWORD PTR -72[rbp]
	mov	DWORD PTR [rax], edx
.L107:
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE43:
	.size	internal_node_insert, .-internal_node_insert
	.globl	leaf_node_split_and_insert
	.type	leaf_node_split_and_insert, @function
leaf_node_split_and_insert:
.LFB44:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 104
	.cfi_offset 3, -24
	mov	QWORD PTR -88[rbp], rdi
	mov	DWORD PTR -92[rbp], esi
	mov	QWORD PTR -104[rbp], rdx
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	esi, edx
	mov	rdi, rax
	call	get_page
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	get_node_max_key
	mov	DWORD PTR -76[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	get_unused_page_num
	mov	DWORD PTR -72[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR -72[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	get_page
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	initialize_leaf_node
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	node_parent
	mov	rbx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	node_parent
	mov	edx, DWORD PTR [rbx]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	leaf_node_next_leaf
	mov	rbx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	leaf_node_next_leaf
	mov	edx, DWORD PTR [rbx]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	leaf_node_next_leaf
	mov	edx, DWORD PTR -72[rbp]
	mov	DWORD PTR [rax], edx
	mov	DWORD PTR -80[rbp], 13
.L116:
	mov	eax, 7
	cmp	DWORD PTR -80[rbp], eax
	jb	.L109
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -56[rbp], rax
	jmp	.L110
.L109:
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -56[rbp], rax
.L110:
	mov	ecx, 7
	mov	eax, DWORD PTR -80[rbp]
	mov	edx, 0
	div	ecx
	mov	DWORD PTR -68[rbp], edx
	mov	edx, DWORD PTR -68[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	leaf_node_cell
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR 12[rax]
	cmp	DWORD PTR -80[rbp], eax
	jne	.L111
	mov	edx, DWORD PTR -68[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	leaf_node_value
	mov	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	serialize_row
	mov	edx, DWORD PTR -68[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	leaf_node_key
	mov	edx, DWORD PTR -92[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L112
.L111:
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR 12[rax]
	cmp	DWORD PTR -80[rbp], eax
	jbe	.L113
	mov	eax, 297
	mov	ebx, eax
	mov	eax, DWORD PTR -80[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	leaf_node_cell
	mov	rcx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, rbx
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	jmp	.L112
.L113:
	mov	eax, 297
	mov	ebx, eax
	mov	edx, DWORD PTR -80[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	leaf_node_cell
	mov	rcx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, rbx
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
.L112:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	leaf_node_num_cells
	mov	edx, 7
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	leaf_node_num_cells
	mov	edx, 7
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	is_node_root
	test	al, al
	je	.L114
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -72[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	create_new_root
	jmp	.L117
.L114:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	node_parent
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -64[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	get_node_max_key
	mov	DWORD PTR -60[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR -64[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	get_page
	mov	QWORD PTR -24[rbp], rax
	mov	edx, DWORD PTR -60[rbp]
	mov	ecx, DWORD PTR -76[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	update_internal_node_key
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -72[rbp]
	mov	ecx, DWORD PTR -64[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	internal_node_insert
	sub	DWORD PTR -80[rbp], 1
	jmp	.L116
.L117:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE44:
	.size	leaf_node_split_and_insert, .-leaf_node_split_and_insert
	.globl	leaf_node_insert
	.type	leaf_node_insert, @function
leaf_node_insert:
.LFB45:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 48
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	esi, edx
	mov	rdi, rax
	call	get_page
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	leaf_node_num_cells
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -28[rbp], eax
	mov	eax, 13
	cmp	DWORD PTR -28[rbp], eax
	jb	.L119
	mov	rdx, QWORD PTR -56[rbp]
	mov	ecx, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	leaf_node_split_and_insert
	jmp	.L118
.L119:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 12[rax]
	cmp	DWORD PTR -28[rbp], eax
	jbe	.L121
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -32[rbp], eax
	jmp	.L122
.L123:
	mov	eax, 297
	mov	r12d, eax
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	leaf_node_cell
	mov	rbx, rax
	mov	edx, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	leaf_node_cell
	mov	rdx, r12
	mov	rsi, rbx
	mov	rdi, rax
	call	memcpy@PLT
	sub	DWORD PTR -32[rbp], 1
.L122:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 12[rax]
	cmp	DWORD PTR -32[rbp], eax
	ja	.L123
.L121:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	leaf_node_num_cells
	mov	edx, DWORD PTR [rax]
	add	edx, 1
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	leaf_node_key
	mov	edx, DWORD PTR -44[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	leaf_node_value
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	serialize_row
.L118:
	add	rsp, 48
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE45:
	.size	leaf_node_insert, .-leaf_node_insert
	.section	.rodata
.LC11:
	.string	"ROW_SIZE: %d\n"
.LC12:
	.string	"COMMON_NODE_HEADER_SIZE: %d\n"
.LC13:
	.string	"LEAF_NODE_HEADER_SIZE: %d\n"
.LC14:
	.string	"LEAF_NODE_CELL_SIZE: %d\n"
	.align 8
.LC15:
	.string	"LEAF_NODE_SPACE_FOR_CELLS: %d\n"
.LC16:
	.string	"LEAF_NODE_MAX_CELLS: %d\n"
	.text
	.globl	print_constants
	.type	print_constants, @function
print_constants:
.LFB46:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 293
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 6
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 14
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 297
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 4082
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 13
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE46:
	.size	print_constants, .-print_constants
	.globl	indent
	.type	indent, @function
indent:
.LFB47:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L126
.L127:
	mov	edi, 32
	call	putchar@PLT
	add	DWORD PTR -4[rbp], 1
.L126:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jb	.L127
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE47:
	.size	indent, .-indent
	.section	.rodata
.LC17:
	.string	"- leaf (size %d)\n"
.LC18:
	.string	"- %d\n"
.LC19:
	.string	"- internal (size %d)\n"
.LC20:
	.string	"- key %d\n"
	.text
	.globl	print_tree
	.type	print_tree, @function
print_tree:
.LFB48:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -48[rbp], edx
	mov	edx, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	get_page
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	get_node_type
	test	eax, eax
	je	.L129
	cmp	eax, 1
	jne	.L135
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	leaf_node_num_cells
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	mov	edi, eax
	call	indent
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -24[rbp], 0
	jmp	.L131
.L132:
	mov	eax, DWORD PTR -48[rbp]
	add	eax, 1
	mov	edi, eax
	call	indent
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	leaf_node_key
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -24[rbp], 1
.L131:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jb	.L132
	jmp	.L130
.L129:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	leaf_node_num_cells
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	mov	edi, eax
	call	indent
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -20[rbp], 0
	jmp	.L133
.L134:
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	internal_node_child
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	lea	edx, 1[rax]
	mov	ecx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	print_tree
	mov	eax, DWORD PTR -48[rbp]
	add	eax, 1
	mov	edi, eax
	call	indent
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	internal_node_key
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -20[rbp], 1
.L133:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jb	.L134
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	internal_node_right_child
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	lea	edx, 1[rax]
	mov	ecx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	print_tree
	nop
.L130:
.L135:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE48:
	.size	print_tree, .-print_tree
	.section	.rodata
	.align 8
.LC21:
	.string	"Must supply a database filename."
.LC22:
	.string	"Unrecognized command %s\n"
.LC23:
	.string	"ID must be positive."
.LC24:
	.string	"String is too long."
	.align 8
.LC25:
	.string	"Syntax error. Could not parse statement."
	.align 8
.LC26:
	.string	"Unrecognized keyword at start of '%s'\n"
.LC27:
	.string	"Executed."
.LC28:
	.string	"Error: Duplicate key"
.LC29:
	.string	"Table Error: Table full."
	.text
	.globl	main
	.type	main, @function
main:
.LFB49:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 368
	mov	DWORD PTR -356[rbp], edi
	mov	QWORD PTR -368[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -356[rbp], 1
	jg	.L137
	lea	rdi, .LC21[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L137:
	mov	rax, QWORD PTR -368[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -344[rbp], rax
	mov	rax, QWORD PTR -344[rbp]
	mov	rdi, rax
	call	db_open
	mov	QWORD PTR -336[rbp], rax
	call	new_input_buffer
	mov	QWORD PTR -328[rbp], rax
.L154:
	call	print_prompt
	mov	rax, QWORD PTR -328[rbp]
	mov	rdi, rax
	call	read_input
	mov	rax, QWORD PTR -328[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 46
	jne	.L138
	mov	rdx, QWORD PTR -336[rbp]
	mov	rax, QWORD PTR -328[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	do_meta_command
	test	eax, eax
	je	.L156
	cmp	eax, 1
	jne	.L138
	mov	rax, QWORD PTR -328[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L153
.L138:
	lea	rdx, -320[rbp]
	mov	rax, QWORD PTR -328[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	prepare_statement
	cmp	eax, 4
	ja	.L142
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L144[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L144[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L144:
	.long	.L157-.L144
	.long	.L147-.L144
	.long	.L146-.L144
	.long	.L145-.L144
	.long	.L143-.L144
	.text
.L147:
	lea	rdi, .LC23[rip]
	call	puts@PLT
	jmp	.L153
.L146:
	lea	rdi, .LC24[rip]
	call	puts@PLT
	jmp	.L153
.L145:
	lea	rdi, .LC25[rip]
	call	puts@PLT
	jmp	.L153
.L143:
	mov	rax, QWORD PTR -328[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC26[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L153
.L157:
	nop
.L142:
	mov	rdx, QWORD PTR -336[rbp]
	lea	rax, -320[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execute_statement
	cmp	eax, 2
	je	.L149
	cmp	eax, 2
	ja	.L154
	test	eax, eax
	je	.L151
	cmp	eax, 1
	je	.L152
	jmp	.L153
.L151:
	lea	rdi, .LC27[rip]
	call	puts@PLT
	jmp	.L153
.L152:
	lea	rdi, .LC28[rip]
	call	puts@PLT
	jmp	.L153
.L149:
	lea	rdi, .LC29[rip]
	call	puts@PLT
	jmp	.L153
.L156:
	nop
.L153:
	jmp	.L154
	.cfi_endproc
.LFE49:
	.size	main, .-main
	.section	.rodata
.LC30:
	.string	"db > "
	.text
	.globl	print_prompt
	.type	print_prompt, @function
print_prompt:
.LFB50:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC30[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE50:
	.size	print_prompt, .-print_prompt
	.section	.rodata
.LC31:
	.string	"Error reading input"
	.text
	.globl	read_input
	.type	read_input, @function
read_input:
.LFB51:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rdx, QWORD PTR stdin[rip]
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jg	.L160
	lea	rdi, .LC31[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L160:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, 1
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE51:
	.size	read_input, .-read_input
	.globl	close_input_buffer
	.type	close_input_buffer, @function
close_input_buffer:
.LFB52:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR -8[rbp], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE52:
	.size	close_input_buffer, .-close_input_buffer
	.section	.rodata
.LC32:
	.string	".exit"
.LC33:
	.string	".constants"
.LC34:
	.string	"Constants:"
.LC35:
	.string	".btree"
.LC36:
	.string	"Tree:"
	.text
	.globl	do_meta_command
	.type	do_meta_command, @function
do_meta_command:
.LFB53:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L163
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	db_close
	mov	edi, 0
	call	exit@PLT
.L163:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC33[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L164
	lea	rdi, .LC34[rip]
	call	puts@PLT
	mov	eax, 0
	call	print_constants
	mov	eax, 0
	jmp	.L165
.L164:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC35[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L166
	lea	rdi, .LC36[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	print_tree
	mov	eax, 0
	jmp	.L165
.L166:
	mov	eax, 1
.L165:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE53:
	.size	do_meta_command, .-do_meta_command
	.section	.rodata
.LC37:
	.string	" "
	.text
	.globl	prepare_insert
	.type	prepare_insert, @function
prepare_insert:
.LFB54:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC37[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -32[rbp], rax
	lea	rsi, .LC37[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -24[rbp], rax
	lea	rsi, .LC37[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -16[rbp], rax
	lea	rsi, .LC37[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L168
	cmp	QWORD PTR -16[rbp], 0
	je	.L168
	cmp	QWORD PTR -8[rbp], 0
	jne	.L169
.L168:
	mov	eax, 3
	jmp	.L170
.L169:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jns	.L171
	mov	eax, 1
	jmp	.L170
.L171:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 32
	jbe	.L172
	mov	eax, 2
	jmp	.L170
.L172:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 255
	jbe	.L173
	mov	eax, 2
	jmp	.L170
.L173:
	mov	edx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -64[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	rax, QWORD PTR -64[rbp]
	lea	rdx, 41[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	eax, 0
.L170:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE54:
	.size	prepare_insert, .-prepare_insert
	.section	.rodata
.LC38:
	.string	"insert"
.LC39:
	.string	"select"
	.text
	.globl	prepare_statement
	.type	prepare_statement, @function
prepare_statement:
.LFB55:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, 6
	lea	rsi, .LC38[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L175
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	prepare_insert
	jmp	.L176
.L175:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC39[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L177
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], 1
	mov	eax, 0
	jmp	.L176
.L177:
	mov	eax, 4
.L176:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE55:
	.size	prepare_statement, .-prepare_statement
	.globl	execute_insert
	.type	execute_insert, @function
execute_insert:
.LFB56:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	esi, edx
	mov	rdi, rax
	call	get_page
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	leaf_node_num_cells
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 4
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -32[rbp], eax
	mov	edx, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	table_find
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 12[rax]
	cmp	DWORD PTR -36[rbp], eax
	jbe	.L179
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	leaf_node_key
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jne	.L179
	mov	eax, 1
	jmp	.L180
.L179:
	mov	rax, QWORD PTR -16[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	leaf_node_insert
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L180:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE56:
	.size	execute_insert, .-execute_insert
	.globl	execute_select
	.type	execute_select, @function
execute_select:
.LFB57:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 336
	mov	QWORD PTR -328[rbp], rdi
	mov	QWORD PTR -336[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -336[rbp]
	mov	rdi, rax
	call	table_start
	mov	QWORD PTR -312[rbp], rax
	jmp	.L182
.L183:
	mov	rax, QWORD PTR -312[rbp]
	mov	rdi, rax
	call	cursor_value
	mov	rdx, rax
	lea	rax, -304[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	deserialize_row
	lea	rax, -304[rbp]
	mov	rdi, rax
	call	print_row
	mov	rax, QWORD PTR -312[rbp]
	mov	rdi, rax
	call	cursor_advance
.L182:
	mov	rax, QWORD PTR -312[rbp]
	movzx	eax, BYTE PTR 16[rax]
	xor	eax, 1
	test	al, al
	jne	.L183
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L185
	call	__stack_chk_fail@PLT
.L185:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE57:
	.size	execute_select, .-execute_select
	.globl	execute_statement
	.type	execute_statement, @function
execute_statement:
.LFB58:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L187
	cmp	eax, 1
	je	.L188
	jmp	.L191
.L187:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execute_insert
	jmp	.L186
.L188:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execute_select
	jmp	.L186
.L191:
.L186:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE58:
	.size	execute_statement, .-execute_statement
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"1199983.c"
	.text
	.global	ID_SIZE
	.section	.rodata
	.align	2
	.type	ID_SIZE, %object
	.size	ID_SIZE, 4
ID_SIZE:
	.word	4
	.global	USERNAME_SIZE
	.align	2
	.type	USERNAME_SIZE, %object
	.size	USERNAME_SIZE, 4
USERNAME_SIZE:
	.word	33
	.global	EMAIL_SIZE
	.align	2
	.type	EMAIL_SIZE, %object
	.size	EMAIL_SIZE, 4
EMAIL_SIZE:
	.word	256
	.global	ID_OFFSET
	.align	2
	.type	ID_OFFSET, %object
	.size	ID_OFFSET, 4
ID_OFFSET:
	.space	4
	.global	USERNAME_OFFSET
	.align	2
	.type	USERNAME_OFFSET, %object
	.size	USERNAME_OFFSET, 4
USERNAME_OFFSET:
	.word	4
	.global	EMAIL_OFFSET
	.align	2
	.type	EMAIL_OFFSET, %object
	.size	EMAIL_OFFSET, 4
EMAIL_OFFSET:
	.word	37
	.global	ROW_SIZE
	.align	2
	.type	ROW_SIZE, %object
	.size	ROW_SIZE, 4
ROW_SIZE:
	.word	293
	.global	PAGE_SIZE
	.align	2
	.type	PAGE_SIZE, %object
	.size	PAGE_SIZE, 4
PAGE_SIZE:
	.word	4096
	.text
	.align	2
	.global	new_input_buffer
	.syntax unified
	.arm
	.fpu softvfp
	.type	new_input_buffer, %function
new_input_buffer:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	new_input_buffer, .-new_input_buffer
	.global	NODE_TYPE_SIZE
	.section	.rodata
	.align	2
	.type	NODE_TYPE_SIZE, %object
	.size	NODE_TYPE_SIZE, 4
NODE_TYPE_SIZE:
	.word	1
	.global	NODE_TYPE_OFFSET
	.align	2
	.type	NODE_TYPE_OFFSET, %object
	.size	NODE_TYPE_OFFSET, 4
NODE_TYPE_OFFSET:
	.space	4
	.global	IS_ROOT_SIZE
	.align	2
	.type	IS_ROOT_SIZE, %object
	.size	IS_ROOT_SIZE, 4
IS_ROOT_SIZE:
	.word	1
	.global	IS_ROOT_OFFSET
	.align	2
	.type	IS_ROOT_OFFSET, %object
	.size	IS_ROOT_OFFSET, 4
IS_ROOT_OFFSET:
	.word	1
	.global	PARENT_POINTER_SIZE
	.align	2
	.type	PARENT_POINTER_SIZE, %object
	.size	PARENT_POINTER_SIZE, 4
PARENT_POINTER_SIZE:
	.word	4
	.global	PARENT_POINTER_OFFSET
	.align	2
	.type	PARENT_POINTER_OFFSET, %object
	.size	PARENT_POINTER_OFFSET, 4
PARENT_POINTER_OFFSET:
	.word	2
	.global	COMMON_NODE_HEADER_SIZE
	.align	2
	.type	COMMON_NODE_HEADER_SIZE, %object
	.size	COMMON_NODE_HEADER_SIZE, 4
COMMON_NODE_HEADER_SIZE:
	.word	6
	.global	LEAF_NODE_NUM_CELLS_SIZE
	.align	2
	.type	LEAF_NODE_NUM_CELLS_SIZE, %object
	.size	LEAF_NODE_NUM_CELLS_SIZE, 4
LEAF_NODE_NUM_CELLS_SIZE:
	.word	4
	.global	LEAF_NODE_NUM_CELLS_OFFSET
	.align	2
	.type	LEAF_NODE_NUM_CELLS_OFFSET, %object
	.size	LEAF_NODE_NUM_CELLS_OFFSET, 4
LEAF_NODE_NUM_CELLS_OFFSET:
	.word	6
	.global	LEAF_NODE_NEXT_LEAF_SIZE
	.align	2
	.type	LEAF_NODE_NEXT_LEAF_SIZE, %object
	.size	LEAF_NODE_NEXT_LEAF_SIZE, 4
LEAF_NODE_NEXT_LEAF_SIZE:
	.word	4
	.global	LEAF_NODE_NEXT_LEAF_OFFSET
	.align	2
	.type	LEAF_NODE_NEXT_LEAF_OFFSET, %object
	.size	LEAF_NODE_NEXT_LEAF_OFFSET, 4
LEAF_NODE_NEXT_LEAF_OFFSET:
	.word	10
	.global	LEAF_NODE_HEADER_SIZE
	.align	2
	.type	LEAF_NODE_HEADER_SIZE, %object
	.size	LEAF_NODE_HEADER_SIZE, 4
LEAF_NODE_HEADER_SIZE:
	.word	14
	.global	LEAF_NODE_KEY_SIZE
	.align	2
	.type	LEAF_NODE_KEY_SIZE, %object
	.size	LEAF_NODE_KEY_SIZE, 4
LEAF_NODE_KEY_SIZE:
	.word	4
	.global	LEAF_NODE_KEY_OFFSET
	.align	2
	.type	LEAF_NODE_KEY_OFFSET, %object
	.size	LEAF_NODE_KEY_OFFSET, 4
LEAF_NODE_KEY_OFFSET:
	.space	4
	.global	LEAF_NODE_VALUE_SIZE
	.align	2
	.type	LEAF_NODE_VALUE_SIZE, %object
	.size	LEAF_NODE_VALUE_SIZE, 4
LEAF_NODE_VALUE_SIZE:
	.word	293
	.global	LEAF_NODE_VALUE_OFFSET
	.align	2
	.type	LEAF_NODE_VALUE_OFFSET, %object
	.size	LEAF_NODE_VALUE_OFFSET, 4
LEAF_NODE_VALUE_OFFSET:
	.word	4
	.global	LEAF_NODE_CELL_SIZE
	.align	2
	.type	LEAF_NODE_CELL_SIZE, %object
	.size	LEAF_NODE_CELL_SIZE, 4
LEAF_NODE_CELL_SIZE:
	.word	297
	.global	LEAF_NODE_SPACE_FOR_CELLS
	.align	2
	.type	LEAF_NODE_SPACE_FOR_CELLS, %object
	.size	LEAF_NODE_SPACE_FOR_CELLS, 4
LEAF_NODE_SPACE_FOR_CELLS:
	.word	4082
	.global	LEAF_NODE_MAX_CELLS
	.align	2
	.type	LEAF_NODE_MAX_CELLS, %object
	.size	LEAF_NODE_MAX_CELLS, 4
LEAF_NODE_MAX_CELLS:
	.word	13
	.global	INTERNAL_NODE_NUM_KEYS_SIZE
	.align	2
	.type	INTERNAL_NODE_NUM_KEYS_SIZE, %object
	.size	INTERNAL_NODE_NUM_KEYS_SIZE, 4
INTERNAL_NODE_NUM_KEYS_SIZE:
	.word	4
	.global	INTERNAL_NODE_NUM_KEYS_OFFSET
	.align	2
	.type	INTERNAL_NODE_NUM_KEYS_OFFSET, %object
	.size	INTERNAL_NODE_NUM_KEYS_OFFSET, 4
INTERNAL_NODE_NUM_KEYS_OFFSET:
	.word	6
	.global	INTERNAL_NODE_RIGHT_CHILD_SIZE
	.align	2
	.type	INTERNAL_NODE_RIGHT_CHILD_SIZE, %object
	.size	INTERNAL_NODE_RIGHT_CHILD_SIZE, 4
INTERNAL_NODE_RIGHT_CHILD_SIZE:
	.word	4
	.global	INTERNAL_NODE_RIGHT_CHILD_OFFSET
	.align	2
	.type	INTERNAL_NODE_RIGHT_CHILD_OFFSET, %object
	.size	INTERNAL_NODE_RIGHT_CHILD_OFFSET, 4
INTERNAL_NODE_RIGHT_CHILD_OFFSET:
	.word	10
	.global	INTERNAL_NODE_HEADER_SIZE
	.align	2
	.type	INTERNAL_NODE_HEADER_SIZE, %object
	.size	INTERNAL_NODE_HEADER_SIZE, 4
INTERNAL_NODE_HEADER_SIZE:
	.word	14
	.global	INTERNAL_NODE_KEY_SIZE
	.align	2
	.type	INTERNAL_NODE_KEY_SIZE, %object
	.size	INTERNAL_NODE_KEY_SIZE, 4
INTERNAL_NODE_KEY_SIZE:
	.word	4
	.global	INTERNAL_NODE_CHILD_SIZE
	.align	2
	.type	INTERNAL_NODE_CHILD_SIZE, %object
	.size	INTERNAL_NODE_CHILD_SIZE, 4
INTERNAL_NODE_CHILD_SIZE:
	.word	4
	.global	INTERNAL_NODE_CELL_SIZE
	.align	2
	.type	INTERNAL_NODE_CELL_SIZE, %object
	.size	INTERNAL_NODE_CELL_SIZE, 4
INTERNAL_NODE_CELL_SIZE:
	.word	8
	.global	INTERNAL_NODE_MAX_CELLS
	.align	2
	.type	INTERNAL_NODE_MAX_CELLS, %object
	.size	INTERNAL_NODE_MAX_CELLS, 4
INTERNAL_NODE_MAX_CELLS:
	.word	3
	.text
	.align	2
	.global	get_node_type
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_node_type, %function
get_node_type:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r2, #0
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldrb	r3, [r3]
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	get_node_type, .-get_node_type
	.align	2
	.global	set_node_type
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_node_type, %function
set_node_type:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	strb	r3, [fp, #-5]
	mov	r2, #0
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldrb	r2, [fp, #-5]
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	set_node_type, .-set_node_type
	.align	2
	.global	leaf_node_num_cells
	.syntax unified
	.arm
	.fpu softvfp
	.type	leaf_node_num_cells, %function
leaf_node_num_cells:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	mov	r2, #6
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	leaf_node_num_cells, .-leaf_node_num_cells
	.align	2
	.global	internal_node_num_keys
	.syntax unified
	.arm
	.fpu softvfp
	.type	internal_node_num_keys, %function
internal_node_num_keys:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	mov	r2, #6
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	internal_node_num_keys, .-internal_node_num_keys
	.align	2
	.global	leaf_node_cell
	.syntax unified
	.arm
	.fpu softvfp
	.type	leaf_node_cell, %function
leaf_node_cell:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, .L12
	ldr	r3, [fp, #-12]
	mul	r3, r2, r3
	mov	r2, #14
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L13:
	.align	2
.L12:
	.word	297
	.size	leaf_node_cell, .-leaf_node_cell
	.align	2
	.global	leaf_node_key
	.syntax unified
	.arm
	.fpu softvfp
	.type	leaf_node_key, %function
leaf_node_key:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	leaf_node_cell
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	leaf_node_key, .-leaf_node_key
	.align	2
	.global	leaf_node_value
	.syntax unified
	.arm
	.fpu softvfp
	.type	leaf_node_value, %function
leaf_node_value:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	leaf_node_cell
	mov	r3, r0
	mov	r2, #4
	add	r3, r3, r2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	leaf_node_value, .-leaf_node_value
	.align	2
	.global	leaf_node_next_leaf
	.syntax unified
	.arm
	.fpu softvfp
	.type	leaf_node_next_leaf, %function
leaf_node_next_leaf:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	mov	r2, #10
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	leaf_node_next_leaf, .-leaf_node_next_leaf
	.align	2
	.global	is_node_root
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_node_root, %function
is_node_root:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r2, #1
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldrb	r3, [r3]
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	is_node_root, .-is_node_root
	.align	2
	.global	set_node_root
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_node_root, %function
set_node_root:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, r1
	strb	r3, [fp, #-17]
	ldrb	r3, [fp, #-17]
	strb	r3, [fp, #-5]
	mov	r2, #1
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldrb	r2, [fp, #-5]
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	set_node_root, .-set_node_root
	.align	2
	.global	node_parent
	.syntax unified
	.arm
	.fpu softvfp
	.type	node_parent, %function
node_parent:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	mov	r2, #2
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	node_parent, .-node_parent
	.align	2
	.global	initialize_leaf_node
	.syntax unified
	.arm
	.fpu softvfp
	.type	initialize_leaf_node, %function
initialize_leaf_node:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	set_node_type
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	set_node_root
	ldr	r0, [fp, #-8]
	bl	leaf_node_num_cells
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, [fp, #-8]
	bl	leaf_node_next_leaf
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	initialize_leaf_node, .-initialize_leaf_node
	.align	2
	.global	initialize_internal_node
	.syntax unified
	.arm
	.fpu softvfp
	.type	initialize_internal_node, %function
initialize_internal_node:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	set_node_type
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	set_node_root
	ldr	r0, [fp, #-8]
	bl	internal_node_num_keys
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	initialize_internal_node, .-initialize_internal_node
	.align	2
	.global	internal_node_right_child
	.syntax unified
	.arm
	.fpu softvfp
	.type	internal_node_right_child, %function
internal_node_right_child:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	mov	r2, #10
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	internal_node_right_child, .-internal_node_right_child
	.align	2
	.global	internal_node_cell
	.syntax unified
	.arm
	.fpu softvfp
	.type	internal_node_cell, %function
internal_node_cell:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	mov	r2, #8
	ldr	r3, [fp, #-12]
	mul	r3, r2, r3
	mov	r2, #14
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	internal_node_cell, .-internal_node_cell
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Tried to access child_num %d > num_keys %d\012\000"
	.text
	.align	2
	.global	internal_node_child
	.syntax unified
	.arm
	.fpu softvfp
	.type	internal_node_child, %function
internal_node_child:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	internal_node_num_keys
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bls	.L32
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-20]
	ldr	r0, .L35
	bl	printf
	mov	r0, #1
	bl	exit
.L32:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bne	.L33
	ldr	r0, [fp, #-16]
	bl	internal_node_right_child
	mov	r3, r0
	b	.L34
.L33:
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	internal_node_cell
	mov	r3, r0
.L34:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC0
	.size	internal_node_child, .-internal_node_child
	.align	2
	.global	internal_node_key
	.syntax unified
	.arm
	.fpu softvfp
	.type	internal_node_key, %function
internal_node_key:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	internal_node_cell
	mov	r3, r0
	mov	r2, #4
	add	r3, r3, r2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	internal_node_key, .-internal_node_key
	.align	2
	.global	internal_node_find_child
	.syntax unified
	.arm
	.fpu softvfp
	.type	internal_node_find_child, %function
internal_node_find_child:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	internal_node_num_keys
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	internal_node_find_child, .-internal_node_find_child
	.align	2
	.global	update_internal_node_key
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_internal_node_key, %function
update_internal_node_key:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	internal_node_find_child
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	internal_node_key
	mov	r2, r0
	ldr	r3, [fp, #-24]
	str	r3, [r2]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	update_internal_node_key, .-update_internal_node_key
	.align	2
	.global	get_node_max_key
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_node_max_key, %function
get_node_max_key:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	get_node_type
	mov	r3, r0
	cmp	r3, #0
	beq	.L43
	cmp	r3, #1
	beq	.L44
	b	.L47
.L43:
	ldr	r0, [fp, #-8]
	bl	internal_node_num_keys
	mov	r3, r0
	ldr	r3, [r3]
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	internal_node_key
	mov	r3, r0
	ldr	r3, [r3]
	b	.L42
.L44:
	ldr	r0, [fp, #-8]
	bl	leaf_node_num_cells
	mov	r3, r0
	ldr	r3, [r3]
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	leaf_node_key
	mov	r3, r0
	ldr	r3, [r3]
	b	.L42
.L47:
.L42:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	get_node_max_key, .-get_node_max_key
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Unable to open file %s\012\000"
	.global	__aeabi_uidiv
	.global	__aeabi_uidivmod
	.align	2
.LC2:
	.ascii	"Db file is not a whole number of pages. Corrupt fil"
	.ascii	"e.\000"
	.text
	.align	2
	.global	pager_open
	.syntax unified
	.arm
	.fpu softvfp
	.type	pager_open, %function
pager_open:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	mov	r2, #384
	mov	r1, #66
	ldr	r0, [fp, #-24]
	bl	open
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L49
	ldr	r1, [fp, #-24]
	ldr	r0, .L54
	bl	printf
	mov	r0, #1
	bl	exit
.L49:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	lseek
	str	r0, [fp, #-12]
	mov	r0, #412
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	mov	r2, #4096
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_uidiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-12]
	mov	r2, #4096
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	cmp	r3, #0
	beq	.L50
	ldr	r0, .L54+4
	bl	puts
	mov	r0, #1
	bl	exit
.L50:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L51
.L52:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	add	r3, r3, #2
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L51:
	ldr	r3, [fp, #-20]
	cmp	r3, #99
	bls	.L52
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L55:
	.align	2
.L54:
	.word	.LC1
	.word	.LC2
	.size	pager_open, .-pager_open
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Attempted fetch on out-of-bounds page number. %d > "
	.ascii	"%d\012\000"
	.align	2
.LC4:
	.ascii	"Error reading file: %d\012\000"
	.text
	.align	2
	.global	get_page
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_page, %function
get_page:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #100
	bls	.L57
	mov	r2, #100
	ldr	r1, [fp, #-28]
	ldr	r0, .L62
	bl	printf
	mov	r0, #1
	bl	exit
.L57:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	add	r3, r3, #2
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L58
	mov	r3, #4096
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	mov	r2, #4096
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_uidiv
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	mov	r2, #4096
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	cmp	r3, #0
	beq	.L59
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L59:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bhi	.L60
	ldr	r3, [fp, #-24]
	ldr	r0, [r3]
	mov	r2, #4096
	ldr	r3, [fp, #-28]
	mul	r3, r2, r3
	mov	r2, #0
	mov	r1, r3
	bl	lseek
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	mov	r2, #4096
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	read
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L60
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L62+4
	bl	printf
	mov	r0, #1
	bl	exit
.L60:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	add	r3, r3, #2
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bcc	.L58
	ldr	r3, [fp, #-28]
	add	r2, r3, #1
	ldr	r3, [fp, #-24]
	str	r2, [r3, #8]
.L58:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	add	r3, r3, #2
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L63:
	.align	2
.L62:
	.word	.LC3
	.word	.LC4
	.size	get_page, .-get_page
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Fatal: Tried to flush NULL page\000"
	.align	2
.LC6:
	.ascii	"Fatal: Error seeking: %d\012\000"
	.align	2
.LC7:
	.ascii	"Fatal: Write error: %d\012\000"
	.text
	.align	2
	.global	pager_flush
	.syntax unified
	.arm
	.fpu softvfp
	.type	pager_flush, %function
pager_flush:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #2
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L65
	ldr	r0, .L69
	bl	puts
	mov	r0, #1
	bl	exit
.L65:
	ldr	r3, [fp, #-16]
	ldr	r0, [r3]
	mov	r2, #4096
	ldr	r3, [fp, #-20]
	mul	r3, r2, r3
	mov	r2, #0
	mov	r1, r3
	bl	lseek
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L66
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L69+4
	bl	printf
	mov	r0, #1
	bl	exit
.L66:
	ldr	r3, [fp, #-16]
	ldr	r0, [r3]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #2
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r2, #4096
	mov	r1, r3
	bl	write
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L68
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L69+8
	bl	printf
	mov	r0, #1
	bl	exit
.L68:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L70:
	.align	2
.L69:
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	pager_flush, .-pager_flush
	.align	2
	.global	db_open
	.syntax unified
	.arm
	.fpu softvfp
	.type	db_open, %function
db_open:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r0, [fp, #-24]
	bl	pager_open
	str	r0, [fp, #-16]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L72
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	get_page
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	initialize_leaf_node
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	set_node_root
.L72:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	db_open, .-db_open
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Fatal: Error closing db file.\000"
	.text
	.align	2
	.global	db_close
	.syntax unified
	.arm
	.fpu softvfp
	.type	db_close, %function
db_close:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L75
.L78:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	add	r3, r3, #2
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L83
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	pager_flush
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	add	r3, r3, #2
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	free
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	add	r3, r3, #2
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #4]
	b	.L77
.L83:
	nop
.L77:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L75:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bcc	.L78
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L79
	ldr	r0, .L84
	bl	puts
	mov	r0, #1
	bl	exit
.L79:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L80
.L82:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #2
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L81
	ldr	r0, [fp, #-8]
	bl	free
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #2
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #4]
.L81:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L80:
	ldr	r3, [fp, #-20]
	cmp	r3, #99
	bls	.L82
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r0, [fp, #-32]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L85:
	.align	2
.L84:
	.word	.LC8
	.size	db_close, .-db_close
	.align	2
	.global	leaf_node_find
	.syntax unified
	.arm
	.fpu softvfp
	.type	leaf_node_find, %function
leaf_node_find:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-44]
	mov	r0, r3
	bl	get_page
	str	r0, [fp, #-24]
	ldr	r0, [fp, #-24]
	bl	leaf_node_num_cells
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-40]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-44]
	str	r2, [r3, #4]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-28]
	b	.L87
.L91:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	lsr	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-24]
	bl	leaf_node_key
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bne	.L88
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	b	.L89
.L88:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bcs	.L90
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-28]
	b	.L87
.L90:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L87:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	bne	.L91
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
.L89:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	leaf_node_find, .-leaf_node_find
	.align	2
	.global	internal_node_find
	.syntax unified
	.arm
	.fpu softvfp
	.type	internal_node_find, %function
internal_node_find:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	get_page
	str	r0, [fp, #-24]
	ldr	r0, [fp, #-24]
	bl	internal_node_num_keys
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-24]
	bl	internal_node_find_child
	str	r0, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	internal_node_child
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	get_page
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	get_node_type
	mov	r3, r0
	cmp	r3, #0
	beq	.L93
	cmp	r3, #1
	bne	.L94
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-32]
	bl	leaf_node_find
	mov	r3, r0
	b	.L92
.L93:
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-32]
	bl	internal_node_find
	mov	r3, r0
	b	.L92
.L94:
.L92:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	internal_node_find, .-internal_node_find
	.align	2
	.global	table_find
	.syntax unified
	.arm
	.fpu softvfp
	.type	table_find, %function
table_find:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	get_page
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	get_node_type
	mov	r3, r0
	cmp	r3, #1
	bne	.L97
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	leaf_node_find
	mov	r3, r0
	b	.L98
.L97:
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	internal_node_find
	mov	r3, r0
.L98:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	table_find, .-table_find
	.align	2
	.global	table_start
	.syntax unified
	.arm
	.fpu softvfp
	.type	table_start, %function
table_start:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	table_find
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r1, r3
	mov	r0, r2
	bl	get_page
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	leaf_node_num_cells
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r2, r3, #255
	ldr	r3, [fp, #-16]
	strb	r2, [r3, #12]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	table_start, .-table_start
	.align	2
	.global	cursor_advance
	.syntax unified
	.arm
	.fpu softvfp
	.type	cursor_advance, %function
cursor_advance:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	get_page
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	add	r2, r3, #1
	ldr	r3, [fp, #-32]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-32]
	ldr	r4, [r3, #8]
	ldr	r0, [fp, #-20]
	bl	leaf_node_num_cells
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r4, r3
	bcc	.L104
	ldr	r0, [fp, #-20]
	bl	leaf_node_next_leaf
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L103
	ldr	r3, [fp, #-32]
	mov	r2, #1
	strb	r2, [r3, #12]
	b	.L104
.L103:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-32]
	mov	r2, #0
	str	r2, [r3, #8]
.L104:
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	cursor_advance, .-cursor_advance
	.align	2
	.global	cursor_value
	.syntax unified
	.arm
	.fpu softvfp
	.type	cursor_value, %function
cursor_value:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	get_page
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	leaf_node_value
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	cursor_value, .-cursor_value
	.align	2
	.global	get_unused_page_num
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_unused_page_num, %function
get_unused_page_num:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	get_unused_page_num, .-get_unused_page_num
	.align	2
	.global	serialize_row
	.syntax unified
	.arm
	.fpu softvfp
	.type	serialize_row, %function
serialize_row:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	mov	r2, #0
	ldr	r3, [fp, #-12]
	add	r3, r3, r2
	ldr	r1, [fp, #-8]
	mov	r2, #4
	mov	r0, r3
	bl	memcpy
	mov	r2, #4
	ldr	r3, [fp, #-12]
	add	r0, r3, r2
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	mov	r2, #33
	mov	r1, r3
	bl	strncpy
	mov	r2, #37
	ldr	r3, [fp, #-12]
	add	r0, r3, r2
	ldr	r3, [fp, #-8]
	add	r3, r3, #37
	mov	r2, #256
	mov	r1, r3
	bl	strncpy
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	serialize_row, .-serialize_row
	.align	2
	.global	deserialize_row
	.syntax unified
	.arm
	.fpu softvfp
	.type	deserialize_row, %function
deserialize_row:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r0, [fp, #-12]
	mov	r2, #0
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	mov	r2, #4
	mov	r1, r3
	bl	memcpy
	ldr	r3, [fp, #-12]
	add	r0, r3, #4
	mov	r2, #4
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	mov	r2, #33
	mov	r1, r3
	bl	memcpy
	ldr	r3, [fp, #-12]
	add	r0, r3, #37
	mov	r2, #37
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	mov	r2, #256
	mov	r1, r3
	bl	memcpy
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	deserialize_row, .-deserialize_row
	.section	.rodata
	.align	2
.LC9:
	.ascii	"(%d, %s, %s)\012\000"
	.text
	.align	2
	.global	print_row
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_row, %function
print_row:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	add	r2, r3, #4
	ldr	r3, [fp, #-8]
	add	r3, r3, #37
	ldr	r0, .L112
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L113:
	.align	2
.L112:
	.word	.LC9
	.size	print_row, .-print_row
	.align	2
	.global	create_new_root
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_new_root, %function
create_new_root:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	mov	r1, r3
	mov	r0, r2
	bl	get_page
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	get_page
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	get_unused_page_num
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	get_page
	str	r0, [fp, #-12]
	mov	r3, #4096
	mov	r2, r3
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-12]
	bl	memcpy
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	set_node_root
	ldr	r0, [fp, #-24]
	bl	initialize_internal_node
	mov	r1, #1
	ldr	r0, [fp, #-24]
	bl	set_node_root
	ldr	r0, [fp, #-24]
	bl	internal_node_num_keys
	mov	r3, r0
	mov	r2, #1
	str	r2, [r3]
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	internal_node_child
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r3, [r2]
	ldr	r0, [fp, #-12]
	bl	get_node_max_key
	str	r0, [fp, #-8]
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	internal_node_key
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r0, [fp, #-24]
	bl	internal_node_right_child
	mov	r2, r0
	ldr	r3, [fp, #-36]
	str	r3, [r2]
	ldr	r0, [fp, #-12]
	bl	node_parent
	mov	r2, r0
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	str	r3, [r2]
	ldr	r0, [fp, #-20]
	bl	node_parent
	mov	r2, r0
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	str	r3, [r2]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	create_new_root, .-create_new_root
	.global	LEAF_NODE_RIGHT_SPLIT_COUNT
	.section	.rodata
	.align	2
	.type	LEAF_NODE_RIGHT_SPLIT_COUNT, %object
	.size	LEAF_NODE_RIGHT_SPLIT_COUNT, 4
LEAF_NODE_RIGHT_SPLIT_COUNT:
	.word	7
	.global	LEAF_NODE_LEFT_SPLIT_COUNT
	.align	2
	.type	LEAF_NODE_LEFT_SPLIT_COUNT, %object
	.size	LEAF_NODE_LEFT_SPLIT_COUNT, 4
LEAF_NODE_LEFT_SPLIT_COUNT:
	.word	7
	.align	2
.LC10:
	.ascii	"Need to implement splitting internal node\000"
	.text
	.align	2
	.global	internal_node_insert
	.syntax unified
	.arm
	.fpu softvfp
	.type	internal_node_insert, %function
internal_node_insert:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-64]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-60]
	mov	r0, r3
	bl	get_page
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-64]
	mov	r0, r3
	bl	get_page
	str	r0, [fp, #-44]
	ldr	r0, [fp, #-44]
	bl	get_node_max_key
	str	r0, [fp, #-40]
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-48]
	bl	internal_node_find_child
	str	r0, [fp, #-36]
	ldr	r0, [fp, #-48]
	bl	internal_node_num_keys
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	ldr	r0, [fp, #-48]
	bl	internal_node_num_keys
	mov	r2, r0
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [r2]
	mov	r2, #3
	ldr	r3, [fp, #-32]
	cmp	r3, r2
	bcc	.L116
	ldr	r0, .L122
	bl	puts
	mov	r0, #1
	bl	exit
.L116:
	ldr	r0, [fp, #-48]
	bl	internal_node_right_child
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	get_page
	str	r0, [fp, #-24]
	ldr	r0, [fp, #-24]
	bl	get_node_max_key
	mov	r2, r0
	ldr	r3, [fp, #-40]
	cmp	r3, r2
	bls	.L117
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-48]
	bl	internal_node_child
	mov	r2, r0
	ldr	r3, [fp, #-28]
	str	r3, [r2]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-48]
	bl	internal_node_key
	mov	r4, r0
	ldr	r0, [fp, #-24]
	bl	get_node_max_key
	mov	r3, r0
	str	r3, [r4]
	ldr	r0, [fp, #-48]
	bl	internal_node_right_child
	mov	r2, r0
	ldr	r3, [fp, #-64]
	str	r3, [r2]
	b	.L121
.L117:
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-52]
	b	.L119
.L120:
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-48]
	bl	internal_node_cell
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-52]
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	internal_node_cell
	str	r0, [fp, #-16]
	mov	r3, #8
	mov	r2, r3
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	memcpy
	ldr	r3, [fp, #-52]
	sub	r3, r3, #1
	str	r3, [fp, #-52]
.L119:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	bhi	.L120
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-48]
	bl	internal_node_child
	mov	r2, r0
	ldr	r3, [fp, #-64]
	str	r3, [r2]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-48]
	bl	internal_node_key
	mov	r2, r0
	ldr	r3, [fp, #-40]
	str	r3, [r2]
.L121:
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L123:
	.align	2
.L122:
	.word	.LC10
	.size	internal_node_insert, .-internal_node_insert
	.align	2
	.global	leaf_node_split_and_insert
	.syntax unified
	.arm
	.fpu softvfp
	.type	leaf_node_split_and_insert, %function
leaf_node_split_and_insert:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	str	r2, [fp, #-72]
	ldr	r3, [fp, #-64]
	ldr	r3, [r3]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #4]
	mov	r1, r3
	mov	r0, r2
	bl	get_page
	str	r0, [fp, #-48]
	ldr	r0, [fp, #-48]
	bl	get_node_max_key
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-64]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	get_unused_page_num
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-64]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-40]
	mov	r0, r3
	bl	get_page
	str	r0, [fp, #-36]
	ldr	r0, [fp, #-36]
	bl	initialize_leaf_node
	ldr	r0, [fp, #-48]
	bl	node_parent
	mov	r4, r0
	ldr	r0, [fp, #-36]
	bl	node_parent
	mov	r2, r0
	ldr	r3, [r4]
	str	r3, [r2]
	ldr	r0, [fp, #-48]
	bl	leaf_node_next_leaf
	mov	r4, r0
	ldr	r0, [fp, #-36]
	bl	leaf_node_next_leaf
	mov	r2, r0
	ldr	r3, [r4]
	str	r3, [r2]
	ldr	r0, [fp, #-48]
	bl	leaf_node_next_leaf
	mov	r2, r0
	ldr	r3, [fp, #-40]
	str	r3, [r2]
	mov	r3, #13
	str	r3, [fp, #-56]
.L132:
	mov	r2, #7
	ldr	r3, [fp, #-56]
	cmp	r3, r2
	bcc	.L125
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-52]
	b	.L126
.L125:
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-52]
.L126:
	mov	r2, #7
	ldr	r3, [fp, #-56]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	str	r3, [fp, #-32]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-52]
	bl	leaf_node_cell
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	bne	.L127
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-52]
	bl	leaf_node_value
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-72]
	bl	serialize_row
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-52]
	bl	leaf_node_key
	mov	r2, r0
	ldr	r3, [fp, #-68]
	str	r3, [r2]
	b	.L128
.L127:
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	bls	.L129
	ldr	r3, [fp, #-56]
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	leaf_node_cell
	mov	r3, r0
	ldr	r2, .L134
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	memcpy
	b	.L128
.L129:
	ldr	r1, [fp, #-56]
	ldr	r0, [fp, #-48]
	bl	leaf_node_cell
	mov	r3, r0
	ldr	r2, .L134
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	memcpy
.L128:
	ldr	r0, [fp, #-48]
	bl	leaf_node_num_cells
	mov	r3, r0
	mov	r2, #7
	str	r2, [r3]
	ldr	r0, [fp, #-36]
	bl	leaf_node_num_cells
	mov	r3, r0
	mov	r2, #7
	str	r2, [r3]
	ldr	r0, [fp, #-48]
	bl	is_node_root
	mov	r3, r0
	cmp	r3, #0
	beq	.L130
	ldr	r3, [fp, #-64]
	ldr	r3, [r3]
	ldr	r1, [fp, #-40]
	mov	r0, r3
	bl	create_new_root
	b	.L133
.L130:
	ldr	r0, [fp, #-48]
	bl	node_parent
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-48]
	bl	get_node_max_key
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-64]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	get_page
	str	r0, [fp, #-16]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-16]
	bl	update_internal_node_key
	ldr	r3, [fp, #-64]
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	internal_node_insert
	ldr	r3, [fp, #-56]
	sub	r3, r3, #1
	str	r3, [fp, #-56]
	b	.L132
.L133:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L135:
	.align	2
.L134:
	.word	297
	.size	leaf_node_split_and_insert, .-leaf_node_split_and_insert
	.align	2
	.global	leaf_node_insert
	.syntax unified
	.arm
	.fpu softvfp
	.type	leaf_node_insert, %function
leaf_node_insert:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	mov	r1, r3
	mov	r0, r2
	bl	get_page
	str	r0, [fp, #-20]
	ldr	r0, [fp, #-20]
	bl	leaf_node_num_cells
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r2, #13
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	bcc	.L137
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	leaf_node_split_and_insert
	b	.L136
.L137:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bls	.L139
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-24]
	b	.L140
.L141:
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-20]
	bl	leaf_node_cell
	mov	r4, r0
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	leaf_node_cell
	mov	r3, r0
	ldr	r2, .L142
	mov	r1, r3
	mov	r0, r4
	bl	memcpy
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
.L140:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bhi	.L141
.L139:
	ldr	r0, [fp, #-20]
	bl	leaf_node_num_cells
	mov	r3, r0
	ldr	r2, [r3]
	add	r2, r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	leaf_node_key
	mov	r2, r0
	ldr	r3, [fp, #-36]
	str	r3, [r2]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	leaf_node_value
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	serialize_row
.L136:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L143:
	.align	2
.L142:
	.word	297
	.size	leaf_node_insert, .-leaf_node_insert
	.section	.rodata
	.align	2
.LC11:
	.ascii	"ROW_SIZE: %d\012\000"
	.align	2
.LC12:
	.ascii	"COMMON_NODE_HEADER_SIZE: %d\012\000"
	.align	2
.LC13:
	.ascii	"LEAF_NODE_HEADER_SIZE: %d\012\000"
	.align	2
.LC14:
	.ascii	"LEAF_NODE_CELL_SIZE: %d\012\000"
	.align	2
.LC15:
	.ascii	"LEAF_NODE_SPACE_FOR_CELLS: %d\012\000"
	.align	2
.LC16:
	.ascii	"LEAF_NODE_MAX_CELLS: %d\012\000"
	.text
	.align	2
	.global	print_constants
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_constants, %function
print_constants:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L145
	mov	r1, r3
	ldr	r0, .L145+4
	bl	printf
	mov	r3, #6
	mov	r1, r3
	ldr	r0, .L145+8
	bl	printf
	mov	r3, #14
	mov	r1, r3
	ldr	r0, .L145+12
	bl	printf
	ldr	r3, .L145+16
	mov	r1, r3
	ldr	r0, .L145+20
	bl	printf
	ldr	r3, .L145+24
	mov	r1, r3
	ldr	r0, .L145+28
	bl	printf
	mov	r3, #13
	mov	r1, r3
	ldr	r0, .L145+32
	bl	printf
	nop
	pop	{fp, pc}
.L146:
	.align	2
.L145:
	.word	293
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	297
	.word	.LC14
	.word	4082
	.word	.LC15
	.word	.LC16
	.size	print_constants, .-print_constants
	.align	2
	.global	indent
	.syntax unified
	.arm
	.fpu softvfp
	.type	indent, %function
indent:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L148
.L149:
	mov	r0, #32
	bl	putchar
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L148:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bcc	.L149
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	indent, .-indent
	.section	.rodata
	.align	2
.LC17:
	.ascii	"- leaf (size %d)\012\000"
	.align	2
.LC18:
	.ascii	"- %d\012\000"
	.align	2
.LC19:
	.ascii	"- internal (size %d)\012\000"
	.align	2
.LC20:
	.ascii	"- key %d\012\000"
	.text
	.align	2
	.global	print_tree
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_tree, %function
print_tree:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	get_page
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	get_node_type
	mov	r3, r0
	cmp	r3, #0
	beq	.L151
	cmp	r3, #1
	bne	.L157
	ldr	r0, [fp, #-16]
	bl	leaf_node_num_cells
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-40]
	bl	indent
	ldr	r1, [fp, #-12]
	ldr	r0, .L158
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L153
.L154:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	mov	r0, r3
	bl	indent
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	leaf_node_key
	mov	r3, r0
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L158+4
	bl	printf
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L153:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bcc	.L154
	b	.L152
.L151:
	ldr	r0, [fp, #-16]
	bl	leaf_node_num_cells
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-40]
	bl	indent
	ldr	r1, [fp, #-12]
	ldr	r0, .L158+8
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L155
.L156:
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	internal_node_child
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-32]
	bl	print_tree
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	mov	r0, r3
	bl	indent
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	internal_node_key
	mov	r3, r0
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L158+12
	bl	printf
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L155:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bcc	.L156
	ldr	r0, [fp, #-16]
	bl	internal_node_right_child
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-32]
	bl	print_tree
	nop
.L152:
.L157:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L159:
	.align	2
.L158:
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.size	print_tree, .-print_tree
	.section	.rodata
	.align	2
.LC21:
	.ascii	"Must supply a database filename.\000"
	.align	2
.LC22:
	.ascii	"Unrecognized command %s\012\000"
	.align	2
.LC23:
	.ascii	"ID must be positive.\000"
	.align	2
.LC24:
	.ascii	"String is too long.\000"
	.align	2
.LC25:
	.ascii	"Syntax error. Could not parse statement.\000"
	.align	2
.LC26:
	.ascii	"Unrecognized keyword at start of '%s'\012\000"
	.align	2
.LC27:
	.ascii	"Executed.\000"
	.align	2
.LC28:
	.ascii	"Error: Duplicate key\000"
	.align	2
.LC29:
	.ascii	"Table Error: Table full.\000"
	.align	2
.LC30:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 328
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #328
	str	r0, [fp, #-328]
	str	r1, [fp, #-332]
	ldr	r3, .L181
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-328]
	cmp	r3, #1
	bgt	.L161
	ldr	r0, .L181+4
	bl	puts
	mov	r0, #1
	bl	exit
.L161:
	ldr	r3, [fp, #-332]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-320]
	ldr	r0, [fp, #-320]
	bl	db_open
	str	r0, [fp, #-316]
	bl	new_input_buffer
	str	r0, [fp, #-312]
.L178:
	bl	print_prompt
	ldr	r0, [fp, #-312]
	bl	read_input
	ldr	r3, [fp, #-312]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L162
	ldr	r1, [fp, #-316]
	ldr	r0, [fp, #-312]
	bl	do_meta_command
	mov	r3, r0
	cmp	r3, #0
	beq	.L180
	cmp	r3, #1
	bne	.L162
	ldr	r3, [fp, #-312]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L181+8
	bl	printf
	b	.L177
.L162:
	sub	r3, fp, #308
	mov	r1, r3
	ldr	r0, [fp, #-312]
	bl	prepare_statement
	mov	r3, r0
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L166
.L168:
	.word	.L166
	.word	.L171
	.word	.L170
	.word	.L169
	.word	.L167
.L171:
	ldr	r0, .L181+12
	bl	puts
	b	.L177
.L170:
	ldr	r0, .L181+16
	bl	puts
	b	.L177
.L169:
	ldr	r0, .L181+20
	bl	puts
	b	.L177
.L167:
	ldr	r3, [fp, #-312]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L181+24
	bl	printf
	b	.L177
.L166:
	sub	r3, fp, #308
	ldr	r1, [fp, #-316]
	mov	r0, r3
	bl	execute_statement
	mov	r3, r0
	cmp	r3, #2
	beq	.L173
	cmp	r3, #2
	bhi	.L178
	cmp	r3, #0
	beq	.L175
	cmp	r3, #1
	beq	.L176
	b	.L177
.L175:
	ldr	r0, .L181+28
	bl	puts
	b	.L177
.L176:
	ldr	r0, .L181+32
	bl	puts
	b	.L177
.L173:
	ldr	r0, .L181+36
	bl	puts
	b	.L177
.L180:
	nop
.L177:
	b	.L178
.L182:
	.align	2
.L181:
	.word	.LC30
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.size	main, .-main
	.section	.rodata
	.align	2
.LC31:
	.ascii	"db > \000"
	.text
	.align	2
	.global	print_prompt
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_prompt, %function
print_prompt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L184
	bl	printf
	nop
	pop	{fp, pc}
.L185:
	.align	2
.L184:
	.word	.LC31
	.size	print_prompt, .-print_prompt
	.section	.rodata
	.align	2
.LC32:
	.ascii	"Error reading input\000"
	.text
	.align	2
	.global	read_input
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_input, %function
read_input:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	ldr	r2, .L188
	ldr	r2, [r2]
	mov	r1, r3
	bl	getline
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bgt	.L187
	ldr	r0, .L188+4
	bl	puts
	mov	r0, #1
	bl	exit
.L187:
	ldr	r3, [fp, #-8]
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L189:
	.align	2
.L188:
	.word	stdin
	.word	.LC32
	.size	read_input, .-read_input
	.align	2
	.global	close_input_buffer
	.syntax unified
	.arm
	.fpu softvfp
	.type	close_input_buffer, %function
close_input_buffer:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-8]
	bl	free
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-8]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	close_input_buffer, .-close_input_buffer
	.section	.rodata
	.align	2
.LC33:
	.ascii	".exit\000"
	.align	2
.LC34:
	.ascii	".constants\000"
	.align	2
.LC35:
	.ascii	"Constants:\000"
	.align	2
.LC36:
	.ascii	".btree\000"
	.align	2
.LC37:
	.ascii	"Tree:\000"
	.text
	.align	2
	.global	do_meta_command
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_meta_command, %function
do_meta_command:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r1, .L196
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L192
	ldr	r0, [fp, #-12]
	bl	db_close
	mov	r0, #0
	bl	exit
.L192:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r1, .L196+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L193
	ldr	r0, .L196+8
	bl	puts
	bl	print_constants
	mov	r3, #0
	b	.L194
.L193:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r1, .L196+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L195
	ldr	r0, .L196+16
	bl	puts
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	print_tree
	mov	r3, #0
	b	.L194
.L195:
	mov	r3, #1
.L194:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L197:
	.align	2
.L196:
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.size	do_meta_command, .-do_meta_command
	.section	.rodata
	.align	2
.LC38:
	.ascii	" \000"
	.text
	.align	2
	.global	prepare_insert
	.syntax unified
	.arm
	.fpu softvfp
	.type	prepare_insert, %function
prepare_insert:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-36]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r1, .L205
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-24]
	ldr	r1, .L205
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-20]
	ldr	r1, .L205
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-16]
	ldr	r1, .L205
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L199
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L199
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L200
.L199:
	mov	r3, #3
	b	.L201
.L200:
	ldr	r0, [fp, #-20]
	bl	atoi
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L202
	mov	r3, #1
	b	.L201
.L202:
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	cmp	r3, #32
	bls	.L203
	mov	r3, #2
	b	.L201
.L203:
	ldr	r0, [fp, #-12]
	bl	strlen
	mov	r3, r0
	cmp	r3, #255
	bls	.L204
	mov	r3, #2
	b	.L201
.L204:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-36]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-36]
	add	r3, r3, #41
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	strcpy
	mov	r3, #0
.L201:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L206:
	.align	2
.L205:
	.word	.LC38
	.size	prepare_insert, .-prepare_insert
	.section	.rodata
	.align	2
.LC39:
	.ascii	"insert\000"
	.align	2
.LC40:
	.ascii	"select\000"
	.text
	.align	2
	.global	prepare_statement
	.syntax unified
	.arm
	.fpu softvfp
	.type	prepare_statement, %function
prepare_statement:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r2, #6
	ldr	r1, .L211
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L208
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	prepare_insert
	mov	r3, r0
	b	.L209
.L208:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r1, .L211+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L210
	ldr	r3, [fp, #-12]
	mov	r2, #1
	str	r2, [r3]
	mov	r3, #0
	b	.L209
.L210:
	mov	r3, #4
.L209:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L212:
	.align	2
.L211:
	.word	.LC39
	.word	.LC40
	.size	prepare_statement, .-prepare_statement
	.align	2
	.global	execute_insert
	.syntax unified
	.arm
	.fpu softvfp
	.type	execute_insert, %function
execute_insert:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-36]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #4]
	mov	r1, r3
	mov	r0, r2
	bl	get_page
	str	r0, [fp, #-28]
	ldr	r0, [fp, #-28]
	bl	leaf_node_num_cells
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	add	r3, r3, #4
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-36]
	bl	table_find
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bls	.L214
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	leaf_node_key
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bne	.L214
	mov	r3, #1
	b	.L215
.L214:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	leaf_node_insert
	ldr	r0, [fp, #-12]
	bl	free
	mov	r3, #0
.L215:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	execute_insert, .-execute_insert
	.section	.rodata
	.align	2
.LC41:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	execute_select
	.syntax unified
	.arm
	.fpu softvfp
	.type	execute_select, %function
execute_select:
	@ args = 0, pretend = 0, frame = 312
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #312
	str	r0, [fp, #-312]
	str	r1, [fp, #-316]
	ldr	r3, .L221
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-316]
	bl	table_start
	str	r0, [fp, #-308]
	b	.L217
.L218:
	ldr	r0, [fp, #-308]
	bl	cursor_value
	mov	r2, r0
	sub	r3, fp, #304
	mov	r1, r3
	mov	r0, r2
	bl	deserialize_row
	sub	r3, fp, #304
	mov	r0, r3
	bl	print_row
	ldr	r0, [fp, #-308]
	bl	cursor_advance
.L217:
	ldr	r3, [fp, #-308]
	ldrb	r3, [r3, #12]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L218
	mov	r3, #0
	ldr	r2, .L221
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L220
	bl	__stack_chk_fail
.L220:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L222:
	.align	2
.L221:
	.word	.LC41
	.size	execute_select, .-execute_select
	.align	2
	.global	execute_statement
	.syntax unified
	.arm
	.fpu softvfp
	.type	execute_statement, %function
execute_statement:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L224
	cmp	r3, #1
	beq	.L225
	b	.L228
.L224:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	execute_insert
	mov	r3, r0
	b	.L223
.L225:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	execute_select
	mov	r3, r0
	b	.L223
.L228:
.L223:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	execute_statement, .-execute_statement
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
