	.file	"707537.c"
	.intel_syntax noprefix
	.text
	.globl	stack
	.bss
	.align 16
	.type	stack, @object
	.size	stack, 16
stack:
	.zero	16
	.globl	depth
	.align 4
	.type	depth, @object
	.size	depth, 4
depth:
	.zero	4
	.section	.rodata
.LC0:
	.string	"Num: %d\n"
	.text
	.globl	push_num
	.type	push_num, @function
push_num:
.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -4[rbp], 0
	mov	eax, DWORD PTR depth[rip]
	cmp	eax, 15
	jbe	.L2
	mov	eax, 3
	jmp	.L3
.L2:
	sub	QWORD PTR -24[rbp], 1
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -4[rbp]
	imul	eax, DWORD PTR -36[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
.L4:
	add	QWORD PTR -24[rbp], 1
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -32[rbp]
	jb	.L5
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR depth[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR depth[rip], edx
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, stack[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	push_num, .-push_num
	.globl	stack_add
	.type	stack_add, @function
stack_add:
.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 depth[rip]
	cmp	eax, 1
	jg	.L7
	mov	eax, 4
	jmp	.L8
.L7:
	mov	eax, DWORD PTR depth[rip]
	sub	eax, 1
	mov	DWORD PTR depth[rip], eax
	mov	eax, DWORD PTR depth[rip]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, stack[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR depth[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, stack[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR depth[rip]
	sub	eax, 1
	add	ecx, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, stack[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, 0
.L8:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	stack_add, .-stack_add
	.globl	stack_sub
	.type	stack_sub, @function
stack_sub:
.LFB8:
	.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 depth[rip]
	cmp	eax, 1
	jg	.L10
	mov	eax, 4
	jmp	.L11
.L10:
	mov	eax, DWORD PTR depth[rip]
	sub	eax, 1
	mov	DWORD PTR depth[rip], eax
	mov	eax, DWORD PTR depth[rip]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, stack[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR depth[rip]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, stack[rip]
	mov	esi, DWORD PTR [rcx+rdx]
	mov	edx, DWORD PTR depth[rip]
	sub	edx, 1
	sub	eax, esi
	mov	ecx, eax
	movsx	rax, edx
	lea	rdx, 0[0+rax*4]
	lea	rax, stack[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, 0
.L11:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	stack_sub, .-stack_sub
	.globl	scan
	.type	scan, @function
scan:
.LFB9:
	.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	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -16[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	jmp	.L13
.L53:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	sub	rax, QWORD PTR -24[rbp]
	cmp	rax, 1
	jg	.L14
	mov	eax, DWORD PTR depth[rip]
	cmp	eax, 1
	jne	.L15
	mov	eax, 0
	jmp	.L17
.L15:
	mov	eax, 2
	jmp	.L17
.L14:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -29[rbp], al
	movsx	eax, BYTE PTR -29[rbp]
	sub	eax, 9
	cmp	eax, 48
	ja	.L55
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L20[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L20[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L20:
	.long	.L56-.L20
	.long	.L55-.L20
	.long	.L55-.L20
	.long	.L55-.L20
	.long	.L55-.L20
	.long	.L55-.L20
	.long	.L55-.L20
	.long	.L55-.L20
	.long	.L55-.L20
	.long	.L55-.L20
	.long	.L55-.L20
	.long	.L55-.L20
	.long	.L55-.L20
	.long	.L55-.L20
	.long	.L55-.L20
	.long	.L55-.L20
	.long	.L55-.L20
	.long	.L55-.L20
	.long	.L55-.L20
	.long	.L55-.L20
	.long	.L55-.L20
	.long	.L55-.L20
	.long	.L55-.L20
	.long	.L56-.L20
	.long	.L55-.L20
	.long	.L55-.L20
	.long	.L55-.L20
	.long	.L55-.L20
	.long	.L55-.L20
	.long	.L55-.L20
	.long	.L55-.L20
	.long	.L55-.L20
	.long	.L55-.L20
	.long	.L55-.L20
	.long	.L57-.L20
	.long	.L55-.L20
	.long	.L58-.L20
	.long	.L55-.L20
	.long	.L55-.L20
	.long	.L59-.L20
	.long	.L60-.L20
	.long	.L60-.L20
	.long	.L60-.L20
	.long	.L60-.L20
	.long	.L60-.L20
	.long	.L60-.L20
	.long	.L60-.L20
	.long	.L60-.L20
	.long	.L60-.L20
	.text
.L56:
	nop
.L25:
	add	QWORD PTR -24[rbp], 1
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -29[rbp], al
	jmp	.L31
.L65:
	nop
.L32:
	jmp	.L13
.L59:
	nop
.L28:
	add	QWORD PTR -24[rbp], 1
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -29[rbp], al
	movsx	eax, BYTE PTR -29[rbp]
	sub	eax, 48
	cmp	eax, 9
	ja	.L61
	jmp	.L34
.L61:
	nop
	jmp	.L35
.L62:
	nop
.L35:
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	push_num
	mov	DWORD PTR -28[rbp], eax
	jmp	.L13
.L60:
	nop
.L29:
	add	QWORD PTR -24[rbp], 1
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -29[rbp], al
	jmp	.L36
.L57:
	nop
.L26:
	add	QWORD PTR -24[rbp], 1
	mov	eax, 0
	call	stack_add
	mov	DWORD PTR -28[rbp], eax
	jmp	.L13
.L58:
	nop
.L27:
	add	QWORD PTR -24[rbp], 1
	mov	eax, 0
	call	stack_sub
	mov	DWORD PTR -28[rbp], eax
	jmp	.L13
.L55:
	nop
.L30:
	add	QWORD PTR -24[rbp], 1
	mov	DWORD PTR -28[rbp], 1
	jmp	.L13
.L54:
.L37:
	add	QWORD PTR -24[rbp], 1
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	cmp	QWORD PTR -24[rbp], rax
	jb	.L38
	mov	eax, DWORD PTR depth[rip]
	cmp	eax, 1
	jne	.L39
	mov	eax, 0
	jmp	.L17
.L39:
	mov	eax, 2
	jmp	.L17
.L38:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -29[rbp], al
.L36:
	movsx	eax, BYTE PTR -29[rbp]
	sub	eax, 48
	cmp	eax, 9
	ja	.L62
	jmp	.L54
.L34:
	add	QWORD PTR -24[rbp], 1
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	cmp	QWORD PTR -24[rbp], rax
	jb	.L42
	mov	eax, DWORD PTR depth[rip]
	cmp	eax, 1
	jne	.L43
	mov	eax, 0
	jmp	.L17
.L43:
	mov	eax, 2
	jmp	.L17
.L42:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -29[rbp], al
	movsx	eax, BYTE PTR -29[rbp]
	sub	eax, 48
	cmp	eax, 9
	ja	.L63
	jmp	.L34
.L63:
	nop
.L46:
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	rdi, rax
	call	push_num
	mov	DWORD PTR -28[rbp], eax
	jmp	.L13
.L64:
	nop
.L47:
	add	QWORD PTR -24[rbp], 1
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	cmp	QWORD PTR -24[rbp], rax
	jb	.L48
	mov	eax, DWORD PTR depth[rip]
	cmp	eax, 1
	jne	.L49
	mov	eax, 0
	jmp	.L17
.L49:
	mov	eax, 2
	jmp	.L17
.L48:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -29[rbp], al
.L31:
	movsx	eax, BYTE PTR -29[rbp]
	cmp	eax, 9
	je	.L64
	cmp	eax, 32
	jne	.L65
	jmp	.L64
.L13:
	cmp	DWORD PTR -28[rbp], 0
	je	.L53
	mov	eax, DWORD PTR -28[rbp]
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	scan, .-scan
	.section	.rodata
.LC1:
	.string	"Result: %d\n"
.LC2:
	.string	"Illegal character in input.\n"
.LC3:
	.string	"Premature end of input.\n"
.LC4:
	.string	"Stack overflow.\n"
.LC5:
	.string	"Stack underflow.\n"
.LC6:
	.string	"%s <expr>\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.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 -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	cmp	DWORD PTR -36[rbp], 1
	jle	.L67
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	jmp	.L68
.L71:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 34
	jne	.L69
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 34
	jne	.L69
	add	QWORD PTR -8[rbp], 1
	sub	DWORD PTR -12[rbp], 2
.L69:
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	scan
	mov	DWORD PTR -20[rbp], eax
.L68:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L70
	add	DWORD PTR -16[rbp], 1
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L71
.L70:
	cmp	DWORD PTR -20[rbp], 4
	ja	.L72
	mov	eax, DWORD PTR -20[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L74[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L74[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L74:
	.long	.L78-.L74
	.long	.L77-.L74
	.long	.L76-.L74
	.long	.L75-.L74
	.long	.L73-.L74
	.text
.L78:
	mov	eax, DWORD PTR stack[rip]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L79
.L77:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L79
.L76:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	eax, 2
	jmp	.L79
.L75:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	eax, 3
	jmp	.L79
.L73:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 17
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	eax, 4
	jmp	.L79
.L67:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L79
.L72:
	mov	eax, 0
.L79:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"707537.c"
	.text
	.comm	stack,16,4
	.global	depth
	.bss
	.align	2
	.type	depth, %object
	.size	depth, 4
depth:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Num: %d\012\000"
	.text
	.align	2
	.global	push_num
	.syntax unified
	.arm
	.fpu softvfp
	.type	push_num, %function
push_num:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, .L6
	ldr	r3, [r3]
	cmp	r3, #15
	bls	.L2
	mov	r3, #3
	b	.L3
.L2:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L4
.L5:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	mul	r2, r3, r2
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	add	r3, r2, r3
	str	r3, [fp, #-8]
.L4:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bcc	.L5
	ldr	r1, [fp, #-8]
	ldr	r0, .L6+4
	bl	printf
	ldr	r3, .L6
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L6
	str	r2, [r1]
	ldr	r1, .L6+8
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	depth
	.word	.LC0
	.word	stack
	.size	push_num, .-push_num
	.align	2
	.global	stack_add
	.syntax unified
	.arm
	.fpu softvfp
	.type	stack_add, %function
stack_add:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L11
	ldr	r3, [r3]
	cmp	r3, #1
	bgt	.L9
	mov	r3, #4
	b	.L10
.L9:
	ldr	r3, .L11
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L11
	str	r3, [r2]
	ldr	r3, .L11
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L11+4
	ldr	r1, [r2, r3, lsl #2]
	ldr	r3, .L11
	ldr	r3, [r3]
	ldr	r2, .L11+4
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L11
	ldr	r3, [r3]
	sub	r3, r3, #1
	add	r2, r1, r2
	ldr	r1, .L11+4
	str	r2, [r1, r3, lsl #2]
	mov	r3, #0
.L10:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L12:
	.align	2
.L11:
	.word	depth
	.word	stack
	.size	stack_add, .-stack_add
	.align	2
	.global	stack_sub
	.syntax unified
	.arm
	.fpu softvfp
	.type	stack_sub, %function
stack_sub:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L16
	ldr	r3, [r3]
	cmp	r3, #1
	bgt	.L14
	mov	r3, #4
	b	.L15
.L14:
	ldr	r3, .L16
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L16
	str	r3, [r2]
	ldr	r3, .L16
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L16+4
	ldr	r1, [r2, r3, lsl #2]
	ldr	r3, .L16
	ldr	r3, [r3]
	ldr	r2, .L16+4
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L16
	ldr	r3, [r3]
	sub	r3, r3, #1
	sub	r2, r1, r2
	ldr	r1, .L16+4
	str	r2, [r1, r3, lsl #2]
	mov	r3, #0
.L15:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L17:
	.align	2
.L16:
	.word	depth
	.word	stack
	.size	stack_sub, .-stack_sub
	.align	2
	.global	scan
	.syntax unified
	.arm
	.fpu softvfp
	.type	scan, %function
scan:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L19
.L59:
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	ldr	r2, [fp, #-32]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	cmp	r3, #1
	bgt	.L20
	ldr	r3, .L72
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L21
	mov	r3, #0
	b	.L23
.L21:
	mov	r3, #2
	b	.L23
.L20:
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]
	strb	r3, [fp, #-21]
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	sub	r3, r3, #9
	cmp	r3, #48
	ldrls	pc, [pc, r3, asl #2]
	b	.L61
.L26:
	.word	.L62
	.word	.L61
	.word	.L61
	.word	.L61
	.word	.L61
	.word	.L61
	.word	.L61
	.word	.L61
	.word	.L61
	.word	.L61
	.word	.L61
	.word	.L61
	.word	.L61
	.word	.L61
	.word	.L61
	.word	.L61
	.word	.L61
	.word	.L61
	.word	.L61
	.word	.L61
	.word	.L61
	.word	.L61
	.word	.L61
	.word	.L62
	.word	.L61
	.word	.L61
	.word	.L61
	.word	.L61
	.word	.L61
	.word	.L61
	.word	.L61
	.word	.L61
	.word	.L61
	.word	.L61
	.word	.L63
	.word	.L61
	.word	.L64
	.word	.L61
	.word	.L61
	.word	.L65
	.word	.L66
	.word	.L66
	.word	.L66
	.word	.L66
	.word	.L66
	.word	.L66
	.word	.L66
	.word	.L66
	.word	.L66
.L62:
	nop
.L31:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]
	strb	r3, [fp, #-21]
	b	.L37
.L71:
	nop
.L38:
	b	.L19
.L65:
	nop
.L34:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]
	strb	r3, [fp, #-21]
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	sub	r3, r3, #48
	cmp	r3, #9
	bhi	.L67
	b	.L40
.L67:
	nop
	b	.L41
.L68:
	nop
.L41:
	mov	r2, #10
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	push_num
	str	r0, [fp, #-16]
	b	.L19
.L66:
	nop
.L35:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]
	strb	r3, [fp, #-21]
	b	.L42
.L63:
	nop
.L32:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	bl	stack_add
	str	r0, [fp, #-16]
	b	.L19
.L64:
	nop
.L33:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	bl	stack_sub
	str	r0, [fp, #-16]
	b	.L19
.L61:
	nop
.L36:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L19
.L60:
.L43:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bcc	.L44
	ldr	r3, .L72
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L45
	mov	r3, #0
	b	.L23
.L45:
	mov	r3, #2
	b	.L23
.L44:
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]
	strb	r3, [fp, #-21]
.L42:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	sub	r3, r3, #48
	cmp	r3, #9
	bhi	.L68
	b	.L60
.L40:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bcc	.L48
	ldr	r3, .L72
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L49
	mov	r3, #0
	b	.L23
.L49:
	mov	r3, #2
	b	.L23
.L48:
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]
	strb	r3, [fp, #-21]
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	sub	r3, r3, #48
	cmp	r3, #9
	bhi	.L69
	b	.L40
.L69:
	nop
.L52:
	mov	r2, #8
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	push_num
	str	r0, [fp, #-16]
	b	.L19
.L70:
	nop
.L53:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bcc	.L54
	ldr	r3, .L72
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L55
	mov	r3, #0
	b	.L23
.L55:
	mov	r3, #2
	b	.L23
.L54:
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]
	strb	r3, [fp, #-21]
.L37:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #9
	beq	.L70
	cmp	r3, #32
	bne	.L71
	b	.L70
.L19:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L59
	ldr	r3, [fp, #-16]
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L73:
	.align	2
.L72:
	.word	depth
	.size	scan, .-scan
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Result: %d\012\000"
	.align	2
.LC2:
	.ascii	"Illegal character in input.\012\000"
	.align	2
.LC3:
	.ascii	"Premature end of input.\012\000"
	.align	2
.LC4:
	.ascii	"Stack overflow.\012\000"
	.align	2
.LC5:
	.ascii	"Stack underflow.\012\000"
	.align	2
.LC6:
	.ascii	"%s <expr>\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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	ble	.L75
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L76
.L79:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #34
	bne	.L77
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #34
	bne	.L77
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #2
	str	r3, [fp, #-8]
.L77:
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-20]
	bl	scan
	str	r0, [fp, #-16]
.L76:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L78
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L79
.L78:
	ldr	r3, [fp, #-16]
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L80
.L82:
	.word	.L86
	.word	.L85
	.word	.L84
	.word	.L83
	.word	.L81
.L86:
	ldr	r3, .L88
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L88+4
	bl	printf
	mov	r3, #0
	b	.L87
.L85:
	ldr	r3, .L88+8
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L88+12
	bl	fwrite
	mov	r3, #1
	b	.L87
.L84:
	ldr	r3, .L88+8
	ldr	r3, [r3]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L88+16
	bl	fwrite
	mov	r3, #2
	b	.L87
.L83:
	ldr	r3, .L88+8
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L88+20
	bl	fwrite
	mov	r3, #3
	b	.L87
.L81:
	ldr	r3, .L88+8
	ldr	r3, [r3]
	mov	r2, #17
	mov	r1, #1
	ldr	r0, .L88+24
	bl	fwrite
	mov	r3, #4
	b	.L87
.L75:
	ldr	r3, .L88+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L88+28
	bl	fprintf
	mov	r3, #0
	b	.L87
.L80:
	mov	r3, #0
.L87:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L89:
	.align	2
.L88:
	.word	stack
	.word	.LC1
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
