// File: /workspace/github_c_makefile_star2_O1/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 0x60694(%rip), %rdx     # 0x79667
leaq 0x58(%rsp), %rdi
movq %rdx, %rsi
callq 0xedfa
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 0x1c524
leaq 0x10(%rsp), %r14
leaq 0x38(%rbx), %rax
movq %rax, 0x98(%rsp)
movq %rbx, 0xa0(%rsp)
leaq 0x70(%rbx), %rax
movq %rax, 0xa8(%rsp)
leaq 0x78(%rsp), %rbp
leaq 0x148(%rsp), %r15
leaq 0x38(%rsp), %r12
movq %rsp, %rbx
movq %rbp, %r13
movq 0x2d0(%rsp), %rax
movq -0x18(%rax), %rdi
leaq 0x2d0(%rsp), %rbp
addq %rbp, %rdi
movl $0xa, %esi
callq 0xcb80
movsbl %al, %edx
movq %rbp, %rdi
movq %r13, %rsi
callq 0xc030
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x1942a
movq %r15, %rdi
movq %r13, %rbp
movq %r13, %rsi
callq 0x1e464
movq %rbp, %rdi
movq %r15, %rsi
callq 0xc5e0
movq 0x148(%rsp), %rdi
leaq 0x158(%rsp), %rax
cmpq %rax, %rdi
je 0x190b6
callq 0xc640
cmpq $0x0, 0x80(%rsp)
je 0x1903f
movq 0x78(%rsp), %rax
cmpb $0x23, (%rax)
je 0x1903f
movq %r15, %rdi
movq %rbp, %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 %r15, %rdi
movq %r12, %rsi
movl $0x20, %edx
callq 0xc030
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x1915f
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1e464
movq %r12, %rdi
movq %rbx, %rsi
callq 0xc5e0
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x19148
callq 0xc640
cmpq $0x0, 0x40(%rsp)
je 0x19106
leaq 0x20(%rsp), %rdi
movq %r12, %rsi
callq 0x1e4ee
jmp 0x19106
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rax
subq %rdi, %rax
cmpq $0x21, %rax
jb 0x1918a
addq $0x20, %rdi
leaq 0x61167(%rip), %rsi     # 0x7a2e4
callq 0xca10
testl %eax, %eax
je 0x192f6
movq %rbp, %rdi
leaq 0x5e45c(%rip), %rsi     # 0x775f0
callq 0xca10
testl %eax, %eax
je 0x19286
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rcx
subq %rax, %rcx
cmpq $0x21, %rcx
jb 0x193eb
movq %r14, (%rsp)
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x12396
movq 0x20(%rsp), %rdx
leaq 0xb0(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x1e52b
movq (%rsp), %rax
movzbl (%rax), %ecx
cmpl $0x22, %ecx
je 0x19210
cmpl $0x27, %ecx
jne 0x1934a
movq 0x8(%rsp), %rdx
cmpb $0x27, -0x1(%rax,%rdx)
je 0x19220
cmpb $0x22, %cl
jne 0x1934a
movq 0x8(%rsp), %rcx
cmpb $0x22, -0x1(%rax,%rcx)
jne 0x1934a
movq 0x8(%rsp), %rcx
addq $-0x2, %rcx
movl $0x1, %edx
leaq 0xd0(%rsp), %rdi
movq %rbx, %rsi
callq 0xcb00
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x11ee8
movq %rax, %rdi
leaq 0xd0(%rsp), %rsi
callq 0xc5e0
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x193c3
callq 0xc640
jmp 0x193c3
movq 0x120(%rsp), %rax
cmpq 0x128(%rsp), %rax
jne 0x192ac
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 %rbx, %rdi
leaq 0x58(%rsp), %r13
movq %r13, %rsi
xorl %edx, %edx
callq 0xcb00
movq %r13, %rdi
movq %rbx, %rsi
callq 0xc5e0
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x192e4
callq 0xc640
leaq 0xf0(%rsp), %rdi
callq 0x1e9d6
jmp 0x193eb
movq 0x20(%rsp), %rsi
leaq 0xf0(%rsp), %rdi
callq 0x1e75e
movq 0x20(%rsp), %rax
movq %r14, (%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x12396
movq %rbx, %rdi
leaq 0x5af82(%rip), %rsi     # 0x742af
callq 0xc790
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
leaq 0x58(%rsp), %rdi
callq 0xc830
jmp 0x193dd
movq %rbx, %rdi
leaq 0x615c0(%rip), %rsi     # 0x7a914
callq 0xca10
testl %eax, %eax
je 0x19396
movq %rbx, %rdi
leaq 0x5a902(%rip), %rsi     # 0x73c69
callq 0xca10
testl %eax, %eax
je 0x19396
movq (%rsp), %rdi
callq 0xc710
movq %rax, %r13
movq 0x98(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x12426
movl %r13d, (%rax)
jmp 0x193c3
movq %rbx, %rdi
leaq 0x61574(%rip), %rsi     # 0x7a914
callq 0xca10
movl %eax, %r13d
movq 0xa8(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x1df40
testl %r13d, %r13d
sete (%rax)
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x193dd
callq 0xc640
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x193eb
callq 0xc640
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x193ff
callq 0xc640
leaq 0x20(%rsp), %rdi
callq 0x11c3c
movq %r15, %rdi
movq 0x7cbbd(%rip), %rsi     # 0x95fd0
callq 0xc880
leaq 0x1c8(%rsp), %rdi
callq 0xc7d0
jmp 0x1903f
movq 0x120(%rsp), %rax
cmpq 0x100(%rsp), %rax
jne 0x19493
leaq 0xf0(%rsp), %rdi
callq 0x1a2be
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x1945d
callq 0xc640
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x19474
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 0x194c3
movq 0x138(%rsp), %rax
movl $0x200, %edx            # imm = 0x200
addq -0x8(%rax), %rdx
addq $-0x20, %rdx
leaq 0x5a7b4(%rip), %rsi     # 0x73c82
leaq 0x148(%rsp), %rdi
callq 0x11c7f
movb $0x1, %bpl
leaq 0x148(%rsp), %rsi
movq %r14, %rdi
callq 0xc180
xorl %ebp, %ebp
movq 0x7caf9(%rip), %rsi     # 0x95ff0
movq 0x7cae2(%rip), %rdx     # 0x95fe0
movq %r14, %rdi
callq 0xc720
movq %rax, %rbx
movq 0x148(%rsp), %rdi
leaq 0x158(%rsp), %rax
cmpq %rax, %rdi
je 0x1952b
callq 0xc640
jmp 0x1952b
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0x195fd
movq %r14, %rdi
callq 0xc9c0
jmp 0x195fd
jmp 0x19572
movq %rax, %rbx
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x19575
callq 0xc640
jmp 0x19575
movq %rax, %rbx
jmp 0x1960a
movq %rax, %rbx
jmp 0x1961e
movq %rax, %rbx
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x1959c
callq 0xc640
jmp 0x1959c
jmp 0x195bb
jmp 0x19599
jmp 0x195bb
jmp 0x19599
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x195be
callq 0xc640
jmp 0x195be
jmp 0x195bb
jmp 0x195bb
jmp 0x195b4
jmp 0x195b4
movq %rax, %rbx
jmp 0x195fd
jmp 0x195bb
movq %rax, %rbx
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x195d2
callq 0xc640
leaq 0x20(%rsp), %rdi
callq 0x11c3c
movq 0x7c9ed(%rip), %rsi     # 0x95fd0
leaq 0x148(%rsp), %rdi
callq 0xc880
leaq 0x1c8(%rsp), %rdi
callq 0xc7d0
leaq 0xf0(%rsp), %rdi
callq 0x1a2be
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x1961e
callq 0xc640
leaq 0x88(%rsp), %rax
movq 0x78(%rsp), %rdi
cmpq %rax, %rdi
je 0x19635
callq 0xc640
leaq 0x2d0(%rsp), %rdi
callq 0xc060
movq %rbx, %rdi
callq 0xc760