	.file	"1659.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Text: "
.LC1:
	.string	"%[^\n]%*c"
.LC6:
	.string	"Before Grade 1"
.LC7:
	.string	"Grade 16+"
.LC8:
	.string	"Grade %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, 1088
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -1040[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -1060[rbp], eax
	mov	DWORD PTR -1076[rbp], 0
	mov	DWORD PTR -1072[rbp], 1
	mov	DWORD PTR -1068[rbp], 0
	mov	DWORD PTR -1064[rbp], 0
	jmp	.L2
.L7:
	mov	eax, DWORD PTR -1064[rbp]
	cdqe
	movzx	eax, BYTE PTR -1040[rbp+rax]
	cmp	al, 46
	je	.L3
	mov	eax, DWORD PTR -1064[rbp]
	cdqe
	movzx	eax, BYTE PTR -1040[rbp+rax]
	cmp	al, 33
	je	.L3
	mov	eax, DWORD PTR -1064[rbp]
	cdqe
	movzx	eax, BYTE PTR -1040[rbp+rax]
	cmp	al, 63
	jne	.L4
.L3:
	add	DWORD PTR -1076[rbp], 1
.L4:
	mov	eax, DWORD PTR -1064[rbp]
	cdqe
	movzx	eax, BYTE PTR -1040[rbp+rax]
	cmp	al, 32
	jne	.L5
	add	DWORD PTR -1072[rbp], 1
.L5:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -1064[rbp]
	cdqe
	movzx	eax, BYTE PTR -1040[rbp+rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 1024
	test	eax, eax
	je	.L6
	add	DWORD PTR -1068[rbp], 1
.L6:
	add	DWORD PTR -1064[rbp], 1
.L2:
	mov	eax, DWORD PTR -1064[rbp]
	cmp	eax, DWORD PTR -1060[rbp]
	jl	.L7
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -1068[rbp]
	pxor	xmm2, xmm2
	cvtsi2ss	xmm2, DWORD PTR -1072[rbp]
	movaps	xmm1, xmm0
	divss	xmm1, xmm2
	movss	xmm0, DWORD PTR .LC2[rip]
	mulss	xmm0, xmm1
	movss	DWORD PTR -1056[rbp], xmm0
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -1076[rbp]
	pxor	xmm2, xmm2
	cvtsi2ss	xmm2, DWORD PTR -1072[rbp]
	movaps	xmm1, xmm0
	divss	xmm1, xmm2
	movss	xmm0, DWORD PTR .LC2[rip]
	mulss	xmm0, xmm1
	movss	DWORD PTR -1052[rbp], xmm0
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, DWORD PTR -1056[rbp]
	movsd	xmm0, QWORD PTR .LC3[rip]
	mulsd	xmm0, xmm1
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -1052[rbp]
	movsd	xmm1, QWORD PTR .LC4[rip]
	mulsd	xmm1, xmm2
	subsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC5[rip]
	subsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -1048[rbp], xmm0
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, DWORD PTR -1048[rbp]
	movq	rax, xmm3
	movq	xmm0, rax
	call	round@PLT
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -1044[rbp], eax
	cmp	DWORD PTR -1044[rbp], 0
	jle	.L8
	cmp	DWORD PTR -1044[rbp], 16
	jle	.L9
.L8:
	cmp	DWORD PTR -1044[rbp], 0
	jg	.L10
	lea	rdi, .LC6[rip]
	call	puts@PLT
.L10:
	cmp	DWORD PTR -1044[rbp], 16
	jle	.L12
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L12
.L9:
	mov	eax, DWORD PTR -1044[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L12:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC2:
	.long	1120403456
	.align 8
.LC3:
	.long	-1711114971
	.long	1068374792
	.align 8
.LC4:
	.long	-68719477
	.long	1070789033
	.align 8
.LC5:
	.long	-1717986918
	.long	1076861337
	.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	"1659.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Text: \000"
	.align	2
.LC1:
	.ascii	"%[^\012]%*c\000"
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.global	__aeabi_fmul
	.global	__aeabi_f2d
	.global	__aeabi_dmul
	.global	__aeabi_dsub
	.global	__aeabi_d2f
	.global	__aeabi_d2iz
	.align	2
.LC2:
	.ascii	"Before Grade 1\000"
	.align	2
.LC3:
	.ascii	"Grade 16+\000"
	.align	2
.LC4:
	.ascii	"Grade %d\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1064
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #1056
	sub	sp, sp, #8
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, .L15+4
	bl	printf
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L15+8
	bl	__isoc99_scanf
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-1060]
	mov	r3, #0
	str	r3, [fp, #-1076]
	mov	r3, #1
	str	r3, [fp, #-1072]
	mov	r3, #0
	str	r3, [fp, #-1068]
	mov	r3, #0
	str	r3, [fp, #-1064]
	b	.L2
.L7:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-1064]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	beq	.L3
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-1064]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #33
	beq	.L3
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-1064]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #63
	bne	.L4
.L3:
	ldr	r3, [fp, #-1076]
	add	r3, r3, #1
	str	r3, [fp, #-1076]
.L4:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-1064]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L5
	ldr	r3, [fp, #-1072]
	add	r3, r3, #1
	str	r3, [fp, #-1072]
.L5:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [fp, #-1064]
	add	r3, r3, r1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #1024
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-1068]
	add	r3, r3, #1
	str	r3, [fp, #-1068]
.L6:
	ldr	r3, [fp, #-1064]
	add	r3, r3, #1
	str	r3, [fp, #-1064]
.L2:
	ldr	r2, [fp, #-1064]
	ldr	r3, [fp, #-1060]
	cmp	r2, r3
	blt	.L7
	ldr	r0, [fp, #-1068]
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r0, [fp, #-1072]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	ldr	r1, .L15+12
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [fp, #-1056]	@ float
	ldr	r0, [fp, #-1076]
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r0, [fp, #-1072]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	ldr	r1, .L15+12
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [fp, #-1052]	@ float
	ldr	r0, [fp, #-1056]	@ float
	bl	__aeabi_f2d
	ldr	r2, .L15+16
	ldr	r3, .L15+20
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-1052]	@ float
	bl	__aeabi_f2d
	ldr	r2, .L15+24
	ldr	r3, .L15+28
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, .L15+32
	ldr	r3, .L15+36
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-1048]	@ float
	ldr	r0, [fp, #-1048]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	round
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-1044]
	ldr	r3, [fp, #-1044]
	cmp	r3, #0
	ble	.L8
	ldr	r3, [fp, #-1044]
	cmp	r3, #16
	ble	.L9
.L8:
	ldr	r3, [fp, #-1044]
	cmp	r3, #0
	bgt	.L10
	ldr	r0, .L15+40
	bl	puts
.L10:
	ldr	r3, [fp, #-1044]
	cmp	r3, #16
	ble	.L12
	ldr	r0, .L15+44
	bl	puts
	b	.L12
.L9:
	ldr	r1, [fp, #-1044]
	ldr	r0, .L15+48
	bl	printf
.L12:
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	1120403456
	.word	-1711114971
	.word	1068374792
	.word	-68719477
	.word	1070789033
	.word	-1717986918
	.word	1076861337
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
