	.file	"804631.c"
	.intel_syntax noprefix
	.text
	.globl	total
	.bss
	.align 4
	.type	total, @object
	.size	total, 4
total:
	.zero	4
	.globl	person
	.align 32
	.type	person, @object
	.size	person, 80
person:
	.zero	80
	.section	.rodata
.LC0:
	.string	"rt"
.LC1:
	.string	"./flag.txt"
.LC2:
	.string	"Error reading flag"
	.text
	.globl	print_flag
	.type	print_flag, @function
print_flag:
.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, 80
	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 -72[rbp], rax
	cmp	QWORD PTR -72[rbp], 0
	jne	.L2
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L1
.L2:
	mov	rdx, QWORD PTR -72[rbp]
	lea	rax, -64[rbp]
	mov	esi, 50
	mov	rdi, rax
	call	fgets@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	puts@PLT
.L1:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print_flag, .-print_flag
	.section	.rodata
.LC3:
	.string	"Scored %s - %d\n"
	.text
	.globl	give_score
	.type	give_score, @function
give_score:
.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	DWORD PTR -12[rbp], esi
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	DWORD PTR 32[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	give_score, .-give_score
	.section	.rodata
.LC4:
	.string	"not found"
	.text
	.globl	find_professor
	.type	find_professor, @function
find_professor:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L7
.L10:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, person[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 32
	mov	rsi, rax
	mov	rdi, rcx
	call	strncmp@PLT
	test	eax, eax
	jne	.L8
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, person[rip]
	mov	rax, QWORD PTR [rdx+rax]
	jmp	.L11
.L8:
	add	DWORD PTR -4[rbp], 1
.L7:
	mov	eax, DWORD PTR total[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L10
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	find_professor, .-find_professor
	.globl	find_student
	.type	find_student, @function
find_student:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L13
.L16:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, person[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 32
	mov	rsi, rax
	mov	rdi, rcx
	call	strncmp@PLT
	test	eax, eax
	jne	.L14
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, person[rip]
	mov	rax, QWORD PTR [rdx+rax]
	jmp	.L17
.L14:
	add	DWORD PTR -4[rbp], 1
.L13:
	mov	eax, DWORD PTR total[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L16
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	find_student, .-find_student
	.globl	get_line
	.type	get_line, @function
get_line:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 31
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	get_line, .-get_line
	.section	.rodata
.LC5:
	.string	"Student name: "
.LC6:
	.string	"Professor name: "
.LC7:
	.string	"Who will give the rate: "
.LC8:
	.string	"Who will receive the rate: "
.LC9:
	.string	"Input the rate: "
.LC10:
	.string	"%u"
.LC11:
	.string	"%u\n"
	.text
	.globl	func
	.type	func, @function
func:
.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, 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L20
.L21:
	mov	edi, 40
	call	malloc@PLT
	mov	QWORD PTR -96[rbp], rax
	mov	eax, DWORD PTR total[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR total[rip], edx
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, person[rip]
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR [rcx+rdx], rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	get_line
	mov	edi, 36
	call	malloc@PLT
	mov	QWORD PTR -88[rbp], rax
	mov	eax, DWORD PTR total[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR total[rip], edx
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, person[rip]
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR [rcx+rdx], rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	get_line
	mov	rax, QWORD PTR -96[rbp]
	lea	rdx, give_score[rip]
	mov	QWORD PTR 32[rax], rdx
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	get_line
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	find_student
	mov	QWORD PTR -96[rbp], rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	get_line
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	find_professor
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	puts@PLT
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -100[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -100[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	eax, DWORD PTR -100[rbp]
	mov	ecx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	rdx
.L20:
	mov	eax, DWORD PTR total[rip]
	cmp	eax, 8
	jle	.L21
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	func, .-func
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stdout[rip]
	mov	ecx, 0
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	setvbuf@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	ecx, 0
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	setvbuf@PLT
	mov	eax, 0
	call	func
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"804631.c"
	.text
	.global	total
	.bss
	.align	2
	.type	total, %object
	.size	total, 4
total:
	.space	4
	.comm	person,40,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"rt\000"
	.align	2
.LC1:
	.ascii	"./flag.txt\000"
	.align	2
.LC2:
	.ascii	"Error reading flag\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	print_flag
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_flag, %function
print_flag:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	ldr	r3, .L5
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L5+4
	ldr	r0, .L5+8
	bl	fopen
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L5+12
	bl	puts
	b	.L1
.L2:
	sub	r3, fp, #60
	ldr	r2, [fp, #-64]
	mov	r1, #50
	mov	r0, r3
	bl	fgets
	ldr	r0, [fp, #-64]
	bl	fclose
	sub	r3, fp, #60
	mov	r0, r3
	bl	puts
.L1:
	ldr	r3, .L5
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L4
	bl	__stack_chk_fail
.L4:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	print_flag, .-print_flag
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Scored %s - %d\012\000"
	.text
	.align	2
	.global	give_score
	.syntax unified
	.arm
	.fpu softvfp
	.type	give_score, %function
give_score:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #32]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	mov	r1, r3
	ldr	r0, .L8
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC4
	.size	give_score, .-give_score
	.section	.rodata
	.align	2
.LC5:
	.ascii	"not found\000"
	.text
	.align	2
	.global	find_professor
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_professor, %function
find_professor:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L11
.L14:
	ldr	r2, .L16
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, #32
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	ldr	r2, .L16
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	b	.L15
.L12:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L11:
	ldr	r3, .L16+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L14
	ldr	r0, .L16+8
	bl	puts
	mov	r0, #0
	bl	exit
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	person
	.word	total
	.word	.LC5
	.size	find_professor, .-find_professor
	.align	2
	.global	find_student
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_student, %function
find_student:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L19
.L22:
	ldr	r2, .L24
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, #32
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L20
	ldr	r2, .L24
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	b	.L23
.L20:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L19:
	ldr	r3, .L24+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L22
	ldr	r0, .L24+8
	bl	puts
	mov	r0, #0
	bl	exit
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	person
	.word	total
	.word	.LC5
	.size	find_student, .-find_student
	.align	2
	.global	get_line
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_line, %function
get_line:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r2, #31
	ldr	r1, [fp, #-16]
	mov	r0, #0
	bl	read
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	get_line, .-get_line
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Student name: \000"
	.align	2
.LC7:
	.ascii	"Professor name: \000"
	.align	2
.LC8:
	.ascii	"Who will give the rate: \000"
	.align	2
.LC9:
	.ascii	"Who will receive the rate: \000"
	.align	2
.LC10:
	.ascii	"Input the rate: \000"
	.align	2
.LC11:
	.ascii	"%u\000"
	.align	2
.LC12:
	.ascii	"%u\012\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	func
	.syntax unified
	.arm
	.fpu softvfp
	.type	func, %function
func:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L28
.L29:
	mov	r0, #36
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-80]
	ldr	r3, .L31+4
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L31+4
	str	r2, [r1]
	ldr	r1, .L31+8
	ldr	r2, [fp, #-80]
	str	r2, [r1, r3, lsl #2]
	ldr	r0, .L31+12
	bl	printf
	ldr	r3, [fp, #-80]
	mov	r0, r3
	bl	get_line
	mov	r0, #36
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-76]
	ldr	r3, .L31+4
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L31+4
	str	r2, [r1]
	ldr	r1, .L31+8
	ldr	r2, [fp, #-76]
	str	r2, [r1, r3, lsl #2]
	ldr	r0, .L31+16
	bl	printf
	ldr	r3, [fp, #-76]
	mov	r0, r3
	bl	get_line
	ldr	r3, [fp, #-80]
	ldr	r2, .L31+20
	str	r2, [r3, #32]
	ldr	r0, .L31+24
	bl	printf
	sub	r3, fp, #72
	mov	r0, r3
	bl	get_line
	sub	r3, fp, #72
	mov	r0, r3
	bl	find_student
	str	r0, [fp, #-80]
	ldr	r0, .L31+28
	bl	printf
	sub	r3, fp, #40
	mov	r0, r3
	bl	get_line
	sub	r3, fp, #40
	mov	r0, r3
	bl	find_professor
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-76]
	mov	r0, r3
	bl	puts
	ldr	r0, .L31+32
	bl	printf
	sub	r3, fp, #84
	mov	r1, r3
	ldr	r0, .L31+36
	bl	__isoc99_scanf
	ldr	r3, [fp, #-84]
	mov	r1, r3
	ldr	r0, .L31+40
	bl	printf
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #32]
	ldr	r2, [fp, #-84]
	mov	r1, r2
	ldr	r0, [fp, #-76]
	blx	r3
.L28:
	ldr	r3, .L31+4
	ldr	r3, [r3]
	cmp	r3, #8
	ble	.L29
	nop
	ldr	r3, .L31
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC13
	.word	total
	.word	person
	.word	.LC6
	.word	.LC7
	.word	give_score
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	func, .-func
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L35
	ldr	r0, [r3]
	mov	r3, #0
	mov	r2, #2
	mov	r1, #0
	bl	setvbuf
	ldr	r3, .L35+4
	ldr	r0, [r3]
	mov	r3, #0
	mov	r2, #2
	mov	r1, #0
	bl	setvbuf
	bl	func
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	stdout
	.word	stdin
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
