	.file	"224862.c"
	.intel_syntax noprefix
	.text
	.globl	buffer
	.bss
	.align 32
	.type	buffer, @object
	.size	buffer, 800
buffer:
	.zero	800
	.globl	bufp
	.align 4
	.type	bufp, @object
	.size	bufp, 4
bufp:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%c\n"
.LC1:
	.string	"op not recognized"
.LC2:
	.string	"%.8g\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, 48
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	jmp	.L2
.L8:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -9[rbp], al
	movsx	eax, BYTE PTR -9[rbp]
	sub	eax, 48
	cmp	eax, 9
	ja	.L3
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	movq	xmm0, rax
	call	push
	jmp	.L2
.L3:
	movsx	eax, BYTE PTR -9[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	movsx	eax, BYTE PTR -9[rbp]
	cmp	eax, 47
	je	.L4
	cmp	eax, 47
	jg	.L5
	cmp	eax, 45
	je	.L6
	cmp	eax, 45
	jg	.L5
	cmp	eax, 42
	je	.L7
	cmp	eax, 43
	jne	.L5
	call	pop
	movsd	QWORD PTR -40[rbp], xmm0
	call	pop
	movapd	xmm1, xmm0
	addsd	xmm1, QWORD PTR -40[rbp]
	movq	rax, xmm1
	movq	xmm0, rax
	call	push
	jmp	.L2
.L7:
	call	pop
	movsd	QWORD PTR -40[rbp], xmm0
	call	pop
	movapd	xmm2, xmm0
	mulsd	xmm2, QWORD PTR -40[rbp]
	movq	rax, xmm2
	movq	xmm0, rax
	call	push
	jmp	.L2
.L4:
	call	pop
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	call	pop
	movq	rax, xmm0
	movq	xmm3, rax
	divsd	xmm3, QWORD PTR -8[rbp]
	movq	rax, xmm3
	movq	xmm0, rax
	call	push
	jmp	.L2
.L6:
	call	pop
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	call	pop
	movq	rax, xmm0
	movq	xmm4, rax
	subsd	xmm4, QWORD PTR -8[rbp]
	movq	rax, xmm4
	movq	xmm0, rax
	call	push
	jmp	.L2
.L5:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	nop
.L2:
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -20[rbp], edx
	cmp	eax, 1
	jg	.L8
	call	pop
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC2[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC3:
	.string	"Buffer empty"
	.text
	.globl	pop
	.type	pop, @function
pop:
.LFB7:
	.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
	jne	.L11
	lea	rdi, .LC3[rip]
	call	puts@PLT
	movsd	xmm0, QWORD PTR .LC4[rip]
	jmp	.L12
.L11:
	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*8]
	lea	rax, buffer[rip]
	movsd	xmm0, QWORD PTR [rdx+rax]
.L12:
	movq	rax, xmm0
	movq	xmm0, rax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	pop, .-pop
	.section	.rodata
.LC5:
	.string	"Buffer full"
	.text
	.globl	push
	.type	push, @function
push:
.LFB8:
	.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
	movsd	QWORD PTR -8[rbp], xmm0
	mov	eax, DWORD PTR bufp[rip]
	cmp	eax, 100
	jne	.L14
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L16
.L14:
	mov	eax, DWORD PTR bufp[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR bufp[rip], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, buffer[rip]
	movsd	xmm0, QWORD PTR -8[rbp]
	movsd	QWORD PTR [rdx+rax], xmm0
.L16:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	push, .-push
	.section	.rodata
	.align 8
.LC4:
	.long	0
	.long	-1074790400
	.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	"224862.c"
	.text
	.comm	buffer,800,8
	.global	bufp
	.bss
	.align	2
	.type	bufp, %object
	.size	bufp, 4
bufp:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%c\012\000"
	.global	__aeabi_dadd
	.global	__aeabi_dmul
	.global	__aeabi_ddiv
	.global	__aeabi_dsub
	.align	2
.LC1:
	.ascii	"op not recognized\000"
	.align	2
.LC2:
	.ascii	"%.8g\012\000"
	.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	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	b	.L2
.L10:
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldrb	r3, [r3]
	strb	r3, [fp, #-21]
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	sub	r3, r3, #48
	cmp	r3, #9
	bhi	.L3
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	push
	b	.L2
.L3:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L12
	bl	printf
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	sub	r3, r3, #42
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L4
.L6:
	.word	.L9
	.word	.L8
	.word	.L4
	.word	.L7
	.word	.L4
	.word	.L5
.L8:
	bl	pop
	mov	r4, r0
	mov	r5, r1
	bl	pop
	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	push
	b	.L2
.L9:
	bl	pop
	mov	r4, r0
	mov	r5, r1
	bl	pop
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	push
	b	.L2
.L5:
	bl	pop
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	bl	pop
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	push
	b	.L2
.L7:
	bl	pop
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	bl	pop
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	push
	b	.L2
.L4:
	ldr	r0, .L12+4
	bl	puts
	nop
.L2:
	ldr	r3, [fp, #-32]
	sub	r2, r3, #1
	str	r2, [fp, #-32]
	cmp	r3, #1
	bgt	.L10
	bl	pop
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L12+8
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Buffer empty\000"
	.text
	.align	2
	.global	pop
	.syntax unified
	.arm
	.fpu softvfp
	.type	pop, %function
pop:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L17
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L15
	ldr	r0, .L17+4
	bl	puts
	mov	r2, #0
	ldr	r3, .L17+8
	b	.L16
.L15:
	ldr	r3, .L17
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L17
	str	r3, [r2]
	ldr	r3, .L17
	ldr	r3, [r3]
	ldr	r2, .L17+12
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
.L16:
	mov	r0, r2
	mov	r1, r3
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	bufp
	.word	.LC3
	.word	-1074790400
	.word	buffer
	.size	pop, .-pop
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Buffer full\000"
	.text
	.align	2
	.global	push
	.syntax unified
	.arm
	.fpu softvfp
	.type	push, %function
push:
	@ 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, #-12]
	str	r1, [fp, #-8]
	ldr	r3, .L23
	ldr	r3, [r3]
	cmp	r3, #100
	bne	.L20
	ldr	r0, .L23+4
	bl	puts
	b	.L22
.L20:
	ldr	r3, .L23
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L23
	str	r2, [r1]
	ldr	r2, .L23+8
	lsl	r3, r3, #3
	add	r1, r2, r3
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
.L22:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	bufp
	.word	.LC4
	.word	buffer
	.size	push, .-push
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
