	.file	"654672.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"fatal error %s\n"
	.text
	.globl	fatal_error
	.type	fatal_error, @function
fatal_error:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	fatal_error, .-fatal_error
	.section	.rodata
.LC1:
	.string	"error %s\n"
	.text
	.globl	error
	.type	error, @function
error:
.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]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	error, .-error
	.section	.rodata
.LC2:
	.string	"out of space"
	.text
	.globl	create_stack
	.type	create_stack, @function
create_stack:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L4
	lea	rdi, .LC2[rip]
	call	fatal_error
.L4:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L5
	lea	rdi, .LC2[rip]
	call	fatal_error
.L5:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 4[rax], -1
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	create_stack, .-create_stack
	.globl	is_full
	.type	is_full, @function
is_full:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	sub	eax, 1
	cmp	edx, eax
	sete	al
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	is_full, .-is_full
	.globl	is_empty
	.type	is_empty, @function
is_empty:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, -1
	sete	al
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	is_empty, .-is_empty
	.section	.rodata
.LC3:
	.string	"stack is full"
	.text
	.globl	push
	.type	push, @function
push:
.LFB11:
	.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	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	is_full
	test	eax, eax
	je	.L12
	lea	rdi, .LC3[rip]
	call	error
.L12:
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 4[rax]
	cdqe
	sal	rax, 2
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rdx], eax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	push, .-push
	.section	.rodata
.LC4:
	.string	"stack is empty, cant pop"
	.text
	.globl	pop
	.type	pop, @function
pop:
.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	is_empty
	test	eax, eax
	je	.L14
	lea	rdi, .LC4[rip]
	call	error
.L14:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 4[rax], edx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	pop, .-pop
	.section	.rodata
.LC5:
	.string	"stack is empty, cant top"
	.text
	.globl	top
	.type	top, @function
top:
.LFB13:
	.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]
	mov	rdi, rax
	call	is_empty
	test	eax, eax
	je	.L16
	lea	rdi, .LC5[rip]
	call	error
.L16:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	top, .-top
	.section	.rodata
.LC6:
	.string	"stack: "
	.align 8
.LC7:
	.string	"stack->capacity: %d stack->top: %d\n"
.LC8:
	.string	"idx: %d value: %d\n"
	.text
	.globl	print_stack
	.type	print_stack, @function
print_stack:
.LFB14:
	.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	QWORD PTR -24[rbp], rdi
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L19
.L20:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L19:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L20
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	print_stack, .-print_stack
	.globl	evaluate_postfix_expression
	.type	evaluate_postfix_expression, @function
evaluate_postfix_expression:
.LFB15:
	.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	edi, 16
	call	create_stack
	mov	QWORD PTR -8[rbp], rax
	jmp	.L22
.L28:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 43
	je	.L23
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 42
	jne	.L24
.L23:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	top
	mov	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	pop
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	top
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	pop
	mov	DWORD PTR -20[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 43
	jne	.L25
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	mov	DWORD PTR -20[rbp], eax
	jmp	.L26
.L25:
	mov	eax, DWORD PTR -16[rbp]
	imul	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -20[rbp], eax
.L26:
	mov	rdx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	push
	jmp	.L27
.L24:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	lea	edx, -48[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, edx
	call	push
.L27:
	add	QWORD PTR -40[rbp], 1
.L22:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L28
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	top
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	evaluate_postfix_expression, .-evaluate_postfix_expression
	.section	.rodata
.LC9:
	.string	"* push 0, 1 to stack"
.LC10:
	.string	"* get top of stack"
.LC11:
	.string	"the_stack_data/654672.c"
.LC12:
	.string	"top(s) == 1"
.LC13:
	.string	"* pop 1, 0 from stack"
.LC14:
	.string	"top(s) == 0"
.LC15:
	.string	"test stack success"
	.text
	.globl	test_stack
	.type	test_stack, @function
test_stack:
.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	edi, 5
	call	create_stack
	mov	QWORD PTR -8[rbp], rax
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	push
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	push
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	top
	cmp	eax, 1
	je	.L31
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 98
	lea	rsi, .LC11[rip]
	lea	rdi, .LC12[rip]
	call	__assert_fail@PLT
.L31:
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	pop
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	top
	test	eax, eax
	je	.L32
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 101
	lea	rsi, .LC11[rip]
	lea	rdi, .LC14[rip]
	call	__assert_fail@PLT
.L32:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	pop
	lea	rdi, .LC15[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	test_stack, .-test_stack
	.section	.rodata
.LC16:
	.string	"34+"
	.align 8
.LC17:
	.string	"evaluate_postfix_expression(\"34+\") == 7"
.LC18:
	.string	"78*"
	.align 8
.LC19:
	.string	"evaluate_postfix_expression(\"78*\") == 56"
.LC20:
	.string	"10+7*"
	.align 8
.LC21:
	.string	"evaluate_postfix_expression(\"10+7*\") == 7"
.LC22:
	.string	"6523+8*+3+*"
	.align 8
.LC23:
	.string	"evaluate_postfix_expression(\"6523+8*+3+*\") == 288"
	.text
	.globl	test_evaluate_postfix_expression
	.type	test_evaluate_postfix_expression, @function
test_evaluate_postfix_expression:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC16[rip]
	call	evaluate_postfix_expression
	cmp	eax, 7
	je	.L34
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 107
	lea	rsi, .LC11[rip]
	lea	rdi, .LC17[rip]
	call	__assert_fail@PLT
.L34:
	lea	rdi, .LC18[rip]
	call	evaluate_postfix_expression
	cmp	eax, 56
	je	.L35
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 108
	lea	rsi, .LC11[rip]
	lea	rdi, .LC19[rip]
	call	__assert_fail@PLT
.L35:
	lea	rdi, .LC20[rip]
	call	evaluate_postfix_expression
	cmp	eax, 7
	je	.L36
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 109
	lea	rsi, .LC11[rip]
	lea	rdi, .LC21[rip]
	call	__assert_fail@PLT
.L36:
	lea	rdi, .LC22[rip]
	call	evaluate_postfix_expression
	cmp	eax, 288
	je	.L38
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 110
	lea	rsi, .LC11[rip]
	lea	rdi, .LC23[rip]
	call	__assert_fail@PLT
.L38:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	test_evaluate_postfix_expression, .-test_evaluate_postfix_expression
	.globl	main
	.type	main, @function
main:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	test_stack
	mov	eax, 0
	call	test_evaluate_postfix_expression
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 11
__PRETTY_FUNCTION__.1:
	.string	"test_stack"
	.align 32
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 33
__PRETTY_FUNCTION__.0:
	.string	"test_evaluate_postfix_expression"
	.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	"654672.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"fatal error %s\012\000"
	.text
	.align	2
	.global	fatal_error
	.syntax unified
	.arm
	.fpu softvfp
	.type	fatal_error, %function
fatal_error:
	@ 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	r1, [fp, #-8]
	ldr	r0, .L2
	bl	printf
	mov	r0, #1
	bl	exit
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	fatal_error, .-fatal_error
	.section	.rodata
	.align	2
.LC1:
	.ascii	"error %s\012\000"
	.text
	.align	2
	.global	error
	.syntax unified
	.arm
	.fpu softvfp
	.type	error, %function
error:
	@ 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	r1, [fp, #-8]
	ldr	r0, .L5
	bl	printf
	mov	r0, #1
	bl	exit
.L6:
	.align	2
.L5:
	.word	.LC1
	.size	error, .-error
	.section	.rodata
	.align	2
.LC2:
	.ascii	"out of space\000"
	.text
	.align	2
	.global	create_stack
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_stack, %function
create_stack:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L11
	bl	fatal_error
.L8:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L9
	ldr	r0, .L11
	bl	fatal_error
.L9:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mvn	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC2
	.size	create_stack, .-create_stack
	.align	2
	.global	is_full
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_full, %function
is_full:
	@ 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
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	sub	r3, r3, #1
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	is_full, .-is_full
	.align	2
	.global	is_empty
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_empty, %function
is_empty:
	@ 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
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmn	r3, #1
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	is_empty, .-is_empty
	.section	.rodata
	.align	2
.LC3:
	.ascii	"stack is 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, #-8]
	str	r1, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	is_full
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	ldr	r0, .L19
	bl	error
.L18:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	add	r1, r3, #1
	ldr	r3, [fp, #-12]
	str	r1, [r3, #4]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC3
	.size	push, .-push
	.section	.rodata
	.align	2
.LC4:
	.ascii	"stack is empty, cant pop\000"
	.text
	.align	2
	.global	pop
	.syntax unified
	.arm
	.fpu softvfp
	.type	pop, %function
pop:
	@ 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	r0, [fp, #-8]
	bl	is_empty
	mov	r3, r0
	cmp	r3, #0
	beq	.L22
	ldr	r0, .L23
	bl	error
.L22:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	sub	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC4
	.size	pop, .-pop
	.section	.rodata
	.align	2
.LC5:
	.ascii	"stack is empty, cant top\000"
	.text
	.align	2
	.global	top
	.syntax unified
	.arm
	.fpu softvfp
	.type	top, %function
top:
	@ 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	r0, [fp, #-8]
	bl	is_empty
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	ldr	r0, .L28
	bl	error
.L26:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC5
	.size	top, .-top
	.section	.rodata
	.align	2
.LC6:
	.ascii	"stack: \000"
	.align	2
.LC7:
	.ascii	"stack->capacity: %d stack->top: %d\012\000"
	.align	2
.LC8:
	.ascii	"idx: %d value: %d\012\000"
	.text
	.align	2
	.global	print_stack
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_stack, %function
print_stack:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r0, .L33
	bl	puts
	ldr	r3, [fp, #-16]
	ldr	r1, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r0, .L33+4
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L31
.L32:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, .L33+8
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L31:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L32
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	print_stack, .-print_stack
	.align	2
	.global	evaluate_postfix_expression
	.syntax unified
	.arm
	.fpu softvfp
	.type	evaluate_postfix_expression, %function
evaluate_postfix_expression:
	@ 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]
	mov	r0, #16
	bl	create_stack
	str	r0, [fp, #-16]
	b	.L36
.L42:
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #43
	beq	.L37
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #42
	bne	.L38
.L37:
	ldr	r0, [fp, #-16]
	bl	top
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	pop
	ldr	r0, [fp, #-16]
	bl	top
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	pop
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #43
	bne	.L39
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	b	.L40
.L39:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	mul	r3, r2, r3
	str	r3, [fp, #-20]
.L40:
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	push
	b	.L41
.L38:
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	push
.L41:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L36:
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L42
	ldr	r0, [fp, #-16]
	bl	top
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	evaluate_postfix_expression, .-evaluate_postfix_expression
	.section	.rodata
	.align	2
.LC9:
	.ascii	"* push 0, 1 to stack\000"
	.align	2
.LC10:
	.ascii	"* get top of stack\000"
	.align	2
.LC11:
	.ascii	"the_stack_data/654672.c\000"
	.align	2
.LC12:
	.ascii	"top(s) == 1\000"
	.align	2
.LC13:
	.ascii	"* pop 1, 0 from stack\000"
	.align	2
.LC14:
	.ascii	"top(s) == 0\000"
	.align	2
.LC15:
	.ascii	"test stack success\000"
	.text
	.align	2
	.global	test_stack
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_stack, %function
test_stack:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r0, #5
	bl	create_stack
	str	r0, [fp, #-8]
	ldr	r0, .L47
	bl	puts
	ldr	r1, [fp, #-8]
	mov	r0, #0
	bl	push
	ldr	r1, [fp, #-8]
	mov	r0, #1
	bl	push
	ldr	r0, .L47+4
	bl	puts
	ldr	r0, [fp, #-8]
	bl	top
	mov	r3, r0
	cmp	r3, #1
	beq	.L45
	ldr	r3, .L47+8
	mov	r2, #98
	ldr	r1, .L47+12
	ldr	r0, .L47+16
	bl	__assert_fail
.L45:
	ldr	r0, .L47+20
	bl	puts
	ldr	r0, [fp, #-8]
	bl	pop
	ldr	r0, [fp, #-8]
	bl	top
	mov	r3, r0
	cmp	r3, #0
	beq	.L46
	ldr	r3, .L47+8
	mov	r2, #101
	ldr	r1, .L47+12
	ldr	r0, .L47+24
	bl	__assert_fail
.L46:
	ldr	r0, [fp, #-8]
	bl	pop
	ldr	r0, .L47+28
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	.LC9
	.word	.LC10
	.word	__PRETTY_FUNCTION__.5181
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	test_stack, .-test_stack
	.section	.rodata
	.align	2
.LC16:
	.ascii	"34+\000"
	.align	2
.LC17:
	.ascii	"evaluate_postfix_expression(\"34+\") == 7\000"
	.align	2
.LC18:
	.ascii	"78*\000"
	.align	2
.LC19:
	.ascii	"evaluate_postfix_expression(\"78*\") == 56\000"
	.align	2
.LC20:
	.ascii	"10+7*\000"
	.align	2
.LC21:
	.ascii	"evaluate_postfix_expression(\"10+7*\") == 7\000"
	.align	2
.LC22:
	.ascii	"6523+8*+3+*\000"
	.align	2
.LC23:
	.ascii	"evaluate_postfix_expression(\"6523+8*+3+*\") == 288"
	.ascii	"\000"
	.text
	.align	2
	.global	test_evaluate_postfix_expression
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_evaluate_postfix_expression, %function
test_evaluate_postfix_expression:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L55
	bl	evaluate_postfix_expression
	mov	r3, r0
	cmp	r3, #7
	beq	.L50
	ldr	r3, .L55+4
	mov	r2, #107
	ldr	r1, .L55+8
	ldr	r0, .L55+12
	bl	__assert_fail
.L50:
	ldr	r0, .L55+16
	bl	evaluate_postfix_expression
	mov	r3, r0
	cmp	r3, #56
	beq	.L51
	ldr	r3, .L55+4
	mov	r2, #108
	ldr	r1, .L55+8
	ldr	r0, .L55+20
	bl	__assert_fail
.L51:
	ldr	r0, .L55+24
	bl	evaluate_postfix_expression
	mov	r3, r0
	cmp	r3, #7
	beq	.L52
	ldr	r3, .L55+4
	mov	r2, #109
	ldr	r1, .L55+8
	ldr	r0, .L55+28
	bl	__assert_fail
.L52:
	ldr	r0, .L55+32
	bl	evaluate_postfix_expression
	mov	r3, r0
	cmp	r3, #288
	beq	.L54
	ldr	r3, .L55+4
	mov	r2, #110
	ldr	r1, .L55+8
	ldr	r0, .L55+36
	bl	__assert_fail
.L54:
	nop
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	.LC16
	.word	__PRETTY_FUNCTION__.5184
	.word	.LC11
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.size	test_evaluate_postfix_expression, .-test_evaluate_postfix_expression
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	test_stack
	bl	test_evaluate_postfix_expression
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5181, %object
	.size	__PRETTY_FUNCTION__.5181, 11
__PRETTY_FUNCTION__.5181:
	.ascii	"test_stack\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5184, %object
	.size	__PRETTY_FUNCTION__.5184, 33
__PRETTY_FUNCTION__.5184:
	.ascii	"test_evaluate_postfix_expression\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
