// File: /workspace/github_c_makefile_star2_O2/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 $0x4e8, %rsp            # imm = 0x4E8
movq %rdi, %rbx
leaq 0x2e0(%rsp), %rdi
pushq $0x8
popq %rdx
callq 0xcbe0
leaq 0xb8(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x5203b(%rip), %rsi     # 0x67652
leaq 0x88(%rsp), %rdi
leaq 0x158(%rsp), %rdx
callq 0xcb10
leaq 0xe8(%rsp), %rdi
callq 0x1a5d2
leaq 0x38(%rbx), %rax
movq %rax, 0x30(%rsp)
movq %rbx, 0x38(%rsp)
leaq 0x70(%rbx), %rax
movq %rax, 0x40(%rsp)
leaq 0xa8(%rsp), %r13
leaq 0x158(%rsp), %rbp
leaq 0x68(%rsp), %r15
pushq $0x20
popq %rbx
leaq 0x48(%rsp), %r14
leaq 0x10(%rsp), %r12
leaq 0x2e0(%rsp), %rdi
movq %r13, %rsi
callq 0xc5d0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x15995
movq %rbp, %rdi
movq %r13, %rsi
callq 0x1a5ee
movq %r13, %rdi
movq %rbp, %rsi
callq 0xc5f0
movq %rbp, %rdi
callq 0xcd88
cmpq $0x0, 0xb0(%rsp)
je 0x15672
movq 0xa8(%rsp), %rax
cmpb $0x23, (%rax)
je 0x15672
movq %rbp, %rdi
movq %r13, %rsi
pushq $0x18
popq %rdx
callq 0xcd70
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
andq $0x0, 0x20(%rsp)
leaq 0x78(%rsp), %rax
movq %rax, 0x68(%rsp)
andq $0x0, 0x70(%rsp)
movb $0x0, 0x78(%rsp)
movq %rbp, %rdi
movq %r15, %rsi
movl %ebx, %edx
callq 0xc030
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x15749
movq %r14, %rdi
movq %r15, %rsi
callq 0x1a5ee
movq %r15, %rdi
movq %r14, %rsi
callq 0xc5f0
movq %r14, %rdi
callq 0xcd88
cmpq $0x0, 0x70(%rsp)
je 0x156fb
movq %r12, %rdi
movq %r15, %rsi
callq 0x1a65e
jmp 0x156fb
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rax
subq %rdi, %rax
cmpq $0x21, %rax
jb 0x157ab
addq $0x20, %rdi
leaq 0x52b5d(%rip), %rsi     # 0x682c4
callq 0x10fbd
testb %al, %al
je 0x157ab
movq 0x10(%rsp), %rsi
leaq 0xe8(%rsp), %rdi
callq 0x1a7ba
movq 0x10(%rsp), %rsi
movq %r14, %rdi
leaq 0x4cb0e(%rip), %rdx     # 0x6229f
callq 0x1509e
leaq 0x88(%rsp), %rdi
movq %r14, %rsi
callq 0xc9c0
jmp 0x15970
movq %r13, %rdi
leaq 0x4fe23(%rip), %rsi     # 0x655d8
callq 0x10fbd
testb %al, %al
je 0x15836
movq 0x118(%rsp), %rax
cmpq 0x120(%rsp), %rax
jne 0x157e4
movq 0x130(%rsp), %rax
movq -0x8(%rax), %rax
movl $0x200, %ecx            # imm = 0x200
addq %rcx, %rax
movq 0x90(%rsp), %rcx
addq $-0x2, %rcx
subq -0x18(%rax), %rcx
movq %r14, %rdi
leaq 0x88(%rsp), %r13
movq %r13, %rsi
xorl %edx, %edx
callq 0xcb30
movq %r13, %rdi
movq %r14, %rsi
callq 0xc5f0
movq %r14, %rdi
callq 0xcd88
leaq 0xe8(%rsp), %rdi
callq 0x1a9d6
leaq 0xa8(%rsp), %r13
jmp 0x15978
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rax
subq %rsi, %rax
cmpq $0x21, %rax
jb 0x15978
addq $0x20, %rsi
movq %r14, %rdi
callq 0xc640
movq 0x10(%rsp), %rdx
leaq 0xc8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x1a68a
movq 0x48(%rsp), %rax
movzbl (%rax), %ecx
cmpl $0x22, %ecx
je 0x158dc
cmpl $0x27, %ecx
jne 0x158e8
movq 0x50(%rsp), %rcx
cmpb $0x27, -0x1(%rax,%rcx)
jne 0x158e8
addq $-0x2, %rcx
leaq 0x138(%rsp), %rdi
movq %r14, %rsi
pushq $0x1
popq %rdx
callq 0xcb30
movq 0x38(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0x104e4
movq %rax, %rdi
leaq 0x138(%rsp), %rsi
callq 0xc5f0
leaq 0x138(%rsp), %rdi
callq 0xcd88
jmp 0x15963
movq 0x50(%rsp), %rcx
cmpb $0x22, -0x1(%rax,%rcx)
je 0x15891
movq %r14, %rdi
leaq 0x53002(%rip), %rsi     # 0x688f4
callq 0x10fbd
testb %al, %al
jne 0x1590e
movq %r14, %rdi
leaq 0x4c331(%rip), %rsi     # 0x61c36
callq 0x10fbd
testb %al, %al
je 0x1593b
movq %r14, %rdi
leaq 0x52fdc(%rip), %rsi     # 0x688f4
callq 0x10fbd
movb %al, 0x8(%rsp)
movq 0x40(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0x1a054
movb 0x8(%rsp), %cl
movb %cl, (%rax)
jmp 0x15963
movq 0x48(%rsp), %rdi
callq 0xc730
movq %rax, 0x8(%rsp)
movq 0x30(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0x10a12
movq 0x8(%rsp), %rcx
movl %ecx, (%rax)
leaq 0xc8(%rsp), %rdi
callq 0xcd88
movq %r14, %rdi
callq 0xcd88
movq %r15, %rdi
callq 0xcd88
movq %r12, %rdi
callq 0x10156
movq %rbp, %rdi
callq 0xc440
jmp 0x15672
movq 0x118(%rsp), %rax
cmpq 0xf8(%rsp), %rax
jne 0x159ed
leaq 0xe8(%rsp), %rdi
callq 0x1642a
leaq 0x88(%rsp), %rdi
callq 0xcd88
leaq 0xa8(%rsp), %rdi
callq 0xcd88
leaq 0x2e0(%rsp), %rdi
callq 0xc070
addq $0x4e8, %rsp            # imm = 0x4E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0xc450
movq %rax, %r14
movq 0x118(%rsp), %rdx
cmpq 0x120(%rsp), %rdx
jne 0x15a1b
movq 0x130(%rsp), %rax
movl $0x200, %edx            # imm = 0x200
addq -0x8(%rax), %rdx
addq $-0x20, %rdx
leaq 0x4c253(%rip), %rsi     # 0x61c79
leaq 0x158(%rsp), %rdi
callq 0x10196
movb $0x1, %bpl
leaq 0x158(%rsp), %rsi
movq %r14, %rdi
callq 0xc1a0
xorl %ebp, %ebp
movq 0x715a1(%rip), %rsi     # 0x86ff0
movq 0x7158a(%rip), %rdx     # 0x86fe0
movq %r14, %rdi
callq 0xc740
movq %rax, %rbx
leaq 0x158(%rsp), %rdi
callq 0xcd88
testb %bpl, %bpl
jne 0x15a7b
jmp 0x15afd
movq %rax, %rbx
movq %r14, %rdi
callq 0xc9f0
jmp 0x15afd
jmp 0x15aa3
movq %rax, %rbx
leaq 0x138(%rsp), %rdi
callq 0xcd88
jmp 0x15aa6
movq %rax, %rbx
jmp 0x15b0a
movq %rax, %rbx
jmp 0x15b17
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0xcd88
jmp 0x15abc
jmp 0x15ad9
jmp 0x15ab9
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0xcd88
jmp 0x15adc
jmp 0x15ad9
jmp 0x15ad9
jmp 0x15ad9
jmp 0x15ad2
jmp 0x15ad2
movq %rax, %rbx
jmp 0x15afd
jmp 0x15ad9
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0xcd88
leaq 0x10(%rsp), %rdi
callq 0x10156
leaq 0x158(%rsp), %rdi
callq 0xc440
leaq 0xe8(%rsp), %rdi
callq 0x1642a
leaq 0x88(%rsp), %rdi
callq 0xcd88
leaq 0xa8(%rsp), %rdi
callq 0xcd88
leaq 0x2e0(%rsp), %rdi
callq 0xc070
movq %rbx, %rdi
callq 0xc790
nop