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>
 
struct node{
	int key;
	int priority;
	struct node *right;
	struct node *left;
};

typedef struct node * Node;
#define NIL NULL

Node delete(Node, int); 
Node root;

Node treeMinimum(Node x){
	while ( x->left != NIL ){ x = x->left; }
	return x;
}
 
Node treeMaximum(Node x){
	while ( x->right != NIL ){ x = x->right; }
	return x;
}
 
Node Search(Node u, int k){
	Node ret = NIL;
	if ( u->key == k ){ return u; }
	else if ( u->key > k ){
		if ( u->left != NIL ){ return Search(u->left, k); }
	}
	else if (u->right!=NIL){ return Search(u->right, k); }
	return ret;
}

Node rightRotate(Node t){
	Node s = t->left;
	if ( t == root ){ root = s; }
	t->left = s->right;
	s->right = t;
	return s;
}
 
Node leftRotate(Node t){
	Node s = t->right;
	if ( t == root ){ root=s; }
	t->right = s->left;
	s->left = t;
	return s;
}
 
Node _delete(Node t, int key){
	if (t->left == NIL && t->right==NIL){ return NIL; }
	
	if (t->left == NIL){ t=leftRotate(t); }
	else if (t->right == NIL){ t=rightRotate(t); }
	else{
		if (t->left->priority > t->right->priority){
			t = rightRotate(t);
		}
		else
		{
			t = leftRotate(t);
		}
	}
	return delete(t, key);
}

Node delete(Node t, int key){
	if (key < t->key){ 
		t->left = delete(t->left,key); }
	else if (key > t->key){
		t->right = delete(t->right, key);
	}
	else{
		return _delete(t, key);
	}
	return t;
}

Node insert(Node t, int key, int priority){
	if (t == NIL)
	{
		Node z = malloc(sizeof(struct node));
		z->key = key;
		z->priority = priority;
		z->left = NIL;
		z->right=NIL;
		if (root==NIL) root = z;
		return z;
	}

	if (key == t->key){ return t; }
	
	if (key < t->key)
	{
		t->left = insert(t->left, key, priority);
		if (t->priority < t->left->priority){ t = rightRotate(t); }
	}
	else 
	{
		t->right = insert(t->right, key, priority);
		if (t->priority < t->right->priority){ t = leftRotate(t); }
	}

	return t;
}
 
void inorder(Node u){
	if (u->left != NIL){ inorder(u->left); }
	printf(" %d", u->key);
	if (u->right != NIL){ inorder(u->right); }
}
 
void preorder(Node u){
	printf(" %d", u->key);
	if (u->left != NIL){ preorder(u->left); }
	if (u->right != NIL){ preorder(u->right); }
}
 
void print(){
	if (root == NIL){ return; }
	preorder(root);
	printf("\n");
	inorder(root);
	printf("\n");
}
 
int main(){
	int n, i, x, y;
	Node t;
	char tmp[10];
	root = NIL;
	scanf("%d", &n);

	for (i=0; i<n; i++)
	{
		scanf("%s", tmp);
		if(tmp[0] == 'f')
		{
			scanf("%d", &x);
			t = Search(root, x);
			if (t != NIL){ printf("yes\n"); }
			else{ printf("no\n"); }
		}
		else if(tmp[0] == 'i')
		{
			scanf("%d %d", &x, &y);
			insert(root, x, y);
		}
		else if(tmp[0] == 'p')
		{
			inorder(root);
			printf("\n");
			preorder(root);
			printf("\n");
		}
		else if(tmp[0] == 'd')
		{
			scanf("%d", &x);
			t = Search(root, x);
			if (t != NIL){ delete(root, x); }
		}
	}
	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	treeMinimum
	.type	treeMinimum, @function
treeMinimum:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	jmp	.L2
.L3:
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, -8(%rbp)
.L2:
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	.L3
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	treeMinimum, .-treeMinimum
	.globl	treeMaximum
	.type	treeMaximum, @function
treeMaximum:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	jmp	.L6
.L7:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -8(%rbp)
.L6:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	.L7
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	treeMaximum, .-treeMaximum
	.globl	Search
	.type	Search, @function
Search:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movq	$0, -8(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -28(%rbp)
	jne	.L10
	movq	-24(%rbp), %rax
	jmp	.L11
.L10:
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -28(%rbp)
	jge	.L12
	movq	-24(%rbp), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	.L13
	movq	-24(%rbp), %rax
	movq	16(%rax), %rax
	movl	-28(%rbp), %edx
	movl	%edx, %esi
	movq	%rax, %rdi
	call	Search
	jmp	.L11
.L12:
	movq	-24(%rbp), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	.L13
	movq	-24(%rbp), %rax
	movq	8(%rax), %rax
	movl	-28(%rbp), %edx
	movl	%edx, %esi
	movq	%rax, %rdi
	call	Search
	jmp	.L11
.L13:
	movq	-8(%rbp), %rax
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	Search, .-Search
	.globl	rightRotate
	.type	rightRotate, @function
rightRotate:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	-24(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	root(%rip), %rax
	cmpq	%rax, -24(%rbp)
	jne	.L15
	movq	-8(%rbp), %rax
	movq	%rax, root(%rip)
.L15:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rdx
	movq	-24(%rbp), %rax
	movq	%rdx, 16(%rax)
	movq	-8(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rdx, 8(%rax)
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	rightRotate, .-rightRotate
	.globl	leftRotate
	.type	leftRotate, @function
leftRotate:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	-24(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	root(%rip), %rax
	cmpq	%rax, -24(%rbp)
	jne	.L18
	movq	-8(%rbp), %rax
	movq	%rax, root(%rip)
.L18:
	movq	-8(%rbp), %rax
	movq	16(%rax), %rdx
	movq	-24(%rbp), %rax
	movq	%rdx, 8(%rax)
	movq	-8(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rdx, 16(%rax)
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	leftRotate, .-leftRotate
	.globl	_delete
	.type	_delete, @function
_delete:
.LFB11:
	.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)
	movl	%esi, -12(%rbp)
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	.L21
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	.L21
	movl	$0, %eax
	jmp	.L22
.L21:
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	.L23
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	leftRotate
	movq	%rax, -8(%rbp)
	jmp	.L24
.L23:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	.L25
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	rightRotate
	movq	%rax, -8(%rbp)
	jmp	.L24
.L25:
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movl	4(%rax), %edx
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jle	.L26
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	rightRotate
	movq	%rax, -8(%rbp)
	jmp	.L24
.L26:
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	leftRotate
	movq	%rax, -8(%rbp)
.L24:
	movl	-12(%rbp), %edx
	movq	-8(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	delete
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	_delete, .-_delete
	.globl	delete
	.type	delete, @function
delete:
.LFB12:
	.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)
	movl	%esi, -12(%rbp)
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -12(%rbp)
	jge	.L28
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movl	-12(%rbp), %edx
	movl	%edx, %esi
	movq	%rax, %rdi
	call	delete
	movq	-8(%rbp), %rdx
	movq	%rax, 16(%rdx)
	jmp	.L29
.L28:
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L30
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movl	-12(%rbp), %edx
	movl	%edx, %esi
	movq	%rax, %rdi
	call	delete
	movq	-8(%rbp), %rdx
	movq	%rax, 8(%rdx)
	jmp	.L29
.L30:
	movl	-12(%rbp), %edx
	movq	-8(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	_delete
	jmp	.L31
.L29:
	movq	-8(%rbp), %rax
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	delete, .-delete
	.globl	insert
	.type	insert, @function
insert:
.LFB13:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	cmpq	$0, -24(%rbp)
	jne	.L33
	movl	$24, %edi
	call	malloc@PLT
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movl	-28(%rbp), %edx
	movl	%edx, (%rax)
	movq	-8(%rbp), %rax
	movl	-32(%rbp), %edx
	movl	%edx, 4(%rax)
	movq	-8(%rbp), %rax
	movq	$0, 16(%rax)
	movq	-8(%rbp), %rax
	movq	$0, 8(%rax)
	movq	root(%rip), %rax
	testq	%rax, %rax
	jne	.L34
	movq	-8(%rbp), %rax
	movq	%rax, root(%rip)
.L34:
	movq	-8(%rbp), %rax
	jmp	.L35
.L33:
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -28(%rbp)
	jne	.L36
	movq	-24(%rbp), %rax
	jmp	.L35
.L36:
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -28(%rbp)
	jge	.L37
	movq	-24(%rbp), %rax
	movq	16(%rax), %rax
	movl	-32(%rbp), %edx
	movl	-28(%rbp), %ecx
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	insert
	movq	-24(%rbp), %rdx
	movq	%rax, 16(%rdx)
	movq	-24(%rbp), %rax
	movl	4(%rax), %edx
	movq	-24(%rbp), %rax
	movq	16(%rax), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jge	.L38
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	rightRotate
	movq	%rax, -24(%rbp)
	jmp	.L38
.L37:
	movq	-24(%rbp), %rax
	movq	8(%rax), %rax
	movl	-32(%rbp), %edx
	movl	-28(%rbp), %ecx
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	insert
	movq	-24(%rbp), %rdx
	movq	%rax, 8(%rdx)
	movq	-24(%rbp), %rax
	movl	4(%rax), %edx
	movq	-24(%rbp), %rax
	movq	8(%rax), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jge	.L38
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	leftRotate
	movq	%rax, -24(%rbp)
.L38:
	movq	-24(%rbp), %rax
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	insert, .-insert
	.section	.rodata
.LC0:
	.string	" %d"
	.text
	.globl	inorder
	.type	inorder, @function
inorder:
.LFB14:
	.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)
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	.L40
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, %rdi
	call	inorder
.L40:
	movq	-8(%rbp), %rax
	movl	(%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
	testq	%rax, %rax
	je	.L42
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, %rdi
	call	inorder
.L42:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	inorder, .-inorder
	.globl	preorder
	.type	preorder, @function
preorder:
.LFB15:
	.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)
	movq	-8(%rbp), %rax
	movl	(%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
	testq	%rax, %rax
	je	.L44
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, %rdi
	call	preorder
.L44:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	.L46
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, %rdi
	call	preorder
.L46:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	preorder, .-preorder
	.globl	print
	.type	print, @function
print:
.LFB16:
	.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
	testq	%rax, %rax
	je	.L50
	movq	root(%rip), %rax
	movq	%rax, %rdi
	call	preorder
	movl	$10, %edi
	call	putchar@PLT
	movq	root(%rip), %rax
	movq	%rax, %rdi
	call	inorder
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L47
.L50:
	nop
.L47:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	print, .-print
	.section	.rodata
.LC1:
	.string	"%d"
.LC2:
	.string	"%s"
.LC3:
	.string	"yes"
.LC4:
	.string	"no"
.LC5:
	.string	"%d %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB17:
	.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
	movq	$0, root(%rip)
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -36(%rbp)
	jmp	.L52
.L58:
	leaq	-18(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-18(%rbp), %eax
	cmpb	$102, %al
	jne	.L53
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %edx
	movq	root(%rip), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	Search
	movq	%rax, -32(%rbp)
	cmpq	$0, -32(%rbp)
	je	.L54
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L55
.L54:
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L55
.L53:
	movzbl	-18(%rbp), %eax
	cmpb	$105, %al
	jne	.L56
	leaq	-40(%rbp), %rdx
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %edx
	movl	-44(%rbp), %ecx
	movq	root(%rip), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	insert
	jmp	.L55
.L56:
	movzbl	-18(%rbp), %eax
	cmpb	$112, %al
	jne	.L57
	movq	root(%rip), %rax
	movq	%rax, %rdi
	call	inorder
	movl	$10, %edi
	call	putchar@PLT
	movq	root(%rip), %rax
	movq	%rax, %rdi
	call	preorder
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L55
.L57:
	movzbl	-18(%rbp), %eax
	cmpb	$100, %al
	jne	.L55
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %edx
	movq	root(%rip), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	Search
	movq	%rax, -32(%rbp)
	cmpq	$0, -32(%rbp)
	je	.L55
	movl	-44(%rbp), %edx
	movq	root(%rip), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	delete
.L55:
	addl	$1, -36(%rbp)
.L52:
	movl	-48(%rbp), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L58
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L60
	call	__stack_chk_fail@PLT
.L60:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.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	treeMinimum
	.type	treeMinimum, @function
treeMinimum:
.LFB39:
	.cfi_startproc
	endbr64
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rdi, %rax
	movq	16(%rdi), %rdi
	testq	%rdi, %rdi
	jne	.L2
	ret
	.cfi_endproc
.LFE39:
	.size	treeMinimum, .-treeMinimum
	.p2align 4
	.globl	treeMaximum
	.type	treeMaximum, @function
treeMaximum:
.LFB40:
	.cfi_startproc
	endbr64
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rdi, %rax
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	jne	.L6
	ret
	.cfi_endproc
.LFE40:
	.size	treeMaximum, .-treeMaximum
	.p2align 4
	.globl	Search
	.type	Search, @function
Search:
.LFB41:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	cmpl	%eax, %esi
	jne	.L10
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L16:
	movq	16(%rdi), %rdi
	testq	%rdi, %rdi
	je	.L15
.L12:
	movl	(%rdi), %eax
	cmpl	%esi, %eax
	je	.L14
.L10:
	cmpl	%eax, %esi
	jl	.L16
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	jne	.L12
.L15:
	xorl	%eax, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%rdi, %rax
	ret
	.cfi_endproc
.LFE41:
	.size	Search, .-Search
	.p2align 4
	.globl	rightRotate
	.type	rightRotate, @function
rightRotate:
.LFB42:
	.cfi_startproc
	endbr64
	cmpq	%rdi, root(%rip)
	movq	16(%rdi), %rax
	je	.L19
	movq	8(%rax), %rdx
	movq	%rdx, 16(%rdi)
	movq	%rdi, 8(%rax)
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	movq	8(%rax), %rdx
	movq	%rax, root(%rip)
	movq	%rdx, 16(%rdi)
	movq	%rdi, 8(%rax)
	ret
	.cfi_endproc
.LFE42:
	.size	rightRotate, .-rightRotate
	.p2align 4
	.globl	leftRotate
	.type	leftRotate, @function
leftRotate:
.LFB43:
	.cfi_startproc
	endbr64
	cmpq	%rdi, root(%rip)
	movq	8(%rdi), %rax
	je	.L22
	movq	16(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movq	%rdi, 16(%rax)
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	movq	16(%rax), %rdx
	movq	%rax, root(%rip)
	movq	%rdx, 8(%rdi)
	movq	%rdi, 16(%rax)
	ret
	.cfi_endproc
.LFE43:
	.size	leftRotate, .-leftRotate
	.p2align 4
	.globl	delete
	.type	delete, @function
delete:
.LFB45:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	cmpl	%esi, (%rdi)
	jg	.L46
	jge	.L35
	movq	8(%rdi), %rbp
	cmpl	0(%rbp), %esi
	jl	.L47
	jle	.L41
	movq	8(%rbp), %r13
	cmpl	0(%r13), %esi
	jl	.L48
	jle	.L44
	movq	8(%r13), %rdi
	call	delete
	movq	%rax, 8(%r13)
.L43:
	movq	%r13, 8(%rbp)
.L40:
	movq	%rbp, 8(%r12)
	movq	%r12, %rax
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L35:
	.cfi_restore_state
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	jmp	_delete
	.p2align 4,,10
	.p2align 3
.L46:
	.cfi_restore_state
	movq	16(%rdi), %rbp
	cmpl	0(%rbp), %esi
	jl	.L49
	jle	.L30
	movq	8(%rbp), %r13
	cmpl	0(%r13), %esi
	jl	.L50
	jle	.L33
	movq	8(%r13), %rdi
	call	delete
	movq	%rax, 8(%r13)
.L32:
	movq	%r13, 8(%rbp)
.L29:
	movq	%rbp, 16(%r12)
	movq	%r12, %rax
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L41:
	.cfi_restore_state
	movq	%rbp, %rdi
	call	_delete
	movq	%rax, %rbp
	jmp	.L40
	.p2align 4,,10
	.p2align 3
.L30:
	movq	%rbp, %rdi
	call	_delete
	movq	%rax, %rbp
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L47:
	movq	16(%rbp), %r13
	cmpl	0(%r13), %esi
	jl	.L51
	jle	.L39
	movq	8(%r13), %rdi
	call	delete
	movq	%rax, 8(%r13)
.L38:
	movq	%r13, 16(%rbp)
	jmp	.L40
	.p2align 4,,10
	.p2align 3
.L49:
	movq	16(%rbp), %r13
	cmpl	0(%r13), %esi
	jl	.L52
	jle	.L28
	movq	8(%r13), %rdi
	call	delete
	movq	%rax, 8(%r13)
.L27:
	movq	%r13, 16(%rbp)
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L48:
	movq	16(%r13), %rdi
	call	delete
	movq	%rax, 16(%r13)
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L28:
	movq	%r13, %rdi
	call	_delete
	movq	%rax, %r13
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L51:
	movq	16(%r13), %rdi
	call	delete
	movq	%rax, 16(%r13)
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L50:
	movq	16(%r13), %rdi
	call	delete
	movq	%rax, 16(%r13)
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L44:
	movq	%r13, %rdi
	call	_delete
	movq	%rax, %r13
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L52:
	movq	16(%r13), %rdi
	call	delete
	movq	%rax, 16(%r13)
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L39:
	movq	%r13, %rdi
	call	_delete
	movq	%rax, %r13
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L33:
	movq	%r13, %rdi
	call	_delete
	movq	%rax, %r13
	jmp	.L32
	.cfi_endproc
.LFE45:
	.size	delete, .-delete
	.p2align 4
	.globl	_delete
	.type	_delete, @function
_delete:
.LFB44:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movq	root(%rip), %rdx
	xorl	%ecx, %ecx
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
.L70:
	movq	16(%rdi), %rax
	movq	8(%rdi), %r12
	testq	%rax, %rax
	je	.L98
	testq	%r12, %r12
	je	.L96
	movl	4(%r12), %r9d
	cmpl	%r9d, 4(%rax)
	jle	.L62
.L96:
	cmpq	%rdx, %rdi
	je	.L99
	movq	8(%rax), %r8
	movq	%rax, %r12
	movq	%r8, 16(%rdi)
	movq	%rdi, 8(%rax)
.L107:
	cmpl	(%r12), %esi
	jge	.L65
.L103:
	testb	%cl, %cl
	je	.L66
	movq	%rdx, root(%rip)
.L66:
	movq	16(%r12), %rbp
	cmpl	0(%rbp), %esi
	jl	.L100
	jle	.L69
	movq	8(%rbp), %rdi
	call	delete
	movq	%rax, 8(%rbp)
.L68:
	movq	%rbp, 16(%r12)
.L53:
	movq	%r12, %rax
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L98:
	.cfi_restore_state
	testq	%r12, %r12
	je	.L101
.L62:
	cmpq	%rdx, %rdi
	je	.L102
.L64:
	movq	16(%r12), %rax
	movq	%rax, 8(%rdi)
	movq	%rdi, 16(%r12)
	cmpl	(%r12), %esi
	jl	.L103
.L65:
	jle	.L82
	testb	%cl, %cl
	jne	.L104
	movq	8(%r12), %rbp
	cmpl	0(%rbp), %esi
	jl	.L105
.L72:
	jle	.L74
	movq	8(%rbp), %r13
	cmpl	0(%r13), %esi
	jl	.L106
	jle	.L77
	movq	8(%r13), %rdi
	call	delete
	movq	%rax, 8(%r13)
.L76:
	movq	%r13, 8(%rbp)
	jmp	.L73
	.p2align 4,,10
	.p2align 3
.L104:
	movq	8(%r12), %rbp
	movq	%rdx, root(%rip)
	cmpl	0(%rbp), %esi
	jge	.L72
	jmp	.L105
	.p2align 4,,10
	.p2align 3
.L102:
	movq	%r12, %rdx
	movl	$1, %ecx
	jmp	.L64
	.p2align 4,,10
	.p2align 3
.L82:
	movq	%r12, %rdi
	jmp	.L70
	.p2align 4,,10
	.p2align 3
.L105:
	movq	16(%rbp), %rdi
	call	delete
	movq	%rax, 16(%rbp)
.L73:
	movq	%rbp, 8(%r12)
	movq	%r12, %rax
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L99:
	.cfi_restore_state
	movq	8(%rax), %r8
	movq	%rax, %rdx
	movl	$1, %ecx
	movq	%rax, %r12
	movq	%r8, 16(%rdi)
	movq	%rdi, 8(%rax)
	jmp	.L107
	.p2align 4,,10
	.p2align 3
.L69:
	movq	%rbp, %rdi
	call	_delete
	movq	%rax, %rbp
	jmp	.L68
	.p2align 4,,10
	.p2align 3
.L106:
	movq	16(%r13), %rdi
	call	delete
	movq	%rax, 16(%r13)
	jmp	.L76
	.p2align 4,,10
	.p2align 3
.L100:
	movq	16(%rbp), %rdi
	call	delete
	movq	%rax, 16(%rbp)
	jmp	.L68
	.p2align 4,,10
	.p2align 3
.L74:
	movq	%rbp, %rdi
	call	_delete
	movq	%rax, %rbp
	jmp	.L73
	.p2align 4,,10
	.p2align 3
.L77:
	movq	%r13, %rdi
	call	_delete
	movq	%rax, %r13
	jmp	.L76
	.p2align 4,,10
	.p2align 3
.L101:
	testb	%cl, %cl
	je	.L53
	movq	%rdx, root(%rip)
	jmp	.L53
	.cfi_endproc
.LFE44:
	.size	_delete, .-_delete
	.p2align 4
	.globl	insert
	.type	insert, @function
insert:
.LFB46:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movd	%esi, %xmm0
	movd	%edx, %xmm1
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	punpckldq	%xmm1, %xmm0
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	testq	%rdi, %rdi
	je	.L157
	movq	%rdi, %rbx
	cmpl	%esi, (%rdi)
	je	.L131
	movl	%edx, %r13d
	jle	.L112
	movq	16(%rdi), %r12
	testq	%r12, %r12
	je	.L158
	cmpl	(%r12), %esi
	je	.L159
	jge	.L116
	movq	16(%r12), %rbp
	testq	%rbp, %rbp
	je	.L160
	cmpl	0(%rbp), %esi
	je	.L161
	jl	.L162
	movq	8(%rbp), %rdi
	call	insert
	movl	4(%rbp), %edx
	movl	4(%rax), %ecx
	movq	%rax, 8(%rbp)
	cmpl	%ecx, %edx
	jge	.L118
	cmpq	root(%rip), %rbp
	je	.L163
.L122:
	movq	16(%rax), %rdx
	movq	%rdx, 8(%rbp)
	movl	%ecx, %edx
	movq	%rbp, 16(%rax)
	movq	%rax, %rbp
	.p2align 4,,10
	.p2align 3
.L118:
	movl	4(%r12), %r13d
	movq	%rbp, 16(%r12)
	cmpl	%edx, %r13d
	jge	.L114
	cmpq	root(%rip), %r12
	je	.L164
.L123:
	movq	8(%rbp), %rax
	movl	%edx, %r13d
	movq	%rax, 16(%r12)
	movq	%r12, 8(%rbp)
	movq	%rbp, %r12
	jmp	.L114
	.p2align 4,,10
	.p2align 3
.L131:
	movq	%rbx, %r12
.L108:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	movq	%r12, %rax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L112:
	.cfi_restore_state
	movq	8(%rdi), %r12
	testq	%r12, %r12
	je	.L165
	cmpl	(%r12), %esi
	je	.L166
	jge	.L136
	movq	16(%r12), %rbp
	testq	%rbp, %rbp
	je	.L167
	cmpl	0(%rbp), %esi
	je	.L168
	jl	.L169
	movq	8(%rbp), %rdi
	call	insert
	movl	4(%rbp), %edx
	movl	4(%rax), %ecx
	movq	%rax, 8(%rbp)
	cmpl	%ecx, %edx
	jge	.L138
	cmpq	root(%rip), %rbp
	je	.L170
.L142:
	movq	16(%rax), %rdx
	movq	%rdx, 8(%rbp)
	movl	%ecx, %edx
	movq	%rbp, 16(%rax)
	movq	%rax, %rbp
	.p2align 4,,10
	.p2align 3
.L138:
	movl	4(%r12), %r13d
	movq	%rbp, 16(%r12)
	cmpl	%r13d, %edx
	jle	.L134
	cmpq	root(%rip), %r12
	je	.L171
.L143:
	movq	8(%rbp), %rax
	movl	%edx, %r13d
	movq	%rax, 16(%r12)
	movq	%r12, 8(%rbp)
	movq	%rbp, %r12
	jmp	.L134
	.p2align 4,,10
	.p2align 3
.L116:
	movq	8(%r12), %rbp
	testq	%rbp, %rbp
	je	.L172
	cmpl	0(%rbp), %esi
	je	.L173
	jl	.L174
	movq	8(%rbp), %rdi
	call	insert
	movl	4(%rbp), %edx
	movl	4(%rax), %ecx
	movq	%rax, 8(%rbp)
	cmpl	%ecx, %edx
	jge	.L125
	cmpq	root(%rip), %rbp
	je	.L175
.L129:
	movq	16(%rax), %rdx
	movq	%rdx, 8(%rbp)
	movl	%ecx, %edx
	movq	%rbp, 16(%rax)
	movq	%rax, %rbp
	.p2align 4,,10
	.p2align 3
.L125:
	movl	4(%r12), %r13d
	movq	%rbp, 8(%r12)
	cmpl	%edx, %r13d
	jge	.L114
	cmpq	root(%rip), %r12
	je	.L176
.L130:
	movq	16(%rbp), %rax
	movl	%edx, %r13d
	movq	%rax, 8(%r12)
	movq	%r12, 16(%rbp)
	movq	%rbp, %r12
	jmp	.L114
	.p2align 4,,10
	.p2align 3
.L136:
	movq	8(%r12), %rbp
	testq	%rbp, %rbp
	je	.L177
	cmpl	0(%rbp), %esi
	je	.L178
	jl	.L179
	movq	8(%rbp), %rdi
	call	insert
	movl	4(%rbp), %edx
	movl	4(%rax), %ecx
	movq	%rax, 8(%rbp)
	cmpl	%ecx, %edx
	jge	.L145
	cmpq	root(%rip), %rbp
	je	.L180
.L149:
	movq	16(%rax), %rdx
	movq	%rdx, 8(%rbp)
	movl	%ecx, %edx
	movq	%rbp, 16(%rax)
	movq	%rax, %rbp
	.p2align 4,,10
	.p2align 3
.L145:
	movl	4(%r12), %r13d
	movq	%rbp, 8(%r12)
	cmpl	%r13d, %edx
	jle	.L134
	cmpq	root(%rip), %r12
	je	.L181
.L150:
	movq	16(%rbp), %rax
	movl	%edx, %r13d
	movq	%rax, 8(%r12)
	movq	%r12, 16(%rbp)
	movq	%rbp, %r12
	jmp	.L134
	.p2align 4,,10
	.p2align 3
.L157:
	movl	$24, %edi
	movq	%xmm0, 8(%rsp)
	call	malloc@PLT
	movq	8(%rsp), %xmm0
	cmpq	$0, root(%rip)
	movq	%rax, %r12
	movq	%xmm0, (%rax)
	pxor	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	jne	.L108
	movq	%rax, root(%rip)
	jmp	.L108
	.p2align 4,,10
	.p2align 3
.L166:
	movl	4(%r12), %r13d
	.p2align 4,,10
	.p2align 3
.L134:
	movq	%r12, 8(%rbx)
	cmpl	%r13d, 4(%rbx)
	jge	.L131
	cmpq	root(%rip), %rbx
	je	.L182
.L151:
	movq	16(%r12), %rax
	movq	%rax, 8(%rbx)
	movq	%r12, %rax
	movq	%rbx, 16(%r12)
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L159:
	.cfi_restore_state
	movl	4(%r12), %r13d
	.p2align 4,,10
	.p2align 3
.L114:
	movq	%r12, 16(%rbx)
	cmpl	%r13d, 4(%rbx)
	jge	.L131
	cmpq	root(%rip), %rbx
	je	.L183
.L132:
	movq	8(%r12), %rax
	movq	%rax, 16(%rbx)
	movq	%r12, %rax
	movq	%rbx, 8(%r12)
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L182:
	.cfi_restore_state
	movq	%r12, root(%rip)
	jmp	.L151
	.p2align 4,,10
	.p2align 3
.L183:
	movq	%r12, root(%rip)
	jmp	.L132
	.p2align 4,,10
	.p2align 3
.L169:
	movq	16(%rbp), %rdi
	call	insert
	movl	4(%rbp), %edx
	movl	4(%rax), %ecx
	movq	%rax, 16(%rbp)
	cmpl	%ecx, %edx
	jge	.L138
	cmpq	root(%rip), %rbp
	je	.L184
.L141:
	movq	8(%rax), %rdx
	movq	%rdx, 16(%rbp)
	movl	%ecx, %edx
	movq	%rbp, 8(%rax)
	movq	%rax, %rbp
	jmp	.L138
	.p2align 4,,10
	.p2align 3
.L174:
	movq	16(%rbp), %rdi
	call	insert
	movl	4(%rbp), %edx
	movl	4(%rax), %ecx
	movq	%rax, 16(%rbp)
	cmpl	%ecx, %edx
	jge	.L125
	cmpq	root(%rip), %rbp
	je	.L185
.L128:
	movq	8(%rax), %rdx
	movq	%rdx, 16(%rbp)
	movl	%ecx, %edx
	movq	%rbp, 8(%rax)
	movq	%rax, %rbp
	jmp	.L125
	.p2align 4,,10
	.p2align 3
.L179:
	movq	16(%rbp), %rdi
	call	insert
	movl	4(%rbp), %edx
	movl	4(%rax), %ecx
	movq	%rax, 16(%rbp)
	cmpl	%ecx, %edx
	jge	.L145
	cmpq	root(%rip), %rbp
	je	.L186
.L148:
	movq	8(%rax), %rdx
	movq	%rdx, 16(%rbp)
	movl	%ecx, %edx
	movq	%rbp, 8(%rax)
	movq	%rax, %rbp
	jmp	.L145
	.p2align 4,,10
	.p2align 3
.L162:
	movq	16(%rbp), %rdi
	call	insert
	movl	4(%rbp), %edx
	movl	4(%rax), %ecx
	movq	%rax, 16(%rbp)
	cmpl	%ecx, %edx
	jge	.L118
	cmpq	root(%rip), %rbp
	je	.L187
.L121:
	movq	8(%rax), %rdx
	movq	%rdx, 16(%rbp)
	movl	%ecx, %edx
	movq	%rbp, 8(%rax)
	movq	%rax, %rbp
	jmp	.L118
	.p2align 4,,10
	.p2align 3
.L158:
	movl	$24, %edi
	movq	%xmm0, 8(%rsp)
	call	malloc@PLT
	movq	8(%rsp), %xmm0
	cmpq	$0, root(%rip)
	movq	%rax, %r12
	movq	%xmm0, (%rax)
	pxor	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	jne	.L114
	movq	%rax, root(%rip)
	jmp	.L114
	.p2align 4,,10
	.p2align 3
.L165:
	movl	$24, %edi
	movq	%xmm0, 8(%rsp)
	call	malloc@PLT
	movq	8(%rsp), %xmm0
	cmpq	$0, root(%rip)
	movq	%rax, %r12
	movq	%xmm0, (%rax)
	pxor	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	jne	.L134
	movq	%rax, root(%rip)
	jmp	.L134
	.p2align 4,,10
	.p2align 3
.L168:
	movl	4(%rbp), %edx
	jmp	.L138
	.p2align 4,,10
	.p2align 3
.L173:
	movl	4(%rbp), %edx
	jmp	.L125
	.p2align 4,,10
	.p2align 3
.L178:
	movl	4(%rbp), %edx
	jmp	.L145
	.p2align 4,,10
	.p2align 3
.L161:
	movl	4(%rbp), %edx
	jmp	.L118
	.p2align 4,,10
	.p2align 3
.L176:
	movq	%rbp, root(%rip)
	jmp	.L130
	.p2align 4,,10
	.p2align 3
.L171:
	movq	%rbp, root(%rip)
	jmp	.L143
	.p2align 4,,10
	.p2align 3
.L164:
	movq	%rbp, root(%rip)
	jmp	.L123
	.p2align 4,,10
	.p2align 3
.L181:
	movq	%rbp, root(%rip)
	jmp	.L150
	.p2align 4,,10
	.p2align 3
.L167:
	movl	$24, %edi
	movq	%xmm0, 8(%rsp)
	call	malloc@PLT
	movq	8(%rsp), %xmm0
	cmpq	$0, root(%rip)
	movl	%r13d, %edx
	movq	%rax, %rbp
	movq	%xmm0, (%rax)
	pxor	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	jne	.L138
	movq	%rax, root(%rip)
	jmp	.L138
	.p2align 4,,10
	.p2align 3
.L177:
	movl	$24, %edi
	movq	%xmm0, 8(%rsp)
	call	malloc@PLT
	movq	8(%rsp), %xmm0
	cmpq	$0, root(%rip)
	movl	%r13d, %edx
	movq	%rax, %rbp
	movq	%xmm0, (%rax)
	pxor	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	jne	.L145
	movq	%rax, root(%rip)
	jmp	.L145
	.p2align 4,,10
	.p2align 3
.L160:
	movl	$24, %edi
	movq	%xmm0, 8(%rsp)
	call	malloc@PLT
	movq	8(%rsp), %xmm0
	cmpq	$0, root(%rip)
	movl	%r13d, %edx
	movq	%rax, %rbp
	movq	%xmm0, (%rax)
	pxor	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	jne	.L118
	movq	%rax, root(%rip)
	jmp	.L118
	.p2align 4,,10
	.p2align 3
.L172:
	movl	$24, %edi
	movq	%xmm0, 8(%rsp)
	call	malloc@PLT
	movq	8(%rsp), %xmm0
	cmpq	$0, root(%rip)
	movl	%r13d, %edx
	movq	%rax, %rbp
	movq	%xmm0, (%rax)
	pxor	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	jne	.L125
	movq	%rax, root(%rip)
	jmp	.L125
.L184:
	movq	%rax, root(%rip)
	jmp	.L141
.L187:
	movq	%rax, root(%rip)
	jmp	.L121
.L175:
	movq	%rax, root(%rip)
	jmp	.L129
.L163:
	movq	%rax, root(%rip)
	jmp	.L122
.L170:
	movq	%rax, root(%rip)
	jmp	.L142
.L180:
	movq	%rax, root(%rip)
	jmp	.L149
.L185:
	movq	%rax, root(%rip)
	jmp	.L128
.L186:
	movq	%rax, root(%rip)
	jmp	.L148
	.cfi_endproc
.LFE46:
	.size	insert, .-insert
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	" %d"
	.text
	.p2align 4
	.globl	inorder
	.type	inorder, @function
inorder:
.LFB47:
	.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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%rdi, 24(%rsp)
.L207:
	movq	24(%rsp), %rax
	movq	16(%rax), %rax
	movq	%rax, 16(%rsp)
	testq	%rax, %rax
	je	.L189
.L206:
	movq	16(%rsp), %rax
	movq	16(%rax), %rax
	movq	%rax, 8(%rsp)
	testq	%rax, %rax
	je	.L190
.L205:
	movq	8(%rsp), %rax
	movq	16(%rax), %rax
	movq	%rax, (%rsp)
	testq	%rax, %rax
	je	.L191
.L204:
	movq	(%rsp), %rax
	movq	16(%rax), %r12
	testq	%r12, %r12
	je	.L192
.L203:
	movq	16(%r12), %rbx
	testq	%rbx, %rbx
	je	.L193
.L202:
	movq	16(%rbx), %r15
	testq	%r15, %r15
	je	.L194
.L201:
	movq	16(%r15), %r14
	testq	%r14, %r14
	je	.L195
.L200:
	movq	16(%r14), %r13
	testq	%r13, %r13
	je	.L196
.L199:
	movq	16(%r13), %rdi
	testq	%rdi, %rdi
	je	.L197
	call	inorder
	.p2align 4,,10
	.p2align 3
.L197:
	movl	0(%r13), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%r13), %r13
	testq	%r13, %r13
	jne	.L199
.L196:
	movl	(%r14), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%r14), %r14
	testq	%r14, %r14
	jne	.L200
.L195:
	movl	(%r15), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%r15), %r15
	testq	%r15, %r15
	jne	.L201
.L194:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	.L202
.L193:
	movl	(%r12), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%r12), %r12
	testq	%r12, %r12
	jne	.L203
.L192:
	movq	(%rsp), %rbx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	(%rbx), %edx
	call	__printf_chk@PLT
	movq	8(%rbx), %rax
	movq	%rax, (%rsp)
	testq	%rax, %rax
	jne	.L204
.L191:
	movq	8(%rsp), %rbx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	(%rbx), %edx
	call	__printf_chk@PLT
	movq	8(%rbx), %rax
	movq	%rax, 8(%rsp)
	testq	%rax, %rax
	jne	.L205
.L190:
	movq	16(%rsp), %rbx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	(%rbx), %edx
	call	__printf_chk@PLT
	movq	8(%rbx), %rax
	movq	%rax, 16(%rsp)
	testq	%rax, %rax
	jne	.L206
.L189:
	movq	24(%rsp), %rbx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	(%rbx), %edx
	call	__printf_chk@PLT
	movq	8(%rbx), %rax
	movq	%rax, 24(%rsp)
	testq	%rax, %rax
	jne	.L207
	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
.LFE47:
	.size	inorder, .-inorder
	.p2align 4
	.globl	preorder
	.type	preorder, @function
preorder:
.LFB48:
	.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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%rdi, 24(%rsp)
.L263:
	movq	24(%rsp), %rbx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	(%rbx), %edx
	call	__printf_chk@PLT
	movq	16(%rbx), %rax
	movq	%rax, 16(%rsp)
	testq	%rax, %rax
	je	.L245
.L262:
	movq	16(%rsp), %rbx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	(%rbx), %edx
	call	__printf_chk@PLT
	movq	16(%rbx), %rax
	movq	%rax, 8(%rsp)
	testq	%rax, %rax
	je	.L246
.L261:
	movq	8(%rsp), %rbx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	(%rbx), %edx
	call	__printf_chk@PLT
	movq	16(%rbx), %rax
	movq	%rax, (%rsp)
	testq	%rax, %rax
	je	.L247
.L260:
	movq	(%rsp), %rbx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	(%rbx), %edx
	call	__printf_chk@PLT
	movq	16(%rbx), %r12
	testq	%r12, %r12
	je	.L248
.L259:
	movl	(%r12), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%r12), %rbx
	testq	%rbx, %rbx
	je	.L249
.L258:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%rbx), %r15
	testq	%r15, %r15
	je	.L250
.L257:
	movl	(%r15), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%r15), %r14
	testq	%r14, %r14
	je	.L251
.L256:
	movl	(%r14), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%r14), %r13
	testq	%r13, %r13
	je	.L252
.L255:
	movl	0(%r13), %edx
	movl	$1, %edi
	movq	%rbp, %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%r13), %rdi
	testq	%rdi, %rdi
	je	.L253
	call	preorder
	movq	8(%r13), %r13
	testq	%r13, %r13
	jne	.L255
	.p2align 4,,10
	.p2align 3
.L252:
	movq	8(%r14), %r14
	testq	%r14, %r14
	jne	.L256
.L251:
	movq	8(%r15), %r15
	testq	%r15, %r15
	jne	.L257
.L250:
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	.L258
.L249:
	movq	8(%r12), %r12
	testq	%r12, %r12
	jne	.L259
.L248:
	movq	(%rsp), %rax
	movq	8(%rax), %rax
	movq	%rax, (%rsp)
	testq	%rax, %rax
	jne	.L260
.L247:
	movq	8(%rsp), %rax
	movq	8(%rax), %rax
	movq	%rax, 8(%rsp)
	testq	%rax, %rax
	jne	.L261
.L246:
	movq	16(%rsp), %rax
	movq	8(%rax), %rax
	movq	%rax, 16(%rsp)
	testq	%rax, %rax
	jne	.L262
.L245:
	movq	24(%rsp), %rax
	movq	8(%rax), %rax
	movq	%rax, 24(%rsp)
	testq	%rax, %rax
	jne	.L263
	addq	$40, %rsp
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L253:
	.cfi_restore_state
	movq	8(%r13), %r13
	testq	%r13, %r13
	jne	.L255
	movq	8(%r14), %r14
	testq	%r14, %r14
	jne	.L256
	jmp	.L251
	.cfi_endproc
.LFE48:
	.size	preorder, .-preorder
	.p2align 4
	.globl	print
	.type	print, @function
print:
.LFB49:
	.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	.L300
	leaq	.LC0(%rip), %rbp
.L305:
	movl	(%rbx), %edx
	movl	$1, %edi
	movq	%rbp, %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	.L302
	call	preorder
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	.L305
.L304:
	movl	$10, %edi
	call	putchar@PLT
	movq	root(%rip), %rbx
.L309:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	.L306
	call	inorder
.L306:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	.L309
	addq	$8, %rsp
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L302:
	.cfi_restore_state
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	.L305
	jmp	.L304
	.p2align 4,,10
	.p2align 3
.L300:
	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
.LFE49:
	.size	print, .-print
	.section	.rodata.str1.1
.LC1:
	.string	"%d"
.LC2:
	.string	"%s"
.LC3:
	.string	"%d %d"
.LC4:
	.string	"yes"
.LC5:
	.string	"no"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB50:
	.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	.LC1(%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	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	movq	$0, root(%rip)
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L318
	xorl	%ebx, %ebx
	leaq	14(%rsp), %r12
	leaq	.LC2(%rip), %rbp
	leaq	4(%rsp), %r13
	leaq	.LC3(%rip), %r15
	jmp	.L334
	.p2align 4,,10
	.p2align 3
.L325:
	cmpb	$112, %al
	je	.L340
	cmpb	$100, %al
	je	.L341
.L326:
	addl	$1, %ebx
	cmpl	%ebx, (%rsp)
	jle	.L318
.L334:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	14(%rsp), %eax
	cmpb	$102, %al
	je	.L342
	cmpb	$105, %al
	jne	.L325
	leaq	8(%rsp), %rdx
	movq	%r13, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	movl	4(%rsp), %esi
	addl	$1, %ebx
	movq	root(%rip), %rdi
	call	insert
	cmpl	%ebx, (%rsp)
	jg	.L334
	.p2align 4,,10
	.p2align 3
.L318:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L343
	addq	$40, %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
.L340:
	.cfi_restore_state
	movq	root(%rip), %rdi
	call	inorder
	movl	$10, %edi
	call	putchar@PLT
	movq	root(%rip), %rdi
	call	preorder
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L326
	.p2align 4,,10
	.p2align 3
.L342:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	root(%rip), %rax
	movl	4(%rsp), %ecx
	movl	(%rax), %edx
	cmpl	%edx, %ecx
	jne	.L321
	jmp	.L320
	.p2align 4,,10
	.p2align 3
.L344:
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	.L324
.L323:
	movl	(%rax), %edx
	cmpl	%edx, %ecx
	je	.L320
.L321:
	cmpl	%edx, %ecx
	jl	.L344
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	.L323
.L324:
	leaq	.LC5(%rip), %rdi
	call	puts@PLT
	jmp	.L326
.L320:
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L326
.L341:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	root(%rip), %rdi
	movl	4(%rsp), %esi
	movl	(%rdi), %edx
	cmpl	%edx, %esi
	je	.L329
	movq	%rdi, %rax
	jmp	.L330
	.p2align 4,,10
	.p2align 3
.L345:
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	.L326
	movl	(%rax), %edx
	cmpl	%edx, %esi
	je	.L329
.L330:
	cmpl	%edx, %esi
	jl	.L345
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	.L326
	movl	(%rax), %edx
	cmpl	%edx, %esi
	jne	.L330
.L329:
	call	delete
	jmp	.L326
.L343:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE50:
	.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	treeMinimum
	.type	treeMinimum, @function
treeMinimum:
.LFB39:
	.cfi_startproc
	endbr64
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rdi, %rax
	movq	16(%rdi), %rdi
	testq	%rdi, %rdi
	jne	.L2
	ret
	.cfi_endproc
.LFE39:
	.size	treeMinimum, .-treeMinimum
	.p2align 4
	.globl	treeMaximum
	.type	treeMaximum, @function
treeMaximum:
.LFB40:
	.cfi_startproc
	endbr64
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rdi, %rax
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	jne	.L6
	ret
	.cfi_endproc
.LFE40:
	.size	treeMaximum, .-treeMaximum
	.p2align 4
	.globl	Search
	.type	Search, @function
Search:
.LFB41:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	cmpl	%eax, %esi
	jne	.L10
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L16:
	movq	16(%rdi), %rdi
	testq	%rdi, %rdi
	je	.L15
.L12:
	movl	(%rdi), %eax
	cmpl	%esi, %eax
	je	.L14
.L10:
	cmpl	%eax, %esi
	jl	.L16
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	jne	.L12
.L15:
	xorl	%eax, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%rdi, %rax
	ret
	.cfi_endproc
.LFE41:
	.size	Search, .-Search
	.p2align 4
	.globl	rightRotate
	.type	rightRotate, @function
rightRotate:
.LFB42:
	.cfi_startproc
	endbr64
	cmpq	%rdi, root(%rip)
	movq	16(%rdi), %rax
	je	.L19
	movq	8(%rax), %rdx
	movq	%rdx, 16(%rdi)
	movq	%rdi, 8(%rax)
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	movq	8(%rax), %rdx
	movq	%rax, root(%rip)
	movq	%rdx, 16(%rdi)
	movq	%rdi, 8(%rax)
	ret
	.cfi_endproc
.LFE42:
	.size	rightRotate, .-rightRotate
	.p2align 4
	.globl	leftRotate
	.type	leftRotate, @function
leftRotate:
.LFB43:
	.cfi_startproc
	endbr64
	cmpq	%rdi, root(%rip)
	movq	8(%rdi), %rax
	je	.L22
	movq	16(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movq	%rdi, 16(%rax)
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	movq	16(%rax), %rdx
	movq	%rax, root(%rip)
	movq	%rdx, 8(%rdi)
	movq	%rdi, 16(%rax)
	ret
	.cfi_endproc
.LFE43:
	.size	leftRotate, .-leftRotate
	.p2align 4
	.globl	delete
	.type	delete, @function
delete:
.LFB45:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	cmpl	%esi, (%rdi)
	jg	.L46
	jge	.L35
	movq	8(%rdi), %rbp
	cmpl	0(%rbp), %esi
	jl	.L47
	jle	.L41
	movq	8(%rbp), %r13
	cmpl	0(%r13), %esi
	jl	.L48
	jle	.L44
	movq	8(%r13), %rdi
	call	delete
	movq	%rax, 8(%r13)
.L43:
	movq	%r13, 8(%rbp)
.L40:
	movq	%rbp, 8(%r12)
	movq	%r12, %rax
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L35:
	.cfi_restore_state
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	jmp	_delete
	.p2align 4,,10
	.p2align 3
.L46:
	.cfi_restore_state
	movq	16(%rdi), %rbp
	cmpl	0(%rbp), %esi
	jl	.L49
	jle	.L30
	movq	8(%rbp), %r13
	cmpl	0(%r13), %esi
	jl	.L50
	jle	.L33
	movq	8(%r13), %rdi
	call	delete
	movq	%rax, 8(%r13)
.L32:
	movq	%r13, 8(%rbp)
.L29:
	movq	%rbp, 16(%r12)
	movq	%r12, %rax
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L41:
	.cfi_restore_state
	movq	%rbp, %rdi
	call	_delete
	movq	%rax, %rbp
	jmp	.L40
	.p2align 4,,10
	.p2align 3
.L30:
	movq	%rbp, %rdi
	call	_delete
	movq	%rax, %rbp
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L47:
	movq	16(%rbp), %r13
	cmpl	0(%r13), %esi
	jl	.L51
	jle	.L39
	movq	8(%r13), %rdi
	call	delete
	movq	%rax, 8(%r13)
.L38:
	movq	%r13, 16(%rbp)
	jmp	.L40
	.p2align 4,,10
	.p2align 3
.L49:
	movq	16(%rbp), %r13
	cmpl	0(%r13), %esi
	jl	.L52
	jle	.L28
	movq	8(%r13), %rdi
	call	delete
	movq	%rax, 8(%r13)
.L27:
	movq	%r13, 16(%rbp)
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L48:
	movq	16(%r13), %rdi
	call	delete
	movq	%rax, 16(%r13)
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L28:
	movq	%r13, %rdi
	call	_delete
	movq	%rax, %r13
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L51:
	movq	16(%r13), %rdi
	call	delete
	movq	%rax, 16(%r13)
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L50:
	movq	16(%r13), %rdi
	call	delete
	movq	%rax, 16(%r13)
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L44:
	movq	%r13, %rdi
	call	_delete
	movq	%rax, %r13
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L52:
	movq	16(%r13), %rdi
	call	delete
	movq	%rax, 16(%r13)
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L39:
	movq	%r13, %rdi
	call	_delete
	movq	%rax, %r13
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L33:
	movq	%r13, %rdi
	call	_delete
	movq	%rax, %r13
	jmp	.L32
	.cfi_endproc
.LFE45:
	.size	delete, .-delete
	.p2align 4
	.globl	_delete
	.type	_delete, @function
_delete:
.LFB44:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movq	root(%rip), %rdx
	xorl	%ecx, %ecx
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
.L70:
	movq	16(%rdi), %rax
	movq	8(%rdi), %r12
	testq	%rax, %rax
	je	.L98
	testq	%r12, %r12
	je	.L96
	movl	4(%r12), %r9d
	cmpl	%r9d, 4(%rax)
	jle	.L62
.L96:
	cmpq	%rdx, %rdi
	je	.L99
	movq	8(%rax), %r8
	movq	%rax, %r12
	movq	%r8, 16(%rdi)
	movq	%rdi, 8(%rax)
.L107:
	cmpl	(%r12), %esi
	jge	.L65
.L103:
	testb	%cl, %cl
	je	.L66
	movq	%rdx, root(%rip)
.L66:
	movq	16(%r12), %rbp
	cmpl	0(%rbp), %esi
	jl	.L100
	jle	.L69
	movq	8(%rbp), %rdi
	call	delete
	movq	%rax, 8(%rbp)
.L68:
	movq	%rbp, 16(%r12)
.L53:
	movq	%r12, %rax
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L98:
	.cfi_restore_state
	testq	%r12, %r12
	je	.L101
.L62:
	cmpq	%rdx, %rdi
	je	.L102
.L64:
	movq	16(%r12), %rax
	movq	%rax, 8(%rdi)
	movq	%rdi, 16(%r12)
	cmpl	(%r12), %esi
	jl	.L103
.L65:
	jle	.L82
	testb	%cl, %cl
	jne	.L104
	movq	8(%r12), %rbp
	cmpl	0(%rbp), %esi
	jl	.L105
.L72:
	jle	.L74
	movq	8(%rbp), %r13
	cmpl	0(%r13), %esi
	jl	.L106
	jle	.L77
	movq	8(%r13), %rdi
	call	delete
	movq	%rax, 8(%r13)
.L76:
	movq	%r13, 8(%rbp)
	jmp	.L73
	.p2align 4,,10
	.p2align 3
.L104:
	movq	8(%r12), %rbp
	movq	%rdx, root(%rip)
	cmpl	0(%rbp), %esi
	jge	.L72
	jmp	.L105
	.p2align 4,,10
	.p2align 3
.L102:
	movq	%r12, %rdx
	movl	$1, %ecx
	jmp	.L64
	.p2align 4,,10
	.p2align 3
.L82:
	movq	%r12, %rdi
	jmp	.L70
	.p2align 4,,10
	.p2align 3
.L105:
	movq	16(%rbp), %rdi
	call	delete
	movq	%rax, 16(%rbp)
.L73:
	movq	%rbp, 8(%r12)
	movq	%r12, %rax
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L99:
	.cfi_restore_state
	movq	8(%rax), %r8
	movq	%rax, %rdx
	movl	$1, %ecx
	movq	%rax, %r12
	movq	%r8, 16(%rdi)
	movq	%rdi, 8(%rax)
	jmp	.L107
	.p2align 4,,10
	.p2align 3
.L69:
	movq	%rbp, %rdi
	call	_delete
	movq	%rax, %rbp
	jmp	.L68
	.p2align 4,,10
	.p2align 3
.L106:
	movq	16(%r13), %rdi
	call	delete
	movq	%rax, 16(%r13)
	jmp	.L76
	.p2align 4,,10
	.p2align 3
.L100:
	movq	16(%rbp), %rdi
	call	delete
	movq	%rax, 16(%rbp)
	jmp	.L68
	.p2align 4,,10
	.p2align 3
.L74:
	movq	%rbp, %rdi
	call	_delete
	movq	%rax, %rbp
	jmp	.L73
	.p2align 4,,10
	.p2align 3
.L77:
	movq	%r13, %rdi
	call	_delete
	movq	%rax, %r13
	jmp	.L76
	.p2align 4,,10
	.p2align 3
.L101:
	testb	%cl, %cl
	je	.L53
	movq	%rdx, root(%rip)
	jmp	.L53
	.cfi_endproc
.LFE44:
	.size	_delete, .-_delete
	.p2align 4
	.globl	insert
	.type	insert, @function
insert:
.LFB46:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movd	%esi, %xmm0
	movd	%edx, %xmm1
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	punpckldq	%xmm1, %xmm0
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	testq	%rdi, %rdi
	je	.L157
	movq	%rdi, %rbx
	cmpl	%esi, (%rdi)
	je	.L131
	movl	%edx, %r13d
	jle	.L112
	movq	16(%rdi), %r12
	testq	%r12, %r12
	je	.L158
	cmpl	(%r12), %esi
	je	.L159
	jge	.L116
	movq	16(%r12), %rbp
	testq	%rbp, %rbp
	je	.L160
	cmpl	0(%rbp), %esi
	je	.L161
	jl	.L162
	movq	8(%rbp), %rdi
	call	insert
	movl	4(%rbp), %edx
	movl	4(%rax), %ecx
	movq	%rax, 8(%rbp)
	cmpl	%ecx, %edx
	jge	.L118
	cmpq	root(%rip), %rbp
	je	.L163
.L122:
	movq	16(%rax), %rdx
	movq	%rdx, 8(%rbp)
	movl	%ecx, %edx
	movq	%rbp, 16(%rax)
	movq	%rax, %rbp
	.p2align 4,,10
	.p2align 3
.L118:
	movl	4(%r12), %r13d
	movq	%rbp, 16(%r12)
	cmpl	%edx, %r13d
	jge	.L114
	cmpq	root(%rip), %r12
	je	.L164
.L123:
	movq	8(%rbp), %rax
	movl	%edx, %r13d
	movq	%rax, 16(%r12)
	movq	%r12, 8(%rbp)
	movq	%rbp, %r12
	jmp	.L114
	.p2align 4,,10
	.p2align 3
.L131:
	movq	%rbx, %r12
.L108:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	movq	%r12, %rax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L112:
	.cfi_restore_state
	movq	8(%rdi), %r12
	testq	%r12, %r12
	je	.L165
	cmpl	(%r12), %esi
	je	.L166
	jge	.L136
	movq	16(%r12), %rbp
	testq	%rbp, %rbp
	je	.L167
	cmpl	0(%rbp), %esi
	je	.L168
	jl	.L169
	movq	8(%rbp), %rdi
	call	insert
	movl	4(%rbp), %edx
	movl	4(%rax), %ecx
	movq	%rax, 8(%rbp)
	cmpl	%ecx, %edx
	jge	.L138
	cmpq	root(%rip), %rbp
	je	.L170
.L142:
	movq	16(%rax), %rdx
	movq	%rdx, 8(%rbp)
	movl	%ecx, %edx
	movq	%rbp, 16(%rax)
	movq	%rax, %rbp
	.p2align 4,,10
	.p2align 3
.L138:
	movl	4(%r12), %r13d
	movq	%rbp, 16(%r12)
	cmpl	%r13d, %edx
	jle	.L134
	cmpq	root(%rip), %r12
	je	.L171
.L143:
	movq	8(%rbp), %rax
	movl	%edx, %r13d
	movq	%rax, 16(%r12)
	movq	%r12, 8(%rbp)
	movq	%rbp, %r12
	jmp	.L134
	.p2align 4,,10
	.p2align 3
.L116:
	movq	8(%r12), %rbp
	testq	%rbp, %rbp
	je	.L172
	cmpl	0(%rbp), %esi
	je	.L173
	jl	.L174
	movq	8(%rbp), %rdi
	call	insert
	movl	4(%rbp), %edx
	movl	4(%rax), %ecx
	movq	%rax, 8(%rbp)
	cmpl	%ecx, %edx
	jge	.L125
	cmpq	root(%rip), %rbp
	je	.L175
.L129:
	movq	16(%rax), %rdx
	movq	%rdx, 8(%rbp)
	movl	%ecx, %edx
	movq	%rbp, 16(%rax)
	movq	%rax, %rbp
	.p2align 4,,10
	.p2align 3
.L125:
	movl	4(%r12), %r13d
	movq	%rbp, 8(%r12)
	cmpl	%edx, %r13d
	jge	.L114
	cmpq	root(%rip), %r12
	je	.L176
.L130:
	movq	16(%rbp), %rax
	movl	%edx, %r13d
	movq	%rax, 8(%r12)
	movq	%r12, 16(%rbp)
	movq	%rbp, %r12
	jmp	.L114
	.p2align 4,,10
	.p2align 3
.L136:
	movq	8(%r12), %rbp
	testq	%rbp, %rbp
	je	.L177
	cmpl	0(%rbp), %esi
	je	.L178
	jl	.L179
	movq	8(%rbp), %rdi
	call	insert
	movl	4(%rbp), %edx
	movl	4(%rax), %ecx
	movq	%rax, 8(%rbp)
	cmpl	%ecx, %edx
	jge	.L145
	cmpq	root(%rip), %rbp
	je	.L180
.L149:
	movq	16(%rax), %rdx
	movq	%rdx, 8(%rbp)
	movl	%ecx, %edx
	movq	%rbp, 16(%rax)
	movq	%rax, %rbp
	.p2align 4,,10
	.p2align 3
.L145:
	movl	4(%r12), %r13d
	movq	%rbp, 8(%r12)
	cmpl	%r13d, %edx
	jle	.L134
	cmpq	root(%rip), %r12
	je	.L181
.L150:
	movq	16(%rbp), %rax
	movl	%edx, %r13d
	movq	%rax, 8(%r12)
	movq	%r12, 16(%rbp)
	movq	%rbp, %r12
	jmp	.L134
	.p2align 4,,10
	.p2align 3
.L157:
	movl	$24, %edi
	movq	%xmm0, 8(%rsp)
	call	malloc@PLT
	movq	8(%rsp), %xmm0
	cmpq	$0, root(%rip)
	movq	%rax, %r12
	movq	%xmm0, (%rax)
	pxor	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	jne	.L108
	movq	%rax, root(%rip)
	jmp	.L108
	.p2align 4,,10
	.p2align 3
.L166:
	movl	4(%r12), %r13d
	.p2align 4,,10
	.p2align 3
.L134:
	movq	%r12, 8(%rbx)
	cmpl	%r13d, 4(%rbx)
	jge	.L131
	cmpq	root(%rip), %rbx
	je	.L182
.L151:
	movq	16(%r12), %rax
	movq	%rax, 8(%rbx)
	movq	%r12, %rax
	movq	%rbx, 16(%r12)
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L159:
	.cfi_restore_state
	movl	4(%r12), %r13d
	.p2align 4,,10
	.p2align 3
.L114:
	movq	%r12, 16(%rbx)
	cmpl	%r13d, 4(%rbx)
	jge	.L131
	cmpq	root(%rip), %rbx
	je	.L183
.L132:
	movq	8(%r12), %rax
	movq	%rax, 16(%rbx)
	movq	%r12, %rax
	movq	%rbx, 8(%r12)
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L182:
	.cfi_restore_state
	movq	%r12, root(%rip)
	jmp	.L151
	.p2align 4,,10
	.p2align 3
.L183:
	movq	%r12, root(%rip)
	jmp	.L132
	.p2align 4,,10
	.p2align 3
.L169:
	movq	16(%rbp), %rdi
	call	insert
	movl	4(%rbp), %edx
	movl	4(%rax), %ecx
	movq	%rax, 16(%rbp)
	cmpl	%ecx, %edx
	jge	.L138
	cmpq	root(%rip), %rbp
	je	.L184
.L141:
	movq	8(%rax), %rdx
	movq	%rdx, 16(%rbp)
	movl	%ecx, %edx
	movq	%rbp, 8(%rax)
	movq	%rax, %rbp
	jmp	.L138
	.p2align 4,,10
	.p2align 3
.L174:
	movq	16(%rbp), %rdi
	call	insert
	movl	4(%rbp), %edx
	movl	4(%rax), %ecx
	movq	%rax, 16(%rbp)
	cmpl	%ecx, %edx
	jge	.L125
	cmpq	root(%rip), %rbp
	je	.L185
.L128:
	movq	8(%rax), %rdx
	movq	%rdx, 16(%rbp)
	movl	%ecx, %edx
	movq	%rbp, 8(%rax)
	movq	%rax, %rbp
	jmp	.L125
	.p2align 4,,10
	.p2align 3
.L179:
	movq	16(%rbp), %rdi
	call	insert
	movl	4(%rbp), %edx
	movl	4(%rax), %ecx
	movq	%rax, 16(%rbp)
	cmpl	%ecx, %edx
	jge	.L145
	cmpq	root(%rip), %rbp
	je	.L186
.L148:
	movq	8(%rax), %rdx
	movq	%rdx, 16(%rbp)
	movl	%ecx, %edx
	movq	%rbp, 8(%rax)
	movq	%rax, %rbp
	jmp	.L145
	.p2align 4,,10
	.p2align 3
.L162:
	movq	16(%rbp), %rdi
	call	insert
	movl	4(%rbp), %edx
	movl	4(%rax), %ecx
	movq	%rax, 16(%rbp)
	cmpl	%ecx, %edx
	jge	.L118
	cmpq	root(%rip), %rbp
	je	.L187
.L121:
	movq	8(%rax), %rdx
	movq	%rdx, 16(%rbp)
	movl	%ecx, %edx
	movq	%rbp, 8(%rax)
	movq	%rax, %rbp
	jmp	.L118
	.p2align 4,,10
	.p2align 3
.L158:
	movl	$24, %edi
	movq	%xmm0, 8(%rsp)
	call	malloc@PLT
	movq	8(%rsp), %xmm0
	cmpq	$0, root(%rip)
	movq	%rax, %r12
	movq	%xmm0, (%rax)
	pxor	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	jne	.L114
	movq	%rax, root(%rip)
	jmp	.L114
	.p2align 4,,10
	.p2align 3
.L165:
	movl	$24, %edi
	movq	%xmm0, 8(%rsp)
	call	malloc@PLT
	movq	8(%rsp), %xmm0
	cmpq	$0, root(%rip)
	movq	%rax, %r12
	movq	%xmm0, (%rax)
	pxor	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	jne	.L134
	movq	%rax, root(%rip)
	jmp	.L134
	.p2align 4,,10
	.p2align 3
.L168:
	movl	4(%rbp), %edx
	jmp	.L138
	.p2align 4,,10
	.p2align 3
.L173:
	movl	4(%rbp), %edx
	jmp	.L125
	.p2align 4,,10
	.p2align 3
.L178:
	movl	4(%rbp), %edx
	jmp	.L145
	.p2align 4,,10
	.p2align 3
.L161:
	movl	4(%rbp), %edx
	jmp	.L118
	.p2align 4,,10
	.p2align 3
.L176:
	movq	%rbp, root(%rip)
	jmp	.L130
	.p2align 4,,10
	.p2align 3
.L171:
	movq	%rbp, root(%rip)
	jmp	.L143
	.p2align 4,,10
	.p2align 3
.L164:
	movq	%rbp, root(%rip)
	jmp	.L123
	.p2align 4,,10
	.p2align 3
.L181:
	movq	%rbp, root(%rip)
	jmp	.L150
	.p2align 4,,10
	.p2align 3
.L167:
	movl	$24, %edi
	movq	%xmm0, 8(%rsp)
	call	malloc@PLT
	movq	8(%rsp), %xmm0
	cmpq	$0, root(%rip)
	movl	%r13d, %edx
	movq	%rax, %rbp
	movq	%xmm0, (%rax)
	pxor	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	jne	.L138
	movq	%rax, root(%rip)
	jmp	.L138
	.p2align 4,,10
	.p2align 3
.L177:
	movl	$24, %edi
	movq	%xmm0, 8(%rsp)
	call	malloc@PLT
	movq	8(%rsp), %xmm0
	cmpq	$0, root(%rip)
	movl	%r13d, %edx
	movq	%rax, %rbp
	movq	%xmm0, (%rax)
	pxor	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	jne	.L145
	movq	%rax, root(%rip)
	jmp	.L145
	.p2align 4,,10
	.p2align 3
.L160:
	movl	$24, %edi
	movq	%xmm0, 8(%rsp)
	call	malloc@PLT
	movq	8(%rsp), %xmm0
	cmpq	$0, root(%rip)
	movl	%r13d, %edx
	movq	%rax, %rbp
	movq	%xmm0, (%rax)
	pxor	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	jne	.L118
	movq	%rax, root(%rip)
	jmp	.L118
	.p2align 4,,10
	.p2align 3
.L172:
	movl	$24, %edi
	movq	%xmm0, 8(%rsp)
	call	malloc@PLT
	movq	8(%rsp), %xmm0
	cmpq	$0, root(%rip)
	movl	%r13d, %edx
	movq	%rax, %rbp
	movq	%xmm0, (%rax)
	pxor	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	jne	.L125
	movq	%rax, root(%rip)
	jmp	.L125
.L184:
	movq	%rax, root(%rip)
	jmp	.L141
.L187:
	movq	%rax, root(%rip)
	jmp	.L121
.L175:
	movq	%rax, root(%rip)
	jmp	.L129
.L163:
	movq	%rax, root(%rip)
	jmp	.L122
.L170:
	movq	%rax, root(%rip)
	jmp	.L142
.L180:
	movq	%rax, root(%rip)
	jmp	.L149
.L185:
	movq	%rax, root(%rip)
	jmp	.L128
.L186:
	movq	%rax, root(%rip)
	jmp	.L148
	.cfi_endproc
.LFE46:
	.size	insert, .-insert
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	" %d"
	.text
	.p2align 4
	.globl	inorder
	.type	inorder, @function
inorder:
.LFB47:
	.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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%rdi, 24(%rsp)
.L207:
	movq	24(%rsp), %rax
	movq	16(%rax), %rax
	movq	%rax, 16(%rsp)
	testq	%rax, %rax
	je	.L189
.L206:
	movq	16(%rsp), %rax
	movq	16(%rax), %rax
	movq	%rax, 8(%rsp)
	testq	%rax, %rax
	je	.L190
.L205:
	movq	8(%rsp), %rax
	movq	16(%rax), %rax
	movq	%rax, (%rsp)
	testq	%rax, %rax
	je	.L191
.L204:
	movq	(%rsp), %rax
	movq	16(%rax), %r12
	testq	%r12, %r12
	je	.L192
.L203:
	movq	16(%r12), %rbx
	testq	%rbx, %rbx
	je	.L193
.L202:
	movq	16(%rbx), %r15
	testq	%r15, %r15
	je	.L194
.L201:
	movq	16(%r15), %r14
	testq	%r14, %r14
	je	.L195
.L200:
	movq	16(%r14), %r13
	testq	%r13, %r13
	je	.L196
.L199:
	movq	16(%r13), %rdi
	testq	%rdi, %rdi
	je	.L197
	call	inorder
	.p2align 4,,10
	.p2align 3
.L197:
	movl	0(%r13), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%r13), %r13
	testq	%r13, %r13
	jne	.L199
.L196:
	movl	(%r14), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%r14), %r14
	testq	%r14, %r14
	jne	.L200
.L195:
	movl	(%r15), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%r15), %r15
	testq	%r15, %r15
	jne	.L201
.L194:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	.L202
.L193:
	movl	(%r12), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%r12), %r12
	testq	%r12, %r12
	jne	.L203
.L192:
	movq	(%rsp), %rbx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	(%rbx), %edx
	call	__printf_chk@PLT
	movq	8(%rbx), %rax
	movq	%rax, (%rsp)
	testq	%rax, %rax
	jne	.L204
.L191:
	movq	8(%rsp), %rbx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	(%rbx), %edx
	call	__printf_chk@PLT
	movq	8(%rbx), %rax
	movq	%rax, 8(%rsp)
	testq	%rax, %rax
	jne	.L205
.L190:
	movq	16(%rsp), %rbx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	(%rbx), %edx
	call	__printf_chk@PLT
	movq	8(%rbx), %rax
	movq	%rax, 16(%rsp)
	testq	%rax, %rax
	jne	.L206
.L189:
	movq	24(%rsp), %rbx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	(%rbx), %edx
	call	__printf_chk@PLT
	movq	8(%rbx), %rax
	movq	%rax, 24(%rsp)
	testq	%rax, %rax
	jne	.L207
	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
.LFE47:
	.size	inorder, .-inorder
	.p2align 4
	.globl	preorder
	.type	preorder, @function
preorder:
.LFB48:
	.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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%rdi, 24(%rsp)
.L263:
	movq	24(%rsp), %rbx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	(%rbx), %edx
	call	__printf_chk@PLT
	movq	16(%rbx), %rax
	movq	%rax, 16(%rsp)
	testq	%rax, %rax
	je	.L245
.L262:
	movq	16(%rsp), %rbx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	(%rbx), %edx
	call	__printf_chk@PLT
	movq	16(%rbx), %rax
	movq	%rax, 8(%rsp)
	testq	%rax, %rax
	je	.L246
.L261:
	movq	8(%rsp), %rbx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	(%rbx), %edx
	call	__printf_chk@PLT
	movq	16(%rbx), %rax
	movq	%rax, (%rsp)
	testq	%rax, %rax
	je	.L247
.L260:
	movq	(%rsp), %rbx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movl	(%rbx), %edx
	call	__printf_chk@PLT
	movq	16(%rbx), %r12
	testq	%r12, %r12
	je	.L248
.L259:
	movl	(%r12), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%r12), %rbx
	testq	%rbx, %rbx
	je	.L249
.L258:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%rbx), %r15
	testq	%r15, %r15
	je	.L250
.L257:
	movl	(%r15), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%r15), %r14
	testq	%r14, %r14
	je	.L251
.L256:
	movl	(%r14), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%r14), %r13
	testq	%r13, %r13
	je	.L252
.L255:
	movl	0(%r13), %edx
	movl	$1, %edi
	movq	%rbp, %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%r13), %rdi
	testq	%rdi, %rdi
	je	.L253
	call	preorder
	movq	8(%r13), %r13
	testq	%r13, %r13
	jne	.L255
	.p2align 4,,10
	.p2align 3
.L252:
	movq	8(%r14), %r14
	testq	%r14, %r14
	jne	.L256
.L251:
	movq	8(%r15), %r15
	testq	%r15, %r15
	jne	.L257
.L250:
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	.L258
.L249:
	movq	8(%r12), %r12
	testq	%r12, %r12
	jne	.L259
.L248:
	movq	(%rsp), %rax
	movq	8(%rax), %rax
	movq	%rax, (%rsp)
	testq	%rax, %rax
	jne	.L260
.L247:
	movq	8(%rsp), %rax
	movq	8(%rax), %rax
	movq	%rax, 8(%rsp)
	testq	%rax, %rax
	jne	.L261
.L246:
	movq	16(%rsp), %rax
	movq	8(%rax), %rax
	movq	%rax, 16(%rsp)
	testq	%rax, %rax
	jne	.L262
.L245:
	movq	24(%rsp), %rax
	movq	8(%rax), %rax
	movq	%rax, 24(%rsp)
	testq	%rax, %rax
	jne	.L263
	addq	$40, %rsp
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L253:
	.cfi_restore_state
	movq	8(%r13), %r13
	testq	%r13, %r13
	jne	.L255
	movq	8(%r14), %r14
	testq	%r14, %r14
	jne	.L256
	jmp	.L251
	.cfi_endproc
.LFE48:
	.size	preorder, .-preorder
	.p2align 4
	.globl	print
	.type	print, @function
print:
.LFB49:
	.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	.L300
	leaq	.LC0(%rip), %rbp
.L305:
	movl	(%rbx), %edx
	movl	$1, %edi
	movq	%rbp, %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	.L302
	call	preorder
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	.L305
.L304:
	movl	$10, %edi
	call	putchar@PLT
	movq	root(%rip), %rbx
.L309:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	.L306
	call	inorder
.L306:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	.L309
	addq	$8, %rsp
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L302:
	.cfi_restore_state
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	.L305
	jmp	.L304
	.p2align 4,,10
	.p2align 3
.L300:
	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
.LFE49:
	.size	print, .-print
	.section	.rodata.str1.1
.LC1:
	.string	"%d"
.LC2:
	.string	"%s"
.LC3:
	.string	"%d %d"
.LC4:
	.string	"yes"
.LC5:
	.string	"no"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB50:
	.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	.LC1(%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	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	movq	$0, root(%rip)
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L318
	xorl	%ebx, %ebx
	leaq	14(%rsp), %r12
	leaq	.LC2(%rip), %rbp
	leaq	4(%rsp), %r13
	leaq	.LC3(%rip), %r15
	jmp	.L334
	.p2align 4,,10
	.p2align 3
.L325:
	cmpb	$112, %al
	je	.L340
	cmpb	$100, %al
	je	.L341
.L326:
	addl	$1, %ebx
	cmpl	%ebx, (%rsp)
	jle	.L318
.L334:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	14(%rsp), %eax
	cmpb	$102, %al
	je	.L342
	cmpb	$105, %al
	jne	.L325
	leaq	8(%rsp), %rdx
	movq	%r13, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	movl	4(%rsp), %esi
	addl	$1, %ebx
	movq	root(%rip), %rdi
	call	insert
	cmpl	%ebx, (%rsp)
	jg	.L334
	.p2align 4,,10
	.p2align 3
.L318:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L343
	addq	$40, %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
.L340:
	.cfi_restore_state
	movq	root(%rip), %rdi
	call	inorder
	movl	$10, %edi
	call	putchar@PLT
	movq	root(%rip), %rdi
	call	preorder
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L326
	.p2align 4,,10
	.p2align 3
.L342:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	root(%rip), %rax
	movl	4(%rsp), %ecx
	movl	(%rax), %edx
	cmpl	%edx, %ecx
	jne	.L321
	jmp	.L320
	.p2align 4,,10
	.p2align 3
.L344:
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	.L324
.L323:
	movl	(%rax), %edx
	cmpl	%edx, %ecx
	je	.L320
.L321:
	cmpl	%edx, %ecx
	jl	.L344
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	.L323
.L324:
	leaq	.LC5(%rip), %rdi
	call	puts@PLT
	jmp	.L326
.L320:
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L326
.L341:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	root(%rip), %rdi
	movl	4(%rsp), %esi
	movl	(%rdi), %edx
	cmpl	%edx, %esi
	je	.L329
	movq	%rdi, %rax
	jmp	.L330
	.p2align 4,,10
	.p2align 3
.L345:
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	.L326
	movl	(%rax), %edx
	cmpl	%edx, %esi
	je	.L329
.L330:
	cmpl	%edx, %esi
	jl	.L345
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	.L326
	movl	(%rax), %edx
	cmpl	%edx, %esi
	jne	.L330
.L329:
	call	delete
	jmp	.L326
.L343:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE50:
	.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>
 
struct node{
	int key;
	int priority;
	struct node *right;
	struct node *left;
};

typedef struct node * Node;
#define NIL NULL

Node delete(Node, int); 
Node root;

Node treeMinimum(Node x){
	while ( x->left != NIL ){ x = x->left; }
	return x;
}
 
Node treeMaximum(Node x){
	while ( x->right != NIL ){ x = x->right; }
	return x;
}
 
Node Search(Node u, int k){
	Node ret = NIL;
	if ( u->key == k ){ return u; }
	else if ( u->key > k ){
		if ( u->left != NIL ){ return Search(u->left, k); }
	}
	else if (u->right!=NIL){ return Search(u->right, k); }
	return ret;
}

Node rightRotate(Node t){
	Node s = t->left;
	if ( t == root ){ root = s; }
	t->left = s->right;
	s->right = t;
	return s;
}
 
Node leftRotate(Node t){
	Node s = t->right;
	if ( t == root ){ root=s; }
	t->right = s->left;
	s->left = t;
	return s;
}
 
Node _delete(Node t, int key){
	if (t->left == NIL && t->right==NIL){ return NIL; }
	
	if (t->left == NIL){ t=leftRotate(t); }
	else if (t->right == NIL){ t=rightRotate(t); }
	else{
		if (t->left->priority > t->right->priority){
			t = rightRotate(t);
		}
		else
		{
			t = leftRotate(t);
		}
	}
	return delete(t, key);
}

Node delete(Node t, int key){
	if (key < t->key){ 
		t->left = delete(t->left,key); }
	else if (key > t->key){
		t->right = delete(t->right, key);
	}
	else{
		return _delete(t, key);
	}
	return t;
}

Node insert(Node t, int key, int priority){
	if (t == NIL)
	{
		Node z = malloc(sizeof(struct node));
		z->key = key;
		z->priority = priority;
		z->left = NIL;
		z->right=NIL;
		if (root==NIL) root = z;
		return z;
	}

	if (key == t->key){ return t; }
	
	if (key < t->key)
	{
		t->left = insert(t->left, key, priority);
		if (t->priority < t->left->priority){ t = rightRotate(t); }
	}
	else 
	{
		t->right = insert(t->right, key, priority);
		if (t->priority < t->right->priority){ t = leftRotate(t); }
	}

	return t;
}
 
void inorder(Node u){
	if (u->left != NIL){ inorder(u->left); }
	printf(" %d", u->key);
	if (u->right != NIL){ inorder(u->right); }
}
 
void preorder(Node u){
	printf(" %d", u->key);
	if (u->left != NIL){ preorder(u->left); }
	if (u->right != NIL){ preorder(u->right); }
}
 
void print(){
	if (root == NIL){ return; }
	preorder(root);
	printf("\n");
	inorder(root);
	printf("\n");
}
 
int main(){
	int n, i, x, y;
	Node t;
	char tmp[10];
	root = NIL;
	scanf("%d", &n);

	for (i=0; i<n; i++)
	{
		scanf("%s", tmp);
		if(tmp[0] == 'f')
		{
			scanf("%d", &x);
			t = Search(root, x);
			if (t != NIL){ printf("yes\n"); }
			else{ printf("no\n"); }
		}
		else if(tmp[0] == 'i')
		{
			scanf("%d %d", &x, &y);
			insert(root, x, y);
		}
		else if(tmp[0] == 'p')
		{
			inorder(root);
			printf("\n");
			preorder(root);
			printf("\n");
		}
		else if(tmp[0] == 'd')
		{
			scanf("%d", &x);
			t = Search(root, x);
			if (t != NIL){ delete(root, x); }
		}
	}
	return 0;
}

16
insert 35 99
insert 3 80
insert 1 53
insert 14 25
insert 80 76
insert 42 3
insert 102 47
insert 21 12
insert 7 10
insert 6 90
print
find 21
find 22
delete 35
delete 99
print
 16
insert 35 99
insert 3 80
insert 1 53
insert 14 25
insert 80 76
insert 42 3
insert 86 47
insert 26 12
insert 7 10
insert 6 90
print
find 21
find 22
delete 35
delete 99
print
 16
insert 35 57
insert 3 80
insert 1 53
insert 14 25
insert 80 76
insert 42 3
insert 86 47
insert 26 12
insert 7 10
insert 6 90
print
find 21
find 22
delete 35
delete 148
print
 16
insert 35 99
insert 3 80
insert 1 53
insert 14 25
insert 80 76
insert 42 3
insert 86 47
insert 21 12
insert 7 10
insert 6 139
print
find 21
find 22
delete 35
delete 99
print
 16
insert 35 99
insert 3 80
insert 1 53
insert 14 25
insert 80 76
insert 42 3
insert 102 47
insert 21 12
insert 7 10
insert 6 90
print
find 30
find 22
delete 35
delete 99
print
 16
insert 35 99
insert 3 80
insert 1 53
insert 14 25
insert 80 76
insert 42 3
insert 141 47
insert 21 12
insert 7 10
insert 6 139
print
find 21
find 22
delete 35
delete 99
print
 16
insert 21 99
insert 3 80
insert 1 12
insert 14 25
insert 80 76
insert 42 3
insert 141 47
insert 21 6
insert 7 10
insert 6 139
print
find 21
find 22
delete 35
delete 99
print
 16
insert 35 99
insert 3 80
insert 1 53
insert 14 25
insert 80 76
insert 42 3
insert 86 47
insert 21 12
insert 7 10
insert 6 90
print
find 21
find 22
delete 35
delete 21
print
 16
insert 35 99
insert 3 80
insert 1 53
insert 14 25
insert 87 76
insert 42 3
insert 102 47
insert 21 12
insert 7 10
insert 6 90
print
find 21
find 22
delete 35
delete 99
print
 16
insert 35 99
insert 3 80
insert 1 53
insert 14 25
insert 80 76
insert 42 3
insert 58 47
insert 26 12
insert 7 10
insert 6 90
print
find 21
find 22
delete 35
delete 99
print

 1 3 6 7 14 21 35 42 80 102
 35 6 3 1 14 7 21 80 42 102
yes
no
 1 3 6 7 14 21 42 80 102
 6 3 1 80 14 7 21 42 102
  1 3 6 7 14 26 35 42 80 86
 35 6 3 1 14 7 26 80 42 86
no
no
 1 3 6 7 14 26 42 80 86
 6 3 1 80 14 7 26 42 86
  1 3 6 7 14 26 35 42 80 86
 6 3 1 80 35 14 7 26 42 86
no
no
 1 3 6 7 14 26 42 80 86
 6 3 1 80 14 7 26 42 86
  1 3 6 7 14 21 35 42 80 86
 6 3 1 35 14 7 21 80 42 86
yes
no
 1 3 6 7 14 21 42 80 86
 6 3 1 80 14 7 21 42 86
  1 3 6 7 14 21 35 42 80 102
 35 6 3 1 14 7 21 80 42 102
no
no
 1 3 6 7 14 21 42 80 102
 6 3 1 80 14 7 21 42 102
  1 3 6 7 14 21 35 42 80 141
 6 3 1 35 14 7 21 80 42 141
yes
no
 1 3 6 7 14 21 42 80 141
 6 3 1 80 14 7 21 42 141
  1 3 6 7 14 21 42 80 141
 6 3 1 21 14 7 80 42 141
yes
no
 1 3 6 7 14 21 42 80 141
 6 3 1 21 14 7 80 42 141
  1 3 6 7 14 21 35 42 80 86
 35 6 3 1 14 7 21 80 42 86
yes
no
 1 3 6 7 14 42 80 86
 6 3 1 80 14 7 42 86
  1 3 6 7 14 21 35 42 87 102
 35 6 3 1 14 7 21 87 42 102
yes
no
 1 3 6 7 14 21 42 87 102
 6 3 1 87 14 7 21 42 102
  1 3 6 7 14 26 35 42 58 80
 35 6 3 1 14 7 26 80 58 42
no
no
 1 3 6 7 14 26 42 58 80
 6 3 1 80 58 14 7 26 42

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>
 
struct node{
	int key;
	int priority;
	struct node *right;
	struct node *left;
};

typedef struct node * Node;
#define NIL NULL

Node delete(Node, int); 
Node root;

Node treeMinimum(Node x){
	while ( x->left != NIL ){ x = x->left; }
	return x;
}
 
Node treeMaximum(Node x){
	while ( x->right != NIL ){ x = x->right; }
	return x;
}
 
Node Search(Node u, int k){
	Node ret = NIL;
	if ( u->key == k ){ return u; }
	else if ( u->key > k ){
		if ( u->left != NIL ){ return Search(u->left, k); }
	}
	else if (u->right!=NIL){ return Search(u->right, k); }
	return ret;
}

Node rightRotate(Node t){
	Node s = t->left;
	if ( t == root ){ root = s; }
	t->left = s->right;
	s->right = t;
	return s;
}
 
Node leftRotate(Node t){
	Node s = t->right;
	if ( t == root ){ root=s; }
	t->right = s->left;
	s->left = t;
	return s;
}
 
Node _delete(Node t, int key){
	if (t->left == NIL && t->right==NIL){ return NIL; }
	
	if (t->left == NIL){ t=leftRotate(t); }
	else if (t->right == NIL){ t=rightRotate(t); }
	else{
		if (t->left->priority > t->right->priority){
			t = rightRotate(t);
		}
		else
		{
			t = leftRotate(t);
		}
	}
	return delete(t, key);
}

Node delete(Node t, int key){
	if (key < t->key){ 
		t->left = delete(t->left,key); }
	else if (key > t->key){
		t->right = delete(t->right, key);
	}
	else{
		return _delete(t, key);
	}
	return t;
}

Node insert(Node t, int key, int priority){
	if (t == NIL)
	{
		Node z = malloc(sizeof(struct node));
		z->key = key;
		z->priority = priority;
		z->left = NIL;
		z->right=NIL;
		if (root==NIL) root = z;
		return z;
	}

	if (key == t->key){ return t; }
	
	if (key < t->key)
	{
		t->left = insert(t->left, key, priority);
		if (t->priority < t->left->priority){ t = rightRotate(t); }
	}
	else 
	{
		t->right = insert(t->right, key, priority);
		if (t->priority < t->right->priority){ t = leftRotate(t); }
	}

	return t;
}
 
void inorder(Node u){
	if (u->left != NIL){ inorder(u->left); }
	printf(" %d", u->key);
	if (u->right != NIL){ inorder(u->right); }
}
 
void preorder(Node u){
	printf(" %d", u->key);
	if (u->left != NIL){ preorder(u->left); }
	if (u->right != NIL){ preorder(u->right); }
}
 
void print(){
	if (root == NIL){ return; }
	preorder(root);
	printf("\n");
	inorder(root);
	printf("\n");
}
 
int main(){
	int n, i, x, y;
	Node t;
	char tmp[10];
	root = NIL;
	scanf("%d", &n);

	for (i=0; i<n; i++)
	{
		scanf("%s", tmp);
		if(tmp[0] == 'f')
		{
			scanf("%d", &x);
			t = Search(root, x);
			if (t != NIL){ printf("yes\n"); }
			else{ printf("no\n"); }
		}
		else if(tmp[0] == 'i')
		{
			scanf("%d %d", &x, &y);
			insert(root, x, y);
		}
		else if(tmp[0] == 'p')
		{
			inorder(root);
			printf("\n");
			preorder(root);
			printf("\n");
		}
		else if(tmp[0] == 'd')
		{
			scanf("%d", &x);
			t = Search(root, x);
			if (t != NIL){ delete(root, x); }
		}
	}
	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	treeMinimum
	.type	treeMinimum, @function
treeMinimum:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	jmp	.L2
.L3:
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, -8(%rbp)
.L2:
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	.L3
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	treeMinimum, .-treeMinimum
	.globl	treeMaximum
	.type	treeMaximum, @function
treeMaximum:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	jmp	.L6
.L7:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -8(%rbp)
.L6:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	.L7
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	treeMaximum, .-treeMaximum
	.globl	Search
	.type	Search, @function
Search:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movq	$0, -8(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -28(%rbp)
	jne	.L10
	movq	-24(%rbp), %rax
	jmp	.L11
.L10:
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -28(%rbp)
	jge	.L12
	movq	-24(%rbp), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	.L13
	movq	-24(%rbp), %rax
	movq	16(%rax), %rax
	movl	-28(%rbp), %edx
	movl	%edx, %esi
	movq	%rax, %rdi
	call	Search
	jmp	.L11
.L12:
	movq	-24(%rbp), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	.L13
	movq	-24(%rbp), %rax
	movq	8(%rax), %rax
	movl	-28(%rbp), %edx
	movl	%edx, %esi
	movq	%rax, %rdi
	call	Search
	jmp	.L11
.L13:
	movq	-8(%rbp), %rax
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	Search, .-Search
	.globl	rightRotate
	.type	rightRotate, @function
rightRotate:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	-24(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	root(%rip), %rax
	cmpq	%rax, -24(%rbp)
	jne	.L15
	movq	-8(%rbp), %rax
	movq	%rax, root(%rip)
.L15:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rdx
	movq	-24(%rbp), %rax
	movq	%rdx, 16(%rax)
	movq	-8(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rdx, 8(%rax)
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	rightRotate, .-rightRotate
	.globl	leftRotate
	.type	leftRotate, @function
leftRotate:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	-24(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	root(%rip), %rax
	cmpq	%rax, -24(%rbp)
	jne	.L18
	movq	-8(%rbp), %rax
	movq	%rax, root(%rip)
.L18:
	movq	-8(%rbp), %rax
	movq	16(%rax), %rdx
	movq	-24(%rbp), %rax
	movq	%rdx, 8(%rax)
	movq	-8(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rdx, 16(%rax)
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	leftRotate, .-leftRotate
	.globl	_delete
	.type	_delete, @function
_delete:
.LFB11:
	.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)
	movl	%esi, -12(%rbp)
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	.L21
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	.L21
	movl	$0, %eax
	jmp	.L22
.L21:
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	.L23
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	leftRotate
	movq	%rax, -8(%rbp)
	jmp	.L24
.L23:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	.L25
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	rightRotate
	movq	%rax, -8(%rbp)
	jmp	.L24
.L25:
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movl	4(%rax), %edx
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jle	.L26
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	rightRotate
	movq	%rax, -8(%rbp)
	jmp	.L24
.L26:
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	leftRotate
	movq	%rax, -8(%rbp)
.L24:
	movl	-12(%rbp), %edx
	movq	-8(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	delete
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	_delete, .-_delete
	.globl	delete
	.type	delete, @function
delete:
.LFB12:
	.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)
	movl	%esi, -12(%rbp)
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -12(%rbp)
	jge	.L28
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movl	-12(%rbp), %edx
	movl	%edx, %esi
	movq	%rax, %rdi
	call	delete
	movq	-8(%rbp), %rdx
	movq	%rax, 16(%rdx)
	jmp	.L29
.L28:
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L30
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movl	-12(%rbp), %edx
	movl	%edx, %esi
	movq	%rax, %rdi
	call	delete
	movq	-8(%rbp), %rdx
	movq	%rax, 8(%rdx)
	jmp	.L29
.L30:
	movl	-12(%rbp), %edx
	movq	-8(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	_delete
	jmp	.L31
.L29:
	movq	-8(%rbp), %rax
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	delete, .-delete
	.globl	insert
	.type	insert, @function
insert:
.LFB13:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	cmpq	$0, -24(%rbp)
	jne	.L33
	movl	$24, %edi
	call	malloc@PLT
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movl	-28(%rbp), %edx
	movl	%edx, (%rax)
	movq	-8(%rbp), %rax
	movl	-32(%rbp), %edx
	movl	%edx, 4(%rax)
	movq	-8(%rbp), %rax
	movq	$0, 16(%rax)
	movq	-8(%rbp), %rax
	movq	$0, 8(%rax)
	movq	root(%rip), %rax
	testq	%rax, %rax
	jne	.L34
	movq	-8(%rbp), %rax
	movq	%rax, root(%rip)
.L34:
	movq	-8(%rbp), %rax
	jmp	.L35
.L33:
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -28(%rbp)
	jne	.L36
	movq	-24(%rbp), %rax
	jmp	.L35
.L36:
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -28(%rbp)
	jge	.L37
	movq	-24(%rbp), %rax
	movq	16(%rax), %rax
	movl	-32(%rbp), %edx
	movl	-28(%rbp), %ecx
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	insert
	movq	-24(%rbp), %rdx
	movq	%rax, 16(%rdx)
	movq	-24(%rbp), %rax
	movl	4(%rax), %edx
	movq	-24(%rbp), %rax
	movq	16(%rax), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jge	.L38
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	rightRotate
	movq	%rax, -24(%rbp)
	jmp	.L38
.L37:
	movq	-24(%rbp), %rax
	movq	8(%rax), %rax
	movl	-32(%rbp), %edx
	movl	-28(%rbp), %ecx
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	insert
	movq	-24(%rbp), %rdx
	movq	%rax, 8(%rdx)
	movq	-24(%rbp), %rax
	movl	4(%rax), %edx
	movq	-24(%rbp), %rax
	movq	8(%rax), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jge	.L38
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	leftRotate
	movq	%rax, -24(%rbp)
.L38:
	movq	-24(%rbp), %rax
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	insert, .-insert
	.section	.rodata
.LC0:
	.string	" %d"
	.text
	.globl	inorder
	.type	inorder, @function
inorder:
.LFB14:
	.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)
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	.L40
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, %rdi
	call	inorder
.L40:
	movq	-8(%rbp), %rax
	movl	(%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
	testq	%rax, %rax
	je	.L42
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, %rdi
	call	inorder
.L42:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	inorder, .-inorder
	.globl	preorder
	.type	preorder, @function
preorder:
.LFB15:
	.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)
	movq	-8(%rbp), %rax
	movl	(%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
	testq	%rax, %rax
	je	.L44
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, %rdi
	call	preorder
.L44:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	.L46
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, %rdi
	call	preorder
.L46:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	preorder, .-preorder
	.globl	print
	.type	print, @function
print:
.LFB16:
	.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
	testq	%rax, %rax
	je	.L50
	movq	root(%rip), %rax
	movq	%rax, %rdi
	call	preorder
	movl	$10, %edi
	call	putchar@PLT
	movq	root(%rip), %rax
	movq	%rax, %rdi
	call	inorder
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L47
.L50:
	nop
.L47:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	print, .-print
	.section	.rodata
.LC1:
	.string	"%d"
.LC2:
	.string	"%s"
.LC3:
	.string	"yes"
.LC4:
	.string	"no"
.LC5:
	.string	"%d %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB17:
	.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
	movq	$0, root(%rip)
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -36(%rbp)
	jmp	.L52
.L58:
	leaq	-18(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-18(%rbp), %eax
	cmpb	$102, %al
	jne	.L53
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %edx
	movq	root(%rip), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	Search
	movq	%rax, -32(%rbp)
	cmpq	$0, -32(%rbp)
	je	.L54
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L55
.L54:
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L55
.L53:
	movzbl	-18(%rbp), %eax
	cmpb	$105, %al
	jne	.L56
	leaq	-40(%rbp), %rdx
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %edx
	movl	-44(%rbp), %ecx
	movq	root(%rip), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	insert
	jmp	.L55
.L56:
	movzbl	-18(%rbp), %eax
	cmpb	$112, %al
	jne	.L57
	movq	root(%rip), %rax
	movq	%rax, %rdi
	call	inorder
	movl	$10, %edi
	call	putchar@PLT
	movq	root(%rip), %rax
	movq	%rax, %rdi
	call	preorder
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L55
.L57:
	movzbl	-18(%rbp), %eax
	cmpb	$100, %al
	jne	.L55
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %edx
	movq	root(%rip), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	Search
	movq	%rax, -32(%rbp)
	cmpq	$0, -32(%rbp)
	je	.L55
	movl	-44(%rbp), %edx
	movq	root(%rip), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	delete
.L55:
	addl	$1, -36(%rbp)
.L52:
	movl	-48(%rbp), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L58
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L60
	call	__stack_chk_fail@PLT
.L60:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.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	treeMinimum
	.type	treeMinimum, @function
treeMinimum:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	jmp	.L2
.L3:
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, -8(%rbp)
.L2:
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	.L3
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	treeMinimum, .-treeMinimum
	.globl	treeMaximum
	.type	treeMaximum, @function
treeMaximum:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	jmp	.L6
.L7:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -8(%rbp)
.L6:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	.L7
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	treeMaximum, .-treeMaximum
	.globl	Search
	.type	Search, @function
Search:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movq	$0, -8(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -28(%rbp)
	jne	.L10
	movq	-24(%rbp), %rax
	jmp	.L11
.L10:
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -28(%rbp)
	jge	.L12
	movq	-24(%rbp), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	.L13
	movq	-24(%rbp), %rax
	movq	16(%rax), %rax
	movl	-28(%rbp), %edx
	movl	%edx, %esi
	movq	%rax, %rdi
	call	Search
	jmp	.L11
.L12:
	movq	-24(%rbp), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	.L13
	movq	-24(%rbp), %rax
	movq	8(%rax), %rax
	movl	-28(%rbp), %edx
	movl	%edx, %esi
	movq	%rax, %rdi
	call	Search
	jmp	.L11
.L13:
	movq	-8(%rbp), %rax
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	Search, .-Search
	.globl	rightRotate
	.type	rightRotate, @function
rightRotate:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	-24(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	root(%rip), %rax
	cmpq	%rax, -24(%rbp)
	jne	.L15
	movq	-8(%rbp), %rax
	movq	%rax, root(%rip)
.L15:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rdx
	movq	-24(%rbp), %rax
	movq	%rdx, 16(%rax)
	movq	-8(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rdx, 8(%rax)
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	rightRotate, .-rightRotate
	.globl	leftRotate
	.type	leftRotate, @function
leftRotate:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	-24(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	root(%rip), %rax
	cmpq	%rax, -24(%rbp)
	jne	.L18
	movq	-8(%rbp), %rax
	movq	%rax, root(%rip)
.L18:
	movq	-8(%rbp), %rax
	movq	16(%rax), %rdx
	movq	-24(%rbp), %rax
	movq	%rdx, 8(%rax)
	movq	-8(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rdx, 16(%rax)
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	leftRotate, .-leftRotate
	.globl	_delete
	.type	_delete, @function
_delete:
.LFB11:
	.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)
	movl	%esi, -12(%rbp)
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	.L21
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	.L21
	movl	$0, %eax
	jmp	.L22
.L21:
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	.L23
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	leftRotate
	movq	%rax, -8(%rbp)
	jmp	.L24
.L23:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	.L25
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	rightRotate
	movq	%rax, -8(%rbp)
	jmp	.L24
.L25:
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movl	4(%rax), %edx
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jle	.L26
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	rightRotate
	movq	%rax, -8(%rbp)
	jmp	.L24
.L26:
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	leftRotate
	movq	%rax, -8(%rbp)
.L24:
	movl	-12(%rbp), %edx
	movq	-8(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	delete
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	_delete, .-_delete
	.globl	delete
	.type	delete, @function
delete:
.LFB12:
	.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)
	movl	%esi, -12(%rbp)
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -12(%rbp)
	jge	.L28
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movl	-12(%rbp), %edx
	movl	%edx, %esi
	movq	%rax, %rdi
	call	delete
	movq	-8(%rbp), %rdx
	movq	%rax, 16(%rdx)
	jmp	.L29
.L28:
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L30
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movl	-12(%rbp), %edx
	movl	%edx, %esi
	movq	%rax, %rdi
	call	delete
	movq	-8(%rbp), %rdx
	movq	%rax, 8(%rdx)
	jmp	.L29
.L30:
	movl	-12(%rbp), %edx
	movq	-8(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	_delete
	jmp	.L31
.L29:
	movq	-8(%rbp), %rax
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	delete, .-delete
	.globl	insert
	.type	insert, @function
insert:
.LFB13:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	cmpq	$0, -24(%rbp)
	jne	.L33
	movl	$24, %edi
	call	malloc@PLT
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movl	-28(%rbp), %edx
	movl	%edx, (%rax)
	movq	-8(%rbp), %rax
	movl	-32(%rbp), %edx
	movl	%edx, 4(%rax)
	movq	-8(%rbp), %rax
	movq	$0, 16(%rax)
	movq	-8(%rbp), %rax
	movq	$0, 8(%rax)
	movq	root(%rip), %rax
	testq	%rax, %rax
	jne	.L34
	movq	-8(%rbp), %rax
	movq	%rax, root(%rip)
.L34:
	movq	-8(%rbp), %rax
	jmp	.L35
.L33:
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -28(%rbp)
	jne	.L36
	movq	-24(%rbp), %rax
	jmp	.L35
.L36:
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -28(%rbp)
	jge	.L37
	movq	-24(%rbp), %rax
	movq	16(%rax), %rax
	movl	-32(%rbp), %edx
	movl	-28(%rbp), %ecx
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	insert
	movq	-24(%rbp), %rdx
	movq	%rax, 16(%rdx)
	movq	-24(%rbp), %rax
	movl	4(%rax), %edx
	movq	-24(%rbp), %rax
	movq	16(%rax), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jge	.L38
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	rightRotate
	movq	%rax, -24(%rbp)
	jmp	.L38
.L37:
	movq	-24(%rbp), %rax
	movq	8(%rax), %rax
	movl	-32(%rbp), %edx
	movl	-28(%rbp), %ecx
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	insert
	movq	-24(%rbp), %rdx
	movq	%rax, 8(%rdx)
	movq	-24(%rbp), %rax
	movl	4(%rax), %edx
	movq	-24(%rbp), %rax
	movq	8(%rax), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jge	.L38
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	leftRotate
	movq	%rax, -24(%rbp)
.L38:
	movq	-24(%rbp), %rax
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	insert, .-insert
	.section	.rodata
.LC0:
	.string	" %d"
	.text
	.globl	inorder
	.type	inorder, @function
inorder:
.LFB14:
	.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)
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	.L40
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, %rdi
	call	inorder
.L40:
	movq	-8(%rbp), %rax
	movl	(%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
	testq	%rax, %rax
	je	.L42
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, %rdi
	call	inorder
.L42:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	inorder, .-inorder
	.globl	preorder
	.type	preorder, @function
preorder:
.LFB15:
	.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)
	movq	-8(%rbp), %rax
	movl	(%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
	testq	%rax, %rax
	je	.L44
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, %rdi
	call	preorder
.L44:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	.L46
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, %rdi
	call	preorder
.L46:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	preorder, .-preorder
	.globl	print
	.type	print, @function
print:
.LFB16:
	.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
	testq	%rax, %rax
	je	.L50
	movq	root(%rip), %rax
	movq	%rax, %rdi
	call	preorder
	movl	$10, %edi
	call	putchar@PLT
	movq	root(%rip), %rax
	movq	%rax, %rdi
	call	inorder
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L47
.L50:
	nop
.L47:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	print, .-print
	.section	.rodata
.LC1:
	.string	"%d"
.LC2:
	.string	"%s"
.LC3:
	.string	"yes"
.LC4:
	.string	"no"
.LC5:
	.string	"%d %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB17:
	.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
	movq	$0, root(%rip)
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -36(%rbp)
	jmp	.L52
.L58:
	leaq	-18(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-18(%rbp), %eax
	cmpb	$102, %al
	jne	.L53
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %edx
	movq	root(%rip), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	Search
	movq	%rax, -32(%rbp)
	cmpq	$0, -32(%rbp)
	je	.L54
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L55
.L54:
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L55
.L53:
	movzbl	-18(%rbp), %eax
	cmpb	$105, %al
	jne	.L56
	leaq	-40(%rbp), %rdx
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %edx
	movl	-44(%rbp), %ecx
	movq	root(%rip), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	insert
	jmp	.L55
.L56:
	movzbl	-18(%rbp), %eax
	cmpb	$112, %al
	jne	.L57
	movq	root(%rip), %rax
	movq	%rax, %rdi
	call	inorder
	movl	$10, %edi
	call	putchar@PLT
	movq	root(%rip), %rax
	movq	%rax, %rdi
	call	preorder
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L55
.L57:
	movzbl	-18(%rbp), %eax
	cmpb	$100, %al
	jne	.L55
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %edx
	movq	root(%rip), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	Search
	movq	%rax, -32(%rbp)
	cmpq	$0, -32(%rbp)
	je	.L55
	movl	-44(%rbp), %edx
	movq	root(%rip), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	delete
.L55:
	addl	$1, -36(%rbp)
.L52:
	movl	-48(%rbp), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L58
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L60
	call	__stack_chk_fail@PLT
.L60:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.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:
