// File: /workspace/github_cpp_makefile_star2_O3/CMU-SAFARI[P]Register-Interval/./src/implementation/RegisterIntervalCreation.cpp
// Function: RegisterIntervalCreationPass::traverse(basicBlock*, int)
void RegisterIntervalCreationPass::traverse(basicBlock* BB, int N){
	set<string> temp_list;
	vector<basicBlock*> V;
	auto register_list = BB->get_input_list();

	basicBlock* BB1;
	registerInterval* temp;
        string new_name, old_name;
        
        //set<string> register_list;//register_list is a list that will be updated after processing each instruction and the new registers will be added to it
        //register_list.clear();
        set<string> temporary_register_list;//temporary_register_list contains is like register_list but it can have more than N registers and it is checked at each iteration
        temporary_register_list.clear();
        
        string code = BB->get_code();//code is the string of instruction sequence
        
	int found1 = 0; //points to the beginning of the instruction string
	int found2 = code.find(";", found1, 1); //points to the end of instructions string
	while (found2 != string::npos){//This loop continues until all instructions of the basic block are processed
		
                /* this loop updates register_list for the current instruction (in other words it finds the register operands of the instruction)*/
		for (int i = found1; i < found2; i++){
			if (code[i] == 'R'){
				string str = "";
				if (code[i + 1]>47 && code[i + 1] < 58){
					str.push_back('R');
					str.push_back(code[i + 1]);
					if (code[i + 2]>47 && code[i + 2] < 58){
						str.push_back(code[i + 2]);
					}
					temporary_register_list.insert(str);
				}
			}
		}

		/*after cheching the size of temporary_register_list, we decide to split the basic block or not */
		if (temporary_register_list.size() > N){
                        /*At this point the basic block will be splited and the current instruction will reside in the second baisc basicBlock*/
			string code1, code2;//code1 and code2 contain the instructions of two basic blocks after splitting
                        code1.append(code, 0, found1); 
			code2.append(code, found1 + 1, code.size() - found1);


			//introducing a new basic block BB1:
			BB1 = new basicBlock();
			basic_blocks.push_back(BB1);
			
			old_name = BB->get_name();
			string new_name = old_name + std::to_string(BB->getID() + 1);
			BB1->set_name(new_name);//sets the name of the new basic blcok
			
                        int found = 0;
			found = code2.find(old_name, found+1);
			while(found != string::npos){//in thils loop finds points of code that uses the old name and replaces with the new name
				code2.replace(found, old_name.size(), new_name);
				
				found = code2.find(old_name, found+1);
			}
			BB1->set_code(code2);

			/*At this point the register set of the new basic block will be set*/
			found = 0;
			found = code2.find("R", found + 1, 1);
			while (found != string::npos){
				string str = "R";
				if (code2[found + 1] > 47 && code2[found + 1] < 58){
					for (int j = found + 1; code2[j] >47 && code2[j] < 58; j++){
						str = str + code2[j];
					}
					BB1->add_register(str);
				}

				found = code2.find("R", found + 1, 1);
			}
                        
                        //The BB will be splitted and its code and register list are updated
			BB->set_code(code1);
			BB->set_output_list(register_list);

			/*setting successors of old and new basic blocks*/
			BB1->set_successors(BB->get_successors()); //the successors of the new basic block is just like the original basic block
                        vector<basicBlock*> S;
                        S.clear();
                        S.push_back(BB1);
                        BB->set_successors(S); //the only successor of the old basic block is the new one

			/*setting predecessors of new and old basic blocks*/
			BB1->add_predecessor(BB); //the only predecessor of the new basic block is the old one (also the predecessors of the old basic block won't change)
			

			auto temp = new registerInterval();
			RegisterIntervals.push_back(temp);
			BB1->set_registerInterval(temp);
			BB1->clear_input_list();
			WS.push(BB1);//the new basic block has been assigned to a new register-interval

			return;
		}
		else{
			register_list = temporary_register_list;
			BB->set_output_list(register_list);
		}

		register_list = temporary_register_list;
		found1 = found2 + 1;
		found2 = code.find(";", found1, 1);
	}

	return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2d8, %rsp            # imm = 0x2D8
movl %esi, %ebx
movq %rdi, %r14
leaq -0x2f8(%rbp), %rax
movl $0x0, (%rax)
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
leaq 0x90(%rdi), %rsi
leaq -0x270(%rbp), %rdi
callq 0x905a
leaq -0x80(%rbp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq -0x60(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq -0x1d8(%rbp), %rcx
movl $0x0, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq -0x1e0(%rbp), %rdi
callq 0x95a8
leaq -0x40(%rbp), %rax
movq %rax, -0x10(%rax)
movq 0x28(%r14), %rsi
movq %r14, -0xb8(%rbp)
movq 0x30(%r14), %rdx
addq %rsi, %rdx
leaq -0x50(%rbp), %rdi
callq 0x975c
leaq 0x7327(%rip), %rsi      # 0xb12d
xorl %r13d, %r13d
leaq -0x50(%rbp), %rdi
movl $0x1, %ecx
xorl %edx, %edx
callq 0x2360
movq %rax, %rcx
cmpl $-0x1, %ecx
je 0x4715
movslq %ebx, %rax
movq %rax, -0x160(%rbp)
movq -0xb8(%rbp), %rax
addq $0xc0, %rax
movq %rax, -0x128(%rbp)
leaq 0x726c(%rip), %r15      # 0xb0b6
leaq -0x120(%rbp), %r12
movq %r13, -0x130(%rbp)
movq %rcx, -0x138(%rbp)
cmpl %ecx, %r13d
jge 0x3f29
movslq -0x130(%rbp), %r14
movslq -0x138(%rbp), %rbx
movq -0x50(%rbp), %rax
cmpb $0x52, (%rax,%r14)
jne 0x3f1a
leaq -0x110(%rbp), %rax
movq %rax, -0x120(%rbp)
movq %r12, %rdi
movq %r15, %rsi
movq %r15, %rdx
callq 0xaa48
leaq 0x1(%r14), %r13
movq -0x50(%rbp), %rax
movb 0x1(%rax,%r14), %al
addb $-0x30, %al
cmpb $0x9, %al
ja 0x3efd
movq %r12, %rdi
movl $0x52, %esi
callq 0x21a0
movq -0x50(%rbp), %rax
movsbl (%rax,%r13), %esi
movq %r12, %rdi
callq 0x21a0
movq -0x50(%rbp), %rax
movb 0x2(%rax,%r14), %al
leal -0x30(%rax), %ecx
cmpb $0x9, %cl
ja 0x3eee
movsbl %al, %esi
movq %r12, %rdi
callq 0x21a0
leaq -0x1e0(%rbp), %rdi
movq %r12, %rsi
callq 0x9d96
movq -0x120(%rbp), %rdi
leaq -0x110(%rbp), %rax
cmpq %rax, %rdi
je 0x3f15
callq 0x21c0
movq %r13, %r14
jmp 0x3f20
incq %r14
movq %r14, %r13
cmpq %rbx, %r13
jne 0x3e76
movq -0x160(%rbp), %rax
cmpq %rax, -0x1b8(%rbp)
leaq -0x270(%rbp), %r13
ja 0x3fbf
movq %r13, %rdi
leaq -0x1e0(%rbp), %rsi
callq 0x9274
movq -0x138(%rbp), %rbx
leaq -0x2d0(%rbp), %rdi
movq %r13, %rsi
callq 0x905a
movq -0x128(%rbp), %rdi
leaq -0x2d0(%rbp), %r14
movq %r14, %rsi
callq 0x9274
movq %r14, %rdi
callq 0x8ff0
movq %r13, %rdi
leaq -0x1e0(%rbp), %rsi
callq 0x9274
leal 0x1(%rbx), %r13d
movslq %r13d, %rdx
movl $0x1, %ecx
leaq -0x50(%rbp), %rdi
leaq 0x7184(%rip), %rsi      # 0xb12d
callq 0x2360
movq %rax, %rcx
cmpl $-0x1, %ecx
jne 0x3e51
jmp 0x4715
leaq -0x120(%rbp), %rdi
leaq -0x110(%rbp), %rax
movq %rax, (%rdi)
xorl %eax, %eax
movq %rax, 0x8(%rdi)
movb %al, 0x10(%rdi)
leaq -0xa0(%rbp), %r13
movq %r13, -0x10(%r13)
movq %rax, -0x8(%r13)
movb %al, (%r13)
movq -0x130(%rbp), %r15
movslq %r15d, %rbx
leaq -0x50(%rbp), %rsi
xorl %edx, %edx
movq %rbx, %rcx
callq 0x22a0
movq -0xb8(%rbp), %r14
incl %r15d
movslq %r15d, %rdx
leaq -0x50(%rbp), %rsi
movq 0x8(%rsi), %rcx
subq %rbx, %rcx
leaq -0xb0(%rbp), %rdi
callq 0x22a0
movl $0xf8, %edi
callq 0x21e0
movq %rax, %rbx
movq %rax, %rdi
callq 0x2b18
movq %rbx, -0x30(%rbp)
movq 0xb1d0(%rip), %rsi      # 0xf218
cmpq 0xb1d1(%rip), %rsi      # 0xf220
je 0x405e
movq %rbx, (%rsi)
addq $0x8, 0xb1bc(%rip)      # 0xf218
jmp 0x406e
leaq 0xb1ab(%rip), %rdi      # 0xf210
leaq -0x30(%rbp), %rdx
callq 0x9efe
leaq -0xf0(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
addq %rsi, %rdx
leaq -0x100(%rbp), %rdi
callq 0x975c
leaq -0x70(%rbp), %rdi
leaq -0x100(%rbp), %rbx
movq %rbx, %rsi
callq 0x2270
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x40b0
callq 0x21c0
movl (%r14), %r15d
incl %r15d
movl %r15d, %ebx
negl %ebx
cmovsl %r15d, %ebx
movl $0x1, %r14d
cmpl $0xa, %ebx
jb 0x4113
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebx, %ecx
cmpl $0x63, %ecx
jbe 0x410a
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x4110
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x4113
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x40d7
addl $-0x3, %r14d
jmp 0x4113
addl $-0x2, %r14d
jmp 0x4113
decl %r14d
shrl $0x1f, %r15d
leal (%r14,%r15), %esi
leaq -0xd0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0xe0(%rbp), %rdi
movl $0x2d, %edx
callq 0x2250
movl %r15d, %edi
leaq -0xe0(%rbp), %r15
addq (%r15), %rdi
movl %r14d, %esi
movl %ebx, %edx
callq 0x96e9
movq -0x70(%rbp), %rcx
movq -0x68(%rbp), %r8
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2220
leaq -0xf0(%rbp), %rsi
movq %rsi, -0x100(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq -0xd0(%rbp), %r8
je 0x4199
movq %rdx, -0x100(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xf0(%rbp)
jmp 0x419f
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0xf8(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0xe0(%rbp), %rdi
cmpq %r8, %rdi
je 0x41ca
callq 0x21c0
movq -0x30(%rbp), %rbx
leaq -0x230(%rbp), %r14
movq %r14, -0x10(%r14)
movq -0x100(%rbp), %rsi
movq -0xf8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x240(%rbp), %rdi
callq 0x975c
addq $0x8, %rbx
leaq -0x240(%rbp), %rsi
movq %rbx, %rdi
callq 0x2120
movq -0x240(%rbp), %rdi
cmpq %r14, %rdi
je 0x421a
callq 0x21c0
movabsq $-0x100000000, %r15     # imm = 0xFFFFFFFF00000000
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rcx
leaq -0xb0(%rbp), %rdi
movl $0x1, %edx
callq 0x2360
movq %rax, %rbx
shlq $0x20, %rbx
cmpq %r15, %rbx
je 0x42a1
movabsq $0x100000000, %r12      # imm = 0x100000000
leaq -0xb0(%rbp), %r14
movq %rbx, %rsi
sarq $0x20, %rsi
movq -0x68(%rbp), %rdx
movq -0x100(%rbp), %rcx
movq -0xf8(%rbp), %r8
movq %r14, %rdi
callq 0x2220
addq %r12, %rbx
sarq $0x20, %rbx
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rcx
movq %r14, %rdi
movq %rbx, %rdx
callq 0x2360
movq %rax, %rbx
shlq $0x20, %rbx
cmpq %r15, %rbx
jne 0x425a
movq -0x30(%rbp), %rbx
leaq -0x210(%rbp), %r14
movq %r14, -0x10(%r14)
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x220(%rbp), %rdi
callq 0x975c
leaq -0xd0(%rbp), %r15
leaq -0x220(%rbp), %rsi
movq %rbx, %rdi
callq 0x2e24
movq -0x220(%rbp), %rdi
cmpq %r14, %rdi
je 0x42f4
callq 0x21c0
leaq 0x6d25(%rip), %rsi      # 0xb020
leaq -0xb0(%rbp), %rdi
movl $0x1, %edx
movl $0x1, %ecx
callq 0x2360
movq %rax, %rbx
cmpl $-0x1, %ebx
je 0x448f
leaq -0x148(%rbp), %r14
leaq 0x6cf5(%rip), %r12      # 0xb020
leaq -0x158(%rbp), %r13
movq %r15, -0xe0(%rbp)
leaq -0xe0(%rbp), %rdi
movq %r12, %rsi
leaq 0x6cd7(%rip), %rdx      # 0xb021
callq 0xaa48
shlq $0x20, %rbx
movabsq $0x100000000, %rax      # imm = 0x100000000
addq %rax, %rbx
sarq $0x20, %rbx
movq -0xb0(%rbp), %rax
movb (%rax,%rbx), %r12b
leal -0x30(%r12), %eax
cmpb $0x9, %al
ja 0x4454
leaq 0x1(%rbx), %r15
movq %r14, -0x158(%rbp)
movq -0xe0(%rbp), %rsi
movq -0xd8(%rbp), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x975c
movq -0x150(%rbp), %rsi
movsbl %r12b, %r8d
movl $0x1, %ecx
movq %r13, %rdi
xorl %edx, %edx
callq 0x2390
leaq -0xe0(%rbp), %rdi
movq %r13, %rsi
callq 0x2270
movq -0x158(%rbp), %rdi
cmpq %r14, %rdi
je 0x43da
callq 0x21c0
movq -0xb0(%rbp), %rax
movb (%rax,%r15), %r12b
leal -0x30(%r12), %eax
incq %r15
cmpb $0xa, %al
jb 0x4380
movq -0x30(%rbp), %r15
leaq -0x170(%rbp), %rax
movq %rax, -0x180(%rbp)
movq -0xe0(%rbp), %rsi
movq -0xd8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x180(%rbp), %r12
movq %r12, %rdi
callq 0x975c
addq $0xc0, %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0x9d96
movq -0x180(%rbp), %rdi
leaq -0x170(%rbp), %rax
cmpq %rax, %rdi
leaq -0xd0(%rbp), %r15
je 0x4454
callq 0x21c0
movl $0x1, %ecx
leaq -0xb0(%rbp), %rdi
leaq 0x6bb9(%rip), %r12      # 0xb020
movq %r12, %rsi
movq %rbx, %rdx
callq 0x2360
movq %rax, %rbx
movq -0xe0(%rbp), %rdi
cmpq %r15, %rdi
je 0x4486
callq 0x21c0
cmpl $-0x1, %ebx
jne 0x4332
leaq -0x1f0(%rbp), %r14
movq %r14, -0x10(%r14)
movq -0x120(%rbp), %rsi
movq -0x118(%rbp), %rdx
addq %rsi, %rdx
leaq -0x200(%rbp), %rdi
leaq -0xa0(%rbp), %r13
callq 0x975c
leaq -0x200(%rbp), %rsi
movq -0xb8(%rbp), %rdi
callq 0x2e24
movq -0x200(%rbp), %rdi
cmpq %r14, %rdi
je 0x44e2
callq 0x21c0
leaq -0x2a0(%rbp), %rdi
leaq -0x270(%rbp), %rsi
callq 0x905a
leaq -0x2a0(%rbp), %rsi
movq -0x128(%rbp), %rdi
callq 0x9274
leaq -0x2a0(%rbp), %rdi
callq 0x8ff0
movq -0x30(%rbp), %r14
movq -0xb8(%rbp), %rax
leaq 0x78(%rax), %rbx
leaq -0x1b0(%rbp), %rdi
movq %rbx, %rsi
callq 0x8ecc
addq $0x78, %r14
leaq -0x1b0(%rbp), %rsi
movq %r14, %rdi
callq 0x8de6
movq -0x1b0(%rbp), %rdi
testq %rdi, %rdi
movq -0xb8(%rbp), %r14
je 0x455d
callq 0x21c0
xorps %xmm0, %xmm0
leaq -0xe0(%rbp), %rdi
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
leaq -0x30(%rbp), %rdx
xorl %esi, %esi
callq 0x9efe
leaq -0x198(%rbp), %rdi
leaq -0xe0(%rbp), %rsi
callq 0x8ecc
leaq -0x198(%rbp), %rsi
movq %rbx, %rdi
callq 0x8de6
movq -0x198(%rbp), %rdi
testq %rdi, %rdi
je 0x45b0
callq 0x21c0
movq -0x30(%rbp), %rdi
movq %r14, %rsi
callq 0x2eae
movl $0xc0, %edi
callq 0x21e0
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
movl %ecx, 0x10(%rax)
movq %rcx, 0x18(%rax)
movl %ecx, 0x20(%rax)
movq %rcx, 0x28(%rax)
leaq 0x48(%rax), %rdx
movq %rdx, 0x38(%rax)
movq %rcx, 0x40(%rax)
movb $0x0, 0x48(%rax)
movq %rax, %rdx
addq $0x68, %rdx
movl %ecx, 0x68(%rax)
movq %rcx, 0x70(%rax)
movq %rdx, 0x78(%rax)
movq %rdx, 0x80(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x88(%rax)
movups %xmm0, 0x98(%rax)
movups %xmm0, 0xa8(%rax)
movq %rcx, 0xb8(%rax)
movl 0xabdc(%rip), %edx      # 0xf204
leal 0x1(%rdx), %esi
movl %esi, 0xabd3(%rip)      # 0xf204
movl %edx, (%rax)
movl %ecx, 0x58(%rax)
movq %rax, -0x158(%rbp)
movq 0xabec(%rip), %rsi      # 0xf230
cmpq 0xabed(%rip), %rsi      # 0xf238
je 0x465a
movq %rax, (%rsi)
addq $0x8, 0xabd8(%rip)      # 0xf230
jmp 0x466d
leaq 0xabc7(%rip), %rdi      # 0xf228
leaq -0x158(%rbp), %rdx
callq 0x9c5c
movq -0x30(%rbp), %rdi
movq -0x158(%rbp), %rax
movq %rax, 0xf0(%rdi)
addq $0x90, %rdi
callq 0x95a8
movq 0xabde(%rip), %rax      # 0xf270
movq 0xabe7(%rip), %rcx      # 0xf280
addq $-0x8, %rcx
cmpq %rcx, %rax
je 0x46b3
movq -0x30(%rbp), %rcx
movq %rcx, (%rax)
addq $0x8, 0xabbf(%rip)      # 0xf270
jmp 0x46c3
leaq 0xab86(%rip), %rdi      # 0xf240
leaq -0x30(%rbp), %rsi
callq 0xa1b2
movq -0xe0(%rbp), %rdi
testq %rdi, %rdi
je 0x46d4
callq 0x21c0
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0x46ec
callq 0x21c0
movq -0xb0(%rbp), %rdi
cmpq %r13, %rdi
je 0x46fd
callq 0x21c0
movq -0x120(%rbp), %rdi
leaq -0x110(%rbp), %rax
cmpq %rax, %rdi
je 0x4715
callq 0x21c0
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x4727
callq 0x21c0
leaq -0x1e0(%rbp), %rdi
callq 0x8ff0
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
leaq -0x80(%rbp), %rbx
je 0x4749
callq 0x21c0
movq -0x90(%rbp), %rdi
cmpq %rbx, %rdi
je 0x475a
callq 0x21c0
leaq -0x270(%rbp), %rdi
callq 0x8ff0
leaq -0x300(%rbp), %rdi
callq 0x8ff0
addq $0x2d8, %rsp            # imm = 0x2D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x198(%rbp), %rdi
testq %rdi, %rdi
je 0x482c
callq 0x21c0
jmp 0x482c
movq %rax, %rbx
movq -0x1b0(%rbp), %rdi
jmp 0x4833
movq %rax, %rbx
leaq -0x2a0(%rbp), %rdi
callq 0x8ff0
jmp 0x48a2
movq %rax, %rbx
movq -0x200(%rbp), %rdi
cmpq %r14, %rdi
jne 0x4838
jmp 0x488a
movq %rax, %rbx
movq -0x220(%rbp), %rdi
jmp 0x47ee
movq %rax, %rbx
movq -0x240(%rbp), %rdi
cmpq %r14, %rdi
je 0x48a2
callq 0x21c0
jmp 0x48a2
jmp 0x489f
movq %rax, %rbx
movq -0xe0(%rbp), %rdi
leaq -0xd0(%rbp), %rax
cmpq %rax, %rdi
je 0x4842
callq 0x21c0
jmp 0x4842
jmp 0x483f
jmp 0x483f
jmp 0x4829
movq %rax, %rbx
movq -0xe0(%rbp), %rdi
testq %rdi, %rdi
je 0x488a
callq 0x21c0
jmp 0x488a
movq %rax, %rbx
leaq -0x80(%rbp), %r14
leaq -0x60(%rbp), %r15
leaq -0x40(%rbp), %r12
jmp 0x4925
movq %rax, %rbx
leaq -0x80(%rbp), %r14
leaq -0x60(%rbp), %r15
jmp 0x498a
movq %rax, %rbx
jmp 0x49c1
jmp 0x489f
jmp 0x48df
movq %rax, %rbx
movq -0x180(%rbp), %rdi
leaq -0x170(%rbp), %rax
cmpq %rax, %rdi
jne 0x48d8
jmp 0x48e2
movq %rax, %rbx
leaq -0x80(%rbp), %r14
leaq -0x60(%rbp), %r15
leaq -0x40(%rbp), %r12
leaq -0xa0(%rbp), %r13
jmp 0x490d
movq %rax, %rbx
leaq -0x80(%rbp), %r14
leaq -0x60(%rbp), %r15
leaq -0x40(%rbp), %r12
jmp 0x490d
movq %rax, %rbx
leaq -0x2d0(%rbp), %rdi
callq 0x8ff0
jmp 0x4970
jmp 0x4950
movq %rax, %rbx
movq -0x158(%rbp), %rdi
cmpq %r14, %rdi
je 0x48e2
callq 0x21c0
jmp 0x48e2
movq %rax, %rbx
leaq -0x80(%rbp), %r14
leaq -0x60(%rbp), %r15
leaq -0x40(%rbp), %r12
leaq -0xa0(%rbp), %r13
movq -0xe0(%rbp), %rdi
leaq -0xd0(%rbp), %rax
cmpq %rax, %rdi
je 0x490d
callq 0x21c0
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0x4925
callq 0x21c0
movq -0xb0(%rbp), %rdi
cmpq %r13, %rdi
je 0x4936
callq 0x21c0
movq -0x120(%rbp), %rdi
leaq -0x110(%rbp), %rax
cmpq %rax, %rdi
je 0x497c
callq 0x21c0
jmp 0x497c
movq %rax, %rbx
jmp 0x4970
movq %rax, %rbx
movq -0x120(%rbp), %rdi
leaq -0x110(%rbp), %rax
cmpq %rax, %rdi
je 0x4970
callq 0x21c0
leaq -0x80(%rbp), %r14
leaq -0x60(%rbp), %r15
leaq -0x40(%rbp), %r12
movq -0x50(%rbp), %rdi
cmpq %r12, %rdi
je 0x498a
callq 0x21c0
leaq -0x1e0(%rbp), %rdi
callq 0x8ff0
movq -0x70(%rbp), %rdi
cmpq %r15, %rdi
je 0x49a4
callq 0x21c0
movq -0x90(%rbp), %rdi
cmpq %r14, %rdi
je 0x49b5
callq 0x21c0
leaq -0x270(%rbp), %rdi
callq 0x8ff0
leaq -0x300(%rbp), %rdi
callq 0x8ff0
movq %rbx, %rdi
callq 0x2370
nop