// File: /workspace/github_cpp_makefile_star2_O3/sthapliyal37[P]Microprocessor_8085_Updated/main.cpp
// Function: main
int main(int argc , char*argv[])
{
	map<string,string> memory;
	vector<string> sequence;
	string input;
	ifstream infile("test5.txt");
	if(argc!=0)	
	{
			ifstream infile(argv[1]);
	}
	string start=" ",pc=" ";
	string end="HLT",s;
	string registers[7];
	bool flag[8];
	int n;
	cout<<"Enter  Number of MemoryAddresses needed:: ";
	cin>>n;
	for(int i=0;i<n;i++)
	{		
		string str1,str2;
		cin>>str1>>str2;
		memory[str1]=str2;		
	}
	for(int i=0;i<7;i++)
			registers[i]="00";
	for(int i=0;i<8;i++)
			flag[i]=false;	
	cout<<"Starting Memory Address :: ";
	
	cin>>start;
	pc=start;
	/*if(memoryValidation(start))
	/{
				cout<<endl<<"INVALID/MEMORY ADDRESS OR RESERVED ADDRESS"<<endl;
					return 0;
	}*/	
	getline(infile,s);
	while(s.compare(end))
	{
				//if(inputValidation(s))
				//{
					cout<<pc;
					sequence.push_back(pc);	
					memory[pc]=s;
					string delimiter = " ";
					string token = s.substr(0, s.find(delimiter)); 
					pc=allocate_memory(token,pc);
					cout<<"::"<<s<<endl;
					getline(infile,s);
				//}		
				/*else
				{
							cout<<"INVALID INPUT"<<endl;
							return 0;	
			}*/
	}
	pc=start;
	int count=0;	
	int last=sequence.size()-1;
	//cout<<sequence[last];
	while(pc.compare(sequence[last]))
	{					
			cout<<memory[pc]<<endl;		
		pc=execute_statement(memory[pc],flag,registers,memory,pc);
	}
	pc=execute_statement(memory[pc],flag,registers,memory,pc);
	cout<<"*************************************************"<<endl<<endl;
	cout<<"REGISTERS"<<endl;
	for(int i=0;i<7;i++)	
		cout<<registers[i]<<" ";
	cout<<endl;	
	cout<<"*************************************************"<<endl;	
	cout<<endl;
	cout<<"flag"<<endl;
	for(int i=0;i<7;i++)	
		cout<<flag[i]<<" ";
	cout<<endl;

	cout<<"Enter  Number of RESult Addresses needed:: ";
	cin>>n;
	string result[n];
	for(int i=0;i<n;i++)
		cin>>result[i];
		
	cout<<"*************************************************"<<endl;
	cout<<"Accumulator Result ::"<<registers[0]<<endl;	
	cout<<"*************************************************"<<endl;
	cout<<"Memory Result"<<endl;
	for(int i=0;i<n;i++)
		cout<<result[i]<<" :: "<<memory[result[i]]<<endl;;

return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x638, %rsp            # imm = 0x638
movq %rsi, %r14
movl %edi, %r15d
leaq -0x220(%rbp), %rax
movl $0x0, (%rax)
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq %rcx, -0xe0(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0xf0(%rbp)
leaq -0x1e8(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq %rcx, -0x8(%rbx)
movb $0x0, (%rbx)
leaq 0x15b5(%rip), %rsi      # 0xe250
leaq -0x658(%rbp), %rdi
movl $0x8, %edx
callq 0x2340
testl %r15d, %r15d
je 0xccd2
movq 0x8(%r14), %rsi
leaq -0x450(%rbp), %rdi
movl $0x8, %edx
callq 0x2340
leaq -0x450(%rbp), %rdi
callq 0x2080
leaq -0xc8(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x15bf(%rip), %rsi      # 0xe2a3
leaq 0x15b9(%rip), %rdx      # 0xe2a4
leaq -0xd8(%rbp), %rdi
callq 0x328a
leaq -0x60(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x159d(%rip), %rsi      # 0xe2a3
leaq 0x1597(%rip), %rdx      # 0xe2a4
leaq -0x70(%rbp), %rdi
callq 0x328a
leaq -0x120(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1532(%rip), %rsi      # 0xe25a
leaq 0x152e(%rip), %rdx      # 0xe25d
leaq -0x130(%rbp), %rdi
callq 0x328a
leaq -0xa8(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movl $0x10, %eax
leaq (%rax,%rbp), %rcx
addq $-0x450, %rcx           # imm = 0xFBB0
movq %rcx, -0x10(%rcx)
movq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
addq $0x20, %rax
cmpq $0xf0, %rax
jne 0xcd56
movq 0x524d(%rip), %rdi      # 0x11fd0
leaq 0x14d4(%rip), %rsi      # 0xe25e
movl $0x2a, %edx
callq 0x2250
movq 0x5245(%rip), %rdi      # 0x11fe0
leaq -0x2c(%rbp), %rsi
callq 0x2120
cmpl $0x0, -0x2c(%rbp)
jle 0xce5b
xorl %ebx, %ebx
leaq -0x50(%rbp), %r15
leaq -0x90(%rbp), %r12
leaq -0x228(%rbp), %r13
xorl %r14d, %r14d
leaq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
movq %rbx, -0x48(%rbp)
movb %bl, -0x40(%rbp)
leaq -0x80(%rbp), %rax
movq %rax, -0x90(%rbp)
movq %rbx, -0x88(%rbp)
movb %bl, -0x80(%rbp)
movq 0x51f0(%rip), %rdi      # 0x11fe0
movq %r15, %rsi
callq 0x2280
movq %rax, %rdi
movq %r12, %rsi
callq 0x2280
movq %r13, %rdi
movq %r15, %rsi
callq 0xa1e4
movq %rax, %rdi
movq %r12, %rsi
callq 0x2110
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0xce35
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xce4e
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2210
incl %r14d
cmpl -0x2c(%rbp), %r14d
jl 0xcdc5
xorl %ebx, %ebx
leaq 0x1386(%rip), %r14      # 0xe1ea
leaq (%rbx,%rbp), %rdi
addq $-0x450, %rdi           # imm = 0xFBB0
movq 0x8(%rdi), %rdx
movl $0x2, %r8d
xorl %esi, %esi
movq %r14, %rcx
callq 0x22b0
addq $0x20, %rbx
cmpq $0xe0, %rbx
jne 0xce64
movq $0x0, -0x98(%rbp)
movq 0x512e(%rip), %rdi      # 0x11fd0
leaq 0x13e0(%rip), %rsi      # 0xe289
movl $0x1b, %edx
callq 0x2250
movq 0x5126(%rip), %rdi      # 0x11fe0
leaq -0xd8(%rbp), %rsi
callq 0x2280
leaq -0x70(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
callq 0x2110
movq -0x658(%rbp), %rax
leaq -0x658(%rbp), %rdi
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %edx
leaq -0x658(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0x2350
leaq -0xb8(%rbp), %r15
leaq -0x248(%rbp), %r12
movq -0xb0(%rbp), %rbx
movq -0x128(%rbp), %r13
cmpq %rbx, %r13
movq %rbx, %rdx
cmovbq %r13, %rdx
testq %rdx, %rdx
je 0xcf54
movq -0x130(%rbp), %rsi
movq -0xb8(%rbp), %rdi
callq 0x2220
cmpq %r13, %rbx
jne 0xcf5d
testl %eax, %eax
jne 0xcf5d
jmp 0xd175
cmpq %r13, %rbx
je 0xd175
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
movq 0x5064(%rip), %rdi      # 0x11fd0
callq 0x2250
leaq -0xf0(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0xdc4c
leaq -0x228(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0xa1e4
movq %rax, %rdi
movq %r15, %rsi
callq 0x2110
leaq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
leaq -0x50(%rbp), %rdi
leaq 0x12f4(%rip), %rsi      # 0xe2a3
leaq 0x12ee(%rip), %rdx      # 0xe2a4
callq 0x328a
leaq -0x160(%rbp), %rbx
leaq -0x1c8(%rbp), %r13
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rcx
movq %r15, %rdi
xorl %edx, %edx
callq 0x2310
leaq -0x90(%rbp), %rdi
movq %r15, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x2230
movq %rbx, -0x170(%rbp)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
addq %rsi, %rdx
leaq -0x170(%rbp), %rdi
callq 0x31ec
movq %r13, -0x1d8(%rbp)
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
addq %rsi, %rdx
leaq -0x1d8(%rbp), %r14
movq %r14, %rdi
callq 0x31ec
movq %r12, %rdi
leaq -0x170(%rbp), %rsi
movq %r14, %rdx
callq 0x34f4
leaq -0x70(%rbp), %rdi
movq %r12, %rsi
callq 0x2270
movq -0x248(%rbp), %rdi
leaq -0x238(%rbp), %rax
cmpq %rax, %rdi
je 0xd074
movq -0x238(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x1d8(%rbp), %rdi
cmpq %r13, %rdi
je 0xd08f
movq -0x1c8(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x170(%rbp), %rdi
cmpq %rbx, %rdi
je 0xd0aa
movq -0x160(%rbp), %rsi
incq %rsi
callq 0x2210
movl $0x2, %edx
movq 0x4f1a(%rip), %rdi      # 0x11fd0
leaq 0x1268(%rip), %rsi      # 0xe325
callq 0x2250
movq -0xb8(%rbp), %rsi
movq -0xb0(%rbp), %rdx
movq 0x4ef9(%rip), %rdi      # 0x11fd0
callq 0x2250
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
movq -0x658(%rbp), %rax
movq -0x18(%rax), %rdi
leaq -0x658(%rbp), %rax
addq %rax, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %edx
leaq -0x658(%rbp), %rdi
movq %r15, %rsi
callq 0x2350
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0xd153
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xcf16
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2210
jmp 0xcf16
leaq -0x70(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
callq 0x2110
movq -0xf0(%rbp), %rsi
movq -0xe8(%rbp), %rax
subq %rsi, %rax
shlq $0x1b, %rax
movabsq $-0x100000000, %r13     # imm = 0xFFFFFFFF00000000
addq %rax, %r13
sarq $0x1b, %r13
leaq -0x70(%rbp), %rbx
leaq -0x228(%rbp), %r14
leaq -0x50(%rbp), %r15
addq %r13, %rsi
movq %rbx, %rdi
callq 0x2050
testl %eax, %eax
je 0xd303
movq %r14, %rdi
movq %rbx, %rsi
callq 0xa1e4
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq 0x4dea(%rip), %rdi      # 0x11fd0
callq 0x2250
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %r12, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
movq %r14, %rdi
movq %rbx, %rsi
callq 0xa1e4
leaq -0x100(%rbp), %rcx
movq %rcx, -0x110(%rbp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0x110(%rbp), %rdi
callq 0x31ec
leaq -0x140(%rbp), %rax
movq %rax, -0x150(%rbp)
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
addq %rsi, %rdx
leaq -0x150(%rbp), %r12
movq %r12, %rdi
callq 0x31ec
movq %r15, %rdi
leaq -0x110(%rbp), %rsi
leaq -0x98(%rbp), %rdx
leaq -0x450(%rbp), %rcx
movq %r14, %r8
movq %r12, %r9
callq 0x4c4c
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2270
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xd2b3
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x150(%rbp), %rdi
leaq -0x140(%rbp), %rax
cmpq %rax, %rdi
je 0xd2d5
movq -0x140(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x110(%rbp), %rdi
leaq -0x100(%rbp), %rax
cmpq %rax, %rdi
je 0xd2f7
movq -0x100(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0xf0(%rbp), %rsi
jmp 0xd1ba
leaq -0x228(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0xa1e4
leaq -0x1a8(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0x1b8(%rbp), %rdi
callq 0x31ec
leaq -0x188(%rbp), %r12
movq %r12, -0x10(%r12)
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
addq %rsi, %rdx
leaq -0x198(%rbp), %rdi
callq 0x31ec
leaq -0x50(%rbp), %rdi
leaq -0x1b8(%rbp), %rsi
leaq -0x98(%rbp), %rdx
leaq -0x450(%rbp), %rcx
leaq -0x228(%rbp), %r8
leaq -0x198(%rbp), %r9
callq 0x4c4c
leaq -0x70(%rbp), %rdi
leaq -0x50(%rbp), %rbx
movq %rbx, %rsi
callq 0x2270
movq (%rbx), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xd3ab
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x198(%rbp), %rdi
cmpq %r12, %rdi
je 0xd3c6
movq -0x188(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x1b8(%rbp), %rdi
cmpq %r15, %rdi
je 0xd3e1
movq -0x1a8(%rbp), %rsi
incq %rsi
callq 0x2210
movq 0x4be8(%rip), %rbx      # 0x11fd0
leaq 0xeb6(%rip), %rsi       # 0xe2a5
movl $0x31, %edx
movq %rbx, %rdi
callq 0x2250
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq 0x4bb6(%rip), %rdi      # 0x11fd0
callq 0x2040
movq %rax, %rdi
callq 0x2140
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
movq 0x4b78(%rip), %rbx      # 0x11fd0
leaq 0xe78(%rip), %rsi       # 0xe2d7
movl $0x9, %edx
movq %rbx, %rdi
callq 0x2250
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq 0x4b46(%rip), %rdi      # 0x11fd0
callq 0x2040
movq %rax, %rdi
callq 0x2140
movl $0x8, %r15d
movq 0x4b2c(%rip), %rbx      # 0x11fd0
leaq 0xdf8(%rip), %r14       # 0xe2a3
movq -0x458(%rbp,%r15), %rsi
movq -0x450(%rbp,%r15), %rdx
movq %rbx, %rdi
callq 0x2250
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x2250
addq $0x20, %r15
cmpq $0xe8, %r15
jne 0xd4ab
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq 0x4ad2(%rip), %rdi      # 0x11fd0
callq 0x2040
movq %rax, %rdi
callq 0x2140
movq 0x4abe(%rip), %rbx      # 0x11fd0
leaq 0xd8c(%rip), %rsi       # 0xe2a5
movl $0x31, %edx
movq %rbx, %rdi
callq 0x2250
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq 0x4a8c(%rip), %rbx      # 0x11fd0
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq 0x4a5e(%rip), %rdi      # 0x11fd0
callq 0x2040
movq %rax, %rdi
callq 0x2140
movq 0x4a4a(%rip), %rbx      # 0x11fd0
leaq 0xd54(%rip), %rsi       # 0xe2e1
movl $0x4, %edx
movq %rbx, %rdi
callq 0x2250
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq 0x4a18(%rip), %rdi      # 0x11fd0
callq 0x2040
movq %rax, %rdi
callq 0x2140
xorl %r15d, %r15d
movq 0x4a01(%rip), %rbx      # 0x11fd0
leaq 0xccd(%rip), %r14       # 0xe2a3
movzbl -0x98(%rbp,%r15), %esi
movq %rbx, %rdi
callq 0x22f0
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x2250
incq %r15
cmpq $0x7, %r15
jne 0xd5d6
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq 0x49b2(%rip), %rdi      # 0x11fd0
callq 0x2040
movq %rax, %rdi
callq 0x2140
movq 0x499e(%rip), %rdi      # 0x11fd0
leaq 0xcad(%rip), %rsi       # 0xe2e6
movl $0x2b, %edx
callq 0x2250
movq 0x4996(%rip), %rdi      # 0x11fe0
leaq -0x2c(%rbp), %rsi
callq 0x2120
movq %rsp, -0x178(%rbp)
movl -0x2c(%rbp), %r15d
movq %rsp, %rbx
movq %r15, %rax
shlq $0x5, %rax
subq %rax, %rbx
movq %rbx, %rsp
testq %r15, %r15
je 0xd690
leaq 0x10(%rbx), %rcx
movq %rcx, -0x10(%rcx)
movq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
addq $0x20, %rcx
addq $-0x20, %rax
jne 0xd677
cmpl $0x0, -0x2c(%rbp)
jle 0xd6be
xorl %r13d, %r13d
movq 0x4940(%rip), %r12      # 0x11fe0
movq %rbx, %r14
movq %r12, %rdi
movq %r14, %rsi
callq 0x2280
incq %r13
movslq -0x2c(%rbp), %rax
addq $0x20, %r14
cmpq %rax, %r13
jl 0xd6a3
movq 0x490b(%rip), %r14      # 0x11fd0
leaq 0xbd9(%rip), %rsi       # 0xe2a5
movl $0x31, %edx
movq %r14, %rdi
callq 0x2250
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq 0x48d9(%rip), %rdi      # 0x11fd0
callq 0x2040
movq %rax, %rdi
callq 0x2140
movq 0x48c5(%rip), %rdi      # 0x11fd0
leaq 0xc00(%rip), %rsi       # 0xe312
movl $0x15, %edx
callq 0x2250
movq -0x450(%rbp), %rsi
movq -0x448(%rbp), %rdx
movq 0x489f(%rip), %rdi      # 0x11fd0
callq 0x2250
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
movq 0x4869(%rip), %r14      # 0x11fd0
leaq 0xb37(%rip), %rsi       # 0xe2a5
movl $0x31, %edx
movq %r14, %rdi
callq 0x2250
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq 0x4837(%rip), %rdi      # 0x11fd0
callq 0x2040
movq %rax, %rdi
callq 0x2140
movq 0x4823(%rip), %r14      # 0x11fd0
leaq 0xb74(%rip), %rsi       # 0xe328
movl $0xd, %edx
movq %r14, %rdi
callq 0x2250
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq 0x47f1(%rip), %rdi      # 0x11fd0
callq 0x2040
movq %rax, %rdi
callq 0x2140
cmpl $0x0, -0x2c(%rbp)
jle 0xd884
xorl %r14d, %r14d
movq %rbx, %r12
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq 0x47c4(%rip), %rdi      # 0x11fd0
callq 0x2250
movq %rax, %r13
movl $0x4, %edx
movq %rax, %rdi
leaq 0xa7d(%rip), %rsi       # 0xe2a0
callq 0x2250
leaq -0x228(%rbp), %rdi
movq %r12, %rsi
callq 0xa1e4
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r13, %rdi
callq 0x2250
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %r13, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
incq %r14
movslq -0x2c(%rbp), %rax
addq $0x20, %r12
cmpq %rax, %r14
jl 0xd7fc
testq %r15, %r15
je 0xd8b0
addq $-0x10, %rbx
shlq $0x5, %r15
leaq (%rbx,%r15), %rax
movq -0x10(%rbx,%r15), %rdi
cmpq %rdi, %rax
je 0xd8aa
movq (%rax), %rsi
incq %rsi
callq 0x2210
addq $-0x20, %r15
jne 0xd891
movq -0x178(%rbp), %rsp
movq $-0xe0, %rbx
leaq -0x380(%rbp), %r14
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0xd8d9
movq (%r14), %rsi
incq %rsi
callq 0x2210
addq $-0x20, %r14
addq $0x20, %rbx
jne 0xd8c5
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0xd905
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x130(%rbp), %rdi
leaq -0x120(%rbp), %rax
cmpq %rax, %rdi
leaq -0x1e8(%rbp), %rbx
je 0xd92e
movq -0x120(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0xd947
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0xd969
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x2210
leaq -0x658(%rbp), %rdi
callq 0x2080
movq -0x1f8(%rbp), %rdi
cmpq %rbx, %rdi
je 0xd990
movq -0x1e8(%rbp), %rsi
incq %rsi
callq 0x2210
leaq -0xf0(%rbp), %rdi
callq 0x6eae
leaq -0x228(%rbp), %rdi
callq 0xdc98
xorl %eax, %eax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xda0a
movq %rax, %r14
movq -0x198(%rbp), %rdi
cmpq %r12, %rdi
je 0xd9de
movq -0x188(%rbp), %rsi
incq %rsi
callq 0x2210
jmp 0xd9de
movq %rax, %r14
movq -0x1b8(%rbp), %rdi
cmpq %r15, %rdi
je 0xdb53
movq -0x1a8(%rbp), %rsi
jmp 0xdb4b
movq %rax, %r14
jmp 0xdbca
movq %rax, %r14
jmp 0xdbe3
movq %rax, %r14
jmp 0xdc05
movq %rax, %r14
jmp 0xdc11
jmp 0xdb16
jmp 0xdb16
jmp 0xdae5
jmp 0xdae5
jmp 0xdb16
movq %rax, %r14
jmp 0xda5d
movq %rax, %r14
movq -0x150(%rbp), %rdi
leaq -0x140(%rbp), %rax
cmpq %rax, %rdi
je 0xda5d
movq -0x140(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x110(%rbp), %rdi
leaq -0x100(%rbp), %rax
cmpq %rax, %rdi
je 0xdb53
movq -0x100(%rbp), %rsi
jmp 0xdb4b
jmp 0xdb16
movq %rax, %r14
jmp 0xdb3a
jmp 0xdb1b
movq %rax, %r14
jmp 0xdab5
movq %rax, %r14
movq -0x1d8(%rbp), %rdi
cmpq %r13, %rdi
je 0xdab5
movq -0x1c8(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x170(%rbp), %rdi
leaq -0x160(%rbp), %rax
cmpq %rax, %rdi
je 0xdb1e
movq -0x160(%rbp), %rsi
incq %rsi
callq 0x2210
jmp 0xdb1e
jmp 0xdb16
jmp 0xdb16
jmp 0xdb16
jmp 0xdb16
jmp 0xdb1b
jmp 0xdb16
movq %rax, %r14
testq %r15, %r15
je 0xdb53
addq $-0x10, %rbx
shlq $0x5, %r15
leaq (%rbx,%r15), %rax
movq -0x10(%rbx,%r15), %rdi
cmpq %rdi, %rax
je 0xdb0e
movq (%rax), %rsi
incq %rsi
callq 0x2210
addq $-0x20, %r15
jne 0xdaf5
jmp 0xdb53
movq %rax, %r14
jmp 0xdb53
movq %rax, %r14
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0xdb3a
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xdb53
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2210
movq $-0xe0, %rbx
leaq -0x380(%rbp), %r15
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0xdb75
movq (%r15), %rsi
incq %rsi
callq 0x2210
addq $-0x20, %r15
addq $0x20, %rbx
jne 0xdb61
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0xdba1
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x130(%rbp), %rdi
leaq -0x120(%rbp), %rax
cmpq %rax, %rdi
leaq -0x1e8(%rbp), %rbx
je 0xdbca
movq -0x120(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0xdbe3
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0xdc05
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x2210
leaq -0x658(%rbp), %rdi
callq 0x2080
movq -0x1f8(%rbp), %rdi
cmpq %rbx, %rdi
je 0xdc2c
movq -0x1e8(%rbp), %rsi
incq %rsi
callq 0x2210
leaq -0xf0(%rbp), %rdi
callq 0x6eae
leaq -0x228(%rbp), %rdi
callq 0xdc98
movq %r14, %rdi
callq 0x2320