	.file	"401655.c"
	.intel_syntax noprefix
	.text
	.globl	calculate_grade
	.type	calculate_grade, @function
calculate_grade:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	cmp	DWORD PTR -12[rbp], 79
	jle	.L2
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 84
	mov	WORD PTR [rax], 11073
	mov	BYTE PTR 2[rax], 0
	jmp	.L5
.L2:
	cmp	DWORD PTR -12[rbp], 69
	jle	.L4
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 84
	mov	WORD PTR [rax], 11074
	mov	BYTE PTR 2[rax], 0
	jmp	.L5
.L4:
	cmp	DWORD PTR -12[rbp], 59
	jle	.L5
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 84
	mov	WORD PTR [rax], 11075
	mov	BYTE PTR 2[rax], 0
.L5:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	calculate_grade, .-calculate_grade
	.section	.rodata
.LC0:
	.string	"Enter the ID for student %d: "
.LC1:
	.string	"%d"
	.align 8
.LC2:
	.string	"Enter the first name for student %d: "
.LC3:
	.string	"%s"
	.align 8
.LC4:
	.string	"Enter the last name for student %d: "
.LC5:
	.string	"%d\t%s\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 304
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -288[rbp], 3
	mov	DWORD PTR -284[rbp], 78
	mov	DWORD PTR -280[rbp], 82
	mov	DWORD PTR -276[rbp], 60
	mov	DWORD PTR -292[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -292[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -292[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -292[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -292[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	add	rax, 4
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -292[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -292[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, 32
	add	rax, rcx
	add	rax, 12
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -292[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, 80
	add	rax, rcx
	add	rax, 4
	mov	BYTE PTR [rax], 0
	add	DWORD PTR -292[rbp], 1
.L7:
	cmp	DWORD PTR -292[rbp], 2
	jle	.L8
	mov	DWORD PTR -292[rbp], 0
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -292[rbp]
	cdqe
	mov	ecx, DWORD PTR -284[rbp+rax*4]
	lea	rsi, -272[rbp]
	mov	eax, DWORD PTR -292[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rsi
	mov	esi, ecx
	mov	rdi, rax
	call	calculate_grade
	add	DWORD PTR -292[rbp], 1
.L9:
	mov	eax, DWORD PTR -292[rbp]
	cmp	eax, DWORD PTR -288[rbp]
	jl	.L10
	mov	DWORD PTR -292[rbp], 0
	jmp	.L11
.L12:
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -292[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, 80
	add	rax, rcx
	lea	rcx, 4[rax]
	mov	eax, DWORD PTR -292[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rbp
	sub	rax, 272
	mov	eax, DWORD PTR [rax]
	mov	rdx, rcx
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -292[rbp], 1
.L11:
	mov	eax, DWORD PTR -292[rbp]
	cmp	eax, DWORD PTR -288[rbp]
	jl	.L12
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"401655.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"A+\000"
	.align	2
.LC2:
	.ascii	"B+\000"
	.align	2
.LC3:
	.ascii	"C+\000"
	.text
	.align	2
	.global	calculate_grade
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculate_grade, %function
calculate_grade:
	@ 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, #-12]
	cmp	r3, #79
	ble	.L2
	ldr	r3, [fp, #-8]
	add	r3, r3, #84
	ldr	r2, .L6
	mov	r0, r3
	mov	r1, r2
	mov	r3, #3
	mov	r2, r3
	bl	memcpy
	b	.L5
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #69
	ble	.L4
	ldr	r3, [fp, #-8]
	add	r3, r3, #84
	ldr	r2, .L6+4
	mov	r0, r3
	mov	r1, r2
	mov	r3, #3
	mov	r2, r3
	bl	memcpy
	b	.L5
.L4:
	ldr	r3, [fp, #-12]
	cmp	r3, #59
	ble	.L5
	ldr	r3, [fp, #-8]
	add	r3, r3, #84
	ldr	r2, .L6+8
	mov	r0, r3
	mov	r1, r2
	mov	r3, #3
	mov	r2, r3
	bl	memcpy
.L5:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	calculate_grade, .-calculate_grade
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Enter the ID for student %d: \000"
	.align	2
.LC5:
	.ascii	"%d\000"
	.align	2
.LC6:
	.ascii	"Enter the first name for student %d: \000"
	.align	2
.LC7:
	.ascii	"%s\000"
	.align	2
.LC8:
	.ascii	"Enter the last name for student %d: \000"
	.align	2
.LC9:
	.ascii	"%d\011%s\012\000"
	.align	2
.LC0:
	.word	78
	.word	82
	.word	60
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 288
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #288
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #3
	str	r3, [fp, #-288]
	ldr	r2, .L17+4
	sub	r3, fp, #284
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	mov	r3, #0
	str	r3, [fp, #-292]
	b	.L9
.L10:
	ldr	r3, [fp, #-292]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L17+8
	bl	printf
	sub	r1, fp, #272
	ldr	r2, [fp, #-292]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	mov	r1, r3
	ldr	r0, .L17+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-292]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L17+16
	bl	printf
	sub	r1, fp, #272
	ldr	r2, [fp, #-292]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L17+20
	bl	__isoc99_scanf
	ldr	r3, [fp, #-292]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L17+24
	bl	printf
	sub	r1, fp, #272
	ldr	r2, [fp, #-292]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, #40
	add	r3, r1, r3
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L17+20
	bl	__isoc99_scanf
	sub	r1, fp, #272
	ldr	r2, [fp, #-292]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, #80
	add	r3, r1, r3
	add	r3, r3, #4
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-292]
	add	r3, r3, #1
	str	r3, [fp, #-292]
.L9:
	ldr	r3, [fp, #-292]
	cmp	r3, #2
	ble	.L10
	mov	r3, #0
	str	r3, [fp, #-292]
	b	.L11
.L12:
	sub	r1, fp, #272
	ldr	r2, [fp, #-292]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r2, r1, r3
	ldr	r3, [fp, #-292]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-280]
	mov	r1, r3
	mov	r0, r2
	bl	calculate_grade
	ldr	r3, [fp, #-292]
	add	r3, r3, #1
	str	r3, [fp, #-292]
.L11:
	ldr	r2, [fp, #-292]
	ldr	r3, [fp, #-288]
	cmp	r2, r3
	blt	.L12
	mov	r3, #0
	str	r3, [fp, #-292]
	b	.L13
.L14:
	ldr	r2, [fp, #-292]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #268
	ldr	r0, [r3]
	sub	r1, fp, #272
	ldr	r2, [fp, #-292]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, #80
	add	r3, r1, r3
	add	r3, r3, #4
	mov	r2, r3
	mov	r1, r0
	ldr	r0, .L17+28
	bl	printf
	ldr	r3, [fp, #-292]
	add	r3, r3, #1
	str	r3, [fp, #-292]
.L13:
	ldr	r2, [fp, #-292]
	ldr	r3, [fp, #-288]
	cmp	r2, r3
	blt	.L14
	mov	r3, #0
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC10
	.word	.LC0
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
