	.file	"294158.c"
	.intel_syntax noprefix
	.text
	.globl	op2
	.bss
	.align 8
	.type	op2, @object
	.size	op2, 8
op2:
	.zero	8
	.section	.rodata
.LC1:
	.string	"Error: zero divisor "
.LC2:
	.string	"\t%.8g\n"
.LC3:
	.string	"Error: unknown command"
	.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, 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L2
.L19:
	mov	eax, DWORD PTR -116[rbp]
	sub	eax, 10
	cmp	eax, 39
	ja	.L3
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L5[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L5[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L12-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L11-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L10-.L5
	.long	.L9-.L5
	.long	.L3-.L5
	.long	.L8-.L5
	.long	.L3-.L5
	.long	.L7-.L5
	.long	.L6-.L5
	.long	.L4-.L5
	.text
.L6:
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	movq	xmm0, rax
	call	push
	jmp	.L2
.L4:
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	mathfunc
	movq	rax, xmm0
	movq	xmm0, rax
	call	push
	jmp	.L2
.L9:
	call	pop
	movsd	QWORD PTR -136[rbp], xmm0
	call	pop
	movapd	xmm2, xmm0
	addsd	xmm2, QWORD PTR -136[rbp]
	movq	rax, xmm2
	movq	xmm0, rax
	call	push
	jmp	.L2
.L10:
	call	pop
	movsd	QWORD PTR -136[rbp], xmm0
	call	pop
	movapd	xmm3, xmm0
	mulsd	xmm3, QWORD PTR -136[rbp]
	movq	rax, xmm3
	movq	xmm0, rax
	call	push
	jmp	.L2
.L8:
	call	pop
	movq	rax, xmm0
	mov	QWORD PTR op2[rip], rax
	call	pop
	movq	rax, xmm0
	movsd	xmm0, QWORD PTR op2[rip]
	movq	xmm4, rax
	subsd	xmm4, xmm0
	movq	rax, xmm4
	movq	xmm0, rax
	call	push
	jmp	.L2
.L7:
	call	pop
	movq	rax, xmm0
	mov	QWORD PTR op2[rip], rax
	movsd	xmm0, QWORD PTR op2[rip]
	pxor	xmm1, xmm1
	ucomisd	xmm0, xmm1
	jp	.L22
	pxor	xmm1, xmm1
	comisd	xmm0, xmm1
	je	.L24
.L22:
	call	pop
	movq	rax, xmm0
	movsd	xmm0, QWORD PTR op2[rip]
	movq	xmm5, rax
	divsd	xmm5, xmm0
	movq	rax, xmm5
	movq	xmm0, rax
	call	push
	jmp	.L2
.L24:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L2
.L11:
	call	pop
	movq	rax, xmm0
	mov	QWORD PTR op2[rip], rax
	movsd	xmm0, QWORD PTR op2[rip]
	pxor	xmm1, xmm1
	ucomisd	xmm0, xmm1
	jp	.L23
	pxor	xmm1, xmm1
	comisd	xmm0, xmm1
	je	.L25
.L23:
	movsd	xmm6, QWORD PTR op2[rip]
	movsd	QWORD PTR -136[rbp], xmm6
	call	pop
	movq	rax, xmm0
	movsd	xmm1, QWORD PTR -136[rbp]
	movq	xmm0, rax
	call	fmod@PLT
	movq	rax, xmm0
	movq	xmm0, rax
	call	push
	jmp	.L2
.L25:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L2
.L12:
	call	pop
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC2[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L2
.L3:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	nop
.L2:
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	getop
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], -1
	jne	.L19
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC4:
	.string	"sin"
.LC5:
	.string	"asin"
.LC6:
	.string	"cos"
.LC7:
	.string	"acos"
.LC8:
	.string	"tan"
.LC9:
	.string	"atan"
.LC10:
	.string	"cosh"
.LC11:
	.string	"sinh"
.LC12:
	.string	"tanh"
.LC13:
	.string	"log"
.LC14:
	.string	"sqrt"
.LC15:
	.string	"exp"
.LC16:
	.string	"ceil"
.LC17:
	.string	"floor"
.LC18:
	.string	"abs"
.LC20:
	.string	"pow"
	.align 8
.LC21:
	.string	"Error: function not recognized."
	.text
	.globl	mathfunc
	.type	mathfunc, @function
mathfunc:
.LFB7:
	.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L27
	call	pop
	movq	rax, xmm0
	movq	xmm0, rax
	call	sin@PLT
	movq	rax, xmm0
	jmp	.L28
.L27:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L29
	call	pop
	movq	rax, xmm0
	movq	xmm0, rax
	call	asin@PLT
	movq	rax, xmm0
	jmp	.L28
.L29:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L30
	call	pop
	movq	rax, xmm0
	movq	xmm0, rax
	call	cos@PLT
	movq	rax, xmm0
	jmp	.L28
.L30:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L31
	call	pop
	movq	rax, xmm0
	movq	xmm0, rax
	call	acos@PLT
	movq	rax, xmm0
	jmp	.L28
.L31:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L32
	call	pop
	movq	rax, xmm0
	movq	xmm0, rax
	call	tan@PLT
	movq	rax, xmm0
	jmp	.L28
.L32:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L33
	call	pop
	movq	rax, xmm0
	movq	xmm0, rax
	call	atan@PLT
	movq	rax, xmm0
	jmp	.L28
.L33:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L34
	call	pop
	movq	rax, xmm0
	movq	xmm0, rax
	call	cosh@PLT
	movq	rax, xmm0
	jmp	.L28
.L34:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L35
	call	pop
	movq	rax, xmm0
	movq	xmm0, rax
	call	sinh@PLT
	movq	rax, xmm0
	jmp	.L28
.L35:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L36
	call	pop
	movq	rax, xmm0
	movq	xmm0, rax
	call	tanh@PLT
	movq	rax, xmm0
	jmp	.L28
.L36:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L37
	call	pop
	movq	rax, xmm0
	movq	xmm0, rax
	call	log@PLT
	movq	rax, xmm0
	jmp	.L28
.L37:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L38
	call	pop
	movq	rax, xmm0
	movq	xmm0, rax
	call	sqrt@PLT
	movq	rax, xmm0
	jmp	.L28
.L38:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L39
	call	pop
	movq	rax, xmm0
	movq	xmm0, rax
	call	exp@PLT
	movq	rax, xmm0
	jmp	.L28
.L39:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L40
	call	pop
	movq	rax, xmm0
	movq	xmm0, rax
	call	ceil@PLT
	movq	rax, xmm0
	jmp	.L28
.L40:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L41
	call	pop
	movq	rax, xmm0
	movq	xmm0, rax
	call	floor@PLT
	movq	rax, xmm0
	jmp	.L28
.L41:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L42
	call	pop
	movq	rax, xmm0
	movq	xmm0, QWORD PTR .LC19[rip]
	movq	xmm2, rax
	andpd	xmm2, xmm0
	movq	rax, xmm2
	jmp	.L28
.L42:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L43
	call	pop
	movq	rax, xmm0
	mov	QWORD PTR op2[rip], rax
	movsd	xmm3, QWORD PTR op2[rip]
	movsd	QWORD PTR -16[rbp], xmm3
	call	pop
	movq	rax, xmm0
	movsd	xmm1, QWORD PTR -16[rbp]
	movq	xmm0, rax
	call	pow@PLT
	movq	rax, xmm0
	jmp	.L28
.L43:
	lea	rdi, .LC21[rip]
	call	puts@PLT
	call	clear
	mov	rax, QWORD PTR .LC0[rip]
.L28:
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	mathfunc, .-mathfunc
	.globl	sp
	.bss
	.align 4
	.type	sp, @object
	.size	sp, 4
sp:
	.zero	4
	.globl	val
	.align 32
	.type	val, @object
	.size	val, 800
val:
	.zero	800
	.section	.rodata
	.align 8
.LC22:
	.string	"Error: stack full. Can't push %g\n"
	.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 sp[rip]
	cmp	eax, 99
	jg	.L45
	mov	eax, DWORD PTR sp[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR sp[rip], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, val[rip]
	movsd	xmm0, QWORD PTR -8[rbp]
	movsd	QWORD PTR [rdx+rax], xmm0
	jmp	.L47
.L45:
	mov	rax, QWORD PTR -8[rbp]
	movq	xmm0, rax
	lea	rdi, .LC22[rip]
	mov	eax, 1
	call	printf@PLT
.L47:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	push, .-push
	.section	.rodata
.LC23:
	.string	"Error: stack empty."
	.text
	.globl	pop
	.type	pop, @function
pop:
.LFB9:
	.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 sp[rip]
	test	eax, eax
	jle	.L49
	mov	eax, DWORD PTR sp[rip]
	sub	eax, 1
	mov	DWORD PTR sp[rip], eax
	mov	eax, DWORD PTR sp[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, val[rip]
	movsd	xmm0, QWORD PTR [rdx+rax]
	jmp	.L50
.L49:
	lea	rdi, .LC23[rip]
	call	puts@PLT
	pxor	xmm0, xmm0
.L50:
	movq	rax, xmm0
	movq	xmm0, rax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	pop, .-pop
	.section	.rodata
.LC24:
	.string	"%g\n"
	.text
	.globl	peek
	.type	peek, @function
peek:
.LFB10:
	.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 sp[rip]
	test	eax, eax
	jle	.L52
	mov	eax, DWORD PTR sp[rip]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, val[rip]
	mov	rax, QWORD PTR [rdx+rax]
	movq	xmm0, rax
	lea	rdi, .LC24[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L54
.L52:
	lea	rdi, .LC23[rip]
	call	puts@PLT
.L54:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	peek, .-peek
	.section	.rodata
	.align 8
.LC25:
	.string	"Error: stack full. Can't duplicate %g\n"
.LC26:
	.string	"Error: stack empty.\n"
	.text
	.globl	duplicate
	.type	duplicate, @function
duplicate:
.LFB11:
	.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 sp[rip]
	test	eax, eax
	jle	.L56
	mov	eax, DWORD PTR sp[rip]
	cmp	eax, 99
	jg	.L56
	mov	eax, DWORD PTR sp[rip]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR sp[rip]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, val[rip]
	movsd	xmm0, QWORD PTR [rcx+rdx]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, val[rip]
	movsd	QWORD PTR [rdx+rax], xmm0
	mov	eax, DWORD PTR sp[rip]
	add	eax, 1
	mov	DWORD PTR sp[rip], eax
	jmp	.L59
.L56:
	mov	eax, DWORD PTR sp[rip]
	test	eax, eax
	je	.L58
	mov	eax, DWORD PTR sp[rip]
	sub	eax, 2
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, val[rip]
	mov	rax, QWORD PTR [rdx+rax]
	movq	xmm0, rax
	lea	rdi, .LC25[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L59
.L58:
	lea	rdi, .LC26[rip]
	mov	eax, 0
	call	printf@PLT
.L59:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	duplicate, .-duplicate
	.section	.rodata
	.align 8
.LC27:
	.string	"Error: Need at least 2 values in stack."
	.text
	.globl	swap
	.type	swap, @function
swap:
.LFB12:
	.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	eax, DWORD PTR sp[rip]
	cmp	eax, 1
	jle	.L61
	mov	eax, DWORD PTR sp[rip]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, val[rip]
	movsd	xmm0, QWORD PTR [rdx+rax]
	movsd	QWORD PTR -8[rbp], xmm0
	mov	eax, DWORD PTR sp[rip]
	lea	edx, -2[rax]
	mov	eax, DWORD PTR sp[rip]
	lea	ecx, -1[rax]
	movsx	rax, edx
	lea	rdx, 0[0+rax*8]
	lea	rax, val[rip]
	movsd	xmm0, QWORD PTR [rdx+rax]
	movsx	rax, ecx
	lea	rdx, 0[0+rax*8]
	lea	rax, val[rip]
	movsd	QWORD PTR [rdx+rax], xmm0
	mov	eax, DWORD PTR sp[rip]
	sub	eax, 2
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, val[rip]
	movsd	xmm0, QWORD PTR -8[rbp]
	movsd	QWORD PTR [rdx+rax], xmm0
	jmp	.L63
.L61:
	lea	rdi, .LC27[rip]
	call	puts@PLT
.L63:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	swap, .-swap
	.globl	clear
	.type	clear, @function
clear:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], 0
	jmp	.L65
.L66:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, val[rip]
	pxor	xmm0, xmm0
	movsd	QWORD PTR [rdx+rax], xmm0
	add	DWORD PTR -4[rbp], 1
.L65:
	mov	eax, DWORD PTR sp[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L66
	mov	DWORD PTR sp[rip], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	clear, .-clear
	.globl	getop
	.type	getop, @function
getop:
.LFB14:
	.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
.L68:
	call	getch
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L68
	cmp	DWORD PTR -20[rbp], 9
	je	.L68
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 1
	mov	BYTE PTR [rax], 0
	mov	DWORD PTR -24[rbp], 0
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L69
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 1024
	test	eax, eax
	jne	.L69
	cmp	DWORD PTR -20[rbp], 46
	je	.L69
	cmp	DWORD PTR -20[rbp], 45
	je	.L69
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L70
.L69:
	cmp	DWORD PTR -20[rbp], 45
	jne	.L71
	call	__ctype_b_loc@PLT
	mov	rbx, QWORD PTR [rax]
	call	getch
	mov	DWORD PTR -20[rbp], eax
	add	DWORD PTR -24[rbp], 1
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -20[rbp]
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rbx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L72
	nop
.L73:
	call	__ctype_b_loc@PLT
	mov	rbx, QWORD PTR [rax]
	call	getch
	mov	DWORD PTR -20[rbp], eax
	add	DWORD PTR -24[rbp], 1
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -20[rbp]
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rbx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L73
	jmp	.L71
.L72:
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	ungetch
	mov	eax, 45
	jmp	.L70
.L71:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 1024
	test	eax, eax
	je	.L74
	nop
.L75:
	call	__ctype_b_loc@PLT
	mov	rbx, QWORD PTR [rax]
	call	getch
	mov	DWORD PTR -20[rbp], eax
	add	DWORD PTR -24[rbp], 1
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -20[rbp]
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rbx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 1024
	test	eax, eax
	jne	.L75
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	cmp	DWORD PTR -20[rbp], -1
	je	.L76
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	ungetch
.L76:
	mov	eax, 49
	jmp	.L70
.L74:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L77
	nop
.L78:
	call	__ctype_b_loc@PLT
	mov	rbx, QWORD PTR [rax]
	call	getch
	mov	DWORD PTR -20[rbp], eax
	add	DWORD PTR -24[rbp], 1
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -20[rbp]
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rbx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L78
.L77:
	cmp	DWORD PTR -20[rbp], 46
	jne	.L79
	nop
.L80:
	call	__ctype_b_loc@PLT
	mov	rbx, QWORD PTR [rax]
	call	getch
	mov	DWORD PTR -20[rbp], eax
	add	DWORD PTR -24[rbp], 1
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -20[rbp]
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rbx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L80
.L79:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	cmp	DWORD PTR -20[rbp], -1
	je	.L81
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	ungetch
.L81:
	mov	eax, 48
.L70:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	getop, .-getop
	.globl	buf
	.bss
	.align 32
	.type	buf, @object
	.size	buf, 100
buf:
	.zero	100
	.globl	bufp
	.align 4
	.type	bufp, @object
	.size	bufp, 4
bufp:
	.zero	4
	.text
	.globl	getch
	.type	getch, @function
getch:
.LFB15:
	.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	.L83
	mov	eax, DWORD PTR bufp[rip]
	sub	eax, 1
	mov	DWORD PTR bufp[rip], eax
	mov	eax, DWORD PTR bufp[rip]
	cdqe
	lea	rdx, buf[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	jmp	.L85
.L83:
	call	getchar@PLT
.L85:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	getch, .-getch
	.section	.rodata
.LC28:
	.string	"ungetch: too many characters"
	.text
	.globl	ungetch
	.type	ungetch, @function
ungetch:
.LFB16:
	.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	.L87
	lea	rdi, .LC28[rip]
	call	puts@PLT
	jmp	.L89
.L87:
	mov	eax, DWORD PTR bufp[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR bufp[rip], edx
	mov	edx, DWORD PTR -4[rbp]
	mov	ecx, edx
	cdqe
	lea	rdx, buf[rip]
	mov	BYTE PTR [rax+rdx], cl
.L89:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	ungetch, .-ungetch
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	0
	.align 16
.LC19:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.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	"294158.c"
	.text
	.comm	op2,8,8
	.global	__aeabi_dadd
	.global	__aeabi_dmul
	.global	__aeabi_dsub
	.global	__aeabi_dcmpeq
	.global	__aeabi_ddiv
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Error: zero divisor \000"
	.align	2
.LC1:
	.ascii	"\011%.8g\012\000"
	.align	2
.LC2:
	.ascii	"Error: unknown command\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 = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #112
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	b	.L2
.L19:
	ldr	r3, [fp, #-120]
	sub	r3, r3, #10
	cmp	r3, #39
	ldrls	pc, [pc, r3, asl #2]
	b	.L3
.L5:
	.word	.L12
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L11
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L10
	.word	.L9
	.word	.L3
	.word	.L8
	.word	.L3
	.word	.L7
	.word	.L6
	.word	.L4
.L6:
	sub	r3, fp, #116
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	push
	b	.L2
.L4:
	sub	r3, fp, #116
	mov	r0, r3
	bl	mathfunc
	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_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	push
	b	.L2
.L10:
	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
.L8:
	bl	pop
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L26+4
	stm	r1, {r2-r3}
	bl	pop
	ldr	r3, .L26+4
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	push
	b	.L2
.L7:
	bl	pop
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L26+4
	stm	r1, {r2-r3}
	ldr	r3, .L26+4
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	bne	.L24
	bl	pop
	ldr	r3, .L26+4
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	push
	b	.L2
.L24:
	ldr	r0, .L26+8
	bl	puts
	b	.L2
.L11:
	bl	pop
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L26+4
	stm	r1, {r2-r3}
	ldr	r3, .L26+4
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	bl	pop
	ldr	r3, .L26+4
	ldmia	r3, {r2-r3}
	bl	fmod
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	push
	b	.L2
.L25:
	ldr	r0, .L26+8
	bl	puts
	b	.L2
.L12:
	bl	pop
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L26+12
	bl	printf
	b	.L2
.L3:
	ldr	r0, .L26+16
	bl	puts
	nop
.L2:
	sub	r3, fp, #116
	mov	r0, r3
	bl	getop
	str	r0, [fp, #-120]
	ldr	r3, [fp, #-120]
	cmn	r3, #1
	bne	.L19
	mov	r3, #0
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC3
	.word	op2
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.section	.rodata
	.align	2
.LC4:
	.ascii	"sin\000"
	.align	2
.LC5:
	.ascii	"asin\000"
	.align	2
.LC6:
	.ascii	"cos\000"
	.align	2
.LC7:
	.ascii	"acos\000"
	.align	2
.LC8:
	.ascii	"tan\000"
	.align	2
.LC9:
	.ascii	"atan\000"
	.align	2
.LC10:
	.ascii	"cosh\000"
	.align	2
.LC11:
	.ascii	"sinh\000"
	.align	2
.LC12:
	.ascii	"tanh\000"
	.align	2
.LC13:
	.ascii	"log\000"
	.align	2
.LC14:
	.ascii	"sqrt\000"
	.align	2
.LC15:
	.ascii	"exp\000"
	.align	2
.LC16:
	.ascii	"ceil\000"
	.align	2
.LC17:
	.ascii	"floor\000"
	.align	2
.LC18:
	.ascii	"abs\000"
	.align	2
.LC19:
	.ascii	"pow\000"
	.align	2
.LC20:
	.ascii	"Error: function not recognized.\000"
	.text
	.align	2
	.global	mathfunc
	.syntax unified
	.arm
	.fpu softvfp
	.type	mathfunc, %function
mathfunc:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]
	ldr	r1, .L46
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L29
	bl	pop
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sin
	mov	r4, r0
	mov	r5, r1
	b	.L30
.L29:
	ldr	r1, .L46+4
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L31
	bl	pop
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	asin
	mov	r4, r0
	mov	r5, r1
	b	.L30
.L31:
	ldr	r1, .L46+8
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L32
	bl	pop
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	cos
	mov	r4, r0
	mov	r5, r1
	b	.L30
.L32:
	ldr	r1, .L46+12
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L33
	bl	pop
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	acos
	mov	r4, r0
	mov	r5, r1
	b	.L30
.L33:
	ldr	r1, .L46+16
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L34
	bl	pop
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	tan
	mov	r4, r0
	mov	r5, r1
	b	.L30
.L34:
	ldr	r1, .L46+20
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L35
	bl	pop
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	atan
	mov	r4, r0
	mov	r5, r1
	b	.L30
.L35:
	ldr	r1, .L46+24
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L36
	bl	pop
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	cosh
	mov	r4, r0
	mov	r5, r1
	b	.L30
.L36:
	ldr	r1, .L46+28
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L37
	bl	pop
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sinh
	mov	r4, r0
	mov	r5, r1
	b	.L30
.L37:
	ldr	r1, .L46+32
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L38
	bl	pop
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	tanh
	mov	r4, r0
	mov	r5, r1
	b	.L30
.L38:
	ldr	r1, .L46+36
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L39
	bl	pop
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	log
	mov	r4, r0
	mov	r5, r1
	b	.L30
.L39:
	ldr	r1, .L46+40
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L40
	bl	pop
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrt
	mov	r4, r0
	mov	r5, r1
	b	.L30
.L40:
	ldr	r1, .L46+44
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L41
	bl	pop
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	exp
	mov	r4, r0
	mov	r5, r1
	b	.L30
.L41:
	ldr	r1, .L46+48
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L42
	bl	pop
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	ceil
	mov	r4, r0
	mov	r5, r1
	b	.L30
.L42:
	ldr	r1, .L46+52
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L43
	bl	pop
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	floor
	mov	r4, r0
	mov	r5, r1
	b	.L30
.L43:
	ldr	r1, .L46+56
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L44
	bl	pop
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	bic	r5, r3, #-2147483648
	b	.L30
.L44:
	ldr	r1, .L46+60
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L45
	bl	pop
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L46+64
	stm	r1, {r2-r3}
	bl	pop
	ldr	r3, .L46+64
	ldmia	r3, {r2-r3}
	bl	pow
	mov	r4, r0
	mov	r5, r1
	b	.L30
.L45:
	ldr	r0, .L46+68
	bl	puts
	bl	clear
	mov	r4, #0
	mov	r5, #0
.L30:
	mov	r2, r4
	mov	r3, r5
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	op2
	.word	.LC20
	.size	mathfunc, .-mathfunc
	.global	sp
	.bss
	.align	2
	.type	sp, %object
	.size	sp, 4
sp:
	.space	4
	.comm	val,800,8
	.section	.rodata
	.align	2
.LC21:
	.ascii	"Error: stack full. Can't push %g\012\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, .L52
	ldr	r3, [r3]
	cmp	r3, #99
	bgt	.L49
	ldr	r3, .L52
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L52
	str	r2, [r1]
	ldr	r2, .L52+4
	lsl	r3, r3, #3
	add	r1, r2, r3
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	b	.L51
.L49:
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldr	r0, .L52+8
	bl	printf
.L51:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	sp
	.word	val
	.word	.LC21
	.size	push, .-push
	.section	.rodata
	.align	2
.LC22:
	.ascii	"Error: stack 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, .L57
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L55
	ldr	r3, .L57
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L57
	str	r3, [r2]
	ldr	r3, .L57
	ldr	r3, [r3]
	ldr	r2, .L57+4
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	b	.L56
.L55:
	ldr	r0, .L57+8
	bl	puts
	mov	r2, #0
	mov	r3, #0
.L56:
	mov	r0, r2
	mov	r1, r3
	pop	{fp, pc}
.L58:
	.align	2
.L57:
	.word	sp
	.word	val
	.word	.LC22
	.size	pop, .-pop
	.section	.rodata
	.align	2
.LC23:
	.ascii	"%g\012\000"
	.text
	.align	2
	.global	peek
	.syntax unified
	.arm
	.fpu softvfp
	.type	peek, %function
peek:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L63
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L60
	ldr	r3, .L63
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L63+4
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r0, .L63+8
	bl	printf
	b	.L62
.L60:
	ldr	r0, .L63+12
	bl	puts
.L62:
	nop
	pop	{fp, pc}
.L64:
	.align	2
.L63:
	.word	sp
	.word	val
	.word	.LC23
	.word	.LC22
	.size	peek, .-peek
	.section	.rodata
	.align	2
.LC24:
	.ascii	"Error: stack full. Can't duplicate %g\012\000"
	.align	2
.LC25:
	.ascii	"Error: stack empty.\012\000"
	.text
	.align	2
	.global	duplicate
	.syntax unified
	.arm
	.fpu softvfp
	.type	duplicate, %function
duplicate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L70
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L66
	ldr	r3, .L70
	ldr	r3, [r3]
	cmp	r3, #99
	bgt	.L66
	ldr	r3, .L70
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L70
	ldr	r1, [r2]
	ldr	r2, .L70+4
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r0, .L70+4
	lsl	r1, r1, #3
	add	r1, r0, r1
	stm	r1, {r2-r3}
	ldr	r3, .L70
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L70
	str	r3, [r2]
	b	.L69
.L66:
	ldr	r3, .L70
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L68
	ldr	r3, .L70
	ldr	r3, [r3]
	sub	r3, r3, #2
	ldr	r2, .L70+4
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r0, .L70+8
	bl	printf
	b	.L69
.L68:
	ldr	r0, .L70+12
	bl	printf
.L69:
	nop
	pop	{fp, pc}
.L71:
	.align	2
.L70:
	.word	sp
	.word	val
	.word	.LC24
	.word	.LC25
	.size	duplicate, .-duplicate
	.section	.rodata
	.align	2
.LC26:
	.ascii	"Error: Need at least 2 values in stack.\000"
	.text
	.align	2
	.global	swap
	.syntax unified
	.arm
	.fpu softvfp
	.type	swap, %function
swap:
	@ 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, .L76
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L73
	ldr	r3, .L76
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L76+4
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r3, .L76
	ldr	r3, [r3]
	sub	r3, r3, #2
	ldr	r2, .L76
	ldr	r2, [r2]
	sub	r1, r2, #1
	ldr	r2, .L76+4
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r0, .L76+4
	lsl	r1, r1, #3
	add	r1, r0, r1
	stm	r1, {r2-r3}
	ldr	r3, .L76
	ldr	r3, [r3]
	sub	r3, r3, #2
	ldr	r2, .L76+4
	lsl	r3, r3, #3
	add	r1, r2, r3
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	b	.L75
.L73:
	ldr	r0, .L76+8
	bl	puts
.L75:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L77:
	.align	2
.L76:
	.word	sp
	.word	val
	.word	.LC26
	.size	swap, .-swap
	.align	2
	.global	clear
	.syntax unified
	.arm
	.fpu softvfp
	.type	clear, %function
clear:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L79
.L80:
	ldr	r2, .L81
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r1, r2, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L79:
	ldr	r3, .L81+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L80
	ldr	r3, .L81+4
	mov	r2, #0
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L82:
	.align	2
.L81:
	.word	val
	.word	sp
	.size	clear, .-clear
	.align	2
	.global	getop
	.syntax unified
	.arm
	.fpu softvfp
	.type	getop, %function
getop:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	nop
.L84:
	bl	getch
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	and	r2, r3, #255
	ldr	r3, [fp, #-24]
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L84
	ldr	r3, [fp, #-16]
	cmp	r3, #9
	beq	.L84
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-20]
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L85
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #1024
	cmp	r3, #0
	bne	.L85
	ldr	r3, [fp, #-16]
	cmp	r3, #46
	beq	.L85
	ldr	r3, [fp, #-16]
	cmp	r3, #45
	beq	.L85
	ldr	r3, [fp, #-16]
	b	.L86
.L85:
	ldr	r3, [fp, #-16]
	cmp	r3, #45
	bne	.L87
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r4, [r3]
	bl	getch
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	and	r2, r2, #255
	strb	r2, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r4, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L88
	nop
.L89:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r4, [r3]
	bl	getch
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	and	r2, r2, #255
	strb	r2, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r4, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L89
	b	.L87
.L88:
	ldr	r0, [fp, #-16]
	bl	ungetch
	mov	r3, #45
	b	.L86
.L87:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #1024
	cmp	r3, #0
	beq	.L90
	nop
.L91:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r4, [r3]
	bl	getch
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	and	r2, r2, #255
	strb	r2, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r4, r3
	ldrh	r3, [r3]
	and	r3, r3, #1024
	cmp	r3, #0
	bne	.L91
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	beq	.L92
	ldr	r0, [fp, #-16]
	bl	ungetch
.L92:
	mov	r3, #49
	b	.L86
.L90:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L93
	nop
.L94:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r4, [r3]
	bl	getch
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	and	r2, r2, #255
	strb	r2, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r4, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L94
.L93:
	ldr	r3, [fp, #-16]
	cmp	r3, #46
	bne	.L95
	nop
.L96:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r4, [r3]
	bl	getch
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	and	r2, r2, #255
	strb	r2, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r4, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L96
.L95:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	beq	.L97
	ldr	r0, [fp, #-16]
	bl	ungetch
.L97:
	mov	r3, #48
.L86:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	getop, .-getop
	.comm	buf,100,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, .L102
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L99
	ldr	r3, .L102
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L102
	str	r3, [r2]
	ldr	r3, .L102
	ldr	r3, [r3]
	ldr	r2, .L102+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	b	.L101
.L99:
	bl	getchar
	mov	r3, r0
.L101:
	mov	r0, r3
	pop	{fp, pc}
.L103:
	.align	2
.L102:
	.word	bufp
	.word	buf
	.size	getch, .-getch
	.section	.rodata
	.align	2
.LC27:
	.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, .L108
	ldr	r3, [r3]
	cmp	r3, #99
	ble	.L105
	ldr	r0, .L108+4
	bl	puts
	b	.L107
.L105:
	ldr	r3, .L108
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L108
	str	r2, [r1]
	ldr	r2, [fp, #-8]
	and	r1, r2, #255
	ldr	r2, .L108+8
	strb	r1, [r2, r3]
.L107:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L109:
	.align	2
.L108:
	.word	bufp
	.word	.LC27
	.word	buf
	.size	ungetch, .-ungetch
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
