// File: /workspace/github_cpp_makefile_star2_O1/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 0x14e5(%rip), %rsi      # 0xe250
leaq -0x658(%rbp), %rdi
movl $0x8, %edx
callq 0x2340
testl %r15d, %r15d
je 0xcda2
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 0x14ef(%rip), %rsi      # 0xe2a3
leaq 0x14e9(%rip), %rdx      # 0xe2a4
leaq -0xd8(%rbp), %rdi
callq 0x32be
leaq -0x60(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x14cd(%rip), %rsi      # 0xe2a3
leaq 0x14c7(%rip), %rdx      # 0xe2a4
leaq -0x70(%rbp), %rdi
callq 0x32be
leaq -0x120(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x1462(%rip), %rsi      # 0xe25a
leaq 0x145e(%rip), %rdx      # 0xe25d
leaq -0x130(%rbp), %rdi
callq 0x32be
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 0xce26
movq 0x517d(%rip), %rdi      # 0x11fd0
leaq 0x1404(%rip), %rsi      # 0xe25e
movl $0x2a, %edx
callq 0x2250
movq 0x5175(%rip), %rdi      # 0x11fe0
leaq -0x2c(%rbp), %rsi
callq 0x2120
cmpl $0x0, -0x2c(%rbp)
jle 0xcf2b
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 0x5120(%rip), %rdi      # 0x11fe0
movq %r15, %rsi
callq 0x2280
movq %rax, %rdi
movq %r12, %rsi
callq 0x2280
movq %r13, %rdi
movq %r15, %rsi
callq 0xa27a
movq %rax, %rdi
movq %r12, %rsi
callq 0x2110
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0xcf05
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xcf1e
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2210
incl %r14d
cmpl -0x2c(%rbp), %r14d
jl 0xce95
xorl %ebx, %ebx
leaq 0x12b6(%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 0xcf34
movq $0x0, -0x98(%rbp)
movq 0x505e(%rip), %rdi      # 0x11fd0
leaq 0x1310(%rip), %rsi      # 0xe289
movl $0x1b, %edx
callq 0x2250
movq 0x5056(%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 0xd01d
movq -0x130(%rbp), %rsi
movq -0xb8(%rbp), %rdi
callq 0x2220
testl %eax, %eax
sete %al
jmp 0xd01f
movb $0x1, %al
cmpq %r13, %rbx
sete %cl
testb %cl, %al
jne 0xd245
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
movq 0x4f94(%rip), %rdi      # 0x11fd0
callq 0x2250
leaq -0xf0(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0xdd1e
leaq -0x228(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0xa27a
movq %rax, %rdi
movq %r15, %rsi
callq 0x2110
leaq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
leaq -0x50(%rbp), %rdi
leaq 0x1224(%rip), %rsi      # 0xe2a3
leaq 0x121e(%rip), %rdx      # 0xe2a4
callq 0x32be
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 0x3224
movq %r13, -0x1d8(%rbp)
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
addq %rsi, %rdx
leaq -0x1d8(%rbp), %r14
movq %r14, %rdi
callq 0x3224
movq %r12, %rdi
leaq -0x170(%rbp), %rsi
movq %r14, %rdx
callq 0x3523
leaq -0x70(%rbp), %rdi
movq %r12, %rsi
callq 0x2270
movq -0x248(%rbp), %rdi
leaq -0x238(%rbp), %rax
cmpq %rax, %rdi
je 0xd144
movq -0x238(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x1d8(%rbp), %rdi
cmpq %r13, %rdi
je 0xd15f
movq -0x1c8(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x170(%rbp), %rdi
cmpq %rbx, %rdi
je 0xd17a
movq -0x160(%rbp), %rsi
incq %rsi
callq 0x2210
movl $0x2, %edx
movq 0x4e4a(%rip), %rdi      # 0x11fd0
leaq 0x1198(%rip), %rsi      # 0xe325
callq 0x2250
movq -0xb8(%rbp), %rsi
movq -0xb0(%rbp), %rdx
movq 0x4e29(%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 0xd223
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xcfe6
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2210
jmp 0xcfe6
leaq -0x70(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
callq 0x2110
movq -0xe8(%rbp), %rax
subq -0xf0(%rbp), %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
movq -0xf0(%rbp), %rsi
addq %r13, %rsi
movq %rbx, %rdi
callq 0x2050
testl %eax, %eax
je 0xd3d4
movq %r14, %rdi
movq %rbx, %rsi
callq 0xa27a
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq 0x4d16(%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 0xa27a
leaq -0x100(%rbp), %rcx
movq %rcx, -0x110(%rbp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0x110(%rbp), %rdi
callq 0x3224
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 0x3224
movq %r15, %rdi
leaq -0x110(%rbp), %rsi
leaq -0x98(%rbp), %rdx
leaq -0x450(%rbp), %rcx
movq %r14, %r8
movq %r12, %r9
callq 0x4c98
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2270
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xd387
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x150(%rbp), %rdi
leaq -0x140(%rbp), %rax
cmpq %rax, %rdi
je 0xd3a9
movq -0x140(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x110(%rbp), %rdi
leaq -0x100(%rbp), %rax
cmpq %rax, %rdi
je 0xd287
movq -0x100(%rbp), %rsi
incq %rsi
callq 0x2210
jmp 0xd287
leaq -0x228(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0xa27a
leaq -0x1a8(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0x1b8(%rbp), %rdi
callq 0x3224
leaq -0x188(%rbp), %r12
movq %r12, -0x10(%r12)
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
addq %rsi, %rdx
leaq -0x198(%rbp), %rdi
callq 0x3224
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 0x4c98
leaq -0x70(%rbp), %rdi
leaq -0x50(%rbp), %rbx
movq %rbx, %rsi
callq 0x2270
movq (%rbx), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xd47c
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x198(%rbp), %rdi
cmpq %r12, %rdi
je 0xd497
movq -0x188(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x1b8(%rbp), %rdi
cmpq %r15, %rdi
je 0xd4b2
movq -0x1a8(%rbp), %rsi
incq %rsi
callq 0x2210
movq 0x4b17(%rip), %rbx      # 0x11fd0
leaq 0xde5(%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 0x4ae5(%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 0x4aa7(%rip), %rbx      # 0x11fd0
leaq 0xda7(%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 0x4a75(%rip), %rdi      # 0x11fd0
callq 0x2040
movq %rax, %rdi
callq 0x2140
movl $0x8, %r15d
movq 0x4a5b(%rip), %rbx      # 0x11fd0
leaq 0xd27(%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 0xd57c
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq 0x4a01(%rip), %rdi      # 0x11fd0
callq 0x2040
movq %rax, %rdi
callq 0x2140
movq 0x49ed(%rip), %rbx      # 0x11fd0
leaq 0xcbb(%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 0x49bb(%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 0x498d(%rip), %rdi      # 0x11fd0
callq 0x2040
movq %rax, %rdi
callq 0x2140
movq 0x4979(%rip), %rbx      # 0x11fd0
leaq 0xc83(%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 0x4947(%rip), %rdi      # 0x11fd0
callq 0x2040
movq %rax, %rdi
callq 0x2140
xorl %r15d, %r15d
movq 0x4930(%rip), %rbx      # 0x11fd0
leaq 0xbfc(%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 0xd6a7
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq 0x48e1(%rip), %rdi      # 0x11fd0
callq 0x2040
movq %rax, %rdi
callq 0x2140
movq 0x48cd(%rip), %rdi      # 0x11fd0
leaq 0xbdc(%rip), %rsi       # 0xe2e6
movl $0x2b, %edx
callq 0x2250
movq 0x48c5(%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 0xd761
leaq 0x10(%rbx), %rcx
movq %rcx, -0x10(%rcx)
movq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
addq $0x20, %rcx
addq $-0x20, %rax
jne 0xd748
cmpl $0x0, -0x2c(%rbp)
jle 0xd78f
xorl %r13d, %r13d
movq 0x486f(%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 0xd774
movq 0x483a(%rip), %r14      # 0x11fd0
leaq 0xb08(%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 0x4808(%rip), %rdi      # 0x11fd0
callq 0x2040
movq %rax, %rdi
callq 0x2140
movq 0x47f4(%rip), %rdi      # 0x11fd0
leaq 0xb2f(%rip), %rsi       # 0xe312
movl $0x15, %edx
callq 0x2250
movq -0x450(%rbp), %rsi
movq -0x448(%rbp), %rdx
movq 0x47ce(%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 0x4798(%rip), %r14      # 0x11fd0
leaq 0xa66(%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 0x4766(%rip), %rdi      # 0x11fd0
callq 0x2040
movq %rax, %rdi
callq 0x2140
movq 0x4752(%rip), %r14      # 0x11fd0
leaq 0xaa3(%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 0x4720(%rip), %rdi      # 0x11fd0
callq 0x2040
movq %rax, %rdi
callq 0x2140
cmpl $0x0, -0x2c(%rbp)
jle 0xd955
xorl %r14d, %r14d
movq %rbx, %r12
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq 0x46f3(%rip), %rdi      # 0x11fd0
callq 0x2250
movq %rax, %r13
movl $0x4, %edx
movq %rax, %rdi
leaq 0x9ac(%rip), %rsi       # 0xe2a0
callq 0x2250
leaq -0x228(%rbp), %rdi
movq %r12, %rsi
callq 0xa27a
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 0xd8cd
testq %r15, %r15
je 0xd981
addq $-0x10, %rbx
shlq $0x5, %r15
leaq (%rbx,%r15), %rax
movq -0x10(%rbx,%r15), %rdi
cmpq %rdi, %rax
je 0xd97b
movq (%rax), %rsi
incq %rsi
callq 0x2210
addq $-0x20, %r15
jne 0xd962
movq -0x178(%rbp), %rsp
movq $-0xe0, %rbx
leaq -0x380(%rbp), %r14
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0xd9aa
movq (%r14), %rsi
incq %rsi
callq 0x2210
addq $-0x20, %r14
addq $0x20, %rbx
jne 0xd996
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0xd9d6
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x130(%rbp), %rdi
leaq -0x120(%rbp), %rax
cmpq %rax, %rdi
leaq -0x1e8(%rbp), %rbx
je 0xd9ff
movq -0x120(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0xda18
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0xda3a
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x2210
leaq -0x658(%rbp), %rdi
callq 0x2080
movq -0x1f8(%rbp), %rdi
cmpq %rbx, %rdi
je 0xda61
movq -0x1e8(%rbp), %rsi
incq %rsi
callq 0x2210
leaq -0xf0(%rbp), %rdi
callq 0x6f08
leaq -0x228(%rbp), %rdi
callq 0xdd6a
xorl %eax, %eax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xdadb
movq %rax, %r14
movq -0x198(%rbp), %rdi
cmpq %r12, %rdi
je 0xdaaf
movq -0x188(%rbp), %rsi
incq %rsi
callq 0x2210
jmp 0xdaaf
movq %rax, %r14
movq -0x1b8(%rbp), %rdi
cmpq %r15, %rdi
je 0xdc24
movq -0x1a8(%rbp), %rsi
jmp 0xdc1c
movq %rax, %r14
jmp 0xdc9b
movq %rax, %r14
jmp 0xdcb4
movq %rax, %r14
jmp 0xdcd6
movq %rax, %r14
jmp 0xdce2
jmp 0xdbe7
jmp 0xdbe7
jmp 0xdbb6
jmp 0xdbb6
jmp 0xdbe7
movq %rax, %r14
jmp 0xdb2e
movq %rax, %r14
movq -0x150(%rbp), %rdi
leaq -0x140(%rbp), %rax
cmpq %rax, %rdi
je 0xdb2e
movq -0x140(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x110(%rbp), %rdi
leaq -0x100(%rbp), %rax
cmpq %rax, %rdi
je 0xdc24
movq -0x100(%rbp), %rsi
jmp 0xdc1c
jmp 0xdbe7
movq %rax, %r14
jmp 0xdc0b
jmp 0xdbec
movq %rax, %r14
jmp 0xdb86
movq %rax, %r14
movq -0x1d8(%rbp), %rdi
cmpq %r13, %rdi
je 0xdb86
movq -0x1c8(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x170(%rbp), %rdi
leaq -0x160(%rbp), %rax
cmpq %rax, %rdi
je 0xdbef
movq -0x160(%rbp), %rsi
incq %rsi
callq 0x2210
jmp 0xdbef
jmp 0xdbe7
jmp 0xdbe7
jmp 0xdbe7
jmp 0xdbe7
jmp 0xdbec
jmp 0xdbe7
movq %rax, %r14
testq %r15, %r15
je 0xdc24
addq $-0x10, %rbx
shlq $0x5, %r15
leaq (%rbx,%r15), %rax
movq -0x10(%rbx,%r15), %rdi
cmpq %rdi, %rax
je 0xdbdf
movq (%rax), %rsi
incq %rsi
callq 0x2210
addq $-0x20, %r15
jne 0xdbc6
jmp 0xdc24
movq %rax, %r14
jmp 0xdc24
movq %rax, %r14
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0xdc0b
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xdc24
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2210
movq $-0xe0, %rbx
leaq -0x380(%rbp), %r15
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0xdc46
movq (%r15), %rsi
incq %rsi
callq 0x2210
addq $-0x20, %r15
addq $0x20, %rbx
jne 0xdc32
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0xdc72
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x130(%rbp), %rdi
leaq -0x120(%rbp), %rax
cmpq %rax, %rdi
leaq -0x1e8(%rbp), %rbx
je 0xdc9b
movq -0x120(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0xdcb4
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2210
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0xdcd6
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x2210
leaq -0x658(%rbp), %rdi
callq 0x2080
movq -0x1f8(%rbp), %rdi
cmpq %rbx, %rdi
je 0xdcfd
movq -0x1e8(%rbp), %rsi
incq %rsi
callq 0x2210
leaq -0xf0(%rbp), %rdi
callq 0x6f08
leaq -0x228(%rbp), %rdi
callq 0xdd6a
movq %r14, %rdi
callq 0x2320
nop