// File: /workspace/github_cpp_makefile_star2_O3/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 0x273b(%rip), %rsi      # 0x504c
movq %rdx, %rdi
callq 0x20a0
testl %eax, %eax
je 0x2b31
movq %r15, %rdi
movl $0x3d, %esi
xorl %edx, %edx
callq 0x21d0
cmpq $-0x1, %rax
je 0x2b82
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 0x2bd3
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 0x39ca
leaq 0x28(%rsp), %rdi
leaq 0xa8(%rsp), %rdx
movq %rbx, %rsi
callq 0x30f4
movq %rbx, %rdi
movq %r14, %rsi
callq 0x354a
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 0x39ca
leaq 0x48(%rsp), %rdi
leaq 0x88(%rsp), %rdx
movq %rbx, %rsi
callq 0x30f4
leaq 0x48(%rsp), %rsi
movq %r14, %rdi
callq 0x35c6
leaq 0x28(%rsp), %rsi
movq %rax, %rdi
callq 0x21c0
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a7b
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2170
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x2a98
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x2170
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2ab3
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2170
movq 0xa8(%rsp), %rdi
cmpq %r15, %rdi
je 0x2ad0
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x2170
movq 0x68(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2ae7
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2170
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x2afe
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2170
movq 0x54ab(%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 0x2536(%rip), %rsi      # 0x506e
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
movq %r15, %rdx
callq 0x346d
leaq 0x2551(%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 0x2c20
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x2c33
leaq 0x2500(%rip), %rsi      # 0x5089
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
movq %r15, %rdx
callq 0x346d
leaq 0x2500(%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 0x2ca1
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x2cb4
leaq 0x24c8(%rip), %rsi      # 0x50a2
leaq 0x48(%rsp), %rdi
movq %r15, %rdx
callq 0x346d
leaq 0x24b2(%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 0x2d1f
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x2d2c
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 0x2c69
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 0x5363(%rip), %rsi      # 0x7ff0
movq 0x5324(%rip), %rdx      # 0x7fb8
movq %r14, %rdi
callq 0x2290
jmp 0x2d8f
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 0x2cea
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 0x52e2(%rip), %rsi      # 0x7ff0
movq 0x52a3(%rip), %rdx      # 0x7fb8
movq %r14, %rdi
callq 0x2290
jmp 0x2d8f
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 0x2d5f
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 0x5270(%rip), %rsi      # 0x7ff0
movq 0x5231(%rip), %rdx      # 0x7fb8
movq %r14, %rdi
callq 0x2290
movq %rax, %rbx
jmp 0x2d9f
movq %rax, %rbx
movq %r14, %rdi
callq 0x2120
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x2ebe
movq 0x38(%rsp), %rsi
jmp 0x2eaf
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2ebe
movq 0x58(%rsp), %rsi
jmp 0x2eaf
jmp 0x2dda
jmp 0x2ddf
movq %rax, %rbx
jmp 0x2dea
movq %rax, %rbx
movq %r14, %rdi
callq 0x2120
movq 0xc8(%rsp), %rdi
cmpq %r15, %rdi
je 0x2f0d
movq 0xd8(%rsp), %rsi
jmp 0x2e26
jmp 0x2ebb
jmp 0x2e0c
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2f0d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2170
jmp 0x2f0d
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2e56
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2170
jmp 0x2e56
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x2e7a
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x2170
jmp 0x2e7a
jmp 0x2e77
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2e9a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2170
jmp 0x2e9a
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
cmpq %r15, %rdi
je 0x2ebe
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x2170
jmp 0x2ebe
jmp 0x2ebb
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2ed5
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2170
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x2eec
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2170
movq 0x50bd(%rip), %rsi      # 0x7fb0
leaq 0xc8(%rsp), %rdi
callq 0x21e0
leaq 0x140(%rsp), %rdi
callq 0x20c0
movq %rbx, %rdi
callq 0x22a0
nop