	.file	"274654.c"
	.intel_syntax noprefix
	.text
	.globl	createStack
	.type	createStack, @function
createStack:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], -1
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	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]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	createStack, .-createStack
	.globl	isEmpty
	.type	isEmpty, @function
isEmpty:
.LFB1:
	.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 [rax]
	cmp	eax, -1
	sete	al
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	isEmpty, .-isEmpty
	.globl	isFull
	.type	isFull, @function
isFull:
.LFB2:
	.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 [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	sub	eax, 1
	cmp	edx, eax
	sete	al
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	isFull, .-isFull
	.section	.rodata
.LC0:
	.string	"Array is Empty"
	.text
	.globl	pop
	.type	pop, @function
pop:
.LFB3:
	.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
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	isEmpty
	test	eax, eax
	je	.L8
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L9
.L8:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	pop, .-pop
	.section	.rodata
.LC1:
	.string	"StackOverflow"
	.text
	.globl	push
	.type	push, @function
push:
.LFB4:
	.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	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	isFull
	test	eax, eax
	je	.L11
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L10
.L11:
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 3
	lea	rdx, [rcx+rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rdx], rax
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	push, .-push
	.section	.rodata
.LC2:
	.string	"Execution number %d\n"
.LC3:
	.string	"I'm in if"
	.text
	.globl	createTree
	.type	createTree, @function
createTree:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 256
	mov	QWORD PTR -232[rbp], rdi
	mov	QWORD PTR -240[rbp], rsi
	mov	DWORD PTR -244[rbp], edx
	mov	DWORD PTR -248[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -248[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -248[rbp], 1
	mov	eax, DWORD PTR -248[rbp]
	mov	DWORD PTR -208[rbp], eax
	mov	eax, DWORD PTR -244[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -232[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -204[rbp], eax
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -200[rbp], rax
	mov	rax, QWORD PTR -200[rbp]
	mov	edx, DWORD PTR -204[rbp]
	mov	DWORD PTR [rax], edx
	cmp	DWORD PTR -244[rbp], 0
	jne	.L14
	mov	eax, 0
	jmp	.L24
.L14:
	cmp	DWORD PTR -244[rbp], 1
	jg	.L16
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -200[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -200[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -200[rbp]
	jmp	.L24
.L16:
	mov	DWORD PTR -220[rbp], 0
	mov	DWORD PTR -216[rbp], 0
	jmp	.L17
.L21:
	mov	eax, DWORD PTR -216[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -240[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -204[rbp], eax
	je	.L26
	add	DWORD PTR -220[rbp], 1
	mov	eax, DWORD PTR -216[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -240[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -216[rbp]
	cdqe
	mov	DWORD PTR -144[rbp+rax*4], edx
	mov	eax, DWORD PTR -216[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -232[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -216[rbp]
	cdqe
	mov	DWORD PTR -192[rbp+rax*4], edx
	add	DWORD PTR -216[rbp], 1
.L17:
	mov	eax, DWORD PTR -216[rbp]
	cmp	eax, DWORD PTR -244[rbp]
	jl	.L21
	jmp	.L20
.L26:
	nop
.L20:
	mov	DWORD PTR -212[rbp], 0
	mov	eax, DWORD PTR -220[rbp]
	mov	DWORD PTR -216[rbp], eax
	jmp	.L22
.L23:
	add	DWORD PTR -212[rbp], 1
	mov	eax, DWORD PTR -216[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -240[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -216[rbp]
	sub	eax, DWORD PTR -220[rbp]
	mov	edx, DWORD PTR [rdx]
	cdqe
	mov	DWORD PTR -48[rbp+rax*4], edx
	mov	eax, DWORD PTR -216[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -232[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -216[rbp]
	sub	eax, DWORD PTR -220[rbp]
	mov	edx, DWORD PTR [rdx]
	cdqe
	mov	DWORD PTR -96[rbp+rax*4], edx
	add	DWORD PTR -216[rbp], 1
.L22:
	mov	eax, DWORD PTR -244[rbp]
	sub	eax, 1
	cmp	DWORD PTR -216[rbp], eax
	jl	.L23
	mov	ecx, DWORD PTR -208[rbp]
	mov	edx, DWORD PTR -220[rbp]
	lea	rsi, -144[rbp]
	lea	rax, -192[rbp]
	mov	rdi, rax
	call	createTree
	mov	rdx, QWORD PTR -200[rbp]
	mov	QWORD PTR 8[rdx], rax
	mov	ecx, DWORD PTR -208[rbp]
	mov	edx, DWORD PTR -212[rbp]
	lea	rsi, -48[rbp]
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	createTree
	mov	rdx, QWORD PTR -200[rbp]
	mov	QWORD PTR 16[rdx], rax
	mov	rax, QWORD PTR -200[rbp]
.L24:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	createTree, .-createTree
	.section	.rodata
.LC4:
	.string	" %d  "
	.text
	.globl	preorder
	.type	preorder, @function
preorder:
.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
	cmp	QWORD PTR -8[rbp], 0
	je	.L29
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	preorder
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	preorder
.L29:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	preorder, .-preorder
	.section	.rodata
.LC5:
	.string	" %d "
	.text
	.globl	nonRecursivePreorder
	.type	nonRecursivePreorder, @function
nonRecursivePreorder:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	edi, 8
	call	createStack
	mov	QWORD PTR -8[rbp], rax
	jmp	.L31
.L32:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	push
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -24[rbp], rax
.L31:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L32
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	isEmpty
	test	eax, eax
	jne	.L37
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	pop
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L31
.L37:
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	nonRecursivePreorder, .-nonRecursivePreorder
	.globl	inorder
	.type	inorder, @function
inorder:
.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
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	je	.L40
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	inorder
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	inorder
.L40:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	inorder, .-inorder
	.globl	nonRecursiveInorder
	.type	nonRecursiveInorder, @function
nonRecursiveInorder:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	edi, 8
	call	createStack
	mov	QWORD PTR -8[rbp], rax
	jmp	.L42
.L43:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	push
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -24[rbp], rax
.L42:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L43
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	isEmpty
	test	eax, eax
	jne	.L48
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	pop
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L42
.L48:
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	nonRecursiveInorder, .-nonRecursiveInorder
	.globl	postorder
	.type	postorder, @function
postorder:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	je	.L51
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	postorder
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	postorder
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L51:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	postorder, .-postorder
	.globl	createQueue
	.type	createQueue, @function
createQueue:
.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	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	createQueue, .-createQueue
	.globl	EnQueue
	.type	EnQueue, @function
EnQueue:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L54
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	jmp	.L56
.L54:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
.L56:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	EnQueue, .-EnQueue
	.section	.rodata
.LC6:
	.string	"Queue is Empty"
	.text
	.globl	DeQueue
	.type	DeQueue, @function
DeQueue:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L58
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L59
.L58:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	rdx, rax
	jne	.L60
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L59
.L60:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
.L59:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	DeQueue, .-DeQueue
	.globl	levelOrder
	.type	levelOrder, @function
levelOrder:
.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
	mov	eax, 0
	call	createQueue
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	EnQueue
	jmp	.L62
.L65:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	DeQueue
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L63
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	EnQueue
.L63:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L64
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	EnQueue
.L64:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L62:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L65
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	levelOrder, .-levelOrder
	.section	.rodata
	.align 8
.LC7:
	.string	"\nPREOREDER TRAVERSAL--------------\n\n\n"
.LC8:
	.string	"\nNON recursive preorder"
	.align 8
.LC9:
	.string	"\n\nINOREDER TRAVERSAL--------------\n\n\n"
.LC10:
	.string	"\nNON recursive inorder"
	.align 8
.LC11:
	.string	"\n\nPOSTOREDER TRAVERSAL--------------\n\n\n"
	.align 8
.LC12:
	.string	"\nLEVEL ORDER TRAVERSAL--------------"
	.text
	.globl	main
	.type	main, @function
main:
.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, 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -80[rbp], 4
	mov	DWORD PTR -76[rbp], 8
	mov	DWORD PTR -72[rbp], 2
	mov	DWORD PTR -68[rbp], 5
	mov	DWORD PTR -64[rbp], 1
	mov	DWORD PTR -60[rbp], 6
	mov	DWORD PTR -56[rbp], 3
	mov	DWORD PTR -52[rbp], 7
	mov	DWORD PTR -48[rbp], 8
	mov	DWORD PTR -44[rbp], 4
	mov	DWORD PTR -40[rbp], 5
	mov	DWORD PTR -36[rbp], 2
	mov	DWORD PTR -32[rbp], 6
	mov	DWORD PTR -28[rbp], 7
	mov	DWORD PTR -24[rbp], 3
	mov	DWORD PTR -20[rbp], 1
	mov	DWORD PTR -96[rbp], 8
	mov	DWORD PTR -92[rbp], 1
	mov	ecx, DWORD PTR -92[rbp]
	mov	edx, DWORD PTR -96[rbp]
	lea	rsi, -80[rbp]
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	createTree
	mov	QWORD PTR -88[rbp], rax
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	preorder
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	nonRecursivePreorder
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	inorder
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	nonRecursiveInorder
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	postorder
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	levelOrder
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L68
	call	__stack_chk_fail@PLT
.L68:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.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	"274654.c"
	.text
	.align	2
	.global	createStack
	.syntax unified
	.arm
	.fpu softvfp
	.type	createStack, %function
createStack:
	@ 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]
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	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]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	createStack, .-createStack
	.align	2
	.global	isEmpty
	.syntax unified
	.arm
	.fpu softvfp
	.type	isEmpty, %function
isEmpty:
	@ 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]
	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	isEmpty, .-isEmpty
	.align	2
	.global	isFull
	.syntax unified
	.arm
	.fpu softvfp
	.type	isFull, %function
isFull:
	@ 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]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	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	isFull, .-isFull
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Array is Empty\000"
	.text
	.align	2
	.global	pop
	.syntax unified
	.arm
	.fpu softvfp
	.type	pop, %function
pop:
	@ 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, [fp, #-16]
	bl	isEmpty
	mov	r3, r0
	cmp	r3, #0
	beq	.L8
	ldr	r0, .L10
	bl	puts
	mov	r3, #0
	b	.L9
.L8:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC2
	.size	pop, .-pop
	.section	.rodata
	.align	2
.LC3:
	.ascii	"StackOverflow\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, #-8]
	bl	isFull
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	ldr	r0, .L15
	bl	puts
	b	.L12
.L13:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r3, [fp, #-8]
	str	r1, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	str	r2, [r3]
.L12:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC3
	.size	push, .-push
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Execution number %d\012\000"
	.align	2
.LC5:
	.ascii	"I'm in if\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	createTree
	.syntax unified
	.arm
	.fpu softvfp
	.type	createTree, %function
createTree:
	@ args = 0, pretend = 0, frame = 208
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #208
	str	r0, [fp, #-200]
	str	r1, [fp, #-204]
	str	r2, [fp, #-208]
	str	r3, [fp, #-212]
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, [fp, #-212]
	ldr	r0, .L31+4
	bl	printf
	ldr	r3, [fp, #-212]
	add	r3, r3, #1
	str	r3, [fp, #-212]
	ldr	r3, [fp, #-212]
	str	r3, [fp, #-180]
	ldr	r3, [fp, #-208]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-200]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-176]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-172]
	ldr	r3, [fp, #-172]
	ldr	r2, [fp, #-176]
	str	r2, [r3]
	ldr	r3, [fp, #-208]
	cmp	r3, #0
	bne	.L18
	mov	r3, #0
	b	.L28
.L18:
	ldr	r3, [fp, #-208]
	cmp	r3, #1
	bgt	.L20
	ldr	r0, .L31+8
	bl	puts
	ldr	r3, [fp, #-172]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-172]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-172]
	b	.L28
.L20:
	mov	r3, #0
	str	r3, [fp, #-192]
	mov	r3, #0
	str	r3, [fp, #-188]
	b	.L21
.L25:
	ldr	r3, [fp, #-188]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-204]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-176]
	cmp	r2, r3
	beq	.L30
	ldr	r3, [fp, #-192]
	add	r3, r3, #1
	str	r3, [fp, #-192]
	ldr	r3, [fp, #-188]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-204]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-188]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-124]
	ldr	r3, [fp, #-188]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-200]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-188]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-164]
	ldr	r3, [fp, #-188]
	add	r3, r3, #1
	str	r3, [fp, #-188]
.L21:
	ldr	r2, [fp, #-188]
	ldr	r3, [fp, #-208]
	cmp	r2, r3
	blt	.L25
	b	.L24
.L30:
	nop
.L24:
	mov	r3, #0
	str	r3, [fp, #-184]
	ldr	r3, [fp, #-192]
	str	r3, [fp, #-188]
	b	.L26
.L27:
	ldr	r3, [fp, #-184]
	add	r3, r3, #1
	str	r3, [fp, #-184]
	ldr	r3, [fp, #-188]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-204]
	add	r2, r2, r3
	ldr	r1, [fp, #-188]
	ldr	r3, [fp, #-192]
	sub	r3, r1, r3
	ldr	r2, [r2]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-44]
	ldr	r3, [fp, #-188]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-200]
	add	r2, r2, r3
	ldr	r1, [fp, #-188]
	ldr	r3, [fp, #-192]
	sub	r3, r1, r3
	ldr	r2, [r2]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-84]
	ldr	r3, [fp, #-188]
	add	r3, r3, #1
	str	r3, [fp, #-188]
.L26:
	ldr	r3, [fp, #-208]
	sub	r3, r3, #1
	ldr	r2, [fp, #-188]
	cmp	r2, r3
	blt	.L27
	sub	r1, fp, #128
	sub	r0, fp, #168
	ldr	r3, [fp, #-180]
	ldr	r2, [fp, #-192]
	bl	createTree
	mov	r2, r0
	ldr	r3, [fp, #-172]
	str	r2, [r3, #4]
	sub	r1, fp, #48
	sub	r0, fp, #88
	ldr	r3, [fp, #-180]
	ldr	r2, [fp, #-184]
	bl	createTree
	mov	r2, r0
	ldr	r3, [fp, #-172]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-172]
.L28:
	ldr	r2, .L31
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC6
	.word	.LC4
	.word	.LC5
	.size	createTree, .-createTree
	.section	.rodata
	.align	2
.LC7:
	.ascii	" %d  \000"
	.text
	.align	2
	.global	preorder
	.syntax unified
	.arm
	.fpu softvfp
	.type	preorder, %function
preorder:
	@ 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, [fp, #-8]
	cmp	r3, #0
	beq	.L35
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L36
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	preorder
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	preorder
.L35:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC7
	.size	preorder, .-preorder
	.section	.rodata
	.align	2
.LC8:
	.ascii	" %d \000"
	.text
	.align	2
	.global	nonRecursivePreorder
	.syntax unified
	.arm
	.fpu softvfp
	.type	nonRecursivePreorder, %function
nonRecursivePreorder:
	@ 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, #8
	bl	createStack
	str	r0, [fp, #-8]
	b	.L39
.L40:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L46
	bl	printf
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	push
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
.L39:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L40
	ldr	r0, [fp, #-8]
	bl	isEmpty
	mov	r3, r0
	cmp	r3, #0
	bne	.L45
	ldr	r0, [fp, #-8]
	bl	pop
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-16]
	b	.L39
.L45:
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC8
	.size	nonRecursivePreorder, .-nonRecursivePreorder
	.align	2
	.global	inorder
	.syntax unified
	.arm
	.fpu softvfp
	.type	inorder, %function
inorder:
	@ 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, [fp, #-8]
	cmp	r3, #0
	beq	.L50
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	inorder
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L51
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	inorder
.L50:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L52:
	.align	2
.L51:
	.word	.LC7
	.size	inorder, .-inorder
	.align	2
	.global	nonRecursiveInorder
	.syntax unified
	.arm
	.fpu softvfp
	.type	nonRecursiveInorder, %function
nonRecursiveInorder:
	@ 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, #8
	bl	createStack
	str	r0, [fp, #-8]
	b	.L54
.L55:
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	push
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
.L54:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L55
	ldr	r0, [fp, #-8]
	bl	isEmpty
	mov	r3, r0
	cmp	r3, #0
	bne	.L60
	ldr	r0, [fp, #-8]
	bl	pop
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L61
	bl	printf
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-16]
	b	.L54
.L60:
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L62:
	.align	2
.L61:
	.word	.LC8
	.size	nonRecursiveInorder, .-nonRecursiveInorder
	.align	2
	.global	postorder
	.syntax unified
	.arm
	.fpu softvfp
	.type	postorder, %function
postorder:
	@ 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, [fp, #-8]
	cmp	r3, #0
	beq	.L65
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	postorder
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	postorder
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L66
	bl	printf
.L65:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L67:
	.align	2
.L66:
	.word	.LC8
	.size	postorder, .-postorder
	.align	2
	.global	createQueue
	.syntax unified
	.arm
	.fpu softvfp
	.type	createQueue, %function
createQueue:
	@ 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, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	createQueue, .-createQueue
	.align	2
	.global	EnQueue
	.syntax unified
	.arm
	.fpu softvfp
	.type	EnQueue, %function
EnQueue:
	@ 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]
	str	r1, [fp, #-20]
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L70
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	b	.L72
.L70:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
.L72:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	EnQueue, .-EnQueue
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Queue is Empty\000"
	.text
	.align	2
	.global	DeQueue
	.syntax unified
	.arm
	.fpu softvfp
	.type	DeQueue, %function
DeQueue:
	@ 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]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L74
	ldr	r0, .L77
	bl	puts
	mov	r3, #0
	b	.L75
.L74:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bne	.L76
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	b	.L75
.L76:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
.L75:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L78:
	.align	2
.L77:
	.word	.LC9
	.size	DeQueue, .-DeQueue
	.align	2
	.global	levelOrder
	.syntax unified
	.arm
	.fpu softvfp
	.type	levelOrder, %function
levelOrder:
	@ 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]
	bl	createQueue
	str	r0, [fp, #-12]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	EnQueue
	b	.L80
.L83:
	ldr	r0, [fp, #-12]
	bl	DeQueue
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L81
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	EnQueue
.L81:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L82
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	EnQueue
.L82:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L84
	bl	printf
.L80:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L83
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L85:
	.align	2
.L84:
	.word	.LC8
	.size	levelOrder, .-levelOrder
	.section	.rodata
	.align	2
.LC10:
	.ascii	"\012PREOREDER TRAVERSAL--------------\012\012\012\000"
	.align	2
.LC11:
	.ascii	"\012NON recursive preorder\000"
	.align	2
.LC12:
	.ascii	"\012\012INOREDER TRAVERSAL--------------\012\012\012"
	.ascii	"\000"
	.align	2
.LC13:
	.ascii	"\012NON recursive inorder\000"
	.align	2
.LC14:
	.ascii	"\012\012POSTOREDER TRAVERSAL--------------\012\012\012"
	.ascii	"\000"
	.align	2
.LC15:
	.ascii	"\012LEVEL ORDER TRAVERSAL--------------\000"
	.align	2
.LC0:
	.word	4
	.word	8
	.word	2
	.word	5
	.word	1
	.word	6
	.word	3
	.word	7
	.align	2
.LC1:
	.word	8
	.word	4
	.word	5
	.word	2
	.word	6
	.word	7
	.word	3
	.word	1
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	ldr	r3, .L89
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L89+4
	sub	ip, fp, #72
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, .L89+8
	sub	ip, fp, #40
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	mov	r3, #8
	str	r3, [fp, #-84]
	mov	r3, #1
	str	r3, [fp, #-80]
	sub	r1, fp, #72
	sub	r0, fp, #40
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-84]
	bl	createTree
	str	r0, [fp, #-76]
	ldr	r0, .L89+12
	bl	puts
	ldr	r0, [fp, #-76]
	bl	preorder
	ldr	r0, .L89+16
	bl	puts
	ldr	r0, [fp, #-76]
	bl	nonRecursivePreorder
	ldr	r0, .L89+20
	bl	puts
	ldr	r0, [fp, #-76]
	bl	inorder
	ldr	r0, .L89+24
	bl	puts
	ldr	r0, [fp, #-76]
	bl	nonRecursiveInorder
	ldr	r0, .L89+28
	bl	puts
	ldr	r0, [fp, #-76]
	bl	postorder
	ldr	r0, .L89+32
	bl	puts
	ldr	r0, [fp, #-76]
	bl	levelOrder
	mov	r3, #0
	ldr	r2, .L89
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L88
	bl	__stack_chk_fail
.L88:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L90:
	.align	2
.L89:
	.word	.LC16
	.word	.LC0
	.word	.LC1
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
