	.file	"751163.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"unsorted/funded.csv"
.LC2:
	.string	"File not found, exiting"
.LC3:
	.string	"unsorted/nonfunded.csv"
.LC4:
	.string	"unsorted/international.csv"
.LC5:
	.string	"w"
.LC6:
	.string	"sorted.txt"
.LC7:
	.string	"File not created, exiting"
.LC8:
	.string	"\n~~~~~~~~~~~~~~~~~~~"
.LC9:
	.string	"All students sorted"
.LC10:
	.string	"~~~~~~~~~~~~~~~~~~~\n"
.LC11:
	.string	"%s %s\n"
.LC12:
	.string	"\nPress enter to continue..."
.LC13:
	.string	"\nSearch for name: "
.LC14:
	.string	"%20s"
.LC15:
	.string	"\n%s not found\n\n"
.LC16:
	.string	"\n%s found at position %d\n\n"
.LC17:
	.string	"Search again Y/n? "
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 192
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -4264[rbp], rax
	cmp	QWORD PTR -4264[rbp], 0
	jne	.L2
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L12
.L2:
	mov	rcx, QWORD PTR -4264[rbp]
	lea	rax, -2720[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	read_file
	mov	rax, QWORD PTR -4264[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rsi, .LC0[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -4264[rbp], rax
	cmp	QWORD PTR -4264[rbp], 0
	jne	.L4
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L12
.L4:
	mov	rcx, QWORD PTR -4264[rbp]
	lea	rax, -4256[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	read_file
	mov	rax, QWORD PTR -4264[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	fopen@PLT
	mov	QWORD PTR -4264[rbp], rax
	cmp	QWORD PTR -4264[rbp], 0
	jne	.L5
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L12
.L5:
	mov	rcx, QWORD PTR -4264[rbp]
	lea	rax, -3968[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	rdi, rax
	call	read_file
	mov	rax, QWORD PTR -4264[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rax, -2720[rbp]
	mov	esi, 20
	mov	rdi, rax
	call	bubble_sort
	lea	rax, -4256[rbp]
	mov	esi, 6
	mov	rdi, rax
	call	bubble_sort
	lea	rax, -3968[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	bubble_sort
	lea	rcx, -3488[rbp]
	lea	rdx, -3968[rbp]
	lea	rax, -4256[rbp]
	mov	r8, rcx
	mov	ecx, 10
	mov	esi, 6
	mov	rdi, rax
	call	merge
	lea	rcx, -1760[rbp]
	lea	rdx, -3488[rbp]
	lea	rax, -2720[rbp]
	mov	r8, rcx
	mov	ecx, 16
	mov	esi, 20
	mov	rdi, rax
	call	merge
	lea	rsi, .LC5[rip]
	lea	rdi, .LC6[rip]
	call	fopen@PLT
	mov	QWORD PTR -4264[rbp], rax
	cmp	QWORD PTR -4264[rbp], 0
	jne	.L6
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L12
.L6:
	mov	rcx, QWORD PTR -4264[rbp]
	lea	rax, -1760[rbp]
	mov	edx, 36
	mov	rsi, rcx
	mov	rdi, rax
	call	output_students
	mov	rax, QWORD PTR -4264[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	DWORD PTR -4272[rbp], 0
	jmp	.L7
.L8:
	lea	rcx, -1760[rbp]
	mov	eax, DWORD PTR -4272[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, 16
	add	rax, rcx
	lea	rdx, 5[rax]
	lea	rsi, -1760[rbp]
	mov	eax, DWORD PTR -4272[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 4
	add	rax, rsi
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4272[rbp], 1
.L7:
	cmp	DWORD PTR -4272[rbp], 35
	jle	.L8
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	lea	rax, -1760[rbp]
	mov	edx, 2
	mov	esi, 36
	mov	rdi, rax
	call	print_by_group
.L11:
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, 0
	call	flush_buffer
	lea	rdx, -32[rbp]
	lea	rax, -1760[rbp]
	mov	rcx, rdx
	mov	edx, 35
	mov	esi, 0
	mov	rdi, rax
	call	search_name
	mov	DWORD PTR -4268[rbp], eax
	cmp	DWORD PTR -4268[rbp], -1
	jne	.L9
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L10
.L9:
	mov	edx, DWORD PTR -4268[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
.L10:
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	mov	BYTE PTR -4273[rbp], al
	mov	eax, 0
	call	flush_buffer
	cmp	BYTE PTR -4273[rbp], 121
	je	.L11
	cmp	BYTE PTR -4273[rbp], 89
	je	.L11
	mov	eax, 0
.L12:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	flush_buffer
	.type	flush_buffer, @function
flush_buffer:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	nop
.L15:
	call	getchar@PLT
	cmp	eax, 10
	jne	.L15
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	flush_buffer, .-flush_buffer
	.globl	read_file
	.type	read_file, @function
read_file:
.LFB2:
	.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	QWORD PTR -88[rbp], rdi
	mov	QWORD PTR -96[rbp], rsi
	mov	DWORD PTR -100[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -68[rbp], 0
	jmp	.L17
.L22:
	mov	DWORD PTR -76[rbp], 0
	mov	DWORD PTR -72[rbp], 0
	jmp	.L18
.L19:
	mov	eax, DWORD PTR -68[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	movzx	edx, BYTE PTR -64[rbp+rax]
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	mov	BYTE PTR [rcx+rax], dl
	add	DWORD PTR -76[rbp], 1
	add	DWORD PTR -72[rbp], 1
.L18:
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	movzx	eax, BYTE PTR -64[rbp+rax]
	cmp	al, 44
	jne	.L19
	mov	eax, DWORD PTR -68[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 0
	add	DWORD PTR -76[rbp], 1
	mov	DWORD PTR -72[rbp], 0
	jmp	.L20
.L21:
	mov	eax, DWORD PTR -68[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	movzx	edx, BYTE PTR -64[rbp+rax]
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	mov	BYTE PTR 21[rcx+rax], dl
	add	DWORD PTR -76[rbp], 1
	add	DWORD PTR -72[rbp], 1
.L20:
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	movzx	eax, BYTE PTR -64[rbp+rax]
	cmp	al, 10
	jne	.L21
	mov	eax, DWORD PTR -68[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	mov	BYTE PTR 21[rdx+rax], 0
	mov	eax, DWORD PTR -68[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -100[rbp]
	mov	DWORD PTR 44[rdx], eax
	add	DWORD PTR -68[rbp], 1
.L17:
	mov	rdx, QWORD PTR -96[rbp]
	lea	rax, -64[rbp]
	mov	esi, 50
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L22
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	read_file, .-read_file
	.globl	bubble_sort
	.type	bubble_sort, @function
bubble_sort:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 104
	.cfi_offset 3, -24
	mov	QWORD PTR -104[rbp], rdi
	mov	DWORD PTR -108[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -92[rbp], 0
	mov	DWORD PTR -88[rbp], 0
	mov	DWORD PTR -92[rbp], 0
	jmp	.L25
.L31:
	mov	DWORD PTR -84[rbp], 0
	mov	DWORD PTR -88[rbp], 0
	jmp	.L26
.L28:
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	lea	rdx, 21[rax]
	mov	eax, DWORD PTR -88[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 4
	mov	rcx, rax
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rcx
	add	rax, 21
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jle	.L27
	mov	eax, DWORD PTR -88[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	mov	rbx, QWORD PTR 8[rax]
	mov	QWORD PTR -80[rbp], rcx
	mov	QWORD PTR -72[rbp], rbx
	mov	rcx, QWORD PTR 16[rax]
	mov	rbx, QWORD PTR 24[rax]
	mov	QWORD PTR -64[rbp], rcx
	mov	QWORD PTR -56[rbp], rbx
	mov	rdx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR 32[rax]
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -88[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 4
	mov	rcx, rax
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	rbx, QWORD PTR 8[rdx]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR 16[rdx]
	mov	rbx, QWORD PTR 24[rdx]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	rcx, QWORD PTR 32[rdx]
	mov	rbx, QWORD PTR 40[rdx]
	mov	QWORD PTR 32[rax], rcx
	mov	QWORD PTR 40[rax], rbx
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR -80[rbp]
	mov	rbx, QWORD PTR -72[rbp]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR -64[rbp]
	mov	rbx, QWORD PTR -56[rbp]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	rcx, QWORD PTR -48[rbp]
	mov	rbx, QWORD PTR -40[rbp]
	mov	QWORD PTR 32[rax], rcx
	mov	QWORD PTR 40[rax], rbx
	mov	DWORD PTR -84[rbp], 1
.L27:
	add	DWORD PTR -88[rbp], 1
.L26:
	mov	eax, DWORD PTR -108[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -92[rbp]
	cmp	DWORD PTR -88[rbp], eax
	jl	.L28
	cmp	DWORD PTR -84[rbp], 0
	je	.L33
	add	DWORD PTR -92[rbp], 1
.L25:
	mov	eax, DWORD PTR -92[rbp]
	cmp	eax, DWORD PTR -108[rbp]
	jl	.L31
	jmp	.L24
.L33:
	nop
.L24:
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	bubble_sort, .-bubble_sort
	.globl	merge
	.type	merge, @function
merge:
.LFB4:
	.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, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	QWORD PTR -56[rbp], rdx
	mov	DWORD PTR -48[rbp], ecx
	mov	QWORD PTR -64[rbp], r8
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	jmp	.L35
.L39:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	lea	rdx, 21[rax]
	mov	eax, DWORD PTR -28[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 4
	mov	rcx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rcx
	add	rax, 21
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jns	.L36
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 4
	mov	rcx, rax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	rbx, QWORD PTR 8[rdx]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR 16[rdx]
	mov	rbx, QWORD PTR 24[rdx]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	rcx, QWORD PTR 32[rdx]
	mov	rbx, QWORD PTR 40[rdx]
	mov	QWORD PTR 32[rax], rcx
	mov	QWORD PTR 40[rax], rbx
	add	DWORD PTR -28[rbp], 1
	jmp	.L37
.L36:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 4
	mov	rcx, rax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	rbx, QWORD PTR 8[rdx]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR 16[rdx]
	mov	rbx, QWORD PTR 24[rdx]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	rcx, QWORD PTR 32[rdx]
	mov	rbx, QWORD PTR 40[rdx]
	mov	QWORD PTR 32[rax], rcx
	mov	QWORD PTR 40[rax], rbx
	add	DWORD PTR -24[rbp], 1
.L37:
	add	DWORD PTR -20[rbp], 1
.L35:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jge	.L38
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jl	.L39
.L38:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jne	.L44
	jmp	.L41
.L42:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 4
	mov	rcx, rax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	rbx, QWORD PTR 8[rdx]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR 16[rdx]
	mov	rbx, QWORD PTR 24[rdx]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	rcx, QWORD PTR 32[rdx]
	mov	rbx, QWORD PTR 40[rdx]
	mov	QWORD PTR 32[rax], rcx
	mov	QWORD PTR 40[rax], rbx
	add	DWORD PTR -20[rbp], 1
	add	DWORD PTR -24[rbp], 1
.L41:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jl	.L42
	jmp	.L46
.L45:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 4
	mov	rcx, rax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	rbx, QWORD PTR 8[rdx]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR 16[rdx]
	mov	rbx, QWORD PTR 24[rdx]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	rcx, QWORD PTR 32[rdx]
	mov	rbx, QWORD PTR 40[rdx]
	mov	QWORD PTR 32[rax], rcx
	mov	QWORD PTR 40[rax], rbx
	add	DWORD PTR -20[rbp], 1
	add	DWORD PTR -28[rbp], 1
.L44:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L45
.L46:
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	merge, .-merge
	.globl	output_students
	.type	output_students, @function
output_students:
.LFB5:
	.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	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L48
.L49:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	lea	rdx, 21[rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 4
	mov	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	rsi, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rdx
	mov	rdx, rsi
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -4[rbp], 1
.L48:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L49
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	output_students, .-output_students
	.section	.rodata
	.align 8
.LC18:
	.string	"\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
.LC19:
	.string	"Printing all students from "
.LC20:
	.string	"funded"
.LC21:
	.string	"non-funded"
.LC22:
	.string	"international"
.LC23:
	.string	" group"
	.align 8
.LC24:
	.string	"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
	.text
	.globl	print_by_group
	.type	print_by_group, @function
print_by_group:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	lea	rdi, .LC18[rip]
	call	puts@PLT
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -32[rbp], 2
	je	.L51
	cmp	DWORD PTR -32[rbp], 2
	ja	.L52
	cmp	DWORD PTR -32[rbp], 0
	je	.L53
	cmp	DWORD PTR -32[rbp], 1
	je	.L54
	jmp	.L52
.L53:
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L52
.L54:
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L52
.L51:
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L52:
	lea	rdi, .LC23[rip]
	call	puts@PLT
	lea	rdi, .LC24[rip]
	call	puts@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L55
.L57:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 44[rax]
	cmp	DWORD PTR -32[rbp], eax
	jne	.L56
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	lea	rdx, 21[rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 4
	mov	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
.L56:
	add	DWORD PTR -4[rbp], 1
.L55:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L57
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print_by_group, .-print_by_group
	.globl	search_name
	.type	search_name, @function
search_name:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	QWORD PTR -40[rbp], rcx
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	lea	rdx, 21[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcmp@PLT
	test	eax, eax
	jne	.L59
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L58
.L59:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jne	.L61
	mov	eax, -1
	jmp	.L58
.L61:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	lea	rdx, 21[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcmp@PLT
	test	eax, eax
	jns	.L62
	mov	eax, DWORD PTR -4[rbp]
	lea	esi, 1[rax]
	mov	rcx, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	search_name
	jmp	.L63
.L62:
	mov	eax, DWORD PTR -4[rbp]
	lea	edi, -1[rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	esi, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, rdx
	mov	edx, edi
	mov	rdi, rax
	call	search_name
.L63:
.L58:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	search_name, .-search_name
	.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	"751163.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"unsorted/funded.csv\000"
	.align	2
.LC2:
	.ascii	"File not found, exiting\000"
	.align	2
.LC3:
	.ascii	"unsorted/nonfunded.csv\000"
	.align	2
.LC4:
	.ascii	"unsorted/international.csv\000"
	.align	2
.LC5:
	.ascii	"w\000"
	.align	2
.LC6:
	.ascii	"sorted.txt\000"
	.align	2
.LC7:
	.ascii	"File not created, exiting\000"
	.align	2
.LC8:
	.ascii	"\012~~~~~~~~~~~~~~~~~~~\000"
	.align	2
.LC9:
	.ascii	"All students sorted\000"
	.align	2
.LC10:
	.ascii	"~~~~~~~~~~~~~~~~~~~\012\000"
	.align	2
.LC11:
	.ascii	"%s %s\012\000"
	.align	2
.LC12:
	.ascii	"\012Press enter to continue...\000"
	.align	2
.LC13:
	.ascii	"\012Search for name: \000"
	.align	2
.LC14:
	.ascii	"%20s\000"
	.align	2
.LC15:
	.ascii	"\012%s not found\012\012\000"
	.align	2
.LC16:
	.ascii	"\012%s found at position %d\012\012\000"
	.align	2
.LC17:
	.ascii	"Search again Y/n? \000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4272
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4224
	sub	sp, sp, #60
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L14+4
	ldr	r0, .L14+8
	bl	fopen
	str	r0, [r4, #-164]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-164]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L14+12
	bl	puts
	mov	r3, #1
	b	.L12
.L2:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #2704
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r2, #0
	ldr	r1, [r1, #-164]
	mov	r0, r3
	bl	read_file
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-164]
	bl	fclose
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L14+4
	ldr	r0, .L14+16
	bl	fopen
	str	r0, [r4, #-164]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-164]
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L14+12
	bl	puts
	mov	r3, #1
	b	.L12
.L4:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4224
	sub	r3, r3, #12
	sub	r3, r3, #28
	mov	r2, #1
	ldr	r1, [r1, #-164]
	mov	r0, r3
	bl	read_file
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-164]
	bl	fclose
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L14+4
	ldr	r0, .L14+20
	bl	fopen
	str	r0, [r4, #-164]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-164]
	cmp	r3, #0
	bne	.L5
	ldr	r0, .L14+12
	bl	puts
	mov	r3, #1
	b	.L12
.L5:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #3952
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r2, #2
	ldr	r1, [r1, #-164]
	mov	r0, r3
	bl	read_file
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-164]
	bl	fclose
	sub	r3, fp, #2704
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r1, #20
	mov	r0, r3
	bl	bubble_sort
	sub	r3, fp, #4224
	sub	r3, r3, #12
	sub	r3, r3, #28
	mov	r1, #6
	mov	r0, r3
	bl	bubble_sort
	sub	r3, fp, #3952
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r1, #10
	mov	r0, r3
	bl	bubble_sort
	sub	r2, fp, #3952
	sub	r2, r2, #12
	sub	r2, r2, #12
	sub	r0, fp, #4224
	sub	r0, r0, #12
	sub	r0, r0, #28
	sub	r3, fp, #3472
	sub	r3, r3, #12
	sub	r3, r3, #12
	str	r3, [sp]
	mov	r3, #10
	mov	r1, #6
	bl	merge
	sub	r2, fp, #3472
	sub	r2, r2, #12
	sub	r2, r2, #12
	sub	r0, fp, #2704
	sub	r0, r0, #12
	sub	r0, r0, #12
	sub	r3, fp, #1744
	sub	r3, r3, #12
	sub	r3, r3, #12
	str	r3, [sp]
	mov	r3, #16
	mov	r1, #20
	bl	merge
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L14+24
	ldr	r0, .L14+28
	bl	fopen
	str	r0, [r4, #-164]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-164]
	cmp	r3, #0
	bne	.L6
	ldr	r0, .L14+32
	bl	puts
	mov	r3, #1
	b	.L12
.L6:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #1744
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r2, #36
	ldr	r1, [r1, #-164]
	mov	r0, r3
	bl	output_students
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-164]
	bl	fclose
	ldr	r0, .L14+36
	bl	puts
	ldr	r0, .L14+40
	bl	puts
	ldr	r0, .L14+44
	bl	puts
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-168]
	b	.L7
.L8:
	sub	r2, fp, #1744
	sub	r2, r2, #12
	sub	r2, r2, #12
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-168]
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r0, r2, r3
	sub	r2, fp, #1744
	sub	r2, r2, #12
	sub	r2, r2, #12
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-168]
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r3, #16
	add	r3, r2, r3
	add	r3, r3, #5
	mov	r2, r3
	mov	r1, r0
	ldr	r0, .L14+48
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-168]
	add	r3, r3, #1
	str	r3, [r2, #-168]
.L7:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-168]
	cmp	r3, #35
	ble	.L8
	ldr	r0, .L14+52
	bl	printf
	bl	getchar
	sub	r3, fp, #1744
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r2, #2
	mov	r1, #36
	mov	r0, r3
	bl	print_by_group
.L11:
	ldr	r0, .L14+56
	bl	printf
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L14+60
	bl	__isoc99_scanf
	bl	flush_buffer
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #40
	sub	r0, fp, #1744
	sub	r0, r0, #12
	sub	r0, r0, #12
	mov	r2, #35
	mov	r1, #0
	bl	search_name
	str	r0, [r4, #-160]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-160]
	cmn	r3, #1
	bne	.L9
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L14+64
	bl	printf
	b	.L10
.L9:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #40
	ldr	r2, [r2, #-160]
	mov	r1, r3
	ldr	r0, .L14+68
	bl	printf
.L10:
	ldr	r0, .L14+72
	bl	printf
	bl	getchar
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	strb	r2, [r3, #-169]
	bl	flush_buffer
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r3, [r3, #-169]	@ zero_extendqisi2
	cmp	r3, #121
	beq	.L11
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r3, [r3, #-169]	@ zero_extendqisi2
	cmp	r3, #89
	beq	.L11
	mov	r3, #0
.L12:
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC18
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	main, .-main
	.align	2
	.global	flush_buffer
	.syntax unified
	.arm
	.fpu softvfp
	.type	flush_buffer, %function
flush_buffer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	nop
.L17:
	bl	getchar
	mov	r3, r0
	cmp	r3, #10
	bne	.L17
	nop
	nop
	pop	{fp, pc}
	.size	flush_buffer, .-flush_buffer
	.section	.rodata
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_file, %function
read_file:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	str	r2, [fp, #-88]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L19
.L24:
	mov	r3, #0
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L20
.L21:
	ldr	r2, [fp, #-64]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-80]
	add	r2, r3, r2
	sub	r1, fp, #60
	ldr	r3, [fp, #-72]
	add	r3, r1, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-68]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L20:
	sub	r2, fp, #60
	ldr	r3, [fp, #-72]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #44
	bne	.L21
	ldr	r2, [fp, #-64]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-80]
	add	r2, r3, r2
	ldr	r3, [fp, #-68]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L22
.L23:
	ldr	r2, [fp, #-64]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-80]
	add	r2, r3, r2
	sub	r1, fp, #60
	ldr	r3, [fp, #-72]
	add	r3, r1, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-68]
	add	r3, r2, r3
	add	r3, r3, #21
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L22:
	sub	r2, fp, #60
	ldr	r3, [fp, #-72]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L23
	ldr	r2, [fp, #-64]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-80]
	add	r2, r3, r2
	ldr	r3, [fp, #-68]
	add	r3, r2, r3
	add	r3, r3, #21
	mov	r2, #0
	strb	r2, [r3]
	ldr	r2, [fp, #-64]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-80]
	add	r3, r3, r2
	ldr	r2, [fp, #-88]
	str	r2, [r3, #44]
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L19:
	sub	r3, fp, #60
	ldr	r2, [fp, #-84]
	mov	r1, #50
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L24
	nop
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC19
	.size	read_file, .-read_file
	.section	.rodata
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bubble_sort
	.syntax unified
	.arm
	.fpu softvfp
	.type	bubble_sort, %function
bubble_sort:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, .L38
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L29
.L35:
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L30
.L32:
	ldr	r2, [fp, #-64]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-72]
	add	r3, r3, r2
	add	r0, r3, #21
	ldr	r3, [fp, #-64]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-72]
	add	r3, r3, r2
	add	r3, r3, #21
	mov	r1, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	ble	.L31
	ldr	r2, [fp, #-64]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-72]
	add	r3, r3, r2
	sub	ip, fp, #56
	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}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #-64]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-72]
	add	r1, r3, r2
	ldr	r2, [fp, #-64]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-72]
	add	r3, r3, r2
	mov	ip, r3
	mov	lr, r1
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #-64]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-72]
	add	r3, r3, r2
	mov	lr, r3
	sub	ip, fp, #56
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1, r2, r3}
	stm	lr, {r0, r1, r2, r3}
	mov	r3, #1
	str	r3, [fp, #-60]
.L31:
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L30:
	ldr	r3, [fp, #-76]
	sub	r2, r3, #1
	ldr	r3, [fp, #-68]
	sub	r3, r2, r3
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	blt	.L32
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	beq	.L37
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L29:
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	blt	.L35
	b	.L28
.L37:
	nop
.L28:
	ldr	r3, .L38
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	.LC20
	.size	bubble_sort, .-bubble_sort
	.align	2
	.global	merge
	.syntax unified
	.arm
	.fpu softvfp
	.type	merge, %function
merge:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L41
.L45:
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	add	r0, r3, #21
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	add	r3, r3, #21
	mov	r1, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bge	.L42
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r1, r3, r2
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #4]
	add	r3, r3, r2
	mov	ip, r3
	mov	lr, r1
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L43
.L42:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r1, r3, r2
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #4]
	add	r3, r3, r2
	mov	ip, r3
	mov	lr, r1
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L43:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L41:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bge	.L44
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L45
.L44:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bne	.L50
	b	.L47
.L48:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r1, r3, r2
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #4]
	add	r3, r3, r2
	mov	ip, r3
	mov	lr, r1
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L47:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L48
	b	.L52
.L51:
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r1, r3, r2
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #4]
	add	r3, r3, r2
	mov	ip, r3
	mov	lr, r1
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L50:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L51
.L52:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	merge, .-merge
	.align	2
	.global	output_students
	.syntax unified
	.arm
	.fpu softvfp
	.type	output_students, %function
output_students:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L54
.L55:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	mov	r1, r3
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	add	r3, r3, #21
	mov	r2, r1
	ldr	r1, .L56
	ldr	r0, [fp, #-20]
	bl	fprintf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L54:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L55
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L57:
	.align	2
.L56:
	.word	.LC11
	.size	output_students, .-output_students
	.section	.rodata
	.align	2
.LC21:
	.ascii	"\012~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\000"
	.align	2
.LC22:
	.ascii	"Printing all students from \000"
	.align	2
.LC23:
	.ascii	"funded\000"
	.align	2
.LC24:
	.ascii	"non-funded\000"
	.align	2
.LC25:
	.ascii	"international\000"
	.align	2
.LC26:
	.ascii	" group\000"
	.align	2
.LC27:
	.ascii	"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\012\000"
	.text
	.align	2
	.global	print_by_group
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_by_group, %function
print_by_group:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r0, .L66
	bl	puts
	ldr	r0, .L66+4
	bl	printf
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	beq	.L59
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	bhi	.L60
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L61
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	beq	.L62
	b	.L60
.L61:
	ldr	r0, .L66+8
	bl	printf
	b	.L60
.L62:
	ldr	r0, .L66+12
	bl	printf
	b	.L60
.L59:
	ldr	r0, .L66+16
	bl	printf
	nop
.L60:
	ldr	r0, .L66+20
	bl	puts
	ldr	r0, .L66+24
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L63
.L65:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r3, [r3, #44]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L64
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	mov	r1, r3
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	add	r3, r3, #21
	mov	r2, r3
	ldr	r0, .L66+28
	bl	printf
.L64:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L63:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L65
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L67:
	.align	2
.L66:
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC11
	.size	print_by_group, .-print_by_group
	.align	2
	.global	search_name
	.syntax unified
	.arm
	.fpu softvfp
	.type	search_name, %function
search_name:
	@ 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]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	add	r3, r3, #21
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L69
	ldr	r3, [fp, #-8]
	b	.L68
.L69:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bne	.L71
	mvn	r3, #0
	b	.L68
.L71:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	add	r3, r3, #21
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bge	.L72
	ldr	r3, [fp, #-8]
	add	r1, r3, #1
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	search_name
	b	.L73
.L72:
	ldr	r3, [fp, #-8]
	sub	r2, r3, #1
	ldr	r3, [fp, #-28]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	search_name
.L73:
.L68:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	search_name, .-search_name
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
