Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

typedef struct d {
  struct d *parent;
  struct d *left;
  struct d *right;
  int key;
} node;
typedef node * Node;

Node root;

void insert(int key){
  Node x = root;
  Node y = NULL;
  Node z;

  z = (Node)malloc(sizeof(node));
  z->key = key;
  z->left = NULL;
  z->right = NULL;

  while(x != NULL){
    y = x;
    if(z->key < x->key){
      x = x->left;
    }
    else{
      x = x->right;
    }
  }
  z->parent = y;

  if(y == NULL){
    root = z;
  }
  else if (z->key < y->key){
    y->left = z;
  }
  else{
    y->right = z;
  }
}

Node find(int key){
  Node x = root;

  while(1){
    if(x == NULL){
      // puts("no");
      return x;
    }
    else if(x->key == key){
      // puts("yes");
      return x;
    }
    else if(key < x->key){
      x = x->left;
    }
    else if(x->key < key){
      x = x->right;
    }
  }
}

void delete(int key){
  Node x = find(key);
  Node y;
  int temp;

  // printf("k:%d l:",x->key);
  // if(x->left != NULL) printf("%d",x->left->key);
  // else printf("NULL");
  // printf(" r:");
  // if(x->right != NULL) printf("%d\n",x->right->key);
  // else printf("NULL\n");

  // 左側に子孫なし
  if(x->left == NULL){
    // 右側に子孫なし
    if(x->right == NULL){
      // puts("XX");
      // 親の左側についているとき
      if(x->key < x->parent->key){
        x->parent->left = NULL;
      }
      // 親の右側についているとき
      else if(x->parent->key < x->key){
        x->parent->right = NULL;
      }
    }
    // 右側に子孫あり
    else if(x->right != NULL){
      // puts("XO");
      // 親の左側についているとき
      if(x->key < x->parent->key){
        x->parent->left = x->right;
      }
      // 親の右側についているとき
      else if(x->parent->key < x->key){
        x->parent->right = x->right;
      }
      x->right->parent = x->parent;
    }
  }
  // 左側に子孫あり
  else if(x->left != NULL){
    // 右側に子孫なし
    if(x->right == NULL){
      // puts("OX");
      // 親の左側についているとき
      if(x->key < x->parent->key){
        x->parent->left = x->left;
      }
      // 親の右側についているとき
      else if(x->parent->key < x->key){
        x->parent->right = x->left;
      }
      x->left->parent = x->parent;
    }
    // 右側に子孫あり
    else if(x->right != NULL){
      // puts("OO");
      y = x->right;
      while(y->left != NULL){
        y = y->left;
      }
      temp = y->key;
      delete(temp);
      x->key = temp;
      return;
    }
  }
  free(x);
}

void inorderTreeWalk(Node x){
  if(x != NULL){
    inorderTreeWalk(x->left);
    printf(" %d",x->key);
    inorderTreeWalk(x->right);
  }
}

void preorderTreeWalk(Node x){
  if(x == NULL){
    return;
  }
  printf(" %d",x->key);
  preorderTreeWalk(x->left);
  preorderTreeWalk(x->right);
}

void printer(){
  inorderTreeWalk(root);
  printf("\n");
  preorderTreeWalk(root);
  printf("\n");
}

int main(){
  int i, n, key;
  char command[10];
  Node x;

  scanf("%d ",&n);
  for(i=0; i<n; i++){
    scanf("%s ",command);
    if(!strcmp(command, "insert")){
      scanf("%d ",&key);
      insert(key);
    }
    else if(!strcmp(command, "print")){
      printer();
      // puts("printer");
    }
    else if(!strcmp(command, "find")){
      scanf("%d ",&key);
      x = find(key);
      if(x != NULL) puts("yes");
      else puts("no");
    }
    else if(!strcmp(command, "delete")){
      // puts("---delete---");
      scanf("%d ",&key);
      delete(key);
      // puts("===delete===");
    }
  }

  return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	root
	.bss
	.align 8
	.type	root, @object
	.size	root, 8
root:
	.zero	8
	.text
	.globl	insert
	.type	insert, @function
insert:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -36(%rbp)
	movq	root(%rip), %rax
	movq	%rax, -24(%rbp)
	movq	$0, -16(%rbp)
	movl	$32, %edi
	call	malloc@PLT
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movl	-36(%rbp), %edx
	movl	%edx, 24(%rax)
	movq	-8(%rbp), %rax
	movq	$0, 8(%rax)
	movq	-8(%rbp), %rax
	movq	$0, 16(%rax)
	jmp	.L2
.L4:
	movq	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	24(%rax), %edx
	movq	-24(%rbp), %rax
	movl	24(%rax), %eax
	cmpl	%eax, %edx
	jge	.L3
	movq	-24(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -24(%rbp)
	jmp	.L2
.L3:
	movq	-24(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, -24(%rbp)
.L2:
	cmpq	$0, -24(%rbp)
	jne	.L4
	movq	-8(%rbp), %rax
	movq	-16(%rbp), %rdx
	movq	%rdx, (%rax)
	cmpq	$0, -16(%rbp)
	jne	.L5
	movq	-8(%rbp), %rax
	movq	%rax, root(%rip)
	jmp	.L8
.L5:
	movq	-8(%rbp), %rax
	movl	24(%rax), %edx
	movq	-16(%rbp), %rax
	movl	24(%rax), %eax
	cmpl	%eax, %edx
	jge	.L7
	movq	-16(%rbp), %rax
	movq	-8(%rbp), %rdx
	movq	%rdx, 8(%rax)
	jmp	.L8
.L7:
	movq	-16(%rbp), %rax
	movq	-8(%rbp), %rdx
	movq	%rdx, 16(%rax)
.L8:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	insert, .-insert
	.globl	find
	.type	find, @function
find:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movq	root(%rip), %rax
	movq	%rax, -8(%rbp)
.L15:
	cmpq	$0, -8(%rbp)
	jne	.L10
	movq	-8(%rbp), %rax
	jmp	.L11
.L10:
	movq	-8(%rbp), %rax
	movl	24(%rax), %eax
	cmpl	%eax, -20(%rbp)
	jne	.L12
	movq	-8(%rbp), %rax
	jmp	.L11
.L12:
	movq	-8(%rbp), %rax
	movl	24(%rax), %eax
	cmpl	%eax, -20(%rbp)
	jge	.L13
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -8(%rbp)
	jmp	.L15
.L13:
	movq	-8(%rbp), %rax
	movl	24(%rax), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L15
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, -8(%rbp)
	jmp	.L15
.L11:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	find, .-find
	.globl	delete
	.type	delete, @function
delete:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -36(%rbp)
	movl	-36(%rbp), %eax
	movl	%eax, %edi
	call	find
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	.L17
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	.L18
	movq	-8(%rbp), %rax
	movl	24(%rax), %edx
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movl	24(%rax), %eax
	cmpl	%eax, %edx
	jge	.L19
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	$0, 8(%rax)
	jmp	.L20
.L19:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movl	24(%rax), %edx
	movq	-8(%rbp), %rax
	movl	24(%rax), %eax
	cmpl	%eax, %edx
	jge	.L20
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	$0, 16(%rax)
	jmp	.L20
.L18:
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	.L20
	movq	-8(%rbp), %rax
	movl	24(%rax), %edx
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movl	24(%rax), %eax
	cmpl	%eax, %edx
	jge	.L21
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	-8(%rbp), %rdx
	movq	16(%rdx), %rdx
	movq	%rdx, 8(%rax)
	jmp	.L22
.L21:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movl	24(%rax), %edx
	movq	-8(%rbp), %rax
	movl	24(%rax), %eax
	cmpl	%eax, %edx
	jge	.L22
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	-8(%rbp), %rdx
	movq	16(%rdx), %rdx
	movq	%rdx, 16(%rax)
.L22:
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	-8(%rbp), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, (%rax)
	jmp	.L20
.L17:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	.L20
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	.L23
	movq	-8(%rbp), %rax
	movl	24(%rax), %edx
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movl	24(%rax), %eax
	cmpl	%eax, %edx
	jge	.L24
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	-8(%rbp), %rdx
	movq	8(%rdx), %rdx
	movq	%rdx, 8(%rax)
	jmp	.L25
.L24:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movl	24(%rax), %edx
	movq	-8(%rbp), %rax
	movl	24(%rax), %eax
	cmpl	%eax, %edx
	jge	.L25
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	-8(%rbp), %rdx
	movq	8(%rdx), %rdx
	movq	%rdx, 16(%rax)
.L25:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	-8(%rbp), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, (%rax)
	jmp	.L20
.L23:
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	.L20
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, -16(%rbp)
	jmp	.L26
.L27:
	movq	-16(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -16(%rbp)
.L26:
	movq	-16(%rbp), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	.L27
	movq	-16(%rbp), %rax
	movl	24(%rax), %eax
	movl	%eax, -20(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	delete
	movq	-8(%rbp), %rax
	movl	-20(%rbp), %edx
	movl	%edx, 24(%rax)
	jmp	.L16
.L20:
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	free@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	delete, .-delete
	.section	.rodata
.LC0:
	.string	" %d"
	.text
	.globl	inorderTreeWalk
	.type	inorderTreeWalk, @function
inorderTreeWalk:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	cmpq	$0, -8(%rbp)
	je	.L31
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, %rdi
	call	inorderTreeWalk
	movq	-8(%rbp), %rax
	movl	24(%rax), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, %rdi
	call	inorderTreeWalk
.L31:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	inorderTreeWalk, .-inorderTreeWalk
	.globl	preorderTreeWalk
	.type	preorderTreeWalk, @function
preorderTreeWalk:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	cmpq	$0, -8(%rbp)
	je	.L35
	movq	-8(%rbp), %rax
	movl	24(%rax), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, %rdi
	call	preorderTreeWalk
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, %rdi
	call	preorderTreeWalk
	jmp	.L32
.L35:
	nop
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	preorderTreeWalk, .-preorderTreeWalk
	.globl	printer
	.type	printer, @function
printer:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	root(%rip), %rax
	movq	%rax, %rdi
	call	inorderTreeWalk
	movl	$10, %edi
	call	putchar@PLT
	movq	root(%rip), %rax
	movq	%rax, %rdi
	call	preorderTreeWalk
	movl	$10, %edi
	call	putchar@PLT
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	printer, .-printer
	.section	.rodata
.LC1:
	.string	"%d "
.LC2:
	.string	"%s "
.LC3:
	.string	"insert"
.LC4:
	.string	"print"
.LC5:
	.string	"find"
.LC6:
	.string	"yes"
.LC7:
	.string	"no"
.LC8:
	.string	"delete"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -36(%rbp)
	jmp	.L38
.L44:
	leaq	-18(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-18(%rbp), %rax
	leaq	.LC3(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L39
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %eax
	movl	%eax, %edi
	call	insert
	jmp	.L40
.L39:
	leaq	-18(%rbp), %rax
	leaq	.LC4(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L41
	movl	$0, %eax
	call	printer
	jmp	.L40
.L41:
	leaq	-18(%rbp), %rax
	leaq	.LC5(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L42
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %eax
	movl	%eax, %edi
	call	find
	movq	%rax, -32(%rbp)
	cmpq	$0, -32(%rbp)
	je	.L43
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L40
.L43:
	leaq	.LC7(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L40
.L42:
	leaq	-18(%rbp), %rax
	leaq	.LC8(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L40
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %eax
	movl	%eax, %edi
	call	delete
.L40:
	addl	$1, -36(%rbp)
.L38:
	movl	-44(%rbp), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L44
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L46
	call	__stack_chk_fail@PLT
.L46:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.p2align 4
	.globl	insert
	.type	insert, @function
insert:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	%edi, %ebp
	movl	$32, %edi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	movq	root(%rip), %rbx
	call	malloc@PLT
	pxor	%xmm0, %xmm0
	movl	%ebp, 24(%rax)
	movups	%xmm0, 8(%rax)
	testq	%rbx, %rbx
	je	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rcx
	cmpl	24(%rbx), %ebp
	jge	.L3
.L14:
	testq	%rdx, %rdx
	je	.L13
	movq	%rdx, %rbx
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rcx
	cmpl	24(%rbx), %ebp
	jl	.L14
.L3:
	testq	%rcx, %rcx
	je	.L6
	movq	%rcx, %rbx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%rbx, (%rax)
	movq	%rax, 8(%rbx)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	movq	%rbx, (%rax)
	movq	%rax, 16(%rbx)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	movq	$0, (%rax)
	movq	%rax, root(%rip)
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE51:
	.size	insert, .-insert
	.p2align 4
	.globl	find
	.type	find, @function
find:
.LFB52:
	.cfi_startproc
	endbr64
	movq	root(%rip), %rax
	testq	%rax, %rax
	jne	.L27
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L28:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	.L15
.L27:
	movl	24(%rax), %edx
.L17:
	cmpl	%edi, %edx
	je	.L15
	jg	.L28
	jge	.L17
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	.L27
.L15:
	ret
	.cfi_endproc
.LFE52:
	.size	find, .-find
	.section	.text.unlikely,"ax",@progbits
.LCOLDB0:
	.text
.LHOTB0:
	.p2align 4
	.globl	delete
	.type	delete, @function
delete:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	movq	root(%rip), %rbp
	testq	%rbp, %rbp
	jne	.L56
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L57:
	movq	8(%rbp), %rbp
.L34:
	testq	%rbp, %rbp
	je	.L30
.L56:
	movl	24(%rbp), %eax
.L31:
	cmpl	%eax, %edi
	je	.L32
	jl	.L57
	jle	.L31
	movq	16(%rbp), %rbp
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L32:
	movq	8(%rbp), %rdx
	movq	16(%rbp), %rax
	testq	%rdx, %rdx
	je	.L58
	testq	%rax, %rax
	je	.L59
	.p2align 4,,10
	.p2align 3
.L42:
	movq	%rax, %rdx
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	.L42
	movl	24(%rdx), %ebx
	movl	%ebx, %edi
	call	delete
	movl	%ebx, 24(%rbp)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L59:
	.cfi_restore_state
	movq	0(%rbp), %rax
	cmpl	%edi, 24(%rax)
	jg	.L60
	jge	.L44
	movq	%rdx, 16(%rax)
.L44:
	movq	%rax, (%rdx)
.L39:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movq	%rbp, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	free@PLT
	.p2align 4,,10
	.p2align 3
.L58:
	.cfi_restore_state
	movq	0(%rbp), %rdx
	movl	24(%rdx), %ecx
	testq	%rax, %rax
	je	.L61
	cmpl	%ecx, %edi
	jl	.L62
	jle	.L41
	movq	%rax, 16(%rdx)
.L41:
	movq	%rdx, (%rax)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movq	%rbp, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	free@PLT
	.p2align 4,,10
	.p2align 3
.L60:
	.cfi_restore_state
	movq	%rdx, 8(%rax)
	jmp	.L44
	.p2align 4,,10
	.p2align 3
.L62:
	movq	%rax, 8(%rdx)
	jmp	.L41
.L61:
	cmpl	%ecx, %edi
	jl	.L63
	jle	.L39
	movq	$0, 16(%rdx)
	jmp	.L39
.L63:
	movq	$0, 8(%rdx)
	jmp	.L39
	.cfi_endproc
	.section	.text.unlikely
	.cfi_startproc
	.type	delete.cold, @function
delete.cold:
.LFSB53:
.L30:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -24
	.cfi_offset 6, -16
	movq	8, %rax
	ud2
	.cfi_endproc
.LFE53:
	.text
	.size	delete, .-delete
	.section	.text.unlikely
	.size	delete.cold, .-delete.cold
.LCOLDE0:
	.text
.LHOTE0:
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	" %d"
	.text
	.p2align 4
	.globl	inorderTreeWalk
	.type	inorderTreeWalk, @function
inorderTreeWalk:
.LFB54:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%rdi, 16(%rsp)
	testq	%rdi, %rdi
	je	.L64
	leaq	.LC1(%rip), %rbx
.L82:
	movq	16(%rsp), %rax
	movq	8(%rax), %rax
	movq	%rax, (%rsp)
	testq	%rax, %rax
	je	.L66
.L81:
	movq	(%rsp), %rax
	movq	8(%rax), %rax
	movq	%rax, 8(%rsp)
	testq	%rax, %rax
	je	.L67
.L80:
	movq	8(%rsp), %rax
	movq	8(%rax), %r15
	testq	%r15, %r15
	je	.L68
.L79:
	movq	8(%r15), %rbp
	testq	%rbp, %rbp
	je	.L69
.L78:
	movq	8(%rbp), %r13
	testq	%r13, %r13
	je	.L70
.L77:
	movq	8(%r13), %r12
	testq	%r12, %r12
	je	.L71
.L76:
	movq	8(%r12), %r14
	testq	%r14, %r14
	je	.L72
.L75:
	movq	8(%r14), %r10
	testq	%r10, %r10
	je	.L73
.L74:
	movq	8(%r10), %rdi
	movq	%r10, 24(%rsp)
	call	inorderTreeWalk
	movq	24(%rsp), %r10
	movq	%rbx, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	movl	24(%r10), %edx
	call	__printf_chk@PLT
	movq	24(%rsp), %r10
	movq	16(%r10), %r10
	testq	%r10, %r10
	jne	.L74
.L73:
	movl	24(%r14), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%r14), %r14
	testq	%r14, %r14
	jne	.L75
.L72:
	movl	24(%r12), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%r12), %r12
	testq	%r12, %r12
	jne	.L76
.L71:
	movl	24(%r13), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%r13), %r13
	testq	%r13, %r13
	jne	.L77
.L70:
	movl	24(%rbp), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%rbp), %rbp
	testq	%rbp, %rbp
	jne	.L78
.L69:
	movl	24(%r15), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%r15), %r15
	testq	%r15, %r15
	jne	.L79
.L68:
	movq	8(%rsp), %r15
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	24(%r15), %edx
	call	__printf_chk@PLT
	movq	16(%r15), %rax
	movq	%rax, 8(%rsp)
	testq	%rax, %rax
	jne	.L80
.L67:
	movq	(%rsp), %r15
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	24(%r15), %edx
	call	__printf_chk@PLT
	movq	16(%r15), %rax
	movq	%rax, (%rsp)
	testq	%rax, %rax
	jne	.L81
.L66:
	movq	16(%rsp), %r14
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	24(%r14), %edx
	call	__printf_chk@PLT
	movq	16(%r14), %rax
	movq	%rax, 16(%rsp)
	testq	%rax, %rax
	jne	.L82
.L64:
	addq	$40, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE54:
	.size	inorderTreeWalk, .-inorderTreeWalk
	.p2align 4
	.globl	preorderTreeWalk
	.type	preorderTreeWalk, @function
preorderTreeWalk:
.LFB55:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%rdi, 16(%rsp)
	testq	%rdi, %rdi
	je	.L120
	leaq	.LC1(%rip), %rbx
.L121:
	movq	16(%rsp), %r15
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	24(%r15), %edx
	call	__printf_chk@PLT
	movq	8(%r15), %rax
	movq	%rax, (%rsp)
	testq	%rax, %rax
	je	.L122
.L137:
	movq	(%rsp), %r15
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	24(%r15), %edx
	call	__printf_chk@PLT
	movq	8(%r15), %rax
	movq	%rax, 8(%rsp)
	testq	%rax, %rax
	je	.L123
.L136:
	movq	8(%rsp), %r14
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	24(%r14), %edx
	call	__printf_chk@PLT
	movq	8(%r14), %r15
	testq	%r15, %r15
	je	.L124
.L135:
	movl	24(%r15), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%r15), %rbp
	testq	%rbp, %rbp
	je	.L125
.L134:
	movl	24(%rbp), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%rbp), %r13
	testq	%r13, %r13
	je	.L126
.L133:
	movl	24(%r13), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%r13), %r12
	testq	%r12, %r12
	je	.L127
.L132:
	movl	24(%r12), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%r12), %r14
	testq	%r14, %r14
	je	.L128
.L131:
	movl	24(%r14), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%r14), %r10
	testq	%r10, %r10
	je	.L129
.L130:
	movl	24(%r10), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%r10, 24(%rsp)
	call	__printf_chk@PLT
	movq	24(%rsp), %r10
	movq	8(%r10), %rdi
	call	preorderTreeWalk
	movq	24(%rsp), %r10
	movq	16(%r10), %r10
	testq	%r10, %r10
	jne	.L130
.L129:
	movq	16(%r14), %r14
	testq	%r14, %r14
	jne	.L131
.L128:
	movq	16(%r12), %r12
	testq	%r12, %r12
	jne	.L132
.L127:
	movq	16(%r13), %r13
	testq	%r13, %r13
	jne	.L133
.L126:
	movq	16(%rbp), %rbp
	testq	%rbp, %rbp
	jne	.L134
.L125:
	movq	16(%r15), %r15
	testq	%r15, %r15
	jne	.L135
.L124:
	movq	8(%rsp), %rax
	movq	16(%rax), %rax
	movq	%rax, 8(%rsp)
	testq	%rax, %rax
	jne	.L136
.L123:
	movq	(%rsp), %rax
	movq	16(%rax), %rax
	movq	%rax, (%rsp)
	testq	%rax, %rax
	jne	.L137
.L122:
	movq	16(%rsp), %rax
	movq	16(%rax), %rax
	movq	%rax, 16(%rsp)
	testq	%rax, %rax
	jne	.L121
.L120:
	addq	$40, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE55:
	.size	preorderTreeWalk, .-preorderTreeWalk
	.p2align 4
	.globl	printer
	.type	printer, @function
printer:
.LFB56:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	movq	root(%rip), %rbx
	testq	%rbx, %rbx
	je	.L178
	leaq	.LC1(%rip), %rbp
.L179:
	movq	8(%rbx), %rdi
	call	inorderTreeWalk
	movl	24(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	jne	.L179
.L178:
	movl	$10, %edi
	call	putchar@PLT
	movq	root(%rip), %rbx
	testq	%rbx, %rbx
	je	.L180
	leaq	.LC1(%rip), %rbp
.L181:
	movl	24(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%rbx), %rdi
	call	preorderTreeWalk
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	jne	.L181
.L180:
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	movl	$10, %edi
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	putchar@PLT
	.cfi_endproc
.LFE56:
	.size	printer, .-printer
	.section	.rodata.str1.1
.LC2:
	.string	"%d "
.LC3:
	.string	"%s "
.LC4:
	.string	"insert"
.LC5:
	.string	"print"
.LC6:
	.string	"find"
.LC7:
	.string	"delete"
.LC8:
	.string	"no"
.LC9:
	.string	"yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB57:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC2(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	testl	%eax, %eax
	jle	.L192
	leaq	24(%rsp), %rax
	xorl	%ebp, %ebp
	leaq	30(%rsp), %rbx
	movq	%rax, (%rsp)
	leaq	.LC3(%rip), %r13
	leaq	.LC1(%rip), %r12
	jmp	.L221
	.p2align 4,,10
	.p2align 3
.L193:
	cmpl	$1852404336, (%rbx)
	je	.L247
.L203:
	cmpl	$1684957542, (%rbx)
	je	.L248
.L210:
	cmpl	$1701602660, (%rbx)
	je	.L249
.L202:
	addl	$1, %ebp
	cmpl	%ebp, 20(%rsp)
	jle	.L192
.L221:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1702063721, (%rbx)
	jne	.L193
	cmpw	$29810, 4(%rbx)
	jne	.L193
	cmpb	$0, 6(%rbx)
	jne	.L193
	movq	(%rsp), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	$32, %edi
	movl	24(%rsp), %r15d
	movq	root(%rip), %rdx
	movq	%rdx, 8(%rsp)
	call	malloc@PLT
	movq	8(%rsp), %rdx
	pxor	%xmm0, %xmm0
	movl	%r15d, 24(%rax)
	movups	%xmm0, 8(%rax)
	testq	%rdx, %rdx
	je	.L250
	.p2align 4,,10
	.p2align 3
.L201:
	movq	8(%rdx), %rsi
	movq	16(%rdx), %rcx
	cmpl	24(%rdx), %r15d
	jl	.L197
.L252:
	testq	%rcx, %rcx
	je	.L251
	movq	%rcx, %rdx
	movq	8(%rdx), %rsi
	movq	16(%rdx), %rcx
	cmpl	24(%rdx), %r15d
	jge	.L252
.L197:
	testq	%rsi, %rsi
	je	.L200
	movq	%rsi, %rdx
	jmp	.L201
	.p2align 4,,10
	.p2align 3
.L247:
	cmpw	$116, 4(%rbx)
	jne	.L203
	movq	root(%rip), %r15
	testq	%r15, %r15
	je	.L206
	.p2align 4,,10
	.p2align 3
.L207:
	movq	8(%r15), %rdi
	call	inorderTreeWalk
	movl	24(%r15), %edx
	movq	%r12, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	16(%r15), %r15
	testq	%r15, %r15
	jne	.L207
.L206:
	movl	$10, %edi
	call	putchar@PLT
	movq	root(%rip), %r15
	testq	%r15, %r15
	je	.L208
.L209:
	movl	24(%r15), %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%r15), %rdi
	call	preorderTreeWalk
	movq	16(%r15), %r15
	testq	%r15, %r15
	jne	.L209
.L208:
	movl	$10, %edi
	addl	$1, %ebp
	call	putchar@PLT
	cmpl	%ebp, 20(%rsp)
	jg	.L221
	.p2align 4,,10
	.p2align 3
.L192:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L253
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L248:
	.cfi_restore_state
	cmpb	$0, 4(%rbx)
	jne	.L210
	movq	(%rsp), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	root(%rip), %rax
	movl	24(%rsp), %ecx
	testq	%rax, %rax
	jne	.L246
	jmp	.L213
	.p2align 4,,10
	.p2align 3
.L254:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	.L213
.L246:
	movl	24(%rax), %edx
.L214:
	cmpl	%edx, %ecx
	je	.L215
	jl	.L254
	jle	.L214
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	.L246
.L213:
	leaq	.LC8(%rip), %rdi
	call	puts@PLT
	jmp	.L202
	.p2align 4,,10
	.p2align 3
.L249:
	cmpw	$25972, 4(%rbx)
	jne	.L202
	cmpb	$0, 6(%rbx)
	jne	.L202
	movq	(%rsp), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %edi
	call	delete
	jmp	.L202
	.p2align 4,,10
	.p2align 3
.L251:
	movq	%rdx, (%rax)
	movq	%rax, 16(%rdx)
	jmp	.L202
	.p2align 4,,10
	.p2align 3
.L200:
	movq	%rdx, (%rax)
	movq	%rax, 8(%rdx)
	jmp	.L202
.L250:
	movq	$0, (%rax)
	movq	%rax, root(%rip)
	jmp	.L202
.L215:
	leaq	.LC9(%rip), %rdi
	call	puts@PLT
	jmp	.L202
.L253:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE57:
	.size	main, .-main
	.globl	root
	.bss
	.align 8
	.type	root, @object
	.size	root, 8
root:
	.zero	8
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:

rule
	.file	"temp.c"
	.text
	.p2align 4
	.globl	insert
	.type	insert, @function
insert:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	%edi, %ebp
	movl	$32, %edi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	movq	root(%rip), %rbx
	call	malloc@PLT
	pxor	%xmm0, %xmm0
	movl	%ebp, 24(%rax)
	movups	%xmm0, 8(%rax)
	testq	%rbx, %rbx
	je	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rcx
	cmpl	24(%rbx), %ebp
	jge	.L3
.L14:
	testq	%rdx, %rdx
	je	.L13
	movq	%rdx, %rbx
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rcx
	cmpl	24(%rbx), %ebp
	jl	.L14
.L3:
	testq	%rcx, %rcx
	je	.L6
	movq	%rcx, %rbx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%rbx, (%rax)
	movq	%rax, 8(%rbx)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	movq	%rbx, (%rax)
	movq	%rax, 16(%rbx)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	movq	$0, (%rax)
	movq	%rax, root(%rip)
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE51:
	.size	insert, .-insert
	.p2align 4
	.globl	find
	.type	find, @function
find:
.LFB52:
	.cfi_startproc
	endbr64
	movq	root(%rip), %rax
	testq	%rax, %rax
	jne	.L27
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L28:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	.L15
.L27:
	movl	24(%rax), %edx
.L17:
	cmpl	%edi, %edx
	je	.L15
	jg	.L28
	jge	.L17
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	.L27
.L15:
	ret
	.cfi_endproc
.LFE52:
	.size	find, .-find
	.section	.text.unlikely,"ax",@progbits
.LCOLDB0:
	.text
.LHOTB0:
	.p2align 4
	.globl	delete
	.type	delete, @function
delete:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	movq	root(%rip), %rbp
	testq	%rbp, %rbp
	jne	.L56
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L57:
	movq	8(%rbp), %rbp
.L34:
	testq	%rbp, %rbp
	je	.L30
.L56:
	movl	24(%rbp), %eax
.L31:
	cmpl	%eax, %edi
	je	.L32
	jl	.L57
	jle	.L31
	movq	16(%rbp), %rbp
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L32:
	movq	8(%rbp), %rdx
	movq	16(%rbp), %rax
	testq	%rdx, %rdx
	je	.L58
	testq	%rax, %rax
	je	.L59
	.p2align 4,,10
	.p2align 3
.L42:
	movq	%rax, %rdx
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	.L42
	movl	24(%rdx), %ebx
	movl	%ebx, %edi
	call	delete
	movl	%ebx, 24(%rbp)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L59:
	.cfi_restore_state
	movq	0(%rbp), %rax
	cmpl	%edi, 24(%rax)
	jg	.L60
	jge	.L44
	movq	%rdx, 16(%rax)
.L44:
	movq	%rax, (%rdx)
.L39:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movq	%rbp, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	free@PLT
	.p2align 4,,10
	.p2align 3
.L58:
	.cfi_restore_state
	movq	0(%rbp), %rdx
	movl	24(%rdx), %ecx
	testq	%rax, %rax
	je	.L61
	cmpl	%ecx, %edi
	jl	.L62
	jle	.L41
	movq	%rax, 16(%rdx)
.L41:
	movq	%rdx, (%rax)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movq	%rbp, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	free@PLT
	.p2align 4,,10
	.p2align 3
.L60:
	.cfi_restore_state
	movq	%rdx, 8(%rax)
	jmp	.L44
	.p2align 4,,10
	.p2align 3
.L62:
	movq	%rax, 8(%rdx)
	jmp	.L41
.L61:
	cmpl	%ecx, %edi
	jl	.L63
	jle	.L39
	movq	$0, 16(%rdx)
	jmp	.L39
.L63:
	movq	$0, 8(%rdx)
	jmp	.L39
	.cfi_endproc
	.section	.text.unlikely
	.cfi_startproc
	.type	delete.cold, @function
delete.cold:
.LFSB53:
.L30:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -24
	.cfi_offset 6, -16
	movq	8, %rax
	ud2
	.cfi_endproc
.LFE53:
	.text
	.size	delete, .-delete
	.section	.text.unlikely
	.size	delete.cold, .-delete.cold
.LCOLDE0:
	.text
.LHOTE0:
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	" %d"
	.text
	.p2align 4
	.globl	inorderTreeWalk
	.type	inorderTreeWalk, @function
inorderTreeWalk:
.LFB54:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%rdi, 16(%rsp)
	testq	%rdi, %rdi
	je	.L64
	leaq	.LC1(%rip), %rbx
.L82:
	movq	16(%rsp), %rax
	movq	8(%rax), %rax
	movq	%rax, (%rsp)
	testq	%rax, %rax
	je	.L66
.L81:
	movq	(%rsp), %rax
	movq	8(%rax), %rax
	movq	%rax, 8(%rsp)
	testq	%rax, %rax
	je	.L67
.L80:
	movq	8(%rsp), %rax
	movq	8(%rax), %r15
	testq	%r15, %r15
	je	.L68
.L79:
	movq	8(%r15), %rbp
	testq	%rbp, %rbp
	je	.L69
.L78:
	movq	8(%rbp), %r13
	testq	%r13, %r13
	je	.L70
.L77:
	movq	8(%r13), %r12
	testq	%r12, %r12
	je	.L71
.L76:
	movq	8(%r12), %r14
	testq	%r14, %r14
	je	.L72
.L75:
	movq	8(%r14), %r10
	testq	%r10, %r10
	je	.L73
.L74:
	movq	8(%r10), %rdi
	movq	%r10, 24(%rsp)
	call	inorderTreeWalk
	movq	24(%rsp), %r10
	movq	%rbx, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	movl	24(%r10), %edx
	call	__printf_chk@PLT
	movq	24(%rsp), %r10
	movq	16(%r10), %r10
	testq	%r10, %r10
	jne	.L74
.L73:
	movl	24(%r14), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%r14), %r14
	testq	%r14, %r14
	jne	.L75
.L72:
	movl	24(%r12), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%r12), %r12
	testq	%r12, %r12
	jne	.L76
.L71:
	movl	24(%r13), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%r13), %r13
	testq	%r13, %r13
	jne	.L77
.L70:
	movl	24(%rbp), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%rbp), %rbp
	testq	%rbp, %rbp
	jne	.L78
.L69:
	movl	24(%r15), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%r15), %r15
	testq	%r15, %r15
	jne	.L79
.L68:
	movq	8(%rsp), %r15
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	24(%r15), %edx
	call	__printf_chk@PLT
	movq	16(%r15), %rax
	movq	%rax, 8(%rsp)
	testq	%rax, %rax
	jne	.L80
.L67:
	movq	(%rsp), %r15
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	24(%r15), %edx
	call	__printf_chk@PLT
	movq	16(%r15), %rax
	movq	%rax, (%rsp)
	testq	%rax, %rax
	jne	.L81
.L66:
	movq	16(%rsp), %r14
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	24(%r14), %edx
	call	__printf_chk@PLT
	movq	16(%r14), %rax
	movq	%rax, 16(%rsp)
	testq	%rax, %rax
	jne	.L82
.L64:
	addq	$40, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE54:
	.size	inorderTreeWalk, .-inorderTreeWalk
	.p2align 4
	.globl	preorderTreeWalk
	.type	preorderTreeWalk, @function
preorderTreeWalk:
.LFB55:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%rdi, 16(%rsp)
	testq	%rdi, %rdi
	je	.L120
	leaq	.LC1(%rip), %rbx
.L121:
	movq	16(%rsp), %r15
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	24(%r15), %edx
	call	__printf_chk@PLT
	movq	8(%r15), %rax
	movq	%rax, (%rsp)
	testq	%rax, %rax
	je	.L122
.L137:
	movq	(%rsp), %r15
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	24(%r15), %edx
	call	__printf_chk@PLT
	movq	8(%r15), %rax
	movq	%rax, 8(%rsp)
	testq	%rax, %rax
	je	.L123
.L136:
	movq	8(%rsp), %r14
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	24(%r14), %edx
	call	__printf_chk@PLT
	movq	8(%r14), %r15
	testq	%r15, %r15
	je	.L124
.L135:
	movl	24(%r15), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%r15), %rbp
	testq	%rbp, %rbp
	je	.L125
.L134:
	movl	24(%rbp), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%rbp), %r13
	testq	%r13, %r13
	je	.L126
.L133:
	movl	24(%r13), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%r13), %r12
	testq	%r12, %r12
	je	.L127
.L132:
	movl	24(%r12), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%r12), %r14
	testq	%r14, %r14
	je	.L128
.L131:
	movl	24(%r14), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%r14), %r10
	testq	%r10, %r10
	je	.L129
.L130:
	movl	24(%r10), %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%r10, 24(%rsp)
	call	__printf_chk@PLT
	movq	24(%rsp), %r10
	movq	8(%r10), %rdi
	call	preorderTreeWalk
	movq	24(%rsp), %r10
	movq	16(%r10), %r10
	testq	%r10, %r10
	jne	.L130
.L129:
	movq	16(%r14), %r14
	testq	%r14, %r14
	jne	.L131
.L128:
	movq	16(%r12), %r12
	testq	%r12, %r12
	jne	.L132
.L127:
	movq	16(%r13), %r13
	testq	%r13, %r13
	jne	.L133
.L126:
	movq	16(%rbp), %rbp
	testq	%rbp, %rbp
	jne	.L134
.L125:
	movq	16(%r15), %r15
	testq	%r15, %r15
	jne	.L135
.L124:
	movq	8(%rsp), %rax
	movq	16(%rax), %rax
	movq	%rax, 8(%rsp)
	testq	%rax, %rax
	jne	.L136
.L123:
	movq	(%rsp), %rax
	movq	16(%rax), %rax
	movq	%rax, (%rsp)
	testq	%rax, %rax
	jne	.L137
.L122:
	movq	16(%rsp), %rax
	movq	16(%rax), %rax
	movq	%rax, 16(%rsp)
	testq	%rax, %rax
	jne	.L121
.L120:
	addq	$40, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE55:
	.size	preorderTreeWalk, .-preorderTreeWalk
	.p2align 4
	.globl	printer
	.type	printer, @function
printer:
.LFB56:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	movq	root(%rip), %rbx
	testq	%rbx, %rbx
	je	.L178
	leaq	.LC1(%rip), %rbp
.L179:
	movq	8(%rbx), %rdi
	call	inorderTreeWalk
	movl	24(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	jne	.L179
.L178:
	movl	$10, %edi
	call	putchar@PLT
	movq	root(%rip), %rbx
	testq	%rbx, %rbx
	je	.L180
	leaq	.LC1(%rip), %rbp
.L181:
	movl	24(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%rbx), %rdi
	call	preorderTreeWalk
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	jne	.L181
.L180:
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	movl	$10, %edi
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	putchar@PLT
	.cfi_endproc
.LFE56:
	.size	printer, .-printer
	.section	.rodata.str1.1
.LC2:
	.string	"%d "
.LC3:
	.string	"%s "
.LC4:
	.string	"insert"
.LC5:
	.string	"print"
.LC6:
	.string	"find"
.LC7:
	.string	"delete"
.LC8:
	.string	"no"
.LC9:
	.string	"yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB57:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC2(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	testl	%eax, %eax
	jle	.L192
	leaq	24(%rsp), %rax
	xorl	%ebp, %ebp
	leaq	30(%rsp), %rbx
	movq	%rax, (%rsp)
	leaq	.LC3(%rip), %r13
	leaq	.LC1(%rip), %r12
	jmp	.L221
	.p2align 4,,10
	.p2align 3
.L193:
	cmpl	$1852404336, (%rbx)
	je	.L247
.L203:
	cmpl	$1684957542, (%rbx)
	je	.L248
.L210:
	cmpl	$1701602660, (%rbx)
	je	.L249
.L202:
	addl	$1, %ebp
	cmpl	%ebp, 20(%rsp)
	jle	.L192
.L221:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1702063721, (%rbx)
	jne	.L193
	cmpw	$29810, 4(%rbx)
	jne	.L193
	cmpb	$0, 6(%rbx)
	jne	.L193
	movq	(%rsp), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	$32, %edi
	movl	24(%rsp), %r15d
	movq	root(%rip), %rdx
	movq	%rdx, 8(%rsp)
	call	malloc@PLT
	movq	8(%rsp), %rdx
	pxor	%xmm0, %xmm0
	movl	%r15d, 24(%rax)
	movups	%xmm0, 8(%rax)
	testq	%rdx, %rdx
	je	.L250
	.p2align 4,,10
	.p2align 3
.L201:
	movq	8(%rdx), %rsi
	movq	16(%rdx), %rcx
	cmpl	24(%rdx), %r15d
	jl	.L197
.L252:
	testq	%rcx, %rcx
	je	.L251
	movq	%rcx, %rdx
	movq	8(%rdx), %rsi
	movq	16(%rdx), %rcx
	cmpl	24(%rdx), %r15d
	jge	.L252
.L197:
	testq	%rsi, %rsi
	je	.L200
	movq	%rsi, %rdx
	jmp	.L201
	.p2align 4,,10
	.p2align 3
.L247:
	cmpw	$116, 4(%rbx)
	jne	.L203
	movq	root(%rip), %r15
	testq	%r15, %r15
	je	.L206
	.p2align 4,,10
	.p2align 3
.L207:
	movq	8(%r15), %rdi
	call	inorderTreeWalk
	movl	24(%r15), %edx
	movq	%r12, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	16(%r15), %r15
	testq	%r15, %r15
	jne	.L207
.L206:
	movl	$10, %edi
	call	putchar@PLT
	movq	root(%rip), %r15
	testq	%r15, %r15
	je	.L208
.L209:
	movl	24(%r15), %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%r15), %rdi
	call	preorderTreeWalk
	movq	16(%r15), %r15
	testq	%r15, %r15
	jne	.L209
.L208:
	movl	$10, %edi
	addl	$1, %ebp
	call	putchar@PLT
	cmpl	%ebp, 20(%rsp)
	jg	.L221
	.p2align 4,,10
	.p2align 3
.L192:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L253
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L248:
	.cfi_restore_state
	cmpb	$0, 4(%rbx)
	jne	.L210
	movq	(%rsp), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	root(%rip), %rax
	movl	24(%rsp), %ecx
	testq	%rax, %rax
	jne	.L246
	jmp	.L213
	.p2align 4,,10
	.p2align 3
.L254:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	.L213
.L246:
	movl	24(%rax), %edx
.L214:
	cmpl	%edx, %ecx
	je	.L215
	jl	.L254
	jle	.L214
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	.L246
.L213:
	leaq	.LC8(%rip), %rdi
	call	puts@PLT
	jmp	.L202
	.p2align 4,,10
	.p2align 3
.L249:
	cmpw	$25972, 4(%rbx)
	jne	.L202
	cmpb	$0, 6(%rbx)
	jne	.L202
	movq	(%rsp), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %edi
	call	delete
	jmp	.L202
	.p2align 4,,10
	.p2align 3
.L251:
	movq	%rdx, (%rax)
	movq	%rax, 16(%rdx)
	jmp	.L202
	.p2align 4,,10
	.p2align 3
.L200:
	movq	%rdx, (%rax)
	movq	%rax, 8(%rdx)
	jmp	.L202
.L250:
	movq	$0, (%rax)
	movq	%rax, root(%rip)
	jmp	.L202
.L215:
	leaq	.LC9(%rip), %rdi
	call	puts@PLT
	jmp	.L202
.L253:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE57:
	.size	main, .-main
	.globl	root
	.bss
	.align 8
	.type	root, @object
	.size	root, 8
root:
	.zero	8
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

typedef struct d {
  struct d *parent;
  struct d *left;
  struct d *right;
  int key;
} node;
typedef node * Node;

Node root;

void insert(int key){
  Node x = root;
  Node y = NULL;
  Node z;

  z = (Node)malloc(sizeof(node));
  z->key = key;
  z->left = NULL;
  z->right = NULL;

  while(x != NULL){
    y = x;
    if(z->key < x->key){
      x = x->left;
    }
    else{
      x = x->right;
    }
  }
  z->parent = y;

  if(y == NULL){
    root = z;
  }
  else if (z->key < y->key){
    y->left = z;
  }
  else{
    y->right = z;
  }
}

Node find(int key){
  Node x = root;

  while(1){
    if(x == NULL){
      // puts("no");
      return x;
    }
    else if(x->key == key){
      // puts("yes");
      return x;
    }
    else if(key < x->key){
      x = x->left;
    }
    else if(x->key < key){
      x = x->right;
    }
  }
}

void delete(int key){
  Node x = find(key);
  Node y;
  int temp;

  // printf("k:%d l:",x->key);
  // if(x->left != NULL) printf("%d",x->left->key);
  // else printf("NULL");
  // printf(" r:");
  // if(x->right != NULL) printf("%d\n",x->right->key);
  // else printf("NULL\n");

  // 左側に子孫なし
  if(x->left == NULL){
    // 右側に子孫なし
    if(x->right == NULL){
      // puts("XX");
      // 親の左側についているとき
      if(x->key < x->parent->key){
        x->parent->left = NULL;
      }
      // 親の右側についているとき
      else if(x->parent->key < x->key){
        x->parent->right = NULL;
      }
    }
    // 右側に子孫あり
    else if(x->right != NULL){
      // puts("XO");
      // 親の左側についているとき
      if(x->key < x->parent->key){
        x->parent->left = x->right;
      }
      // 親の右側についているとき
      else if(x->parent->key < x->key){
        x->parent->right = x->right;
      }
      x->right->parent = x->parent;
    }
  }
  // 左側に子孫あり
  else if(x->left != NULL){
    // 右側に子孫なし
    if(x->right == NULL){
      // puts("OX");
      // 親の左側についているとき
      if(x->key < x->parent->key){
        x->parent->left = x->left;
      }
      // 親の右側についているとき
      else if(x->parent->key < x->key){
        x->parent->right = x->left;
      }
      x->left->parent = x->parent;
    }
    // 右側に子孫あり
    else if(x->right != NULL){
      // puts("OO");
      y = x->right;
      while(y->left != NULL){
        y = y->left;
      }
      temp = y->key;
      delete(temp);
      x->key = temp;
      return;
    }
  }
  free(x);
}

void inorderTreeWalk(Node x){
  if(x != NULL){
    inorderTreeWalk(x->left);
    printf(" %d",x->key);
    inorderTreeWalk(x->right);
  }
}

void preorderTreeWalk(Node x){
  if(x == NULL){
    return;
  }
  printf(" %d",x->key);
  preorderTreeWalk(x->left);
  preorderTreeWalk(x->right);
}

void printer(){
  inorderTreeWalk(root);
  printf("\n");
  preorderTreeWalk(root);
  printf("\n");
}

int main(){
  int i, n, key;
  char command[10];
  Node x;

  scanf("%d ",&n);
  for(i=0; i<n; i++){
    scanf("%s ",command);
    if(!strcmp(command, "insert")){
      scanf("%d ",&key);
      insert(key);
    }
    else if(!strcmp(command, "print")){
      printer();
      // puts("printer");
    }
    else if(!strcmp(command, "find")){
      scanf("%d ",&key);
      x = find(key);
      if(x != NULL) puts("yes");
      else puts("no");
    }
    else if(!strcmp(command, "delete")){
      // puts("---delete---");
      scanf("%d ",&key);
      delete(key);
      // puts("===delete===");
    }
  }

  return 0;
}


18
insert 8
insert 2
insert 3
insert 7
insert 22
insert 1
find 1
find 2
find 1
find 4
find 5
find 6
find 7
find 8
print
delete 3
delete 7
print
 18
insert 8
insert 2
insert 3
insert 7
insert 22
insert 1
find 1
find 2
find 3
find 4
find 5
find 6
find 4
find 7
print
delete 3
delete 7
print
 18
insert 8
insert 2
insert 3
insert 7
insert 22
insert 1
find 1
find 2
find 3
find 7
find 5
find 6
find 4
find 7
print
delete 3
delete 7
print
 18
insert 8
insert 2
insert 3
insert 7
insert 22
insert 1
find 1
find 2
find 3
find 4
find 5
find 7
find 4
find 7
print
delete 3
delete 7
print
 18
insert 8
insert 2
insert 3
insert 7
insert 22
insert 1
find 1
find 2
find 3
find 4
find 5
find 6
find 7
find 5
print
delete 3
delete 7
print
 18
insert 8
insert 2
insert 3
insert 7
insert 22
insert 1
find 1
find 1
find 3
find 4
find 2
find 6
find 7
find 7
print
delete 3
delete 7
print
 18
insert 8
insert 2
insert 3
insert 7
insert 22
insert 1
find 0
find 2
find 3
find 4
find 5
find 6
find 7
find 5
print
delete 3
delete 7
print
 18
insert 9
insert 2
insert 3
insert 7
insert 22
insert 1
find 1
find 1
find 3
find 4
find 2
find 6
find 7
find 7
print
delete 3
delete 7
print
 18
insert 8
insert 4
insert 3
insert 7
insert 22
insert 1
find 1
find 2
find 1
find 4
find 5
find 6
find 7
find 8
print
delete 3
delete 7
print
 18
insert 8
insert 2
insert 3
insert 7
insert 22
insert 1
find 1
find 1
find 0
find 4
find 5
find 6
find 4
find 7
print
delete 3
delete 7
print

yes
yes
yes
no
no
no
yes
yes
 1 2 3 7 8 22
 8 2 1 3 7 22
 1 2 8 22
 8 2 1 22
 yes
yes
yes
no
no
no
no
yes
 1 2 3 7 8 22
 8 2 1 3 7 22
 1 2 8 22
 8 2 1 22
 yes
yes
yes
yes
no
no
no
yes
 1 2 3 7 8 22
 8 2 1 3 7 22
 1 2 8 22
 8 2 1 22
 yes
yes
yes
no
no
yes
no
yes
 1 2 3 7 8 22
 8 2 1 3 7 22
 1 2 8 22
 8 2 1 22
 yes
yes
yes
no
no
no
yes
no
 1 2 3 7 8 22
 8 2 1 3 7 22
 1 2 8 22
 8 2 1 22
 yes
yes
yes
no
yes
no
yes
yes
 1 2 3 7 8 22
 8 2 1 3 7 22
 1 2 8 22
 8 2 1 22
 no
yes
yes
no
no
no
yes
no
 1 2 3 7 8 22
 8 2 1 3 7 22
 1 2 8 22
 8 2 1 22
 yes
yes
yes
no
yes
no
yes
yes
 1 2 3 7 9 22
 9 2 1 3 7 22
 1 2 9 22
 9 2 1 22
 yes
no
yes
yes
no
no
yes
yes
 1 3 4 7 8 22
 8 4 3 1 7 22
 1 4 8 22
 8 4 1 22
 yes
yes
no
no
no
no
no
yes
 1 2 3 7 8 22
 8 2 1 3 7 22
 1 2 8 22
 8 2 1 22

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

typedef struct d {
  struct d *parent;
  struct d *left;
  struct d *right;
  int key;
} node;
typedef node * Node;

Node root;

void insert(int key){
  Node x = root;
  Node y = NULL;
  Node z;

  z = (Node)malloc(sizeof(node));
  z->key = key;
  z->left = NULL;
  z->right = NULL;

  while(x != NULL){
    y = x;
    if(z->key < x->key){
      x = x->left;
    }
    else{
      x = x->right;
    }
  }
  z->parent = y;

  if(y == NULL){
    root = z;
  }
  else if (z->key < y->key){
    y->left = z;
  }
  else{
    y->right = z;
  }
}

Node find(int key){
  Node x = root;

  while(1){
    if(x == NULL){
      // puts("no");
      return x;
    }
    else if(x->key == key){
      // puts("yes");
      return x;
    }
    else if(key < x->key){
      x = x->left;
    }
    else if(x->key < key){
      x = x->right;
    }
  }
}

void delete(int key){
  Node x = find(key);
  Node y;
  int temp;

  // printf("k:%d l:",x->key);
  // if(x->left != NULL) printf("%d",x->left->key);
  // else printf("NULL");
  // printf(" r:");
  // if(x->right != NULL) printf("%d\n",x->right->key);
  // else printf("NULL\n");

  // 左側に子孫なし
  if(x->left == NULL){
    // 右側に子孫なし
    if(x->right == NULL){
      // puts("XX");
      // 親の左側についているとき
      if(x->key < x->parent->key){
        x->parent->left = NULL;
      }
      // 親の右側についているとき
      else if(x->parent->key < x->key){
        x->parent->right = NULL;
      }
    }
    // 右側に子孫あり
    else if(x->right != NULL){
      // puts("XO");
      // 親の左側についているとき
      if(x->key < x->parent->key){
        x->parent->left = x->right;
      }
      // 親の右側についているとき
      else if(x->parent->key < x->key){
        x->parent->right = x->right;
      }
      x->right->parent = x->parent;
    }
  }
  // 左側に子孫あり
  else if(x->left != NULL){
    // 右側に子孫なし
    if(x->right == NULL){
      // puts("OX");
      // 親の左側についているとき
      if(x->key < x->parent->key){
        x->parent->left = x->left;
      }
      // 親の右側についているとき
      else if(x->parent->key < x->key){
        x->parent->right = x->left;
      }
      x->left->parent = x->parent;
    }
    // 右側に子孫あり
    else if(x->right != NULL){
      // puts("OO");
      y = x->right;
      while(y->left != NULL){
        y = y->left;
      }
      temp = y->key;
      delete(temp);
      x->key = temp;
      return;
    }
  }
  free(x);
}

void inorderTreeWalk(Node x){
  if(x != NULL){
    inorderTreeWalk(x->left);
    printf(" %d",x->key);
    inorderTreeWalk(x->right);
  }
}

void preorderTreeWalk(Node x){
  if(x == NULL){
    return;
  }
  printf(" %d",x->key);
  preorderTreeWalk(x->left);
  preorderTreeWalk(x->right);
}

void printer(){
  inorderTreeWalk(root);
  printf("\n");
  preorderTreeWalk(root);
  printf("\n");
}

int main(){
  int i, n, key;
  char command[10];
  Node x;

  scanf("%d ",&n);
  for(i=0; i<n; i++){
    scanf("%s ",command);
    if(!strcmp(command, "insert")){
      scanf("%d ",&key);
      insert(key);
    }
    else if(!strcmp(command, "print")){
      printer();
      // puts("printer");
    }
    else if(!strcmp(command, "find")){
      scanf("%d ",&key);
      x = find(key);
      if(x != NULL) puts("yes");
      else puts("no");
    }
    else if(!strcmp(command, "delete")){
      // puts("---delete---");
      scanf("%d ",&key);
      delete(key);
      // puts("===delete===");
    }
  }

  return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	root
	.bss
	.align 8
	.type	root, @object
	.size	root, 8
root:
	.zero	8
	.text
	.globl	insert
	.type	insert, @function
insert:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -36(%rbp)
	movq	root(%rip), %rax
	movq	%rax, -24(%rbp)
	movq	$0, -16(%rbp)
	movl	$32, %edi
	call	malloc@PLT
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movl	-36(%rbp), %edx
	movl	%edx, 24(%rax)
	movq	-8(%rbp), %rax
	movq	$0, 8(%rax)
	movq	-8(%rbp), %rax
	movq	$0, 16(%rax)
	jmp	.L2
.L4:
	movq	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	24(%rax), %edx
	movq	-24(%rbp), %rax
	movl	24(%rax), %eax
	cmpl	%eax, %edx
	jge	.L3
	movq	-24(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -24(%rbp)
	jmp	.L2
.L3:
	movq	-24(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, -24(%rbp)
.L2:
	cmpq	$0, -24(%rbp)
	jne	.L4
	movq	-8(%rbp), %rax
	movq	-16(%rbp), %rdx
	movq	%rdx, (%rax)
	cmpq	$0, -16(%rbp)
	jne	.L5
	movq	-8(%rbp), %rax
	movq	%rax, root(%rip)
	jmp	.L8
.L5:
	movq	-8(%rbp), %rax
	movl	24(%rax), %edx
	movq	-16(%rbp), %rax
	movl	24(%rax), %eax
	cmpl	%eax, %edx
	jge	.L7
	movq	-16(%rbp), %rax
	movq	-8(%rbp), %rdx
	movq	%rdx, 8(%rax)
	jmp	.L8
.L7:
	movq	-16(%rbp), %rax
	movq	-8(%rbp), %rdx
	movq	%rdx, 16(%rax)
.L8:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	insert, .-insert
	.globl	find
	.type	find, @function
find:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movq	root(%rip), %rax
	movq	%rax, -8(%rbp)
.L15:
	cmpq	$0, -8(%rbp)
	jne	.L10
	movq	-8(%rbp), %rax
	jmp	.L11
.L10:
	movq	-8(%rbp), %rax
	movl	24(%rax), %eax
	cmpl	%eax, -20(%rbp)
	jne	.L12
	movq	-8(%rbp), %rax
	jmp	.L11
.L12:
	movq	-8(%rbp), %rax
	movl	24(%rax), %eax
	cmpl	%eax, -20(%rbp)
	jge	.L13
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -8(%rbp)
	jmp	.L15
.L13:
	movq	-8(%rbp), %rax
	movl	24(%rax), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L15
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, -8(%rbp)
	jmp	.L15
.L11:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	find, .-find
	.globl	delete
	.type	delete, @function
delete:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -36(%rbp)
	movl	-36(%rbp), %eax
	movl	%eax, %edi
	call	find
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	.L17
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	.L18
	movq	-8(%rbp), %rax
	movl	24(%rax), %edx
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movl	24(%rax), %eax
	cmpl	%eax, %edx
	jge	.L19
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	$0, 8(%rax)
	jmp	.L20
.L19:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movl	24(%rax), %edx
	movq	-8(%rbp), %rax
	movl	24(%rax), %eax
	cmpl	%eax, %edx
	jge	.L20
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	$0, 16(%rax)
	jmp	.L20
.L18:
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	.L20
	movq	-8(%rbp), %rax
	movl	24(%rax), %edx
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movl	24(%rax), %eax
	cmpl	%eax, %edx
	jge	.L21
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	-8(%rbp), %rdx
	movq	16(%rdx), %rdx
	movq	%rdx, 8(%rax)
	jmp	.L22
.L21:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movl	24(%rax), %edx
	movq	-8(%rbp), %rax
	movl	24(%rax), %eax
	cmpl	%eax, %edx
	jge	.L22
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	-8(%rbp), %rdx
	movq	16(%rdx), %rdx
	movq	%rdx, 16(%rax)
.L22:
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	-8(%rbp), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, (%rax)
	jmp	.L20
.L17:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	.L20
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	.L23
	movq	-8(%rbp), %rax
	movl	24(%rax), %edx
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movl	24(%rax), %eax
	cmpl	%eax, %edx
	jge	.L24
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	-8(%rbp), %rdx
	movq	8(%rdx), %rdx
	movq	%rdx, 8(%rax)
	jmp	.L25
.L24:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movl	24(%rax), %edx
	movq	-8(%rbp), %rax
	movl	24(%rax), %eax
	cmpl	%eax, %edx
	jge	.L25
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	-8(%rbp), %rdx
	movq	8(%rdx), %rdx
	movq	%rdx, 16(%rax)
.L25:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	-8(%rbp), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, (%rax)
	jmp	.L20
.L23:
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	.L20
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, -16(%rbp)
	jmp	.L26
.L27:
	movq	-16(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -16(%rbp)
.L26:
	movq	-16(%rbp), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	.L27
	movq	-16(%rbp), %rax
	movl	24(%rax), %eax
	movl	%eax, -20(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	delete
	movq	-8(%rbp), %rax
	movl	-20(%rbp), %edx
	movl	%edx, 24(%rax)
	jmp	.L16
.L20:
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	free@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	delete, .-delete
	.section	.rodata
.LC0:
	.string	" %d"
	.text
	.globl	inorderTreeWalk
	.type	inorderTreeWalk, @function
inorderTreeWalk:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	cmpq	$0, -8(%rbp)
	je	.L31
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, %rdi
	call	inorderTreeWalk
	movq	-8(%rbp), %rax
	movl	24(%rax), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, %rdi
	call	inorderTreeWalk
.L31:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	inorderTreeWalk, .-inorderTreeWalk
	.globl	preorderTreeWalk
	.type	preorderTreeWalk, @function
preorderTreeWalk:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	cmpq	$0, -8(%rbp)
	je	.L35
	movq	-8(%rbp), %rax
	movl	24(%rax), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, %rdi
	call	preorderTreeWalk
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, %rdi
	call	preorderTreeWalk
	jmp	.L32
.L35:
	nop
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	preorderTreeWalk, .-preorderTreeWalk
	.globl	printer
	.type	printer, @function
printer:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	root(%rip), %rax
	movq	%rax, %rdi
	call	inorderTreeWalk
	movl	$10, %edi
	call	putchar@PLT
	movq	root(%rip), %rax
	movq	%rax, %rdi
	call	preorderTreeWalk
	movl	$10, %edi
	call	putchar@PLT
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	printer, .-printer
	.section	.rodata
.LC1:
	.string	"%d "
.LC2:
	.string	"%s "
.LC3:
	.string	"insert"
.LC4:
	.string	"print"
.LC5:
	.string	"find"
.LC6:
	.string	"yes"
.LC7:
	.string	"no"
.LC8:
	.string	"delete"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -36(%rbp)
	jmp	.L38
.L44:
	leaq	-18(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-18(%rbp), %rax
	leaq	.LC3(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L39
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %eax
	movl	%eax, %edi
	call	insert
	jmp	.L40
.L39:
	leaq	-18(%rbp), %rax
	leaq	.LC4(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L41
	movl	$0, %eax
	call	printer
	jmp	.L40
.L41:
	leaq	-18(%rbp), %rax
	leaq	.LC5(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L42
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %eax
	movl	%eax, %edi
	call	find
	movq	%rax, -32(%rbp)
	cmpq	$0, -32(%rbp)
	je	.L43
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L40
.L43:
	leaq	.LC7(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L40
.L42:
	leaq	-18(%rbp), %rax
	leaq	.LC8(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L40
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %eax
	movl	%eax, %edi
	call	delete
.L40:
	addl	$1, -36(%rbp)
.L38:
	movl	-44(%rbp), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L44
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L46
	call	__stack_chk_fail@PLT
.L46:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.globl	root
	.bss
	.align 8
	.type	root, @object
	.size	root, 8
root:
	.zero	8
	.text
	.globl	insert
	.type	insert, @function
insert:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -36(%rbp)
	movq	root(%rip), %rax
	movq	%rax, -24(%rbp)
	movq	$0, -16(%rbp)
	movl	$32, %edi
	call	malloc@PLT
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movl	-36(%rbp), %edx
	movl	%edx, 24(%rax)
	movq	-8(%rbp), %rax
	movq	$0, 8(%rax)
	movq	-8(%rbp), %rax
	movq	$0, 16(%rax)
	jmp	.L2
.L4:
	movq	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	24(%rax), %edx
	movq	-24(%rbp), %rax
	movl	24(%rax), %eax
	cmpl	%eax, %edx
	jge	.L3
	movq	-24(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -24(%rbp)
	jmp	.L2
.L3:
	movq	-24(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, -24(%rbp)
.L2:
	cmpq	$0, -24(%rbp)
	jne	.L4
	movq	-8(%rbp), %rax
	movq	-16(%rbp), %rdx
	movq	%rdx, (%rax)
	cmpq	$0, -16(%rbp)
	jne	.L5
	movq	-8(%rbp), %rax
	movq	%rax, root(%rip)
	jmp	.L8
.L5:
	movq	-8(%rbp), %rax
	movl	24(%rax), %edx
	movq	-16(%rbp), %rax
	movl	24(%rax), %eax
	cmpl	%eax, %edx
	jge	.L7
	movq	-16(%rbp), %rax
	movq	-8(%rbp), %rdx
	movq	%rdx, 8(%rax)
	jmp	.L8
.L7:
	movq	-16(%rbp), %rax
	movq	-8(%rbp), %rdx
	movq	%rdx, 16(%rax)
.L8:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	insert, .-insert
	.globl	find
	.type	find, @function
find:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movq	root(%rip), %rax
	movq	%rax, -8(%rbp)
.L15:
	cmpq	$0, -8(%rbp)
	jne	.L10
	movq	-8(%rbp), %rax
	jmp	.L11
.L10:
	movq	-8(%rbp), %rax
	movl	24(%rax), %eax
	cmpl	%eax, -20(%rbp)
	jne	.L12
	movq	-8(%rbp), %rax
	jmp	.L11
.L12:
	movq	-8(%rbp), %rax
	movl	24(%rax), %eax
	cmpl	%eax, -20(%rbp)
	jge	.L13
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -8(%rbp)
	jmp	.L15
.L13:
	movq	-8(%rbp), %rax
	movl	24(%rax), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L15
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, -8(%rbp)
	jmp	.L15
.L11:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	find, .-find
	.globl	delete
	.type	delete, @function
delete:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -36(%rbp)
	movl	-36(%rbp), %eax
	movl	%eax, %edi
	call	find
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	.L17
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	.L18
	movq	-8(%rbp), %rax
	movl	24(%rax), %edx
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movl	24(%rax), %eax
	cmpl	%eax, %edx
	jge	.L19
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	$0, 8(%rax)
	jmp	.L20
.L19:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movl	24(%rax), %edx
	movq	-8(%rbp), %rax
	movl	24(%rax), %eax
	cmpl	%eax, %edx
	jge	.L20
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	$0, 16(%rax)
	jmp	.L20
.L18:
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	.L20
	movq	-8(%rbp), %rax
	movl	24(%rax), %edx
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movl	24(%rax), %eax
	cmpl	%eax, %edx
	jge	.L21
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	-8(%rbp), %rdx
	movq	16(%rdx), %rdx
	movq	%rdx, 8(%rax)
	jmp	.L22
.L21:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movl	24(%rax), %edx
	movq	-8(%rbp), %rax
	movl	24(%rax), %eax
	cmpl	%eax, %edx
	jge	.L22
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	-8(%rbp), %rdx
	movq	16(%rdx), %rdx
	movq	%rdx, 16(%rax)
.L22:
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	-8(%rbp), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, (%rax)
	jmp	.L20
.L17:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	.L20
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	.L23
	movq	-8(%rbp), %rax
	movl	24(%rax), %edx
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movl	24(%rax), %eax
	cmpl	%eax, %edx
	jge	.L24
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	-8(%rbp), %rdx
	movq	8(%rdx), %rdx
	movq	%rdx, 8(%rax)
	jmp	.L25
.L24:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movl	24(%rax), %edx
	movq	-8(%rbp), %rax
	movl	24(%rax), %eax
	cmpl	%eax, %edx
	jge	.L25
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	-8(%rbp), %rdx
	movq	8(%rdx), %rdx
	movq	%rdx, 16(%rax)
.L25:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	-8(%rbp), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, (%rax)
	jmp	.L20
.L23:
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	.L20
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, -16(%rbp)
	jmp	.L26
.L27:
	movq	-16(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -16(%rbp)
.L26:
	movq	-16(%rbp), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	.L27
	movq	-16(%rbp), %rax
	movl	24(%rax), %eax
	movl	%eax, -20(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, %edi
	call	delete
	movq	-8(%rbp), %rax
	movl	-20(%rbp), %edx
	movl	%edx, 24(%rax)
	jmp	.L16
.L20:
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	free@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	delete, .-delete
	.section	.rodata
.LC0:
	.string	" %d"
	.text
	.globl	inorderTreeWalk
	.type	inorderTreeWalk, @function
inorderTreeWalk:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	cmpq	$0, -8(%rbp)
	je	.L31
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, %rdi
	call	inorderTreeWalk
	movq	-8(%rbp), %rax
	movl	24(%rax), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, %rdi
	call	inorderTreeWalk
.L31:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	inorderTreeWalk, .-inorderTreeWalk
	.globl	preorderTreeWalk
	.type	preorderTreeWalk, @function
preorderTreeWalk:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	cmpq	$0, -8(%rbp)
	je	.L35
	movq	-8(%rbp), %rax
	movl	24(%rax), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, %rdi
	call	preorderTreeWalk
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, %rdi
	call	preorderTreeWalk
	jmp	.L32
.L35:
	nop
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	preorderTreeWalk, .-preorderTreeWalk
	.globl	printer
	.type	printer, @function
printer:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	root(%rip), %rax
	movq	%rax, %rdi
	call	inorderTreeWalk
	movl	$10, %edi
	call	putchar@PLT
	movq	root(%rip), %rax
	movq	%rax, %rdi
	call	preorderTreeWalk
	movl	$10, %edi
	call	putchar@PLT
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	printer, .-printer
	.section	.rodata
.LC1:
	.string	"%d "
.LC2:
	.string	"%s "
.LC3:
	.string	"insert"
.LC4:
	.string	"print"
.LC5:
	.string	"find"
.LC6:
	.string	"yes"
.LC7:
	.string	"no"
.LC8:
	.string	"delete"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -36(%rbp)
	jmp	.L38
.L44:
	leaq	-18(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-18(%rbp), %rax
	leaq	.LC3(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L39
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %eax
	movl	%eax, %edi
	call	insert
	jmp	.L40
.L39:
	leaq	-18(%rbp), %rax
	leaq	.LC4(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L41
	movl	$0, %eax
	call	printer
	jmp	.L40
.L41:
	leaq	-18(%rbp), %rax
	leaq	.LC5(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L42
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %eax
	movl	%eax, %edi
	call	find
	movq	%rax, -32(%rbp)
	cmpq	$0, -32(%rbp)
	je	.L43
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L40
.L43:
	leaq	.LC7(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L40
.L42:
	leaq	-18(%rbp), %rax
	leaq	.LC8(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L40
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %eax
	movl	%eax, %edi
	call	delete
.L40:
	addl	$1, -36(%rbp)
.L38:
	movl	-44(%rbp), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L44
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L46
	call	__stack_chk_fail@PLT
.L46:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
