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 <string.h>
#include <stdlib.h>
#define NIL NULL

struct Node{
	int key;
	int priority;
	struct Node *r,*l,*p;
}Node;

struct Node *Delete(struct Node **t, int key);
struct Node *_delete(struct Node **t, int key);

void preorder( struct Node *u ){
	
	printf(" %d",u->key);
	if(u->l!=NIL){
		preorder(u->l);
	}
	if(u->r!=NIL){
		preorder(u->r);
	}
	return;
}

void inorder( struct Node *u ){
	
	if(u->l!=NIL){
		inorder(u->l);
	}
	printf(" %d",u->key);
	if(u->r!=NIL){
		inorder(u->r);
	}
	return;
	
}

int find( struct Node *u , int k ){
	while( u != NIL ){
		if( u->key == k ){
			return 1;
		}else if( k < u->key ){
			u = u->l;
		}else{
			u = u->r;
		}
	}
	return 0;
}

struct Node *rightRotate(struct Node *t){
    struct Node *s = t->l;
    t->l = s->r;
    s->r = t;
    return s;
}

struct Node *leftRotate(struct Node *t){
    struct Node *s = t->r;
    t->r = s->l;
    s->l = t;
    return s;
}

struct Node* node( int x , int y ){
	
	struct Node *new = malloc(sizeof(Node));
	new->key = x;
	new->priority = y;
	new->l = NIL;
	new->r = NIL;
	
	return new;
}

struct Node* insert(struct Node **t, int key, int priority){
	
	struct Node *new;
	if( *t == NIL ){
        return new = node(key, priority);
	}
	if( key == (*t)->key ){
        return *t;
	}

	if( key < (*t)->key ){
		(*t)->l = insert(&(*t)->l, key, priority);
		if ( (*t)->priority < (*t)->l->priority ){
            *t = rightRotate(*t);
		}
	}else{
		(*t)->r = insert(&(*t)->r, key, priority);
		if( (*t)->priority < (*t)->r->priority ){
            *t = leftRotate(*t);
		}
	}
	return *t;
}

struct Node *Delete(struct Node **t, int key){
	
	if ((*t) == NIL){
		return NIL;
	}
	if ( key < (*t)->key ){
		(*t)->l = Delete(&((*t)->l), key);
	}else if ( key > (*t)->key ){
		(*t)->r = Delete(&((*t)->r), key);
	}else{
        return _delete(t, key);
	}
    return *t;
}

struct Node *_delete(struct Node **t, int key){                
		if ((*t)->l == NIL && (*t)->r == NIL ){               
        	return NIL;
		}else if ( (*t)->l == NIL ){
        	*t = leftRotate(*t);
		}else if ((*t)->r == NIL){
        	*t = rightRotate(*t);
		}else{
			if ((*t)->l->priority > (*t)->r->priority ){
            	*t = rightRotate(*t);
			}
			else{
            	*t = leftRotate(*t);
			}
		}
    return Delete(t, key);
}

int main( void ){
	int n , i , x , y;
	char com[10];
	struct Node *root = NIL;
	
	scanf( "%d", &n );
	
	for( i=0;i<n;i++ ){
		
		scanf("%s",com );
		if( strcmp(com ,"find") == 0 ) {
			scanf( "%d",&x );
			if( find(root,x) ){
				printf( "yes\n" );
			}else{
				printf("no\n");
			}
		}else if( strcmp(com ,"delete") == 0 ){
			scanf( "%d" , &x );
			root = Delete(&root,x);
		}else if( strcmp(com,"insert") == 0 ){
			scanf("%d %d",&x,&y);
			root = insert(&root,x,y);
		}else if( strcmp(com ,"print") == 0 ){
			inorder(root);
			printf( "\n" );
			preorder(root);
			printf( "\n" );
		}
	}
	
	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	Node
	.bss
	.align 32
	.type	Node, @object
	.size	Node, 32
Node:
	.zero	32
	.section	.rodata
.LC0:
	.string	" %d"
	.text
	.globl	preorder
	.type	preorder, @function
preorder:
.LFB6:
	.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	.L2
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, %rdi
	call	preorder
.L2:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	.L5
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, %rdi
	call	preorder
	nop
.L5:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	preorder, .-preorder
	.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	.L7
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, %rdi
	call	inorder
.L7:
	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	.L10
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, %rdi
	call	inorder
	nop
.L10:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	inorder, .-inorder
	.globl	find
	.type	find, @function
find:
.LFB8:
	.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	.L12
.L16:
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -12(%rbp)
	jne	.L13
	movl	$1, %eax
	jmp	.L14
.L13:
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -12(%rbp)
	jge	.L15
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, -8(%rbp)
	jmp	.L12
.L15:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -8(%rbp)
.L12:
	cmpq	$0, -8(%rbp)
	jne	.L16
	movl	$0, %eax
.L14:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	find, .-find
	.globl	rightRotate
	.type	rightRotate, @function
rightRotate:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	-24(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	8(%rax), %rdx
	movq	-24(%rbp), %rax
	movq	%rdx, 16(%rax)
	movq	-8(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rdx, 8(%rax)
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	rightRotate, .-rightRotate
	.globl	leftRotate
	.type	leftRotate, @function
leftRotate:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	-24(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	16(%rax), %rdx
	movq	-24(%rbp), %rax
	movq	%rdx, 8(%rax)
	movq	-8(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rdx, 16(%rax)
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	leftRotate, .-leftRotate
	.globl	node
	.type	node, @function
node:
.LFB11:
	.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	$32, %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
.LFE11:
	.size	node, .-node
	.globl	insert
	.type	insert, @function
insert:
.LFB12:
	.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	.L24
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	node
	movq	%rax, -24(%rbp)
	movq	-24(%rbp), %rax
	jmp	.L25
.L24:
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	%eax, -44(%rbp)
	jne	.L26
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	jmp	.L25
.L26:
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	%eax, -44(%rbp)
	jge	.L27
	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	.L28
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	rightRotate
	movq	-40(%rbp), %rdx
	movq	%rax, (%rdx)
	jmp	.L28
.L27:
	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	.L28
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	leftRotate
	movq	-40(%rbp), %rdx
	movq	%rax, (%rdx)
.L28:
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
.L25:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	insert, .-insert
	.globl	Delete
	.type	Delete, @function
Delete:
.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	$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	.L30
	movl	$0, %eax
	jmp	.L31
.L30:
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	%eax, -28(%rbp)
	jge	.L32
	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	.L33
.L32:
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	%eax, -28(%rbp)
	jle	.L34
	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	.L33
.L34:
	movl	-28(%rbp), %edx
	movq	-24(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	_delete
	jmp	.L31
.L33:
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
.L31:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	Delete, .-Delete
	.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
	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	.L36
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	.L36
	movl	$0, %eax
	jmp	.L37
.L36:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	.L38
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	leftRotate
	movq	-8(%rbp), %rdx
	movq	%rax, (%rdx)
	jmp	.L39
.L38:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	.L40
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	rightRotate
	movq	-8(%rbp), %rdx
	movq	%rax, (%rdx)
	jmp	.L39
.L40:
	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	.L41
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	rightRotate
	movq	-8(%rbp), %rdx
	movq	%rax, (%rdx)
	jmp	.L39
.L41:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	leftRotate
	movq	-8(%rbp), %rdx
	movq	%rax, (%rdx)
.L39:
	movl	-12(%rbp), %edx
	movq	-8(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	Delete
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	_delete, .-_delete
	.section	.rodata
.LC1:
	.string	"%d"
.LC2:
	.string	"%s"
.LC3:
	.string	"find"
.LC4:
	.string	"yes"
.LC5:
	.string	"no"
.LC6:
	.string	"delete"
.LC7:
	.string	"insert"
.LC8:
	.string	"%d %d"
.LC9:
	.string	"print"
	.text
	.globl	main
	.type	main, @function
main:
.LFB15:
	.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, -32(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -36(%rbp)
	jmp	.L43
.L49:
	leaq	-18(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-18(%rbp), %rax
	leaq	.LC3(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L44
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %edx
	movq	-32(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	find
	testl	%eax, %eax
	je	.L45
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L46
.L45:
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L46
.L44:
	leaq	-18(%rbp), %rax
	leaq	.LC6(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L47
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %edx
	leaq	-32(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	Delete
	movq	%rax, -32(%rbp)
	jmp	.L46
.L47:
	leaq	-18(%rbp), %rax
	leaq	.LC7(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L48
	leaq	-40(%rbp), %rdx
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC8(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %edx
	movl	-44(%rbp), %ecx
	leaq	-32(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	insert
	movq	%rax, -32(%rbp)
	jmp	.L46
.L48:
	leaq	-18(%rbp), %rax
	leaq	.LC9(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L46
	movq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	inorder
	movl	$10, %edi
	call	putchar@PLT
	movq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	preorder
	movl	$10, %edi
	call	putchar@PLT
.L46:
	addl	$1, -36(%rbp)
.L43:
	movl	-48(%rbp), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L49
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L51
	call	__stack_chk_fail@PLT
.L51:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	" %d"
	.text
	.p2align 4
	.globl	preorder
	.type	preorder, @function
preorder:
.LFB51:
	.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)
.L20:
	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	.L2
.L19:
	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	.L3
.L18:
	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	.L4
.L17:
	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	.L5
.L16:
	movl	(%r12), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%r12), %rbx
	testq	%rbx, %rbx
	je	.L6
.L15:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%rbx), %r15
	testq	%r15, %r15
	je	.L7
.L14:
	movl	(%r15), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%r15), %r14
	testq	%r14, %r14
	je	.L8
.L13:
	movl	(%r14), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%r14), %r13
	testq	%r13, %r13
	je	.L9
.L12:
	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	.L10
	call	preorder
	movq	8(%r13), %r13
	testq	%r13, %r13
	jne	.L12
	.p2align 4,,10
	.p2align 3
.L9:
	movq	8(%r14), %r14
	testq	%r14, %r14
	jne	.L13
.L8:
	movq	8(%r15), %r15
	testq	%r15, %r15
	jne	.L14
.L7:
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	.L15
.L6:
	movq	8(%r12), %r12
	testq	%r12, %r12
	jne	.L16
.L5:
	movq	(%rsp), %rax
	movq	8(%rax), %rax
	movq	%rax, (%rsp)
	testq	%rax, %rax
	jne	.L17
.L4:
	movq	8(%rsp), %rax
	movq	8(%rax), %rax
	movq	%rax, 8(%rsp)
	testq	%rax, %rax
	jne	.L18
.L3:
	movq	16(%rsp), %rax
	movq	8(%rax), %rax
	movq	%rax, 16(%rsp)
	testq	%rax, %rax
	jne	.L19
.L2:
	movq	24(%rsp), %rax
	movq	8(%rax), %rax
	movq	%rax, 24(%rsp)
	testq	%rax, %rax
	jne	.L20
	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
.L10:
	.cfi_restore_state
	movq	8(%r13), %r13
	testq	%r13, %r13
	jne	.L12
	movq	8(%r14), %r14
	testq	%r14, %r14
	jne	.L13
	jmp	.L8
	.cfi_endproc
.LFE51:
	.size	preorder, .-preorder
	.p2align 4
	.globl	inorder
	.type	inorder, @function
inorder:
.LFB52:
	.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)
.L77:
	movq	24(%rsp), %rax
	movq	16(%rax), %rax
	movq	%rax, 16(%rsp)
	testq	%rax, %rax
	je	.L59
.L76:
	movq	16(%rsp), %rax
	movq	16(%rax), %rax
	movq	%rax, 8(%rsp)
	testq	%rax, %rax
	je	.L60
.L75:
	movq	8(%rsp), %rax
	movq	16(%rax), %rax
	movq	%rax, (%rsp)
	testq	%rax, %rax
	je	.L61
.L74:
	movq	(%rsp), %rax
	movq	16(%rax), %r12
	testq	%r12, %r12
	je	.L62
.L73:
	movq	16(%r12), %rbx
	testq	%rbx, %rbx
	je	.L63
.L72:
	movq	16(%rbx), %r15
	testq	%r15, %r15
	je	.L64
.L71:
	movq	16(%r15), %r14
	testq	%r14, %r14
	je	.L65
.L70:
	movq	16(%r14), %r13
	testq	%r13, %r13
	je	.L66
.L69:
	movq	16(%r13), %rdi
	testq	%rdi, %rdi
	je	.L67
	call	inorder
	.p2align 4,,10
	.p2align 3
.L67:
	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	.L69
.L66:
	movl	(%r14), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%r14), %r14
	testq	%r14, %r14
	jne	.L70
.L65:
	movl	(%r15), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%r15), %r15
	testq	%r15, %r15
	jne	.L71
.L64:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	.L72
.L63:
	movl	(%r12), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%r12), %r12
	testq	%r12, %r12
	jne	.L73
.L62:
	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	.L74
.L61:
	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	.L75
.L60:
	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	.L76
.L59:
	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	.L77
	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
.LFE52:
	.size	inorder, .-inorder
	.p2align 4
	.globl	find
	.type	find, @function
find:
.LFB53:
	.cfi_startproc
	endbr64
	jmp	.L121
	.p2align 4,,10
	.p2align 3
.L117:
	cmpl	%esi, (%rdi)
	je	.L119
	movq	8(%rdi), %rax
	cmovg	16(%rdi), %rax
	movq	%rax, %rdi
.L121:
	testq	%rdi, %rdi
	jne	.L117
	xorl	%eax, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L119:
	movl	$1, %eax
	ret
	.cfi_endproc
.LFE53:
	.size	find, .-find
	.p2align 4
	.globl	rightRotate
	.type	rightRotate, @function
rightRotate:
.LFB54:
	.cfi_startproc
	endbr64
	movq	16(%rdi), %rax
	movq	8(%rax), %rdx
	movq	%rdx, 16(%rdi)
	movq	%rdi, 8(%rax)
	ret
	.cfi_endproc
.LFE54:
	.size	rightRotate, .-rightRotate
	.p2align 4
	.globl	leftRotate
	.type	leftRotate, @function
leftRotate:
.LFB55:
	.cfi_startproc
	endbr64
	movq	8(%rdi), %rax
	movq	16(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movq	%rdi, 16(%rax)
	ret
	.cfi_endproc
.LFE55:
	.size	leftRotate, .-leftRotate
	.p2align 4
	.globl	node
	.type	node, @function
node:
.LFB56:
	.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	$32, %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
.LFE56:
	.size	node, .-node
	.p2align 4
	.globl	insert
	.type	insert, @function
insert:
.LFB57:
	.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	.L156
	cmpl	%esi, (%r12)
	je	.L126
	movq	%rdi, %rbx
	jle	.L129
	movq	16(%r12), %rbp
	testq	%rbp, %rbp
	je	.L157
	cmpl	0(%rbp), %esi
	je	.L131
	jge	.L132
	movq	16(%rbp), %r13
	testq	%r13, %r13
	je	.L158
	cmpl	0(%r13), %esi
	je	.L134
	jge	.L135
	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	.L134
	movq	8(%rax), %rdx
	movq	%rdx, 16(%r13)
	movq	%r13, 8(%rax)
	movq	%rax, %r13
	.p2align 4,,10
	.p2align 3
.L134:
	movq	%r13, 16(%rbp)
	movq	16(%r12), %rbp
	movq	16(%rbp), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%rbp)
	jge	.L131
	movq	8(%rax), %rdx
	movq	%rdx, 16(%rbp)
	movq	%rbp, 8(%rax)
	movq	%rax, %rbp
	.p2align 4,,10
	.p2align 3
.L131:
	movq	%rbp, 16(%r12)
	movq	(%rbx), %r12
	movq	16(%r12), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%r12)
	jge	.L126
	movq	8(%rax), %rdx
	movq	%rdx, 16(%r12)
	movq	%r12, 8(%rax)
	movq	%rax, %r12
	movq	%rax, (%rbx)
.L126:
	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
.L129:
	.cfi_restore_state
	movq	8(%r12), %rbp
	testq	%rbp, %rbp
	je	.L159
	cmpl	0(%rbp), %esi
	je	.L144
	jge	.L145
	movq	16(%rbp), %r13
	testq	%r13, %r13
	je	.L160
	cmpl	0(%r13), %esi
	je	.L147
	jge	.L148
	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	.L147
	movq	8(%rax), %rdx
	movq	%rdx, 16(%r13)
	movq	%r13, 8(%rax)
	movq	%rax, %r13
	.p2align 4,,10
	.p2align 3
.L147:
	movq	%r13, 16(%rbp)
	movq	8(%r12), %rbp
	movq	16(%rbp), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%rbp)
	jge	.L144
	movq	8(%rax), %rdx
	movq	%rdx, 16(%rbp)
	movq	%rbp, 8(%rax)
	movq	%rax, %rbp
	.p2align 4,,10
	.p2align 3
.L144:
	movq	%rbp, 8(%r12)
	movq	(%rbx), %r12
	movq	8(%r12), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%r12)
	jge	.L126
	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
.L132:
	.cfi_restore_state
	movq	8(%rbp), %r13
	testq	%r13, %r13
	je	.L161
	cmpl	0(%r13), %esi
	je	.L139
	jge	.L140
	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	.L139
	movq	8(%rax), %rdx
	movq	%rdx, 16(%r13)
	movq	%r13, 8(%rax)
	movq	%rax, %r13
	.p2align 4,,10
	.p2align 3
.L139:
	movq	%r13, 8(%rbp)
	movq	16(%r12), %rbp
	movq	8(%rbp), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%rbp)
	jge	.L131
	movq	16(%rax), %rdx
	movq	%rdx, 8(%rbp)
	movq	%rbp, 16(%rax)
	movq	%rax, %rbp
	jmp	.L131
	.p2align 4,,10
	.p2align 3
.L145:
	movq	8(%rbp), %r13
	testq	%r13, %r13
	je	.L162
	cmpl	0(%r13), %esi
	je	.L152
	jge	.L153
	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	.L152
	movq	8(%rax), %rdx
	movq	%rdx, 16(%r13)
	movq	%r13, 8(%rax)
	movq	%rax, %r13
	.p2align 4,,10
	.p2align 3
.L152:
	movq	%r13, 8(%rbp)
	movq	8(%r12), %rbp
	movq	8(%rbp), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%rbp)
	jge	.L144
	movq	16(%rax), %rdx
	movq	%rdx, 8(%rbp)
	movq	%rbp, 16(%rax)
	movq	%rax, %rbp
	jmp	.L144
	.p2align 4,,10
	.p2align 3
.L156:
	movl	$32, %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	.L126
	.p2align 4,,10
	.p2align 3
.L148:
	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	.L147
	movq	16(%rax), %rdx
	movq	%rdx, 8(%r13)
	movq	%r13, 16(%rax)
	movq	%rax, %r13
	jmp	.L147
	.p2align 4,,10
	.p2align 3
.L153:
	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	.L152
	movq	16(%rax), %rdx
	movq	%rdx, 8(%r13)
	movq	%r13, 16(%rax)
	movq	%rax, %r13
	jmp	.L152
	.p2align 4,,10
	.p2align 3
.L135:
	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	.L134
	movq	16(%rax), %rdx
	movq	%rdx, 8(%r13)
	movq	%r13, 16(%rax)
	movq	%rax, %r13
	jmp	.L134
	.p2align 4,,10
	.p2align 3
.L140:
	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	.L139
	movq	16(%rax), %rdx
	movq	%rdx, 8(%r13)
	movq	%r13, 16(%rax)
	movq	%rax, %r13
	jmp	.L139
	.p2align 4,,10
	.p2align 3
.L159:
	movl	$32, %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	.L144
	.p2align 4,,10
	.p2align 3
.L157:
	movl	$32, %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	.L131
	.p2align 4,,10
	.p2align 3
.L160:
	movl	$32, %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	.L147
	.p2align 4,,10
	.p2align 3
.L162:
	movl	$32, %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	.L152
	.p2align 4,,10
	.p2align 3
.L158:
	movl	$32, %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	.L134
	.p2align 4,,10
	.p2align 3
.L161:
	movl	$32, %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	.L139
	.cfi_endproc
.LFE57:
	.size	insert, .-insert
	.p2align 4
	.globl	_delete
	.type	_delete, @function
_delete:
.LFB59:
	.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	.L201
.L164:
	testq	%r12, %r12
	je	.L200
	movl	4(%r12), %ecx
	cmpl	%ecx, 4(%rdx)
	jg	.L200
.L168:
	movq	16(%r12), %rdx
	movq	%rdx, 8(%rax)
	movq	%rax, 16(%r12)
	movq	%r12, (%rbx)
	cmpl	(%r12), %esi
	jl	.L202
.L198:
	jle	.L185
	movq	8(%r12), %rbp
	testq	%rbp, %rbp
	je	.L175
	cmpl	0(%rbp), %esi
	jl	.L203
	jle	.L178
	movq	8(%rbp), %r13
	testq	%r13, %r13
	je	.L179
	cmpl	0(%r13), %esi
	jl	.L204
	jle	.L182
	leaq	8(%r13), %rdi
	call	Delete
	movq	%rax, 8(%r13)
.L181:
	movq	8(%rbp), %r13
.L179:
	movq	%r13, 8(%rbp)
.L177:
	movq	8(%r12), %rbp
.L175:
	movq	%rbp, 8(%r12)
.L173:
	movq	(%rbx), %r12
.L163:
	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
.L200:
	.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	.L198
.L202:
	movq	16(%r12), %rbp
	testq	%rbp, %rbp
	je	.L169
	cmpl	0(%rbp), %esi
	jl	.L205
	jle	.L172
	leaq	8(%rbp), %rdi
	call	Delete
	movq	%rax, 8(%rbp)
.L171:
	movq	16(%r12), %rbp
.L169:
	movq	%rbp, 16(%r12)
	jmp	.L173
	.p2align 4,,10
	.p2align 3
.L185:
	movq	%r12, %rax
	movq	16(%rax), %rdx
	movq	8(%rax), %r12
	testq	%rdx, %rdx
	jne	.L164
.L201:
	testq	%r12, %r12
	jne	.L168
	jmp	.L163
	.p2align 4,,10
	.p2align 3
.L172:
	leaq	16(%r12), %rdi
	call	_delete
	movq	%rax, %rbp
	jmp	.L169
	.p2align 4,,10
	.p2align 3
.L203:
	leaq	16(%rbp), %rdi
	call	Delete
	movq	%rax, 16(%rbp)
	jmp	.L177
	.p2align 4,,10
	.p2align 3
.L205:
	leaq	16(%rbp), %rdi
	call	Delete
	movq	%rax, 16(%rbp)
	jmp	.L171
	.p2align 4,,10
	.p2align 3
.L178:
	leaq	8(%r12), %rdi
	call	_delete
	movq	%rax, %rbp
	jmp	.L175
	.p2align 4,,10
	.p2align 3
.L204:
	leaq	16(%r13), %rdi
	call	Delete
	movq	%rax, 16(%r13)
	jmp	.L181
	.p2align 4,,10
	.p2align 3
.L182:
	leaq	8(%rbp), %rdi
	call	_delete
	movq	%rax, %r13
	jmp	.L179
	.cfi_endproc
.LFE59:
	.size	_delete, .-_delete
	.p2align 4
	.globl	Delete
	.type	Delete, @function
Delete:
.LFB58:
	.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	.L206
	movq	%rdi, %rbp
	cmpl	%esi, (%r12)
	jg	.L250
	jge	.L218
	movq	8(%r12), %rbx
	testq	%rbx, %rbx
	je	.L219
	cmpl	(%rbx), %esi
	jl	.L251
	jle	.L226
	movq	8(%rbx), %r13
	testq	%r13, %r13
	je	.L227
	cmpl	0(%r13), %esi
	jl	.L252
	jle	.L230
	leaq	8(%r13), %rdi
	call	Delete
	movq	%rax, 8(%r13)
.L229:
	movq	8(%rbx), %r13
.L227:
	movq	%r13, 8(%rbx)
.L225:
	movq	8(%r12), %rbx
.L219:
	movq	%rbx, 8(%r12)
.L217:
	movq	0(%rbp), %r12
.L206:
	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
.L218:
	.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	_delete
	.p2align 4,,10
	.p2align 3
.L250:
	.cfi_restore_state
	movq	16(%r12), %rbx
	testq	%rbx, %rbx
	je	.L209
	cmpl	(%rbx), %esi
	jl	.L253
	jle	.L212
	movq	8(%rbx), %r13
	testq	%r13, %r13
	je	.L213
	cmpl	0(%r13), %esi
	jl	.L254
	jle	.L216
	leaq	8(%r13), %rdi
	call	Delete
	movq	%rax, 8(%r13)
.L215:
	movq	8(%rbx), %r13
.L213:
	movq	%r13, 8(%rbx)
	movq	16(%r12), %rbx
.L209:
	movq	%rbx, 16(%r12)
	jmp	.L217
	.p2align 4,,10
	.p2align 3
.L253:
	leaq	16(%rbx), %rdi
	call	Delete
	movq	%rax, 16(%rbx)
	movq	16(%r12), %rbx
	jmp	.L209
	.p2align 4,,10
	.p2align 3
.L226:
	leaq	8(%r12), %rdi
	call	_delete
	movq	%rax, %rbx
	jmp	.L219
	.p2align 4,,10
	.p2align 3
.L251:
	movq	16(%rbx), %r13
	testq	%r13, %r13
	je	.L221
	cmpl	0(%r13), %esi
	jl	.L255
	jle	.L224
	leaq	8(%r13), %rdi
	call	Delete
	movq	%rax, 8(%r13)
.L223:
	movq	16(%rbx), %r13
.L221:
	movq	%r13, 16(%rbx)
	jmp	.L225
	.p2align 4,,10
	.p2align 3
.L212:
	leaq	16(%r12), %rdi
	call	_delete
	movq	%rax, %rbx
	jmp	.L209
	.p2align 4,,10
	.p2align 3
.L216:
	leaq	8(%rbx), %rdi
	call	_delete
	movq	%rax, %r13
	jmp	.L213
	.p2align 4,,10
	.p2align 3
.L224:
	leaq	16(%rbx), %rdi
	call	_delete
	movq	%rax, %r13
	jmp	.L221
	.p2align 4,,10
	.p2align 3
.L252:
	leaq	16(%r13), %rdi
	call	Delete
	movq	%rax, 16(%r13)
	jmp	.L229
	.p2align 4,,10
	.p2align 3
.L255:
	leaq	16(%r13), %rdi
	call	Delete
	movq	%rax, 16(%r13)
	jmp	.L223
	.p2align 4,,10
	.p2align 3
.L254:
	leaq	16(%r13), %rdi
	call	Delete
	movq	%rax, 16(%r13)
	jmp	.L215
	.p2align 4,,10
	.p2align 3
.L230:
	leaq	8(%rbx), %rdi
	call	_delete
	movq	%rax, %r13
	jmp	.L227
	.cfi_endproc
.LFE58:
	.size	Delete, .-Delete
	.section	.rodata.str1.1
.LC1:
	.string	"%d"
.LC2:
	.string	"%s"
.LC3:
	.string	"find"
.LC4:
	.string	"delete"
.LC5:
	.string	"insert"
.LC6:
	.string	"%d %d"
.LC7:
	.string	"print"
.LC8:
	.string	"yes"
.LC9:
	.string	"no"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB60:
	.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
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	36(%rsp), %rsi
	movq	$0, 48(%rsp)
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	testl	%eax, %eax
	jle	.L257
	leaq	44(%rsp), %rax
	xorl	%ebx, %ebx
	leaq	62(%rsp), %r15
	movq	%rax, (%rsp)
	leaq	.LC2(%rip), %rbp
	leaq	.LC8(%rip), %r14
	jmp	.L306
	.p2align 4,,10
	.p2align 3
.L258:
	cmpl	$1701602660, (%r15)
	je	.L342
.L265:
	cmpl	$1702063721, (%r15)
	je	.L343
.L301:
	cmpl	$1852404336, (%r15)
	je	.L344
.L300:
	addl	$1, %ebx
	cmpl	%ebx, 36(%rsp)
	jle	.L257
.L306:
	xorl	%eax, %eax
	movq	%r15, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1684957542, (%r15)
	jne	.L258
	cmpb	$0, 4(%r15)
	jne	.L258
	leaq	40(%rsp), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	48(%rsp), %rax
	movl	40(%rsp), %esi
	testq	%rax, %rax
	jne	.L264
	jmp	.L261
	.p2align 4,,10
	.p2align 3
.L345:
	movq	8(%rax), %rdx
	cmovl	16(%rax), %rdx
	movq	%rdx, %rax
	testq	%rdx, %rdx
	je	.L261
.L264:
	cmpl	(%rax), %esi
	jne	.L345
	movq	%r14, %rdi
	call	puts@PLT
	jmp	.L300
	.p2align 4,,10
	.p2align 3
.L342:
	cmpw	$25972, 4(%r15)
	jne	.L265
	cmpb	$0, 6(%r15)
	jne	.L265
	leaq	40(%rsp), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	48(%rsp), %r13
	movl	40(%rsp), %esi
	movq	%r13, %rax
	testq	%r13, %r13
	je	.L268
	cmpl	0(%r13), %esi
	jl	.L346
	jle	.L283
	movq	8(%r13), %r8
	testq	%r8, %r8
	je	.L284
	cmpl	(%r8), %esi
	jl	.L347
	jle	.L291
	movq	8(%r8), %r9
	testq	%r9, %r9
	je	.L292
	cmpl	(%r9), %esi
	jl	.L348
	jle	.L295
	movq	8(%r9), %r10
	testq	%r10, %r10
	je	.L296
	cmpl	(%r10), %esi
	jl	.L349
	jle	.L299
	leaq	8(%r10), %rdi
	movq	%r9, 24(%rsp)
	movq	%r8, 16(%rsp)
	movq	%r10, 8(%rsp)
	call	Delete
	movq	8(%rsp), %r10
	movq	16(%rsp), %r8
	movq	24(%rsp), %r9
	movq	%rax, 8(%r10)
.L298:
	movq	8(%r9), %r10
	movq	48(%rsp), %rax
.L296:
	movq	%r10, 8(%r9)
.L294:
	movq	8(%r8), %r9
.L292:
	movq	%r9, 8(%r8)
.L290:
	movq	8(%r13), %r8
.L284:
	movq	%r8, 8(%r13)
.L282:
	movq	%rax, %r13
.L268:
	movq	%r13, 48(%rsp)
	addl	$1, %ebx
	cmpl	%ebx, 36(%rsp)
	jg	.L306
.L257:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L350
	addq	$88, %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
.L343:
	.cfi_restore_state
	cmpw	$29810, 4(%r15)
	jne	.L301
	cmpb	$0, 6(%r15)
	jne	.L301
	movq	(%rsp), %rdx
	leaq	40(%rsp), %rsi
	leaq	.LC6(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %edx
	movl	40(%rsp), %esi
	leaq	48(%rsp), %rdi
	call	insert
	movq	%rax, 48(%rsp)
	jmp	.L300
	.p2align 4,,10
	.p2align 3
.L344:
	cmpw	$116, 4(%r15)
	jne	.L300
	movq	48(%rsp), %rdi
	call	inorder
	movl	$10, %edi
	call	putchar@PLT
	movq	48(%rsp), %rdi
	call	preorder
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L300
.L261:
	leaq	.LC9(%rip), %rdi
	call	puts@PLT
	jmp	.L300
	.p2align 4,,10
	.p2align 3
.L346:
	movq	16(%r13), %r8
	testq	%r8, %r8
	je	.L270
	cmpl	(%r8), %esi
	jl	.L351
	jle	.L277
	movq	8(%r8), %r9
	testq	%r9, %r9
	je	.L278
	cmpl	(%r9), %esi
	jl	.L352
	jle	.L281
	leaq	8(%r9), %rdi
	movq	%r8, 16(%rsp)
	movq	%r9, 8(%rsp)
	call	Delete
	movq	8(%rsp), %r9
	movq	16(%rsp), %r8
	movq	%rax, 8(%r9)
.L280:
	movq	8(%r8), %r9
	movq	48(%rsp), %rax
.L278:
	movq	%r9, 8(%r8)
.L276:
	movq	16(%r13), %r8
.L270:
	movq	%r8, 16(%r13)
	jmp	.L282
.L283:
	leaq	48(%rsp), %rdi
	call	_delete
	movq	%rax, %r13
	jmp	.L268
.L347:
	movq	16(%r8), %r9
	testq	%r9, %r9
	je	.L286
	cmpl	(%r9), %esi
	jl	.L353
	jle	.L289
	leaq	8(%r9), %rdi
	movq	%r8, 16(%rsp)
	movq	%r9, 8(%rsp)
	call	Delete
	movq	8(%rsp), %r9
	movq	16(%rsp), %r8
	movq	%rax, 8(%r9)
.L288:
	movq	16(%r8), %r9
	movq	48(%rsp), %rax
.L286:
	movq	%r9, 16(%r8)
	jmp	.L290
.L351:
	movq	16(%r8), %r9
	testq	%r9, %r9
	je	.L272
	cmpl	(%r9), %esi
	jl	.L354
	jle	.L275
	leaq	8(%r9), %rdi
	movq	%r8, 16(%rsp)
	movq	%r9, 8(%rsp)
	call	Delete
	movq	8(%rsp), %r9
	movq	16(%rsp), %r8
	movq	%rax, 8(%r9)
.L274:
	movq	16(%r8), %r9
	movq	48(%rsp), %rax
.L272:
	movq	%r9, 16(%r8)
	jmp	.L276
.L353:
	leaq	16(%r9), %rdi
	movq	%r8, 16(%rsp)
	movq	%r9, 8(%rsp)
	call	Delete
	movq	8(%rsp), %r9
	movq	16(%rsp), %r8
	movq	%rax, 16(%r9)
	jmp	.L288
.L352:
	leaq	16(%r9), %rdi
	movq	%r8, 16(%rsp)
	movq	%r9, 8(%rsp)
	call	Delete
	movq	8(%rsp), %r9
	movq	16(%rsp), %r8
	movq	%rax, 16(%r9)
	jmp	.L280
.L295:
	leaq	8(%r8), %rdi
	movq	%r8, 8(%rsp)
	call	_delete
	movq	8(%rsp), %r8
	movq	%rax, %r9
	movq	48(%rsp), %rax
	jmp	.L292
.L291:
	leaq	8(%r13), %rdi
	call	_delete
	movq	%rax, %r8
	movq	48(%rsp), %rax
	jmp	.L284
.L277:
	leaq	16(%r13), %rdi
	call	_delete
	movq	%rax, %r8
	movq	48(%rsp), %rax
	jmp	.L270
.L348:
	leaq	16(%r9), %rdi
	movq	%r8, 16(%rsp)
	movq	%r9, 8(%rsp)
	call	Delete
	movq	8(%rsp), %r9
	movq	16(%rsp), %r8
	movq	%rax, 16(%r9)
	movq	48(%rsp), %rax
	jmp	.L294
.L354:
	leaq	16(%r9), %rdi
	movq	%r8, 16(%rsp)
	movq	%r9, 8(%rsp)
	call	Delete
	movq	8(%rsp), %r9
	movq	16(%rsp), %r8
	movq	%rax, 16(%r9)
	jmp	.L274
.L289:
	leaq	16(%r8), %rdi
	movq	%r8, 8(%rsp)
	call	_delete
	movq	8(%rsp), %r8
	movq	%rax, %r9
	movq	48(%rsp), %rax
	jmp	.L286
.L281:
	leaq	8(%r8), %rdi
	movq	%r8, 8(%rsp)
	call	_delete
	movq	8(%rsp), %r8
	movq	%rax, %r9
	movq	48(%rsp), %rax
	jmp	.L278
.L349:
	leaq	16(%r10), %rdi
	movq	%r9, 24(%rsp)
	movq	%r8, 16(%rsp)
	movq	%r10, 8(%rsp)
	call	Delete
	movq	8(%rsp), %r10
	movq	16(%rsp), %r8
	movq	24(%rsp), %r9
	movq	%rax, 16(%r10)
	jmp	.L298
.L275:
	leaq	16(%r8), %rdi
	movq	%r8, 8(%rsp)
	call	_delete
	movq	8(%rsp), %r8
	movq	%rax, %r9
	movq	48(%rsp), %rax
	jmp	.L272
.L299:
	leaq	8(%r9), %rdi
	movq	%r8, 16(%rsp)
	movq	%r9, 8(%rsp)
	call	_delete
	movq	8(%rsp), %r9
	movq	16(%rsp), %r8
	movq	%rax, %r10
	movq	48(%rsp), %rax
	jmp	.L296
.L350:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE60:
	.size	main, .-main
	.globl	Node
	.bss
	.align 32
	.type	Node, @object
	.size	Node, 32
Node:
	.zero	32
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	" %d"
	.text
	.p2align 4
	.globl	preorder
	.type	preorder, @function
preorder:
.LFB51:
	.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)
.L20:
	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	.L2
.L19:
	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	.L3
.L18:
	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	.L4
.L17:
	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	.L5
.L16:
	movl	(%r12), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%r12), %rbx
	testq	%rbx, %rbx
	je	.L6
.L15:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%rbx), %r15
	testq	%r15, %r15
	je	.L7
.L14:
	movl	(%r15), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%r15), %r14
	testq	%r14, %r14
	je	.L8
.L13:
	movl	(%r14), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	16(%r14), %r13
	testq	%r13, %r13
	je	.L9
.L12:
	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	.L10
	call	preorder
	movq	8(%r13), %r13
	testq	%r13, %r13
	jne	.L12
	.p2align 4,,10
	.p2align 3
.L9:
	movq	8(%r14), %r14
	testq	%r14, %r14
	jne	.L13
.L8:
	movq	8(%r15), %r15
	testq	%r15, %r15
	jne	.L14
.L7:
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	.L15
.L6:
	movq	8(%r12), %r12
	testq	%r12, %r12
	jne	.L16
.L5:
	movq	(%rsp), %rax
	movq	8(%rax), %rax
	movq	%rax, (%rsp)
	testq	%rax, %rax
	jne	.L17
.L4:
	movq	8(%rsp), %rax
	movq	8(%rax), %rax
	movq	%rax, 8(%rsp)
	testq	%rax, %rax
	jne	.L18
.L3:
	movq	16(%rsp), %rax
	movq	8(%rax), %rax
	movq	%rax, 16(%rsp)
	testq	%rax, %rax
	jne	.L19
.L2:
	movq	24(%rsp), %rax
	movq	8(%rax), %rax
	movq	%rax, 24(%rsp)
	testq	%rax, %rax
	jne	.L20
	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
.L10:
	.cfi_restore_state
	movq	8(%r13), %r13
	testq	%r13, %r13
	jne	.L12
	movq	8(%r14), %r14
	testq	%r14, %r14
	jne	.L13
	jmp	.L8
	.cfi_endproc
.LFE51:
	.size	preorder, .-preorder
	.p2align 4
	.globl	inorder
	.type	inorder, @function
inorder:
.LFB52:
	.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)
.L77:
	movq	24(%rsp), %rax
	movq	16(%rax), %rax
	movq	%rax, 16(%rsp)
	testq	%rax, %rax
	je	.L59
.L76:
	movq	16(%rsp), %rax
	movq	16(%rax), %rax
	movq	%rax, 8(%rsp)
	testq	%rax, %rax
	je	.L60
.L75:
	movq	8(%rsp), %rax
	movq	16(%rax), %rax
	movq	%rax, (%rsp)
	testq	%rax, %rax
	je	.L61
.L74:
	movq	(%rsp), %rax
	movq	16(%rax), %r12
	testq	%r12, %r12
	je	.L62
.L73:
	movq	16(%r12), %rbx
	testq	%rbx, %rbx
	je	.L63
.L72:
	movq	16(%rbx), %r15
	testq	%r15, %r15
	je	.L64
.L71:
	movq	16(%r15), %r14
	testq	%r14, %r14
	je	.L65
.L70:
	movq	16(%r14), %r13
	testq	%r13, %r13
	je	.L66
.L69:
	movq	16(%r13), %rdi
	testq	%rdi, %rdi
	je	.L67
	call	inorder
	.p2align 4,,10
	.p2align 3
.L67:
	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	.L69
.L66:
	movl	(%r14), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%r14), %r14
	testq	%r14, %r14
	jne	.L70
.L65:
	movl	(%r15), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%r15), %r15
	testq	%r15, %r15
	jne	.L71
.L64:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	.L72
.L63:
	movl	(%r12), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%r12), %r12
	testq	%r12, %r12
	jne	.L73
.L62:
	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	.L74
.L61:
	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	.L75
.L60:
	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	.L76
.L59:
	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	.L77
	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
.LFE52:
	.size	inorder, .-inorder
	.p2align 4
	.globl	find
	.type	find, @function
find:
.LFB53:
	.cfi_startproc
	endbr64
	jmp	.L121
	.p2align 4,,10
	.p2align 3
.L117:
	cmpl	%esi, (%rdi)
	je	.L119
	movq	8(%rdi), %rax
	cmovg	16(%rdi), %rax
	movq	%rax, %rdi
.L121:
	testq	%rdi, %rdi
	jne	.L117
	xorl	%eax, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L119:
	movl	$1, %eax
	ret
	.cfi_endproc
.LFE53:
	.size	find, .-find
	.p2align 4
	.globl	rightRotate
	.type	rightRotate, @function
rightRotate:
.LFB54:
	.cfi_startproc
	endbr64
	movq	16(%rdi), %rax
	movq	8(%rax), %rdx
	movq	%rdx, 16(%rdi)
	movq	%rdi, 8(%rax)
	ret
	.cfi_endproc
.LFE54:
	.size	rightRotate, .-rightRotate
	.p2align 4
	.globl	leftRotate
	.type	leftRotate, @function
leftRotate:
.LFB55:
	.cfi_startproc
	endbr64
	movq	8(%rdi), %rax
	movq	16(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movq	%rdi, 16(%rax)
	ret
	.cfi_endproc
.LFE55:
	.size	leftRotate, .-leftRotate
	.p2align 4
	.globl	node
	.type	node, @function
node:
.LFB56:
	.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	$32, %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
.LFE56:
	.size	node, .-node
	.p2align 4
	.globl	insert
	.type	insert, @function
insert:
.LFB57:
	.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	.L156
	cmpl	%esi, (%r12)
	je	.L126
	movq	%rdi, %rbx
	jle	.L129
	movq	16(%r12), %rbp
	testq	%rbp, %rbp
	je	.L157
	cmpl	0(%rbp), %esi
	je	.L131
	jge	.L132
	movq	16(%rbp), %r13
	testq	%r13, %r13
	je	.L158
	cmpl	0(%r13), %esi
	je	.L134
	jge	.L135
	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	.L134
	movq	8(%rax), %rdx
	movq	%rdx, 16(%r13)
	movq	%r13, 8(%rax)
	movq	%rax, %r13
	.p2align 4,,10
	.p2align 3
.L134:
	movq	%r13, 16(%rbp)
	movq	16(%r12), %rbp
	movq	16(%rbp), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%rbp)
	jge	.L131
	movq	8(%rax), %rdx
	movq	%rdx, 16(%rbp)
	movq	%rbp, 8(%rax)
	movq	%rax, %rbp
	.p2align 4,,10
	.p2align 3
.L131:
	movq	%rbp, 16(%r12)
	movq	(%rbx), %r12
	movq	16(%r12), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%r12)
	jge	.L126
	movq	8(%rax), %rdx
	movq	%rdx, 16(%r12)
	movq	%r12, 8(%rax)
	movq	%rax, %r12
	movq	%rax, (%rbx)
.L126:
	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
.L129:
	.cfi_restore_state
	movq	8(%r12), %rbp
	testq	%rbp, %rbp
	je	.L159
	cmpl	0(%rbp), %esi
	je	.L144
	jge	.L145
	movq	16(%rbp), %r13
	testq	%r13, %r13
	je	.L160
	cmpl	0(%r13), %esi
	je	.L147
	jge	.L148
	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	.L147
	movq	8(%rax), %rdx
	movq	%rdx, 16(%r13)
	movq	%r13, 8(%rax)
	movq	%rax, %r13
	.p2align 4,,10
	.p2align 3
.L147:
	movq	%r13, 16(%rbp)
	movq	8(%r12), %rbp
	movq	16(%rbp), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%rbp)
	jge	.L144
	movq	8(%rax), %rdx
	movq	%rdx, 16(%rbp)
	movq	%rbp, 8(%rax)
	movq	%rax, %rbp
	.p2align 4,,10
	.p2align 3
.L144:
	movq	%rbp, 8(%r12)
	movq	(%rbx), %r12
	movq	8(%r12), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%r12)
	jge	.L126
	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
.L132:
	.cfi_restore_state
	movq	8(%rbp), %r13
	testq	%r13, %r13
	je	.L161
	cmpl	0(%r13), %esi
	je	.L139
	jge	.L140
	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	.L139
	movq	8(%rax), %rdx
	movq	%rdx, 16(%r13)
	movq	%r13, 8(%rax)
	movq	%rax, %r13
	.p2align 4,,10
	.p2align 3
.L139:
	movq	%r13, 8(%rbp)
	movq	16(%r12), %rbp
	movq	8(%rbp), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%rbp)
	jge	.L131
	movq	16(%rax), %rdx
	movq	%rdx, 8(%rbp)
	movq	%rbp, 16(%rax)
	movq	%rax, %rbp
	jmp	.L131
	.p2align 4,,10
	.p2align 3
.L145:
	movq	8(%rbp), %r13
	testq	%r13, %r13
	je	.L162
	cmpl	0(%r13), %esi
	je	.L152
	jge	.L153
	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	.L152
	movq	8(%rax), %rdx
	movq	%rdx, 16(%r13)
	movq	%r13, 8(%rax)
	movq	%rax, %r13
	.p2align 4,,10
	.p2align 3
.L152:
	movq	%r13, 8(%rbp)
	movq	8(%r12), %rbp
	movq	8(%rbp), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, 4(%rbp)
	jge	.L144
	movq	16(%rax), %rdx
	movq	%rdx, 8(%rbp)
	movq	%rbp, 16(%rax)
	movq	%rax, %rbp
	jmp	.L144
	.p2align 4,,10
	.p2align 3
.L156:
	movl	$32, %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	.L126
	.p2align 4,,10
	.p2align 3
.L148:
	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	.L147
	movq	16(%rax), %rdx
	movq	%rdx, 8(%r13)
	movq	%r13, 16(%rax)
	movq	%rax, %r13
	jmp	.L147
	.p2align 4,,10
	.p2align 3
.L153:
	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	.L152
	movq	16(%rax), %rdx
	movq	%rdx, 8(%r13)
	movq	%r13, 16(%rax)
	movq	%rax, %r13
	jmp	.L152
	.p2align 4,,10
	.p2align 3
.L135:
	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	.L134
	movq	16(%rax), %rdx
	movq	%rdx, 8(%r13)
	movq	%r13, 16(%rax)
	movq	%rax, %r13
	jmp	.L134
	.p2align 4,,10
	.p2align 3
.L140:
	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	.L139
	movq	16(%rax), %rdx
	movq	%rdx, 8(%r13)
	movq	%r13, 16(%rax)
	movq	%rax, %r13
	jmp	.L139
	.p2align 4,,10
	.p2align 3
.L159:
	movl	$32, %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	.L144
	.p2align 4,,10
	.p2align 3
.L157:
	movl	$32, %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	.L131
	.p2align 4,,10
	.p2align 3
.L160:
	movl	$32, %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	.L147
	.p2align 4,,10
	.p2align 3
.L162:
	movl	$32, %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	.L152
	.p2align 4,,10
	.p2align 3
.L158:
	movl	$32, %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	.L134
	.p2align 4,,10
	.p2align 3
.L161:
	movl	$32, %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	.L139
	.cfi_endproc
.LFE57:
	.size	insert, .-insert
	.p2align 4
	.globl	_delete
	.type	_delete, @function
_delete:
.LFB59:
	.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	.L201
.L164:
	testq	%r12, %r12
	je	.L200
	movl	4(%r12), %ecx
	cmpl	%ecx, 4(%rdx)
	jg	.L200
.L168:
	movq	16(%r12), %rdx
	movq	%rdx, 8(%rax)
	movq	%rax, 16(%r12)
	movq	%r12, (%rbx)
	cmpl	(%r12), %esi
	jl	.L202
.L198:
	jle	.L185
	movq	8(%r12), %rbp
	testq	%rbp, %rbp
	je	.L175
	cmpl	0(%rbp), %esi
	jl	.L203
	jle	.L178
	movq	8(%rbp), %r13
	testq	%r13, %r13
	je	.L179
	cmpl	0(%r13), %esi
	jl	.L204
	jle	.L182
	leaq	8(%r13), %rdi
	call	Delete
	movq	%rax, 8(%r13)
.L181:
	movq	8(%rbp), %r13
.L179:
	movq	%r13, 8(%rbp)
.L177:
	movq	8(%r12), %rbp
.L175:
	movq	%rbp, 8(%r12)
.L173:
	movq	(%rbx), %r12
.L163:
	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
.L200:
	.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	.L198
.L202:
	movq	16(%r12), %rbp
	testq	%rbp, %rbp
	je	.L169
	cmpl	0(%rbp), %esi
	jl	.L205
	jle	.L172
	leaq	8(%rbp), %rdi
	call	Delete
	movq	%rax, 8(%rbp)
.L171:
	movq	16(%r12), %rbp
.L169:
	movq	%rbp, 16(%r12)
	jmp	.L173
	.p2align 4,,10
	.p2align 3
.L185:
	movq	%r12, %rax
	movq	16(%rax), %rdx
	movq	8(%rax), %r12
	testq	%rdx, %rdx
	jne	.L164
.L201:
	testq	%r12, %r12
	jne	.L168
	jmp	.L163
	.p2align 4,,10
	.p2align 3
.L172:
	leaq	16(%r12), %rdi
	call	_delete
	movq	%rax, %rbp
	jmp	.L169
	.p2align 4,,10
	.p2align 3
.L203:
	leaq	16(%rbp), %rdi
	call	Delete
	movq	%rax, 16(%rbp)
	jmp	.L177
	.p2align 4,,10
	.p2align 3
.L205:
	leaq	16(%rbp), %rdi
	call	Delete
	movq	%rax, 16(%rbp)
	jmp	.L171
	.p2align 4,,10
	.p2align 3
.L178:
	leaq	8(%r12), %rdi
	call	_delete
	movq	%rax, %rbp
	jmp	.L175
	.p2align 4,,10
	.p2align 3
.L204:
	leaq	16(%r13), %rdi
	call	Delete
	movq	%rax, 16(%r13)
	jmp	.L181
	.p2align 4,,10
	.p2align 3
.L182:
	leaq	8(%rbp), %rdi
	call	_delete
	movq	%rax, %r13
	jmp	.L179
	.cfi_endproc
.LFE59:
	.size	_delete, .-_delete
	.p2align 4
	.globl	Delete
	.type	Delete, @function
Delete:
.LFB58:
	.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	.L206
	movq	%rdi, %rbp
	cmpl	%esi, (%r12)
	jg	.L250
	jge	.L218
	movq	8(%r12), %rbx
	testq	%rbx, %rbx
	je	.L219
	cmpl	(%rbx), %esi
	jl	.L251
	jle	.L226
	movq	8(%rbx), %r13
	testq	%r13, %r13
	je	.L227
	cmpl	0(%r13), %esi
	jl	.L252
	jle	.L230
	leaq	8(%r13), %rdi
	call	Delete
	movq	%rax, 8(%r13)
.L229:
	movq	8(%rbx), %r13
.L227:
	movq	%r13, 8(%rbx)
.L225:
	movq	8(%r12), %rbx
.L219:
	movq	%rbx, 8(%r12)
.L217:
	movq	0(%rbp), %r12
.L206:
	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
.L218:
	.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	_delete
	.p2align 4,,10
	.p2align 3
.L250:
	.cfi_restore_state
	movq	16(%r12), %rbx
	testq	%rbx, %rbx
	je	.L209
	cmpl	(%rbx), %esi
	jl	.L253
	jle	.L212
	movq	8(%rbx), %r13
	testq	%r13, %r13
	je	.L213
	cmpl	0(%r13), %esi
	jl	.L254
	jle	.L216
	leaq	8(%r13), %rdi
	call	Delete
	movq	%rax, 8(%r13)
.L215:
	movq	8(%rbx), %r13
.L213:
	movq	%r13, 8(%rbx)
	movq	16(%r12), %rbx
.L209:
	movq	%rbx, 16(%r12)
	jmp	.L217
	.p2align 4,,10
	.p2align 3
.L253:
	leaq	16(%rbx), %rdi
	call	Delete
	movq	%rax, 16(%rbx)
	movq	16(%r12), %rbx
	jmp	.L209
	.p2align 4,,10
	.p2align 3
.L226:
	leaq	8(%r12), %rdi
	call	_delete
	movq	%rax, %rbx
	jmp	.L219
	.p2align 4,,10
	.p2align 3
.L251:
	movq	16(%rbx), %r13
	testq	%r13, %r13
	je	.L221
	cmpl	0(%r13), %esi
	jl	.L255
	jle	.L224
	leaq	8(%r13), %rdi
	call	Delete
	movq	%rax, 8(%r13)
.L223:
	movq	16(%rbx), %r13
.L221:
	movq	%r13, 16(%rbx)
	jmp	.L225
	.p2align 4,,10
	.p2align 3
.L212:
	leaq	16(%r12), %rdi
	call	_delete
	movq	%rax, %rbx
	jmp	.L209
	.p2align 4,,10
	.p2align 3
.L216:
	leaq	8(%rbx), %rdi
	call	_delete
	movq	%rax, %r13
	jmp	.L213
	.p2align 4,,10
	.p2align 3
.L224:
	leaq	16(%rbx), %rdi
	call	_delete
	movq	%rax, %r13
	jmp	.L221
	.p2align 4,,10
	.p2align 3
.L252:
	leaq	16(%r13), %rdi
	call	Delete
	movq	%rax, 16(%r13)
	jmp	.L229
	.p2align 4,,10
	.p2align 3
.L255:
	leaq	16(%r13), %rdi
	call	Delete
	movq	%rax, 16(%r13)
	jmp	.L223
	.p2align 4,,10
	.p2align 3
.L254:
	leaq	16(%r13), %rdi
	call	Delete
	movq	%rax, 16(%r13)
	jmp	.L215
	.p2align 4,,10
	.p2align 3
.L230:
	leaq	8(%rbx), %rdi
	call	_delete
	movq	%rax, %r13
	jmp	.L227
	.cfi_endproc
.LFE58:
	.size	Delete, .-Delete
	.section	.rodata.str1.1
.LC1:
	.string	"%d"
.LC2:
	.string	"%s"
.LC3:
	.string	"find"
.LC4:
	.string	"delete"
.LC5:
	.string	"insert"
.LC6:
	.string	"%d %d"
.LC7:
	.string	"print"
.LC8:
	.string	"yes"
.LC9:
	.string	"no"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB60:
	.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
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	36(%rsp), %rsi
	movq	$0, 48(%rsp)
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	testl	%eax, %eax
	jle	.L257
	leaq	44(%rsp), %rax
	xorl	%ebx, %ebx
	leaq	62(%rsp), %r15
	movq	%rax, (%rsp)
	leaq	.LC2(%rip), %rbp
	leaq	.LC8(%rip), %r14
	jmp	.L306
	.p2align 4,,10
	.p2align 3
.L258:
	cmpl	$1701602660, (%r15)
	je	.L342
.L265:
	cmpl	$1702063721, (%r15)
	je	.L343
.L301:
	cmpl	$1852404336, (%r15)
	je	.L344
.L300:
	addl	$1, %ebx
	cmpl	%ebx, 36(%rsp)
	jle	.L257
.L306:
	xorl	%eax, %eax
	movq	%r15, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1684957542, (%r15)
	jne	.L258
	cmpb	$0, 4(%r15)
	jne	.L258
	leaq	40(%rsp), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	48(%rsp), %rax
	movl	40(%rsp), %esi
	testq	%rax, %rax
	jne	.L264
	jmp	.L261
	.p2align 4,,10
	.p2align 3
.L345:
	movq	8(%rax), %rdx
	cmovl	16(%rax), %rdx
	movq	%rdx, %rax
	testq	%rdx, %rdx
	je	.L261
.L264:
	cmpl	(%rax), %esi
	jne	.L345
	movq	%r14, %rdi
	call	puts@PLT
	jmp	.L300
	.p2align 4,,10
	.p2align 3
.L342:
	cmpw	$25972, 4(%r15)
	jne	.L265
	cmpb	$0, 6(%r15)
	jne	.L265
	leaq	40(%rsp), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	48(%rsp), %r13
	movl	40(%rsp), %esi
	movq	%r13, %rax
	testq	%r13, %r13
	je	.L268
	cmpl	0(%r13), %esi
	jl	.L346
	jle	.L283
	movq	8(%r13), %r8
	testq	%r8, %r8
	je	.L284
	cmpl	(%r8), %esi
	jl	.L347
	jle	.L291
	movq	8(%r8), %r9
	testq	%r9, %r9
	je	.L292
	cmpl	(%r9), %esi
	jl	.L348
	jle	.L295
	movq	8(%r9), %r10
	testq	%r10, %r10
	je	.L296
	cmpl	(%r10), %esi
	jl	.L349
	jle	.L299
	leaq	8(%r10), %rdi
	movq	%r9, 24(%rsp)
	movq	%r8, 16(%rsp)
	movq	%r10, 8(%rsp)
	call	Delete
	movq	8(%rsp), %r10
	movq	16(%rsp), %r8
	movq	24(%rsp), %r9
	movq	%rax, 8(%r10)
.L298:
	movq	8(%r9), %r10
	movq	48(%rsp), %rax
.L296:
	movq	%r10, 8(%r9)
.L294:
	movq	8(%r8), %r9
.L292:
	movq	%r9, 8(%r8)
.L290:
	movq	8(%r13), %r8
.L284:
	movq	%r8, 8(%r13)
.L282:
	movq	%rax, %r13
.L268:
	movq	%r13, 48(%rsp)
	addl	$1, %ebx
	cmpl	%ebx, 36(%rsp)
	jg	.L306
.L257:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L350
	addq	$88, %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
.L343:
	.cfi_restore_state
	cmpw	$29810, 4(%r15)
	jne	.L301
	cmpb	$0, 6(%r15)
	jne	.L301
	movq	(%rsp), %rdx
	leaq	40(%rsp), %rsi
	leaq	.LC6(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %edx
	movl	40(%rsp), %esi
	leaq	48(%rsp), %rdi
	call	insert
	movq	%rax, 48(%rsp)
	jmp	.L300
	.p2align 4,,10
	.p2align 3
.L344:
	cmpw	$116, 4(%r15)
	jne	.L300
	movq	48(%rsp), %rdi
	call	inorder
	movl	$10, %edi
	call	putchar@PLT
	movq	48(%rsp), %rdi
	call	preorder
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L300
.L261:
	leaq	.LC9(%rip), %rdi
	call	puts@PLT
	jmp	.L300
	.p2align 4,,10
	.p2align 3
.L346:
	movq	16(%r13), %r8
	testq	%r8, %r8
	je	.L270
	cmpl	(%r8), %esi
	jl	.L351
	jle	.L277
	movq	8(%r8), %r9
	testq	%r9, %r9
	je	.L278
	cmpl	(%r9), %esi
	jl	.L352
	jle	.L281
	leaq	8(%r9), %rdi
	movq	%r8, 16(%rsp)
	movq	%r9, 8(%rsp)
	call	Delete
	movq	8(%rsp), %r9
	movq	16(%rsp), %r8
	movq	%rax, 8(%r9)
.L280:
	movq	8(%r8), %r9
	movq	48(%rsp), %rax
.L278:
	movq	%r9, 8(%r8)
.L276:
	movq	16(%r13), %r8
.L270:
	movq	%r8, 16(%r13)
	jmp	.L282
.L283:
	leaq	48(%rsp), %rdi
	call	_delete
	movq	%rax, %r13
	jmp	.L268
.L347:
	movq	16(%r8), %r9
	testq	%r9, %r9
	je	.L286
	cmpl	(%r9), %esi
	jl	.L353
	jle	.L289
	leaq	8(%r9), %rdi
	movq	%r8, 16(%rsp)
	movq	%r9, 8(%rsp)
	call	Delete
	movq	8(%rsp), %r9
	movq	16(%rsp), %r8
	movq	%rax, 8(%r9)
.L288:
	movq	16(%r8), %r9
	movq	48(%rsp), %rax
.L286:
	movq	%r9, 16(%r8)
	jmp	.L290
.L351:
	movq	16(%r8), %r9
	testq	%r9, %r9
	je	.L272
	cmpl	(%r9), %esi
	jl	.L354
	jle	.L275
	leaq	8(%r9), %rdi
	movq	%r8, 16(%rsp)
	movq	%r9, 8(%rsp)
	call	Delete
	movq	8(%rsp), %r9
	movq	16(%rsp), %r8
	movq	%rax, 8(%r9)
.L274:
	movq	16(%r8), %r9
	movq	48(%rsp), %rax
.L272:
	movq	%r9, 16(%r8)
	jmp	.L276
.L353:
	leaq	16(%r9), %rdi
	movq	%r8, 16(%rsp)
	movq	%r9, 8(%rsp)
	call	Delete
	movq	8(%rsp), %r9
	movq	16(%rsp), %r8
	movq	%rax, 16(%r9)
	jmp	.L288
.L352:
	leaq	16(%r9), %rdi
	movq	%r8, 16(%rsp)
	movq	%r9, 8(%rsp)
	call	Delete
	movq	8(%rsp), %r9
	movq	16(%rsp), %r8
	movq	%rax, 16(%r9)
	jmp	.L280
.L295:
	leaq	8(%r8), %rdi
	movq	%r8, 8(%rsp)
	call	_delete
	movq	8(%rsp), %r8
	movq	%rax, %r9
	movq	48(%rsp), %rax
	jmp	.L292
.L291:
	leaq	8(%r13), %rdi
	call	_delete
	movq	%rax, %r8
	movq	48(%rsp), %rax
	jmp	.L284
.L277:
	leaq	16(%r13), %rdi
	call	_delete
	movq	%rax, %r8
	movq	48(%rsp), %rax
	jmp	.L270
.L348:
	leaq	16(%r9), %rdi
	movq	%r8, 16(%rsp)
	movq	%r9, 8(%rsp)
	call	Delete
	movq	8(%rsp), %r9
	movq	16(%rsp), %r8
	movq	%rax, 16(%r9)
	movq	48(%rsp), %rax
	jmp	.L294
.L354:
	leaq	16(%r9), %rdi
	movq	%r8, 16(%rsp)
	movq	%r9, 8(%rsp)
	call	Delete
	movq	8(%rsp), %r9
	movq	16(%rsp), %r8
	movq	%rax, 16(%r9)
	jmp	.L274
.L289:
	leaq	16(%r8), %rdi
	movq	%r8, 8(%rsp)
	call	_delete
	movq	8(%rsp), %r8
	movq	%rax, %r9
	movq	48(%rsp), %rax
	jmp	.L286
.L281:
	leaq	8(%r8), %rdi
	movq	%r8, 8(%rsp)
	call	_delete
	movq	8(%rsp), %r8
	movq	%rax, %r9
	movq	48(%rsp), %rax
	jmp	.L278
.L349:
	leaq	16(%r10), %rdi
	movq	%r9, 24(%rsp)
	movq	%r8, 16(%rsp)
	movq	%r10, 8(%rsp)
	call	Delete
	movq	8(%rsp), %r10
	movq	16(%rsp), %r8
	movq	24(%rsp), %r9
	movq	%rax, 16(%r10)
	jmp	.L298
.L275:
	leaq	16(%r8), %rdi
	movq	%r8, 8(%rsp)
	call	_delete
	movq	8(%rsp), %r8
	movq	%rax, %r9
	movq	48(%rsp), %rax
	jmp	.L272
.L299:
	leaq	8(%r9), %rdi
	movq	%r8, 16(%rsp)
	movq	%r9, 8(%rsp)
	call	_delete
	movq	8(%rsp), %r9
	movq	16(%rsp), %r8
	movq	%rax, %r10
	movq	48(%rsp), %rax
	jmp	.L296
.L350:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE60:
	.size	main, .-main
	.globl	Node
	.bss
	.align 32
	.type	Node, @object
	.size	Node, 32
Node:
	.zero	32
	.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 <string.h>
#include <stdlib.h>
#define NIL NULL

struct Node{
	int key;
	int priority;
	struct Node *r,*l,*p;
}Node;

struct Node *Delete(struct Node **t, int key);
struct Node *_delete(struct Node **t, int key);

void preorder( struct Node *u ){
	
	printf(" %d",u->key);
	if(u->l!=NIL){
		preorder(u->l);
	}
	if(u->r!=NIL){
		preorder(u->r);
	}
	return;
}

void inorder( struct Node *u ){
	
	if(u->l!=NIL){
		inorder(u->l);
	}
	printf(" %d",u->key);
	if(u->r!=NIL){
		inorder(u->r);
	}
	return;
	
}

int find( struct Node *u , int k ){
	while( u != NIL ){
		if( u->key == k ){
			return 1;
		}else if( k < u->key ){
			u = u->l;
		}else{
			u = u->r;
		}
	}
	return 0;
}

struct Node *rightRotate(struct Node *t){
    struct Node *s = t->l;
    t->l = s->r;
    s->r = t;
    return s;
}

struct Node *leftRotate(struct Node *t){
    struct Node *s = t->r;
    t->r = s->l;
    s->l = t;
    return s;
}

struct Node* node( int x , int y ){
	
	struct Node *new = malloc(sizeof(Node));
	new->key = x;
	new->priority = y;
	new->l = NIL;
	new->r = NIL;
	
	return new;
}

struct Node* insert(struct Node **t, int key, int priority){
	
	struct Node *new;
	if( *t == NIL ){
        return new = node(key, priority);
	}
	if( key == (*t)->key ){
        return *t;
	}

	if( key < (*t)->key ){
		(*t)->l = insert(&(*t)->l, key, priority);
		if ( (*t)->priority < (*t)->l->priority ){
            *t = rightRotate(*t);
		}
	}else{
		(*t)->r = insert(&(*t)->r, key, priority);
		if( (*t)->priority < (*t)->r->priority ){
            *t = leftRotate(*t);
		}
	}
	return *t;
}

struct Node *Delete(struct Node **t, int key){
	
	if ((*t) == NIL){
		return NIL;
	}
	if ( key < (*t)->key ){
		(*t)->l = Delete(&((*t)->l), key);
	}else if ( key > (*t)->key ){
		(*t)->r = Delete(&((*t)->r), key);
	}else{
        return _delete(t, key);
	}
    return *t;
}

struct Node *_delete(struct Node **t, int key){                
		if ((*t)->l == NIL && (*t)->r == NIL ){               
        	return NIL;
		}else if ( (*t)->l == NIL ){
        	*t = leftRotate(*t);
		}else if ((*t)->r == NIL){
        	*t = rightRotate(*t);
		}else{
			if ((*t)->l->priority > (*t)->r->priority ){
            	*t = rightRotate(*t);
			}
			else{
            	*t = leftRotate(*t);
			}
		}
    return Delete(t, key);
}

int main( void ){
	int n , i , x , y;
	char com[10];
	struct Node *root = NIL;
	
	scanf( "%d", &n );
	
	for( i=0;i<n;i++ ){
		
		scanf("%s",com );
		if( strcmp(com ,"find") == 0 ) {
			scanf( "%d",&x );
			if( find(root,x) ){
				printf( "yes\n" );
			}else{
				printf("no\n");
			}
		}else if( strcmp(com ,"delete") == 0 ){
			scanf( "%d" , &x );
			root = Delete(&root,x);
		}else if( strcmp(com,"insert") == 0 ){
			scanf("%d %d",&x,&y);
			root = insert(&root,x,y);
		}else if( strcmp(com ,"print") == 0 ){
			inorder(root);
			printf( "\n" );
			preorder(root);
			printf( "\n" );
		}
	}
	
	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 <string.h>
#include <stdlib.h>
#define NIL NULL

struct Node{
	int key;
	int priority;
	struct Node *r,*l,*p;
}Node;

struct Node *Delete(struct Node **t, int key);
struct Node *_delete(struct Node **t, int key);

void preorder( struct Node *u ){
	
	printf(" %d",u->key);
	if(u->l!=NIL){
		preorder(u->l);
	}
	if(u->r!=NIL){
		preorder(u->r);
	}
	return;
}

void inorder( struct Node *u ){
	
	if(u->l!=NIL){
		inorder(u->l);
	}
	printf(" %d",u->key);
	if(u->r!=NIL){
		inorder(u->r);
	}
	return;
	
}

int find( struct Node *u , int k ){
	while( u != NIL ){
		if( u->key == k ){
			return 1;
		}else if( k < u->key ){
			u = u->l;
		}else{
			u = u->r;
		}
	}
	return 0;
}

struct Node *rightRotate(struct Node *t){
    struct Node *s = t->l;
    t->l = s->r;
    s->r = t;
    return s;
}

struct Node *leftRotate(struct Node *t){
    struct Node *s = t->r;
    t->r = s->l;
    s->l = t;
    return s;
}

struct Node* node( int x , int y ){
	
	struct Node *new = malloc(sizeof(Node));
	new->key = x;
	new->priority = y;
	new->l = NIL;
	new->r = NIL;
	
	return new;
}

struct Node* insert(struct Node **t, int key, int priority){
	
	struct Node *new;
	if( *t == NIL ){
        return new = node(key, priority);
	}
	if( key == (*t)->key ){
        return *t;
	}

	if( key < (*t)->key ){
		(*t)->l = insert(&(*t)->l, key, priority);
		if ( (*t)->priority < (*t)->l->priority ){
            *t = rightRotate(*t);
		}
	}else{
		(*t)->r = insert(&(*t)->r, key, priority);
		if( (*t)->priority < (*t)->r->priority ){
            *t = leftRotate(*t);
		}
	}
	return *t;
}

struct Node *Delete(struct Node **t, int key){
	
	if ((*t) == NIL){
		return NIL;
	}
	if ( key < (*t)->key ){
		(*t)->l = Delete(&((*t)->l), key);
	}else if ( key > (*t)->key ){
		(*t)->r = Delete(&((*t)->r), key);
	}else{
        return _delete(t, key);
	}
    return *t;
}

struct Node *_delete(struct Node **t, int key){                
		if ((*t)->l == NIL && (*t)->r == NIL ){               
        	return NIL;
		}else if ( (*t)->l == NIL ){
        	*t = leftRotate(*t);
		}else if ((*t)->r == NIL){
        	*t = rightRotate(*t);
		}else{
			if ((*t)->l->priority > (*t)->r->priority ){
            	*t = rightRotate(*t);
			}
			else{
            	*t = leftRotate(*t);
			}
		}
    return Delete(t, key);
}

int main( void ){
	int n , i , x , y;
	char com[10];
	struct Node *root = NIL;
	
	scanf( "%d", &n );
	
	for( i=0;i<n;i++ ){
		
		scanf("%s",com );
		if( strcmp(com ,"find") == 0 ) {
			scanf( "%d",&x );
			if( find(root,x) ){
				printf( "yes\n" );
			}else{
				printf("no\n");
			}
		}else if( strcmp(com ,"delete") == 0 ){
			scanf( "%d" , &x );
			root = Delete(&root,x);
		}else if( strcmp(com,"insert") == 0 ){
			scanf("%d %d",&x,&y);
			root = insert(&root,x,y);
		}else if( strcmp(com ,"print") == 0 ){
			inorder(root);
			printf( "\n" );
			preorder(root);
			printf( "\n" );
		}
	}
	
	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	Node
	.bss
	.align 32
	.type	Node, @object
	.size	Node, 32
Node:
	.zero	32
	.section	.rodata
.LC0:
	.string	" %d"
	.text
	.globl	preorder
	.type	preorder, @function
preorder:
.LFB6:
	.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	.L2
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, %rdi
	call	preorder
.L2:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	.L5
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, %rdi
	call	preorder
	nop
.L5:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	preorder, .-preorder
	.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	.L7
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, %rdi
	call	inorder
.L7:
	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	.L10
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, %rdi
	call	inorder
	nop
.L10:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	inorder, .-inorder
	.globl	find
	.type	find, @function
find:
.LFB8:
	.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	.L12
.L16:
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -12(%rbp)
	jne	.L13
	movl	$1, %eax
	jmp	.L14
.L13:
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -12(%rbp)
	jge	.L15
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, -8(%rbp)
	jmp	.L12
.L15:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -8(%rbp)
.L12:
	cmpq	$0, -8(%rbp)
	jne	.L16
	movl	$0, %eax
.L14:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	find, .-find
	.globl	rightRotate
	.type	rightRotate, @function
rightRotate:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	-24(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	8(%rax), %rdx
	movq	-24(%rbp), %rax
	movq	%rdx, 16(%rax)
	movq	-8(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rdx, 8(%rax)
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	rightRotate, .-rightRotate
	.globl	leftRotate
	.type	leftRotate, @function
leftRotate:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	-24(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	16(%rax), %rdx
	movq	-24(%rbp), %rax
	movq	%rdx, 8(%rax)
	movq	-8(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rdx, 16(%rax)
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	leftRotate, .-leftRotate
	.globl	node
	.type	node, @function
node:
.LFB11:
	.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	$32, %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
.LFE11:
	.size	node, .-node
	.globl	insert
	.type	insert, @function
insert:
.LFB12:
	.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	.L24
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	node
	movq	%rax, -24(%rbp)
	movq	-24(%rbp), %rax
	jmp	.L25
.L24:
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	%eax, -44(%rbp)
	jne	.L26
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	jmp	.L25
.L26:
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	%eax, -44(%rbp)
	jge	.L27
	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	.L28
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	rightRotate
	movq	-40(%rbp), %rdx
	movq	%rax, (%rdx)
	jmp	.L28
.L27:
	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	.L28
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	leftRotate
	movq	-40(%rbp), %rdx
	movq	%rax, (%rdx)
.L28:
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
.L25:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	insert, .-insert
	.globl	Delete
	.type	Delete, @function
Delete:
.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	$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	.L30
	movl	$0, %eax
	jmp	.L31
.L30:
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	%eax, -28(%rbp)
	jge	.L32
	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	.L33
.L32:
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	%eax, -28(%rbp)
	jle	.L34
	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	.L33
.L34:
	movl	-28(%rbp), %edx
	movq	-24(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	_delete
	jmp	.L31
.L33:
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
.L31:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	Delete, .-Delete
	.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
	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	.L36
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	.L36
	movl	$0, %eax
	jmp	.L37
.L36:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	.L38
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	leftRotate
	movq	-8(%rbp), %rdx
	movq	%rax, (%rdx)
	jmp	.L39
.L38:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	.L40
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	rightRotate
	movq	-8(%rbp), %rdx
	movq	%rax, (%rdx)
	jmp	.L39
.L40:
	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	.L41
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	rightRotate
	movq	-8(%rbp), %rdx
	movq	%rax, (%rdx)
	jmp	.L39
.L41:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	leftRotate
	movq	-8(%rbp), %rdx
	movq	%rax, (%rdx)
.L39:
	movl	-12(%rbp), %edx
	movq	-8(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	Delete
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	_delete, .-_delete
	.section	.rodata
.LC1:
	.string	"%d"
.LC2:
	.string	"%s"
.LC3:
	.string	"find"
.LC4:
	.string	"yes"
.LC5:
	.string	"no"
.LC6:
	.string	"delete"
.LC7:
	.string	"insert"
.LC8:
	.string	"%d %d"
.LC9:
	.string	"print"
	.text
	.globl	main
	.type	main, @function
main:
.LFB15:
	.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, -32(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -36(%rbp)
	jmp	.L43
.L49:
	leaq	-18(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-18(%rbp), %rax
	leaq	.LC3(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L44
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %edx
	movq	-32(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	find
	testl	%eax, %eax
	je	.L45
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L46
.L45:
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L46
.L44:
	leaq	-18(%rbp), %rax
	leaq	.LC6(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L47
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %edx
	leaq	-32(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	Delete
	movq	%rax, -32(%rbp)
	jmp	.L46
.L47:
	leaq	-18(%rbp), %rax
	leaq	.LC7(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L48
	leaq	-40(%rbp), %rdx
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC8(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %edx
	movl	-44(%rbp), %ecx
	leaq	-32(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	insert
	movq	%rax, -32(%rbp)
	jmp	.L46
.L48:
	leaq	-18(%rbp), %rax
	leaq	.LC9(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L46
	movq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	inorder
	movl	$10, %edi
	call	putchar@PLT
	movq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	preorder
	movl	$10, %edi
	call	putchar@PLT
.L46:
	addl	$1, -36(%rbp)
.L43:
	movl	-48(%rbp), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L49
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L51
	call	__stack_chk_fail@PLT
.L51:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.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	Node
	.bss
	.align 32
	.type	Node, @object
	.size	Node, 32
Node:
	.zero	32
	.section	.rodata
.LC0:
	.string	" %d"
	.text
	.globl	preorder
	.type	preorder, @function
preorder:
.LFB6:
	.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	.L2
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, %rdi
	call	preorder
.L2:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	.L5
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, %rdi
	call	preorder
	nop
.L5:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	preorder, .-preorder
	.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	.L7
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, %rdi
	call	inorder
.L7:
	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	.L10
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, %rdi
	call	inorder
	nop
.L10:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	inorder, .-inorder
	.globl	find
	.type	find, @function
find:
.LFB8:
	.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	.L12
.L16:
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -12(%rbp)
	jne	.L13
	movl	$1, %eax
	jmp	.L14
.L13:
	movq	-8(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -12(%rbp)
	jge	.L15
	movq	-8(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, -8(%rbp)
	jmp	.L12
.L15:
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -8(%rbp)
.L12:
	cmpq	$0, -8(%rbp)
	jne	.L16
	movl	$0, %eax
.L14:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	find, .-find
	.globl	rightRotate
	.type	rightRotate, @function
rightRotate:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	-24(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	8(%rax), %rdx
	movq	-24(%rbp), %rax
	movq	%rdx, 16(%rax)
	movq	-8(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rdx, 8(%rax)
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	rightRotate, .-rightRotate
	.globl	leftRotate
	.type	leftRotate, @function
leftRotate:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	-24(%rbp), %rax
	movq	8(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	16(%rax), %rdx
	movq	-24(%rbp), %rax
	movq	%rdx, 8(%rax)
	movq	-8(%rbp), %rax
	movq	-24(%rbp), %rdx
	movq	%rdx, 16(%rax)
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	leftRotate, .-leftRotate
	.globl	node
	.type	node, @function
node:
.LFB11:
	.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	$32, %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
.LFE11:
	.size	node, .-node
	.globl	insert
	.type	insert, @function
insert:
.LFB12:
	.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	.L24
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	node
	movq	%rax, -24(%rbp)
	movq	-24(%rbp), %rax
	jmp	.L25
.L24:
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	%eax, -44(%rbp)
	jne	.L26
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	jmp	.L25
.L26:
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	%eax, -44(%rbp)
	jge	.L27
	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	.L28
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	rightRotate
	movq	-40(%rbp), %rdx
	movq	%rax, (%rdx)
	jmp	.L28
.L27:
	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	.L28
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	leftRotate
	movq	-40(%rbp), %rdx
	movq	%rax, (%rdx)
.L28:
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
.L25:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	insert, .-insert
	.globl	Delete
	.type	Delete, @function
Delete:
.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	$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	.L30
	movl	$0, %eax
	jmp	.L31
.L30:
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	%eax, -28(%rbp)
	jge	.L32
	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	.L33
.L32:
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	%eax, -28(%rbp)
	jle	.L34
	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	.L33
.L34:
	movl	-28(%rbp), %edx
	movq	-24(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	_delete
	jmp	.L31
.L33:
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
.L31:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	Delete, .-Delete
	.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
	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	.L36
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	.L36
	movl	$0, %eax
	jmp	.L37
.L36:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	.L38
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	leftRotate
	movq	-8(%rbp), %rdx
	movq	%rax, (%rdx)
	jmp	.L39
.L38:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	.L40
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	rightRotate
	movq	-8(%rbp), %rdx
	movq	%rax, (%rdx)
	jmp	.L39
.L40:
	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	.L41
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	rightRotate
	movq	-8(%rbp), %rdx
	movq	%rax, (%rdx)
	jmp	.L39
.L41:
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	leftRotate
	movq	-8(%rbp), %rdx
	movq	%rax, (%rdx)
.L39:
	movl	-12(%rbp), %edx
	movq	-8(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	Delete
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	_delete, .-_delete
	.section	.rodata
.LC1:
	.string	"%d"
.LC2:
	.string	"%s"
.LC3:
	.string	"find"
.LC4:
	.string	"yes"
.LC5:
	.string	"no"
.LC6:
	.string	"delete"
.LC7:
	.string	"insert"
.LC8:
	.string	"%d %d"
.LC9:
	.string	"print"
	.text
	.globl	main
	.type	main, @function
main:
.LFB15:
	.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, -32(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -36(%rbp)
	jmp	.L43
.L49:
	leaq	-18(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-18(%rbp), %rax
	leaq	.LC3(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L44
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %edx
	movq	-32(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	find
	testl	%eax, %eax
	je	.L45
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L46
.L45:
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L46
.L44:
	leaq	-18(%rbp), %rax
	leaq	.LC6(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L47
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %edx
	leaq	-32(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	Delete
	movq	%rax, -32(%rbp)
	jmp	.L46
.L47:
	leaq	-18(%rbp), %rax
	leaq	.LC7(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L48
	leaq	-40(%rbp), %rdx
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC8(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %edx
	movl	-44(%rbp), %ecx
	leaq	-32(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	insert
	movq	%rax, -32(%rbp)
	jmp	.L46
.L48:
	leaq	-18(%rbp), %rax
	leaq	.LC9(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L46
	movq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	inorder
	movl	$10, %edi
	call	putchar@PLT
	movq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	preorder
	movl	$10, %edi
	call	putchar@PLT
.L46:
	addl	$1, -36(%rbp)
.L43:
	movl	-48(%rbp), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L49
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L51
	call	__stack_chk_fail@PLT
.L51:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.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:
