// File: /workspace/github_cpp_makefile_star2_O1/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, %r15d
movq %rdi, %r14
leaq -0x2f0(%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 -0x268(%rbp), %rdi
callq 0x8fd0
leaq -0x120(%rbp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq -0x90(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq -0x1d0(%rbp), %rcx
movl $0x0, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq -0x1d8(%rbp), %rdi
callq 0x9512
leaq -0x70(%rbp), %rax
movq %rax, -0x10(%rax)
movq 0x28(%r14), %rsi
movq %r14, %rbx
movq 0x30(%r14), %rdx
addq %rsi, %rdx
leaq -0x80(%rbp), %rdi
callq 0x96ba
leaq 0x7348(%rip), %rsi      # 0xb12d
xorl %r13d, %r13d
leaq -0x80(%rbp), %rdi
movl $0x1, %ecx
xorl %edx, %edx
callq 0x2360
movq %rax, %rcx
cmpl $-0x1, %ecx
je 0x46f1
movslq %r15d, %rax
movq %rax, -0x158(%rbp)
leaq 0xc0(%rbx), %rax
movq %rax, -0x108(%rbp)
leaq 0x7293(%rip), %r15      # 0xb0b6
leaq -0x100(%rbp), %r12
movq %rbx, -0x60(%rbp)
movq %r13, -0x110(%rbp)
movq %rcx, -0x58(%rbp)
cmpl %ecx, %r13d
jge 0x3ef5
movslq -0x110(%rbp), %r13
movslq -0x58(%rbp), %r14
movq -0x80(%rbp), %rax
cmpb $0x52, (%rax,%r13)
jne 0x3ee9
leaq -0xf0(%rbp), %rax
movq %rax, -0x100(%rbp)
movq %r12, %rdi
movq %r15, %rsi
movq %r15, %rdx
callq 0xa9c0
movq -0x80(%rbp), %rax
movb 0x1(%rax,%r13), %al
addb $-0x30, %al
cmpb $0x9, %al
ja 0x3ed1
movq %r12, %rdi
movl $0x52, %esi
callq 0x21a0
movq -0x80(%rbp), %rax
movsbl 0x1(%rax,%r13), %esi
movq %r12, %rdi
callq 0x21a0
movq -0x80(%rbp), %rax
movb 0x2(%rax,%r13), %al
leal -0x30(%rax), %ecx
cmpb $0x9, %cl
ja 0x3ec2
movsbl %al, %esi
movq %r12, %rdi
callq 0x21a0
leaq -0x1d8(%rbp), %rdi
movq %r12, %rsi
callq 0x9cf0
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0x3ee9
callq 0x21c0
incq %r13
cmpq %r13, %r14
jne 0x3e4d
movq -0x158(%rbp), %rax
cmpq %rax, -0x1b0(%rbp)
ja 0x3f8c
leaq -0x268(%rbp), %r13
movq %r13, %rdi
leaq -0x1d8(%rbp), %rsi
callq 0x91ea
leaq -0x2c8(%rbp), %rdi
movq %r13, %rsi
callq 0x8fd0
movq -0x108(%rbp), %rdi
leaq -0x2c8(%rbp), %r14
movq %r14, %rsi
callq 0x91ea
movq %r14, %rdi
callq 0x8f66
movq %r13, %rdi
leaq -0x1d8(%rbp), %rsi
callq 0x91ea
movq -0x58(%rbp), %rax
leal 0x1(%rax), %r13d
movslq %r13d, %rdx
movl $0x1, %ecx
leaq -0x80(%rbp), %rdi
leaq 0x71b7(%rip), %rsi      # 0xb12d
callq 0x2360
movq %rax, %rcx
cmpl $-0x1, %ecx
jne 0x3e2e
jmp 0x46f1
leaq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
movq %rax, (%rdi)
xorl %eax, %eax
movq %rax, 0x8(%rdi)
movb %al, 0x10(%rdi)
leaq -0xd0(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
movq -0x110(%rbp), %r15
movslq %r15d, %rbx
leaq -0x80(%rbp), %rsi
xorl %edx, %edx
movq %rbx, %rcx
callq 0x22a0
movq -0x60(%rbp), %r14
incl %r15d
movslq %r15d, %rdx
leaq -0x80(%rbp), %rsi
movq 0x8(%rsi), %rcx
subq %rbx, %rcx
leaq -0xe0(%rbp), %rdi
callq 0x22a0
movl $0xf8, %edi
callq 0x21e0
movq %rax, %rbx
movq %rax, %rdi
callq 0x2b3a
movq %rbx, -0x30(%rbp)
movq 0xb208(%rip), %rsi      # 0xf218
cmpq 0xb209(%rip), %rsi      # 0xf220
je 0x4026
movq %rbx, (%rsi)
addq $0x8, 0xb1f4(%rip)      # 0xf218
jmp 0x4036
leaq 0xb1e3(%rip), %rdi      # 0xf210
leaq -0x30(%rbp), %rdx
callq 0x9e62
leaq -0xb0(%rbp), %r12
movq %r12, -0x10(%r12)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
addq %rsi, %rdx
leaq -0xc0(%rbp), %rdi
callq 0x96ba
leaq -0xa0(%rbp), %rdi
leaq -0xc0(%rbp), %rbx
movq %rbx, %rsi
callq 0x2270
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x407c
callq 0x21c0
movl (%r14), %r15d
incl %r15d
movl %r15d, %ebx
negl %ebx
cmovsl %r15d, %ebx
movl $0x1, %r14d
cmpl $0xa, %ebx
jb 0x40df
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebx, %ecx
cmpl $0x63, %ecx
jbe 0x40d6
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x40dc
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x40df
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x40a3
addl $-0x3, %r14d
jmp 0x40df
addl $-0x2, %r14d
jmp 0x40df
decl %r14d
shrl $0x1f, %r15d
leal (%r14,%r15), %esi
leaq -0x40(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0x50(%rbp), %rdi
movl $0x2d, %edx
callq 0x2250
movl %r15d, %edi
leaq -0x50(%rbp), %r15
addq (%r15), %rdi
movl %r14d, %esi
movl %ebx, %edx
callq 0x9647
movq -0xa0(%rbp), %rcx
movq -0x98(%rbp), %r8
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2220
movq %r12, -0xc0(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4154
movq %rdx, -0xc0(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xb0(%rbp)
jmp 0x415c
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, -0xb8(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x4188
callq 0x21c0
movq -0x30(%rbp), %rbx
leaq -0x228(%rbp), %r14
movq %r14, -0x10(%r14)
movq -0xc0(%rbp), %rsi
movq -0xb8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x238(%rbp), %rdi
callq 0x96ba
addq $0x8, %rbx
leaq -0x238(%rbp), %rsi
movq %rbx, %rdi
callq 0x2120
movq -0x238(%rbp), %rdi
cmpq %r14, %rdi
je 0x41d8
callq 0x21c0
movabsq $-0x100000000, %r15     # imm = 0xFFFFFFFF00000000
movq -0xa0(%rbp), %rsi
movq -0x98(%rbp), %rcx
leaq -0xe0(%rbp), %rdi
movl $0x1, %edx
callq 0x2360
movq %rax, %rbx
shlq $0x20, %rbx
cmpq %r15, %rbx
je 0x426e
leaq -0xe0(%rbp), %r14
movabsq $0x100000000, %r12      # imm = 0x100000000
movq %rbx, %rsi
sarq $0x20, %rsi
movq -0x98(%rbp), %rdx
movq -0xc0(%rbp), %rcx
movq -0xb8(%rbp), %r8
movq %r14, %rdi
callq 0x2220
addq %r12, %rbx
sarq $0x20, %rbx
movq -0xa0(%rbp), %rsi
movq -0x98(%rbp), %rcx
movq %r14, %rdi
movq %rbx, %rdx
callq 0x2360
movq %rax, %rbx
shlq $0x20, %rbx
cmpq %r15, %rbx
jne 0x421e
movq -0x30(%rbp), %rbx
leaq -0x208(%rbp), %r14
movq %r14, -0x10(%r14)
movq -0xe0(%rbp), %rsi
movq -0xd8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x218(%rbp), %rdi
callq 0x96ba
leaq -0x218(%rbp), %rsi
movq %rbx, %rdi
callq 0x2e46
leaq -0x40(%rbp), %r12
movq -0x218(%rbp), %rdi
cmpq %r14, %rdi
je 0x42be
callq 0x21c0
leaq 0x6d5b(%rip), %rsi      # 0xb020
leaq -0xe0(%rbp), %rdi
movl $0x1, %edx
movl $0x1, %ecx
callq 0x2360
movq %rax, %r14
cmpl $-0x1, %r14d
je 0x4457
leaq -0x140(%rbp), %r15
leaq -0x150(%rbp), %rbx
leaq -0x178(%rbp), %r13
movq %r12, -0x50(%rbp)
leaq -0x50(%rbp), %rdi
leaq 0x6d14(%rip), %rsi      # 0xb020
leaq 0x6d0e(%rip), %rdx      # 0xb021
callq 0xa9c0
movslq %r14d, %r14
movq -0xe0(%rbp), %rax
movb 0x1(%rax,%r14), %al
incq %r14
addb $-0x30, %al
cmpb $0x9, %al
ja 0x4421
movq %r14, -0x58(%rbp)
movslq %r14d, %rcx
movq -0xe0(%rbp), %rax
movb (%rax,%rcx), %dl
addb $-0x30, %dl
cmpb $0x9, %dl
ja 0x43ca
addq %rcx, %rax
movslq -0x58(%rbp), %r12
incq %r12
movq %r13, %r14
movb (%rax), %r13b
movq %r15, -0x150(%rbp)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x96ba
movq -0x148(%rbp), %rsi
movsbl %r13b, %r8d
movl $0x1, %ecx
movq %rbx, %rdi
xorl %edx, %edx
callq 0x2390
leaq -0x50(%rbp), %rdi
movq %rbx, %rsi
callq 0x2270
movq -0x150(%rbp), %rdi
cmpq %r15, %rdi
movq %r14, %r13
je 0x43b1
callq 0x21c0
movq -0xe0(%rbp), %rax
movb (%rax,%r12), %cl
addq %r12, %rax
addb $-0x30, %cl
incq %r12
cmpb $0xa, %cl
jb 0x4357
movq -0x30(%rbp), %r12
leaq -0x168(%rbp), %rax
movq %rax, -0x178(%rbp)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x96ba
addq $0xc0, %r12
movq %r12, %rdi
movq %r13, %rsi
callq 0x9cf0
movq -0x58(%rbp), %r14
movq -0x178(%rbp), %rdi
leaq -0x168(%rbp), %rax
cmpq %rax, %rdi
leaq -0x40(%rbp), %r12
je 0x4421
callq 0x21c0
movl $0x1, %ecx
leaq -0xe0(%rbp), %rdi
leaq 0x6bec(%rip), %rsi      # 0xb020
movq %r14, %rdx
callq 0x2360
movq %rax, %r14
movq -0x50(%rbp), %rdi
cmpq %r12, %rdi
je 0x444d
callq 0x21c0
cmpl $-0x1, %r14d
jne 0x42fd
leaq -0x1e8(%rbp), %r14
movq %r14, -0x10(%r14)
movq -0x100(%rbp), %rsi
movq -0xf8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x1f8(%rbp), %rdi
callq 0x96ba
leaq -0x1f8(%rbp), %rsi
movq -0x60(%rbp), %rdi
callq 0x2e46
movq -0x1f8(%rbp), %rdi
cmpq %r14, %rdi
je 0x44a0
callq 0x21c0
leaq -0x298(%rbp), %rdi
leaq -0x268(%rbp), %rsi
callq 0x8fd0
leaq -0x298(%rbp), %rsi
movq -0x108(%rbp), %rdi
callq 0x91ea
leaq -0x298(%rbp), %rdi
callq 0x8f66
movq -0x30(%rbp), %r14
movq -0x60(%rbp), %rax
leaq 0x78(%rax), %rbx
leaq -0x1a8(%rbp), %rdi
movq %rbx, %rsi
callq 0x8e42
addq $0x78, %r14
leaq -0x1a8(%rbp), %rsi
movq %r14, %rdi
callq 0x8d6a
movq -0x1a8(%rbp), %rdi
testq %rdi, %rdi
movq -0x60(%rbp), %r14
leaq -0xb0(%rbp), %r15
je 0x451c
callq 0x21c0
xorps %xmm0, %xmm0
movaps %xmm0, -0x50(%rbp)
movq $0x0, -0x40(%rbp)
cmpq $0x0, -0x48(%rbp)
je 0x453a
movq $0x0, -0x48(%rbp)
movq -0x48(%rbp), %rsi
cmpq -0x40(%rbp), %rsi
je 0x4552
movq -0x30(%rbp), %rax
movq %rax, (%rsi)
addq $0x8, -0x48(%rbp)
jmp 0x455f
leaq -0x50(%rbp), %rdi
leaq -0x30(%rbp), %rdx
callq 0x9e62
leaq -0x190(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x8e42
leaq -0x190(%rbp), %rsi
movq %rbx, %rdi
callq 0x8d6a
movq -0x190(%rbp), %rdi
testq %rdi, %rdi
je 0x458f
callq 0x21c0
movq -0x30(%rbp), %rdi
movq %r14, %rsi
callq 0x2ed0
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 0xabfd(%rip), %edx      # 0xf204
leal 0x1(%rdx), %esi
movl %esi, 0xabf4(%rip)      # 0xf204
movl %edx, (%rax)
movl %ecx, 0x58(%rax)
movq %rax, -0x150(%rbp)
movq 0xac0d(%rip), %rsi      # 0xf230
cmpq 0xac0e(%rip), %rsi      # 0xf238
je 0x4639
movq %rax, (%rsi)
addq $0x8, 0xabf9(%rip)      # 0xf230
jmp 0x464c
leaq 0xabe8(%rip), %rdi      # 0xf228
leaq -0x150(%rbp), %rdx
callq 0x9bb6
movq -0x30(%rbp), %rdi
movq -0x150(%rbp), %rax
movq %rax, 0xf0(%rdi)
addq $0x90, %rdi
callq 0x9512
movq 0xabff(%rip), %rax      # 0xf270
movq 0xac08(%rip), %rcx      # 0xf280
addq $-0x8, %rcx
cmpq %rcx, %rax
je 0x4692
movq -0x30(%rbp), %rcx
movq %rcx, (%rax)
addq $0x8, 0xabe0(%rip)      # 0xf270
jmp 0x46a2
leaq 0xaba7(%rip), %rdi      # 0xf240
leaq -0x30(%rbp), %rsi
callq 0xa116
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x46b0
callq 0x21c0
movq -0xc0(%rbp), %rdi
cmpq %r15, %rdi
je 0x46c1
callq 0x21c0
movq -0xe0(%rbp), %rdi
leaq -0xd0(%rbp), %rax
cmpq %rax, %rdi
je 0x46d9
callq 0x21c0
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0x46f1
callq 0x21c0
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x4703
callq 0x21c0
leaq -0x1d8(%rbp), %rdi
callq 0x8f66
movq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
cmpq %rax, %rdi
leaq -0x120(%rbp), %rbx
je 0x472e
callq 0x21c0
movq -0x130(%rbp), %rdi
cmpq %rbx, %rdi
je 0x473f
callq 0x21c0
leaq -0x268(%rbp), %rdi
callq 0x8f66
leaq -0x2f8(%rbp), %rdi
callq 0x8f66
addq $0x2d8, %rsp            # imm = 0x2D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x190(%rbp), %rdi
testq %rdi, %rdi
je 0x47ea
callq 0x21c0
jmp 0x47ea
movq %rax, %rbx
movq -0x1a8(%rbp), %rdi
jmp 0x47ee
movq %rax, %rbx
leaq -0x298(%rbp), %rdi
callq 0x8f66
jmp 0x4883
movq %rax, %rbx
movq -0x1f8(%rbp), %rdi
jmp 0x47c1
movq %rax, %rbx
movq -0x218(%rbp), %rdi
jmp 0x47c1
movq %rax, %rbx
movq -0x238(%rbp), %rdi
cmpq %r14, %rdi
jne 0x487e
jmp 0x4883
jmp 0x4840
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
jmp 0x4891
jmp 0x47fc
jmp 0x47fc
jmp 0x47e7
movq %rax, %rbx
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
jne 0x487e
jmp 0x4883
movq %rax, %rbx
jmp 0x489b
movq %rax, %rbx
leaq -0x120(%rbp), %r14
leaq -0x90(%rbp), %r15
jmp 0x48f5
movq %rax, %rbx
jmp 0x492f
jmp 0x4840
movq %rax, %rbx
movq -0x178(%rbp), %rdi
leaq -0x168(%rbp), %rax
cmpq %rax, %rdi
jne 0x486c
jmp 0x4871
jmp 0x4858
jmp 0x4840
movq %rax, %rbx
jmp 0x4883
movq %rax, %rbx
leaq -0x2c8(%rbp), %rdi
callq 0x8f66
jmp 0x48d5
jmp 0x48b5
movq %rax, %rbx
jmp 0x4871
movq %rax, %rbx
movq -0x150(%rbp), %rdi
cmpq %r15, %rdi
je 0x4871
callq 0x21c0
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x4883
callq 0x21c0
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x489b
callq 0x21c0
movq -0xe0(%rbp), %rdi
leaq -0xd0(%rbp), %rax
cmpq %rax, %rdi
je 0x48bd
callq 0x21c0
jmp 0x48bd
movq %rax, %rbx
jmp 0x48d5
movq %rax, %rbx
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0x48d5
callq 0x21c0
leaq -0x120(%rbp), %r14
leaq -0x90(%rbp), %r15
leaq -0x70(%rbp), %rax
movq -0x80(%rbp), %rdi
cmpq %rax, %rdi
je 0x48f5
callq 0x21c0
leaq -0x1d8(%rbp), %rdi
callq 0x8f66
movq -0xa0(%rbp), %rdi
cmpq %r15, %rdi
je 0x4912
callq 0x21c0
movq -0x130(%rbp), %rdi
cmpq %r14, %rdi
je 0x4923
callq 0x21c0
leaq -0x268(%rbp), %rdi
callq 0x8f66
leaq -0x2f8(%rbp), %rdi
callq 0x8f66
movq %rbx, %rdi
callq 0x2370
nop