// File: /workspace/github_cpp_makefile_star2_O2/gasparfm[P]anapache/./lib/ini/ini.hpp
// Function: INI::Parser::parse(INI::Level&)
inline void
Parser::parse(Level& l)
{
  while (std::getline(*f_, line_)) {
    ++ln_;
    if (line_[0] == '#' || line_[0] == ';') continue;
    line_ = trim(line_);
    if (line_.empty()) continue;
    if (line_[0] == '[') {
      size_t depth;
      std::string sname;
      parseSLine(sname, depth);
      Level* lp = NULL;
      Level* parent = &l;
      if (depth > l.depth + 1)
        err("section with wrong depth");
      if (l.depth == depth-1)
        lp = &l.sections[sname];
      else {
        lp = l.parent;
        size_t n = l.depth - depth;
        for (size_t i = 0; i < n; ++i) lp = lp->parent;
        parent = lp;
        lp = &lp->sections[sname];
      }
      if (lp->depth != 0)
        err("duplicate section name on the same level");
      if (!lp->parent) {
        lp->depth = depth;
        lp->parent = parent;
      }
      parent->ordered_sections.push_back(parent->sections.find(sname));
      parse(*lp);
    } else {
      size_t n = line_.find('=');
      if (n == std::string::npos)
        err("no '=' found");
      std::pair<Level::value_map_t::const_iterator, bool> res = 
        l.values.insert(std::make_pair(trim(line_.substr(0, n)), 
              trim(line_.substr(n+1, line_.length()-n-1))));
      if (!res.second)
        err("duplicated key found");
      l.ordered_values.push_back(res.first);
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rdi, %r14
leaq 0x2b0(%rdi), %r15
leaq 0x60(%rsi), %rax
movq %rax, 0x10(%rsp)
movq %rsi, (%rsp)
leaq 0x30(%rsi), %rax
movq %rax, 0x8(%rsp)
leaq 0x68(%rsp), %rbp
movq 0x2a8(%r14), %rdi
movq %r15, %rsi
callq 0x30b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x5911
incq 0x2d0(%r14)
movq 0x2b0(%r14), %rax
movzbl (%rax), %eax
cmpl $0x23, %eax
je 0x5686
cmpl $0x3b, %eax
je 0x5686
movq %rbp, %rdi
movq %r15, %rsi
callq 0x59ae
movq %r15, %rdi
movq %rbp, %rsi
callq 0x3420
movq %rbp, %rdi
callq 0x35d8
cmpq $0x0, 0x2b8(%r14)
je 0x5686
movq (%r15), %rax
cmpb $0x5b, (%rax)
jne 0x5779
leaq 0x78(%rsp), %rax
movq %rax, 0x68(%rsp)
andq $0x0, 0x70(%rsp)
movb $0x0, 0x78(%rsp)
movq %r14, %rdi
movq %rbp, %rsi
leaq 0x28(%rsp), %rdx
callq 0x5a5e
movq 0x28(%rsp), %rcx
movq (%rsp), %rax
movq 0x98(%rax), %rax
leaq 0x1(%rax), %rdx
cmpq %rdx, %rcx
jbe 0x5753
movq %r14, %rdi
leaq 0x3bf1(%rip), %rsi      # 0x932f
callq 0x5ac8
movq (%rsp), %rax
movq 0x98(%rax), %rax
movq 0x28(%rsp), %rcx
leaq -0x1(%rcx), %rdx
cmpq %rdx, %rax
jne 0x5878
movq 0x8(%rsp), %rdi
movq %rbp, %rsi
callq 0x5b30
movq %rax, %r12
movq (%rsp), %rbx
jmp 0x589d
movq %r15, %rdi
pushq $0x3d
popq %rsi
xorl %edx, %edx
callq 0x3440
movq %rax, %rbx
cmpq $-0x1, %rax
jne 0x579e
movq %r14, %rdi
leaq 0x3bd8(%rip), %rsi      # 0x9371
callq 0x5ac8
leaq 0x48(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
xorl %edx, %edx
movq %rbx, %rcx
callq 0x3370
leaq 0x28(%rsp), %rdi
movq %r12, %rsi
callq 0x59ae
leaq 0x1(%rbx), %rdx
notq %rbx
addq 0x2b8(%r14), %rbx
leaq 0xa8(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
movq %rbx, %rcx
callq 0x3370
leaq 0xc8(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x59ae
movq %rbp, %rdi
leaq 0x28(%rsp), %rbx
movq %rbx, %rsi
movq %r13, %rdx
callq 0x62c6
movq (%rsp), %rdi
movq %rbp, %rsi
callq 0x60b4
movq %rax, 0x18(%rsp)
movb %dl, 0x20(%rsp)
movq %rbp, %rdi
callq 0x5ba2
movq %r13, %rdi
callq 0x35d8
leaq 0xa8(%rsp), %rdi
callq 0x35d8
movq %rbx, %rdi
callq 0x35d8
leaq 0x48(%rsp), %rdi
callq 0x35d8
cmpb $0x0, 0x20(%rsp)
jne 0x5864
movq %r14, %rdi
leaq 0x3b1f(%rip), %rsi      # 0x937e
callq 0x5ac8
movq 0x10(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0x5bb8
jmp 0x5686
subq %rcx, %rax
incq %rax
movq (%rsp), %rbx
movq 0x90(%rbx), %rbx
decq %rax
jne 0x5882
leaq 0x30(%rbx), %rdi
movq %rbp, %rsi
callq 0x5b30
movq %rax, %r12
cmpq $0x0, 0x98(%r12)
je 0x58b7
movq %r14, %rdi
leaq 0x3a96(%rip), %rsi      # 0x9348
callq 0x5ac8
cmpq $0x0, 0x90(%r12)
jne 0x58d7
movq 0x28(%rsp), %rax
movq %rax, 0x98(%r12)
movq %rbx, 0x90(%r12)
leaq 0x30(%rbx), %rdi
movq %rbp, %rsi
callq 0x6076
addq $0x78, %rbx
movq %rax, 0x48(%rsp)
movq %rbx, %rdi
leaq 0x48(%rsp), %rsi
callq 0x5b96
movq %r14, %rdi
movq %r12, %rsi
callq 0x5650
movq %rbp, %rdi
callq 0x35d8
jmp 0x5686
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5970
movq %rax, %rbx
jmp 0x5956
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x5ba2
leaq 0xc8(%rsp), %rdi
callq 0x35d8
jmp 0x5949
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x35d8
leaq 0x28(%rsp), %rdi
callq 0x35d8
jmp 0x5967
jmp 0x5970
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
jmp 0x5978
jmp 0x5970
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x35d8
movq %rbx, %rdi
callq 0x3530
nop