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>
#define NIL NULL
typedef struct node{
	int key;
	int pri;
	struct node *right , *left;
}Node;

Node * Delete(Node **,int);
Node * del(Node **,int);

int find(Node *p,int x)
{
	while(p!=NIL)
	{
		if(p->key==x)return 1;
		else if(p->key > x)p = p->left;
		else p = p->right;
	}
	return 0;
}

void inorder(Node *a)
{
	if(a->left!=NIL) inorder(a->left);
	printf(" %d",a->key);
	if(a->right!=NIL) inorder(a->right);
	return;
}

void preorder(Node *p)
{
	printf(" %d",p->key);
	if(p->left!=NIL) preorder(p->left);
	if(p->right!=NIL) preorder(p->right);
	return;
}

void print(Node *p)
{
	inorder(p);
	printf("\n");
	preorder(p);
	printf("\n");
	return;
}

Node * makenode(int x , int y)
{
	Node *new = malloc(sizeof(Node));
	new->key = x;
	new->pri = y;
	new->left = NIL;
	new->right = NIL;
	return new;
}

Node *rightRotate(Node *p)
{
	Node *q = p->left;
	p->left = q->right;
	q->right = p;
	return q;
}

Node *leftRotate(Node *p)
{
	Node *q = p->right;
	p->right = q->left;
	q->left = p;
	return q;
}

Node* insert(Node **t , int key, int pri)
{
	Node *new;
	if((*t)==NIL)
	return new = makenode(key,pri);
	if((*t)->key == key)
	return *t;
	
	if(key < (*t)->key)
	{
		(*t)->left = insert(&(*t)->left,key,pri);
		if((*t)->pri < (*t)->left->pri)
		(*t) = rightRotate(*t);
	}
	else{
		(*t)->right = insert(&(*t)->right,key,pri);
		if((*t)->pri < (*t)->right->pri)
		(*t) = leftRotate((*t));
	}
	return *t;
}

Node * Delete(Node **t , int key)
{
	if((*t)==NIL)
	return NIL;
	
	if(key < (*t)->key)
	(*t)->left = Delete(&((*t)->left),key);
	
	else if(key > (*t)->key)
	(*t)->right = Delete(&((*t)->right),key);

	else return del(t,key);
	return *t;
}

Node * del(Node **t , int key)
{
	if((*t)->left == NIL && (*t)->right == NIL)
	{
		return NIL;
	}
	else if((*t)->left == NIL)
	{
		(*t) = leftRotate(*t);
	}
	else if((*t)->right ==NIL)
	{
		(*t) = rightRotate(*t);
	}
	else{
		if((*t)->left->pri > (*t)->right->pri)
		(*t) = rightRotate(*t);
		else
		(*t) = leftRotate(*t);
	}
	return Delete(t,key);
}

int main(void)
{
	int num ,  x, y;
	char com[8];
	Node *root = NIL;
	scanf("%d",&num);
	
	for(int i = 0; i < num; i++)
	{
		scanf("%s",com);
		switch(com[0])
		{
			case 'i':scanf("%d %d",&x,&y);
			root = insert(&root,x,y);
			break;
			case 'd':scanf("%d",&x);
			root = Delete(&root,x);
			break;
			case 'f':scanf("%d",&x);
			if(find(root,x))printf("yes\n");
			else printf("no\n");
			break;
			case 'p':print(root);
			break;
		}
	}
	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	find
	.type	find, @function
find:
.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)
	movl	%esi, -12(%rbp)
	jmp	.L2
.L6:
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -12(%rbp)
	jne	.L3
	movl	$1, %eax
	jmp	.L4
.L3:
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -12(%rbp)
	jge	.L5
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, -8(%rbp)
	jmp	.L2
.L5:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -8(%rbp)
.L2:
	cmpq	$0, -8(%rbp)
	jne	.L6
	movl	$0, %eax
.L4:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	find, .-find
	.section	.rodata
.LC0:
	.string	" %d"
	.text
	.globl	inorder
	.type	inorder, @function
inorder:
.LFB7:
	.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	.L8
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, %rdi
	call	inorder
.L8:
	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	.L11
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, %rdi
	call	inorder
	nop
.L11:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	inorder, .-inorder
	.globl	preorder
	.type	preorder, @function
preorder:
.LFB8:
	.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	.L13
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, %rdi
	call	preorder
.L13:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	.L16
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, %rdi
	call	preorder
	nop
.L16:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	preorder, .-preorder
	.globl	print
	.type	print, @function
print:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	inorder
	movl	$10, %edi
	call	putchar@PLT
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	preorder
	movl	$10, %edi
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	print, .-print
	.globl	makenode
	.type	makenode, @function
makenode:
.LFB10:
	.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
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	$24, %edi
	call	malloc@PLT
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movl	-20(%rbp), %edx
	movl	%edx, (%rax)
	movq	-8(%rbp), %rax
	movl	-24(%rbp), %edx
	movl	%edx, 4(%rax)
	movq	-8(%rbp), %rax
	movq	$0, 16(%rax)
	movq	-8(%rbp), %rax
	movq	$0, 8(%rax)
	movq	-8(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	makenode, .-makenode
	.globl	rightRotate
	.type	rightRotate, @function
rightRotate:
.LFB11:
	.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	-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
.LFE11:
	.size	rightRotate, .-rightRotate
	.globl	leftRotate
	.type	leftRotate, @function
leftRotate:
.LFB12:
	.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	-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
.LFE12:
	.size	leftRotate, .-leftRotate
	.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
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movq	%rdi, -40(%rbp)
	movl	%esi, -44(%rbp)
	movl	%edx, -48(%rbp)
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	.L26
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	makenode
	movq	%rax, -24(%rbp)
	movq	-24(%rbp), %rax
	jmp	.L27
.L26:
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	%eax, -44(%rbp)
	jne	.L28
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	jmp	.L27
.L28:
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	%eax, -44(%rbp)
	jge	.L29
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	leaq	16(%rax), %rcx
	movq	-40(%rbp), %rax
	movq	(%rax), %rbx
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %eax
	movl	%eax, %esi
	movq	%rcx, %rdi
	call	insert
	movq	%rax, 16(%rbx)
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movl	4(%rax), %edx
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jge	.L30
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	rightRotate
	movq	-40(%rbp), %rdx
	movq	%rax, (%rdx)
	jmp	.L30
.L29:
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	leaq	8(%rax), %rcx
	movq	-40(%rbp), %rax
	movq	(%rax), %rbx
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %eax
	movl	%eax, %esi
	movq	%rcx, %rdi
	call	insert
	movq	%rax, 8(%rbx)
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movl	4(%rax), %edx
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jge	.L30
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	leftRotate
	movq	-40(%rbp), %rdx
	movq	%rax, (%rdx)
.L30:
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
.L27:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	insert, .-insert
	.globl	Delete
	.type	Delete, @function
Delete:
.LFB14:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 3, -24
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	.L32
	movl	$0, %eax
	jmp	.L33
.L32:
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	%eax, -28(%rbp)
	jge	.L34
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	leaq	16(%rax), %rdx
	movq	-24(%rbp), %rax
	movq	(%rax), %rbx
	movl	-28(%rbp), %eax
	movl	%eax, %esi
	movq	%rdx, %rdi
	call	Delete
	movq	%rax, 16(%rbx)
	jmp	.L35
.L34:
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	%eax, -28(%rbp)
	jle	.L36
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	leaq	8(%rax), %rdx
	movq	-24(%rbp), %rax
	movq	(%rax), %rbx
	movl	-28(%rbp), %eax
	movl	%eax, %esi
	movq	%rdx, %rdi
	call	Delete
	movq	%rax, 8(%rbx)
	jmp	.L35
.L36:
	movl	-28(%rbp), %edx
	movq	-24(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	del
	jmp	.L33
.L35:
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
.L33:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	Delete, .-Delete
	.globl	del
	.type	del, @function
del:
.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)
	movl	%esi, -12(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	.L38
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	.L38
	movl	$0, %eax
	jmp	.L39
.L38:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	.L40
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	leftRotate
	movq	-8(%rbp), %rdx
	movq	%rax, (%rdx)
	jmp	.L41
.L40:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	.L42
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	rightRotate
	movq	-8(%rbp), %rdx
	movq	%rax, (%rdx)
	jmp	.L41
.L42:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rax
	movl	4(%rax), %edx
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jle	.L43
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	rightRotate
	movq	-8(%rbp), %rdx
	movq	%rax, (%rdx)
	jmp	.L41
.L43:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	leftRotate
	movq	-8(%rbp), %rdx
	movq	%rax, (%rdx)
.L41:
	movl	-12(%rbp), %edx
	movq	-8(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	Delete
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	del, .-del
	.section	.rodata
.LC1:
	.string	"%d"
.LC2:
	.string	"%s"
.LC3:
	.string	"%d %d"
.LC4:
	.string	"yes"
.LC5:
	.string	"no"
	.text
	.globl	main
	.type	main, @function
main:
.LFB16:
	.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, -24(%rbp)
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -28(%rbp)
	jmp	.L45
.L53:
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-16(%rbp), %eax
	movsbl	%al, %eax
	cmpl	$112, %eax
	je	.L46
	cmpl	$112, %eax
	jg	.L47
	cmpl	$105, %eax
	je	.L48
	cmpl	$105, %eax
	jg	.L47
	cmpl	$100, %eax
	je	.L49
	cmpl	$102, %eax
	je	.L50
	jmp	.L47
.L48:
	leaq	-32(%rbp), %rdx
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %edx
	movl	-36(%rbp), %ecx
	leaq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	insert
	movq	%rax, -24(%rbp)
	jmp	.L47
.L49:
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-36(%rbp), %edx
	leaq	-24(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	Delete
	movq	%rax, -24(%rbp)
	jmp	.L47
.L50:
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-36(%rbp), %edx
	movq	-24(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	find
	testl	%eax, %eax
	je	.L51
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L47
.L51:
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L47
.L46:
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	print
	nop
.L47:
	addl	$1, -28(%rbp)
.L45:
	movl	-40(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L53
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L55
	call	__stack_chk_fail@PLT
.L55:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.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	find
	.type	find, @function
find:
.LFB39:
	.cfi_startproc
	endbr64
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L4:
	cmpl	%esi, (%rdi)
	je	.L6
	movq	8(%rdi), %rax
	cmovg	16(%rdi), %rax
	movq	%rax, %rdi
.L8:
	testq	%rdi, %rdi
	jne	.L4
	xorl	%eax, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$1, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	find, .-find
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	" %d"
	.text
	.p2align 4
	.globl	inorder
	.type	inorder, @function
inorder:
.LFB40:
	.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)
.L29:
	movq	24(%rsp), %rax
	movq	16(%rax), %rax
	movq	%rax, 16(%rsp)
	testq	%rax, %rax
	je	.L11
.L28:
	movq	16(%rsp), %rax
	movq	16(%rax), %rax
	movq	%rax, 8(%rsp)
	testq	%rax, %rax
	je	.L12
.L27:
	movq	8(%rsp), %rax
	movq	16(%rax), %rax
	movq	%rax, (%rsp)
	testq	%rax, %rax
	je	.L13
.L26:
	movq	(%rsp), %rax
	movq	16(%rax), %r12
	testq	%r12, %r12
	je	.L14
.L25:
	movq	16(%r12), %rbx
	testq	%rbx, %rbx
	je	.L15
.L24:
	movq	16(%rbx), %r15
	testq	%r15, %r15
	je	.L16
.L23:
	movq	16(%r15), %r14
	testq	%r14, %r14
	je	.L17
.L22:
	movq	16(%r14), %r13
	testq	%r13, %r13
	je	.L18
.L21:
	movq	16(%r13), %rdi
	testq	%rdi, %rdi
	je	.L19
	call	inorder
	.p2align 4,,10
	.p2align 3
.L19:
	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	.L21
.L18:
	movl	(%r14), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%r14), %r14
	testq	%r14, %r14
	jne	.L22
.L17:
	movl	(%r15), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%r15), %r15
	testq	%r15, %r15
	jne	.L23
.L16:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	.L24
.L15:
	movl	(%r12), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%r12), %r12
	testq	%r12, %r12
	jne	.L25
.L14:
	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	.L26
.L13:
	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	.L27
.L12:
	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	.L28
.L11:
	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	.L29
	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
.LFE40:
	.size	inorder, .-inorder
	.p2align 4
	.globl	preorder
	.type	preorder, @function
preorder:
.LFB41:
	.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)
.L85:
	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	.L67
.L84:
	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	.L68
.L83:
	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	.L69
.L82:
	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	.L70
.L81:
	movl	(%r12), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%r12), %rbx
	testq	%rbx, %rbx
	je	.L71
.L80:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%rbx), %r15
	testq	%r15, %r15
	je	.L72
.L79:
	movl	(%r15), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%r15), %r14
	testq	%r14, %r14
	je	.L73
.L78:
	movl	(%r14), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%r14), %r13
	testq	%r13, %r13
	je	.L74
.L77:
	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	.L75
	call	preorder
	movq	8(%r13), %r13
	testq	%r13, %r13
	jne	.L77
	.p2align 4,,10
	.p2align 3
.L74:
	movq	8(%r14), %r14
	testq	%r14, %r14
	jne	.L78
.L73:
	movq	8(%r15), %r15
	testq	%r15, %r15
	jne	.L79
.L72:
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	.L80
.L71:
	movq	8(%r12), %r12
	testq	%r12, %r12
	jne	.L81
.L70:
	movq	(%rsp), %rax
	movq	8(%rax), %rax
	movq	%rax, (%rsp)
	testq	%rax, %rax
	jne	.L82
.L69:
	movq	8(%rsp), %rax
	movq	8(%rax), %rax
	movq	%rax, 8(%rsp)
	testq	%rax, %rax
	jne	.L83
.L68:
	movq	16(%rsp), %rax
	movq	8(%rax), %rax
	movq	%rax, 16(%rsp)
	testq	%rax, %rax
	jne	.L84
.L67:
	movq	24(%rsp), %rax
	movq	8(%rax), %rax
	movq	%rax, 24(%rsp)
	testq	%rax, %rax
	jne	.L85
	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
.L75:
	.cfi_restore_state
	movq	8(%r13), %r13
	testq	%r13, %r13
	jne	.L77
	movq	8(%r14), %r14
	testq	%r14, %r14
	jne	.L78
	jmp	.L73
	.cfi_endproc
.LFE41:
	.size	preorder, .-preorder
	.p2align 4
	.globl	print
	.type	print, @function
print:
.LFB42:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	%rdi, %rbx
.L126:
	movq	16(%rbp), %rdi
	testq	%rdi, %rdi
	je	.L123
	call	inorder
.L123:
	movl	0(%rbp), %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%rbp), %rbp
	testq	%rbp, %rbp
	jne	.L126
	movl	$10, %edi
	call	putchar@PLT
.L130:
	movl	(%rbx), %edx
	movl	$1, %edi
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	.L127
	call	preorder
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	.L130
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movl	$10, %edi
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	jmp	putchar@PLT
	.p2align 4,,10
	.p2align 3
.L127:
	.cfi_restore_state
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	.L130
	popq	%rbx
	.cfi_def_cfa_offset 24
	movl	$10, %edi
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	jmp	putchar@PLT
	.cfi_endproc
.LFE42:
	.size	print, .-print
	.p2align 4
	.globl	makenode
	.type	makenode, @function
makenode:
.LFB43:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	%esi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movl	%edi, %ebx
	movl	$24, %edi
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	malloc@PLT
	movd	%ebx, %xmm0
	movd	%ebp, %xmm1
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, (%rax)
	pxor	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	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
.LFE43:
	.size	makenode, .-makenode
	.p2align 4
	.globl	rightRotate
	.type	rightRotate, @function
rightRotate:
.LFB44:
	.cfi_startproc
	endbr64
	movq	16(%rdi), %rax
	movq	8(%rax), %rdx
	movq	%rdx, 16(%rdi)
	movq	%rdi, 8(%rax)
	ret
	.cfi_endproc
.LFE44:
	.size	rightRotate, .-rightRotate
	.p2align 4
	.globl	leftRotate
	.type	leftRotate, @function
leftRotate:
.LFB45:
	.cfi_startproc
	endbr64
	movq	8(%rdi), %rax
	movq	16(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movq	%rdi, 16(%rax)
	ret
	.cfi_endproc
.LFE45:
	.size	leftRotate, .-leftRotate
	.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
	movq	(%rdi), %r12
	testq	%r12, %r12
	je	.L172
	cmpl	%esi, (%r12)
	je	.L142
	movq	%rdi, %rbx
	jle	.L145
	movq	16(%r12), %rbp
	testq	%rbp, %rbp
	je	.L173
	cmpl	0(%rbp), %esi
	je	.L147
	jge	.L148
	movq	16(%rbp), %r13
	testq	%r13, %r13
	je	.L174
	cmpl	0(%r13), %esi
	je	.L150
	jge	.L151
	leaq	16(%r13), %rdi
	call	insert
	movq	%rax, 16(%r13)
	movq	16(%rbp), %r13
	movq	16(%r13), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%r13)
	jge	.L150
	movq	8(%rax), %rdx
	movq	%rdx, 16(%r13)
	movq	%r13, 8(%rax)
	movq	%rax, %r13
	.p2align 4,,10
	.p2align 3
.L150:
	movq	%r13, 16(%rbp)
	movq	16(%r12), %rbp
	movq	16(%rbp), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%rbp)
	jge	.L147
	movq	8(%rax), %rdx
	movq	%rdx, 16(%rbp)
	movq	%rbp, 8(%rax)
	movq	%rax, %rbp
	.p2align 4,,10
	.p2align 3
.L147:
	movq	%rbp, 16(%r12)
	movq	(%rbx), %r12
	movq	16(%r12), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%r12)
	jge	.L142
	movq	8(%rax), %rdx
	movq	%rdx, 16(%r12)
	movq	%r12, 8(%rax)
	movq	%rax, %r12
	movq	%rax, (%rbx)
.L142:
	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
.L145:
	.cfi_restore_state
	movq	8(%r12), %rbp
	testq	%rbp, %rbp
	je	.L175
	cmpl	0(%rbp), %esi
	je	.L160
	jge	.L161
	movq	16(%rbp), %r13
	testq	%r13, %r13
	je	.L176
	cmpl	0(%r13), %esi
	je	.L163
	jge	.L164
	leaq	16(%r13), %rdi
	call	insert
	movq	%rax, 16(%r13)
	movq	16(%rbp), %r13
	movq	16(%r13), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%r13)
	jge	.L163
	movq	8(%rax), %rdx
	movq	%rdx, 16(%r13)
	movq	%r13, 8(%rax)
	movq	%rax, %r13
	.p2align 4,,10
	.p2align 3
.L163:
	movq	%r13, 16(%rbp)
	movq	8(%r12), %rbp
	movq	16(%rbp), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%rbp)
	jge	.L160
	movq	8(%rax), %rdx
	movq	%rdx, 16(%rbp)
	movq	%rbp, 8(%rax)
	movq	%rax, %rbp
	.p2align 4,,10
	.p2align 3
.L160:
	movq	%rbp, 8(%r12)
	movq	(%rbx), %r12
	movq	8(%r12), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%r12)
	jge	.L142
	movq	16(%rax), %rdx
	movq	%rdx, 8(%r12)
	movq	%r12, 16(%rax)
	movq	%rax, %r12
	movq	%rax, (%rbx)
	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
.L148:
	.cfi_restore_state
	movq	8(%rbp), %r13
	testq	%r13, %r13
	je	.L177
	cmpl	0(%r13), %esi
	je	.L155
	jge	.L156
	leaq	16(%r13), %rdi
	call	insert
	movq	%rax, 16(%r13)
	movq	8(%rbp), %r13
	movq	16(%r13), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%r13)
	jge	.L155
	movq	8(%rax), %rdx
	movq	%rdx, 16(%r13)
	movq	%r13, 8(%rax)
	movq	%rax, %r13
	.p2align 4,,10
	.p2align 3
.L155:
	movq	%r13, 8(%rbp)
	movq	16(%r12), %rbp
	movq	8(%rbp), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%rbp)
	jge	.L147
	movq	16(%rax), %rdx
	movq	%rdx, 8(%rbp)
	movq	%rbp, 16(%rax)
	movq	%rax, %rbp
	jmp	.L147
	.p2align 4,,10
	.p2align 3
.L161:
	movq	8(%rbp), %r13
	testq	%r13, %r13
	je	.L178
	cmpl	0(%r13), %esi
	je	.L168
	jge	.L169
	leaq	16(%r13), %rdi
	call	insert
	movq	%rax, 16(%r13)
	movq	8(%rbp), %r13
	movq	16(%r13), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%r13)
	jge	.L168
	movq	8(%rax), %rdx
	movq	%rdx, 16(%r13)
	movq	%r13, 8(%rax)
	movq	%rax, %r13
	.p2align 4,,10
	.p2align 3
.L168:
	movq	%r13, 8(%rbp)
	movq	8(%r12), %rbp
	movq	8(%rbp), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%rbp)
	jge	.L160
	movq	16(%rax), %rdx
	movq	%rdx, 8(%rbp)
	movq	%rbp, 16(%rax)
	movq	%rax, %rbp
	jmp	.L160
	.p2align 4,,10
	.p2align 3
.L172:
	movl	$24, %edi
	movq	%xmm0, 8(%rsp)
	call	malloc@PLT
	movq	8(%rsp), %xmm0
	movq	%rax, %r12
	movq	%xmm0, (%rax)
	pxor	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	jmp	.L142
	.p2align 4,,10
	.p2align 3
.L164:
	leaq	8(%r13), %rdi
	call	insert
	movq	%rax, 8(%r13)
	movq	16(%rbp), %r13
	movq	8(%r13), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%r13)
	jge	.L163
	movq	16(%rax), %rdx
	movq	%rdx, 8(%r13)
	movq	%r13, 16(%rax)
	movq	%rax, %r13
	jmp	.L163
	.p2align 4,,10
	.p2align 3
.L169:
	leaq	8(%r13), %rdi
	call	insert
	movq	%rax, 8(%r13)
	movq	8(%rbp), %r13
	movq	8(%r13), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%r13)
	jge	.L168
	movq	16(%rax), %rdx
	movq	%rdx, 8(%r13)
	movq	%r13, 16(%rax)
	movq	%rax, %r13
	jmp	.L168
	.p2align 4,,10
	.p2align 3
.L151:
	leaq	8(%r13), %rdi
	call	insert
	movq	%rax, 8(%r13)
	movq	16(%rbp), %r13
	movq	8(%r13), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%r13)
	jge	.L150
	movq	16(%rax), %rdx
	movq	%rdx, 8(%r13)
	movq	%r13, 16(%rax)
	movq	%rax, %r13
	jmp	.L150
	.p2align 4,,10
	.p2align 3
.L156:
	leaq	8(%r13), %rdi
	call	insert
	movq	%rax, 8(%r13)
	movq	8(%rbp), %r13
	movq	8(%r13), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%r13)
	jge	.L155
	movq	16(%rax), %rdx
	movq	%rdx, 8(%r13)
	movq	%r13, 16(%rax)
	movq	%rax, %r13
	jmp	.L155
	.p2align 4,,10
	.p2align 3
.L175:
	movl	$24, %edi
	movq	%xmm0, 8(%rsp)
	call	malloc@PLT
	movq	8(%rsp), %xmm0
	movq	%rax, %rbp
	movq	%xmm0, (%rax)
	pxor	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	jmp	.L160
	.p2align 4,,10
	.p2align 3
.L173:
	movl	$24, %edi
	movq	%xmm0, 8(%rsp)
	call	malloc@PLT
	movq	8(%rsp), %xmm0
	movq	%rax, %rbp
	movq	%xmm0, (%rax)
	pxor	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	jmp	.L147
	.p2align 4,,10
	.p2align 3
.L176:
	movl	$24, %edi
	movq	%xmm0, 8(%rsp)
	call	malloc@PLT
	movq	8(%rsp), %xmm0
	movq	%rax, %r13
	movq	%xmm0, (%rax)
	pxor	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	jmp	.L163
	.p2align 4,,10
	.p2align 3
.L178:
	movl	$24, %edi
	movq	%xmm0, 8(%rsp)
	call	malloc@PLT
	movq	8(%rsp), %xmm0
	movq	%rax, %r13
	movq	%xmm0, (%rax)
	pxor	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	jmp	.L168
	.p2align 4,,10
	.p2align 3
.L174:
	movl	$24, %edi
	movq	%xmm0, 8(%rsp)
	call	malloc@PLT
	movq	8(%rsp), %xmm0
	movq	%rax, %r13
	movq	%xmm0, (%rax)
	pxor	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	jmp	.L150
	.p2align 4,,10
	.p2align 3
.L177:
	movl	$24, %edi
	movq	%xmm0, 8(%rsp)
	call	malloc@PLT
	movq	8(%rsp), %xmm0
	movq	%rax, %r13
	movq	%xmm0, (%rax)
	pxor	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	jmp	.L155
	.cfi_endproc
.LFE46:
	.size	insert, .-insert
	.p2align 4
	.globl	del
	.type	del, @function
del:
.LFB48:
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rdi, %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	movq	(%rdi), %rax
	movq	16(%rax), %rdx
	movq	8(%rax), %r12
	testq	%rdx, %rdx
	je	.L217
.L180:
	testq	%r12, %r12
	je	.L216
	movl	4(%r12), %ecx
	cmpl	%ecx, 4(%rdx)
	jg	.L216
.L184:
	movq	16(%r12), %rdx
	movq	%rdx, 8(%rax)
	movq	%rax, 16(%r12)
	movq	%r12, (%rbx)
	cmpl	(%r12), %esi
	jl	.L218
.L214:
	jle	.L201
	movq	8(%r12), %rbp
	testq	%rbp, %rbp
	je	.L191
	cmpl	0(%rbp), %esi
	jl	.L219
	jle	.L194
	movq	8(%rbp), %r13
	testq	%r13, %r13
	je	.L195
	cmpl	0(%r13), %esi
	jl	.L220
	jle	.L198
	leaq	8(%r13), %rdi
	call	Delete
	movq	%rax, 8(%r13)
.L197:
	movq	8(%rbp), %r13
.L195:
	movq	%r13, 8(%rbp)
.L193:
	movq	8(%r12), %rbp
.L191:
	movq	%rbp, 8(%r12)
.L189:
	movq	(%rbx), %r12
.L179:
	addq	$8, %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
.L216:
	.cfi_restore_state
	movq	8(%rdx), %rcx
	movq	%rdx, %r12
	movq	%rcx, 16(%rax)
	movq	%rax, 8(%rdx)
	movq	%r12, (%rbx)
	cmpl	(%r12), %esi
	jge	.L214
.L218:
	movq	16(%r12), %rbp
	testq	%rbp, %rbp
	je	.L185
	cmpl	0(%rbp), %esi
	jl	.L221
	jle	.L188
	leaq	8(%rbp), %rdi
	call	Delete
	movq	%rax, 8(%rbp)
.L187:
	movq	16(%r12), %rbp
.L185:
	movq	%rbp, 16(%r12)
	jmp	.L189
	.p2align 4,,10
	.p2align 3
.L201:
	movq	%r12, %rax
	movq	16(%rax), %rdx
	movq	8(%rax), %r12
	testq	%rdx, %rdx
	jne	.L180
.L217:
	testq	%r12, %r12
	jne	.L184
	jmp	.L179
	.p2align 4,,10
	.p2align 3
.L188:
	leaq	16(%r12), %rdi
	call	del
	movq	%rax, %rbp
	jmp	.L185
	.p2align 4,,10
	.p2align 3
.L219:
	leaq	16(%rbp), %rdi
	call	Delete
	movq	%rax, 16(%rbp)
	jmp	.L193
	.p2align 4,,10
	.p2align 3
.L221:
	leaq	16(%rbp), %rdi
	call	Delete
	movq	%rax, 16(%rbp)
	jmp	.L187
	.p2align 4,,10
	.p2align 3
.L194:
	leaq	8(%r12), %rdi
	call	del
	movq	%rax, %rbp
	jmp	.L191
	.p2align 4,,10
	.p2align 3
.L220:
	leaq	16(%r13), %rdi
	call	Delete
	movq	%rax, 16(%r13)
	jmp	.L197
	.p2align 4,,10
	.p2align 3
.L198:
	leaq	8(%rbp), %rdi
	call	del
	movq	%rax, %r13
	jmp	.L195
	.cfi_endproc
.LFE48:
	.size	del, .-del
	.p2align 4
	.globl	Delete
	.type	Delete, @function
Delete:
.LFB47:
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	movq	(%rdi), %r12
	testq	%r12, %r12
	je	.L222
	movq	%rdi, %rbp
	cmpl	%esi, (%r12)
	jg	.L266
	jge	.L234
	movq	8(%r12), %rbx
	testq	%rbx, %rbx
	je	.L235
	cmpl	(%rbx), %esi
	jl	.L267
	jle	.L242
	movq	8(%rbx), %r13
	testq	%r13, %r13
	je	.L243
	cmpl	0(%r13), %esi
	jl	.L268
	jle	.L246
	leaq	8(%r13), %rdi
	call	Delete
	movq	%rax, 8(%r13)
.L245:
	movq	8(%rbx), %r13
.L243:
	movq	%r13, 8(%rbx)
.L241:
	movq	8(%r12), %rbx
.L235:
	movq	%rbx, 8(%r12)
.L233:
	movq	0(%rbp), %r12
.L222:
	addq	$8, %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
.L234:
	.cfi_restore_state
	addq	$8, %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
	jmp	del
	.p2align 4,,10
	.p2align 3
.L266:
	.cfi_restore_state
	movq	16(%r12), %rbx
	testq	%rbx, %rbx
	je	.L225
	cmpl	(%rbx), %esi
	jl	.L269
	jle	.L228
	movq	8(%rbx), %r13
	testq	%r13, %r13
	je	.L229
	cmpl	0(%r13), %esi
	jl	.L270
	jle	.L232
	leaq	8(%r13), %rdi
	call	Delete
	movq	%rax, 8(%r13)
.L231:
	movq	8(%rbx), %r13
.L229:
	movq	%r13, 8(%rbx)
	movq	16(%r12), %rbx
.L225:
	movq	%rbx, 16(%r12)
	jmp	.L233
	.p2align 4,,10
	.p2align 3
.L269:
	leaq	16(%rbx), %rdi
	call	Delete
	movq	%rax, 16(%rbx)
	movq	16(%r12), %rbx
	jmp	.L225
	.p2align 4,,10
	.p2align 3
.L242:
	leaq	8(%r12), %rdi
	call	del
	movq	%rax, %rbx
	jmp	.L235
	.p2align 4,,10
	.p2align 3
.L267:
	movq	16(%rbx), %r13
	testq	%r13, %r13
	je	.L237
	cmpl	0(%r13), %esi
	jl	.L271
	jle	.L240
	leaq	8(%r13), %rdi
	call	Delete
	movq	%rax, 8(%r13)
.L239:
	movq	16(%rbx), %r13
.L237:
	movq	%r13, 16(%rbx)
	jmp	.L241
	.p2align 4,,10
	.p2align 3
.L228:
	leaq	16(%r12), %rdi
	call	del
	movq	%rax, %rbx
	jmp	.L225
	.p2align 4,,10
	.p2align 3
.L232:
	leaq	8(%rbx), %rdi
	call	del
	movq	%rax, %r13
	jmp	.L229
	.p2align 4,,10
	.p2align 3
.L240:
	leaq	16(%rbx), %rdi
	call	del
	movq	%rax, %r13
	jmp	.L237
	.p2align 4,,10
	.p2align 3
.L268:
	leaq	16(%r13), %rdi
	call	Delete
	movq	%rax, 16(%r13)
	jmp	.L245
	.p2align 4,,10
	.p2align 3
.L271:
	leaq	16(%r13), %rdi
	call	Delete
	movq	%rax, 16(%r13)
	jmp	.L239
	.p2align 4,,10
	.p2align 3
.L270:
	leaq	16(%r13), %rdi
	call	Delete
	movq	%rax, 16(%r13)
	jmp	.L231
	.p2align 4,,10
	.p2align 3
.L246:
	leaq	8(%rbx), %rdi
	call	del
	movq	%rax, %r13
	jmp	.L243
	.cfi_endproc
.LFE47:
	.size	Delete, .-Delete
	.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:
.LFB49:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC1(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	movq	$0, 40(%rsp)
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L273
	xorl	%ebp, %ebp
	leaq	48(%rsp), %r14
	leaq	.LC2(%rip), %r13
	leaq	.LC0(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L320:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	48(%rsp), %eax
	cmpb	$105, %al
	je	.L274
	jg	.L275
	cmpb	$100, %al
	je	.L276
	cmpb	$102, %al
	jne	.L278
	leaq	32(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	40(%rsp), %rax
	movl	32(%rsp), %ecx
	testq	%rax, %rax
	jne	.L311
	jmp	.L308
	.p2align 4,,10
	.p2align 3
.L356:
	movq	8(%rax), %rdx
	cmovl	16(%rax), %rdx
	movq	%rdx, %rax
	testq	%rdx, %rdx
	je	.L308
.L311:
	cmpl	(%rax), %ecx
	jne	.L356
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	.p2align 4,,10
	.p2align 3
.L278:
	addl	$1, %ebp
	cmpl	%ebp, 28(%rsp)
	jg	.L320
.L273:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L357
	addq	$72, %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
.L275:
	.cfi_restore_state
	cmpb	$112, %al
	jne	.L278
	movq	40(%rsp), %rbx
	movq	%rbx, %r15
.L315:
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	je	.L312
	call	inorder
.L312:
	movl	(%r15), %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%r15), %r15
	testq	%r15, %r15
	jne	.L315
	movl	$10, %edi
	call	putchar@PLT
.L319:
	movl	(%rbx), %edx
	movl	$1, %edi
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	.L316
	call	preorder
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	.L319
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L278
	.p2align 4,,10
	.p2align 3
.L316:
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	.L319
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L278
	.p2align 4,,10
	.p2align 3
.L274:
	leaq	36(%rsp), %rdx
	leaq	32(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %edx
	movl	32(%rsp), %esi
	leaq	40(%rsp), %rdi
	call	insert
	movq	%rax, 40(%rsp)
	jmp	.L278
	.p2align 4,,10
	.p2align 3
.L276:
	leaq	32(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	40(%rsp), %rbx
	movl	32(%rsp), %esi
	movq	%rbx, %rax
	testq	%rbx, %rbx
	je	.L280
	cmpl	(%rbx), %esi
	jl	.L358
	jle	.L295
	movq	8(%rbx), %r15
	testq	%r15, %r15
	je	.L296
	cmpl	(%r15), %esi
	jl	.L359
	jle	.L303
	movq	8(%r15), %rcx
	testq	%rcx, %rcx
	je	.L304
	cmpl	(%rcx), %esi
	jl	.L360
	jle	.L307
	leaq	8(%rcx), %rdi
	movq	%rcx, 8(%rsp)
	call	Delete
	movq	8(%rsp), %rcx
	movq	%rax, 8(%rcx)
.L306:
	movq	8(%r15), %rcx
	movq	40(%rsp), %rax
.L304:
	movq	%rcx, 8(%r15)
.L302:
	movq	8(%rbx), %r15
.L296:
	movq	%r15, 8(%rbx)
.L294:
	movq	%rax, %rbx
.L280:
	movq	%rbx, 40(%rsp)
	jmp	.L278
	.p2align 4,,10
	.p2align 3
.L308:
	leaq	.LC5(%rip), %rdi
	call	puts@PLT
	jmp	.L278
.L358:
	movq	16(%rbx), %r15
	testq	%r15, %r15
	je	.L282
	cmpl	(%r15), %esi
	jl	.L361
	jle	.L289
	movq	8(%r15), %rcx
	testq	%rcx, %rcx
	je	.L290
	cmpl	(%rcx), %esi
	jl	.L362
	jle	.L293
	leaq	8(%rcx), %rdi
	movq	%rcx, 8(%rsp)
	call	Delete
	movq	8(%rsp), %rcx
	movq	%rax, 8(%rcx)
.L292:
	movq	8(%r15), %rcx
	movq	40(%rsp), %rax
.L290:
	movq	%rcx, 8(%r15)
.L288:
	movq	16(%rbx), %r15
.L282:
	movq	%r15, 16(%rbx)
	jmp	.L294
.L295:
	leaq	40(%rsp), %rdi
	call	del
	movq	%rax, %rbx
	jmp	.L280
.L359:
	movq	16(%r15), %rcx
	testq	%rcx, %rcx
	je	.L298
	cmpl	(%rcx), %esi
	jl	.L363
	jle	.L301
	leaq	8(%rcx), %rdi
	movq	%rcx, 8(%rsp)
	call	Delete
	movq	8(%rsp), %rcx
	movq	%rax, 8(%rcx)
.L300:
	movq	16(%r15), %rcx
	movq	40(%rsp), %rax
.L298:
	movq	%rcx, 16(%r15)
	jmp	.L302
.L289:
	leaq	16(%rbx), %rdi
	call	del
	movq	%rax, %r15
	movq	40(%rsp), %rax
	jmp	.L282
.L360:
	leaq	16(%rcx), %rdi
	movq	%rcx, 8(%rsp)
	call	Delete
	movq	8(%rsp), %rcx
	movq	%rax, 16(%rcx)
	jmp	.L306
.L361:
	movq	16(%r15), %rcx
	testq	%rcx, %rcx
	je	.L284
	cmpl	(%rcx), %esi
	jl	.L364
	jle	.L287
	leaq	8(%rcx), %rdi
	movq	%rcx, 8(%rsp)
	call	Delete
	movq	8(%rsp), %rcx
	movq	%rax, 8(%rcx)
.L286:
	movq	16(%r15), %rcx
	movq	40(%rsp), %rax
.L284:
	movq	%rcx, 16(%r15)
	jmp	.L288
.L303:
	leaq	8(%rbx), %rdi
	call	del
	movq	%rax, %r15
	movq	40(%rsp), %rax
	jmp	.L296
.L362:
	leaq	16(%rcx), %rdi
	movq	%rcx, 8(%rsp)
	call	Delete
	movq	8(%rsp), %rcx
	movq	%rax, 16(%rcx)
	jmp	.L292
.L363:
	leaq	16(%rcx), %rdi
	movq	%rcx, 8(%rsp)
	call	Delete
	movq	8(%rsp), %rcx
	movq	%rax, 16(%rcx)
	jmp	.L300
.L307:
	leaq	8(%r15), %rdi
	call	del
	movq	%rax, %rcx
	movq	40(%rsp), %rax
	jmp	.L304
.L364:
	leaq	16(%rcx), %rdi
	movq	%rcx, 8(%rsp)
	call	Delete
	movq	8(%rsp), %rcx
	movq	%rax, 16(%rcx)
	jmp	.L286
.L301:
	leaq	16(%r15), %rdi
	call	del
	movq	%rax, %rcx
	movq	40(%rsp), %rax
	jmp	.L298
.L293:
	leaq	8(%r15), %rdi
	call	del
	movq	%rax, %rcx
	movq	40(%rsp), %rax
	jmp	.L290
.L287:
	leaq	16(%r15), %rdi
	call	del
	movq	%rax, %rcx
	movq	40(%rsp), %rax
	jmp	.L284
.L357:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE49:
	.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:

rule
	.file	"temp.c"
	.text
	.p2align 4
	.globl	find
	.type	find, @function
find:
.LFB39:
	.cfi_startproc
	endbr64
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L4:
	cmpl	%esi, (%rdi)
	je	.L6
	movq	8(%rdi), %rax
	cmovg	16(%rdi), %rax
	movq	%rax, %rdi
.L8:
	testq	%rdi, %rdi
	jne	.L4
	xorl	%eax, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$1, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	find, .-find
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	" %d"
	.text
	.p2align 4
	.globl	inorder
	.type	inorder, @function
inorder:
.LFB40:
	.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)
.L29:
	movq	24(%rsp), %rax
	movq	16(%rax), %rax
	movq	%rax, 16(%rsp)
	testq	%rax, %rax
	je	.L11
.L28:
	movq	16(%rsp), %rax
	movq	16(%rax), %rax
	movq	%rax, 8(%rsp)
	testq	%rax, %rax
	je	.L12
.L27:
	movq	8(%rsp), %rax
	movq	16(%rax), %rax
	movq	%rax, (%rsp)
	testq	%rax, %rax
	je	.L13
.L26:
	movq	(%rsp), %rax
	movq	16(%rax), %r12
	testq	%r12, %r12
	je	.L14
.L25:
	movq	16(%r12), %rbx
	testq	%rbx, %rbx
	je	.L15
.L24:
	movq	16(%rbx), %r15
	testq	%r15, %r15
	je	.L16
.L23:
	movq	16(%r15), %r14
	testq	%r14, %r14
	je	.L17
.L22:
	movq	16(%r14), %r13
	testq	%r13, %r13
	je	.L18
.L21:
	movq	16(%r13), %rdi
	testq	%rdi, %rdi
	je	.L19
	call	inorder
	.p2align 4,,10
	.p2align 3
.L19:
	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	.L21
.L18:
	movl	(%r14), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%r14), %r14
	testq	%r14, %r14
	jne	.L22
.L17:
	movl	(%r15), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%r15), %r15
	testq	%r15, %r15
	jne	.L23
.L16:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	.L24
.L15:
	movl	(%r12), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%r12), %r12
	testq	%r12, %r12
	jne	.L25
.L14:
	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	.L26
.L13:
	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	.L27
.L12:
	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	.L28
.L11:
	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	.L29
	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
.LFE40:
	.size	inorder, .-inorder
	.p2align 4
	.globl	preorder
	.type	preorder, @function
preorder:
.LFB41:
	.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)
.L85:
	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	.L67
.L84:
	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	.L68
.L83:
	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	.L69
.L82:
	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	.L70
.L81:
	movl	(%r12), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%r12), %rbx
	testq	%rbx, %rbx
	je	.L71
.L80:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%rbx), %r15
	testq	%r15, %r15
	je	.L72
.L79:
	movl	(%r15), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%r15), %r14
	testq	%r14, %r14
	je	.L73
.L78:
	movl	(%r14), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%r14), %r13
	testq	%r13, %r13
	je	.L74
.L77:
	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	.L75
	call	preorder
	movq	8(%r13), %r13
	testq	%r13, %r13
	jne	.L77
	.p2align 4,,10
	.p2align 3
.L74:
	movq	8(%r14), %r14
	testq	%r14, %r14
	jne	.L78
.L73:
	movq	8(%r15), %r15
	testq	%r15, %r15
	jne	.L79
.L72:
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	.L80
.L71:
	movq	8(%r12), %r12
	testq	%r12, %r12
	jne	.L81
.L70:
	movq	(%rsp), %rax
	movq	8(%rax), %rax
	movq	%rax, (%rsp)
	testq	%rax, %rax
	jne	.L82
.L69:
	movq	8(%rsp), %rax
	movq	8(%rax), %rax
	movq	%rax, 8(%rsp)
	testq	%rax, %rax
	jne	.L83
.L68:
	movq	16(%rsp), %rax
	movq	8(%rax), %rax
	movq	%rax, 16(%rsp)
	testq	%rax, %rax
	jne	.L84
.L67:
	movq	24(%rsp), %rax
	movq	8(%rax), %rax
	movq	%rax, 24(%rsp)
	testq	%rax, %rax
	jne	.L85
	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
.L75:
	.cfi_restore_state
	movq	8(%r13), %r13
	testq	%r13, %r13
	jne	.L77
	movq	8(%r14), %r14
	testq	%r14, %r14
	jne	.L78
	jmp	.L73
	.cfi_endproc
.LFE41:
	.size	preorder, .-preorder
	.p2align 4
	.globl	print
	.type	print, @function
print:
.LFB42:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	%rdi, %rbx
.L126:
	movq	16(%rbp), %rdi
	testq	%rdi, %rdi
	je	.L123
	call	inorder
.L123:
	movl	0(%rbp), %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%rbp), %rbp
	testq	%rbp, %rbp
	jne	.L126
	movl	$10, %edi
	call	putchar@PLT
.L130:
	movl	(%rbx), %edx
	movl	$1, %edi
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	.L127
	call	preorder
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	.L130
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movl	$10, %edi
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	jmp	putchar@PLT
	.p2align 4,,10
	.p2align 3
.L127:
	.cfi_restore_state
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	.L130
	popq	%rbx
	.cfi_def_cfa_offset 24
	movl	$10, %edi
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	jmp	putchar@PLT
	.cfi_endproc
.LFE42:
	.size	print, .-print
	.p2align 4
	.globl	makenode
	.type	makenode, @function
makenode:
.LFB43:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	%esi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movl	%edi, %ebx
	movl	$24, %edi
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	malloc@PLT
	movd	%ebx, %xmm0
	movd	%ebp, %xmm1
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, (%rax)
	pxor	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	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
.LFE43:
	.size	makenode, .-makenode
	.p2align 4
	.globl	rightRotate
	.type	rightRotate, @function
rightRotate:
.LFB44:
	.cfi_startproc
	endbr64
	movq	16(%rdi), %rax
	movq	8(%rax), %rdx
	movq	%rdx, 16(%rdi)
	movq	%rdi, 8(%rax)
	ret
	.cfi_endproc
.LFE44:
	.size	rightRotate, .-rightRotate
	.p2align 4
	.globl	leftRotate
	.type	leftRotate, @function
leftRotate:
.LFB45:
	.cfi_startproc
	endbr64
	movq	8(%rdi), %rax
	movq	16(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movq	%rdi, 16(%rax)
	ret
	.cfi_endproc
.LFE45:
	.size	leftRotate, .-leftRotate
	.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
	movq	(%rdi), %r12
	testq	%r12, %r12
	je	.L172
	cmpl	%esi, (%r12)
	je	.L142
	movq	%rdi, %rbx
	jle	.L145
	movq	16(%r12), %rbp
	testq	%rbp, %rbp
	je	.L173
	cmpl	0(%rbp), %esi
	je	.L147
	jge	.L148
	movq	16(%rbp), %r13
	testq	%r13, %r13
	je	.L174
	cmpl	0(%r13), %esi
	je	.L150
	jge	.L151
	leaq	16(%r13), %rdi
	call	insert
	movq	%rax, 16(%r13)
	movq	16(%rbp), %r13
	movq	16(%r13), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%r13)
	jge	.L150
	movq	8(%rax), %rdx
	movq	%rdx, 16(%r13)
	movq	%r13, 8(%rax)
	movq	%rax, %r13
	.p2align 4,,10
	.p2align 3
.L150:
	movq	%r13, 16(%rbp)
	movq	16(%r12), %rbp
	movq	16(%rbp), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%rbp)
	jge	.L147
	movq	8(%rax), %rdx
	movq	%rdx, 16(%rbp)
	movq	%rbp, 8(%rax)
	movq	%rax, %rbp
	.p2align 4,,10
	.p2align 3
.L147:
	movq	%rbp, 16(%r12)
	movq	(%rbx), %r12
	movq	16(%r12), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%r12)
	jge	.L142
	movq	8(%rax), %rdx
	movq	%rdx, 16(%r12)
	movq	%r12, 8(%rax)
	movq	%rax, %r12
	movq	%rax, (%rbx)
.L142:
	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
.L145:
	.cfi_restore_state
	movq	8(%r12), %rbp
	testq	%rbp, %rbp
	je	.L175
	cmpl	0(%rbp), %esi
	je	.L160
	jge	.L161
	movq	16(%rbp), %r13
	testq	%r13, %r13
	je	.L176
	cmpl	0(%r13), %esi
	je	.L163
	jge	.L164
	leaq	16(%r13), %rdi
	call	insert
	movq	%rax, 16(%r13)
	movq	16(%rbp), %r13
	movq	16(%r13), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%r13)
	jge	.L163
	movq	8(%rax), %rdx
	movq	%rdx, 16(%r13)
	movq	%r13, 8(%rax)
	movq	%rax, %r13
	.p2align 4,,10
	.p2align 3
.L163:
	movq	%r13, 16(%rbp)
	movq	8(%r12), %rbp
	movq	16(%rbp), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%rbp)
	jge	.L160
	movq	8(%rax), %rdx
	movq	%rdx, 16(%rbp)
	movq	%rbp, 8(%rax)
	movq	%rax, %rbp
	.p2align 4,,10
	.p2align 3
.L160:
	movq	%rbp, 8(%r12)
	movq	(%rbx), %r12
	movq	8(%r12), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%r12)
	jge	.L142
	movq	16(%rax), %rdx
	movq	%rdx, 8(%r12)
	movq	%r12, 16(%rax)
	movq	%rax, %r12
	movq	%rax, (%rbx)
	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
.L148:
	.cfi_restore_state
	movq	8(%rbp), %r13
	testq	%r13, %r13
	je	.L177
	cmpl	0(%r13), %esi
	je	.L155
	jge	.L156
	leaq	16(%r13), %rdi
	call	insert
	movq	%rax, 16(%r13)
	movq	8(%rbp), %r13
	movq	16(%r13), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%r13)
	jge	.L155
	movq	8(%rax), %rdx
	movq	%rdx, 16(%r13)
	movq	%r13, 8(%rax)
	movq	%rax, %r13
	.p2align 4,,10
	.p2align 3
.L155:
	movq	%r13, 8(%rbp)
	movq	16(%r12), %rbp
	movq	8(%rbp), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%rbp)
	jge	.L147
	movq	16(%rax), %rdx
	movq	%rdx, 8(%rbp)
	movq	%rbp, 16(%rax)
	movq	%rax, %rbp
	jmp	.L147
	.p2align 4,,10
	.p2align 3
.L161:
	movq	8(%rbp), %r13
	testq	%r13, %r13
	je	.L178
	cmpl	0(%r13), %esi
	je	.L168
	jge	.L169
	leaq	16(%r13), %rdi
	call	insert
	movq	%rax, 16(%r13)
	movq	8(%rbp), %r13
	movq	16(%r13), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%r13)
	jge	.L168
	movq	8(%rax), %rdx
	movq	%rdx, 16(%r13)
	movq	%r13, 8(%rax)
	movq	%rax, %r13
	.p2align 4,,10
	.p2align 3
.L168:
	movq	%r13, 8(%rbp)
	movq	8(%r12), %rbp
	movq	8(%rbp), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%rbp)
	jge	.L160
	movq	16(%rax), %rdx
	movq	%rdx, 8(%rbp)
	movq	%rbp, 16(%rax)
	movq	%rax, %rbp
	jmp	.L160
	.p2align 4,,10
	.p2align 3
.L172:
	movl	$24, %edi
	movq	%xmm0, 8(%rsp)
	call	malloc@PLT
	movq	8(%rsp), %xmm0
	movq	%rax, %r12
	movq	%xmm0, (%rax)
	pxor	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	jmp	.L142
	.p2align 4,,10
	.p2align 3
.L164:
	leaq	8(%r13), %rdi
	call	insert
	movq	%rax, 8(%r13)
	movq	16(%rbp), %r13
	movq	8(%r13), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%r13)
	jge	.L163
	movq	16(%rax), %rdx
	movq	%rdx, 8(%r13)
	movq	%r13, 16(%rax)
	movq	%rax, %r13
	jmp	.L163
	.p2align 4,,10
	.p2align 3
.L169:
	leaq	8(%r13), %rdi
	call	insert
	movq	%rax, 8(%r13)
	movq	8(%rbp), %r13
	movq	8(%r13), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%r13)
	jge	.L168
	movq	16(%rax), %rdx
	movq	%rdx, 8(%r13)
	movq	%r13, 16(%rax)
	movq	%rax, %r13
	jmp	.L168
	.p2align 4,,10
	.p2align 3
.L151:
	leaq	8(%r13), %rdi
	call	insert
	movq	%rax, 8(%r13)
	movq	16(%rbp), %r13
	movq	8(%r13), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%r13)
	jge	.L150
	movq	16(%rax), %rdx
	movq	%rdx, 8(%r13)
	movq	%r13, 16(%rax)
	movq	%rax, %r13
	jmp	.L150
	.p2align 4,,10
	.p2align 3
.L156:
	leaq	8(%r13), %rdi
	call	insert
	movq	%rax, 8(%r13)
	movq	8(%rbp), %r13
	movq	8(%r13), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%r13)
	jge	.L155
	movq	16(%rax), %rdx
	movq	%rdx, 8(%r13)
	movq	%r13, 16(%rax)
	movq	%rax, %r13
	jmp	.L155
	.p2align 4,,10
	.p2align 3
.L175:
	movl	$24, %edi
	movq	%xmm0, 8(%rsp)
	call	malloc@PLT
	movq	8(%rsp), %xmm0
	movq	%rax, %rbp
	movq	%xmm0, (%rax)
	pxor	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	jmp	.L160
	.p2align 4,,10
	.p2align 3
.L173:
	movl	$24, %edi
	movq	%xmm0, 8(%rsp)
	call	malloc@PLT
	movq	8(%rsp), %xmm0
	movq	%rax, %rbp
	movq	%xmm0, (%rax)
	pxor	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	jmp	.L147
	.p2align 4,,10
	.p2align 3
.L176:
	movl	$24, %edi
	movq	%xmm0, 8(%rsp)
	call	malloc@PLT
	movq	8(%rsp), %xmm0
	movq	%rax, %r13
	movq	%xmm0, (%rax)
	pxor	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	jmp	.L163
	.p2align 4,,10
	.p2align 3
.L178:
	movl	$24, %edi
	movq	%xmm0, 8(%rsp)
	call	malloc@PLT
	movq	8(%rsp), %xmm0
	movq	%rax, %r13
	movq	%xmm0, (%rax)
	pxor	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	jmp	.L168
	.p2align 4,,10
	.p2align 3
.L174:
	movl	$24, %edi
	movq	%xmm0, 8(%rsp)
	call	malloc@PLT
	movq	8(%rsp), %xmm0
	movq	%rax, %r13
	movq	%xmm0, (%rax)
	pxor	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	jmp	.L150
	.p2align 4,,10
	.p2align 3
.L177:
	movl	$24, %edi
	movq	%xmm0, 8(%rsp)
	call	malloc@PLT
	movq	8(%rsp), %xmm0
	movq	%rax, %r13
	movq	%xmm0, (%rax)
	pxor	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	jmp	.L155
	.cfi_endproc
.LFE46:
	.size	insert, .-insert
	.p2align 4
	.globl	del
	.type	del, @function
del:
.LFB48:
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rdi, %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	movq	(%rdi), %rax
	movq	16(%rax), %rdx
	movq	8(%rax), %r12
	testq	%rdx, %rdx
	je	.L217
.L180:
	testq	%r12, %r12
	je	.L216
	movl	4(%r12), %ecx
	cmpl	%ecx, 4(%rdx)
	jg	.L216
.L184:
	movq	16(%r12), %rdx
	movq	%rdx, 8(%rax)
	movq	%rax, 16(%r12)
	movq	%r12, (%rbx)
	cmpl	(%r12), %esi
	jl	.L218
.L214:
	jle	.L201
	movq	8(%r12), %rbp
	testq	%rbp, %rbp
	je	.L191
	cmpl	0(%rbp), %esi
	jl	.L219
	jle	.L194
	movq	8(%rbp), %r13
	testq	%r13, %r13
	je	.L195
	cmpl	0(%r13), %esi
	jl	.L220
	jle	.L198
	leaq	8(%r13), %rdi
	call	Delete
	movq	%rax, 8(%r13)
.L197:
	movq	8(%rbp), %r13
.L195:
	movq	%r13, 8(%rbp)
.L193:
	movq	8(%r12), %rbp
.L191:
	movq	%rbp, 8(%r12)
.L189:
	movq	(%rbx), %r12
.L179:
	addq	$8, %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
.L216:
	.cfi_restore_state
	movq	8(%rdx), %rcx
	movq	%rdx, %r12
	movq	%rcx, 16(%rax)
	movq	%rax, 8(%rdx)
	movq	%r12, (%rbx)
	cmpl	(%r12), %esi
	jge	.L214
.L218:
	movq	16(%r12), %rbp
	testq	%rbp, %rbp
	je	.L185
	cmpl	0(%rbp), %esi
	jl	.L221
	jle	.L188
	leaq	8(%rbp), %rdi
	call	Delete
	movq	%rax, 8(%rbp)
.L187:
	movq	16(%r12), %rbp
.L185:
	movq	%rbp, 16(%r12)
	jmp	.L189
	.p2align 4,,10
	.p2align 3
.L201:
	movq	%r12, %rax
	movq	16(%rax), %rdx
	movq	8(%rax), %r12
	testq	%rdx, %rdx
	jne	.L180
.L217:
	testq	%r12, %r12
	jne	.L184
	jmp	.L179
	.p2align 4,,10
	.p2align 3
.L188:
	leaq	16(%r12), %rdi
	call	del
	movq	%rax, %rbp
	jmp	.L185
	.p2align 4,,10
	.p2align 3
.L219:
	leaq	16(%rbp), %rdi
	call	Delete
	movq	%rax, 16(%rbp)
	jmp	.L193
	.p2align 4,,10
	.p2align 3
.L221:
	leaq	16(%rbp), %rdi
	call	Delete
	movq	%rax, 16(%rbp)
	jmp	.L187
	.p2align 4,,10
	.p2align 3
.L194:
	leaq	8(%r12), %rdi
	call	del
	movq	%rax, %rbp
	jmp	.L191
	.p2align 4,,10
	.p2align 3
.L220:
	leaq	16(%r13), %rdi
	call	Delete
	movq	%rax, 16(%r13)
	jmp	.L197
	.p2align 4,,10
	.p2align 3
.L198:
	leaq	8(%rbp), %rdi
	call	del
	movq	%rax, %r13
	jmp	.L195
	.cfi_endproc
.LFE48:
	.size	del, .-del
	.p2align 4
	.globl	Delete
	.type	Delete, @function
Delete:
.LFB47:
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	movq	(%rdi), %r12
	testq	%r12, %r12
	je	.L222
	movq	%rdi, %rbp
	cmpl	%esi, (%r12)
	jg	.L266
	jge	.L234
	movq	8(%r12), %rbx
	testq	%rbx, %rbx
	je	.L235
	cmpl	(%rbx), %esi
	jl	.L267
	jle	.L242
	movq	8(%rbx), %r13
	testq	%r13, %r13
	je	.L243
	cmpl	0(%r13), %esi
	jl	.L268
	jle	.L246
	leaq	8(%r13), %rdi
	call	Delete
	movq	%rax, 8(%r13)
.L245:
	movq	8(%rbx), %r13
.L243:
	movq	%r13, 8(%rbx)
.L241:
	movq	8(%r12), %rbx
.L235:
	movq	%rbx, 8(%r12)
.L233:
	movq	0(%rbp), %r12
.L222:
	addq	$8, %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
.L234:
	.cfi_restore_state
	addq	$8, %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
	jmp	del
	.p2align 4,,10
	.p2align 3
.L266:
	.cfi_restore_state
	movq	16(%r12), %rbx
	testq	%rbx, %rbx
	je	.L225
	cmpl	(%rbx), %esi
	jl	.L269
	jle	.L228
	movq	8(%rbx), %r13
	testq	%r13, %r13
	je	.L229
	cmpl	0(%r13), %esi
	jl	.L270
	jle	.L232
	leaq	8(%r13), %rdi
	call	Delete
	movq	%rax, 8(%r13)
.L231:
	movq	8(%rbx), %r13
.L229:
	movq	%r13, 8(%rbx)
	movq	16(%r12), %rbx
.L225:
	movq	%rbx, 16(%r12)
	jmp	.L233
	.p2align 4,,10
	.p2align 3
.L269:
	leaq	16(%rbx), %rdi
	call	Delete
	movq	%rax, 16(%rbx)
	movq	16(%r12), %rbx
	jmp	.L225
	.p2align 4,,10
	.p2align 3
.L242:
	leaq	8(%r12), %rdi
	call	del
	movq	%rax, %rbx
	jmp	.L235
	.p2align 4,,10
	.p2align 3
.L267:
	movq	16(%rbx), %r13
	testq	%r13, %r13
	je	.L237
	cmpl	0(%r13), %esi
	jl	.L271
	jle	.L240
	leaq	8(%r13), %rdi
	call	Delete
	movq	%rax, 8(%r13)
.L239:
	movq	16(%rbx), %r13
.L237:
	movq	%r13, 16(%rbx)
	jmp	.L241
	.p2align 4,,10
	.p2align 3
.L228:
	leaq	16(%r12), %rdi
	call	del
	movq	%rax, %rbx
	jmp	.L225
	.p2align 4,,10
	.p2align 3
.L232:
	leaq	8(%rbx), %rdi
	call	del
	movq	%rax, %r13
	jmp	.L229
	.p2align 4,,10
	.p2align 3
.L240:
	leaq	16(%rbx), %rdi
	call	del
	movq	%rax, %r13
	jmp	.L237
	.p2align 4,,10
	.p2align 3
.L268:
	leaq	16(%r13), %rdi
	call	Delete
	movq	%rax, 16(%r13)
	jmp	.L245
	.p2align 4,,10
	.p2align 3
.L271:
	leaq	16(%r13), %rdi
	call	Delete
	movq	%rax, 16(%r13)
	jmp	.L239
	.p2align 4,,10
	.p2align 3
.L270:
	leaq	16(%r13), %rdi
	call	Delete
	movq	%rax, 16(%r13)
	jmp	.L231
	.p2align 4,,10
	.p2align 3
.L246:
	leaq	8(%rbx), %rdi
	call	del
	movq	%rax, %r13
	jmp	.L243
	.cfi_endproc
.LFE47:
	.size	Delete, .-Delete
	.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:
.LFB49:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC1(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	movq	$0, 40(%rsp)
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L273
	xorl	%ebp, %ebp
	leaq	48(%rsp), %r14
	leaq	.LC2(%rip), %r13
	leaq	.LC0(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L320:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	48(%rsp), %eax
	cmpb	$105, %al
	je	.L274
	jg	.L275
	cmpb	$100, %al
	je	.L276
	cmpb	$102, %al
	jne	.L278
	leaq	32(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	40(%rsp), %rax
	movl	32(%rsp), %ecx
	testq	%rax, %rax
	jne	.L311
	jmp	.L308
	.p2align 4,,10
	.p2align 3
.L356:
	movq	8(%rax), %rdx
	cmovl	16(%rax), %rdx
	movq	%rdx, %rax
	testq	%rdx, %rdx
	je	.L308
.L311:
	cmpl	(%rax), %ecx
	jne	.L356
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	.p2align 4,,10
	.p2align 3
.L278:
	addl	$1, %ebp
	cmpl	%ebp, 28(%rsp)
	jg	.L320
.L273:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L357
	addq	$72, %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
.L275:
	.cfi_restore_state
	cmpb	$112, %al
	jne	.L278
	movq	40(%rsp), %rbx
	movq	%rbx, %r15
.L315:
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	je	.L312
	call	inorder
.L312:
	movl	(%r15), %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%r15), %r15
	testq	%r15, %r15
	jne	.L315
	movl	$10, %edi
	call	putchar@PLT
.L319:
	movl	(%rbx), %edx
	movl	$1, %edi
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	.L316
	call	preorder
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	.L319
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L278
	.p2align 4,,10
	.p2align 3
.L316:
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	.L319
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L278
	.p2align 4,,10
	.p2align 3
.L274:
	leaq	36(%rsp), %rdx
	leaq	32(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %edx
	movl	32(%rsp), %esi
	leaq	40(%rsp), %rdi
	call	insert
	movq	%rax, 40(%rsp)
	jmp	.L278
	.p2align 4,,10
	.p2align 3
.L276:
	leaq	32(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	40(%rsp), %rbx
	movl	32(%rsp), %esi
	movq	%rbx, %rax
	testq	%rbx, %rbx
	je	.L280
	cmpl	(%rbx), %esi
	jl	.L358
	jle	.L295
	movq	8(%rbx), %r15
	testq	%r15, %r15
	je	.L296
	cmpl	(%r15), %esi
	jl	.L359
	jle	.L303
	movq	8(%r15), %rcx
	testq	%rcx, %rcx
	je	.L304
	cmpl	(%rcx), %esi
	jl	.L360
	jle	.L307
	leaq	8(%rcx), %rdi
	movq	%rcx, 8(%rsp)
	call	Delete
	movq	8(%rsp), %rcx
	movq	%rax, 8(%rcx)
.L306:
	movq	8(%r15), %rcx
	movq	40(%rsp), %rax
.L304:
	movq	%rcx, 8(%r15)
.L302:
	movq	8(%rbx), %r15
.L296:
	movq	%r15, 8(%rbx)
.L294:
	movq	%rax, %rbx
.L280:
	movq	%rbx, 40(%rsp)
	jmp	.L278
	.p2align 4,,10
	.p2align 3
.L308:
	leaq	.LC5(%rip), %rdi
	call	puts@PLT
	jmp	.L278
.L358:
	movq	16(%rbx), %r15
	testq	%r15, %r15
	je	.L282
	cmpl	(%r15), %esi
	jl	.L361
	jle	.L289
	movq	8(%r15), %rcx
	testq	%rcx, %rcx
	je	.L290
	cmpl	(%rcx), %esi
	jl	.L362
	jle	.L293
	leaq	8(%rcx), %rdi
	movq	%rcx, 8(%rsp)
	call	Delete
	movq	8(%rsp), %rcx
	movq	%rax, 8(%rcx)
.L292:
	movq	8(%r15), %rcx
	movq	40(%rsp), %rax
.L290:
	movq	%rcx, 8(%r15)
.L288:
	movq	16(%rbx), %r15
.L282:
	movq	%r15, 16(%rbx)
	jmp	.L294
.L295:
	leaq	40(%rsp), %rdi
	call	del
	movq	%rax, %rbx
	jmp	.L280
.L359:
	movq	16(%r15), %rcx
	testq	%rcx, %rcx
	je	.L298
	cmpl	(%rcx), %esi
	jl	.L363
	jle	.L301
	leaq	8(%rcx), %rdi
	movq	%rcx, 8(%rsp)
	call	Delete
	movq	8(%rsp), %rcx
	movq	%rax, 8(%rcx)
.L300:
	movq	16(%r15), %rcx
	movq	40(%rsp), %rax
.L298:
	movq	%rcx, 16(%r15)
	jmp	.L302
.L289:
	leaq	16(%rbx), %rdi
	call	del
	movq	%rax, %r15
	movq	40(%rsp), %rax
	jmp	.L282
.L360:
	leaq	16(%rcx), %rdi
	movq	%rcx, 8(%rsp)
	call	Delete
	movq	8(%rsp), %rcx
	movq	%rax, 16(%rcx)
	jmp	.L306
.L361:
	movq	16(%r15), %rcx
	testq	%rcx, %rcx
	je	.L284
	cmpl	(%rcx), %esi
	jl	.L364
	jle	.L287
	leaq	8(%rcx), %rdi
	movq	%rcx, 8(%rsp)
	call	Delete
	movq	8(%rsp), %rcx
	movq	%rax, 8(%rcx)
.L286:
	movq	16(%r15), %rcx
	movq	40(%rsp), %rax
.L284:
	movq	%rcx, 16(%r15)
	jmp	.L288
.L303:
	leaq	8(%rbx), %rdi
	call	del
	movq	%rax, %r15
	movq	40(%rsp), %rax
	jmp	.L296
.L362:
	leaq	16(%rcx), %rdi
	movq	%rcx, 8(%rsp)
	call	Delete
	movq	8(%rsp), %rcx
	movq	%rax, 16(%rcx)
	jmp	.L292
.L363:
	leaq	16(%rcx), %rdi
	movq	%rcx, 8(%rsp)
	call	Delete
	movq	8(%rsp), %rcx
	movq	%rax, 16(%rcx)
	jmp	.L300
.L307:
	leaq	8(%r15), %rdi
	call	del
	movq	%rax, %rcx
	movq	40(%rsp), %rax
	jmp	.L304
.L364:
	leaq	16(%rcx), %rdi
	movq	%rcx, 8(%rsp)
	call	Delete
	movq	8(%rsp), %rcx
	movq	%rax, 16(%rcx)
	jmp	.L286
.L301:
	leaq	16(%r15), %rdi
	call	del
	movq	%rax, %rcx
	movq	40(%rsp), %rax
	jmp	.L298
.L293:
	leaq	8(%r15), %rdi
	call	del
	movq	%rax, %rcx
	movq	40(%rsp), %rax
	jmp	.L290
.L287:
	leaq	16(%r15), %rdi
	call	del
	movq	%rax, %rcx
	movq	40(%rsp), %rax
	jmp	.L284
.L357:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE49:
	.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:

#include <stdio.h>
#include <stdlib.h>
#define NIL NULL
typedef struct node{
	int key;
	int pri;
	struct node *right , *left;
}Node;

Node * Delete(Node **,int);
Node * del(Node **,int);

int find(Node *p,int x)
{
	while(p!=NIL)
	{
		if(p->key==x)return 1;
		else if(p->key > x)p = p->left;
		else p = p->right;
	}
	return 0;
}

void inorder(Node *a)
{
	if(a->left!=NIL) inorder(a->left);
	printf(" %d",a->key);
	if(a->right!=NIL) inorder(a->right);
	return;
}

void preorder(Node *p)
{
	printf(" %d",p->key);
	if(p->left!=NIL) preorder(p->left);
	if(p->right!=NIL) preorder(p->right);
	return;
}

void print(Node *p)
{
	inorder(p);
	printf("\n");
	preorder(p);
	printf("\n");
	return;
}

Node * makenode(int x , int y)
{
	Node *new = malloc(sizeof(Node));
	new->key = x;
	new->pri = y;
	new->left = NIL;
	new->right = NIL;
	return new;
}

Node *rightRotate(Node *p)
{
	Node *q = p->left;
	p->left = q->right;
	q->right = p;
	return q;
}

Node *leftRotate(Node *p)
{
	Node *q = p->right;
	p->right = q->left;
	q->left = p;
	return q;
}

Node* insert(Node **t , int key, int pri)
{
	Node *new;
	if((*t)==NIL)
	return new = makenode(key,pri);
	if((*t)->key == key)
	return *t;
	
	if(key < (*t)->key)
	{
		(*t)->left = insert(&(*t)->left,key,pri);
		if((*t)->pri < (*t)->left->pri)
		(*t) = rightRotate(*t);
	}
	else{
		(*t)->right = insert(&(*t)->right,key,pri);
		if((*t)->pri < (*t)->right->pri)
		(*t) = leftRotate((*t));
	}
	return *t;
}

Node * Delete(Node **t , int key)
{
	if((*t)==NIL)
	return NIL;
	
	if(key < (*t)->key)
	(*t)->left = Delete(&((*t)->left),key);
	
	else if(key > (*t)->key)
	(*t)->right = Delete(&((*t)->right),key);

	else return del(t,key);
	return *t;
}

Node * del(Node **t , int key)
{
	if((*t)->left == NIL && (*t)->right == NIL)
	{
		return NIL;
	}
	else if((*t)->left == NIL)
	{
		(*t) = leftRotate(*t);
	}
	else if((*t)->right ==NIL)
	{
		(*t) = rightRotate(*t);
	}
	else{
		if((*t)->left->pri > (*t)->right->pri)
		(*t) = rightRotate(*t);
		else
		(*t) = leftRotate(*t);
	}
	return Delete(t,key);
}

int main(void)
{
	int num ,  x, y;
	char com[8];
	Node *root = NIL;
	scanf("%d",&num);
	
	for(int i = 0; i < num; i++)
	{
		scanf("%s",com);
		switch(com[0])
		{
			case 'i':scanf("%d %d",&x,&y);
			root = insert(&root,x,y);
			break;
			case 'd':scanf("%d",&x);
			root = Delete(&root,x);
			break;
			case 'f':scanf("%d",&x);
			if(find(root,x))printf("yes\n");
			else printf("no\n");
			break;
			case 'p':print(root);
			break;
		}
	}
	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>
#define NIL NULL
typedef struct node{
	int key;
	int pri;
	struct node *right , *left;
}Node;

Node * Delete(Node **,int);
Node * del(Node **,int);

int find(Node *p,int x)
{
	while(p!=NIL)
	{
		if(p->key==x)return 1;
		else if(p->key > x)p = p->left;
		else p = p->right;
	}
	return 0;
}

void inorder(Node *a)
{
	if(a->left!=NIL) inorder(a->left);
	printf(" %d",a->key);
	if(a->right!=NIL) inorder(a->right);
	return;
}

void preorder(Node *p)
{
	printf(" %d",p->key);
	if(p->left!=NIL) preorder(p->left);
	if(p->right!=NIL) preorder(p->right);
	return;
}

void print(Node *p)
{
	inorder(p);
	printf("\n");
	preorder(p);
	printf("\n");
	return;
}

Node * makenode(int x , int y)
{
	Node *new = malloc(sizeof(Node));
	new->key = x;
	new->pri = y;
	new->left = NIL;
	new->right = NIL;
	return new;
}

Node *rightRotate(Node *p)
{
	Node *q = p->left;
	p->left = q->right;
	q->right = p;
	return q;
}

Node *leftRotate(Node *p)
{
	Node *q = p->right;
	p->right = q->left;
	q->left = p;
	return q;
}

Node* insert(Node **t , int key, int pri)
{
	Node *new;
	if((*t)==NIL)
	return new = makenode(key,pri);
	if((*t)->key == key)
	return *t;
	
	if(key < (*t)->key)
	{
		(*t)->left = insert(&(*t)->left,key,pri);
		if((*t)->pri < (*t)->left->pri)
		(*t) = rightRotate(*t);
	}
	else{
		(*t)->right = insert(&(*t)->right,key,pri);
		if((*t)->pri < (*t)->right->pri)
		(*t) = leftRotate((*t));
	}
	return *t;
}

Node * Delete(Node **t , int key)
{
	if((*t)==NIL)
	return NIL;
	
	if(key < (*t)->key)
	(*t)->left = Delete(&((*t)->left),key);
	
	else if(key > (*t)->key)
	(*t)->right = Delete(&((*t)->right),key);

	else return del(t,key);
	return *t;
}

Node * del(Node **t , int key)
{
	if((*t)->left == NIL && (*t)->right == NIL)
	{
		return NIL;
	}
	else if((*t)->left == NIL)
	{
		(*t) = leftRotate(*t);
	}
	else if((*t)->right ==NIL)
	{
		(*t) = rightRotate(*t);
	}
	else{
		if((*t)->left->pri > (*t)->right->pri)
		(*t) = rightRotate(*t);
		else
		(*t) = leftRotate(*t);
	}
	return Delete(t,key);
}

int main(void)
{
	int num ,  x, y;
	char com[8];
	Node *root = NIL;
	scanf("%d",&num);
	
	for(int i = 0; i < num; i++)
	{
		scanf("%s",com);
		switch(com[0])
		{
			case 'i':scanf("%d %d",&x,&y);
			root = insert(&root,x,y);
			break;
			case 'd':scanf("%d",&x);
			root = Delete(&root,x);
			break;
			case 'f':scanf("%d",&x);
			if(find(root,x))printf("yes\n");
			else printf("no\n");
			break;
			case 'p':print(root);
			break;
		}
	}
	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	find
	.type	find, @function
find:
.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)
	movl	%esi, -12(%rbp)
	jmp	.L2
.L6:
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -12(%rbp)
	jne	.L3
	movl	$1, %eax
	jmp	.L4
.L3:
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -12(%rbp)
	jge	.L5
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, -8(%rbp)
	jmp	.L2
.L5:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -8(%rbp)
.L2:
	cmpq	$0, -8(%rbp)
	jne	.L6
	movl	$0, %eax
.L4:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	find, .-find
	.section	.rodata
.LC0:
	.string	" %d"
	.text
	.globl	inorder
	.type	inorder, @function
inorder:
.LFB7:
	.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	.L8
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, %rdi
	call	inorder
.L8:
	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	.L11
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, %rdi
	call	inorder
	nop
.L11:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	inorder, .-inorder
	.globl	preorder
	.type	preorder, @function
preorder:
.LFB8:
	.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	.L13
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, %rdi
	call	preorder
.L13:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	.L16
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, %rdi
	call	preorder
	nop
.L16:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	preorder, .-preorder
	.globl	print
	.type	print, @function
print:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	inorder
	movl	$10, %edi
	call	putchar@PLT
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	preorder
	movl	$10, %edi
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	print, .-print
	.globl	makenode
	.type	makenode, @function
makenode:
.LFB10:
	.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
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	$24, %edi
	call	malloc@PLT
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movl	-20(%rbp), %edx
	movl	%edx, (%rax)
	movq	-8(%rbp), %rax
	movl	-24(%rbp), %edx
	movl	%edx, 4(%rax)
	movq	-8(%rbp), %rax
	movq	$0, 16(%rax)
	movq	-8(%rbp), %rax
	movq	$0, 8(%rax)
	movq	-8(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	makenode, .-makenode
	.globl	rightRotate
	.type	rightRotate, @function
rightRotate:
.LFB11:
	.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	-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
.LFE11:
	.size	rightRotate, .-rightRotate
	.globl	leftRotate
	.type	leftRotate, @function
leftRotate:
.LFB12:
	.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	-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
.LFE12:
	.size	leftRotate, .-leftRotate
	.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
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movq	%rdi, -40(%rbp)
	movl	%esi, -44(%rbp)
	movl	%edx, -48(%rbp)
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	.L26
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	makenode
	movq	%rax, -24(%rbp)
	movq	-24(%rbp), %rax
	jmp	.L27
.L26:
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	%eax, -44(%rbp)
	jne	.L28
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	jmp	.L27
.L28:
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	%eax, -44(%rbp)
	jge	.L29
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	leaq	16(%rax), %rcx
	movq	-40(%rbp), %rax
	movq	(%rax), %rbx
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %eax
	movl	%eax, %esi
	movq	%rcx, %rdi
	call	insert
	movq	%rax, 16(%rbx)
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movl	4(%rax), %edx
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jge	.L30
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	rightRotate
	movq	-40(%rbp), %rdx
	movq	%rax, (%rdx)
	jmp	.L30
.L29:
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	leaq	8(%rax), %rcx
	movq	-40(%rbp), %rax
	movq	(%rax), %rbx
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %eax
	movl	%eax, %esi
	movq	%rcx, %rdi
	call	insert
	movq	%rax, 8(%rbx)
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movl	4(%rax), %edx
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jge	.L30
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	leftRotate
	movq	-40(%rbp), %rdx
	movq	%rax, (%rdx)
.L30:
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
.L27:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	insert, .-insert
	.globl	Delete
	.type	Delete, @function
Delete:
.LFB14:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 3, -24
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	.L32
	movl	$0, %eax
	jmp	.L33
.L32:
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	%eax, -28(%rbp)
	jge	.L34
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	leaq	16(%rax), %rdx
	movq	-24(%rbp), %rax
	movq	(%rax), %rbx
	movl	-28(%rbp), %eax
	movl	%eax, %esi
	movq	%rdx, %rdi
	call	Delete
	movq	%rax, 16(%rbx)
	jmp	.L35
.L34:
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	%eax, -28(%rbp)
	jle	.L36
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	leaq	8(%rax), %rdx
	movq	-24(%rbp), %rax
	movq	(%rax), %rbx
	movl	-28(%rbp), %eax
	movl	%eax, %esi
	movq	%rdx, %rdi
	call	Delete
	movq	%rax, 8(%rbx)
	jmp	.L35
.L36:
	movl	-28(%rbp), %edx
	movq	-24(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	del
	jmp	.L33
.L35:
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
.L33:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	Delete, .-Delete
	.globl	del
	.type	del, @function
del:
.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)
	movl	%esi, -12(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	.L38
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	.L38
	movl	$0, %eax
	jmp	.L39
.L38:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	.L40
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	leftRotate
	movq	-8(%rbp), %rdx
	movq	%rax, (%rdx)
	jmp	.L41
.L40:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	.L42
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	rightRotate
	movq	-8(%rbp), %rdx
	movq	%rax, (%rdx)
	jmp	.L41
.L42:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rax
	movl	4(%rax), %edx
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jle	.L43
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	rightRotate
	movq	-8(%rbp), %rdx
	movq	%rax, (%rdx)
	jmp	.L41
.L43:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	leftRotate
	movq	-8(%rbp), %rdx
	movq	%rax, (%rdx)
.L41:
	movl	-12(%rbp), %edx
	movq	-8(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	Delete
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	del, .-del
	.section	.rodata
.LC1:
	.string	"%d"
.LC2:
	.string	"%s"
.LC3:
	.string	"%d %d"
.LC4:
	.string	"yes"
.LC5:
	.string	"no"
	.text
	.globl	main
	.type	main, @function
main:
.LFB16:
	.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, -24(%rbp)
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -28(%rbp)
	jmp	.L45
.L53:
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-16(%rbp), %eax
	movsbl	%al, %eax
	cmpl	$112, %eax
	je	.L46
	cmpl	$112, %eax
	jg	.L47
	cmpl	$105, %eax
	je	.L48
	cmpl	$105, %eax
	jg	.L47
	cmpl	$100, %eax
	je	.L49
	cmpl	$102, %eax
	je	.L50
	jmp	.L47
.L48:
	leaq	-32(%rbp), %rdx
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %edx
	movl	-36(%rbp), %ecx
	leaq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	insert
	movq	%rax, -24(%rbp)
	jmp	.L47
.L49:
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-36(%rbp), %edx
	leaq	-24(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	Delete
	movq	%rax, -24(%rbp)
	jmp	.L47
.L50:
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-36(%rbp), %edx
	movq	-24(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	find
	testl	%eax, %eax
	je	.L51
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L47
.L51:
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L47
.L46:
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	print
	nop
.L47:
	addl	$1, -28(%rbp)
.L45:
	movl	-40(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L53
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L55
	call	__stack_chk_fail@PLT
.L55:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.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	find
	.type	find, @function
find:
.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)
	movl	%esi, -12(%rbp)
	jmp	.L2
.L6:
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -12(%rbp)
	jne	.L3
	movl	$1, %eax
	jmp	.L4
.L3:
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -12(%rbp)
	jge	.L5
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, -8(%rbp)
	jmp	.L2
.L5:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -8(%rbp)
.L2:
	cmpq	$0, -8(%rbp)
	jne	.L6
	movl	$0, %eax
.L4:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	find, .-find
	.section	.rodata
.LC0:
	.string	" %d"
	.text
	.globl	inorder
	.type	inorder, @function
inorder:
.LFB7:
	.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	.L8
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, %rdi
	call	inorder
.L8:
	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	.L11
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, %rdi
	call	inorder
	nop
.L11:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	inorder, .-inorder
	.globl	preorder
	.type	preorder, @function
preorder:
.LFB8:
	.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	.L13
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, %rdi
	call	preorder
.L13:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	.L16
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, %rdi
	call	preorder
	nop
.L16:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	preorder, .-preorder
	.globl	print
	.type	print, @function
print:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	inorder
	movl	$10, %edi
	call	putchar@PLT
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	preorder
	movl	$10, %edi
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	print, .-print
	.globl	makenode
	.type	makenode, @function
makenode:
.LFB10:
	.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
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	$24, %edi
	call	malloc@PLT
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movl	-20(%rbp), %edx
	movl	%edx, (%rax)
	movq	-8(%rbp), %rax
	movl	-24(%rbp), %edx
	movl	%edx, 4(%rax)
	movq	-8(%rbp), %rax
	movq	$0, 16(%rax)
	movq	-8(%rbp), %rax
	movq	$0, 8(%rax)
	movq	-8(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	makenode, .-makenode
	.globl	rightRotate
	.type	rightRotate, @function
rightRotate:
.LFB11:
	.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	-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
.LFE11:
	.size	rightRotate, .-rightRotate
	.globl	leftRotate
	.type	leftRotate, @function
leftRotate:
.LFB12:
	.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	-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
.LFE12:
	.size	leftRotate, .-leftRotate
	.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
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movq	%rdi, -40(%rbp)
	movl	%esi, -44(%rbp)
	movl	%edx, -48(%rbp)
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	.L26
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	makenode
	movq	%rax, -24(%rbp)
	movq	-24(%rbp), %rax
	jmp	.L27
.L26:
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	%eax, -44(%rbp)
	jne	.L28
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	jmp	.L27
.L28:
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	%eax, -44(%rbp)
	jge	.L29
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	leaq	16(%rax), %rcx
	movq	-40(%rbp), %rax
	movq	(%rax), %rbx
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %eax
	movl	%eax, %esi
	movq	%rcx, %rdi
	call	insert
	movq	%rax, 16(%rbx)
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movl	4(%rax), %edx
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jge	.L30
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	rightRotate
	movq	-40(%rbp), %rdx
	movq	%rax, (%rdx)
	jmp	.L30
.L29:
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	leaq	8(%rax), %rcx
	movq	-40(%rbp), %rax
	movq	(%rax), %rbx
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %eax
	movl	%eax, %esi
	movq	%rcx, %rdi
	call	insert
	movq	%rax, 8(%rbx)
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movl	4(%rax), %edx
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jge	.L30
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	leftRotate
	movq	-40(%rbp), %rdx
	movq	%rax, (%rdx)
.L30:
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
.L27:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	insert, .-insert
	.globl	Delete
	.type	Delete, @function
Delete:
.LFB14:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 3, -24
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	.L32
	movl	$0, %eax
	jmp	.L33
.L32:
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	%eax, -28(%rbp)
	jge	.L34
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	leaq	16(%rax), %rdx
	movq	-24(%rbp), %rax
	movq	(%rax), %rbx
	movl	-28(%rbp), %eax
	movl	%eax, %esi
	movq	%rdx, %rdi
	call	Delete
	movq	%rax, 16(%rbx)
	jmp	.L35
.L34:
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	%eax, -28(%rbp)
	jle	.L36
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	leaq	8(%rax), %rdx
	movq	-24(%rbp), %rax
	movq	(%rax), %rbx
	movl	-28(%rbp), %eax
	movl	%eax, %esi
	movq	%rdx, %rdi
	call	Delete
	movq	%rax, 8(%rbx)
	jmp	.L35
.L36:
	movl	-28(%rbp), %edx
	movq	-24(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	del
	jmp	.L33
.L35:
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
.L33:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	Delete, .-Delete
	.globl	del
	.type	del, @function
del:
.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)
	movl	%esi, -12(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	.L38
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	.L38
	movl	$0, %eax
	jmp	.L39
.L38:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	.L40
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	leftRotate
	movq	-8(%rbp), %rdx
	movq	%rax, (%rdx)
	jmp	.L41
.L40:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	.L42
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	rightRotate
	movq	-8(%rbp), %rdx
	movq	%rax, (%rdx)
	jmp	.L41
.L42:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rax
	movl	4(%rax), %edx
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	jle	.L43
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	rightRotate
	movq	-8(%rbp), %rdx
	movq	%rax, (%rdx)
	jmp	.L41
.L43:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	leftRotate
	movq	-8(%rbp), %rdx
	movq	%rax, (%rdx)
.L41:
	movl	-12(%rbp), %edx
	movq	-8(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	Delete
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	del, .-del
	.section	.rodata
.LC1:
	.string	"%d"
.LC2:
	.string	"%s"
.LC3:
	.string	"%d %d"
.LC4:
	.string	"yes"
.LC5:
	.string	"no"
	.text
	.globl	main
	.type	main, @function
main:
.LFB16:
	.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, -24(%rbp)
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -28(%rbp)
	jmp	.L45
.L53:
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-16(%rbp), %eax
	movsbl	%al, %eax
	cmpl	$112, %eax
	je	.L46
	cmpl	$112, %eax
	jg	.L47
	cmpl	$105, %eax
	je	.L48
	cmpl	$105, %eax
	jg	.L47
	cmpl	$100, %eax
	je	.L49
	cmpl	$102, %eax
	je	.L50
	jmp	.L47
.L48:
	leaq	-32(%rbp), %rdx
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %edx
	movl	-36(%rbp), %ecx
	leaq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	insert
	movq	%rax, -24(%rbp)
	jmp	.L47
.L49:
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-36(%rbp), %edx
	leaq	-24(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	Delete
	movq	%rax, -24(%rbp)
	jmp	.L47
.L50:
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-36(%rbp), %edx
	movq	-24(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	find
	testl	%eax, %eax
	je	.L51
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L47
.L51:
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L47
.L46:
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	print
	nop
.L47:
	addl	$1, -28(%rbp)
.L45:
	movl	-40(%rbp), %eax
	cmpl	%eax, -28(%rbp)
	jl	.L53
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L55
	call	__stack_chk_fail@PLT
.L55:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.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:
