	.file	"113017.c"
	.intel_syntax noprefix
	.text
	.globl	temp
	.bss
	.align 8
	.type	temp, @object
	.size	temp, 8
temp:
	.zero	8
	.globl	t1
	.align 8
	.type	t1, @object
	.size	t1, 8
t1:
	.zero	8
	.globl	root
	.align 8
	.type	root, @object
	.size	root, 8
root:
	.zero	8
	.globl	flag
	.align 4
	.type	flag, @object
	.size	flag, 4
flag:
	.zero	4
	.text
	.globl	newnode
	.type	newnode, @function
newnode:
.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	DWORD PTR -20[rbp], edi
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	newnode, .-newnode
	.section	.rodata
.LC0:
	.string	"%d "
	.text
	.globl	printPostorder
	.type	printPostorder, @function
printPostorder:
.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
	cmp	QWORD PTR -8[rbp], 0
	je	.L6
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	printPostorder
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	printPostorder
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L3
.L6:
	nop
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	printPostorder, .-printPostorder
	.globl	printInorder
	.type	printInorder, @function
printInorder:
.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	.L10
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	printInorder
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	printInorder
	jmp	.L7
.L10:
	nop
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	printInorder, .-printInorder
	.globl	printPreorder
	.type	printPreorder, @function
printPreorder:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	je	.L14
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	printPreorder
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	printPreorder
	jmp	.L11
.L14:
	nop
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	printPreorder, .-printPreorder
	.section	.rodata
	.align 8
.LC1:
	.string	"\nElement present in the binary tree."
	.text
	.globl	in_order_search
	.type	in_order_search, @function
in_order_search:
.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
	mov	DWORD PTR -12[rbp], esi
	cmp	QWORD PTR -8[rbp], 0
	je	.L19
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	in_order_search
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -12[rbp], eax
	jne	.L18
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	DWORD PTR flag[rip], 1
.L18:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	edx, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	in_order_search
	jmp	.L15
.L19:
	nop
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	in_order_search, .-in_order_search
	.globl	delsearch
	.type	delsearch, @function
delsearch:
.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	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	cmp	QWORD PTR -8[rbp], 0
	je	.L24
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR -16[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	delsearch
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -12[rbp], eax
	jne	.L23
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L20
.L23:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	edx, DWORD PTR -16[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	delsearch
	jmp	.L20
.L24:
	nop
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	delsearch, .-delsearch
	.globl	rightMin
	.type	rightMin, @function
rightMin:
.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	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR t1[rip], rax
	jmp	.L26
.L27:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR t1[rip], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -24[rbp], rax
.L26:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L27
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR t1[rip]
	mov	QWORD PTR 16[rax], 0
	mov	QWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	rightMin, .-rightMin
	.globl	del
	.type	del, @function
del:
.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	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rightMin
	mov	DWORD PTR -4[rbp], eax
	mov	edx, DWORD PTR -4[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	delsearch
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	del, .-del
	.section	.rodata
	.align 8
.LC2:
	.string	"OPERATIONS\n1.Inorder Traversal\n2.Preorder Traversal\n3.Postorder Traversal\n4.Search\n5.Delete an element\n6.Exit"
.LC3:
	.string	"\nEnter your choice: "
.LC4:
	.string	"%d"
	.align 8
.LC5:
	.string	"\nEnter the value to be searched:"
	.align 8
.LC6:
	.string	"Element not present in the binary tree"
	.align 8
.LC7:
	.string	"\nEnter the value to be deleted: "
.LC8:
	.string	"\nWrong choice. Try again."
	.text
	.globl	main
	.type	main, @function
main:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	edi, 50
	call	newnode
	mov	QWORD PTR root[rip], rax
	mov	rbx, QWORD PTR root[rip]
	mov	edi, 20
	call	newnode
	mov	QWORD PTR 8[rbx], rax
	mov	rbx, QWORD PTR root[rip]
	mov	edi, 30
	call	newnode
	mov	QWORD PTR 16[rbx], rax
	mov	rax, QWORD PTR root[rip]
	mov	rbx, QWORD PTR 8[rax]
	mov	edi, 70
	call	newnode
	mov	QWORD PTR 8[rbx], rax
	mov	rax, QWORD PTR root[rip]
	mov	rbx, QWORD PTR 8[rax]
	mov	edi, 80
	call	newnode
	mov	QWORD PTR 16[rbx], rax
	mov	rax, QWORD PTR root[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	rbx, QWORD PTR 8[rax]
	mov	edi, 10
	call	newnode
	mov	QWORD PTR 8[rbx], rax
	mov	rax, QWORD PTR root[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	rbx, QWORD PTR 8[rax]
	mov	edi, 40
	call	newnode
	mov	QWORD PTR 16[rbx], rax
	mov	rax, QWORD PTR root[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	rbx, QWORD PTR 16[rax]
	mov	edi, 60
	call	newnode
	mov	QWORD PTR 16[rbx], rax
	mov	rax, QWORD PTR root[rip]
	mov	rbx, QWORD PTR 16[rax]
	mov	edi, 100
	call	newnode
	mov	QWORD PTR 8[rbx], rax
	mov	rax, QWORD PTR root[rip]
	mov	rbx, QWORD PTR 16[rax]
	mov	edi, 45
	call	newnode
	mov	QWORD PTR 16[rbx], rax
	lea	rdi, .LC2[rip]
	call	puts@PLT
.L41:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, 6
	ja	.L31
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L33[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L33[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L33:
	.long	.L31-.L33
	.long	.L38-.L33
	.long	.L37-.L33
	.long	.L36-.L33
	.long	.L35-.L33
	.long	.L34-.L33
	.long	.L32-.L33
	.text
.L38:
	mov	rax, QWORD PTR root[rip]
	mov	rdi, rax
	call	printInorder
	jmp	.L39
.L37:
	mov	rax, QWORD PTR root[rip]
	mov	rdi, rax
	call	printPreorder
	jmp	.L39
.L36:
	mov	rax, QWORD PTR root[rip]
	mov	rdi, rax
	call	printPostorder
	jmp	.L39
.L35:
	mov	DWORD PTR flag[rip], 0
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -36[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR root[rip]
	mov	esi, edx
	mov	rdi, rax
	call	in_order_search
	mov	eax, DWORD PTR flag[rip]
	test	eax, eax
	jne	.L43
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L43
.L34:
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR root[rip]
	mov	esi, edx
	mov	rdi, rax
	call	del
	jmp	.L39
.L32:
	mov	edi, 0
	call	exit@PLT
.L31:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	jmp	.L41
.L43:
	nop
.L39:
	jmp	.L41
	.cfi_endproc
.LFE14:
	.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	"113017.c"
	.text
	.global	temp
	.bss
	.align	2
	.type	temp, %object
	.size	temp, 4
temp:
	.space	4
	.comm	t1,4,4
	.global	root
	.align	2
	.type	root, %object
	.size	root, 4
root:
	.space	4
	.comm	flag,4,4
	.text
	.align	2
	.global	newnode
	.syntax unified
	.arm
	.fpu softvfp
	.type	newnode, %function
newnode:
	@ 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]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	newnode, .-newnode
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d \000"
	.text
	.align	2
	.global	printPostorder
	.syntax unified
	.arm
	.fpu softvfp
	.type	printPostorder, %function
printPostorder:
	@ 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	.L6
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	printPostorder
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	printPostorder
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L7
	bl	printf
	b	.L3
.L6:
	nop
.L3:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.size	printPostorder, .-printPostorder
	.align	2
	.global	printInorder
	.syntax unified
	.arm
	.fpu softvfp
	.type	printInorder, %function
printInorder:
	@ 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	.L12
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	printInorder
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L13
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	printInorder
	b	.L9
.L12:
	nop
.L9:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC0
	.size	printInorder, .-printInorder
	.align	2
	.global	printPreorder
	.syntax unified
	.arm
	.fpu softvfp
	.type	printPreorder, %function
printPreorder:
	@ 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	.L18
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L19
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	printPreorder
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	printPreorder
	b	.L15
.L18:
	nop
.L15:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC0
	.size	printPreorder, .-printPreorder
	.section	.rodata
	.align	2
.LC1:
	.ascii	"\012Element present in the binary tree.\000"
	.text
	.align	2
	.global	in_order_search
	.syntax unified
	.arm
	.fpu softvfp
	.type	in_order_search, %function
in_order_search:
	@ 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	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L25
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	in_order_search
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L24
	ldr	r0, .L26
	bl	puts
	ldr	r3, .L26+4
	mov	r2, #1
	str	r2, [r3]
.L24:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	in_order_search
	b	.L21
.L25:
	nop
.L21:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC1
	.word	flag
	.size	in_order_search, .-in_order_search
	.align	2
	.global	delsearch
	.syntax unified
	.arm
	.fpu softvfp
	.type	delsearch, %function
delsearch:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L32
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	delsearch
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L31
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	b	.L28
.L31:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	delsearch
	b	.L28
.L32:
	nop
.L28:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	delsearch, .-delsearch
	.align	2
	.global	rightMin
	.syntax unified
	.arm
	.fpu softvfp
	.type	rightMin, %function
rightMin:
	@ 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	r2, .L37
	ldr	r3, [fp, #-16]
	str	r3, [r2]
	b	.L34
.L35:
	ldr	r2, .L37
	ldr	r3, [fp, #-16]
	str	r3, [r2]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-16]
.L34:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L35
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L37
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #8]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	t1
	.size	rightMin, .-rightMin
	.align	2
	.global	del
	.syntax unified
	.arm
	.fpu softvfp
	.type	del, %function
del:
	@ 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]
	ldr	r0, [fp, #-16]
	bl	rightMin
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	delsearch
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	del, .-del
	.section	.rodata
	.align	2
.LC2:
	.ascii	"OPERATIONS\0121.Inorder Traversal\0122.Preorder Tra"
	.ascii	"versal\0123.Postorder Traversal\0124.Search\0125.De"
	.ascii	"lete an element\0126.Exit\000"
	.align	2
.LC3:
	.ascii	"\012Enter your choice: \000"
	.align	2
.LC4:
	.ascii	"%d\000"
	.align	2
.LC5:
	.ascii	"\012Enter the value to be searched:\000"
	.align	2
.LC6:
	.ascii	"Element not present in the binary tree\000"
	.align	2
.LC7:
	.ascii	"\012Enter the value to be deleted: \000"
	.align	2
.LC8:
	.ascii	"\012Wrong choice. Try again.\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	ldr	r3, .L54
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r0, #50
	bl	newnode
	mov	r3, r0
	ldr	r2, .L54+4
	str	r3, [r2]
	ldr	r3, .L54+4
	ldr	r4, [r3]
	mov	r0, #20
	bl	newnode
	mov	r3, r0
	str	r3, [r4, #4]
	ldr	r3, .L54+4
	ldr	r4, [r3]
	mov	r0, #30
	bl	newnode
	mov	r3, r0
	str	r3, [r4, #8]
	ldr	r3, .L54+4
	ldr	r3, [r3]
	ldr	r4, [r3, #4]
	mov	r0, #70
	bl	newnode
	mov	r3, r0
	str	r3, [r4, #4]
	ldr	r3, .L54+4
	ldr	r3, [r3]
	ldr	r4, [r3, #4]
	mov	r0, #80
	bl	newnode
	mov	r3, r0
	str	r3, [r4, #8]
	ldr	r3, .L54+4
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r4, [r3, #4]
	mov	r0, #10
	bl	newnode
	mov	r3, r0
	str	r3, [r4, #4]
	ldr	r3, .L54+4
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r4, [r3, #4]
	mov	r0, #40
	bl	newnode
	mov	r3, r0
	str	r3, [r4, #8]
	ldr	r3, .L54+4
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r4, [r3, #8]
	mov	r0, #60
	bl	newnode
	mov	r3, r0
	str	r3, [r4, #8]
	ldr	r3, .L54+4
	ldr	r3, [r3]
	ldr	r4, [r3, #8]
	mov	r0, #100
	bl	newnode
	mov	r3, r0
	str	r3, [r4, #4]
	ldr	r3, .L54+4
	ldr	r3, [r3]
	ldr	r4, [r3, #8]
	mov	r0, #45
	bl	newnode
	mov	r3, r0
	str	r3, [r4, #8]
	ldr	r0, .L54+8
	bl	puts
.L51:
	ldr	r0, .L54+12
	bl	printf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L54+16
	bl	__isoc99_scanf
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L41
.L43:
	.word	.L48
	.word	.L47
	.word	.L46
	.word	.L45
	.word	.L44
	.word	.L42
.L48:
	ldr	r3, .L54+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	printInorder
	b	.L49
.L47:
	ldr	r3, .L54+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	printPreorder
	b	.L49
.L46:
	ldr	r3, .L54+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	printPostorder
	b	.L49
.L45:
	ldr	r3, .L54+20
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, .L54+24
	bl	printf
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L54+16
	bl	__isoc99_scanf
	ldr	r3, .L54+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	mov	r1, r2
	mov	r0, r3
	bl	in_order_search
	ldr	r3, .L54+20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L53
	ldr	r0, .L54+28
	bl	puts
	b	.L53
.L44:
	ldr	r0, .L54+32
	bl	printf
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L54+16
	bl	__isoc99_scanf
	ldr	r3, .L54+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	mov	r1, r2
	mov	r0, r3
	bl	del
	b	.L49
.L42:
	mov	r0, #0
	bl	exit
.L41:
	ldr	r0, .L54+36
	bl	puts
	b	.L51
.L53:
	nop
.L49:
	b	.L51
.L55:
	.align	2
.L54:
	.word	.LC9
	.word	root
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	flag
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
