	.file	"929665.c"
	.intel_syntax noprefix
	.text
	.globl	calc_grade
	.type	calc_grade, @function
calc_grade:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 100
	jg	.L2
	cmp	DWORD PTR -20[rbp], 79
	jle	.L2
	movss	xmm0, DWORD PTR .LC0[rip]
	movss	DWORD PTR -4[rbp], xmm0
	jmp	.L3
.L2:
	cmp	DWORD PTR -20[rbp], 79
	jg	.L4
	cmp	DWORD PTR -20[rbp], 74
	jle	.L4
	movss	xmm0, DWORD PTR .LC1[rip]
	movss	DWORD PTR -4[rbp], xmm0
	jmp	.L3
.L4:
	cmp	DWORD PTR -20[rbp], 74
	jg	.L5
	cmp	DWORD PTR -20[rbp], 69
	jle	.L5
	movss	xmm0, DWORD PTR .LC2[rip]
	movss	DWORD PTR -4[rbp], xmm0
	jmp	.L3
.L5:
	cmp	DWORD PTR -20[rbp], 69
	jg	.L6
	cmp	DWORD PTR -20[rbp], 64
	jle	.L6
	movss	xmm0, DWORD PTR .LC3[rip]
	movss	DWORD PTR -4[rbp], xmm0
	jmp	.L3
.L6:
	cmp	DWORD PTR -20[rbp], 64
	jg	.L7
	cmp	DWORD PTR -20[rbp], 59
	jle	.L7
	movss	xmm0, DWORD PTR .LC4[rip]
	movss	DWORD PTR -4[rbp], xmm0
	jmp	.L3
.L7:
	cmp	DWORD PTR -20[rbp], 59
	jg	.L8
	cmp	DWORD PTR -20[rbp], 54
	jle	.L8
	movss	xmm0, DWORD PTR .LC5[rip]
	movss	DWORD PTR -4[rbp], xmm0
	jmp	.L3
.L8:
	cmp	DWORD PTR -20[rbp], 54
	jg	.L9
	cmp	DWORD PTR -20[rbp], 49
	jle	.L9
	movss	xmm0, DWORD PTR .LC6[rip]
	movss	DWORD PTR -4[rbp], xmm0
	jmp	.L3
.L9:
	cmp	DWORD PTR -20[rbp], 49
	jg	.L10
	cmp	DWORD PTR -20[rbp], 44
	jle	.L10
	movss	xmm0, DWORD PTR .LC7[rip]
	movss	DWORD PTR -4[rbp], xmm0
	jmp	.L3
.L10:
	cmp	DWORD PTR -20[rbp], 44
	jg	.L11
	cmp	DWORD PTR -20[rbp], 39
	jle	.L11
	movss	xmm0, DWORD PTR .LC8[rip]
	movss	DWORD PTR -4[rbp], xmm0
	jmp	.L3
.L11:
	pxor	xmm0, xmm0
	movss	DWORD PTR -4[rbp], xmm0
.L3:
	movss	xmm0, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	calc_grade, .-calc_grade
	.section	.rodata
.LC10:
	.string	"a"
.LC11:
	.string	"Student ID : %s\n"
.LC12:
	.string	"Bangla     : %d (%.2f)\n"
.LC13:
	.string	"English    : %d (%.2f)\n"
.LC14:
	.string	"Math       : %d (%.2f)\n"
	.text
	.globl	make_gradesheet
	.type	make_gradesheet, @function
make_gradesheet:
.LFB7:
	.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	rax, -21[rbp]
	lea	rsi, 16[rbp]
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -21[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -21[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1954051118
	mov	BYTE PTR 4[rax], 0
	lea	rax, -21[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 16[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR 28[rbp]
	mov	edi, eax
	call	calc_grade
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rcx, xmm1
	mov	edx, DWORD PTR 28[rbp]
	mov	rax, QWORD PTR -32[rbp]
	movq	xmm0, rcx
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	mov	eax, DWORD PTR 32[rbp]
	mov	edi, eax
	call	calc_grade
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rcx, xmm2
	mov	edx, DWORD PTR 32[rbp]
	mov	rax, QWORD PTR -32[rbp]
	movq	xmm0, rcx
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	mov	eax, DWORD PTR 36[rbp]
	mov	edi, eax
	call	calc_grade
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, xmm0
	movq	rcx, xmm3
	mov	edx, DWORD PTR 36[rbp]
	mov	rax, QWORD PTR -32[rbp]
	movq	xmm0, rcx
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	make_gradesheet, .-make_gradesheet
	.section	.rodata
.LC15:
	.string	"r"
.LC16:
	.string	"marks.txt"
.LC17:
	.string	"file does not exist"
.LC18:
	.string	"%d"
.LC19:
	.string	"%s\t\t  %d\t\t %d\t\t %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC15[rip]
	lea	rdi, .LC16[rip]
	call	fopen@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L16
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L16:
	lea	rdx, -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -44[rbp], 0
	jmp	.L17
.L18:
	lea	rax, -32[rbp]
	lea	rdi, 20[rax]
	lea	rax, -32[rbp]
	lea	rsi, 16[rax]
	lea	rax, -32[rbp]
	lea	rcx, 12[rax]
	lea	rdx, -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	sub	rsp, 8
	push	QWORD PTR -16[rbp]
	push	QWORD PTR -24[rbp]
	push	QWORD PTR -32[rbp]
	call	make_gradesheet
	add	rsp, 32
	add	DWORD PTR -44[rbp], 1
.L17:
	mov	eax, DWORD PTR -48[rbp]
	cmp	DWORD PTR -44[rbp], eax
	jl	.L18
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC0:
	.long	1082130432
	.align 4
.LC1:
	.long	1081081856
	.align 4
.LC2:
	.long	1080033280
	.align 4
.LC3:
	.long	1078984704
	.align 4
.LC4:
	.long	1077936128
	.align 4
.LC5:
	.long	1076887552
	.align 4
.LC6:
	.long	1075838976
	.align 4
.LC7:
	.long	1074790400
	.align 4
.LC8:
	.long	1073741824
	.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	"929665.c"
	.text
	.align	2
	.global	calc_grade
	.syntax unified
	.arm
	.fpu softvfp
	.type	calc_grade, %function
calc_grade:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #100
	bgt	.L2
	ldr	r3, [fp, #-16]
	cmp	r3, #79
	ble	.L2
	ldr	r3, .L13
	str	r3, [fp, #-8]	@ float
	b	.L3
.L2:
	ldr	r3, [fp, #-16]
	cmp	r3, #79
	bgt	.L4
	ldr	r3, [fp, #-16]
	cmp	r3, #74
	ble	.L4
	ldr	r3, .L13+4
	str	r3, [fp, #-8]	@ float
	b	.L3
.L4:
	ldr	r3, [fp, #-16]
	cmp	r3, #74
	bgt	.L5
	ldr	r3, [fp, #-16]
	cmp	r3, #69
	ble	.L5
	ldr	r3, .L13+8
	str	r3, [fp, #-8]	@ float
	b	.L3
.L5:
	ldr	r3, [fp, #-16]
	cmp	r3, #69
	bgt	.L6
	ldr	r3, [fp, #-16]
	cmp	r3, #64
	ble	.L6
	ldr	r3, .L13+12
	str	r3, [fp, #-8]	@ float
	b	.L3
.L6:
	ldr	r3, [fp, #-16]
	cmp	r3, #64
	bgt	.L7
	ldr	r3, [fp, #-16]
	cmp	r3, #59
	ble	.L7
	ldr	r3, .L13+16
	str	r3, [fp, #-8]	@ float
	b	.L3
.L7:
	ldr	r3, [fp, #-16]
	cmp	r3, #59
	bgt	.L8
	ldr	r3, [fp, #-16]
	cmp	r3, #54
	ble	.L8
	ldr	r3, .L13+20
	str	r3, [fp, #-8]	@ float
	b	.L3
.L8:
	ldr	r3, [fp, #-16]
	cmp	r3, #54
	bgt	.L9
	ldr	r3, [fp, #-16]
	cmp	r3, #49
	ble	.L9
	ldr	r3, .L13+24
	str	r3, [fp, #-8]	@ float
	b	.L3
.L9:
	ldr	r3, [fp, #-16]
	cmp	r3, #49
	bgt	.L10
	ldr	r3, [fp, #-16]
	cmp	r3, #44
	ble	.L10
	ldr	r3, .L13+28
	str	r3, [fp, #-8]	@ float
	b	.L3
.L10:
	ldr	r3, [fp, #-16]
	cmp	r3, #44
	bgt	.L11
	ldr	r3, [fp, #-16]
	cmp	r3, #39
	ble	.L11
	mov	r3, #1073741824
	str	r3, [fp, #-8]	@ float
	b	.L3
.L11:
	mov	r3, #0
	str	r3, [fp, #-8]	@ float
.L3:
	ldr	r3, [fp, #-8]	@ float
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L14:
	.align	2
.L13:
	.word	1082130432
	.word	1081081856
	.word	1080033280
	.word	1078984704
	.word	1077936128
	.word	1076887552
	.word	1075838976
	.word	1074790400
	.size	calc_grade, .-calc_grade
	.section	.rodata
	.align	2
.LC0:
	.ascii	".txt\000"
	.align	2
.LC1:
	.ascii	"a\000"
	.align	2
.LC2:
	.ascii	"Student ID : %s\012\000"
	.global	__aeabi_f2d
	.align	2
.LC3:
	.ascii	"Bangla     : %d (%.2f)\012\000"
	.align	2
.LC4:
	.ascii	"English    : %d (%.2f)\012\000"
	.align	2
.LC5:
	.ascii	"Math       : %d (%.2f)\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	make_gradesheet
	.syntax unified
	.arm
	.fpu softvfp
	.type	make_gradesheet, %function
make_gradesheet:
	@ args = 24, pretend = 16, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #32
	add	r2, fp, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #32
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #32
	add	r3, r3, r2
	ldr	r2, .L17+4
	mov	r0, r3
	mov	r1, r2
	mov	r3, #5
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #32
	ldr	r1, .L17+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-36]
	add	r3, fp, #4
	mov	r2, r3
	ldr	r1, .L17+12
	ldr	r0, [fp, #-36]
	bl	fprintf
	ldr	r4, [fp, #16]
	ldr	r3, [fp, #16]
	mov	r0, r3
	bl	calc_grade
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r4
	ldr	r1, .L17+16
	ldr	r0, [fp, #-36]
	bl	fprintf
	ldr	r4, [fp, #20]
	ldr	r3, [fp, #20]
	mov	r0, r3
	bl	calc_grade
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r4
	ldr	r1, .L17+20
	ldr	r0, [fp, #-36]
	bl	fprintf
	ldr	r4, [fp, #24]
	ldr	r3, [fp, #24]
	mov	r0, r3
	bl	calc_grade
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r4
	ldr	r1, .L17+24
	ldr	r0, [fp, #-36]
	bl	fprintf
	nop
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, lr}
	add	sp, sp, #16
	bx	lr
.L18:
	.align	2
.L17:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	make_gradesheet, .-make_gradesheet
	.section	.rodata
	.align	2
.LC7:
	.ascii	"r\000"
	.align	2
.LC8:
	.ascii	"marks.txt\000"
	.align	2
.LC9:
	.ascii	"file does not exist\000"
	.align	2
.LC10:
	.ascii	"%d\000"
	.align	2
.LC11:
	.ascii	"%s\011\011  %d\011\011 %d\011\011 %d\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L25+4
	ldr	r0, .L25+8
	bl	fopen
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L20
	ldr	r0, .L25+12
	bl	puts
	mov	r0, #0
	bl	exit
.L20:
	sub	r3, fp, #44
	mov	r2, r3
	ldr	r1, .L25+16
	ldr	r0, [fp, #-36]
	bl	__isoc99_fscanf
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L21
.L22:
	sub	r3, fp, #32
	add	r1, r3, #12
	sub	r2, fp, #32
	sub	r3, fp, #32
	add	r3, r3, #20
	str	r3, [sp, #4]
	sub	r3, fp, #32
	add	r3, r3, #16
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L25+20
	ldr	r0, [fp, #-36]
	bl	__isoc99_fscanf
	mov	r2, sp
	sub	r3, fp, #16
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	sub	r3, fp, #32
	ldm	r3, {r0, r1, r2, r3}
	bl	make_gradesheet
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L21:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	blt	.L22
	ldr	r0, [fp, #-36]
	bl	fclose
	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	.LC12
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
