	.file	"96385.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC1:
	.string	"Input course number: "
.LC2:
	.string	"%d"
.LC3:
	.string	"Input course name: "
	.align 8
.LC4:
	.string	"\nInput weighting factor for quizes(WQ): "
	.align 8
.LC5:
	.string	"Input weighting factor for homeworks(WH): "
	.align 8
.LC6:
	.string	"Input weighting factor for finals(WF): "
	.align 8
.LC7:
	.string	"\nEnter quiz grade or enter -1 to exit: "
	.align 8
.LC8:
	.string	"Enter quiz grade or enter -1 to exit: "
	.align 8
.LC9:
	.string	"You didnt enter any quiz grades. Quiz average will be 0 by default"
	.align 8
.LC10:
	.string	"\nEnter homework grade or enter -1 to exit: "
	.align 8
.LC11:
	.string	"Enter homework grade or enter -1 to exit: "
	.align 8
.LC12:
	.string	"You didnt enter any homework grades. Quiz average will be 0 by default"
	.align 8
.LC13:
	.string	"\nEnter 1 if there is final grades for this course else enter 2: "
	.align 8
.LC14:
	.string	"Enter final grade or enter -1 to exit: "
	.align 8
.LC15:
	.string	"You didnt enter any final grades. Quiz average will be 0 by default"
	.align 8
.LC16:
	.string	"\nCourse number: %d\nCourse name: %s\nAverage Grade: %.2f"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -80[rbp], 0
	mov	DWORD PTR -76[rbp], 0
	pxor	xmm0, xmm0
	movss	DWORD PTR -72[rbp], xmm0
	mov	DWORD PTR -68[rbp], 0
	pxor	xmm0, xmm0
	movss	DWORD PTR -64[rbp], xmm0
	mov	DWORD PTR -60[rbp], 0
	pxor	xmm0, xmm0
	movss	DWORD PTR -56[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -52[rbp], xmm0
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -104[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	call	getchar@PLT
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -100[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -92[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -88[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -88[rbp]
	add	DWORD PTR -80[rbp], eax
	add	DWORD PTR -76[rbp], 1
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -88[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L2:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, -1
	jne	.L3
	cmp	DWORD PTR -76[rbp], 0
	jne	.L4
	lea	rdi, .LC9[rip]
	call	puts@PLT
	jmp	.L5
.L4:
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -80[rbp]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -76[rbp]
	divss	xmm0, xmm1
	movss	DWORD PTR -72[rbp], xmm0
	mov	DWORD PTR -80[rbp], 0
.L5:
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -88[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -88[rbp]
	add	DWORD PTR -80[rbp], eax
	add	DWORD PTR -68[rbp], 1
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -88[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L6:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, -1
	jne	.L7
	cmp	DWORD PTR -68[rbp], 0
	jne	.L8
	lea	rdi, .LC12[rip]
	call	puts@PLT
	jmp	.L9
.L8:
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -80[rbp]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -68[rbp]
	divss	xmm0, xmm1
	movss	DWORD PTR -64[rbp], xmm0
	mov	DWORD PTR -80[rbp], 0
.L9:
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -84[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, 1
	jne	.L10
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -88[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -88[rbp]
	add	DWORD PTR -80[rbp], eax
	add	DWORD PTR -60[rbp], 1
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -88[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L11:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, -1
	jne	.L12
	cmp	DWORD PTR -60[rbp], 0
	jne	.L13
	lea	rdi, .LC15[rip]
	call	puts@PLT
	jmp	.L14
.L13:
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -80[rbp]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -60[rbp]
	divss	xmm0, xmm1
	movss	DWORD PTR -56[rbp], xmm0
	mov	DWORD PTR -80[rbp], 0
.L14:
	mov	eax, DWORD PTR -100[rbp]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movaps	xmm1, xmm0
	mulss	xmm1, DWORD PTR -72[rbp]
	mov	eax, DWORD PTR -96[rbp]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	mulss	xmm0, DWORD PTR -64[rbp]
	addss	xmm1, xmm0
	mov	eax, DWORD PTR -92[rbp]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	mulss	xmm0, DWORD PTR -56[rbp]
	addss	xmm0, xmm1
	mov	edx, DWORD PTR -100[rbp]
	mov	eax, DWORD PTR -96[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -92[rbp]
	add	eax, edx
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	divss	xmm0, xmm1
	movss	DWORD PTR -52[rbp], xmm0
	jmp	.L15
.L10:
	mov	eax, DWORD PTR -100[rbp]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movaps	xmm1, xmm0
	mulss	xmm1, DWORD PTR -72[rbp]
	mov	eax, DWORD PTR -96[rbp]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	mulss	xmm0, DWORD PTR -64[rbp]
	addss	xmm0, xmm1
	mov	edx, DWORD PTR -100[rbp]
	mov	eax, DWORD PTR -96[rbp]
	add	eax, edx
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	divss	xmm0, xmm1
	movss	DWORD PTR -52[rbp], xmm0
.L15:
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -52[rbp]
	movq	rcx, xmm2
	mov	eax, DWORD PTR -104[rbp]
	lea	rdx, -48[rbp]
	movq	xmm0, rcx
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 1
	call	printf@PLT
	call	getchar@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"96385.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Input course number: \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Input course name: \000"
	.align	2
.LC3:
	.ascii	"\012Input weighting factor for quizes(WQ): \000"
	.align	2
.LC4:
	.ascii	"Input weighting factor for homeworks(WH): \000"
	.align	2
.LC5:
	.ascii	"Input weighting factor for finals(WF): \000"
	.align	2
.LC6:
	.ascii	"\012Enter quiz grade or enter -1 to exit: \000"
	.align	2
.LC7:
	.ascii	"Enter quiz grade or enter -1 to exit: \000"
	.align	2
.LC8:
	.ascii	"You didnt enter any quiz grades. Quiz average will "
	.ascii	"be 0 by default\000"
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.align	2
.LC9:
	.ascii	"\012Enter homework grade or enter -1 to exit: \000"
	.align	2
.LC10:
	.ascii	"Enter homework grade or enter -1 to exit: \000"
	.align	2
.LC11:
	.ascii	"You didnt enter any homework grades. Quiz average w"
	.ascii	"ill be 0 by default\000"
	.align	2
.LC12:
	.ascii	"\012Enter 1 if there is final grades for this cours"
	.ascii	"e else enter 2: \000"
	.align	2
.LC13:
	.ascii	"Enter final grade or enter -1 to exit: \000"
	.align	2
.LC14:
	.ascii	"You didnt enter any final grades. Quiz average will"
	.ascii	" be 0 by default\000"
	.global	__aeabi_fmul
	.global	__aeabi_fadd
	.global	__aeabi_f2d
	.align	2
.LC15:
	.ascii	"\012Course number: %d\012Course name: %s\012Average"
	.ascii	" Grade: %.2f\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #108
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-76]
	mov	r3, #0
	str	r3, [fp, #-72]	@ float
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-64]	@ float
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]	@ float
	mov	r3, #0
	str	r3, [fp, #-52]	@ float
	ldr	r0, .L18+4
	bl	printf
	sub	r3, fp, #104
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
	bl	getchar
	bl	getchar
	ldr	r0, .L18+12
	bl	printf
	sub	r3, fp, #48
	mov	r0, r3
	bl	gets
	ldr	r0, .L18+16
	bl	printf
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
	ldr	r0, .L18+20
	bl	printf
	sub	r3, fp, #96
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
	ldr	r0, .L18+24
	bl	printf
	sub	r3, fp, #92
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
	ldr	r0, .L18+28
	bl	printf
	sub	r3, fp, #88
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
	b	.L2
.L3:
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-80]
	add	r3, r2, r3
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
	ldr	r0, .L18+32
	bl	printf
	sub	r3, fp, #88
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
.L2:
	ldr	r3, [fp, #-88]
	cmn	r3, #1
	bne	.L3
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L18+36
	bl	puts
	b	.L5
.L4:
	ldr	r0, [fp, #-80]
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r0, [fp, #-76]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-72]	@ float
	mov	r3, #0
	str	r3, [fp, #-80]
.L5:
	ldr	r0, .L18+40
	bl	printf
	sub	r3, fp, #88
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
	b	.L6
.L7:
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-80]
	add	r3, r2, r3
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
	ldr	r0, .L18+44
	bl	printf
	sub	r3, fp, #88
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
.L6:
	ldr	r3, [fp, #-88]
	cmn	r3, #1
	bne	.L7
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L18+48
	bl	puts
	b	.L9
.L8:
	ldr	r0, [fp, #-80]
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r0, [fp, #-68]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-64]	@ float
	mov	r3, #0
	str	r3, [fp, #-80]
.L9:
	ldr	r0, .L18+52
	bl	printf
	sub	r3, fp, #84
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-84]
	cmp	r3, #1
	bne	.L10
	ldr	r0, .L18+56
	bl	printf
	sub	r3, fp, #88
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
	b	.L11
.L12:
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-80]
	add	r3, r2, r3
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
	ldr	r0, .L18+56
	bl	printf
	sub	r3, fp, #88
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
.L11:
	ldr	r3, [fp, #-88]
	cmn	r3, #1
	bne	.L12
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L13
	ldr	r0, .L18+60
	bl	puts
	b	.L14
.L13:
	ldr	r0, [fp, #-80]
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r0, [fp, #-60]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-56]	@ float
	mov	r3, #0
	str	r3, [fp, #-80]
.L14:
	ldr	r3, [fp, #-100]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, [fp, #-72]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r4, r3
	ldr	r3, [fp, #-96]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, [fp, #-64]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r4, r3
	ldr	r3, [fp, #-92]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, [fp, #-56]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r4, r3
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-96]
	add	r2, r2, r3
	ldr	r3, [fp, #-92]
	add	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-52]	@ float
	b	.L15
.L10:
	ldr	r3, [fp, #-100]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, [fp, #-72]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r4, r3
	ldr	r3, [fp, #-96]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, [fp, #-64]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r4, r3
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-96]
	add	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-52]	@ float
.L15:
	ldr	r4, [fp, #-104]
	ldr	r0, [fp, #-52]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #48
	stm	sp, {r2-r3}
	mov	r2, r1
	mov	r1, r4
	ldr	r0, .L18+64
	bl	printf
	bl	getchar
	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, #8
	@ sp needed
	pop	{r4, fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC16
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
