	.file	"195716.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC1:
	.string	"Processing %d student grades\n"
	.align 8
.LC2:
	.string	"How many hw values you want to enter (between %d and %d? "
.LC3:
	.string	"%d\n"
	.align 8
.LC4:
	.string	"%d is lower than %d. Setting your entry to %d\n"
	.align 8
.LC5:
	.string	"%d is greater than %d. Setting your entry to %d\n"
.LC6:
	.string	"\nEnter %d hw grade(%d-%d): "
.LC7:
	.string	"%f\n"
	.align 8
.LC9:
	.string	"Invalid input. Please try again"
.LC10:
	.string	"Your avg is [%6.2f]\n"
.LC12:
	.string	"Your class avg is [%6.2f]\n"
.LC13:
	.string	"\nBye amigo"
	.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	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 1
	pxor	xmm0, xmm0
	movss	DWORD PTR -16[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -12[rbp], xmm0
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	DWORD PTR -20[rbp], 1
	jmp	.L2
.L11:
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, 5
	mov	esi, 2
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	DWORD PTR -28[rbp], eax
	mov	ecx, DWORD PTR -28[rbp]
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	sub	edx, eax
	mov	DWORD PTR -28[rbp], edx
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -28[rbp], 1
	jg	.L3
	mov	eax, DWORD PTR -28[rbp]
	mov	ecx, 2
	mov	edx, 2
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -28[rbp], 2
.L3:
	cmp	DWORD PTR -28[rbp], 5
	jle	.L5
	mov	eax, DWORD PTR -28[rbp]
	mov	ecx, 5
	mov	edx, 5
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -28[rbp], 5
	jmp	.L5
.L10:
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 1
	mov	ecx, 100
	mov	edx, 0
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 458129845
	shr	rdx, 32
	sar	edx, 4
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 150
	sub	eax, ecx
	mov	edx, eax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, edx
	movss	DWORD PTR -8[rbp], xmm0
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 5
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 100
	sub	eax, ecx
	mov	edx, eax
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, edx
	movss	xmm0, DWORD PTR -8[rbp]
	subss	xmm0, xmm1
	movss	DWORD PTR -8[rbp], xmm0
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -8[rbp]
	movq	rax, xmm2
	movq	xmm0, rax
	lea	rdi, .LC7[rip]
	mov	eax, 1
	call	printf@PLT
	pxor	xmm0, xmm0
	comiss	xmm0, DWORD PTR -8[rbp]
	ja	.L6
	movss	xmm0, DWORD PTR -8[rbp]
	comiss	xmm0, DWORD PTR .LC8[rip]
	jbe	.L13
.L6:
	lea	rdi, .LC9[rip]
	call	puts@PLT
	jmp	.L5
.L13:
	movss	xmm0, DWORD PTR -16[rbp]
	addss	xmm0, DWORD PTR -8[rbp]
	movss	DWORD PTR -16[rbp], xmm0
	add	DWORD PTR -24[rbp], 1
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	je	.L14
.L5:
	cmp	DWORD PTR -24[rbp], 4
	jle	.L10
	jmp	.L9
.L14:
	nop
.L9:
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -28[rbp]
	movss	xmm0, DWORD PTR -16[rbp]
	divss	xmm0, xmm1
	movss	DWORD PTR -4[rbp], xmm0
	movss	xmm0, DWORD PTR -12[rbp]
	addss	xmm0, DWORD PTR -4[rbp]
	movss	DWORD PTR -12[rbp], xmm0
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, DWORD PTR -4[rbp]
	movq	rax, xmm3
	movq	xmm0, rax
	lea	rdi, .LC10[rip]
	mov	eax, 1
	call	printf@PLT
	mov	DWORD PTR -24[rbp], 0
	pxor	xmm0, xmm0
	movss	DWORD PTR -16[rbp], xmm0
	add	DWORD PTR -20[rbp], 1
.L2:
	cmp	DWORD PTR -20[rbp], 30
	jle	.L11
	movss	xmm0, DWORD PTR -12[rbp]
	movss	xmm1, DWORD PTR .LC11[rip]
	divss	xmm0, xmm1
	pxor	xmm4, xmm4
	cvtss2sd	xmm4, xmm0
	movq	rax, xmm4
	movq	xmm0, rax
	lea	rdi, .LC12[rip]
	mov	eax, 1
	call	printf@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC8:
	.long	1120403456
	.align 4
.LC11:
	.long	1106247680
	.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	"195716.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Processing %d student grades\012\000"
	.align	2
.LC1:
	.ascii	"How many hw values you want to enter (between %d an"
	.ascii	"d %d? \000"
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.align	2
.LC3:
	.ascii	"%d is lower than %d. Setting your entry to %d\012\000"
	.align	2
.LC4:
	.ascii	"%d is greater than %d. Setting your entry to %d\012"
	.ascii	"\000"
	.align	2
.LC5:
	.ascii	"\012Enter %d hw grade(%d-%d): \000"
	.global	__aeabi_i2f
	.global	__aeabi_fsub
	.global	__aeabi_f2d
	.align	2
.LC6:
	.ascii	"%f\012\000"
	.global	__aeabi_fcmplt
	.global	__aeabi_fcmpgt
	.align	2
.LC7:
	.ascii	"Invalid input. Please try again\000"
	.global	__aeabi_fadd
	.global	__aeabi_fdiv
	.align	2
.LC8:
	.ascii	"Your avg is [%6.2f]\012\000"
	.align	2
.LC9:
	.ascii	"Your class avg is [%6.2f]\012\000"
	.align	2
.LC10:
	.ascii	"\012Bye amigo\000"
	.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, #32
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #1
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]	@ float
	mov	r3, #0
	str	r3, [fp, #-16]	@ float
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L2
.L11:
	ldr	r1, [fp, #-24]
	ldr	r0, .L15
	bl	printf
	mov	r2, #5
	mov	r1, #2
	ldr	r0, .L15+4
	bl	printf
	bl	rand
	mov	r2, r0
	ldr	r3, .L15+8
	smull	r1, r3, r2, r3
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r1, [fp, #-32]
	ldr	r0, .L15+12
	bl	printf
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	bgt	.L3
	mov	r3, #2
	mov	r2, #2
	ldr	r1, [fp, #-32]
	ldr	r0, .L15+16
	bl	printf
	mov	r3, #2
	str	r3, [fp, #-32]
.L3:
	ldr	r3, [fp, #-32]
	cmp	r3, #5
	ble	.L5
	mov	r3, #5
	mov	r2, #5
	ldr	r1, [fp, #-32]
	ldr	r0, .L15+20
	bl	printf
	mov	r3, #5
	str	r3, [fp, #-32]
	b	.L5
.L10:
	ldr	r3, [fp, #-28]
	add	r1, r3, #1
	mov	r3, #100
	mov	r2, #0
	ldr	r0, .L15+24
	bl	printf
	bl	rand
	mov	r1, r0
	ldr	r3, .L15+28
	smull	r2, r3, r1, r3
	asr	r2, r3, #4
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #1
	mov	r2, r3
	sub	r2, r1, r2
	mov	r0, r2
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [fp, #-12]	@ float
	bl	rand
	mov	r1, r0
	ldr	r3, .L15+32
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	mov	r0, r2
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-12]	@ float
	bl	__aeabi_fsub
	mov	r3, r0
	str	r3, [fp, #-12]	@ float
	ldr	r0, [fp, #-12]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L15+36
	bl	printf
	mov	r1, #0
	ldr	r0, [fp, #-12]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	ldr	r1, .L15+40
	ldr	r0, [fp, #-12]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
.L6:
	ldr	r0, .L15+44
	bl	puts
	b	.L5
.L13:
	ldr	r1, [fp, #-12]	@ float
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-20]	@ float
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	beq	.L14
.L5:
	ldr	r3, [fp, #-28]
	cmp	r3, #4
	ble	.L10
	b	.L9
.L14:
	nop
.L9:
	ldr	r0, [fp, #-32]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-8]	@ float
	ldr	r1, [fp, #-8]	@ float
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-16]	@ float
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L15+48
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-20]	@ float
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L2:
	ldr	r3, [fp, #-24]
	cmp	r3, #30
	ble	.L11
	ldr	r1, .L15+52
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L15+56
	bl	printf
	ldr	r0, .L15+60
	bl	puts
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	.LC1
	.word	1717986919
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	458129845
	.word	1374389535
	.word	.LC6
	.word	1120403456
	.word	.LC7
	.word	.LC8
	.word	1106247680
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
