// File: /workspace/github_cpp_makefile_star2_O1/ian-howell[P]configparser/src/config_parser.cpp
// Function: Config::read_configuration(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void Config::read_configuration(const std::string& line, const std::string& header)
{
    if (header == "")
    {
        std::string error = "No section provided for: `" + line + "`";
        throw std::runtime_error(error);
    }

    if (line.find('=') == std::string::npos)
    {
        std::string error = "Invalid configuration: `" + line + "`";
        throw std::runtime_error(error);
    }

    std::istringstream iss(line);
    std::string key;
    std::string val;
    std::getline(iss, key, '=');

    if (key.size()== 0)
    {
        std::string error = "No key found in configuration: `" + line + "`";
        throw std::runtime_error(error);
    }

    std::getline(iss, val);

    sections[header][trim_copy(key)] = trim_copy(val);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x248, %rsp            # imm = 0x248
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x2767(%rip), %rsi      # 0x504c
movq %rdx, %rdi
callq 0x20a0
testl %eax, %eax
je 0x2b05
movq %r15, %rdi
movl $0x3d, %esi
xorl %edx, %edx
callq 0x21d0
cmpq $-0x1, %rax
je 0x2b56
leaq 0xc8(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
movl $0x8, %edx
callq 0x2280
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
xorl %eax, %eax
movq %rax, -0x8(%r13)
movb %al, (%r13)
leaq 0x78(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq %rax, -0x8(%rbp)
movb %al, (%rbp)
leaq 0x8(%rsp), %rsi
movq %r12, %rdi
movl $0x3d, %edx
callq 0x22c0
cmpq $0x0, 0x10(%rsp)
je 0x2ba7
movq 0xc8(%rsp), %rax
addq -0x18(%rax), %r12
movq %r12, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %edx
leaq 0xc8(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x22c0
leaq 0xb8(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
addq %rsi, %rdx
leaq 0xa8(%rsp), %rdi
callq 0x3954
leaq 0x28(%rsp), %rdi
leaq 0xa8(%rsp), %rdx
movq %rbx, %rsi
callq 0x30c8
movq %rbx, %rdi
movq %r14, %rsi
callq 0x34d4
movq %rax, %r14
leaq 0x98(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x88(%rsp), %rdi
callq 0x3954
leaq 0x48(%rsp), %rdi
leaq 0x88(%rsp), %rdx
movq %rbx, %rsi
callq 0x30c8
leaq 0x48(%rsp), %rsi
movq %r14, %rdi
callq 0x3550
leaq 0x28(%rsp), %rsi
movq %rax, %rdi
callq 0x21c0
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a4f
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2170
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x2a6c
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x2170
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a87
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2170
movq 0xa8(%rsp), %rdi
cmpq %r15, %rdi
je 0x2aa4
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x2170
movq 0x68(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2abb
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2170
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x2ad2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2170
movq 0x54d7(%rip), %rsi      # 0x7fb0
leaq 0xc8(%rsp), %rdi
callq 0x21e0
leaq 0x140(%rsp), %rdi
callq 0x20c0
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2562(%rip), %rsi      # 0x506e
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
movq %r15, %rdx
callq 0x33f7
leaq 0x257d(%rip), %rsi      # 0x50a0
movq %rbx, %rdi
callq 0x22d0
leaq 0xd8(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x2bf4
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x2c07
leaq 0x252c(%rip), %rsi      # 0x5089
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
movq %r15, %rdx
callq 0x33f7
leaq 0x252c(%rip), %rsi      # 0x50a0
movq %rbx, %rdi
callq 0x22d0
leaq 0xd8(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x2c75
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x2c88
leaq 0x24f4(%rip), %rsi      # 0x50a2
leaq 0x48(%rsp), %rdi
movq %r15, %rdx
callq 0x33f7
leaq 0x24de(%rip), %rsi      # 0x50a0
leaq 0x48(%rsp), %rdi
callq 0x22d0
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x2cf3
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x2d00
movq %rdx, 0xc8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xd8(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0xd0(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2c3d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2170
movl $0x10, %edi
callq 0x20f0
movq %rax, %r14
leaq 0xc8(%rsp), %rsi
movq %rax, %rdi
callq 0x2260
movq 0x538f(%rip), %rsi      # 0x7ff0
movq 0x5350(%rip), %rdx      # 0x7fb8
movq %r14, %rdi
callq 0x2290
jmp 0x2d63
movq %rdx, 0xc8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xd8(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0xd0(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2cbe
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2170
movl $0x10, %edi
callq 0x20f0
movq %rax, %r14
leaq 0xc8(%rsp), %rsi
movq %rax, %rdi
callq 0x2260
movq 0x530e(%rip), %rsi      # 0x7ff0
movq 0x52cf(%rip), %rdx      # 0x7fb8
movq %r14, %rdi
callq 0x2290
jmp 0x2d63
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2d33
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2170
movl $0x10, %edi
callq 0x20f0
movq %rax, %r14
leaq 0x28(%rsp), %rsi
movq %rax, %rdi
callq 0x2260
movq 0x529c(%rip), %rsi      # 0x7ff0
movq 0x525d(%rip), %rdx      # 0x7fb8
movq %r14, %rdi
callq 0x2290
movq %rax, %rbx
jmp 0x2d73
movq %rax, %rbx
movq %r14, %rdi
callq 0x2120
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x2e92
movq 0x38(%rsp), %rsi
jmp 0x2e83
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2e92
movq 0x58(%rsp), %rsi
jmp 0x2e83
jmp 0x2dae
jmp 0x2db3
movq %rax, %rbx
jmp 0x2dbe
movq %rax, %rbx
movq %r14, %rdi
callq 0x2120
movq 0xc8(%rsp), %rdi
cmpq %r15, %rdi
je 0x2ee1
movq 0xd8(%rsp), %rsi
jmp 0x2dfa
jmp 0x2e8f
jmp 0x2de0
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2ee1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2170
jmp 0x2ee1
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2e2a
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2170
jmp 0x2e2a
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x2e4e
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x2170
jmp 0x2e4e
jmp 0x2e4b
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2e6e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2170
jmp 0x2e6e
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
cmpq %r15, %rdi
je 0x2e92
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x2170
jmp 0x2e92
jmp 0x2e8f
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2ea9
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2170
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x2ec0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2170
movq 0x50e9(%rip), %rsi      # 0x7fb0
leaq 0xc8(%rsp), %rdi
callq 0x21e0
leaq 0x140(%rsp), %rdi
callq 0x20c0
movq %rbx, %rdi
callq 0x22a0
nop