	.file	"116875.c"
	.intel_syntax noprefix
	.text
	.globl	database
	.bss
	.align 8
	.type	database, @object
	.size	database, 8
database:
	.zero	8
	.globl	file
	.align 8
	.type	file, @object
	.size	file, 8
file:
	.zero	8
	.globl	out
	.align 8
	.type	out, @object
	.size	out, 8
out:
	.zero	8
	.section	.rodata
.LC0:
	.string	"NO QUERY PROVIDED"
.LC1:
	.string	"r+"
	.align 8
.LC2:
	.string	"The file already exists. Would you like to override it? (y/n): "
.LC3:
	.string	" %c"
.LC4:
	.string	"w"
.LC5:
	.string	"FILE EXISTS"
.LC6:
	.string	"FAILED TO PARSE FILE"
.LC7:
	.string	"vi:f:m:o:g"
	.text
	.globl	main
	.type	main, @function
main:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -44[rbp], 0
	mov	DWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	rax, QWORD PTR stdout[rip]
	mov	QWORD PTR out[rip], rax
	mov	edi, 64
	call	malloc@PLT
	mov	QWORD PTR database[rip], rax
	mov	rax, QWORD PTR database[rip]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR database[rip]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR database[rip]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR database[rip]
	mov	DWORD PTR 48[rax], -1
	mov	rax, QWORD PTR database[rip]
	mov	DWORD PTR 52[rax], 1
	cmp	DWORD PTR -52[rbp], 2
	jg	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	rax, QWORD PTR database[rip]
	mov	rdi, rax
	call	freeDatabase
	mov	eax, 1
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR file[rip], rax
	mov	eax, 0
	call	loadDatabase
	cmp	eax, -1
	jne	.L5
	mov	rax, QWORD PTR database[rip]
	mov	rdi, rax
	call	freeDatabase
	mov	rax, QWORD PTR file[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, -1
	jmp	.L3
.L17:
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, 102
	cmp	eax, 16
	ja	.L6
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L8[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L8[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L8:
	.long	.L13-.L8
	.long	.L12-.L8
	.long	.L6-.L8
	.long	.L11-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L10-.L8
	.long	.L6-.L8
	.long	.L9-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L6-.L8
	.long	.L7-.L8
	.text
.L7:
	mov	DWORD PTR -44[rbp], 1
	jmp	.L5
.L11:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L5
.L13:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L5
.L10:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L5
.L9:
	mov	rax, QWORD PTR optarg[rip]
	mov	esi, 0
	mov	rdi, rax
	call	access@PLT
	test	eax, eax
	jne	.L14
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -45[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -45[rbp]
	cmp	al, 121
	jne	.L15
	mov	rax, QWORD PTR optarg[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR out[rip], rax
	jmp	.L5
.L15:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L3
.L14:
	mov	rax, QWORD PTR optarg[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR out[rip], rax
	jmp	.L5
.L12:
	mov	DWORD PTR -40[rbp], 1
	jmp	.L5
.L6:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	rax, QWORD PTR database[rip]
	mov	rdi, rax
	call	freeDatabase
	mov	rax, QWORD PTR file[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L3
.L5:
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -52[rbp]
	lea	rdx, .LC7[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], -1
	jne	.L17
	mov	edi, DWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	r8d, edi
	mov	edi, eax
	call	processFlags
	mov	rax, QWORD PTR database[rip]
	mov	rdi, rax
	call	freeDatabase
	mov	rax, QWORD PTR file[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	rdx, QWORD PTR out[rip]
	mov	rax, QWORD PTR stdout[rip]
	cmp	rdx, rax
	je	.L18
	mov	rax, QWORD PTR out[rip]
	mov	rdi, rax
	call	fclose@PLT
.L18:
	mov	eax, 0
.L3:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	freeDatabase
	.type	freeDatabase, @function
freeDatabase:
.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 [rax]
	test	rax, rax
	je	.L21
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	freeDatabase
.L21:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L22
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	freeDatabase
.L22:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	freeDatabase, .-freeDatabase
	.section	.rodata
.LC8:
	.string	"%s"
.LC9:
	.string	"%d %s %s %s "
.LC10:
	.string	" %f %s"
.LC11:
	.string	"ID NOT UNIQUE"
.LC12:
	.string	"%d "
	.align 8
.LC13:
	.string	"STUDENT RECORD CANNOT BE DELETED NOR UPDATED"
	.text
	.globl	loadDatabase
	.type	loadDatabase, @function
loadDatabase:
.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, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 7
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	edi, 21
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	edi, 21
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	edi, 14
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	edi, 15
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
.L40:
	mov	rax, QWORD PTR file[rip]
	mov	rdx, QWORD PTR -48[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], -1
	jne	.L24
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L41
.L24:
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 85
	je	.L26
	cmp	eax, 85
	jg	.L27
	cmp	eax, 65
	je	.L26
	cmp	eax, 68
	je	.L28
	jmp	.L27
.L26:
	mov	rax, QWORD PTR file[rip]
	mov	rdi, QWORD PTR -16[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	lea	rdx, -68[rbp]
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	stringLen
	not	eax
	movsx	rcx, eax
	mov	rax, QWORD PTR file[rip]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR file[rip]
	mov	rcx, QWORD PTR -24[rbp]
	lea	rdx, -64[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	toupper@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	toupper@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR [rax], dl
	mov	DWORD PTR -56[rbp], 0
	jmp	.L29
.L30:
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	toupper@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -56[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -56[rbp], 1
.L29:
	cmp	DWORD PTR -56[rbp], 2
	jle	.L30
	mov	edi, DWORD PTR -64[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR -40[rbp]
	movd	xmm0, edi
	mov	edi, eax
	call	formatted
	test	eax, eax
	je	.L31
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	stringLen
	cmp	eax, 4
	je	.L32
.L31:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L33
.L32:
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 65
	jne	.L34
	mov	edi, DWORD PTR -64[rbp]
	mov	esi, DWORD PTR -68[rbp]
	mov	rax, QWORD PTR database[rip]
	mov	r8, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	movd	xmm0, edi
	mov	rdi, rax
	call	addStudent
	cmp	eax, -1
	jne	.L43
	lea	rdi, .LC11[rip]
	call	puts@PLT
	jmp	.L33
.L34:
	mov	edi, DWORD PTR -64[rbp]
	mov	esi, DWORD PTR -68[rbp]
	mov	rax, QWORD PTR database[rip]
	mov	r8, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	movd	xmm0, edi
	mov	rdi, rax
	call	updateStudent
	mov	DWORD PTR -60[rbp], eax
	jmp	.L43
.L28:
	mov	rax, QWORD PTR file[rip]
	lea	rdx, -68[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	eax, DWORD PTR -68[rbp]
	test	eax, eax
	jle	.L37
	mov	edx, DWORD PTR -68[rbp]
	mov	rax, QWORD PTR database[rip]
	mov	esi, edx
	mov	rdi, rax
	call	deleteStudent
	mov	DWORD PTR -60[rbp], eax
	jmp	.L36
.L37:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L36
.L27:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L33
.L43:
	nop
.L36:
	cmp	DWORD PTR -60[rbp], -1
	jne	.L40
	lea	rdi, .LC13[rip]
	call	puts@PLT
.L33:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, -1
.L41:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L42
	call	__stack_chk_fail@PLT
.L42:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	loadDatabase, .-loadDatabase
	.globl	findMin
	.type	findMin, @function
findMin:
.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
	jmp	.L45
.L46:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
.L45:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L46
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	findMin, .-findMin
	.globl	replaceNode
	.type	replaceNode, @function
replaceNode:
.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	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L49
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -8[rbp], rax
	jne	.L50
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L51
.L50:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 8[rax], rdx
	jmp	.L51
.L49:
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR database[rip], rax
.L51:
	cmp	QWORD PTR -16[rbp], 0
	je	.L53
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 16[rax], rdx
.L53:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	replaceNode, .-replaceNode
	.globl	deleteStudent
	.type	deleteStudent, @function
deleteStudent:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 48[rax]
	cmp	DWORD PTR -28[rbp], eax
	jge	.L55
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L56
	mov	eax, -1
	jmp	.L57
.L56:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -28[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	deleteStudent
	jmp	.L57
.L55:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 48[rax]
	cmp	DWORD PTR -28[rbp], eax
	jle	.L58
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L59
	mov	eax, -1
	jmp	.L57
.L59:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR -28[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	deleteStudent
	jmp	.L57
.L58:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L60
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L60
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	findMin
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 48[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 48[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	movss	xmm0, DWORD PTR 56[rax]
	mov	rax, QWORD PTR -24[rbp]
	movss	DWORD PTR 56[rax], xmm0
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 40[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	stringCopy
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 24[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	stringCopy
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 32[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	stringCopy
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 48[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	deleteStudent
	mov	eax, 0
	jmp	.L57
.L60:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L61
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	replaceNode
	jmp	.L62
.L61:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L63
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	replaceNode
	jmp	.L62
.L63:
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	replaceNode
.L62:
	mov	eax, 0
.L57:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	deleteStudent, .-deleteStudent
	.globl	addStudent
	.type	addStudent, @function
addStudent:
.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, 64
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	movss	DWORD PTR -32[rbp], xmm0
	mov	QWORD PTR -56[rbp], r8
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 48[rax]
	cmp	DWORD PTR -28[rbp], eax
	jne	.L65
	mov	eax, -1
	jmp	.L66
.L65:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 48[rax]
	cmp	DWORD PTR -28[rbp], eax
	jle	.L67
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L68
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	r8, QWORD PTR -56[rbp]
	mov	edi, DWORD PTR -32[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	esi, DWORD PTR -28[rbp]
	movd	xmm0, edi
	mov	rdi, rax
	call	addStudent
	jmp	.L66
.L68:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 48[rax]
	cmp	eax, -1
	jne	.L69
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR 48[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 24[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stringCopy
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 32[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stringCopy
	mov	rax, QWORD PTR -24[rbp]
	movss	xmm0, DWORD PTR -32[rbp]
	movss	DWORD PTR 56[rax], xmm0
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 40[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stringCopy
	mov	eax, 0
	jmp	.L66
.L69:
	mov	edi, 64
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 52[rax], 1
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR 48[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 24[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stringCopy
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 32[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stringCopy
	mov	rax, QWORD PTR -8[rbp]
	movss	xmm0, DWORD PTR -32[rbp]
	movss	DWORD PTR 56[rax], xmm0
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 40[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stringCopy
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	eax, 0
	jmp	.L66
.L67:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L70
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	r8, QWORD PTR -56[rbp]
	mov	edi, DWORD PTR -32[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	esi, DWORD PTR -28[rbp]
	movd	xmm0, edi
	mov	rdi, rax
	call	addStudent
	jmp	.L66
.L70:
	mov	edi, 64
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR 48[rax], edx
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 52[rax], 1
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 24[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stringCopy
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 32[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stringCopy
	mov	rax, QWORD PTR -16[rbp]
	movss	xmm0, DWORD PTR -32[rbp]
	movss	DWORD PTR 56[rax], xmm0
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 40[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stringCopy
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, 0
.L66:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	addStudent, .-addStudent
	.globl	updateStudent
	.type	updateStudent, @function
updateStudent:
.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, 48
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	movss	DWORD PTR -16[rbp], xmm0
	mov	QWORD PTR -40[rbp], r8
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 48[rax]
	cmp	DWORD PTR -12[rbp], eax
	jne	.L72
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 24[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stringCopy
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 32[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stringCopy
	mov	rax, QWORD PTR -8[rbp]
	movss	xmm0, DWORD PTR -16[rbp]
	movss	DWORD PTR 56[rax], xmm0
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 40[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stringCopy
	mov	eax, 0
	jmp	.L73
.L72:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 48[rax]
	cmp	DWORD PTR -12[rbp], eax
	jge	.L74
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L75
	mov	eax, -1
	jmp	.L73
.L75:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	r8, QWORD PTR -40[rbp]
	mov	edi, DWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	esi, DWORD PTR -12[rbp]
	movd	xmm0, edi
	mov	rdi, rax
	call	updateStudent
	jmp	.L73
.L74:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L76
	mov	eax, -1
	jmp	.L73
.L76:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	r8, QWORD PTR -40[rbp]
	mov	edi, DWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	esi, DWORD PTR -12[rbp]
	movd	xmm0, edi
	mov	rdi, rax
	call	updateStudent
.L73:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	updateStudent, .-updateStudent
	.globl	stringCopy
	.type	stringCopy, @function
stringCopy:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	stringLen
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 1
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -16[rbp], 0
	jmp	.L78
.L79:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -16[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -16[rbp], 1
.L78:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jle	.L79
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	stringCopy, .-stringCopy
	.globl	calcAverage
	.type	calcAverage, @function
calcAverage:
.LFB15:
	.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	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	movss	xmm0, DWORD PTR 56[rax]
	movss	DWORD PTR -4[rbp], xmm0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L82
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	calcAverage
	movss	xmm1, DWORD PTR -4[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -4[rbp], xmm0
.L82:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L83
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	calcAverage
	movss	xmm1, DWORD PTR -4[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -4[rbp], xmm0
.L83:
	movss	xmm0, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	calcAverage, .-calcAverage
	.section	.rodata
.LC14:
	.string	"%d %s %s %.2f %s\n"
	.text
	.globl	printTree
	.type	printTree, @function
printTree:
.LFB16:
	.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]
	test	rax, rax
	je	.L86
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	printTree
.L86:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 52[rax]
	test	eax, eax
	je	.L87
	mov	rax, QWORD PTR -8[rbp]
	mov	r8, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -8[rbp]
	movss	xmm0, DWORD PTR 56[rax]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rsi, xmm1
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 48[rax]
	mov	rax, QWORD PTR out[rip]
	mov	r9, r8
	movq	xmm0, rsi
	mov	r8, rdi
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
.L87:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L89
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	printTree
.L89:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	printTree, .-printTree
	.globl	filterID
	.type	filterID, @function
filterID:
.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, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L95
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L93
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	filterID
.L93:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 52[rax]
	test	eax, eax
	je	.L94
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 48[rax]
	cmp	DWORD PTR -12[rbp], eax
	je	.L94
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 52[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
.L94:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L90
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	filterID
	jmp	.L90
.L95:
	nop
.L90:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	filterID, .-filterID
	.globl	filterMajor
	.type	filterMajor, @function
filterMajor:
.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, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L101
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L99
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	filterMajor
.L99:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 52[rax]
	test	eax, eax
	je	.L100
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stringEquals
	test	eax, eax
	jne	.L100
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 52[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
.L100:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L96
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	filterMajor
	jmp	.L96
.L101:
	nop
.L96:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	filterMajor, .-filterMajor
	.globl	filterLastName
	.type	filterLastName, @function
filterLastName:
.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, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L107
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L105
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	filterLastName
.L105:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 52[rax]
	test	eax, eax
	je	.L106
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stringEquals
	test	eax, eax
	jne	.L106
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 52[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
.L106:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L102
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	filterLastName
	jmp	.L102
.L107:
	nop
.L102:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	filterLastName, .-filterLastName
	.section	.rodata
.LC15:
	.string	"%.2f\n"
.LC16:
	.string	"TST"
.LC17:
	.string	"Default"
.LC19:
	.string	"OTHER ERROR"
.LC20:
	.string	"STUDENT RECORD NOT FOUND"
	.text
	.globl	processFlags
	.type	processFlags, @function
processFlags:
.LFB20:
	.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	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	mov	DWORD PTR -40[rbp], r8d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -32[rbp], 0
	mov	rax, QWORD PTR database[rip]
	lea	rdx, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	calcAverage
	movd	eax, xmm0
	mov	edx, DWORD PTR -32[rbp]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, edx
	movd	xmm0, eax
	divss	xmm0, xmm1
	movss	DWORD PTR -28[rbp], xmm0
	cmp	DWORD PTR -40[rbp], 0
	je	.L109
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -28[rbp]
	movq	rdx, xmm2
	mov	rax, QWORD PTR out[rip]
	movq	xmm0, rdx
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
.L109:
	cmp	DWORD PTR -36[rbp], 0
	je	.L110
	cmp	QWORD PTR -48[rbp], 0
	jne	.L110
	cmp	QWORD PTR -56[rbp], 0
	jne	.L110
	cmp	QWORD PTR -64[rbp], 0
	jne	.L110
	mov	rax, QWORD PTR database[rip]
	mov	rdi, rax
	call	printTree
	mov	eax, 0
	jmp	.L108
.L110:
	cmp	DWORD PTR -36[rbp], 0
	jne	.L112
	cmp	QWORD PTR -64[rbp], 0
	je	.L113
	mov	r12, QWORD PTR -64[rbp]
	jmp	.L114
.L113:
	lea	r12, .LC16[rip]
.L114:
	cmp	QWORD PTR -56[rbp], 0
	je	.L115
	mov	rbx, QWORD PTR -56[rbp]
	jmp	.L116
.L115:
	lea	rbx, .LC17[rip]
.L116:
	cmp	QWORD PTR -48[rbp], 0
	je	.L117
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	stringToInt
	jmp	.L118
.L117:
	mov	eax, 3
.L118:
	mov	rcx, r12
	movss	xmm0, DWORD PTR .LC18[rip]
	mov	rdx, rbx
	lea	rsi, .LC17[rip]
	mov	edi, eax
	call	formatted
	test	eax, eax
	jne	.L119
	lea	rdi, .LC19[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L108
.L119:
	cmp	QWORD PTR -48[rbp], 0
	je	.L120
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	stringToInt
	mov	ecx, eax
	mov	rax, QWORD PTR database[rip]
	lea	rdx, -32[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	filterID
.L120:
	cmp	QWORD PTR -56[rbp], 0
	je	.L121
	mov	rax, QWORD PTR database[rip]
	lea	rdx, -32[rbp]
	mov	rcx, QWORD PTR -56[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	filterLastName
.L121:
	cmp	QWORD PTR -64[rbp], 0
	je	.L122
	mov	rax, QWORD PTR database[rip]
	lea	rdx, -32[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	filterMajor
.L122:
	mov	eax, DWORD PTR -32[rbp]
	test	eax, eax
	jle	.L123
	mov	rax, QWORD PTR database[rip]
	mov	rdi, rax
	call	printTree
	jmp	.L124
.L123:
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
.L124:
	mov	eax, 0
	jmp	.L108
.L112:
.L108:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L126
	call	__stack_chk_fail@PLT
.L126:
	add	rsp, 48
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	processFlags, .-processFlags
	.globl	stringEquals
	.type	stringEquals, @function
stringEquals:
.LFB21:
	.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	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -20[rbp], 0
	jmp	.L128
.L131:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	toupper@PLT
	mov	ebx, eax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	toupper@PLT
	cmp	ebx, eax
	je	.L129
	mov	eax, 0
	jmp	.L130
.L129:
	add	DWORD PTR -20[rbp], 1
.L128:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L131
	mov	eax, 1
.L130:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	stringEquals, .-stringEquals
	.globl	stringLen
	.type	stringLen, @function
stringLen:
.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	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L133
.L136:
	add	DWORD PTR -4[rbp], 1
	cmp	DWORD PTR -28[rbp], 0
	je	.L134
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 1024
	test	eax, eax
	jne	.L134
	mov	eax, -1
	jmp	.L135
.L134:
	add	DWORD PTR -8[rbp], 1
.L133:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L136
	mov	eax, DWORD PTR -4[rbp]
.L135:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	stringLen, .-stringLen
	.globl	stringToInt
	.type	stringToInt, @function
stringToInt:
.LFB23:
	.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	DWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	stringLen
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	mov	DWORD PTR -28[rbp], eax
	jmp	.L138
.L141:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 1024
	test	eax, eax
	je	.L139
	mov	eax, -1
	jmp	.L140
.L139:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	lea	ebx, -48[rax]
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -28[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	rax, QWORD PTR .LC21[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	cvttsd2si	eax, xmm0
	imul	eax, ebx
	add	DWORD PTR -24[rbp], eax
	sub	DWORD PTR -28[rbp], 1
.L138:
	cmp	DWORD PTR -28[rbp], 0
	jns	.L141
	mov	eax, DWORD PTR -24[rbp]
.L140:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	stringToInt, .-stringToInt
	.globl	formatted
	.type	formatted, @function
formatted:
.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, 48
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	movss	DWORD PTR -24[rbp], xmm0
	mov	QWORD PTR -48[rbp], rcx
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	stringLen
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	stringLen
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	stringLen
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jle	.L143
	cmp	DWORD PTR -12[rbp], 2
	jle	.L143
	cmp	DWORD PTR -12[rbp], 10
	jg	.L143
	cmp	DWORD PTR -8[rbp], 2
	jle	.L143
	cmp	DWORD PTR -8[rbp], 10
	jg	.L143
	cmp	DWORD PTR -4[rbp], 3
	jne	.L143
	movss	xmm0, DWORD PTR -24[rbp]
	movss	xmm1, DWORD PTR .LC22[rip]
	comiss	xmm0, xmm1
	jb	.L143
	movss	xmm0, DWORD PTR .LC23[rip]
	comiss	xmm0, DWORD PTR -24[rbp]
	jb	.L143
	mov	eax, 1
	jmp	.L146
.L143:
	mov	eax, 0
.L146:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	formatted, .-formatted
	.section	.rodata
	.align 4
.LC18:
	.long	1077936128
	.align 8
.LC21:
	.long	0
	.long	1076101120
	.align 4
.LC22:
	.long	1065353216
	.align 4
.LC23:
	.long	1082130432
	.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	"116875.c"
	.text
	.comm	database,4,4
	.comm	file,4,4
	.comm	out,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"NO QUERY PROVIDED\000"
	.align	2
.LC1:
	.ascii	"r+\000"
	.align	2
.LC2:
	.ascii	"The file already exists. Would you like to override"
	.ascii	" it? (y/n): \000"
	.align	2
.LC3:
	.ascii	" %c\000"
	.align	2
.LC4:
	.ascii	"w\000"
	.align	2
.LC5:
	.ascii	"FILE EXISTS\000"
	.align	2
.LC6:
	.ascii	"FAILED TO PARSE FILE\000"
	.align	2
.LC7:
	.ascii	"vi:f:m:o:g\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ 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]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, .L20+4
	ldr	r3, [r3]
	ldr	r2, .L20+8
	str	r3, [r2]
	mov	r0, #36
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L20+12
	str	r2, [r3]
	ldr	r3, .L20+12
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L20+12
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, .L20+12
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, .L20+12
	ldr	r3, [r3]
	mvn	r2, #0
	str	r2, [r3, #24]
	ldr	r3, .L20+12
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [r3, #28]
	ldr	r3, [fp, #-40]
	cmp	r3, #2
	bgt	.L2
	ldr	r0, .L20+16
	bl	puts
	ldr	r3, .L20+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	freeDatabase
	mov	r3, #1
	b	.L3
.L2:
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L20+20
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L20+24
	str	r3, [r2]
	bl	loadDatabase
	mov	r3, r0
	cmn	r3, #1
	bne	.L5
	ldr	r3, .L20+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	freeDatabase
	ldr	r3, .L20+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	mvn	r3, #0
	b	.L3
.L17:
	ldr	r3, [fp, #-12]
	sub	r3, r3, #102
	cmp	r3, #16
	ldrls	pc, [pc, r3, asl #2]
	b	.L6
.L8:
	.word	.L13
	.word	.L12
	.word	.L6
	.word	.L11
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L10
	.word	.L6
	.word	.L9
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L7
.L7:
	mov	r3, #1
	str	r3, [fp, #-32]
	b	.L5
.L11:
	ldr	r3, .L20+28
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	b	.L5
.L13:
	ldr	r3, .L20+28
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	b	.L5
.L10:
	ldr	r3, .L20+28
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	b	.L5
.L9:
	ldr	r3, .L20+28
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	access
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	ldr	r0, .L20+32
	bl	printf
	sub	r3, fp, #33
	mov	r1, r3
	ldr	r0, .L20+36
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #121
	bne	.L15
	ldr	r3, .L20+28
	ldr	r3, [r3]
	ldr	r1, .L20+40
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L20+8
	str	r3, [r2]
	b	.L5
.L15:
	ldr	r0, .L20+44
	bl	puts
	mov	r3, #1
	b	.L3
.L14:
	ldr	r3, .L20+28
	ldr	r3, [r3]
	ldr	r1, .L20+40
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L20+8
	str	r3, [r2]
	b	.L5
.L12:
	mov	r3, #1
	str	r3, [fp, #-28]
	b	.L5
.L6:
	ldr	r0, .L20+48
	bl	puts
	ldr	r3, .L20+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	freeDatabase
	ldr	r3, .L20+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	mov	r3, #1
	b	.L3
.L5:
	ldr	r2, .L20+52
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	getopt
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L17
	ldr	r3, [fp, #-28]
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-32]
	bl	processFlags
	ldr	r3, .L20+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	freeDatabase
	ldr	r3, .L20+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r3, .L20+8
	ldr	r2, [r3]
	ldr	r3, .L20+4
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L18
	ldr	r3, .L20+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
.L18:
	mov	r3, #0
.L3:
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC8
	.word	stdout
	.word	out
	.word	database
	.word	.LC0
	.word	.LC1
	.word	file
	.word	optarg
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.align	2
	.global	freeDatabase
	.syntax unified
	.arm
	.fpu softvfp
	.type	freeDatabase, %function
freeDatabase:
	@ 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]
	cmp	r3, #0
	beq	.L23
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	freeDatabase
.L23:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L24
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	freeDatabase
.L24:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #16]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #20]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-8]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	freeDatabase, .-freeDatabase
	.section	.rodata
	.align	2
.LC9:
	.ascii	"%s\000"
	.align	2
.LC10:
	.ascii	"%d %s %s %s \000"
	.align	2
.LC11:
	.ascii	" %f %s\000"
	.align	2
.LC12:
	.ascii	"ID NOT UNIQUE\000"
	.align	2
.LC13:
	.ascii	"%d \000"
	.align	2
.LC14:
	.ascii	"STUDENT RECORD CANNOT BE DELETED NOR UPDATED\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	loadDatabase
	.syntax unified
	.arm
	.fpu softvfp
	.type	loadDatabase, %function
loadDatabase:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	ldr	r3, .L46
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r0, #7
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-40]
	mov	r0, #21
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-36]
	mov	r0, #21
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-32]
	mov	r0, #14
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-28]
	mov	r0, #15
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
.L42:
	ldr	r3, .L46+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	ldr	r1, .L46+8
	mov	r0, r3
	bl	__isoc99_fscanf
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L26
	ldr	r0, [fp, #-40]
	bl	free
	ldr	r0, [fp, #-36]
	bl	free
	ldr	r0, [fp, #-32]
	bl	free
	ldr	r0, [fp, #-28]
	bl	free
	ldr	r0, [fp, #-24]
	bl	free
	mov	r3, #0
	b	.L43
.L26:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #85
	beq	.L28
	cmp	r3, #85
	bgt	.L29
	cmp	r3, #65
	beq	.L28
	cmp	r3, #68
	beq	.L30
	b	.L29
.L28:
	ldr	r3, .L46+4
	ldr	r0, [r3]
	sub	r2, fp, #56
	ldr	r3, [fp, #-24]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-32]
	str	r3, [sp]
	ldr	r3, [fp, #-36]
	ldr	r1, .L46+12
	bl	__isoc99_fscanf
	ldr	r3, .L46+4
	ldr	r4, [r3]
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	stringLen
	mov	r3, r0
	mvn	r3, r3
	mov	r2, #1
	mov	r1, r3
	mov	r0, r4
	bl	fseek
	ldr	r3, .L46+4
	ldr	r0, [r3]
	sub	r2, fp, #52
	ldr	r3, [fp, #-28]
	ldr	r1, .L46+16
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-36]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	toupper
	mov	r3, r0
	and	r2, r3, #255
	ldr	r3, [fp, #-36]
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	toupper
	mov	r3, r0
	and	r2, r3, #255
	ldr	r3, [fp, #-32]
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L31
.L32:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	toupper
	mov	r1, r0
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	and	r2, r1, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L31:
	ldr	r3, [fp, #-44]
	cmp	r3, #2
	ble	.L32
	ldr	r0, [fp, #-56]
	ldr	r2, [fp, #-52]	@ float
	ldr	r3, [fp, #-28]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-36]
	bl	formatted
	mov	r3, r0
	cmp	r3, #0
	beq	.L33
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	stringLen
	mov	r3, r0
	cmp	r3, #4
	beq	.L34
.L33:
	ldr	r0, .L46+20
	bl	puts
	b	.L35
.L34:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #65
	bne	.L36
	ldr	r3, .L46+24
	ldr	r0, [r3]
	ldr	r1, [fp, #-56]
	ldr	r3, [fp, #-52]	@ float
	ldr	r2, [fp, #-28]
	str	r2, [sp, #4]
	str	r3, [sp]	@ float
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-36]
	bl	addStudent
	mov	r3, r0
	cmn	r3, #1
	bne	.L45
	ldr	r0, .L46+28
	bl	puts
	b	.L35
.L36:
	ldr	r3, .L46+24
	ldr	r0, [r3]
	ldr	r1, [fp, #-56]
	ldr	r3, [fp, #-52]	@ float
	ldr	r2, [fp, #-28]
	str	r2, [sp, #4]
	str	r3, [sp]	@ float
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-36]
	bl	updateStudent
	str	r0, [fp, #-48]
	b	.L45
.L30:
	ldr	r3, .L46+4
	ldr	r3, [r3]
	sub	r2, fp, #56
	ldr	r1, .L46+32
	mov	r0, r3
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	ble	.L39
	ldr	r3, .L46+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-56]
	mov	r1, r2
	mov	r0, r3
	bl	deleteStudent
	str	r0, [fp, #-48]
	b	.L38
.L39:
	ldr	r0, .L46+20
	bl	puts
	b	.L38
.L29:
	ldr	r0, .L46+20
	bl	puts
	b	.L35
.L45:
	nop
.L38:
	ldr	r3, [fp, #-48]
	cmn	r3, #1
	bne	.L42
	ldr	r0, .L46+36
	bl	puts
.L35:
	ldr	r0, [fp, #-40]
	bl	free
	ldr	r0, [fp, #-36]
	bl	free
	ldr	r0, [fp, #-32]
	bl	free
	ldr	r0, [fp, #-28]
	bl	free
	ldr	r0, [fp, #-24]
	bl	free
	mvn	r3, #0
.L43:
	ldr	r2, .L46
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L44
	bl	__stack_chk_fail
.L44:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC15
	.word	file
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC6
	.word	database
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	loadDatabase, .-loadDatabase
	.align	2
	.global	findMin
	.syntax unified
	.arm
	.fpu softvfp
	.type	findMin, %function
findMin:
	@ 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]
	b	.L49
.L50:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
.L49:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L50
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	findMin, .-findMin
	.align	2
	.global	replaceNode
	.syntax unified
	.arm
	.fpu softvfp
	.type	replaceNode, %function
replaceNode:
	@ 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	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L53
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L54
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	b	.L55
.L54:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #4]
	b	.L55
.L53:
	ldr	r2, .L58
	ldr	r3, [fp, #-12]
	str	r3, [r2]
.L55:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L57
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-12]
	str	r2, [r3, #8]
.L57:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L59:
	.align	2
.L58:
	.word	database
	.size	replaceNode, .-replaceNode
	.align	2
	.global	deleteStudent
	.syntax unified
	.arm
	.fpu softvfp
	.type	deleteStudent, %function
deleteStudent:
	@ 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, #24]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bge	.L61
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L62
	mvn	r3, #0
	b	.L63
.L62:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	deleteStudent
	mov	r3, r0
	b	.L63
.L61:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	ble	.L64
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L65
	mvn	r3, #0
	b	.L63
.L65:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	deleteStudent
	mov	r3, r0
	b	.L63
.L64:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L66
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L66
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	findMin
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #24]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #32]	@ float
	ldr	r3, [fp, #-16]
	str	r2, [r3, #32]	@ float
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-16]
	add	r3, r3, #20
	mov	r1, r3
	mov	r0, r2
	bl	stringCopy
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-16]
	add	r3, r3, #12
	mov	r1, r3
	mov	r0, r2
	bl	stringCopy
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-16]
	add	r3, r3, #16
	mov	r1, r3
	mov	r0, r2
	bl	stringCopy
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #24]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	deleteStudent
	mov	r3, #0
	b	.L63
.L66:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L67
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	replaceNode
	b	.L68
.L67:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L69
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	replaceNode
	b	.L68
.L69:
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	replaceNode
.L68:
	mov	r3, #0
.L63:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	deleteStudent, .-deleteStudent
	.align	2
	.global	addStudent
	.syntax unified
	.arm
	.fpu softvfp
	.type	addStudent, %function
addStudent:
	@ args = 8, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bne	.L71
	mvn	r3, #0
	b	.L72
.L71:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	ble	.L73
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L74
	ldr	r3, [fp, #-16]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #8]
	str	r3, [sp, #4]
	ldr	r3, [fp, #4]	@ float
	str	r3, [sp]	@ float
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	bl	addStudent
	mov	r3, r0
	b	.L72
.L74:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	cmn	r3, #1
	bne	.L75
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-16]
	add	r3, r3, #12
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	stringCopy
	ldr	r3, [fp, #-16]
	add	r3, r3, #16
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	stringCopy
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #4]	@ float
	str	r2, [r3, #32]	@ float
	ldr	r3, [fp, #-16]
	add	r3, r3, #20
	mov	r1, r3
	ldr	r0, [fp, #8]
	bl	stringCopy
	mov	r3, #0
	b	.L72
.L75:
	mov	r0, #36
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	mov	r2, #1
	str	r2, [r3, #28]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-8]
	add	r3, r3, #12
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	stringCopy
	ldr	r3, [fp, #-8]
	add	r3, r3, #16
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	stringCopy
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #4]	@ float
	str	r2, [r3, #32]	@ float
	ldr	r3, [fp, #-8]
	add	r3, r3, #20
	mov	r1, r3
	ldr	r0, [fp, #8]
	bl	stringCopy
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	mov	r3, #0
	b	.L72
.L73:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L76
	ldr	r3, [fp, #-16]
	ldr	r0, [r3]
	ldr	r3, [fp, #8]
	str	r3, [sp, #4]
	ldr	r3, [fp, #4]	@ float
	str	r3, [sp]	@ float
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	bl	addStudent
	mov	r3, r0
	b	.L72
.L76:
	mov	r0, #36
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-12]
	mov	r2, #1
	str	r2, [r3, #28]
	ldr	r3, [fp, #-12]
	add	r3, r3, #12
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	stringCopy
	ldr	r3, [fp, #-12]
	add	r3, r3, #16
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	stringCopy
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #4]	@ float
	str	r2, [r3, #32]	@ float
	ldr	r3, [fp, #-12]
	add	r3, r3, #20
	mov	r1, r3
	ldr	r0, [fp, #8]
	bl	stringCopy
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	mov	r3, #0
.L72:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	addStudent, .-addStudent
	.align	2
	.global	updateStudent
	.syntax unified
	.arm
	.fpu softvfp
	.type	updateStudent, %function
updateStudent:
	@ args = 8, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #24]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L78
	ldr	r3, [fp, #-8]
	add	r3, r3, #12
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	stringCopy
	ldr	r3, [fp, #-8]
	add	r3, r3, #16
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	stringCopy
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #4]	@ float
	str	r2, [r3, #32]	@ float
	ldr	r3, [fp, #-8]
	add	r3, r3, #20
	mov	r1, r3
	ldr	r0, [fp, #8]
	bl	stringCopy
	mov	r3, #0
	b	.L79
.L78:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #24]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bge	.L80
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L81
	mvn	r3, #0
	b	.L79
.L81:
	ldr	r3, [fp, #-8]
	ldr	r0, [r3]
	ldr	r3, [fp, #8]
	str	r3, [sp, #4]
	ldr	r3, [fp, #4]	@ float
	str	r3, [sp]	@ float
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	bl	updateStudent
	mov	r3, r0
	b	.L79
.L80:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L82
	mvn	r3, #0
	b	.L79
.L82:
	ldr	r3, [fp, #-8]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #8]
	str	r3, [sp, #4]
	ldr	r3, [fp, #4]	@ float
	str	r3, [sp]	@ float
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	bl	updateStudent
	mov	r3, r0
.L79:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	updateStudent, .-updateStudent
	.align	2
	.global	stringCopy
	.syntax unified
	.arm
	.fpu softvfp
	.type	stringCopy, %function
stringCopy:
	@ 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]
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	stringLen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L84
.L85:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-8]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L84:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	ble	.L85
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	stringCopy, .-stringCopy
	.global	__aeabi_fadd
	.align	2
	.global	calcAverage
	.syntax unified
	.arm
	.fpu softvfp
	.type	calcAverage, %function
calcAverage:
	@ 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, #-20]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #32]	@ float
	str	r3, [fp, #-8]	@ float
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L88
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	calcAverage
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-8]	@ float
.L88:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L89
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	calcAverage
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-8]	@ float
.L89:
	ldr	r3, [fp, #-8]	@ float
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	calcAverage, .-calcAverage
	.global	__aeabi_f2d
	.section	.rodata
	.align	2
.LC16:
	.ascii	"%d %s %s %.2f %s\012\000"
	.text
	.align	2
	.global	printTree
	.syntax unified
	.arm
	.fpu softvfp
	.type	printTree, %function
printTree:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L92
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	mov	r0, r3
	bl	printTree
.L92:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #28]
	cmp	r3, #0
	beq	.L93
	ldr	r3, .L96
	ldr	r5, [r3]
	ldr	r3, [fp, #-24]
	ldr	r6, [r3, #24]
	ldr	r3, [fp, #-24]
	ldr	r7, [r3, #12]
	ldr	r3, [fp, #-24]
	ldr	r4, [r3, #16]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #32]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-24]
	ldr	r1, [r1, #20]
	str	r1, [sp, #16]
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	str	r4, [sp]
	mov	r3, r7
	mov	r2, r6
	ldr	r1, .L96+4
	mov	r0, r5
	bl	fprintf
.L93:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L95
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	printTree
.L95:
	nop
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L97:
	.align	2
.L96:
	.word	out
	.word	.LC16
	.size	printTree, .-printTree
	.align	2
	.global	filterID
	.syntax unified
	.arm
	.fpu softvfp
	.type	filterID, %function
filterID:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L103
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L101
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	filterID
.L101:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #28]
	cmp	r3, #0
	beq	.L102
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #24]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	beq	.L102
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #28]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3]
.L102:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L98
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	filterID
	b	.L98
.L103:
	nop
.L98:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	filterID, .-filterID
	.align	2
	.global	filterMajor
	.syntax unified
	.arm
	.fpu softvfp
	.type	filterMajor, %function
filterMajor:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L109
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L107
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	filterMajor
.L107:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #28]
	cmp	r3, #0
	beq	.L108
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #20]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	stringEquals
	mov	r3, r0
	cmp	r3, #0
	bne	.L108
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #28]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3]
.L108:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L104
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	filterMajor
	b	.L104
.L109:
	nop
.L104:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	filterMajor, .-filterMajor
	.align	2
	.global	filterLastName
	.syntax unified
	.arm
	.fpu softvfp
	.type	filterLastName, %function
filterLastName:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L115
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L113
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	filterLastName
.L113:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #28]
	cmp	r3, #0
	beq	.L114
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #16]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	stringEquals
	mov	r3, r0
	cmp	r3, #0
	bne	.L114
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #28]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3]
.L114:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L110
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	filterLastName
	b	.L110
.L115:
	nop
.L110:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	filterLastName, .-filterLastName
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.section	.rodata
	.align	2
.LC17:
	.ascii	"%.2f\012\000"
	.align	2
.LC18:
	.ascii	"Default\000"
	.align	2
.LC19:
	.ascii	"TST\000"
	.align	2
.LC20:
	.ascii	"OTHER ERROR\000"
	.align	2
.LC21:
	.ascii	"STUDENT RECORD NOT FOUND\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	processFlags
	.syntax unified
	.arm
	.fpu softvfp
	.type	processFlags, %function
processFlags:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r3, .L135
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, .L135+4
	ldr	r3, [r3]
	sub	r2, fp, #24
	mov	r1, r2
	mov	r0, r3
	bl	calcAverage
	mov	r4, r0
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-20]	@ float
	ldr	r3, [fp, #4]
	cmp	r3, #0
	beq	.L117
	ldr	r3, .L135+8
	ldr	r4, [r3]
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L135+12
	mov	r0, r4
	bl	fprintf
.L117:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L118
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L118
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L118
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L118
	ldr	r3, .L135+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	printTree
	mov	r3, #0
	b	.L116
.L118:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L120
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L121
	ldr	r0, [fp, #-36]
	bl	stringToInt
	b	.L122
.L121:
	mov	r0, #3
.L122:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L123
	ldr	r2, [fp, #-40]
	b	.L124
.L123:
	ldr	r2, .L135+16
.L124:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L125
	ldr	r3, [fp, #-44]
	b	.L126
.L125:
	ldr	r3, .L135+20
.L126:
	str	r3, [sp]
	ldr	r3, .L135+24
	ldr	r1, .L135+16
	bl	formatted
	mov	r3, r0
	cmp	r3, #0
	bne	.L127
	ldr	r0, .L135+28
	bl	puts
	mvn	r3, #0
	b	.L116
.L127:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L128
	ldr	r3, .L135+4
	ldr	r4, [r3]
	ldr	r0, [fp, #-36]
	bl	stringToInt
	mov	r1, r0
	sub	r3, fp, #24
	mov	r2, r3
	mov	r0, r4
	bl	filterID
.L128:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L129
	ldr	r3, .L135+4
	ldr	r3, [r3]
	sub	r2, fp, #24
	ldr	r1, [fp, #-40]
	mov	r0, r3
	bl	filterLastName
.L129:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L130
	ldr	r3, .L135+4
	ldr	r3, [r3]
	sub	r2, fp, #24
	ldr	r1, [fp, #-44]
	mov	r0, r3
	bl	filterMajor
.L130:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	ble	.L131
	ldr	r3, .L135+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	printTree
	b	.L132
.L131:
	ldr	r0, .L135+32
	bl	printf
.L132:
	mov	r3, #0
	b	.L116
.L120:
.L116:
	ldr	r2, .L135
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L134
	bl	__stack_chk_fail
.L134:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L136:
	.align	2
.L135:
	.word	.LC22
	.word	database
	.word	out
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	1077936128
	.word	.LC20
	.word	.LC21
	.size	processFlags, .-processFlags
	.align	2
	.global	stringEquals
	.syntax unified
	.arm
	.fpu softvfp
	.type	stringEquals, %function
stringEquals:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L138
.L141:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	toupper
	mov	r4, r0
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	toupper
	mov	r3, r0
	cmp	r4, r3
	beq	.L139
	mov	r3, #0
	b	.L140
.L139:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L138:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L141
	mov	r3, #1
.L140:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	stringEquals, .-stringEquals
	.align	2
	.global	stringLen
	.syntax unified
	.arm
	.fpu softvfp
	.type	stringLen, %function
stringLen:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L143
.L146:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L144
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #1024
	cmp	r3, #0
	bne	.L144
	mvn	r3, #0
	b	.L145
.L144:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L143:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L146
	ldr	r3, [fp, #-8]
.L145:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	stringLen, .-stringLen
	.global	__aeabi_i2d
	.global	__aeabi_d2iz
	.align	2
	.global	stringToInt
	.syntax unified
	.arm
	.fpu softvfp
	.type	stringToInt, %function
stringToInt:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r1, #0
	ldr	r0, [fp, #-32]
	bl	stringLen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	b	.L148
.L151:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r1, [fp, #-32]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #1024
	cmp	r3, #0
	beq	.L149
	mvn	r3, #0
	b	.L150
.L149:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r4, r3, #48
	ldr	r3, [fp, #-16]
	sub	r2, r3, #1
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L152
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	mul	r3, r4, r3
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
.L148:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L151
	ldr	r3, [fp, #-20]
.L150:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L153:
	.align	2
.L152:
	.word	1076101120
	.size	stringToInt, .-stringToInt
	.global	__aeabi_fcmpge
	.global	__aeabi_fcmple
	.align	2
	.global	formatted
	.syntax unified
	.arm
	.fpu softvfp
	.type	formatted, %function
formatted:
	@ args = 4, 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, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]	@ float
	mov	r1, #1
	ldr	r0, [fp, #-28]
	bl	stringLen
	str	r0, [fp, #-16]
	mov	r1, #1
	ldr	r0, [fp, #-32]
	bl	stringLen
	str	r0, [fp, #-12]
	mov	r1, #0
	ldr	r0, [fp, #4]
	bl	stringLen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	ble	.L155
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	ble	.L155
	ldr	r3, [fp, #-16]
	cmp	r3, #10
	bgt	.L155
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	ble	.L155
	ldr	r3, [fp, #-12]
	cmp	r3, #10
	bgt	.L155
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	bne	.L155
	mov	r1, #1065353216
	ldr	r0, [fp, #-36]	@ float
	bl	__aeabi_fcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L155
	ldr	r1, .L161
	ldr	r0, [fp, #-36]	@ float
	bl	__aeabi_fcmple
	mov	r3, r0
	cmp	r3, #0
	beq	.L155
	mov	r3, #1
	b	.L158
.L155:
	mov	r3, #0
.L158:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L162:
	.align	2
.L161:
	.word	1082130432
	.size	formatted, .-formatted
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
