	.file	"1217545.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r+"
.LC1:
	.string	"arquivo.txt"
	.align 8
.LC3:
	.string	"Quantos alunos deseja adicionar? "
.LC4:
	.string	"%d"
.LC5:
	.string	"Nome: "
.LC6:
	.string	"Nome: %s\n"
.LC7:
	.string	"Nota: "
.LC8:
	.string	"%f"
.LC9:
	.string	"Nota: %.2f\n\n"
	.align 8
.LC10:
	.string	"Maior nota: \nAluno: %s\nNota: %.2f\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
	sub	rsp, 160
	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 -136[rbp], rax
	pxor	xmm0, xmm0
	movss	DWORD PTR -144[rbp], xmm0
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -148[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -140[rbp], 0
	jmp	.L2
.L5:
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rax, -128[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	lea	rdx, -128[rbp]
	mov	rax, QWORD PTR -136[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -128[rbp]
	add	rax, 52
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movss	xmm0, DWORD PTR -76[rbp]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rdx, xmm1
	mov	rax, QWORD PTR -136[rbp]
	movq	xmm0, rdx
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	mov	edi, 10
	call	putchar@PLT
	movss	xmm0, DWORD PTR -76[rbp]
	comiss	xmm0, DWORD PTR -144[rbp]
	jbe	.L3
	movss	xmm0, DWORD PTR -76[rbp]
	movss	DWORD PTR -144[rbp], xmm0
	lea	rdx, -128[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L3:
	add	DWORD PTR -140[rbp], 1
.L2:
	mov	eax, DWORD PTR -148[rbp]
	cmp	DWORD PTR -140[rbp], eax
	jl	.L5
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -144[rbp]
	movq	rdx, xmm2
	lea	rax, -64[rbp]
	movq	xmm0, rdx
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	call	getch@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	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	"1217545.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r+\000"
	.align	2
.LC1:
	.ascii	"arquivo.txt\000"
	.align	2
.LC2:
	.ascii	"Quantos alunos deseja adicionar? \000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.ascii	"Nome: \000"
	.align	2
.LC5:
	.ascii	"Nome: %s\012\000"
	.align	2
.LC6:
	.ascii	"Nota: \000"
	.align	2
.LC7:
	.ascii	"%f\000"
	.global	__aeabi_f2d
	.align	2
.LC8:
	.ascii	"Nota: %.2f\012\012\000"
	.global	__aeabi_fcmplt
	.align	2
.LC9:
	.ascii	"Maior nota: \012Aluno: %s\012Nota: %.2f\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L9+4
	ldr	r0, .L9+8
	bl	fopen
	str	r0, [fp, #-120]
	mov	r3, #0
	str	r3, [fp, #-128]	@ float
	ldr	r0, .L9+12
	bl	printf
	sub	r3, fp, #132
	mov	r1, r3
	ldr	r0, .L9+16
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-124]
	b	.L2
.L5:
	ldr	r0, .L9+20
	bl	printf
	ldr	r3, .L9+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #116
	mov	r0, r3
	bl	gets
	sub	r3, fp, #116
	mov	r2, r3
	ldr	r1, .L9+28
	ldr	r0, [fp, #-120]
	bl	fprintf
	ldr	r0, .L9+32
	bl	printf
	sub	r3, fp, #116
	add	r3, r3, #52
	mov	r1, r3
	ldr	r0, .L9+36
	bl	__isoc99_scanf
	ldr	r3, [fp, #-64]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L9+40
	ldr	r0, [fp, #-120]
	bl	fprintf
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-64]	@ float
	mov	r1, r3
	ldr	r0, [fp, #-128]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-64]	@ float
	str	r3, [fp, #-128]	@ float
	sub	r2, fp, #116
	sub	r3, fp, #60
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
.L3:
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
.L2:
	ldr	r3, [fp, #-132]
	ldr	r2, [fp, #-124]
	cmp	r2, r3
	blt	.L5
	ldr	r0, [fp, #-128]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #60
	ldr	r0, .L9+44
	bl	printf
	bl	getch
	mov	r3, #0
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	stdin
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
