	.file	"11075978.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Enter 5 student %d grades: "
.LC1:
	.string	"%d"
	.align 8
.LC3:
	.string	"Student %d total is %d, average is %.2f\n "
	.align 8
.LC4:
	.string	"Quiz %d average is %.2f, highest score is %d and the lowest is %d\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, 208
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -208[rbp], 0
	jmp	.L2
.L5:
	mov	eax, DWORD PTR -208[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -204[rbp], 0
	jmp	.L3
.L4:
	lea	rcx, -112[rbp]
	mov	eax, DWORD PTR -204[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -208[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rsi
	sal	rax, 2
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -204[rbp], 1
.L3:
	cmp	DWORD PTR -204[rbp], 4
	jle	.L4
	add	DWORD PTR -208[rbp], 1
.L2:
	cmp	DWORD PTR -208[rbp], 4
	jle	.L5
	mov	DWORD PTR -200[rbp], 0
	jmp	.L6
.L9:
	mov	DWORD PTR -196[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -200[rbp]
	cdqe
	mov	ecx, DWORD PTR -176[rbp+rax*4]
	mov	eax, DWORD PTR -196[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -200[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rsi
	mov	eax, DWORD PTR -112[rbp+rax*4]
	lea	edx, [rcx+rax]
	mov	eax, DWORD PTR -200[rbp]
	cdqe
	mov	DWORD PTR -176[rbp+rax*4], edx
	add	DWORD PTR -196[rbp], 1
.L7:
	cmp	DWORD PTR -196[rbp], 4
	jle	.L8
	mov	eax, DWORD PTR -200[rbp]
	cdqe
	mov	eax, DWORD PTR -176[rbp+rax*4]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR .LC2[rip]
	divsd	xmm0, xmm1
	movq	rdx, xmm0
	mov	eax, DWORD PTR -200[rbp]
	cdqe
	mov	eax, DWORD PTR -176[rbp+rax*4]
	mov	ecx, DWORD PTR -200[rbp]
	add	ecx, 1
	movq	xmm0, rdx
	mov	edx, eax
	mov	esi, ecx
	lea	rdi, .LC3[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -200[rbp], 1
.L6:
	cmp	DWORD PTR -200[rbp], 4
	jle	.L9
	mov	edi, 10
	call	putchar@PLT
	mov	DWORD PTR -192[rbp], 0
	jmp	.L10
.L15:
	mov	DWORD PTR -188[rbp], 0
	mov	DWORD PTR -184[rbp], 100
	mov	DWORD PTR -180[rbp], 0
	jmp	.L11
.L14:
	mov	eax, DWORD PTR -192[rbp]
	cdqe
	mov	ecx, DWORD PTR -144[rbp+rax*4]
	mov	eax, DWORD PTR -192[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -180[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rsi
	mov	eax, DWORD PTR -112[rbp+rax*4]
	lea	edx, [rcx+rax]
	mov	eax, DWORD PTR -192[rbp]
	cdqe
	mov	DWORD PTR -144[rbp+rax*4], edx
	mov	eax, DWORD PTR -192[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -180[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rcx
	mov	eax, DWORD PTR -112[rbp+rax*4]
	cmp	DWORD PTR -188[rbp], eax
	jge	.L12
	mov	eax, DWORD PTR -192[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -180[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rcx
	mov	eax, DWORD PTR -112[rbp+rax*4]
	mov	DWORD PTR -188[rbp], eax
.L12:
	mov	eax, DWORD PTR -192[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -180[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rcx
	mov	eax, DWORD PTR -112[rbp+rax*4]
	cmp	DWORD PTR -184[rbp], eax
	jle	.L13
	mov	eax, DWORD PTR -192[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -180[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rcx
	mov	eax, DWORD PTR -112[rbp+rax*4]
	mov	DWORD PTR -184[rbp], eax
.L13:
	add	DWORD PTR -180[rbp], 1
.L11:
	cmp	DWORD PTR -180[rbp], 4
	jle	.L14
	mov	eax, DWORD PTR -192[rbp]
	cdqe
	mov	eax, DWORD PTR -144[rbp+rax*4]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR .LC2[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	mov	edx, DWORD PTR -192[rbp]
	lea	esi, 1[rdx]
	mov	ecx, DWORD PTR -184[rbp]
	mov	edx, DWORD PTR -188[rbp]
	movq	xmm0, rax
	lea	rdi, .LC4[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -192[rbp], 1
.L10:
	cmp	DWORD PTR -192[rbp], 4
	jle	.L15
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1075052544
	.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	"11075978.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter 5 student %d grades: \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.align	2
.LC2:
	.ascii	"Student %d total is %d, average is %.2f\012 \000"
	.align	2
.LC3:
	.ascii	"Quiz %d average is %.2f, highest score is %d and th"
	.ascii	"e lowest is %d\012 \000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 176
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #184
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-188]
	b	.L2
.L5:
	ldr	r3, [fp, #-188]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L18+4
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-184]
	b	.L3
.L4:
	sub	r1, fp, #116
	ldr	r2, [fp, #-188]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-184]
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-184]
	add	r3, r3, #1
	str	r3, [fp, #-184]
.L3:
	ldr	r3, [fp, #-184]
	cmp	r3, #4
	ble	.L4
	ldr	r3, [fp, #-188]
	add	r3, r3, #1
	str	r3, [fp, #-188]
.L2:
	ldr	r3, [fp, #-188]
	cmp	r3, #4
	ble	.L5
	mov	r3, #0
	str	r3, [fp, #-180]
	b	.L6
.L9:
	mov	r3, #0
	str	r3, [fp, #-176]
	b	.L7
.L8:
	ldr	r3, [fp, #-180]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r1, [r3, #-144]
	ldr	r2, [fp, #-180]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-176]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-104]
	add	r2, r1, r3
	ldr	r3, [fp, #-180]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-144]
	ldr	r3, [fp, #-176]
	add	r3, r3, #1
	str	r3, [fp, #-176]
.L7:
	ldr	r3, [fp, #-176]
	cmp	r3, #4
	ble	.L8
	ldr	r3, [fp, #-180]
	add	r4, r3, #1
	ldr	r3, [fp, #-180]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r5, [r3, #-144]
	ldr	r3, [fp, #-180]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-144]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L18+12
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L18+16
	bl	printf
	ldr	r3, [fp, #-180]
	add	r3, r3, #1
	str	r3, [fp, #-180]
.L6:
	ldr	r3, [fp, #-180]
	cmp	r3, #4
	ble	.L9
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-172]
	b	.L10
.L15:
	mov	r3, #0
	str	r3, [fp, #-168]
	mov	r3, #100
	str	r3, [fp, #-164]
	mov	r3, #0
	str	r3, [fp, #-160]
	b	.L11
.L14:
	ldr	r3, [fp, #-172]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r1, [r3, #-124]
	ldr	r2, [fp, #-160]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-172]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-104]
	add	r2, r1, r3
	ldr	r3, [fp, #-172]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-124]
	ldr	r2, [fp, #-160]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-172]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-104]
	ldr	r2, [fp, #-168]
	cmp	r2, r3
	bge	.L12
	ldr	r2, [fp, #-160]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-172]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-104]
	str	r3, [fp, #-168]
.L12:
	ldr	r2, [fp, #-160]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-172]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-104]
	ldr	r2, [fp, #-164]
	cmp	r2, r3
	ble	.L13
	ldr	r2, [fp, #-160]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-172]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-104]
	str	r3, [fp, #-164]
.L13:
	ldr	r3, [fp, #-160]
	add	r3, r3, #1
	str	r3, [fp, #-160]
.L11:
	ldr	r3, [fp, #-160]
	cmp	r3, #4
	ble	.L14
	ldr	r3, [fp, #-172]
	add	r4, r3, #1
	ldr	r3, [fp, #-172]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-124]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L18+12
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-164]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-168]
	str	r3, [sp]
	mov	r2, r0
	mov	r3, r1
	mov	r1, r4
	ldr	r0, .L18+20
	bl	printf
	ldr	r3, [fp, #-172]
	add	r3, r3, #1
	str	r3, [fp, #-172]
.L10:
	ldr	r3, [fp, #-172]
	cmp	r3, #4
	ble	.L15
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	1075052544
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
