	.file	"399579.c"
	.intel_syntax noprefix
	.text
	.local	ptreeroot
	.comm	ptreeroot,8,8
	.local	record_count
	.comm	record_count,4,4
	.globl	alloc_record
	.type	alloc_record, @function
alloc_record:
.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, 56
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD 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]
	mov	DWORD PTR 24[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 32[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 40[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 48[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	alloc_record, .-alloc_record
	.globl	free_record
	.type	free_record, @function
free_record:
.LFB7:
	.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 8[rax]
	test	rax, rax
	je	.L4
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
.L4:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L5
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	free@PLT
.L5:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 32[rax]
	test	rax, rax
	je	.L6
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	rdi, rax
	call	free@PLT
.L6:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	je	.L7
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	rdi, rax
	call	free@PLT
.L7:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 48[rax]
	test	rax, rax
	je	.L8
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	rdi, rax
	call	free@PLT
.L8:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	free_record, .-free_record
	.section	.rodata
	.align 8
.LC0:
	.string	"[#%d] %s (%d): %s, %s, %s, <%s>\n"
	.text
	.globl	display_record
	.type	display_record, @function
display_record:
.LFB8:
	.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	r8, QWORD PTR 48[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	r9, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	r10d, DWORD PTR 24[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	sub	rsp, 8
	push	r8
	push	rdi
	push	rsi
	mov	r8d, r10d
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	rsp, 32
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	display_record, .-display_record
	.globl	alloc_tnode
	.type	alloc_tnode, @function
alloc_tnode:
.LFB9:
	.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, 144
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 80[rax], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L11
.L12:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	add	rdx, 12
	mov	QWORD PTR [rax+rdx*8], 0
	add	DWORD PTR -12[rbp], 1
.L11:
	cmp	DWORD PTR -12[rbp], 5
	jle	.L12
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 88[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	alloc_tnode, .-alloc_tnode
	.globl	free_tnode
	.type	free_tnode, @function
free_tnode:
.LFB10:
	.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 -4[rbp], 0
	jmp	.L15
.L17:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	add	rdx, 12
	mov	rax, QWORD PTR [rax+rdx*8]
	test	rax, rax
	je	.L16
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	add	rdx, 12
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	rdi, rax
	call	free_tnode
.L16:
	add	DWORD PTR -4[rbp], 1
.L15:
	cmp	DWORD PTR -4[rbp], 5
	jbe	.L17
	mov	DWORD PTR -4[rbp], 0
	jmp	.L18
.L20:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	add	rdx, 4
	mov	rax, QWORD PTR 8[rax+rdx*8]
	test	rax, rax
	je	.L19
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	add	rdx, 4
	mov	rax, QWORD PTR 8[rax+rdx*8]
	mov	rdi, rax
	call	free_record
.L19:
	add	DWORD PTR -4[rbp], 1
.L18:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 80[rax]
	cmp	DWORD PTR -4[rbp], eax
	jb	.L20
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	free_tnode, .-free_tnode
	.globl	key_compare
	.type	key_compare, @function
key_compare:
.LFB11:
	.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	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcasecmp@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	key_compare, .-key_compare
	.globl	find_index
	.type	find_index, @function
find_index:
.LFB12:
	.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	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -12[rbp], 0
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 80[rax]
	sub	eax, 1
	mov	DWORD PTR -8[rbp], eax
	mov	DWORD PTR -4[rbp], 0
.L24:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jle	.L24
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	find_index, .-find_index
	.globl	split_node
	.type	split_node, @function
split_node:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 80[rax]
	shr	eax
	mov	DWORD PTR -32[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	QWORD PTR -16[rbp], rax
	call	alloc_tnode
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	je	.L27
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -32[rbp], eax
	jge	.L27
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR -32[rbp]
	lea	ecx, 1[rdx]
	sub	eax, ecx
	mov	edx, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
.L27:
	cmp	QWORD PTR -16[rbp], 0
	je	.L28
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	find_index
	mov	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 80[rax]
	mov	DWORD PTR -36[rbp], eax
	jmp	.L29
.L30:
	mov	eax, DWORD PTR -36[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -16[rbp]
	movsx	rdx, edx
	mov	rcx, QWORD PTR [rax+rdx*8]
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	mov	QWORD PTR [rax+rdx*8], rcx
	mov	eax, DWORD PTR -36[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -16[rbp]
	movsx	rdx, edx
	add	rdx, 4
	mov	rdx, QWORD PTR 8[rax+rdx*8]
	mov	rax, QWORD PTR -16[rbp]
	mov	ecx, DWORD PTR -36[rbp]
	movsx	rcx, ecx
	add	rcx, 4
	mov	QWORD PTR 8[rax+rcx*8], rdx
	mov	eax, DWORD PTR -36[rbp]
	lea	ecx, 1[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	add	rdx, 12
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	rax, QWORD PTR -16[rbp]
	movsx	rcx, ecx
	add	rcx, 12
	mov	QWORD PTR [rax+rcx*8], rdx
	sub	DWORD PTR -36[rbp], 1
.L29:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jg	.L30
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	mov	rcx, QWORD PTR [rax+rdx*8]
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	mov	QWORD PTR [rax+rdx*8], rcx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	add	rdx, 4
	mov	rdx, QWORD PTR 8[rax+rdx*8]
	mov	rax, QWORD PTR -16[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	movsx	rcx, ecx
	add	rcx, 4
	mov	QWORD PTR 8[rax+rcx*8], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	lea	rcx, 12[rdx]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax+rcx*8], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 80[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 80[rax], edx
	mov	eax, DWORD PTR -32[rbp]
	add	eax, 1
	mov	DWORD PTR -36[rbp], eax
	jmp	.L31
.L32:
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, edx
	mov	esi, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	mov	rcx, QWORD PTR [rax+rdx*8]
	mov	rax, QWORD PTR -8[rbp]
	movsx	rdx, esi
	mov	QWORD PTR [rax+rdx*8], rcx
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, edx
	mov	ecx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	add	rdx, 4
	mov	rdx, QWORD PTR 8[rax+rdx*8]
	mov	rax, QWORD PTR -8[rbp]
	movsx	rcx, ecx
	add	rcx, 4
	mov	QWORD PTR 8[rax+rcx*8], rdx
	add	DWORD PTR -36[rbp], 1
.L31:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 80[rax]
	mov	eax, DWORD PTR -36[rbp]
	cmp	edx, eax
	ja	.L32
	mov	eax, DWORD PTR -32[rbp]
	add	eax, 1
	mov	DWORD PTR -36[rbp], eax
	jmp	.L33
.L35:
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, edx
	mov	ecx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	add	rdx, 12
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	rax, QWORD PTR -8[rbp]
	movsx	rcx, ecx
	add	rcx, 12
	mov	QWORD PTR [rax+rcx*8], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	add	rdx, 12
	mov	rax, QWORD PTR [rax+rdx*8]
	test	rax, rax
	je	.L34
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	add	rdx, 12
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 88[rax], rdx
.L34:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	add	rdx, 12
	mov	QWORD PTR [rax+rdx*8], 0
	add	DWORD PTR -36[rbp], 1
.L33:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 80[rax]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -36[rbp]
	cmp	edx, eax
	ja	.L35
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 80[rax]
	mov	edx, DWORD PTR -32[rbp]
	sub	eax, edx
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 80[rax], edx
	mov	edx, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 80[rax], edx
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -16[rbp]
	movsx	rdx, edx
	lea	rcx, 12[rdx]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax+rcx*8], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 88[rax], rdx
	jmp	.L42
.L28:
	call	alloc_tnode
	mov	QWORD PTR ptreeroot[rip], rax
	mov	rax, QWORD PTR ptreeroot[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	add	rdx, 4
	mov	rdx, QWORD PTR 8[rax+rdx*8]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 40[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 96[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 80[rax], 1
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 88[rax], rdx
	mov	eax, DWORD PTR -32[rbp]
	add	eax, 1
	mov	DWORD PTR -36[rbp], eax
	jmp	.L37
.L38:
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, edx
	mov	esi, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	mov	rcx, QWORD PTR [rax+rdx*8]
	mov	rax, QWORD PTR -8[rbp]
	movsx	rdx, esi
	mov	QWORD PTR [rax+rdx*8], rcx
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, edx
	mov	ecx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	add	rdx, 4
	mov	rdx, QWORD PTR 8[rax+rdx*8]
	mov	rax, QWORD PTR -8[rbp]
	movsx	rcx, ecx
	add	rcx, 4
	mov	QWORD PTR 8[rax+rcx*8], rdx
	add	DWORD PTR -36[rbp], 1
.L37:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 80[rax]
	mov	eax, DWORD PTR -36[rbp]
	cmp	edx, eax
	ja	.L38
	mov	eax, DWORD PTR -32[rbp]
	add	eax, 1
	mov	DWORD PTR -36[rbp], eax
	jmp	.L39
.L41:
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, edx
	mov	ecx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	add	rdx, 12
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	rax, QWORD PTR -8[rbp]
	movsx	rcx, ecx
	add	rcx, 12
	mov	QWORD PTR [rax+rcx*8], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	add	rdx, 12
	mov	rax, QWORD PTR [rax+rdx*8]
	test	rax, rax
	je	.L40
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	add	rdx, 12
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 88[rax], rdx
.L40:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	add	rdx, 12
	mov	QWORD PTR [rax+rdx*8], 0
	add	DWORD PTR -36[rbp], 1
.L39:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 80[rax]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -36[rbp]
	cmp	edx, eax
	ja	.L41
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 80[rax]
	mov	edx, DWORD PTR -32[rbp]
	sub	eax, edx
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 80[rax], edx
	mov	edx, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 80[rax], edx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 104[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 88[rax], rdx
.L42:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	split_node, .-split_node
	.globl	add_element
	.type	add_element, @function
add_element:
.LFB14:
	.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	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR ptreeroot[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -16[rbp], 0
	jmp	.L44
.L48:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	find_index
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	test	eax, eax
	jns	.L45
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -32[rbp]
	not	edx
	movsx	rdx, edx
	add	rdx, 4
	mov	rax, QWORD PTR 8[rax+rdx*8]
	jmp	.L51
.L45:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 80[rax]
	cmp	eax, 5
	jne	.L47
	lea	rdx, -32[rbp]
	lea	rax, -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	split_node
.L47:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	add	rdx, 12
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	QWORD PTR -24[rbp], rax
.L44:
	mov	rax, QWORD PTR -24[rbp]
	test	rax, rax
	jne	.L48
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR record_count[rip]
	add	eax, 1
	mov	DWORD PTR record_count[rip], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 80[rax]
	mov	DWORD PTR -28[rbp], eax
	jmp	.L49
.L50:
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -28[rbp]
	lea	ecx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	movsx	rcx, ecx
	mov	rcx, QWORD PTR [rdx+rcx*8]
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	mov	QWORD PTR [rax+rdx*8], rcx
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -28[rbp]
	lea	ecx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	movsx	rcx, ecx
	add	rcx, 4
	mov	rdx, QWORD PTR 8[rdx+rcx*8]
	mov	ecx, DWORD PTR -28[rbp]
	movsx	rcx, ecx
	add	rcx, 4
	mov	QWORD PTR 8[rax+rcx*8], rdx
	sub	DWORD PTR -28[rbp], 1
.L49:
	mov	eax, DWORD PTR -32[rbp]
	cmp	DWORD PTR -28[rbp], eax
	jg	.L50
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	mov	rcx, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax+rdx*8], rcx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	lea	rcx, 4[rdx]
	mov	rdx, QWORD PTR -48[rbp]
	mov	QWORD PTR 8[rax+rcx*8], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 80[rax]
	add	edx, 1
	mov	DWORD PTR 80[rax], edx
	mov	eax, 0
.L51:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L52
	call	__stack_chk_fail@PLT
.L52:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	add_element, .-add_element
	.globl	inorder_traversal
	.type	inorder_traversal, @function
inorder_traversal:
.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	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L54
.L55:
	add	DWORD PTR -4[rbp], 1
.L54:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 80[rax]
	mov	eax, DWORD PTR -4[rbp]
	cmp	edx, eax
	ja	.L55
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	inorder_traversal, .-inorder_traversal
	.globl	find_value
	.type	find_value, @function
find_value:
.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	rax, QWORD PTR ptreeroot[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	find_value, .-find_value
	.section	.rodata
.LC1:
	.string	"%s: [%s] "
	.text
	.globl	display_result
	.type	display_result, @function
display_result:
.LFB17:
	.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 -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L59
.L60:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L59:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L60
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	display_result, .-display_result
	.section	.rodata
.LC2:
	.string	"MovieTitle"
.LC3:
	.string	"MovieCategory"
.LC4:
	.string	"ProductionYear"
.LC5:
	.string	"Format"
.LC6:
	.string	"Language"
.LC7:
	.string	"Web"
.LC8:
	.string	"Duplicate record exists: "
	.text
	.globl	store_result
	.type	store_result, @function
store_result:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	eax, 0
	call	alloc_record
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR record_count[rip]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	DWORD PTR -12[rbp], 0
	jmp	.L63
.L70:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L64
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strdup@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	jmp	.L65
.L64:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L66
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strdup@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
	jmp	.L65
.L66:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L67
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 24[rax], edx
	jmp	.L65
.L67:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L68
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strdup@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 32[rax], rdx
	jmp	.L65
.L68:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L69
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strdup@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 40[rax], rdx
	jmp	.L65
.L69:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L65
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strdup@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 48[rax], rdx
.L65:
	add	DWORD PTR -12[rbp], 1
.L63:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L70
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	add_element
	test	rax, rax
	je	.L71
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdout[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	display_record
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free_record
.L71:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	store_result, .-store_result
	.section	.rodata
	.align 8
.LC9:
	.string	"Error: database name not specified!\n"
.LC10:
	.string	"Cannot open database: %s\n"
.LC11:
	.string	"Open database successfully!"
	.align 8
.LC12:
	.string	"Fail to execute the SQL query: %s\n"
.LC13:
	.string	"Close database!"
	.text
	.globl	main
	.type	main, @function
main:
.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, 112
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 3035518796749882707
	movabs	rdx, 8029109227086824992
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	movabs	rax, 4992335983826790774
	movabs	rdx, 8459008536869881170
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	movabs	rax, 7018113925177242723
	movabs	rdx, 3473745570743197810
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	BYTE PTR -16[rbp], 0
	cmp	DWORD PTR -100[rbp], 1
	jg	.L74
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 36
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L78
.L74:
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	sqlite3_open@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	je	.L76
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	sqlite3_errmsg@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	sqlite3_close@PLT
	mov	eax, 1
	jmp	.L78
.L76:
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, -72[rbp]
	lea	rsi, -64[rbp]
	mov	r8, rdx
	mov	ecx, 0
	lea	rdx, display_result[rip]
	mov	rdi, rax
	call	sqlite3_exec@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	je	.L77
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L77:
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	sqlite3_close@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	eax, 0
.L78:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L79
	call	__stack_chk_fail@PLT
.L79:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	main, .-main
	.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	"399579.c"
	.text
	.local	ptreeroot
	.comm	ptreeroot,4,4
	.local	record_count
	.comm	record_count,4,4
	.align	2
	.global	alloc_record
	.syntax unified
	.arm
	.fpu softvfp
	.type	alloc_record, %function
alloc_record:
	@ 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, #28
	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	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #20]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #24]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	alloc_record, .-alloc_record
	.align	2
	.global	free_record
	.syntax unified
	.arm
	.fpu softvfp
	.type	free_record, %function
free_record:
	@ 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, #4]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	free
.L4:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	free
.L5:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #16]
	mov	r0, r3
	bl	free
.L6:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #20]
	cmp	r3, #0
	beq	.L7
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #20]
	mov	r0, r3
	bl	free
.L7:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #24]
	mov	r0, r3
	bl	free
.L8:
	ldr	r0, [fp, #-8]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	free_record, .-free_record
	.section	.rodata
	.align	2
.LC0:
	.ascii	"[#%d] %s (%d): %s, %s, %s, <%s>\012\000"
	.text
	.align	2
	.global	display_record
	.syntax unified
	.arm
	.fpu softvfp
	.type	display_record, %function
display_record:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	lr, [r3]
	ldr	r3, [fp, #-16]
	ldr	r4, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-16]
	ldr	r2, [r2, #8]
	ldr	r1, [fp, #-16]
	ldr	r1, [r1, #16]
	ldr	r0, [fp, #-16]
	ldr	r0, [r0, #20]
	ldr	ip, [fp, #-16]
	ldr	ip, [ip, #24]
	str	ip, [sp, #16]
	str	r0, [sp, #12]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r4
	mov	r2, lr
	ldr	r1, .L10
	ldr	r0, [fp, #-20]
	bl	fprintf
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC0
	.size	display_record, .-display_record
	.align	2
	.global	alloc_tnode
	.syntax unified
	.arm
	.fpu softvfp
	.type	alloc_tnode, %function
alloc_tnode:
	@ 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, #72
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #40]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L13
.L14:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	add	r2, r2, #12
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L13:
	ldr	r3, [fp, #-12]
	cmp	r3, #5
	ble	.L14
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #44]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	alloc_tnode, .-alloc_tnode
	.align	2
	.global	free_tnode
	.syntax unified
	.arm
	.fpu softvfp
	.type	free_tnode, %function
free_tnode:
	@ 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	.L17
.L19:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	add	r2, r2, #12
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	add	r2, r2, #12
	ldr	r3, [r3, r2, lsl #2]
	mov	r0, r3
	bl	free_tnode
.L18:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L17:
	ldr	r3, [fp, #-8]
	cmp	r3, #5
	bls	.L19
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L20
.L22:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L21
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	free_record
.L21:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L20:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #40]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bcc	.L22
	ldr	r0, [fp, #-16]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	free_tnode, .-free_tnode
	.align	2
	.global	key_compare
	.syntax unified
	.arm
	.fpu softvfp
	.type	key_compare, %function
key_compare:
	@ 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	strcasecmp
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	key_compare, .-key_compare
	.align	2
	.global	find_index
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_index, %function
find_index:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #40]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
.L26:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	ble	.L26
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	find_index, .-find_index
	.align	2
	.global	split_node
	.syntax unified
	.arm
	.fpu softvfp
	.type	split_node, %function
split_node:
	@ 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	r3, [r3]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #40]
	lsr	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #44]
	str	r3, [fp, #-16]
	bl	alloc_tnode
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L29
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bge	.L29
	ldr	r3, [fp, #-36]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	sub	r2, r2, r3
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
.L29:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L30
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	find_index
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #40]
	str	r3, [fp, #-28]
	b	.L31
.L32:
	ldr	r3, [fp, #-28]
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-28]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r3, #4
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldr	r1, [fp, #-16]
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #4]
	ldr	r3, [fp, #-28]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-28]
	add	r1, r1, #12
	ldr	r1, [r3, r1, lsl #2]
	ldr	r3, [fp, #-16]
	add	r2, r2, #12
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
.L31:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bgt	.L32
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r1, [r3, r2, lsl #2]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldr	r1, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	add	r2, r2, #12
	ldr	r1, [fp, #-24]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #40]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #40]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L33
.L34:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, [fp, #-28]
	sub	r2, r2, r3
	ldr	r3, [fp, #-24]
	ldr	r1, [fp, #-28]
	ldr	r1, [r3, r1, lsl #2]
	ldr	r3, [fp, #-12]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, [fp, #-28]
	sub	r0, r2, r3
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldr	r1, [fp, #-12]
	add	r3, r0, #4
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #4]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L33:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #40]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bhi	.L34
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L35
.L37:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, [fp, #-28]
	sub	r2, r2, r3
	ldr	r3, [fp, #-24]
	ldr	r1, [fp, #-28]
	add	r1, r1, #12
	ldr	r1, [r3, r1, lsl #2]
	ldr	r3, [fp, #-12]
	add	r2, r2, #12
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-28]
	add	r2, r2, #12
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	beq	.L36
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-28]
	add	r2, r2, #12
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #44]
.L36:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-28]
	add	r2, r2, #12
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L35:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #40]
	add	r2, r3, #1
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bhi	.L37
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #40]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	sub	r2, r3, #1
	ldr	r3, [fp, #-12]
	str	r2, [r3, #40]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	str	r2, [r3, #40]
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	add	r2, r2, #12
	ldr	r1, [fp, #-12]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #44]
	b	.L44
.L30:
	bl	alloc_tnode
	mov	r3, r0
	ldr	r2, .L45
	str	r3, [r2]
	ldr	r3, .L45
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	str	r2, [r3, #48]
	ldr	r3, [fp, #-16]
	mov	r2, #1
	str	r2, [r3, #40]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #44]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L39
.L40:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, [fp, #-28]
	sub	r2, r2, r3
	ldr	r3, [fp, #-24]
	ldr	r1, [fp, #-28]
	ldr	r1, [r3, r1, lsl #2]
	ldr	r3, [fp, #-12]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, [fp, #-28]
	sub	r0, r2, r3
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldr	r1, [fp, #-12]
	add	r3, r0, #4
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #4]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L39:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #40]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bhi	.L40
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L41
.L43:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, [fp, #-28]
	sub	r2, r2, r3
	ldr	r3, [fp, #-24]
	ldr	r1, [fp, #-28]
	add	r1, r1, #12
	ldr	r1, [r3, r1, lsl #2]
	ldr	r3, [fp, #-12]
	add	r2, r2, #12
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-28]
	add	r2, r2, #12
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	beq	.L42
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-28]
	add	r2, r2, #12
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #44]
.L42:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-28]
	add	r2, r2, #12
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L41:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #40]
	add	r2, r3, #1
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bhi	.L43
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #40]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	sub	r2, r3, #1
	ldr	r3, [fp, #-12]
	str	r2, [r3, #40]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	str	r2, [r3, #40]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #52]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #44]
.L44:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	ptreeroot
	.size	split_node, .-split_node
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	add_element
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_element, %function
add_element:
	@ 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, .L57
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L57+4
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L48
.L52:
	ldr	r3, [fp, #-24]
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	find_index
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L49
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	mvn	r3, r3
	add	r3, r3, #4
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	b	.L55
.L49:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #40]
	cmp	r3, #5
	bne	.L51
	sub	r2, fp, #20
	sub	r3, fp, #24
	mov	r1, r2
	mov	r0, r3
	bl	split_node
.L51:
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	add	r2, r2, #12
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-24]
.L48:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L52
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-24]
	ldr	r3, .L57+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L57+8
	str	r3, [r2]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #40]
	str	r3, [fp, #-12]
	b	.L53
.L54:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	sub	r1, r3, #1
	ldr	r3, [fp, #-24]
	ldr	r1, [r2, r1, lsl #2]
	ldr	r2, [fp, #-12]
	str	r1, [r3, r2, lsl #2]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	ldr	r1, [fp, #-24]
	add	r3, r3, #4
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L53:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bgt	.L54
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-32]
	str	r1, [r3, r2, lsl #2]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-36]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #40]
	add	r2, r2, #1
	str	r2, [r3, #40]
	mov	r3, #0
.L55:
	ldr	r2, .L57
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L56
	bl	__stack_chk_fail
.L56:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L58:
	.align	2
.L57:
	.word	.LC1
	.word	ptreeroot
	.word	record_count
	.size	add_element, .-add_element
	.align	2
	.global	inorder_traversal
	.syntax unified
	.arm
	.fpu softvfp
	.type	inorder_traversal, %function
inorder_traversal:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L60
.L61:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L60:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #40]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bhi	.L61
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	inorder_traversal, .-inorder_traversal
	.align	2
	.global	find_value
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_value, %function
find_value:
	@ 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]
	ldr	r3, .L64
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L65:
	.align	2
.L64:
	.word	ptreeroot
	.size	find_value, .-find_value
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%s: [%s] \000"
	.text
	.align	2
	.global	display_result
	.syntax unified
	.arm
	.fpu softvfp
	.type	display_result, %function
display_result:
	@ 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]
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L67
.L68:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L70
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L67:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L68
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L71:
	.align	2
.L70:
	.word	.LC2
	.size	display_result, .-display_result
	.section	.rodata
	.align	2
.LC3:
	.ascii	"MovieTitle\000"
	.align	2
.LC4:
	.ascii	"MovieCategory\000"
	.align	2
.LC5:
	.ascii	"ProductionYear\000"
	.align	2
.LC6:
	.ascii	"Format\000"
	.align	2
.LC7:
	.ascii	"Language\000"
	.align	2
.LC8:
	.ascii	"Web\000"
	.align	2
.LC9:
	.ascii	"Duplicate record exists: \000"
	.text
	.align	2
	.global	store_result
	.syntax unified
	.arm
	.fpu softvfp
	.type	store_result, %function
store_result:
	@ 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]
	str	r3, [fp, #-28]
	bl	alloc_record
	str	r0, [fp, #-8]
	ldr	r3, .L83
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L73
.L80:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L83+4
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L74
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	b	.L75
.L74:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L83+8
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L76
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	b	.L75
.L76:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L83+12
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L77
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #12]
	b	.L75
.L77:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L83+16
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L78
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #16]
	b	.L75
.L78:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L83+20
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L79
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #20]
	b	.L75
.L79:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L83+24
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L75
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #24]
.L75:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L73:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L80
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	add_element
	mov	r3, r0
	cmp	r3, #0
	beq	.L81
	ldr	r0, .L83+28
	bl	printf
	ldr	r3, .L83+32
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	display_record
	ldr	r0, [fp, #-8]
	bl	free_record
.L81:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L84:
	.align	2
.L83:
	.word	record_count
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	stdout
	.size	store_result, .-store_result
	.section	.rodata
	.align	2
.LC11:
	.ascii	"Error: database name not specified!\012\000"
	.align	2
.LC12:
	.ascii	"Cannot open database: %s\012\000"
	.align	2
.LC13:
	.ascii	"Open database successfully!\000"
	.align	2
.LC14:
	.ascii	"Fail to execute the SQL query: %s\012\000"
	.align	2
.LC15:
	.ascii	"Close database!\000"
	.align	2
.LC10:
	.ascii	"SELECT * FROM movies WHERE ProductionYear < 1950\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #92
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	ldr	r3, .L92
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L92+4
	sub	ip, fp, #68
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	strb	r3, [ip]
	ldr	r3, [fp, #-88]
	cmp	r3, #1
	bgt	.L86
	ldr	r3, .L92+8
	ldr	r3, [r3]
	mov	r2, #36
	mov	r1, #1
	ldr	r0, .L92+12
	bl	fwrite
	mov	r3, #1
	b	.L90
.L86:
	mov	r3, #0
	str	r3, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-92]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #80
	mov	r1, r2
	mov	r0, r3
	bl	sqlite3_open
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	beq	.L88
	ldr	r3, .L92+8
	ldr	r4, [r3]
	ldr	r3, [fp, #-80]
	mov	r0, r3
	bl	sqlite3_errmsg
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L92+16
	mov	r0, r4
	bl	fprintf
	ldr	r3, [fp, #-80]
	mov	r0, r3
	bl	sqlite3_close
	mov	r3, #1
	b	.L90
.L88:
	ldr	r0, .L92+20
	bl	puts
	ldr	r0, [fp, #-80]
	sub	r1, fp, #68
	sub	r3, fp, #76
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, .L92+24
	bl	sqlite3_exec
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	beq	.L89
	ldr	r3, .L92+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-76]
	ldr	r1, .L92+28
	mov	r0, r3
	bl	fprintf
.L89:
	ldr	r3, [fp, #-80]
	mov	r0, r3
	bl	sqlite3_close
	ldr	r0, .L92+32
	bl	puts
	mov	r3, #0
.L90:
	ldr	r2, .L92
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L91
	bl	__stack_chk_fail
.L91:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L93:
	.align	2
.L92:
	.word	.LC16
	.word	.LC10
	.word	stderr
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	display_result
	.word	.LC14
	.word	.LC15
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
