// File: /workspace/github_cpp_makefile_star2_O1/lotuskip[P]yuxtapa/client/settings.cpp
// Function: Config::read_config(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void Config::read_config(const string &servername)
{
	// figure out config  directory of current user:
	string s;
	confdir_str = s = get_conf_dir();
	s += "client.conf";

	ifstream file(s.c_str());
	string keyw;
	char ch;
	string first_server = "";
	while(file)
	{
		// This is very crude parsing; if the file is not right it probably is read all wrong
		getline(file, s);
		if(s.empty() || s[0] == '#')
			continue;
		stringstream ss(s, ios_base::in);
		ss >> keyw;
		if(keyw == "nick")
		{
			keyw = s;
			keyw.erase(0, keyw.find(' '));
			trim_str(keyw);
			if(!keyw.empty())
			{
				if(num_syms(keyw) > MAX_NICK_LEN)
				{
					del_syms(keyw, MAX_NICK_LEN);
					cerr << "Warning: nick given in config file is too long.";
				}
				nick = keyw;
				continue;
			}
		}
		else if(keyw == "server")
		{
			ss >> keyw; // server name
			string tmp = "";
			ss >> tmp; // server IP
			if(!keyw.empty() && !tmp.empty())
			{
				/* if a server was given, we only match against it;
				 * otherwise pick first server */
				if(first_server.empty())
					first_server = tmp;
				if(serverip.empty() && servername == keyw)
					serverip = tmp;
				continue;
			}
		}
		else if(keyw == "key")
		{
			keyw = ss.str();
			if(keyw.size() < 6) // must be at least "key XY"
			{
				cerr << "Faulty line in config: \'" << keyw << "\'." << endl;
				continue;
			}
			keyw = keyw.substr(4); // drop "key "; leaving keyw.size() >= 2
			// Check for ^[x]: ("^XA", for instance)
			if(keyw[0] == '^' && keyw.size() > 2)
			{
				if(!isalpha(keyw[1]))
				{
					cerr << str_ctrl_error << endl;
					continue;
				} // else:
				ch = toupper(keyw[1]) - CTRL_ADD;
				keyw.erase(0,1); // remove '^', forcing the replacement to be at index 1
			}
			else
				ch = keyw[0];
			e_Key_binding kb = convert_key(ch);
			if(kb != MAX_KEY_BINDING)
			{
				// The replacement could also be ^[x]:
				if(keyw[1] == '^' && keyw.size() > 2)
				{
					if(!isalpha(keyw[2]))
					{
						cerr << str_ctrl_error << endl;
						continue;
					} // else:
					ch = toupper(keyw[2]) - CTRL_ADD;
				}
				else if((ch = keyw[1]) == '?')
				{
					// '?' is reserved for help view!
					cerr << "Config error: key '?' is reserved!" << endl;
					continue;
				}
				key_bindings[kb] = ch;
			}
			else
			{
				fill_kph(ch);
				cerr << "Unknown original keybinding \'"
					<< keyplaceholder << "\' in config." << endl;
			}
			continue;
		}
		else if(keyw == "anim")
		{
			keyw = s;
			keyw.erase(0, keyw.find(' '));
			if(!keyw.empty())
				keyw.erase(0, 1);
			if(num_syms(keyw) < MIN_ANIM_LEN || num_syms(keyw) > MAX_ANIM_LEN)
				cerr << "Warning, an animation of invalid length ignored." << endl;
			else
				anim = keyw;
			continue;
		}
		else if(keyw == "alias")
		{
			ss >> keyw; // alias string
			string tmps = s;
			tmps.erase(0, tmps.find(' ', 6)); // get rid of "alias [key]"
			if(!tmps.empty())
			{
				tmps.erase(0,1);
				aliases[keyw] = tmps;
				continue;
			}
		}
		else if(keyw == "qshout")
		{
			short sh;
			ss >> sh;
			if(sh < 1 || sh > MAX_QUICK_SHOUTS)
				cerr << "Invalid quick shout index: " << sh << endl;
			else
			{
				qshout[sh-1] = ss.str();
				qshout[sh-1].erase(0, 8 + int(sh > 9)); // 8 if sh is single-digit, 9 if not
				if(qshout[sh-1].empty())
				{
					cerr << "Config warning: empty \'qshout " << sh << "\'?" << endl;
					continue;
				}
				qshout[sh-1].erase(0,1); // remove ' '
				if(num_syms(qshout[sh-1]) > MSG_WIN_X-3) // -3 is for the "!: " prefix
				{
					cerr << "Quick shout " << sh << " is too long!" << endl;
					del_syms(qshout[sh-1], MSG_WIN_X-3);
				}
			}
			continue;
		}
		else if(keyw == "ouch")
		{
			ouch_str = ss.str();
			if(ouch_str.size() < 5)
			{
				cerr << "Config warning: \'ouch\' without content?" << endl;
				continue;
			}
			ouch_str.erase(0, 5); // erase "ouch "
			if(num_syms(ouch_str) >= MSG_WIN_X)
			{
				cerr << "The ouch string in the config is too long!" << endl;
				del_syms(ouch_str, MSG_WIN_X);
			}
			continue;
		}
		else if(keyw == "ouch_on")
		{
			ss >> ouching;
			continue;
		}
		else if(keyw == "stored_chat_msgs")
		{
			ss >> stored_msgs;
			if(stored_msgs < 0 || stored_msgs > 1000)
			{
				cerr << "Warning: invalid stored_chat_msgs setting." << endl;
				stored_msgs = DEFAULT_STORED_MSGS;
			}
			continue;
		}
		else if(keyw == "actperturn")
		{
			ss >> actperturn;
			continue;
		}
		// if here, not all is okay:
		cerr << "Warning, could not parse the following line in config file:"
			<< endl << "\"" << s << "\"" << endl;
	}
	file.close();

	// everything extracted (or failed altogether), check:
	if(serverip.empty()) // no match for desired server
	{
		if(!servername.empty()) // some server *was* requested
			serverip = servername; // try to connect to it "as-is"
		else if(first_server.empty()) // no server given in file, either?
		{
			cerr << "Warning, no server given in config, defaulting to localhost!" << endl;
			serverip = "127.0.0.1:12360";
		}
		else // No server requested; use first one found in config
			serverip = first_server;
	}
	// check for key-binding conflicts:
	keyw = key_bindings; // tmp copy
	sort(keyw.begin(), keyw.end());
	unique(keyw.begin(), keyw.end());
	if(keyw.size() < key_bindings.size())
	{
		cerr << "Config resulted in key binding conflicts; reverting to original keys." << endl;
		key_bindings = default_key_bds;
	}
	// check that ouching is off if ouch string is empty:
	if(ouch_str.empty() && ouching)
	{
		ouching = false;
		cerr << "Config error: the ouch feature requires you to define a non-empty message!" << endl;
	}
	// Read stored messages to prev_strs if file exists
	ifstream cmfile((confdir_str + "chatmemory").c_str());
	if(cmfile)
	{
		while(getline(cmfile, s) && !s.empty())
			prev_strs.push_back(s);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x498, %rsp            # imm = 0x498
movq %rdi, %r12
leaq -0x80(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0x2b8(%rbp), %rdi
callq 0xfab4
leaq -0x90(%rbp), %rdi
leaq -0x2b8(%rbp), %rsi
callq 0x4490
leaq 0xc758(%rip), %rdi      # 0x19540
movq %rax, %rsi
callq 0x4200
leaq -0x2a8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xce0f
movq -0x2a8(%rbp), %rsi
incq %rsi
callq 0x43a0
leaq 0x3a65(%rip), %rsi      # 0x1087b
leaq -0x90(%rbp), %rdi
callq 0x46f0
movq -0x90(%rbp), %rsi
leaq -0x2b8(%rbp), %rdi
movl $0x8, %edx
callq 0x46a0
leaq -0x60(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0xa0(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x361a(%rip), %rdx      # 0x10479
leaq -0xb0(%rbp), %rdi
movq %rdx, %rsi
callq 0x8912
movq -0x2b8(%rbp), %rax
movq -0x18(%rax), %rax
testb $0x5, -0x298(%rbp,%rax)
je 0xd0df
leaq -0x2b8(%rbp), %rdi
callq 0x40a0
cmpq $0x0, 0xc4e5(%rip)      # 0x19380
jne 0xcec9
cmpq $0x0, 0x8(%r12)
jne 0xceba
cmpq $0x0, -0xa8(%rbp)
leaq -0xb0(%rbp), %r12
je 0xdca1
leaq 0xc4b7(%rip), %rdi      # 0x19378
movq %r12, %rsi
callq 0x4200
leaq 0xc488(%rip), %rsi      # 0x19358
leaq -0x70(%rbp), %rdi
callq 0x4200
movq -0x68(%rbp), %rax
testq %rax, %rax
je 0xcf0d
movq -0x70(%rbp), %rbx
leaq (%rbx,%rax), %r14
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe6ad
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe78b
movq -0x70(%rbp), %rdi
movq -0x68(%rbp), %rsi
addq %rdi, %rsi
callq 0xea19
movq -0x68(%rbp), %rax
cmpq 0xc438(%rip), %rax      # 0x19360
jae 0xcf83
movq 0xa0bf(%rip), %rbx      # 0x16ff0
leaq 0x3bb9(%rip), %rsi      # 0x10af1
movl $0x45, %edx
movq %rbx, %rdi
callq 0x4420
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x4370
movsbl %al, %esi
movq 0xa08d(%rip), %rdi      # 0x16ff0
callq 0x4040
movq %rax, %rdi
callq 0x4250
leaq 0xc3e1(%rip), %rdi      # 0x19358
leaq 0xc31a(%rip), %rsi      # 0x19298
callq 0x4200
cmpq $0x0, 0xc59d(%rip)      # 0x19528
jne 0xcfe3
cmpb $0x1, 0xc5fc(%rip)      # 0x19590
jne 0xcfe3
movb $0x0, 0xc5f3(%rip)      # 0x19590
movq 0xa04c(%rip), %rbx      # 0x16ff0
leaq 0x3b8c(%rip), %rsi      # 0x10b37
movl $0x4a, %edx
movq %rbx, %rdi
callq 0x4420
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x4370
movsbl %al, %esi
movq 0xa01a(%rip), %rdi      # 0x16ff0
callq 0x4040
movq %rax, %rdi
callq 0x4250
leaq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
movq %rax, (%rdi)
movq 0xc54b(%rip), %rsi      # 0x19540
movq 0xc54c(%rip), %rdx      # 0x19548
addq %rsi, %rdx
callq 0x731c
leaq 0x3b77(%rip), %rsi      # 0x10b82
leaq -0x50(%rbp), %rdi
callq 0x46f0
movq -0x50(%rbp), %rsi
leaq -0x4c0(%rbp), %rbx
movq %rbx, %rdi
movl $0x8, %edx
callq 0x46a0
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xd045
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x43a0
movq -0x4c0(%rbp), %rax
movq -0x18(%rax), %rax
testb $0x5, -0x4a0(%rbp,%rax)
je 0xdc40
leaq -0x4c0(%rbp), %rdi
callq 0x40f0
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0xd08c
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x43a0
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0xd0a5
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x43a0
leaq -0x2b8(%rbp), %rdi
callq 0x40f0
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0xd0cd
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x43a0
addq $0x498, %rsp            # imm = 0x498
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq (%rax,%rbp), %rdi
addq $-0x2b8, %rdi           # imm = 0xFD48
leaq -0x2b8(%rbp), %r14
leaq -0x90(%rbp), %rbx
leaq -0x4c0(%rbp), %r13
movl $0xa, %esi
callq 0x4370
movsbl %al, %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x46c0
cmpq $0x0, -0x88(%rbp)
je 0xd85a
movq -0x90(%rbp), %rax
cmpb $0x23, (%rax)
je 0xd85a
movq %r12, %r14
movq %r13, %rdi
movq %r13, %r12
movq %rbx, %r15
movq %rbx, %rsi
movl $0x8, %edx
callq 0x45f0
movq %r12, %r13
movq %r12, %rdi
leaq -0x70(%rbp), %rsi
callq 0x44b0
leaq -0x70(%rbp), %rbx
movq %rbx, %rdi
leaq 0x371c(%rip), %rsi      # 0x10887
callq 0x4110
testl %eax, %eax
je 0xd25e
movq %rbx, %rdi
leaq 0x373a(%rip), %rsi      # 0x108bc
callq 0x4110
testl %eax, %eax
je 0xd2ea
movq %rbx, %rdi
leaq 0x372a(%rip), %rsi      # 0x108c3
callq 0x4110
testl %eax, %eax
je 0xd39d
movq %rbx, %rdi
leaq 0x3781(%rip), %rsi      # 0x10931
callq 0x4110
testl %eax, %eax
je 0xd43d
movq %rbx, %rdi
leaq 0x37a0(%rip), %rsi      # 0x10967
callq 0x4110
testl %eax, %eax
je 0xd56e
movq %rbx, %rdi
leaq 0x378f(%rip), %rsi      # 0x1096d
callq 0x4110
testl %eax, %eax
je 0xd6f9
movq %rbx, %rdi
leaq 0x37ca(%rip), %rsi      # 0x109bf
callq 0x4110
testl %eax, %eax
je 0xd798
movq %rbx, %rdi
leaq 0x380b(%rip), %rsi      # 0x10a17
callq 0x4110
leaq 0xc378(%rip), %rsi      # 0x19590
testl %eax, %eax
je 0xd251
movq %rbx, %rdi
leaq 0x37f9(%rip), %rsi      # 0x10a1f
callq 0x4110
testl %eax, %eax
je 0xda95
movq %rbx, %rdi
leaq 0x381e(%rip), %rsi      # 0x10a5b
callq 0x4110
leaq 0xc348(%rip), %rsi      # 0x19591
testl %eax, %eax
jne 0xd62b
movq %r13, %rdi
callq 0x4320
jmp 0xd832
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4200
movq %rbx, %rdi
movl $0x20, %esi
xorl %edx, %edx
callq 0x44f0
movq %rbx, %rdi
xorl %esi, %esi
movq %rax, %rdx
callq 0x40d0
leaq -0x70(%rbp), %rdi
callq 0xfe2e
cmpq $0x0, -0x68(%rbp)
je 0xd62b
leaq -0x70(%rbp), %rdi
callq 0xf89c
leaq 0xc06f(%rip), %rdi      # 0x19318
cmpw $0xb, %ax
jl 0xd2dc
leaq -0x70(%rbp), %rdi
movl $0xa, %esi
callq 0xf97f
movl $0x2f, %edx
movq 0x9d27(%rip), %rdi      # 0x16ff0
leaq 0x35bc(%rip), %rsi      # 0x1088c
callq 0x4420
leaq 0xc03c(%rip), %rdi      # 0x19318
leaq -0x70(%rbp), %rsi
callq 0x4200
jmp 0xd832
movq %r13, %rdi
movq %rbx, %rsi
callq 0x44b0
leaq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
leaq -0x50(%rbp), %rbx
movq %rbx, %rdi
leaq 0x316e(%rip), %rdx      # 0x10479
movq %rdx, %rsi
callq 0x8912
movq %r13, %rdi
movq %rbx, %rsi
callq 0x44b0
cmpq $0x0, -0x68(%rbp)
je 0xd612
cmpq $0x0, -0x48(%rbp)
je 0xd612
movq %r14, %r12
cmpq $0x0, -0xa8(%rbp)
jne 0xd351
leaq -0xb0(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x4200
cmpq $0x0, 0xc027(%rip)      # 0x19380
jne 0xd5f0
movq 0x8(%r12), %rdx
cmpq -0x68(%rbp), %rdx
jne 0xd5f0
testq %rdx, %rdx
je 0xd388
movq -0x70(%rbp), %rsi
movq (%r12), %rdi
callq 0x43b0
testl %eax, %eax
jne 0xd5f0
leaq 0xbfe9(%rip), %rdi      # 0x19378
leaq -0x50(%rbp), %rsi
callq 0x4200
jmp 0xd5f0
leaq -0x50(%rbp), %rbx
movq %rbx, %rdi
leaq -0x4a8(%rbp), %rsi
callq 0x45e0
leaq -0x70(%rbp), %rdi
movq %rbx, %rsi
callq 0x4490
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xd3d5
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x43a0
cmpq $0x5, -0x68(%rbp)
ja 0xd4a0
movl $0x18, %edx
movq 0x9c04(%rip), %rdi      # 0x16ff0
leaq 0x34d4(%rip), %rsi      # 0x108c7
callq 0x4420
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
movq 0x9be9(%rip), %rdi      # 0x16ff0
callq 0x4420
movq %rax, %r12
movl $0x2, %edx
movq %rax, %rdi
leaq 0x34c2(%rip), %rsi      # 0x108e0
callq 0x4420
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x4370
jmp 0xd81f
movq %r15, %rsi
movq %rbx, %rdi
callq 0x4200
movq %rbx, %rdi
movl $0x20, %esi
xorl %edx, %edx
callq 0x44f0
movq %rbx, %rdi
xorl %esi, %esi
movq %rax, %rdx
callq 0x40d0
cmpq $0x0, -0x68(%rbp)
je 0xd47b
movl $0x1, %edx
leaq -0x70(%rbp), %rdi
xorl %esi, %esi
callq 0x40d0
leaq -0x70(%rbp), %rdi
callq 0xf89c
movl $0x30, %r12d
cmpw $0x2, %ax
jge 0xd6d3
leaq 0x349b(%rip), %rsi      # 0x10936
jmp 0xd7ee
movl $0x4, %edx
leaq -0x50(%rbp), %r12
movq %r12, %rdi
leaq -0x70(%rbp), %rbx
movq %rbx, %rsi
movq $-0x1, %rcx
callq 0x43c0
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4490
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xd4e3
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x43a0
movq -0x70(%rbp), %rax
movb (%rax), %r12b
cmpb $0x5e, %r12b
jne 0xd52b
cmpq $0x3, -0x68(%rbp)
jb 0xd52b
movsbl 0x1(%rax), %r12d
movl %r12d, %edi
callq 0x4600
testl %eax, %eax
je 0xd9fc
movl %r12d, %edi
callq 0x46d0
movl %eax, %r12d
movl $0x1, %edx
leaq -0x70(%rbp), %rdi
xorl %esi, %esi
callq 0x40d0
addb $-0x40, %r12b
movsbl %r12b, %esi
leaq 0xbe22(%rip), %rdi      # 0x19358
xorl %edx, %edx
callq 0x44f0
movq %rax, %rbx
cmpq $-0x1, %rax
sete %al
cmpl $0x1b, %ebx
sete %cl
orb %al, %cl
je 0xd75a
cmpb $0x9, %r12b
jne 0xd9e2
movb $0x5c, 0x9e62(%rip)     # 0x173c8
movb $0x74, %r12b
jmp 0xdbaa
movq %r13, %rdi
movq %rbx, %rsi
callq 0x44b0
leaq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
addq %rsi, %rdx
leaq -0x50(%rbp), %rbx
movq %rbx, %rdi
callq 0x731c
movl $0x6, %edx
movq %rbx, %rdi
movl $0x20, %esi
callq 0x44f0
movq %rbx, %rdi
xorl %esi, %esi
movq %rax, %rdx
callq 0x40d0
cmpq $0x0, -0x48(%rbp)
je 0xd612
movl $0x1, %edx
leaq -0x50(%rbp), %rdi
xorl %esi, %esi
callq 0x40d0
leaq 0xbf85(%rip), %rdi      # 0x19560
leaq -0x70(%rbp), %rsi
callq 0xe1dc
movq %rax, %rdi
leaq -0x50(%rbp), %rsi
callq 0x4200
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xd832
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x43a0
jmp 0xd832
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xd62b
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x43a0
movl $0x3b, %edx
movq 0x99b9(%rip), %rdi      # 0x16ff0
leaq 0x3428(%rip), %rsi      # 0x10a66
callq 0x4420
movq 0x99a6(%rip), %rcx      # 0x16ff0
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x4370
movsbl %al, %esi
movq 0x9988(%rip), %rdi      # 0x16ff0
callq 0x4040
movq %rax, %rdi
callq 0x4250
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
leaq 0x341b(%rip), %rsi      # 0x10aa2
callq 0x4420
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
movq %r12, %rdi
callq 0x4420
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
leaq 0x33ee(%rip), %rsi      # 0x10aa2
callq 0x4420
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x4370
jmp 0xd81f
leaq -0x70(%rbp), %rdi
callq 0xf89c
leaq 0xbc55(%rip), %rdi      # 0x19338
leaq 0x324c(%rip), %rsi      # 0x10936
cmpw $0xf, %ax
jle 0xd2dc
jmp 0xd7ee
movq %r13, %rdi
leaq -0x2a(%rbp), %rsi
callq 0x4070
movzwl -0x2a(%rbp), %eax
addl $-0xd, %eax
cmpw $-0xd, %ax
ja 0xd87f
movl $0x1b, %edx
movq 0x98ce(%rip), %rdi      # 0x16ff0
leaq 0x324b(%rip), %rsi      # 0x10974
callq 0x4420
movswl -0x2a(%rbp), %esi
movq 0x98b7(%rip), %rdi      # 0x16ff0
callq 0x4350
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x4370
jmp 0xdb52
movq -0x70(%rbp), %rcx
movb 0x1(%rcx), %al
cmpb $0x5e, %al
jne 0xd9bc
cmpq $0x3, -0x68(%rbp)
jb 0xd9bc
movsbl 0x2(%rcx), %r12d
movl %r12d, %edi
callq 0x4600
testl %eax, %eax
je 0xdb6a
movl %r12d, %edi
callq 0x46d0
addb $-0x40, %al
jmp 0xd9d1
leaq -0x50(%rbp), %rbx
movq %rbx, %rdi
leaq -0x4a8(%rbp), %rsi
callq 0x45e0
leaq 0xbd6e(%rip), %rdi      # 0x19520
movq %rbx, %rsi
callq 0x4490
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xd7d3
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x43a0
movl $0x27, %r12d
cmpq $0x4, 0xbd47(%rip)      # 0x19528
leaq 0x31dc(%rip), %rsi      # 0x109c4
ja 0xda32
movq 0x97fb(%rip), %rdi      # 0x16ff0
movq %r12, %rdx
callq 0x4420
movq 0x97ec(%rip), %rcx      # 0x16ff0
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x4370
movq 0x97d1(%rip), %r12      # 0x16ff0
movsbl %al, %esi
movq %r12, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x4250
movq %r13, %rdi
movq 0x975c(%rip), %rsi      # 0x16f98
callq 0x42a0
leaq -0x440(%rbp), %rdi
callq 0x4140
movq %r14, %r12
leaq -0x2b8(%rbp), %r14
movq %r15, %rbx
movq -0x2b8(%rbp), %rax
movq -0x18(%rax), %rax
leaq (%rax,%rbp), %rdi
addq $-0x2b8, %rdi           # imm = 0xFD48
testb $0x5, 0x20(%rdi)
je 0xd0ff
jmp 0xce87
leaq -0x50(%rbp), %rbx
movq %rbx, %rdi
leaq -0x4a8(%rbp), %rsi
callq 0x45e0
movswq -0x2a(%rbp), %rax
shlq $0x5, %rax
leaq 0xbafe(%rip), %rcx      # 0x193a0
leaq (%rax,%rcx), %rdi
addq $-0x20, %rdi
movq %rbx, %rsi
callq 0x4490
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xd8cb
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x43a0
movswq -0x2a(%rbp), %rax
xorl %edx, %edx
cmpq $0xa, %rax
setge %dl
shlq $0x5, %rax
leaq 0xbabc(%rip), %rcx      # 0x193a0
leaq (%rax,%rcx), %rdi
addq $-0x20, %rdi
orq $0x8, %rdx
xorl %esi, %esi
callq 0x40d0
movswq -0x2a(%rbp), %rax
shlq $0x5, %rax
leaq 0xba99(%rip), %rcx      # 0x193a0
cmpq $0x0, -0x18(%rax,%rcx)
je 0xdafe
leaq (%rax,%rcx), %rdi
addq $-0x20, %rdi
movl $0x1, %edx
xorl %esi, %esi
callq 0x40d0
movswq -0x2a(%rbp), %rax
shlq $0x5, %rax
leaq 0xba69(%rip), %rcx      # 0x193a0
leaq (%rax,%rcx), %rdi
addq $-0x20, %rdi
callq 0xf89c
cmpw $0x37, %ax
jl 0xd832
movl $0xc, %edx
movq 0x9696(%rip), %rdi      # 0x16ff0
leaq 0x3051(%rip), %rsi      # 0x109b2
callq 0x4420
movswl -0x2a(%rbp), %esi
movq 0x967f(%rip), %rdi      # 0x16ff0
callq 0x4350
movq %rax, %r12
movl $0xd, %edx
movq %rax, %rdi
leaq 0x3081(%rip), %rsi      # 0x10a09
callq 0x4420
movq %r12, %rdi
callq 0x41d0
movswq -0x2a(%rbp), %rax
shlq $0x5, %rax
leaq 0xb9fb(%rip), %rcx      # 0x193a0
leaq (%rax,%rcx), %rdi
addq $-0x20, %rdi
movl $0x36, %esi
callq 0xf97f
jmp 0xd832
movl $0x22, %r12d
leaq 0x2f1a(%rip), %rsi      # 0x108e3
cmpb $0x3f, %al
je 0xdbf7
movl %ebx, %ecx
movq 0xb97e(%rip), %rdx      # 0x19358
movb %al, (%rdx,%rcx)
jmp 0xd832
cmpb $0x1a, %r12b
jg 0xdae5
movb $0x5e, 0x99d5(%rip)     # 0x173c8
addb $0x40, %r12b
jmp 0xdbaa
movq 0xb8f5(%rip), %rsi      # 0x192f8
movq 0xb8f6(%rip), %rdx      # 0x19300
movq 0x95df(%rip), %rdi      # 0x16ff0
callq 0x4420
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x4370
jmp 0xd81f
movl $0x5, %edx
leaq 0xbae2(%rip), %rdi      # 0x19520
xorl %esi, %esi
callq 0x40d0
leaq 0xbad4(%rip), %rdi      # 0x19520
callq 0xf89c
cmpw $0x39, %ax
jl 0xd832
movl $0x2a, %edx
movq 0x9589(%rip), %rdi      # 0x16ff0
leaq 0x2f7e(%rip), %rsi      # 0x109ec
callq 0x4420
movq 0x9576(%rip), %rdi      # 0x16ff0
callq 0x41d0
leaq 0xba9a(%rip), %rdi      # 0x19520
movl $0x39, %esi
callq 0xf97f
jmp 0xd832
movq %r13, %rdi
leaq 0x992d(%rip), %rsi      # 0x173cc
callq 0x4070
cmpw $0x3e9, 0x991f(%rip)    # imm = 0x3E9
jb 0xd832
movl $0x2a, %edx
movq 0x9531(%rip), %rdi      # 0x16ff0
leaq 0x2f6a(%rip), %rsi      # 0x10a30
callq 0x4420
movq 0x951e(%rip), %rdi      # 0x16ff0
callq 0x41d0
movw $0x64, 0x98ec(%rip)     # 0x173cc
jmp 0xd832
cmpb $0x20, %r12b
jne 0xdba0
movb $0x53, 0x98d2(%rip)     # 0x173c8
movb $0x50, %r12b
jmp 0xdbaa
movl $0x1e, %edx
movq 0x94e6(%rip), %rdi      # 0x16ff0
leaq 0x2e7f(%rip), %rsi      # 0x10990
callq 0x4420
movswl -0x2a(%rbp), %esi
movq 0x94cf(%rip), %rdi      # 0x16ff0
callq 0x4350
movq %rax, %r12
movl $0x2, %edx
movq %rax, %rdi
leaq 0x2e77(%rip), %rsi      # 0x109af
callq 0x4420
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x4370
movsbl %al, %esi
movq %r12, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x4250
jmp 0xd832
movq 0xb787(%rip), %rsi      # 0x192f8
movq 0xb788(%rip), %rdx      # 0x19300
movq 0x9471(%rip), %rdi      # 0x16ff0
callq 0x4420
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x4370
jmp 0xdc28
movb %r12b, 0x9821(%rip)     # 0x173c8
xorl %r12d, %r12d
movb %r12b, 0x9818(%rip)     # 0x173c9
movl $0x1d, %edx
movq 0x9433(%rip), %rdi      # 0x16ff0
leaq 0x2d42(%rip), %rsi      # 0x10906
callq 0x4420
leaq 0x97f8(%rip), %rbx      # 0x173c8
movq %rbx, %rdi
callq 0x41b0
movl $0xc, %r12d
movq 0x940b(%rip), %rdi      # 0x16ff0
movq %rbx, %rsi
movq %rax, %rdx
callq 0x4420
leaq 0x2d2d(%rip), %rsi      # 0x10924
movq 0x93f2(%rip), %rdi      # 0x16ff0
movq %r12, %rdx
callq 0x4420
movq 0x93e3(%rip), %rcx      # 0x16ff0
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x4370
movq 0x93c8(%rip), %r12      # 0x16ff0
movsbl %al, %esi
movq %r12, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x4250
jmp 0xd832
leaq -0x90(%rbp), %r14
leaq 0xa23a(%rip), %r15      # 0x17e88
movq -0x4c0(%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4370
movsbl %al, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x46c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0xd05e
cmpq $0x0, -0x88(%rbp)
je 0xd05e
movq %r15, %rdi
movq %r14, %rsi
callq 0x95c4
jmp 0xdc4e
movq 0x9348(%rip), %rbx      # 0x16ff0
leaq 0x2df5(%rip), %rsi      # 0x10aa4
movl $0x3c, %edx
movq %rbx, %rdi
callq 0x4420
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x4370
movsbl %al, %esi
movq 0x9316(%rip), %rdi      # 0x16ff0
callq 0x4040
movq %rax, %rdi
callq 0x4250
movq 0xb692(%rip), %rdx      # 0x19380
leaq 0xb683(%rip), %rdi      # 0x19378
leaq 0x2de5(%rip), %rcx      # 0x10ae1
movl $0xf, %r8d
xorl %esi, %esi
callq 0x45b0
jmp 0xcec9
jmp 0xddc7
jmp 0xddc7
jmp 0xddc7
jmp 0xddc7
jmp 0xddc7
jmp 0xdda0
jmp 0xddc7
jmp 0xddc7
jmp 0xddc7
jmp 0xdd3a
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xddfa
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x43a0
jmp 0xddfa
jmp 0xddc2
movq %rax, %rbx
jmp 0xde1c
jmp 0xdd98
jmp 0xdd98
movq %rax, %rbx
leaq -0x2a8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xde41
movq -0x2a8(%rbp), %rsi
incq %rsi
callq 0x43a0
jmp 0xde41
movq %rax, %rbx
jmp 0xde41
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xddca
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x43a0
jmp 0xddca
jmp 0xddc2
jmp 0xddc2
movq %rax, %rbx
jmp 0xddfa
movq %rax, %rbx
movq 0x91c7(%rip), %rsi      # 0x16f98
leaq -0x4c0(%rbp), %rdi
callq 0x42a0
leaq -0x440(%rbp), %rdi
callq 0x4140
jmp 0xddfa
movq %rax, %rbx
leaq -0x4c0(%rbp), %rdi
callq 0x40f0
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0xde1c
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x43a0
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0xde35
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x43a0
leaq -0x2b8(%rbp), %rdi
callq 0x40f0
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0xde5d
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x43a0
movq %rbx, %rdi
callq 0x4670