	.file	"57996.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%g\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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L2
.L4:
	mov	rax, QWORD PTR -16[rbp]
	movq	xmm0, rax
	lea	rdi, .LC0[rip]
	mov	eax, 1
	call	printf@PLT
.L2:
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	getfloat
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	je	.L5
	cmp	DWORD PTR -20[rbp], 0
	jne	.L4
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	putchar@PLT
.L5:
	call	getch
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	jne	.L6
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	getfloat
	.type	getfloat, @function
getfloat:
.LFB1:
	.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
.L10:
	call	__ctype_b_loc@PLT
	mov	rbx, QWORD PTR [rax]
	call	getch
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	add	rax, rax
	add	rax, rbx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8192
	test	eax, eax
	jne	.L10
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L11
	cmp	DWORD PTR -32[rbp], -1
	je	.L11
	cmp	DWORD PTR -32[rbp], 43
	je	.L11
	cmp	DWORD PTR -32[rbp], 45
	je	.L11
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	ungetch
	mov	eax, 0
	jmp	.L12
.L11:
	cmp	DWORD PTR -32[rbp], 45
	jne	.L13
	mov	eax, -1
	jmp	.L14
.L13:
	mov	eax, 1
.L14:
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -32[rbp], 43
	je	.L15
	cmp	DWORD PTR -32[rbp], 45
	jne	.L16
.L15:
	call	getch
	mov	DWORD PTR -32[rbp], eax
.L16:
	mov	rax, QWORD PTR -40[rbp]
	pxor	xmm0, xmm0
	movsd	QWORD PTR [rax], xmm0
	jmp	.L17
.L18:
	mov	rax, QWORD PTR -40[rbp]
	movsd	xmm1, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR .LC2[rip]
	mulsd	xmm1, xmm0
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, 48
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	addsd	xmm0, xmm1
	mov	rax, QWORD PTR -40[rbp]
	movsd	QWORD PTR [rax], xmm0
	call	getch
	mov	DWORD PTR -32[rbp], eax
.L17:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L18
	cmp	DWORD PTR -32[rbp], 46
	jne	.L19
	call	getch
	mov	DWORD PTR -32[rbp], eax
.L19:
	movsd	xmm0, QWORD PTR .LC3[rip]
	movsd	QWORD PTR -24[rbp], xmm0
	jmp	.L20
.L21:
	mov	rax, QWORD PTR -40[rbp]
	movsd	xmm1, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR .LC2[rip]
	mulsd	xmm1, xmm0
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, 48
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	addsd	xmm0, xmm1
	mov	rax, QWORD PTR -40[rbp]
	movsd	QWORD PTR [rax], xmm0
	movsd	xmm1, QWORD PTR -24[rbp]
	movsd	xmm0, QWORD PTR .LC2[rip]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -24[rbp], xmm0
	call	getch
	mov	DWORD PTR -32[rbp], eax
.L20:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L21
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -40[rbp]
	movsd	xmm0, QWORD PTR [rax]
	mulsd	xmm0, xmm1
	divsd	xmm0, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	movsd	QWORD PTR [rax], xmm0
	cmp	DWORD PTR -32[rbp], -1
	je	.L22
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	ungetch
.L22:
	mov	eax, DWORD PTR -32[rbp]
.L12:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	getfloat, .-getfloat
	.globl	buf
	.bss
	.align 32
	.type	buf, @object
	.size	buf, 400
buf:
	.zero	400
	.globl	bufp
	.align 4
	.type	bufp, @object
	.size	bufp, 4
bufp:
	.zero	4
	.text
	.globl	getch
	.type	getch, @function
getch:
.LFB2:
	.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 bufp[rip]
	test	eax, eax
	jle	.L24
	mov	eax, DWORD PTR bufp[rip]
	sub	eax, 1
	mov	DWORD PTR bufp[rip], eax
	mov	eax, DWORD PTR bufp[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, buf[rip]
	mov	eax, DWORD PTR [rdx+rax]
	jmp	.L26
.L24:
	call	getchar@PLT
.L26:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	getch, .-getch
	.section	.rodata
.LC4:
	.string	"ungetch: too many characters"
	.text
	.globl	ungetch
	.type	ungetch, @function
ungetch:
.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	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR bufp[rip]
	cmp	eax, 99
	jle	.L28
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L30
.L28:
	mov	eax, DWORD PTR bufp[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR bufp[rip], edx
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, buf[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
.L30:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	ungetch, .-ungetch
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1076101120
	.align 8
.LC3:
	.long	0
	.long	1072693248
	.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	"57996.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%g\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L2
.L4:
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r0, .L9+4
	bl	printf
.L2:
	sub	r3, fp, #20
	mov	r0, r3
	bl	getfloat
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	beq	.L5
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L4
	b	.L5
.L6:
	ldr	r0, [fp, #-24]
	bl	putchar
.L5:
	bl	getch
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L6
	mov	r3, #0
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC1
	.word	.LC0
	.size	main, .-main
	.global	__aeabi_dmul
	.global	__aeabi_i2d
	.global	__aeabi_dadd
	.global	__aeabi_ddiv
	.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
.L12:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r4, [r3]
	bl	getch
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #1
	add	r3, r4, r3
	ldrh	r3, [r3]
	and	r3, r3, #8192
	cmp	r3, #0
	bne	.L12
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	beq	.L13
	ldr	r3, [fp, #-28]
	cmp	r3, #43
	beq	.L13
	ldr	r3, [fp, #-28]
	cmp	r3, #45
	beq	.L13
	ldr	r0, [fp, #-28]
	bl	ungetch
	mov	r3, #0
	b	.L14
.L13:
	ldr	r3, [fp, #-28]
	cmp	r3, #45
	bne	.L15
	mvn	r3, #0
	b	.L16
.L15:
	mov	r3, #1
.L16:
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	cmp	r3, #43
	beq	.L17
	ldr	r3, [fp, #-28]
	cmp	r3, #45
	bne	.L18
.L17:
	bl	getch
	str	r0, [fp, #-28]
.L18:
	ldr	r1, [fp, #-32]
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	b	.L19
.L20:
	ldr	r3, [fp, #-32]
	ldmia	r3, {r0-r1}
	mov	r2, #0
	ldr	r3, .L25
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-28]
	sub	r3, r3, #48
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-32]
	stm	r1, {r2-r3}
	bl	getch
	str	r0, [fp, #-28]
.L19:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L20
	ldr	r3, [fp, #-28]
	cmp	r3, #46
	bne	.L21
	bl	getch
	str	r0, [fp, #-28]
.L21:
	mov	r2, #0
	ldr	r3, .L25+4
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	b	.L22
.L23:
	ldr	r3, [fp, #-32]
	ldmia	r3, {r0-r1}
	mov	r2, #0
	ldr	r3, .L25
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-28]
	sub	r3, r3, #48
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-32]
	stm	r1, {r2-r3}
	mov	r2, #0
	ldr	r3, .L25
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	bl	getch
	str	r0, [fp, #-28]
.L22:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L23
	ldr	r0, [fp, #-24]
	bl	__aeabi_i2d
	ldr	r3, [fp, #-32]
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-32]
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	beq	.L24
	ldr	r0, [fp, #-28]
	bl	ungetch
.L24:
	ldr	r3, [fp, #-28]
.L14:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L26:
	.align	2
.L25:
	.word	1076101120
	.word	1072693248
	.size	getfloat, .-getfloat
	.comm	buf,400,4
	.global	bufp
	.bss
	.align	2
	.type	bufp, %object
	.size	bufp, 4
bufp:
	.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, .L31
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L28
	ldr	r3, .L31
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L31
	str	r3, [r2]
	ldr	r3, .L31
	ldr	r3, [r3]
	ldr	r2, .L31+4
	ldr	r3, [r2, r3, lsl #2]
	b	.L30
.L28:
	bl	getchar
	mov	r3, r0
.L30:
	mov	r0, r3
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	bufp
	.word	buf
	.size	getch, .-getch
	.section	.rodata
	.align	2
.LC2:
	.ascii	"ungetch: too many characters\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, .L37
	ldr	r3, [r3]
	cmp	r3, #99
	ble	.L34
	ldr	r0, .L37+4
	bl	printf
	b	.L36
.L34:
	ldr	r3, .L37
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L37
	str	r2, [r1]
	ldr	r1, .L37+8
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
.L36:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	bufp
	.word	.LC2
	.word	buf
	.size	ungetch, .-ungetch
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
