	.file	"891153.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Reverse polish notation calculator."
	.align 8
.LC1:
	.string	"Usage: input looks like '3 2 - 5 * ='. Then press Enter. Repeat ad nauseum. Input 'q' to quit."
.LC2:
	.string	"Result = %d\n"
.LC3:
	.string	"Quitting..."
.LC4:
	.string	"%d"
.LC5:
	.string	"Can't read integer, exiting!\n"
	.align 8
.LC6:
	.string	"Stack overflow (max number of numbers: %d), exiting!\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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -4120[rbp], 0
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L2
.L18:
	call	getchar@PLT
	mov	DWORD PTR -4116[rbp], eax
	cmp	DWORD PTR -4116[rbp], 61
	jg	.L3
	cmp	DWORD PTR -4116[rbp], 10
	jl	.L4
	mov	eax, DWORD PTR -4116[rbp]
	sub	eax, 10
	cmp	eax, 51
	ja	.L4
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L6[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L6[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L6:
	.long	.L21-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L21-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L10-.L6
	.long	.L9-.L6
	.long	.L4-.L6
	.long	.L8-.L6
	.long	.L4-.L6
	.long	.L7-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L5-.L6
	.text
.L3:
	cmp	DWORD PTR -4116[rbp], 113
	je	.L12
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -4120[rbp]
	sub	eax, 1
	cdqe
	mov	eax, DWORD PTR -4112[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	sub	DWORD PTR -4120[rbp], 1
	jmp	.L2
.L9:
	mov	eax, DWORD PTR -4120[rbp]
	sub	eax, 2
	cdqe
	mov	ecx, DWORD PTR -4112[rbp+rax*4]
	mov	eax, DWORD PTR -4120[rbp]
	sub	eax, 1
	cdqe
	mov	edx, DWORD PTR -4112[rbp+rax*4]
	mov	eax, DWORD PTR -4120[rbp]
	sub	eax, 2
	add	edx, ecx
	cdqe
	mov	DWORD PTR -4112[rbp+rax*4], edx
	sub	DWORD PTR -4120[rbp], 1
	jmp	.L2
.L8:
	mov	eax, DWORD PTR -4120[rbp]
	sub	eax, 2
	cdqe
	mov	edx, DWORD PTR -4112[rbp+rax*4]
	mov	eax, DWORD PTR -4120[rbp]
	sub	eax, 1
	cdqe
	mov	ecx, DWORD PTR -4112[rbp+rax*4]
	mov	eax, DWORD PTR -4120[rbp]
	sub	eax, 2
	sub	edx, ecx
	cdqe
	mov	DWORD PTR -4112[rbp+rax*4], edx
	sub	DWORD PTR -4120[rbp], 1
	jmp	.L2
.L10:
	mov	eax, DWORD PTR -4120[rbp]
	sub	eax, 1
	cdqe
	mov	edx, DWORD PTR -4112[rbp+rax*4]
	mov	eax, DWORD PTR -4120[rbp]
	sub	eax, 2
	cdqe
	mov	eax, DWORD PTR -4112[rbp+rax*4]
	mov	ecx, DWORD PTR -4120[rbp]
	sub	ecx, 2
	imul	edx, eax
	movsx	rax, ecx
	mov	DWORD PTR -4112[rbp+rax*4], edx
	sub	DWORD PTR -4120[rbp], 1
	jmp	.L2
.L7:
	mov	eax, DWORD PTR -4120[rbp]
	sub	eax, 2
	cdqe
	mov	eax, DWORD PTR -4112[rbp+rax*4]
	mov	edx, DWORD PTR -4120[rbp]
	sub	edx, 1
	movsx	rdx, edx
	mov	esi, DWORD PTR -4112[rbp+rdx*4]
	mov	ecx, DWORD PTR -4120[rbp]
	sub	ecx, 2
	cdq
	idiv	esi
	mov	edx, eax
	movsx	rax, ecx
	mov	DWORD PTR -4112[rbp+rax*4], edx
	sub	DWORD PTR -4120[rbp], 1
	jmp	.L2
.L12:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L19
.L4:
	mov	rdx, QWORD PTR stdin[rip]
	mov	eax, DWORD PTR -4116[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	ungetc@PLT
	lea	rax, -4124[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 1
	je	.L15
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 29
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L19
.L15:
	cmp	DWORD PTR -4120[rbp], 1023
	jne	.L16
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, 1024
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L16:
	mov	eax, DWORD PTR -4120[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -4120[rbp], edx
	mov	edx, DWORD PTR -4124[rbp]
	cdqe
	mov	DWORD PTR -4112[rbp+rax*4], edx
	jmp	.L2
.L21:
	nop
.L2:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L18
	mov	eax, DWORD PTR -4120[rbp]
	sub	eax, 1
	cdqe
	mov	eax, DWORD PTR -4112[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L19:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.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	"891153.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Reverse polish notation calculator.\000"
	.align	2
.LC1:
	.ascii	"Usage: input looks like '3 2 - 5 * ='. Then press E"
	.ascii	"nter. Repeat ad nauseum. Input 'q' to quit.\000"
	.align	2
.LC2:
	.ascii	"Result = %d\012\000"
	.global	__aeabi_idiv
	.align	2
.LC3:
	.ascii	"Quitting...\000"
	.align	2
.LC4:
	.ascii	"%d\000"
	.align	2
.LC5:
	.ascii	"Can't read integer, exiting!\012\000"
	.align	2
.LC6:
	.ascii	"Stack overflow (max number of numbers: %d), exiting"
	.ascii	"!\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4096
	sub	sp, sp, #20
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-12]
	ldr	r0, .L22+4
	bl	puts
	ldr	r0, .L22+8
	bl	puts
	b	.L2
.L18:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	bl	getchar
	str	r0, [r4, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #61
	bgt	.L3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #10
	blt	.L4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	sub	r3, r3, #10
	cmp	r3, #51
	ldrls	pc, [pc, r3, asl #2]
	b	.L4
.L6:
	.word	.L21
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L21
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L10
	.word	.L9
	.word	.L4
	.word	.L8
	.word	.L4
	.word	.L7
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L5
.L3:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #113
	beq	.L12
	b	.L4
.L5:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	sub	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-4]
	mov	r1, r3
	ldr	r0, .L22+12
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	sub	r3, r3, #1
	str	r3, [r2, #-12]
	b	.L2
.L9:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	sub	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3, #-4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	sub	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	sub	r3, r3, #2
	add	r2, r1, r2
	sub	r1, fp, #4096
	sub	r1, r1, #12
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #-4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	sub	r3, r3, #1
	str	r3, [r2, #-12]
	b	.L2
.L8:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	sub	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3, #-4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	sub	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	sub	r3, r3, #2
	sub	r2, r1, r2
	sub	r1, fp, #4096
	sub	r1, r1, #12
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #-4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	sub	r3, r3, #1
	str	r3, [r2, #-12]
	b	.L2
.L10:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	sub	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	sub	r3, r3, #2
	sub	r1, fp, #4096
	sub	r1, r1, #12
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3, #-4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	sub	r3, r3, #2
	mul	r2, r1, r2
	sub	r1, fp, #4096
	sub	r1, r1, #12
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #-4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	sub	r3, r3, #1
	str	r3, [r2, #-12]
	b	.L2
.L7:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	sub	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	sub	r3, r3, #1
	sub	r1, fp, #4096
	sub	r1, r1, #12
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3, #-4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	sub	r4, r3, #2
	mov	r0, r2
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	lsl	r3, r4, #2
	add	r3, r1, r3
	str	r2, [r3, #-4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	sub	r3, r3, #1
	str	r3, [r2, #-12]
	b	.L2
.L12:
	ldr	r0, .L22+16
	bl	puts
	mov	r3, #0
	b	.L19
.L4:
	ldr	r3, .L22+20
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-8]
	bl	ungetc
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #16
	mov	r1, r3
	ldr	r0, .L22+24
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L15
	ldr	r3, .L22+28
	ldr	r3, [r3]
	mov	r2, #29
	mov	r1, #1
	ldr	r0, .L22+32
	bl	fwrite
	mvn	r3, #0
	b	.L19
.L15:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	ldr	r2, .L22+36
	cmp	r3, r2
	bne	.L16
	ldr	r3, .L22+28
	ldr	r3, [r3]
	mov	r2, #1024
	ldr	r1, .L22+40
	mov	r0, r3
	bl	fprintf
.L16:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-12]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-16]
	sub	r1, fp, #4096
	sub	r1, r1, #12
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #-4]
	b	.L2
.L21:
	nop
.L2:
	ldr	r3, .L22+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	sub	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-4]
	mov	r1, r3
	ldr	r0, .L22+12
	bl	printf
	mov	r3, #0
.L19:
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	stdin
	.word	.LC4
	.word	stderr
	.word	.LC5
	.word	1023
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
