	.file	"964622.c"
	.intel_syntax noprefix
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 200
a:
	.zero	200
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	key
	.align 4
	.type	key, @object
	.size	key, 4
key:
	.zero	4
	.section	.rodata
	.align 8
.LC0:
	.string	"Whether node %d requires Left subtree??0/1:\n"
.LC1:
	.string	"%d"
.LC2:
	.string	"Enter the item:"
	.align 8
.LC3:
	.string	"Whether node %d requires Right subtree??0/1:\n"
	.text
	.globl	builttree
	.type	builttree, @function
builttree:
.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	DWORD PTR -24[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -20[rbp], -1
	je	.L7
	mov	eax, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, a[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR n[rip]
	add	eax, 1
	mov	DWORD PTR n[rip], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 1
	jne	.L3
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -20[rbp]
	add	edx, edx
	add	edx, 1
	mov	esi, eax
	mov	edi, edx
	call	builttree
	jmp	.L4
.L3:
	mov	esi, 0
	mov	edi, -1
	call	builttree
.L4:
	mov	eax, DWORD PTR n[rip]
	add	eax, 1
	mov	DWORD PTR n[rip], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 1
	jne	.L5
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -20[rbp]
	add	edx, 1
	add	edx, edx
	mov	esi, eax
	mov	edi, edx
	call	builttree
	jmp	.L7
.L5:
	mov	esi, 0
	mov	edi, -1
	call	builttree
.L7:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	builttree, .-builttree
	.section	.rodata
.LC4:
	.string	"%d \t"
	.text
	.globl	display
	.type	display, @function
display:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR j[rip], 0
	jmp	.L9
.L11:
	mov	eax, DWORD PTR j[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	je	.L10
	mov	eax, DWORD PTR j[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L10:
	mov	eax, DWORD PTR j[rip]
	add	eax, 1
	mov	DWORD PTR j[rip], eax
.L9:
	mov	edx, DWORD PTR j[rip]
	mov	eax, DWORD PTR n[rip]
	cmp	edx, eax
	jl	.L11
	mov	edi, 10
	call	putchar@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	display, .-display
	.globl	search
	.type	search, @function
search:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L13
.L16:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -20[rbp], eax
	jne	.L14
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L15
.L14:
	add	DWORD PTR -4[rbp], 1
.L13:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L16
	mov	eax, -1
.L15:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	search, .-search
	.section	.rodata
.LC5:
	.string	"Item not found"
.LC6:
	.string	"Node is not a leaf node"
	.text
	.globl	delete
	.type	delete, @function
delete:
.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	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	search
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L18
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L18:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, eax
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	jne	.L19
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	add	eax, eax
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	jne	.L19
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	DWORD PTR [rdx+rax], -1
	jmp	.L20
.L19:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	nop
.L20:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	delete, .-delete
	.section	.rodata
.LC7:
	.string	"Search unsuccessful"
	.align 8
.LC8:
	.string	"Enter left or right child??(1/0):"
.LC9:
	.string	"Left child exists"
.LC10:
	.string	"Right child exists"
.LC11:
	.string	"Operaion cannot be performed"
	.text
	.globl	insert
	.type	insert, @function
insert:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	search
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L22
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L31
.L22:
	mov	eax, DWORD PTR -12[rbp]
	add	eax, eax
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	je	.L24
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 1
	add	eax, eax
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	jne	.L25
.L24:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 1
	jne	.L26
	mov	eax, DWORD PTR -12[rbp]
	add	eax, eax
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	jne	.L27
	mov	eax, DWORD PTR -12[rbp]
	add	eax, eax
	add	eax, 1
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, a[rip]
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	jmp	.L26
.L27:
	lea	rdi, .LC9[rip]
	call	puts@PLT
.L26:
	mov	eax, DWORD PTR -16[rbp]
	test	eax, eax
	jne	.L23
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 1
	add	eax, eax
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	jne	.L29
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 1
	add	eax, eax
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, a[rip]
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	jmp	.L23
.L29:
	lea	rdi, .LC10[rip]
	call	puts@PLT
	jmp	.L23
.L25:
	lea	rdi, .LC11[rip]
	call	puts@PLT
	jmp	.L31
.L23:
.L31:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	insert, .-insert
	.section	.rodata
	.align 8
.LC12:
	.string	"1.Build tree\n2.Insertion\n3.Deletion\n4.Search\n5.Display\n6.Exit\nEnter your option:"
	.align 8
.LC13:
	.string	"Enter the element to be inserted:"
	.align 8
.LC14:
	.string	"Enter the element after whilch you have to insert:"
.LC15:
	.string	"Enter the item to be deleted"
	.align 8
.LC16:
	.string	"Enter the item to be searched:"
.LC17:
	.string	"Item found at %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	jmp	.L33
.L34:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	DWORD PTR [rdx+rax], -1
	add	DWORD PTR -20[rbp], 1
.L33:
	cmp	DWORD PTR -20[rbp], 49
	jle	.L34
.L44:
	lea	rdi, .LC12[rip]
	call	puts@PLT
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, 5
	ja	.L35
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L37[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L37[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L37:
	.long	.L35-.L37
	.long	.L41-.L37
	.long	.L40-.L37
	.long	.L39-.L37
	.long	.L38-.L37
	.long	.L36-.L37
	.text
.L41:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, edx
	mov	edi, eax
	call	builttree
	jmp	.L35
.L40:
	lea	rdi, .LC13[rip]
	call	puts@PLT
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC14[rip]
	call	puts@PLT
	lea	rsi, key[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR key[rip]
	mov	esi, edx
	mov	edi, eax
	call	insert
	jmp	.L35
.L39:
	lea	rdi, .LC15[rip]
	call	puts@PLT
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	delete
	jmp	.L35
.L38:
	lea	rdi, .LC16[rip]
	call	puts@PLT
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	search
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L42
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L35
.L42:
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L35
.L36:
	mov	eax, 0
	call	display
	nop
.L35:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, 6
	jne	.L44
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L45
	call	__stack_chk_fail@PLT
.L45:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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	"964622.c"
	.text
	.comm	a,200,4
	.global	n
	.bss
	.align	2
	.type	n, %object
	.size	n, 4
n:
	.space	4
	.global	j
	.align	2
	.type	j, %object
	.size	j, 4
j:
	.space	4
	.comm	key,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Whether node %d requires Left subtree??0/1:\012\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Enter the item:\000"
	.align	2
.LC3:
	.ascii	"Whether node %d requires Right subtree??0/1:\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	builttree
	.syntax unified
	.arm
	.fpu softvfp
	.type	builttree, %function
builttree:
	@ 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	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	beq	.L7
	ldr	r2, [fp, #-20]
	ldr	r1, .L8+4
	ldr	r3, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L8+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L8+8
	str	r3, [r2]
	ldr	r2, .L8+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L8+12
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L8+16
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L3
	ldr	r0, .L8+20
	bl	puts
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L8+16
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	add	r3, r3, #1
	ldr	r2, [fp, #-20]
	mov	r1, r2
	mov	r0, r3
	bl	builttree
	b	.L4
.L3:
	mov	r1, #0
	mvn	r0, #0
	bl	builttree
.L4:
	ldr	r3, .L8+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L8+8
	str	r3, [r2]
	ldr	r2, .L8+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L8+24
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L8+16
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L5
	ldr	r0, .L8+20
	bl	puts
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L8+16
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	lsl	r3, r3, #1
	ldr	r2, [fp, #-20]
	mov	r1, r2
	mov	r0, r3
	bl	builttree
	b	.L7
.L5:
	mov	r1, #0
	mvn	r0, #0
	bl	builttree
.L7:
	nop
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC4
	.word	a
	.word	n
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	builttree, .-builttree
	.section	.rodata
	.align	2
.LC5:
	.ascii	"%d \011\000"
	.text
	.align	2
	.global	display
	.syntax unified
	.arm
	.fpu softvfp
	.type	display, %function
display:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L14
	mov	r2, #0
	str	r2, [r3]
	b	.L11
.L13:
	ldr	r3, .L14
	ldr	r3, [r3]
	ldr	r2, .L14+4
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	beq	.L12
	ldr	r3, .L14
	ldr	r3, [r3]
	ldr	r2, .L14+4
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L14+8
	bl	printf
.L12:
	ldr	r3, .L14
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L14
	str	r3, [r2]
.L11:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, .L14+12
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L13
	mov	r0, #10
	bl	putchar
	nop
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	j
	.word	a
	.word	.LC5
	.word	n
	.size	display, .-display
	.align	2
	.global	search
	.syntax unified
	.arm
	.fpu softvfp
	.type	search, %function
search:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L17
.L20:
	ldr	r2, .L21
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L18
	ldr	r3, [fp, #-8]
	b	.L19
.L18:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L17:
	ldr	r3, .L21+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L20
	mvn	r3, #0
.L19:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L22:
	.align	2
.L21:
	.word	a
	.word	n
	.size	search, .-search
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Item not found\000"
	.align	2
.LC7:
	.ascii	"Node is not a leaf node\000"
	.text
	.align	2
	.global	delete
	.syntax unified
	.arm
	.fpu softvfp
	.type	delete, %function
delete:
	@ 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	search
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L24
	ldr	r0, .L27
	bl	puts
.L24:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #1
	add	r3, r3, #1
	ldr	r2, .L27+4
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	bne	.L25
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	lsl	r3, r3, #1
	ldr	r2, .L27+4
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	bne	.L25
	ldr	r2, .L27+4
	ldr	r3, [fp, #-8]
	mvn	r1, #0
	str	r1, [r2, r3, lsl #2]
	b	.L26
.L25:
	ldr	r0, .L27+8
	bl	puts
	nop
.L26:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC6
	.word	a
	.word	.LC7
	.size	delete, .-delete
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Search unsuccessful\000"
	.align	2
.LC9:
	.ascii	"Enter left or right child??(1/0):\000"
	.align	2
.LC10:
	.ascii	"Left child exists\000"
	.align	2
.LC11:
	.ascii	"Right child exists\000"
	.align	2
.LC12:
	.ascii	"Operaion cannot be performed\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	insert
	.syntax unified
	.arm
	.fpu softvfp
	.type	insert, %function
insert:
	@ 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, .L40
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-24]
	bl	search
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L30
	ldr	r0, .L40+4
	bl	puts
	b	.L39
.L30:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #1
	add	r3, r3, #1
	ldr	r2, .L40+8
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	beq	.L32
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #1
	ldr	r2, .L40+8
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	bne	.L33
.L32:
	ldr	r0, .L40+12
	bl	puts
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L40+16
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L34
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #1
	add	r3, r3, #1
	ldr	r2, .L40+8
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	bne	.L35
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #1
	add	r3, r3, #1
	ldr	r1, .L40+8
	ldr	r2, [fp, #-28]
	str	r2, [r1, r3, lsl #2]
	b	.L34
.L35:
	ldr	r0, .L40+20
	bl	puts
.L34:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L31
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #1
	ldr	r2, .L40+8
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	bne	.L37
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #1
	ldr	r1, .L40+8
	ldr	r2, [fp, #-28]
	str	r2, [r1, r3, lsl #2]
	b	.L31
.L37:
	ldr	r0, .L40+24
	bl	puts
	b	.L31
.L33:
	ldr	r0, .L40+28
	bl	puts
	b	.L39
.L31:
.L39:
	nop
	ldr	r3, .L40
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L38
	bl	__stack_chk_fail
.L38:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC13
	.word	.LC8
	.word	a
	.word	.LC9
	.word	.LC1
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	insert, .-insert
	.section	.rodata
	.align	2
.LC14:
	.ascii	"1.Build tree\0122.Insertion\0123.Deletion\0124.Sear"
	.ascii	"ch\0125.Display\0126.Exit\012Enter your option:\000"
	.align	2
.LC15:
	.ascii	"Enter the element to be inserted:\000"
	.align	2
.LC16:
	.ascii	"Enter the element after whilch you have to insert:\000"
	.align	2
.LC17:
	.ascii	"Enter the item to be deleted\000"
	.align	2
.LC18:
	.ascii	"Enter the item to be searched:\000"
	.align	2
.LC19:
	.ascii	"Item found at %d\012\000"
	.align	2
.LC20:
	.word	__stack_chk_guard
	.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
	ldr	r3, .L56
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L43
.L44:
	ldr	r2, .L56+4
	ldr	r3, [fp, #-20]
	mvn	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L43:
	ldr	r3, [fp, #-20]
	cmp	r3, #49
	ble	.L44
.L54:
	ldr	r0, .L56+8
	bl	puts
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L56+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L45
.L47:
	.word	.L51
	.word	.L50
	.word	.L49
	.word	.L48
	.word	.L46
.L51:
	ldr	r0, .L56+16
	bl	puts
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L56+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-28]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	builttree
	b	.L45
.L50:
	ldr	r0, .L56+20
	bl	puts
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L56+12
	bl	__isoc99_scanf
	ldr	r0, .L56+24
	bl	puts
	ldr	r1, .L56+28
	ldr	r0, .L56+12
	bl	__isoc99_scanf
	ldr	r3, .L56+28
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	mov	r1, r2
	mov	r0, r3
	bl	insert
	b	.L45
.L49:
	ldr	r0, .L56+32
	bl	puts
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L56+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	delete
	b	.L45
.L48:
	ldr	r0, .L56+36
	bl	puts
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L56+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	search
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L52
	ldr	r0, .L56+40
	bl	puts
	b	.L45
.L52:
	ldr	r1, [fp, #-12]
	ldr	r0, .L56+44
	bl	printf
	b	.L45
.L46:
	bl	display
	nop
.L45:
	ldr	r3, [fp, #-24]
	cmp	r3, #6
	bne	.L54
	nop
	ldr	r3, .L56
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L55
	bl	__stack_chk_fail
.L55:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L57:
	.align	2
.L56:
	.word	.LC20
	.word	a
	.word	.LC14
	.word	.LC1
	.word	.LC2
	.word	.LC15
	.word	.LC16
	.word	key
	.word	.LC17
	.word	.LC18
	.word	.LC6
	.word	.LC19
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
