// File: /workspace/github_cpp_makefile_star2_O3/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 $0x4a8, %rsp            # imm = 0x4A8
movq %rdi, -0x98(%rbp)
leaq -0x80(%rbp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
leaq -0x2c0(%rbp), %rdi
callq 0xf950
leaq -0x90(%rbp), %rdi
leaq -0x2c0(%rbp), %rsi
callq 0x4480
leaq 0xc81e(%rip), %rdi      # 0x19540
movq %rax, %rsi
callq 0x4200
leaq -0x2b0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xcd49
movq -0x2b0(%rbp), %rsi
incq %rsi
callq 0x4390
leaq 0x3b1b(%rip), %rsi      # 0x1086b
leaq -0x90(%rbp), %rdi
callq 0x46e0
movq -0x90(%rbp), %rsi
leaq -0x2c0(%rbp), %rdi
movl $0x8, %edx
callq 0x4690
leaq -0x60(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0xa8(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x36e0(%rip), %rdx      # 0x10479
leaq -0xb8(%rbp), %rdi
movq %rdx, %rsi
callq 0x891a
movq -0x2c0(%rbp), %rax
movq -0x18(%rax), %rax
testb $0x5, -0x2a0(%rbp,%rax)
je 0xd061
leaq -0x2c0(%rbp), %rdi
callq 0x40a0
cmpq $0x0, 0xc5ab(%rip)      # 0x19380
jne 0xce06
movq -0x98(%rbp), %rsi
cmpq $0x0, 0x8(%rsi)
jne 0xcdfa
cmpq $0x0, -0xb0(%rbp)
leaq -0xb8(%rbp), %rsi
je 0xdc22
leaq 0xc577(%rip), %rdi      # 0x19378
callq 0x4200
leaq 0xc54b(%rip), %rsi      # 0x19358
leaq -0x70(%rbp), %rdi
callq 0x4200
movq -0x68(%rbp), %rax
testq %rax, %rax
je 0xcea5
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 0xe623
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe701
movq -0x68(%rbp), %rax
testq %rax, %rax
je 0xcea5
movq -0x70(%rbp), %rcx
movl $0x1, %edi
cmpq %rdi, %rax
je 0xcea7
movb -0x1(%rcx,%rdi), %sil
leaq 0x1(%rdi), %rdx
cmpb (%rcx,%rdi), %sil
movq %rdx, %rdi
jne 0xce60
cmpq %rdx, %rax
je 0xcea7
leaq (%rcx,%rdx), %rdi
addq $-0x2, %rdi
movl %esi, %r8d
movb (%rcx,%rdx), %sil
cmpb %sil, %r8b
je 0xce97
movb %sil, 0x1(%rdi)
incq %rdi
incq %rdx
cmpq %rdx, %rax
jne 0xce84
movq -0x68(%rbp), %rax
jmp 0xcea7
xorl %eax, %eax
cmpq 0xc4b2(%rip), %rax      # 0x19360
jae 0xcf09
movq 0xa139(%rip), %rbx      # 0x16ff0
leaq 0x3c23(%rip), %rsi      # 0x10ae1
movl $0x45, %edx
movq %rbx, %rdi
callq 0x4410
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x4360
movsbl %al, %esi
movq 0xa107(%rip), %rdi      # 0x16ff0
callq 0x4040
movq %rax, %rdi
callq 0x4250
leaq 0xc45b(%rip), %rdi      # 0x19358
leaq 0xc394(%rip), %rsi      # 0x19298
callq 0x4200
cmpq $0x0, 0xc617(%rip)      # 0x19528
jne 0xcf69
cmpb $0x1, 0xc676(%rip)      # 0x19590
jne 0xcf69
movb $0x0, 0xc66d(%rip)      # 0x19590
movq 0xa0c6(%rip), %rbx      # 0x16ff0
leaq 0x3bf6(%rip), %rsi      # 0x10b27
movl $0x4a, %edx
movq %rbx, %rdi
callq 0x4410
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x4360
movsbl %al, %esi
movq 0xa094(%rip), %rdi      # 0x16ff0
callq 0x4040
movq %rax, %rdi
callq 0x4250
leaq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
movq %rax, (%rdi)
movq 0xc5c5(%rip), %rsi      # 0x19540
movq 0xc5c6(%rip), %rdx      # 0x19548
addq %rsi, %rdx
callq 0x731a
leaq 0x3be1(%rip), %rsi      # 0x10b72
leaq -0x50(%rbp), %rdi
callq 0x46e0
movq -0x50(%rbp), %rsi
leaq -0x4c8(%rbp), %rbx
movq %rbx, %rdi
movl $0x8, %edx
callq 0x4690
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xcfcb
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x4390
movq -0x4c8(%rbp), %rax
movq -0x18(%rax), %rax
testb $0x5, -0x4a8(%rbp,%rax)
je 0xdbc1
leaq -0x4c8(%rbp), %rdi
callq 0x40f0
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0xd012
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x4390
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0xd02b
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x4390
leaq -0x2c0(%rbp), %rdi
callq 0x40f0
movq -0x90(%rbp), %rdi
cmpq %r13, %rdi
je 0xd04f
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x4390
addq $0x4a8, %rsp            # imm = 0x4A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq (%rax,%rbp), %rdi
addq $-0x2c0, %rdi           # imm = 0xFD40
leaq -0x90(%rbp), %r12
leaq -0x4c8(%rbp), %r15
leaq -0x70(%rbp), %rbx
movl $0xa, %esi
callq 0x4360
movsbl %al, %edx
leaq -0x2c0(%rbp), %rdi
movq %r12, %rsi
callq 0x46b0
cmpq $0x0, -0x88(%rbp)
je 0xd7d0
movq -0x90(%rbp), %rax
cmpb $0x23, (%rax)
je 0xd7d0
movq %r15, %rdi
movq %r12, %rsi
movl $0x8, %edx
callq 0x45e0
movq %r15, %rdi
movq %rbx, %rsi
callq 0x44a0
movq %rbx, %rdi
leaq 0x379a(%rip), %rsi      # 0x10877
callq 0x4110
testl %eax, %eax
je 0xd1d0
movq %rbx, %rdi
leaq 0x37b8(%rip), %rsi      # 0x108ac
callq 0x4110
testl %eax, %eax
je 0xd258
movq %rbx, %rdi
leaq 0x37a8(%rip), %rsi      # 0x108b3
callq 0x4110
testl %eax, %eax
je 0xd314
movq %rbx, %rdi
leaq 0x37ff(%rip), %rsi      # 0x10921
callq 0x4110
testl %eax, %eax
je 0xd3b2
movq %rbx, %rdi
leaq 0x381e(%rip), %rsi      # 0x10957
callq 0x4110
testl %eax, %eax
je 0xd4e0
movq %rbx, %rdi
leaq 0x380d(%rip), %rsi      # 0x1095d
callq 0x4110
testl %eax, %eax
je 0xd668
movq %rbx, %rdi
leaq 0x3848(%rip), %rsi      # 0x109af
callq 0x4110
testl %eax, %eax
je 0xd71b
movq %rbx, %rdi
leaq 0x3889(%rip), %rsi      # 0x10a07
callq 0x4110
leaq 0xc406(%rip), %rsi      # 0x19590
testl %eax, %eax
je 0xd1c3
movq %rbx, %rdi
leaq 0x3877(%rip), %rsi      # 0x10a0f
callq 0x4110
testl %eax, %eax
je 0xd9c9
movq %rbx, %rdi
leaq 0x389c(%rip), %rsi      # 0x10a4b
callq 0x4110
leaq 0xc3d6(%rip), %rsi      # 0x19591
testl %eax, %eax
jne 0xd59c
movq %r15, %rdi
callq 0x4310
jmp 0xd7b5
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4200
movq %rbx, %rdi
movl $0x20, %esi
xorl %edx, %edx
callq 0x44e0
movq %rbx, %rdi
xorl %esi, %esi
movq %rax, %rdx
callq 0x40d0
movq %rbx, %rdi
callq 0xfca2
cmpq $0x0, -0x68(%rbp)
je 0xd59c
movq %rbx, %rdi
callq 0xf738
leaq 0xc0ff(%rip), %rdi      # 0x19318
cmpw $0xb, %ax
jl 0xd24b
movq %rbx, %rdi
movl $0xa, %esi
callq 0xf81e
movl $0x2f, %edx
movq 0x9db8(%rip), %rdi      # 0x16ff0
leaq 0x363d(%rip), %rsi      # 0x1087c
callq 0x4410
leaq 0xc0cd(%rip), %rdi      # 0x19318
movq %rbx, %rsi
callq 0x4200
jmp 0xd7b5
movq %r15, %rdi
movq %rbx, %rsi
callq 0x44a0
leaq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
leaq -0x50(%rbp), %r14
movq %r14, %rdi
leaq 0x3200(%rip), %rdx      # 0x10479
movq %rdx, %rsi
callq 0x891a
movq %r15, %rdi
movq %r14, %rsi
callq 0x44a0
cmpq $0x0, -0x68(%rbp)
je 0xd583
cmpq $0x0, -0x48(%rbp)
je 0xd583
cmpq $0x0, -0xb0(%rbp)
jne 0xd2bc
leaq -0xb8(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x4200
cmpq $0x0, 0xc0bc(%rip)      # 0x19380
jne 0xd561
movq -0x98(%rbp), %rax
movq 0x8(%rax), %rdx
cmpq -0x68(%rbp), %rdx
jne 0xd561
testq %rdx, %rdx
je 0xd2ff
movq -0x70(%rbp), %rsi
movq -0x98(%rbp), %rax
movq (%rax), %rdi
callq 0x43a0
testl %eax, %eax
jne 0xd561
leaq 0xc072(%rip), %rdi      # 0x19378
leaq -0x50(%rbp), %rsi
callq 0x4200
jmp 0xd561
leaq -0x50(%rbp), %r14
movq %r14, %rdi
leaq -0x4b0(%rbp), %rsi
callq 0x45d0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4480
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xd34b
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x4390
cmpq $0x5, -0x68(%rbp)
ja 0xd413
movl $0x18, %edx
movq 0x9c8e(%rip), %rdi      # 0x16ff0
leaq 0x354e(%rip), %rsi      # 0x108b7
callq 0x4410
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
movq 0x9c73(%rip), %rdi      # 0x16ff0
callq 0x4410
movq %rax, %r14
movl $0x2, %edx
movq %rax, %rdi
leaq 0x353c(%rip), %rsi      # 0x108d0
callq 0x4410
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4360
jmp 0xd7a2
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4200
movq %rbx, %rdi
movl $0x20, %esi
xorl %edx, %edx
callq 0x44e0
movq %rbx, %rdi
xorl %esi, %esi
movq %rax, %rdx
callq 0x40d0
cmpq $0x0, -0x68(%rbp)
je 0xd3ef
movl $0x1, %edx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x40d0
movq %rbx, %rdi
callq 0xf738
movl $0x30, %r14d
cmpw $0x2, %ax
jge 0xd643
leaq 0x3518(%rip), %rsi      # 0x10926
jmp 0xd771
movl $0x4, %edx
movq %r14, %rdi
movq %rbx, %rsi
movq $-0x1, %rcx
callq 0x43b0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4480
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xd44e
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x4390
movq -0x70(%rbp), %rax
movb (%rax), %r14b
cmpb $0x5e, %r14b
jne 0xd498
movb $0x5e, %r14b
cmpq $0x3, -0x68(%rbp)
jb 0xd498
movsbl 0x1(%rax), %r14d
movl %r14d, %edi
callq 0x45f0
testl %eax, %eax
je 0xda32
movl %r14d, %edi
callq 0x46c0
movl %eax, %r14d
movl $0x1, %edx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x40d0
addb $-0x40, %r14b
movsbl %r14b, %esi
leaq 0xbeb5(%rip), %rdi      # 0x19358
xorl %edx, %edx
callq 0x44e0
cmpq $-0x1, %rax
sete %cl
movl %eax, %r13d
cmpq $0x1b, %r13
sete %al
orb %cl, %al
je 0xd6c9
cmpb $0x9, %r14b
jne 0xd932
movb $0x5c, 0x9ef4(%rip)     # 0x173c8
movb $0x74, %r14b
leaq -0x80(%rbp), %r13
jmp 0xdae1
movq %r15, %rdi
movq %rbx, %rsi
callq 0x44a0
leaq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
addq %rsi, %rdx
leaq -0x50(%rbp), %r14
movq %r14, %rdi
callq 0x731a
movl $0x6, %edx
movq %r14, %rdi
movl $0x20, %esi
callq 0x44e0
movq %r14, %rdi
xorl %esi, %esi
movq %rax, %rdx
callq 0x40d0
cmpq $0x0, -0x48(%rbp)
je 0xd583
movl $0x1, %edx
leaq -0x50(%rbp), %rdi
xorl %esi, %esi
callq 0x40d0
leaq 0xc013(%rip), %rdi      # 0x19560
movq %rbx, %rsi
callq 0xe15c
movq %rax, %rdi
leaq -0x50(%rbp), %rsi
callq 0x4200
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xd7b5
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x4390
jmp 0xd7b5
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xd59c
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x4390
movl $0x3b, %edx
movq 0x9a48(%rip), %rdi      # 0x16ff0
leaq 0x34a7(%rip), %rsi      # 0x10a56
callq 0x4410
movq 0x9a35(%rip), %rcx      # 0x16ff0
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x4360
movsbl %al, %esi
movq 0x9a17(%rip), %rdi      # 0x16ff0
callq 0x4040
movq %rax, %rdi
callq 0x4250
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
leaq 0x349a(%rip), %rsi      # 0x10a92
callq 0x4410
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
movq %r14, %rdi
callq 0x4410
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
leaq 0x346d(%rip), %rsi      # 0x10a92
callq 0x4410
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4360
jmp 0xd7a2
movq %rbx, %rdi
callq 0xf738
leaq 0xbce6(%rip), %rdi      # 0x19338
leaq 0x32cd(%rip), %rsi      # 0x10926
cmpw $0xf, %ax
jle 0xd24b
jmp 0xd771
movq %r15, %rdi
leaq -0x2a(%rbp), %rsi
callq 0x4070
movzwl -0x2a(%rbp), %eax
addl $-0xd, %eax
cmpw $-0xd, %ax
ja 0xd7f5
movl $0x1b, %edx
movq 0x995f(%rip), %rdi      # 0x16ff0
leaq 0x32cc(%rip), %rsi      # 0x10964
callq 0x4410
movswl -0x2a(%rbp), %esi
movq 0x9948(%rip), %rdi      # 0x16ff0
callq 0x4340
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4360
jmp 0xdabf
movq -0x70(%rbp), %rcx
movzbl 0x1(%rcx), %eax
cmpl $0x3f, %eax
je 0xd9b3
cmpl $0x5e, %eax
jne 0xd707
movb $0x5e, %al
cmpq $0x3, -0x68(%rbp)
jb 0xd707
movsbl 0x2(%rcx), %r14d
movl %r14d, %edi
callq 0x45f0
testl %eax, %eax
je 0xdb8a
movl %r14d, %edi
callq 0x46c0
addb $-0x40, %al
movq 0xbc4a(%rip), %rcx      # 0x19358
movb %al, (%rcx,%r13)
leaq -0x80(%rbp), %r13
jmp 0xd7b5
leaq -0x50(%rbp), %r14
movq %r14, %rdi
leaq -0x4b0(%rbp), %rsi
callq 0x45d0
leaq 0xbdeb(%rip), %rdi      # 0x19520
movq %r14, %rsi
callq 0x4480
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xd756
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x4390
movl $0x27, %r14d
cmpq $0x4, 0xbdc4(%rip)      # 0x19528
leaq 0x3249(%rip), %rsi      # 0x109b4
ja 0xd950
movq 0x9878(%rip), %rdi      # 0x16ff0
movq %r14, %rdx
callq 0x4410
movq 0x9869(%rip), %rcx      # 0x16ff0
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x4360
movq 0x984e(%rip), %r14      # 0x16ff0
movsbl %al, %esi
movq %r14, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x4250
movq %r15, %rdi
movq 0x97d9(%rip), %rsi      # 0x16f98
callq 0x42a0
leaq -0x448(%rbp), %rdi
callq 0x4140
movq -0x2c0(%rbp), %rax
movq -0x18(%rax), %rax
leaq (%rax,%rbp), %rdi
addq $-0x2c0, %rdi           # imm = 0xFD40
testb $0x5, 0x20(%rdi)
je 0xd07e
jmp 0xcdc1
leaq -0x50(%rbp), %r14
movq %r14, %rdi
leaq -0x4b0(%rbp), %rsi
callq 0x45d0
movswq -0x2a(%rbp), %rax
shlq $0x5, %rax
leaq 0xbb88(%rip), %rcx      # 0x193a0
leaq (%rax,%rcx), %rdi
addq $-0x20, %rdi
movq %r14, %rsi
callq 0x4480
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xd841
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x4390
movswq -0x2a(%rbp), %rax
xorl %edx, %edx
cmpq $0xa, %rax
setge %dl
shlq $0x5, %rax
leaq 0xbb46(%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 0xbb23(%rip), %rcx      # 0x193a0
cmpq $0x0, -0x18(%rax,%rcx)
je 0xda6c
leaq (%rax,%rcx), %rdi
addq $-0x20, %rdi
movl $0x1, %edx
xorl %esi, %esi
callq 0x40d0
movswq -0x2a(%rbp), %rax
shlq $0x5, %rax
leaq 0xbaf3(%rip), %rcx      # 0x193a0
leaq (%rax,%rcx), %rdi
addq $-0x20, %rdi
callq 0xf738
cmpw $0x37, %ax
jl 0xd7b5
movl $0xc, %edx
movq 0x9720(%rip), %rdi      # 0x16ff0
leaq 0x30cb(%rip), %rsi      # 0x109a2
callq 0x4410
movswl -0x2a(%rbp), %esi
movq 0x9709(%rip), %rdi      # 0x16ff0
callq 0x4340
movq %rax, %r14
movl $0xd, %edx
movq %rax, %rdi
leaq 0x30fb(%rip), %rsi      # 0x109f9
callq 0x4410
movq %r14, %rdi
callq 0x41d0
movswq -0x2a(%rbp), %rax
shlq $0x5, %rax
leaq 0xba85(%rip), %rcx      # 0x193a0
leaq (%rax,%rcx), %rdi
addq $-0x20, %rdi
movl $0x36, %esi
callq 0xf81e
jmp 0xd7b5
cmpb $0x1a, %r14b
leaq -0x80(%rbp), %r13
jg 0xda19
movb $0x5e, 0x9a81(%rip)     # 0x173c8
addb $0x40, %r14b
jmp 0xdae1
movl $0x5, %edx
leaq 0xbbc4(%rip), %rdi      # 0x19520
xorl %esi, %esi
callq 0x40d0
leaq 0xbbb6(%rip), %rdi      # 0x19520
callq 0xf738
cmpw $0x39, %ax
jl 0xd7b5
movl $0x2a, %edx
movq 0x966b(%rip), %rdi      # 0x16ff0
leaq 0x3050(%rip), %rsi      # 0x109dc
callq 0x4410
movq 0x9658(%rip), %rdi      # 0x16ff0
callq 0x41d0
leaq 0xbb7c(%rip), %rdi      # 0x19520
movl $0x39, %esi
callq 0xf81e
jmp 0xd7b5
movl $0x22, %r14d
leaq 0x2f13(%rip), %rsi      # 0x108d3
leaq -0x80(%rbp), %r13
jmp 0xdb41
movq %r15, %rdi
leaq 0x99f9(%rip), %rsi      # 0x173cc
callq 0x4070
cmpw $0x3e9, 0x99eb(%rip)    # imm = 0x3E9
jb 0xd7b5
movl $0x2a, %edx
movq 0x95fd(%rip), %rdi      # 0x16ff0
leaq 0x3026(%rip), %rsi      # 0x10a20
callq 0x4410
movq 0x95ea(%rip), %rdi      # 0x16ff0
callq 0x41d0
movw $0x64, 0x99b8(%rip)     # 0x173cc
jmp 0xd7b5
cmpb $0x20, %r14b
jne 0xdad7
movb $0x53, 0x999e(%rip)     # 0x173c8
movb $0x50, %r14b
jmp 0xdae1
movq 0xb8bf(%rip), %rsi      # 0x192f8
movq 0xb8c0(%rip), %rdx      # 0x19300
movq 0x95a9(%rip), %rdi      # 0x16ff0
leaq -0x80(%rbp), %r13
callq 0x4410
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4360
jmp 0xd7a2
movl $0x1e, %edx
movq 0x9578(%rip), %rdi      # 0x16ff0
leaq 0x2f01(%rip), %rsi      # 0x10980
callq 0x4410
movswl -0x2a(%rbp), %esi
movq 0x9561(%rip), %rdi      # 0x16ff0
callq 0x4340
movq %rax, %r14
movl $0x2, %edx
movq %rax, %rdi
leaq 0x2ef9(%rip), %rsi      # 0x1099f
callq 0x4410
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4360
movsbl %al, %esi
movq %r14, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x4250
jmp 0xd7b5
movb %r14b, 0x98ea(%rip)     # 0x173c8
xorl %r14d, %r14d
movb %r14b, 0x98e1(%rip)     # 0x173c9
movl $0x1d, %edx
movq 0x94fc(%rip), %rdi      # 0x16ff0
leaq 0x2dfb(%rip), %rsi      # 0x108f6
callq 0x4410
movq %r15, %r12
movq %r13, %r15
leaq 0x98bb(%rip), %r13      # 0x173c8
movq %r13, %rdi
callq 0x41b0
movl $0xc, %r14d
movq 0x94ce(%rip), %rdi      # 0x16ff0
movq %r13, %rsi
movq %r15, %r13
movq %r12, %r15
leaq -0x90(%rbp), %r12
movq %rax, %rdx
callq 0x4410
leaq 0x2dd3(%rip), %rsi      # 0x10914
movq 0x94a8(%rip), %rdi      # 0x16ff0
movq %r14, %rdx
callq 0x4410
movq 0x9499(%rip), %rcx      # 0x16ff0
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x4360
movq 0x947e(%rip), %r14      # 0x16ff0
movsbl %al, %esi
movq %r14, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x4250
jmp 0xd7b5
movq 0xb767(%rip), %rsi      # 0x192f8
movq 0xb768(%rip), %rdx      # 0x19300
movq 0x9451(%rip), %rdi      # 0x16ff0
leaq -0x80(%rbp), %r13
callq 0x4410
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4360
jmp 0xdb72
leaq -0x90(%rbp), %r14
leaq 0xa2b9(%rip), %r15      # 0x17e88
movq -0x4c8(%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4360
movsbl %al, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x46b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0xcfe4
cmpq $0x0, -0x88(%rbp)
je 0xcfe4
movq %r15, %rdi
movq %r14, %rsi
callq 0x9584
jmp 0xdbcf
movq 0x93c7(%rip), %rbx      # 0x16ff0
leaq 0x2e64(%rip), %rsi      # 0x10a94
movl $0x3c, %edx
movq %rbx, %rdi
callq 0x4410
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x4360
movsbl %al, %esi
movq 0x9395(%rip), %rdi      # 0x16ff0
callq 0x4040
movq %rax, %rdi
callq 0x4250
movq 0xb711(%rip), %rdx      # 0x19380
leaq 0xb702(%rip), %rdi      # 0x19378
leaq 0x2e54(%rip), %rcx      # 0x10ad1
movl $0xf, %r8d
xorl %esi, %esi
callq 0x45a0
jmp 0xce06
jmp 0xdd48
jmp 0xdd48
jmp 0xdd48
jmp 0xdd48
jmp 0xdd48
jmp 0xdd21
jmp 0xdd48
jmp 0xdd48
jmp 0xdd48
jmp 0xdcbb
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xdd7b
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x4390
jmp 0xdd7b
jmp 0xdd43
movq %rax, %rbx
jmp 0xdd9d
jmp 0xdd19
jmp 0xdd19
movq %rax, %rbx
leaq -0x2b0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xddc2
movq -0x2b0(%rbp), %rsi
incq %rsi
callq 0x4390
jmp 0xddc2
movq %rax, %rbx
jmp 0xddc2
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0xdd4b
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x4390
jmp 0xdd4b
jmp 0xdd43
jmp 0xdd43
movq %rax, %rbx
jmp 0xdd7b
movq %rax, %rbx
movq 0x9246(%rip), %rsi      # 0x16f98
leaq -0x4c8(%rbp), %rdi
callq 0x42a0
leaq -0x448(%rbp), %rdi
callq 0x4140
jmp 0xdd7b
movq %rax, %rbx
leaq -0x4c8(%rbp), %rdi
callq 0x40f0
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0xdd9d
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x4390
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0xddb6
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x4390
leaq -0x2c0(%rbp), %rdi
callq 0x40f0
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0xddde
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x4390
movq %rbx, %rdi
callq 0x4660