// File: /workspace/github_c_makefile_star2_O3/coyove[P]chann/./src/config.h
// Function: ConfigManager::load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void load(std::string s){
		std::ifstream ifs(s);
		std::string line;

		std::string cur_space = "";
		std::stack<std::string> stack_space;

		while(getline(ifs, line)){
			line = trim(line);
			
			if(line.empty()) continue;
			if(line[0] == '#') continue;

			std::stringstream ss(line);

			std::vector<std::string> v;
			std::string tmp;

			while(getline(ss, tmp, ' ')){
				tmp = trim(tmp);
				// tmp = cc_replace(tmp, "\t", "");
				if(!tmp.empty()) v.push_back(tmp);
			}

			if(v.size() > 1 && v[1] == "{"){
				stack_space.push(v[0]);
				cur_space += (v[0] + "::");
				continue;
			}

			if(line == "}"){
				cur_space = cur_space.substr(0, cur_space.size() - 2 - stack_space.top().size());
				// std::cout << cur_space << std::endl;
				stack_space.pop();
				continue;
			}

			if(v.size() < 2) continue;
						// std::cout << ";" << line << ";" << std::endl;

			std::string val = v[1];
			std::string key = cur_space + v[0];

			// std::cout << key << ",'" << v[0] << "'" << val << std::endl;

			// std::string alias = "dummy";
			// if(v.size() == 4 && v[2] == "alias") alias = cur_space + v[3];

			if((val[0] == '\'' && val[val.size() - 1] == '\'') || 
				(val[0] == '"' && val[val.size() - 1] == '"'))
			{
				configs_str[key] = val.substr(1, val.size() - 2);
				// configs_str[alias] = configs_str[key];
			}
			else if(val == "on" || val == "off"){
				configs_bool[key] = (val == "on");
				// configs_bool[alias] = configs_bool[key];
			}
			else{
				configs_int[key] = atol(val.c_str());
				// configs_int[alias] = configs_int[key];
			}

		}

		if(!stack_space.empty()) throw std::logic_error("Incorrect namespaces: " + stack_space.top());
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x4d8, %rsp            # imm = 0x4D8
movq %rdi, %rbx
leaq 0x2d0(%rsp), %rdi
movl $0x8, %edx
callq 0xcbc0
leaq 0x88(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x68(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x5ea13(%rip), %rdx     # 0x77672
leaq 0x58(%rsp), %rdi
movq %rdx, %rsi
callq 0xedf0
xorps %xmm0, %xmm0
leaq 0xf0(%rsp), %rdi
movaps %xmm0, 0x40(%rdi)
movaps %xmm0, 0x30(%rdi)
movaps %xmm0, 0x20(%rdi)
movaps %xmm0, 0x10(%rdi)
movaps %xmm0, (%rdi)
xorl %esi, %esi
callq 0x1c1c4
leaq 0x10(%rsp), %rbp
leaq 0x38(%rbx), %rax
movq %rax, 0x98(%rsp)
movq %rbx, 0xa0(%rsp)
leaq 0x70(%rbx), %rax
movq %rax, 0xa8(%rsp)
leaq 0x78(%rsp), %r15
leaq 0x148(%rsp), %r12
leaq 0x38(%rsp), %r13
movq %rsp, %r14
movq %r15, %rbx
movq 0x2d0(%rsp), %rax
movq -0x18(%rax), %rdi
leaq 0x2d0(%rsp), %r15
addq %r15, %rdi
movl $0xa, %esi
callq 0xcb80
movsbl %al, %edx
movq %r15, %rdi
movq %rbx, %rsi
callq 0xc030
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x190b3
movq %r12, %rdi
movq %rbx, %r15
movq %rbx, %rsi
callq 0x1e100
movq %r15, %rdi
movq %r12, %rsi
callq 0xc5e0
movq 0x148(%rsp), %rdi
leaq 0x158(%rsp), %rax
cmpq %rax, %rdi
je 0x18d42
callq 0xc640
cmpq $0x0, 0x80(%rsp)
je 0x18ccb
movq 0x78(%rsp), %rax
cmpb $0x23, (%rax)
je 0x18ccb
movq %r12, %rdi
movq %r15, %rsi
movl $0x18, %edx
callq 0xcd30
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
xorl %ecx, %ecx
movq %rcx, 0x30(%rsp)
leaq 0x48(%rsp), %rax
movq %rax, 0x38(%rsp)
movq %rcx, 0x40(%rsp)
movb $0x0, 0x48(%rsp)
movq %r12, %rdi
movq %r13, %rsi
movl $0x20, %edx
callq 0xc030
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x18deb
movq %r14, %rdi
movq %r13, %rsi
callq 0x1e100
movq %r13, %rdi
movq %r14, %rsi
callq 0xc5e0
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x18dd4
callq 0xc640
cmpq $0x0, 0x40(%rsp)
je 0x18d92
leaq 0x20(%rsp), %rdi
movq %r13, %rsi
callq 0x1e18a
jmp 0x18d92
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rax
subq %rdi, %rax
cmpq $0x21, %rax
jb 0x18e16
addq $0x20, %rdi
leaq 0x5f4db(%rip), %rsi     # 0x782e4
callq 0xca10
testl %eax, %eax
je 0x18f6c
movq %r15, %rdi
leaq 0x5c7d8(%rip), %rsi     # 0x755f8
callq 0xca10
testl %eax, %eax
je 0x18efc
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rcx
subq %rax, %rcx
cmpq $0x21, %rcx
jb 0x19074
movq %rbp, (%rsp)
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x12380
movq 0x20(%rsp), %rdx
leaq 0xb0(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x1e1c7
movq (%rsp), %rax
movzbl (%rax), %ecx
cmpl $0x22, %ecx
je 0x18fc0
cmpl $0x27, %ecx
jne 0x18fd0
movq 0x8(%rsp), %rcx
cmpb $0x27, -0x1(%rax,%rcx)
jne 0x18fd0
addq $-0x2, %rcx
movl $0x1, %edx
leaq 0xd0(%rsp), %rdi
movq %r14, %rsi
callq 0xcb00
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x11edc
movq %rax, %rdi
leaq 0xd0(%rsp), %rsi
callq 0xc5e0
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x1904c
callq 0xc640
jmp 0x1904c
movq 0x120(%rsp), %rax
cmpq 0x128(%rsp), %rax
jne 0x18f22
movq 0x138(%rsp), %rax
movq -0x8(%rax), %rax
movl $0x200, %ecx            # imm = 0x200
addq %rcx, %rax
movq 0x60(%rsp), %rcx
addq $-0x2, %rcx
subq -0x18(%rax), %rcx
movq %r14, %rdi
leaq 0x58(%rsp), %rbx
movq %rbx, %rsi
xorl %edx, %edx
callq 0xcb00
movq %rbx, %rdi
movq %r14, %rsi
callq 0xc5e0
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x18f5a
callq 0xc640
leaq 0xf0(%rsp), %rdi
callq 0x1e634
jmp 0x19074
movq 0x20(%rsp), %rsi
leaq 0xf0(%rsp), %rdi
callq 0x1e3bc
movq 0x20(%rsp), %rax
movq %rbp, (%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x12380
movq %r14, %rdi
leaq 0x592fc(%rip), %rsi     # 0x7229f
callq 0xc790
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
leaq 0x58(%rsp), %rdi
callq 0xc830
jmp 0x19066
movq 0x8(%rsp), %rcx
cmpb $0x22, -0x1(%rax,%rcx)
je 0x18e9b
movq %r14, %rdi
leaq 0x5f93a(%rip), %rsi     # 0x78914
callq 0xca10
testl %eax, %eax
je 0x1901c
movq %r14, %rdi
leaq 0x58c79(%rip), %rsi     # 0x71c66
callq 0xca10
testl %eax, %eax
je 0x1901c
movq (%rsp), %rdi
callq 0xc710
movq %rax, %r15
movq 0x98(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x12416
movl %r15d, (%rax)
jmp 0x19049
movq %r14, %rdi
leaq 0x5f8ee(%rip), %rsi     # 0x78914
callq 0xca10
movl %eax, %r15d
movq 0xa8(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x1dbe6
testl %r15d, %r15d
sete (%rax)
movq %rbx, %r15
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x19066
callq 0xc640
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x19074
callq 0xc640
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x19088
callq 0xc640
leaq 0x20(%rsp), %rdi
callq 0x11c2a
movq %r12, %rdi
movq 0x7af34(%rip), %rsi     # 0x93fd0
callq 0xc880
leaq 0x1c8(%rsp), %rdi
callq 0xc7d0
jmp 0x18ccb
movq 0x120(%rsp), %rax
cmpq 0x100(%rsp), %rax
jne 0x1911c
leaq 0xf0(%rsp), %rdi
callq 0x19f2c
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x190e6
callq 0xc640
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x190fd
callq 0xc640
leaq 0x2d0(%rsp), %rdi
callq 0xc060
addq $0x4d8, %rsp            # imm = 0x4D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0xc440
movq %rax, %r14
movq 0x120(%rsp), %rdx
cmpq 0x128(%rsp), %rdx
jne 0x1914c
movq 0x138(%rsp), %rax
movl $0x200, %edx            # imm = 0x200
addq -0x8(%rax), %rdx
addq $-0x20, %rdx
leaq 0x58b28(%rip), %rsi     # 0x71c7f
leaq 0x148(%rsp), %rdi
callq 0x11c73
movb $0x1, %bpl
leaq 0x148(%rsp), %rsi
movq %r14, %rdi
callq 0xc180
xorl %ebp, %ebp
movq 0x7ae70(%rip), %rsi     # 0x93ff0
movq 0x7ae59(%rip), %rdx     # 0x93fe0
movq %r14, %rdi
callq 0xc720
movq %rax, %rbx
movq 0x148(%rsp), %rdi
leaq 0x158(%rsp), %rax
cmpq %rax, %rdi
je 0x191ac
callq 0xc640
testb %bpl, %bpl
jne 0x191b9
jmp 0x19282
movq %rax, %rbx
movq %r14, %rdi
callq 0xc9c0
jmp 0x19282
jmp 0x191f7
movq %rax, %rbx
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x191fa
callq 0xc640
jmp 0x191fa
movq %rax, %rbx
jmp 0x1928f
movq %rax, %rbx
jmp 0x192a3
movq %rax, %rbx
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x19223
callq 0xc640
jmp 0x19223
jmp 0x19240
jmp 0x19220
jmp 0x19240
jmp 0x19220
jmp 0x19240
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x19243
callq 0xc640
jmp 0x19243
jmp 0x19240
jmp 0x19239
jmp 0x19239
movq %rax, %rbx
jmp 0x19282
jmp 0x19240
movq %rax, %rbx
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x19257
callq 0xc640
leaq 0x20(%rsp), %rdi
callq 0x11c2a
movq 0x7ad68(%rip), %rsi     # 0x93fd0
leaq 0x148(%rsp), %rdi
callq 0xc880
leaq 0x1c8(%rsp), %rdi
callq 0xc7d0
leaq 0xf0(%rsp), %rdi
callq 0x19f2c
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x192a3
callq 0xc640
leaq 0x88(%rsp), %rax
movq 0x78(%rsp), %rdi
cmpq %rax, %rdi
je 0x192ba
callq 0xc640
leaq 0x2d0(%rsp), %rdi
callq 0xc060
movq %rbx, %rdi
callq 0xc760
nop