	.file	"199509.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"w"
.LC1:
	.string	"grade.txt"
.LC2:
	.string	"Error opening file: %s\n"
	.align 8
.LC3:
	.string	"How many students do you want to list: "
.LC4:
	.string	"%d"
.LC5:
	.string	"\n%d)\nName of the student?: "
.LC6:
	.string	"%s"
.LC7:
	.string	"Surname of the student?: "
.LC8:
	.string	"%d. Grade: "
.LC9:
	.string	"%lf"
.LC10:
	.string	"%d %s %s %.1lf %.1lf %.1lf\n"
	.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
	add	rsp, -128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -104[rbp], rax
	cmp	QWORD PTR -104[rbp], 0
	jne	.L2
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -116[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -112[rbp], 1
.L7:
	mov	eax, DWORD PTR -112[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -112[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -108[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -108[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -108[rbp], 1
.L3:
	cmp	DWORD PTR -108[rbp], 2
	jle	.L4
	movsd	xmm1, QWORD PTR -80[rbp]
	movsd	xmm0, QWORD PTR -88[rbp]
	mov	rsi, QWORD PTR -96[rbp]
	lea	rdi, -32[rbp]
	lea	rcx, -64[rbp]
	mov	edx, DWORD PTR -112[rbp]
	mov	rax, QWORD PTR -104[rbp]
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rsi
	mov	r8, rdi
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 3
	call	fprintf@PLT
	mov	eax, DWORD PTR -116[rbp]
	cmp	DWORD PTR -112[rbp], eax
	je	.L11
	add	DWORD PTR -112[rbp], 1
	jmp	.L7
.L11:
	nop
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	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	"199509.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"w\000"
	.align	2
.LC1:
	.ascii	"grade.txt\000"
	.align	2
.LC2:
	.ascii	"Error opening file: %s\012\000"
	.align	2
.LC3:
	.ascii	"How many students do you want to list: \000"
	.align	2
.LC4:
	.ascii	"%d\000"
	.align	2
.LC5:
	.ascii	"\012%d)\012Name of the student?: \000"
	.align	2
.LC6:
	.ascii	"%s\000"
	.align	2
.LC7:
	.ascii	"Surname of the student?: \000"
	.align	2
.LC8:
	.ascii	"%d. Grade: \000"
	.align	2
.LC9:
	.ascii	"%lf\000"
	.align	2
.LC10:
	.ascii	"%d %s %s %.1lf %.1lf %.1lf\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #120
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r1, .L12+4
	ldr	r0, .L12+8
	bl	fopen
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L12+12
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L12+16
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L2:
	ldr	r0, .L12+20
	bl	printf
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, .L12+24
	bl	__isoc99_scanf
	mov	r3, #1
	str	r3, [fp, #-96]
.L7:
	ldr	r1, [fp, #-96]
	ldr	r0, .L12+28
	bl	printf
	sub	r3, fp, #56
	mov	r1, r3
	ldr	r0, .L12+32
	bl	__isoc99_scanf
	ldr	r1, [fp, #-96]
	ldr	r0, .L12+36
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L12+32
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L3
.L4:
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L12+40
	bl	printf
	sub	r2, fp, #84
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L12+44
	bl	__isoc99_scanf
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L3:
	ldr	r3, [fp, #-92]
	cmp	r3, #2
	ble	.L4
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	sub	r5, fp, #68
	ldmia	r5, {r4-r5}
	sub	ip, fp, #56
	str	r4, [sp, #24]
	str	r5, [sp, #28]
	str	r0, [sp, #16]
	str	r1, [sp, #20]
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	sub	r3, fp, #36
	str	r3, [sp]
	mov	r3, ip
	ldr	r2, [fp, #-96]
	ldr	r1, .L12+48
	ldr	r0, [fp, #-88]
	bl	fprintf
	ldr	r3, [fp, #-100]
	ldr	r2, [fp, #-96]
	cmp	r2, r3
	beq	.L11
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
	b	.L7
.L11:
	nop
	ldr	r0, [fp, #-88]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC11
	.word	.LC0
	.word	.LC1
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.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
