	.file	"329829.c"
	.intel_syntax noprefix
	.text
	.globl	find_grade
	.type	find_grade, @function
find_grade:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	movss	DWORD PTR -20[rbp], xmm0
	movss	DWORD PTR -24[rbp], xmm1
	movss	DWORD PTR -28[rbp], xmm2
	movss	DWORD PTR -32[rbp], xmm3
	movss	DWORD PTR -36[rbp], xmm4
	movss	xmm0, DWORD PTR -20[rbp]
	comiss	xmm0, DWORD PTR -24[rbp]
	jb	.L16
	mov	BYTE PTR -1[rbp], 65
	jmp	.L4
.L16:
	movss	xmm0, DWORD PTR -20[rbp]
	comiss	xmm0, DWORD PTR -28[rbp]
	jb	.L17
	mov	BYTE PTR -1[rbp], 66
	jmp	.L4
.L17:
	movss	xmm0, DWORD PTR -20[rbp]
	comiss	xmm0, DWORD PTR -32[rbp]
	jb	.L18
	mov	BYTE PTR -1[rbp], 67
	jmp	.L4
.L18:
	movss	xmm0, DWORD PTR -20[rbp]
	comiss	xmm0, DWORD PTR -36[rbp]
	jb	.L19
	mov	BYTE PTR -1[rbp], 68
	jmp	.L4
.L19:
	mov	BYTE PTR -1[rbp], 70
.L4:
	movzx	eax, BYTE PTR -1[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	find_grade, .-find_grade
	.section	.rodata
	.align 8
.LC0:
	.string	"Enter thresholds for A, B, C, D\nin that order, decreasing percentages > "
.LC1:
	.string	"%f%f%f%f"
	.align 8
.LC2:
	.string	"Thank you. Now enter student score (percent) >"
.LC3:
	.string	"%f"
.LC4:
	.string	"Student has failed the course"
.LC5:
	.string	"Student has an %c grade\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, -16[rbp]
	lea	rcx, -20[rbp]
	lea	rdx, -24[rbp]
	lea	rax, -28[rbp]
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movss	xmm3, DWORD PTR -16[rbp]
	movss	xmm2, DWORD PTR -20[rbp]
	movss	xmm1, DWORD PTR -24[rbp]
	movss	xmm0, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -12[rbp]
	movaps	xmm4, xmm3
	movaps	xmm3, xmm2
	movaps	xmm2, xmm1
	movaps	xmm1, xmm0
	movd	xmm0, eax
	call	find_grade
	mov	BYTE PTR -29[rbp], al
	cmp	BYTE PTR -29[rbp], 70
	jne	.L21
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L22
.L21:
	movsx	eax, BYTE PTR -29[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L22:
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"329829.c"
	.text
	.global	__aeabi_fcmpge
	.align	2
	.global	find_grade
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_grade, %function
find_grade:
	@ args = 4, 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]	@ float
	str	r1, [fp, #-20]	@ float
	str	r2, [fp, #-24]	@ float
	str	r3, [fp, #-28]	@ float
	ldr	r1, [fp, #-20]	@ float
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	mov	r3, #65
	strb	r3, [fp, #-5]
	b	.L4
.L16:
	ldr	r1, [fp, #-24]	@ float
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	mov	r3, #66
	strb	r3, [fp, #-5]
	b	.L4
.L17:
	ldr	r1, [fp, #-28]	@ float
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	mov	r3, #67
	strb	r3, [fp, #-5]
	b	.L4
.L18:
	ldr	r1, [fp, #4]	@ float
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	mov	r3, #68
	strb	r3, [fp, #-5]
	b	.L4
.L19:
	mov	r3, #70
	strb	r3, [fp, #-5]
.L4:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	find_grade, .-find_grade
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter thresholds for A, B, C, D\012in that order, d"
	.ascii	"ecreasing percentages > \000"
	.align	2
.LC1:
	.ascii	"%f%f%f%f\000"
	.align	2
.LC2:
	.ascii	"Thank you. Now enter student score (percent) >\000"
	.align	2
.LC3:
	.ascii	"%f\000"
	.align	2
.LC4:
	.ascii	"Student has failed the course\000"
	.align	2
.LC5:
	.ascii	"Student has an %c grade\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L25+4
	bl	printf
	sub	r0, fp, #20
	sub	r2, fp, #24
	sub	r1, fp, #28
	sub	r3, fp, #16
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L25+8
	bl	__isoc99_scanf
	ldr	r0, .L25+12
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L25+16
	bl	__isoc99_scanf
	ldr	r0, [fp, #-12]	@ float
	ldr	r1, [fp, #-28]	@ float
	ldr	r2, [fp, #-24]	@ float
	ldr	ip, [fp, #-20]	@ float
	ldr	r3, [fp, #-16]	@ float
	str	r3, [sp]	@ float
	mov	r3, ip
	bl	find_grade
	mov	r3, r0
	strb	r3, [fp, #-29]
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #70
	bne	.L21
	ldr	r0, .L25+20
	bl	puts
	b	.L22
.L21:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L25+24
	bl	printf
.L22:
	mov	r3, #0
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
