	.file	"644391.c"
	.intel_syntax noprefix
	.text
	.globl	buff
	.bss
	.align 32
	.type	buff, @object
	.size	buff, 1024
buff:
	.zero	1024
	.globl	bp
	.align 4
	.type	bp, @object
	.size	bp, 4
bp:
	.zero	4
	.text
	.globl	getch
	.type	getch, @function
getch:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR bp[rip]
	test	eax, eax
	jle	.L2
	mov	eax, DWORD PTR bp[rip]
	sub	eax, 1
	mov	DWORD PTR bp[rip], eax
	mov	eax, DWORD PTR bp[rip]
	cdqe
	lea	rdx, buff[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	jmp	.L3
.L2:
	call	getchar@PLT
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	getch, .-getch
	.section	.rodata
.LC0:
	.string	"error: ungetch buffer full"
	.text
	.globl	ungetch
	.type	ungetch, @function
ungetch:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR bp[rip]
	cmp	eax, 1023
	jle	.L5
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L7
.L5:
	mov	eax, DWORD PTR bp[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR bp[rip], edx
	mov	edx, DWORD PTR -4[rbp]
	mov	ecx, edx
	cdqe
	lea	rdx, buff[rip]
	mov	BYTE PTR [rax+rdx], cl
.L7:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	ungetch, .-ungetch
	.globl	getfloat
	.type	getfloat, @function
getfloat:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	nop
.L9:
	call	__ctype_b_loc@PLT
	mov	rbx, QWORD PTR [rax]
	mov	eax, 0
	call	getch
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, rax
	add	rax, rbx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8192
	test	eax, eax
	jne	.L9
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L10
	cmp	DWORD PTR -28[rbp], -1
	je	.L10
	cmp	DWORD PTR -28[rbp], 43
	je	.L10
	cmp	DWORD PTR -28[rbp], 45
	je	.L10
	cmp	DWORD PTR -28[rbp], 46
	je	.L10
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	ungetch
	mov	eax, 0
	jmp	.L11
.L10:
	cmp	DWORD PTR -28[rbp], 45
	jne	.L12
	mov	eax, -1
	jmp	.L13
.L12:
	mov	eax, 1
.L13:
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -28[rbp], 43
	je	.L14
	cmp	DWORD PTR -28[rbp], 45
	jne	.L15
.L14:
	mov	eax, 0
	call	getch
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 46
	je	.L15
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L15
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	ungetch
	mov	edi, 43
	call	ungetch
	mov	eax, 0
	jmp	.L11
.L15:
	mov	rax, QWORD PTR -40[rbp]
	pxor	xmm0, xmm0
	movss	DWORD PTR [rax], xmm0
	jmp	.L16
.L17:
	mov	rax, QWORD PTR -40[rbp]
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC2[rip]
	mulsd	xmm1, xmm0
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 48
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	cvtss2sd	xmm0, xmm0
	addsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	mov	rax, QWORD PTR -40[rbp]
	movss	DWORD PTR [rax], xmm0
	mov	eax, 0
	call	getch
	mov	DWORD PTR -28[rbp], eax
.L16:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L17
	movss	xmm0, DWORD PTR .LC3[rip]
	movss	DWORD PTR -24[rbp], xmm0
	cmp	DWORD PTR -28[rbp], 46
	jne	.L18
	mov	eax, 0
	call	getch
	mov	DWORD PTR -28[rbp], eax
	jmp	.L19
.L20:
	mov	rax, QWORD PTR -40[rbp]
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC2[rip]
	mulsd	xmm1, xmm0
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 48
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	cvtss2sd	xmm0, xmm0
	addsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	mov	rax, QWORD PTR -40[rbp]
	movss	DWORD PTR [rax], xmm0
	movss	xmm1, DWORD PTR -24[rbp]
	movss	xmm0, DWORD PTR .LC4[rip]
	mulss	xmm0, xmm1
	movss	DWORD PTR -24[rbp], xmm0
	mov	eax, 0
	call	getch
	mov	DWORD PTR -28[rbp], eax
.L19:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L20
.L18:
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -40[rbp]
	movss	xmm0, DWORD PTR [rax]
	mulss	xmm0, xmm1
	divss	xmm0, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	movss	DWORD PTR [rax], xmm0
	cmp	DWORD PTR -28[rbp], -1
	je	.L21
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	ungetch
.L21:
	mov	eax, DWORD PTR -28[rbp]
.L11:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	getfloat, .-getfloat
	.section	.rodata
.LC5:
	.string	"float: %.3g\n"
.LC6:
	.string	"nan"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -12[rbp]
	mov	rdi, rax
	call	getfloat
	test	eax, eax
	je	.L23
	movss	xmm0, DWORD PTR -12[rbp]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L24
.L23:
	lea	rdi, .LC6[rip]
	call	puts@PLT
.L24:
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1076101120
	.align 4
.LC3:
	.long	1065353216
	.align 4
.LC4:
	.long	1092616192
	.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	"644391.c"
	.text
	.comm	buff,1024,4
	.global	bp
	.bss
	.align	2
	.type	bp, %object
	.size	bp, 4
bp:
	.space	4
	.text
	.align	2
	.global	getch
	.syntax unified
	.arm
	.fpu softvfp
	.type	getch, %function
getch:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L4
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L2
	ldr	r3, .L4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L4
	str	r3, [r2]
	ldr	r3, .L4
	ldr	r3, [r3]
	ldr	r2, .L4+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	b	.L3
.L2:
	bl	getchar
	mov	r3, r0
.L3:
	mov	r0, r3
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	bp
	.word	buff
	.size	getch, .-getch
	.section	.rodata
	.align	2
.LC0:
	.ascii	"error: ungetch buffer full\000"
	.text
	.align	2
	.global	ungetch
	.syntax unified
	.arm
	.fpu softvfp
	.type	ungetch, %function
ungetch:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L10
	ldr	r3, [r3]
	cmp	r3, #1024
	blt	.L7
	ldr	r0, .L10+4
	bl	puts
	b	.L9
.L7:
	ldr	r3, .L10
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L10
	str	r2, [r1]
	ldr	r2, [fp, #-8]
	and	r1, r2, #255
	ldr	r2, .L10+8
	strb	r1, [r2, r3]
.L9:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	bp
	.word	.LC0
	.word	buff
	.size	ungetch, .-ungetch
	.global	__aeabi_f2d
	.global	__aeabi_dmul
	.global	__aeabi_i2f
	.global	__aeabi_dadd
	.global	__aeabi_d2f
	.global	__aeabi_fmul
	.global	__aeabi_fdiv
	.align	2
	.global	getfloat
	.syntax unified
	.arm
	.fpu softvfp
	.type	getfloat, %function
getfloat:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-32]
	nop
.L13:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r4, [r3]
	bl	getch
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	add	r3, r4, r3
	ldrh	r3, [r3]
	and	r3, r3, #8192
	cmp	r3, #0
	bne	.L13
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	beq	.L14
	ldr	r3, [fp, #-24]
	cmp	r3, #43
	beq	.L14
	ldr	r3, [fp, #-24]
	cmp	r3, #45
	beq	.L14
	ldr	r3, [fp, #-24]
	cmp	r3, #46
	beq	.L14
	ldr	r0, [fp, #-24]
	bl	ungetch
	mov	r3, #0
	b	.L15
.L14:
	ldr	r3, [fp, #-24]
	cmp	r3, #45
	bne	.L16
	mvn	r3, #0
	b	.L17
.L16:
	mov	r3, #1
.L17:
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r3, #43
	beq	.L18
	ldr	r3, [fp, #-24]
	cmp	r3, #45
	bne	.L19
.L18:
	bl	getch
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #46
	beq	.L19
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L19
	ldr	r0, [fp, #-24]
	bl	ungetch
	mov	r0, #43
	bl	ungetch
	mov	r3, #0
	b	.L15
.L19:
	ldr	r3, [fp, #-32]
	mov	r2, #0
	str	r2, [r3]	@ float
	b	.L20
.L21:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, #0
	ldr	r3, .L26
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-24]
	sub	r3, r3, #48
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r2, r0
	ldr	r3, [fp, #-32]
	str	r2, [r3]	@ float
	bl	getch
	str	r0, [fp, #-24]
.L20:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L21
	mov	r3, #1065353216
	str	r3, [fp, #-20]	@ float
	ldr	r3, [fp, #-24]
	cmp	r3, #46
	bne	.L22
	bl	getch
	str	r0, [fp, #-24]
	b	.L23
.L24:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, #0
	ldr	r3, .L26
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-24]
	sub	r3, r3, #48
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r2, r0
	ldr	r3, [fp, #-32]
	str	r2, [r3]	@ float
	ldr	r1, .L26+4
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [fp, #-20]	@ float
	bl	getch
	str	r0, [fp, #-24]
.L23:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L24
.L22:
	ldr	r0, [fp, #-16]
	bl	__aeabi_i2f
	mov	r2, r0
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_fmul
	mov	r3, r0
	ldr	r1, [fp, #-20]	@ float
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-32]
	str	r2, [r3]	@ float
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	beq	.L25
	ldr	r0, [fp, #-24]
	bl	ungetch
.L25:
	ldr	r3, [fp, #-24]
.L15:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L27:
	.align	2
.L26:
	.word	1076101120
	.word	1092616192
	.size	getfloat, .-getfloat
	.section	.rodata
	.align	2
.LC1:
	.ascii	"float: %.3g\012\000"
	.align	2
.LC2:
	.ascii	"nan\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #12
	mov	r0, r3
	bl	getfloat
	mov	r3, r0
	cmp	r3, #0
	beq	.L29
	ldr	r3, [fp, #-12]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L33+4
	bl	printf
	b	.L30
.L29:
	ldr	r0, .L33+8
	bl	puts
.L30:
	mov	r3, #0
	ldr	r2, .L33
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L32
	bl	__stack_chk_fail
.L32:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
