	.file	"59513225.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Enter numerical grade: "
.LC1:
	.string	"%d"
	.align 8
.LC2:
	.string	"Input invalid. Please try again."
	.align 8
.LC3:
	.string	"Input invalid. Grade cannot be negative. Please try again."
	.align 8
.LC4:
	.string	"Input invalid. Grade cannot exceed %d. Please try again.\n"
.LC5:
	.string	"Letter grade: %c\n"
	.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 4847076366598161990
	mov	QWORD PTR -19[rbp], rax
	mov	WORD PTR -11[rbp], 16706
	mov	BYTE PTR -9[rbp], 65
	mov	DWORD PTR -24[rbp], 0
	mov	BYTE PTR -26[rbp], 0
.L13:
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 1
	je	.L7
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L3
.L5:
	nop
.L3:
	call	getchar@PLT
	mov	BYTE PTR -26[rbp], al
	cmp	BYTE PTR -26[rbp], 10
	je	.L16
	cmp	BYTE PTR -26[rbp], -1
	jne	.L5
	jmp	.L16
.L9:
	nop
.L7:
	call	getchar@PLT
	mov	BYTE PTR -26[rbp], al
	cmp	BYTE PTR -26[rbp], 10
	je	.L8
	cmp	BYTE PTR -26[rbp], -1
	jne	.L9
.L8:
	mov	eax, DWORD PTR -24[rbp]
	test	eax, eax
	jns	.L10
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L6
.L10:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, 100
	jle	.L17
	mov	esi, 100
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L6
.L16:
	nop
.L6:
	jmp	.L13
.L17:
	nop
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	cdqe
	movzx	eax, BYTE PTR -19[rbp+rax]
	mov	BYTE PTR -25[rbp], al
	movsx	eax, BYTE PTR -25[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	call	getchar@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"59513225.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Enter numerical grade: \000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.ascii	"Input invalid. Please try again.\000"
	.align	2
.LC4:
	.ascii	"Input invalid. Grade cannot be negative. Please try"
	.ascii	" again.\000"
	.align	2
.LC5:
	.ascii	"Input invalid. Grade cannot exceed %d. Please try a"
	.ascii	"gain.\012\000"
	.align	2
.LC6:
	.ascii	"Letter grade: %c\012\000"
	.align	2
.LC0:
	.ascii	"FFFFFFDCBAA"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L15+4
	sub	r3, fp, #20
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	strb	r3, [fp, #-26]
.L11:
	ldr	r0, .L15+8
	bl	printf
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L15+12
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L6
	ldr	r0, .L15+16
	bl	puts
	b	.L3
.L4:
	nop
.L3:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-26]
	ldrb	r3, [fp, #-26]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L4
	b	.L5
.L7:
	nop
.L6:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-26]
	ldrb	r3, [fp, #-26]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L7
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L8
	ldr	r0, .L15+20
	bl	puts
	b	.L5
.L8:
	ldr	r3, [fp, #-24]
	cmp	r3, #100
	ble	.L14
	mov	r1, #100
	ldr	r0, .L15+24
	bl	printf
	nop
.L5:
	b	.L11
.L14:
	nop
	ldr	r3, [fp, #-24]
	ldr	r2, .L15+28
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-16]
	strb	r3, [fp, #-25]
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L15+32
	bl	printf
	mov	r0, #10
	bl	putchar
	bl	getchar
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	1717986919
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
