	.file	"514481.c"
	.intel_syntax noprefix
	.text
	.globl	n1
	.data
	.align 16
	.type	n1, @object
	.size	n1, 24
n1:
	.long	1
	.zero	4
	.quad	0
	.quad	0
	.globl	n2
	.align 16
	.type	n2, @object
	.size	n2, 24
n2:
	.long	4
	.zero	4
	.quad	0
	.quad	0
	.globl	n3
	.section	.data.rel.local,"aw"
	.align 16
	.type	n3, @object
	.size	n3, 24
n3:
	.long	42
	.zero	4
	.quad	n1
	.quad	n2
	.globl	n4
	.data
	.align 16
	.type	n4, @object
	.size	n4, 24
n4:
	.long	16
	.zero	4
	.quad	0
	.quad	0
	.globl	n5
	.align 16
	.type	n5, @object
	.size	n5, 24
n5:
	.long	25
	.zero	4
	.quad	0
	.quad	0
	.globl	n6
	.section	.data.rel.local
	.align 16
	.type	n6, @object
	.size	n6, 24
n6:
	.long	43
	.zero	4
	.quad	n4
	.quad	n5
	.globl	n7
	.align 16
	.type	n7, @object
	.size	n7, 24
n7:
	.long	43
	.zero	4
	.quad	n3
	.quad	n6
	.globl	exp
	.align 8
	.type	exp, @object
	.size	exp, 8
exp:
	.quad	n7
	.text
	.globl	evaluate
	.type	evaluate, @function
evaluate:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	cmp	QWORD PTR -24[rbp], 0
	jne	.L2
	mov	eax, 0
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L4
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L4
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	jmp	.L3
.L4:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	evaluate
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	evaluate
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 47
	je	.L5
	cmp	eax, 47
	jg	.L6
	cmp	eax, 45
	je	.L7
	cmp	eax, 45
	jg	.L6
	cmp	eax, 42
	je	.L8
	cmp	eax, 43
	jne	.L6
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	jmp	.L3
.L7:
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, DWORD PTR -4[rbp]
	jmp	.L3
.L8:
	mov	eax, DWORD PTR -8[rbp]
	imul	eax, DWORD PTR -4[rbp]
	jmp	.L3
.L5:
	mov	eax, DWORD PTR -8[rbp]
	cdq
	idiv	DWORD PTR -4[rbp]
	jmp	.L3
.L6:
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	evaluate, .-evaluate
	.section	.rodata
	.align 8
.LC0:
	.string	"Expression Tree Traversal -----------------"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	rax, QWORD PTR exp[rip]
	mov	rdi, rax
	call	evaluate
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"514481.c"
	.text
	.global	n1
	.data
	.align	2
	.type	n1, %object
	.size	n1, 12
n1:
	.word	1
	.word	0
	.word	0
	.global	n2
	.align	2
	.type	n2, %object
	.size	n2, 12
n2:
	.word	4
	.word	0
	.word	0
	.global	n3
	.align	2
	.type	n3, %object
	.size	n3, 12
n3:
	.word	42
	.word	n1
	.word	n2
	.global	n4
	.align	2
	.type	n4, %object
	.size	n4, 12
n4:
	.word	16
	.word	0
	.word	0
	.global	n5
	.align	2
	.type	n5, %object
	.size	n5, 12
n5:
	.word	25
	.word	0
	.word	0
	.global	n6
	.align	2
	.type	n6, %object
	.size	n6, 12
n6:
	.word	43
	.word	n4
	.word	n5
	.global	n7
	.align	2
	.type	n7, %object
	.size	n7, 12
n7:
	.word	43
	.word	n3
	.word	n6
	.global	exp
	.align	2
	.type	exp, %object
	.size	exp, 4
exp:
	.word	n7
	.global	__aeabi_idiv
	.text
	.align	2
	.global	evaluate
	.syntax unified
	.arm
	.fpu softvfp
	.type	evaluate, %function
evaluate:
	@ 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	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L2
	mov	r3, #0
	b	.L3
.L2:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	b	.L3
.L4:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	evaluate
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	evaluate
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	sub	r3, r3, #42
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L5
.L7:
	.word	.L10
	.word	.L9
	.word	.L5
	.word	.L8
	.word	.L5
	.word	.L6
.L9:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	b	.L3
.L8:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	b	.L3
.L10:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	mul	r3, r2, r3
	b	.L3
.L6:
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	__aeabi_idiv
	mov	r3, r0
	b	.L3
.L5:
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	evaluate, .-evaluate
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Expression Tree Traversal -----------------\000"
	.align	2
.LC1:
	.ascii	"%d\012\000"
	.text
	.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
	ldr	r0, .L12
	bl	puts
	ldr	r3, .L12+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	evaluate
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L12+8
	bl	printf
	nop
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	exp
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
