// File: /workspace/github_c_makefile_star2_O0/barabo[P]advanced-shell-history/src/config.cpp
// Function: ash::Config::instance()
Config & Config::instance() {
  static Config _instance;
  if (!_instance.is_loaded) {
    // Find all environment variables matching a common prefix ASH_CFG_
    for (int i = 0; environ[i] != NULL; ++i) {
      string line = environ[i];
      if (line.substr(0, 8) == "ASH_CFG_") {
        int first_equals = line.find_first_of('=');
        string key = line.substr(8, first_equals - 8);
        string value = line.substr(first_equals + 1);
        _instance.values[key] = value;
      }
    }
    _instance.is_loaded = true;
  }
  return _instance;
}

// Assembly:
subq $0xc8, %rsp
cmpb $0x0, 0x419f2(%rip)     # 0xd24b0
jne 0x90b05
leaq 0x419e9(%rip), %rdi     # 0xd24b0
callq 0x8810
cmpl $0x0, %eax
je 0x90b05
leaq 0x419a0(%rip), %rdi     # 0xd2478
callq 0x90560
jmp 0x90adf
leaq 0x3aa(%rip), %rdi       # 0x90e90
leaq 0x4198b(%rip), %rsi     # 0xd2478
leaq 0x3f994(%rip), %rdx     # 0xd0488
callq 0x8340
leaq 0x419b0(%rip), %rdi     # 0xd24b0
callq 0x8240
testb $0x1, 0x4199c(%rip)     # 0xd24a8
jne 0x90d92
movl $0x0, 0xb8(%rsp)
movq 0x3f4ac(%rip), %rax     # 0xcffd0
movq (%rax), %rax
movslq 0xb8(%rsp), %rcx
cmpq $0x0, (%rax,%rcx,8)
je 0x90d8b
movq 0x3f48f(%rip), %rax     # 0xcffd0
movq (%rax), %rax
movslq 0xb8(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x18(%rsp)
leaq 0x97(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x87f0
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
leaq 0x98(%rsp), %rdi
callq 0x85b0
jmp 0x90b80
leaq 0x97(%rsp), %rdi
callq 0x84a0
xorl %eax, %eax
movl %eax, %edx
leaq 0x70(%rsp), %rdi
leaq 0x98(%rsp), %rsi
movl $0x8, %ecx
callq 0x8450
jmp 0x90baa
leaq 0x21853(%rip), %rsi     # 0xb2404
leaq 0x70(%rsp), %rdi
callq 0x8d0c0
movb %al, 0x17(%rsp)
jmp 0x90bc1
leaq 0x70(%rsp), %rdi
callq 0x88f8
jmp 0x90bcd
movb 0x17(%rsp), %al
testb $0x1, %al
jne 0x90bda
jmp 0x90d57
xorl %eax, %eax
movl %eax, %edx
leaq 0x98(%rsp), %rdi
movl $0x3d, %esi
callq 0x8220
movq %rax, 0x8(%rsp)
jmp 0x90bf7
movq 0x8(%rsp), %rax
movl %eax, 0x6c(%rsp)
movl 0x6c(%rsp), %eax
addl $-0x8, %eax
movslq %eax, %rcx
leaq 0x48(%rsp), %rdi
leaq 0x98(%rsp), %rsi
movl $0x8, %edx
callq 0x8450
jmp 0x90c23
movl 0x6c(%rsp), %eax
incl %eax
movslq %eax, %rdx
leaq 0x28(%rsp), %rdi
leaq 0x98(%rsp), %rsi
movq $-0x1, %rcx
callq 0x8450
jmp 0x90c47
leaq 0x4182a(%rip), %rdi     # 0xd2478
leaq 0x48(%rsp), %rsi
callq 0x8f470
movq %rax, (%rsp)
jmp 0x90c5e
movq (%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x8050
jmp 0x90c6e
leaq 0x28(%rsp), %rdi
callq 0x88f8
jmp 0x90c7a
leaq 0x48(%rsp), %rdi
callq 0x88f8
jmp 0x90c86
jmp 0x90d57
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc0(%rsp)
movl %eax, 0xbc(%rsp)
leaq 0x4180a(%rip), %rdi     # 0xd24b0
callq 0x8230
jmp 0x90da1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc0(%rsp)
movl %eax, 0xbc(%rsp)
leaq 0x97(%rsp), %rdi
callq 0x84a0
jmp 0x90da1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc0(%rsp)
movl %eax, 0xbc(%rsp)
jmp 0x90d7a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc0(%rsp)
movl %eax, 0xbc(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x88f8
jmp 0x90d0f
jmp 0x90d7a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc0(%rsp)
movl %eax, 0xbc(%rsp)
jmp 0x90d49
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc0(%rsp)
movl %eax, 0xbc(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x88f8
jmp 0x90d47
jmp 0x90d49
leaq 0x48(%rsp), %rdi
callq 0x88f8
jmp 0x90d55
jmp 0x90d7a
leaq 0x98(%rsp), %rdi
callq 0x88f8
movl 0xb8(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xb8(%rsp)
jmp 0x90b1d
leaq 0x98(%rsp), %rdi
callq 0x88f8
jmp 0x90d89
jmp 0x90da1
movb $0x1, 0x41716(%rip)     # 0xd24a8
leaq 0x416df(%rip), %rax     # 0xd2478
addq $0xc8, %rsp
retq
movq 0xc0(%rsp), %rdi
callq 0x87d0
movq %rax, %rdi
callq 0x8cf60
nopw %cs:(%rax,%rax)