// File: /workspace/github_cpp_makefile_star2_O1/fulhax[P]ncpamixer/src/config.cpp
// Function: Config::getDefaultConfigFile()
bool Config::getDefaultConfigFile()
{
    std::error_code ec{};
    std::string f{FILENAME};
    const auto xdg{getenv(XDG_CONFIG)};
    fs::path config_dir{xdg == nullptr ? "" : xdg};
    if (!fs::is_directory(config_dir, ec))
    {
        const auto home{getHomeDir()};
        if (home) config_dir = fs::path(home);
        f.insert(0, 1, '.');
    }

    if (fs::is_directory(config_dir, ec))
    {
        full_path = fs::absolute(config_dir / f, ec);
        if (!fs::exists(full_path, ec))
        {
            fprintf(
              stderr,
              "Default file '%s' does not exist, creating one for you ;)\n",
              full_path.c_str()
            );
            return createDefault();
        }
        return true;
    }

    fprintf(
      stderr,
      "Unable to find 'HOME' and/or '%s' folders.\n",
        XDG_CONFIG
    );
    return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rdi, %rbx
movl $0x0, 0x8(%rsp)
callq 0x6390
movq %rax, %r14
movq %rax, 0x10(%rsp)
leaq 0x28(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x86bc(%rip), %rsi      # 0x12577
leaq 0x86c3(%rip), %rdx      # 0x12585
leaq 0x18(%rsp), %rdi
callq 0x73f0
leaq 0x86bd(%rip), %rdi      # 0x12590
callq 0x6700
testq %rax, %rax
leaq 0x7602(%rip), %rcx      # 0x114e4
cmovneq %rax, %rcx
leaq 0x60(%rsp), %rsi
movq %rcx, (%rsi)
leaq 0x38(%rsp), %rdi
movl $0x2, %edx
callq 0xa9cc
leaq 0x38(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x67e0
cmpb $0x2, %al
je 0x9fa2
callq 0x9db8
movq %rax, 0x88(%rsp)
testq %rax, %rax
je 0x9f8c
leaq 0x60(%rsp), %rdi
leaq 0x88(%rsp), %rsi
movl $0x2, %edx
callq 0xa9cc
leaq 0x38(%rsp), %r15
leaq 0x60(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x6710
movq 0x20(%r12), %rax
movq $0x0, 0x20(%r12)
movq 0x20(%r15), %rsi
movq %rax, 0x20(%r15)
testq %rsi, %rsi
je 0x9f77
leaq 0x58(%rsp), %rdi
callq 0x6170
leaq 0x60(%rsp), %r15
movq %r15, %rdi
callq 0x7480
movq %r15, %rdi
callq 0x7324
leaq 0x18(%rsp), %rdi
movl $0x1, %edx
xorl %esi, %esi
movl $0x2e, %ecx
callq 0x6ba0
leaq 0x38(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x67e0
cmpb $0x2, %al
jne 0xa0ca
leaq 0xb0(%rsp), %rdi
leaq 0x18(%rsp), %rsi
movl $0x2, %edx
callq 0xaa8c
leaq 0x88(%rsp), %rdi
leaq 0x38(%rsp), %rsi
leaq 0xb0(%rsp), %rdx
callq 0xaa53
leaq 0x60(%rsp), %r12
leaq 0x88(%rsp), %rsi
leaq 0x8(%rsp), %rdx
movq %r12, %rdi
callq 0x64a0
leaq 0x30(%rbx), %r15
cmpq %r15, %r12
je 0xa01d
leaq 0x60(%rsp), %rsi
movq %r15, %rdi
movq %rbx, %rdx
callq 0x6d67
leaq 0x60(%rsp), %rdi
callq 0x7324
leaq 0x88(%rsp), %rdi
callq 0x7324
leaq 0xb0(%rsp), %rdi
callq 0x7324
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x67e0
andq $0xff, %rax
je 0xa0a2
movl $0x0, 0x8(%rsp)
movq %r14, 0x10(%rsp)
movb $0x1, %bpl
cmpl $0xff, %eax
je 0xa0a2
leaq 0x38(%rsp), %rdi
callq 0x7324
movq 0x18(%rsp), %rdi
cmpq %r13, %rdi
je 0xa08e
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x65c0
movl %ebp, %eax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xdf07(%rip), %rax      # 0x17fb0
movq (%rax), %rdi
movq 0x30(%rbx), %rdx
leaq 0x734d(%rip), %rsi      # 0x11404
xorl %eax, %eax
callq 0x6830
movq %rbx, %rdi
callq 0xa12c
movl %eax, %ebp
jmp 0xa06d
callq 0x6d42
xorl %ebp, %ebp
jmp 0xa06d
jmp 0xa0fb
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x7324
jmp 0xa0ea
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0x7324
jmp 0xa0fe
jmp 0xa0fb
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x7324
movq 0x18(%rsp), %rdi
cmpq %r13, %rdi
je 0xa11f
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x65c0
movq %rbx, %rdi
callq 0x6a80
movq %rax, %rbx
jmp 0xa108