// File: /workspace/github_cpp_makefile_star2_O1/demon386[P]git-store/./libs/filesystem/src/operations.cpp
// Function: boost::filesystem::detail::current_path(boost::system::error_code*)
BOOST_FILESYSTEM_DECL
  path current_path(error_code* ec)
  {
#   ifdef BOOST_POSIX_API
    path cur;
    for (long path_max = 128;; path_max *=2)// loop 'til buffer large enough
    {
      boost::scoped_array<char>
        buf(new char[static_cast<std::size_t>(path_max)]);
      if (::getcwd(buf.get(), static_cast<std::size_t>(path_max))== 0)
      {
        if (error(errno != ERANGE ? errno : 0
      // bug in some versions of the Metrowerks C lib on the Mac: wrong errno set 
#         if defined(__MSL__) && (defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__))
          && errno != 0
#         endif
          , ec, "boost::filesystem::current_path"))
        {
          break;
        }
      }
      else
      {
        cur = buf.get();
        if (ec != 0) ec->clear();
        break;
      }
    }
    return cur;

#   else
    DWORD sz;
    if ((sz = ::GetCurrentDirectoryW(0, NULL)) == 0)sz = 1;
    boost::scoped_array<path::value_type> buf(new path::value_type[sz]);
    error(::GetCurrentDirectoryW(sz, buf.get()) == 0 ? BOOST_ERRNO : 0, ec,
      "boost::filesystem::current_path");
    return path(buf.get());
#   endif
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r15
leaq 0x10(%rdi), %rax
movq %rax, -0x38(%rbp)
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movq %rdi, -0x30(%rbp)
movb $0x0, 0x10(%rdi)
movl $0x80, %r12d
leaq -0x48(%rbp), %r13
movq %r12, %rdi
callq 0xb030
movq %rax, %r14
movq %rax, %rdi
movq %r12, %rsi
callq 0xb260
testq %rax, %rax
jne 0x2794e
callq 0xb060
movl (%rax), %ebx
cmpl $0x22, %ebx
movl $0x0, %eax
cmovel %eax, %ebx
movq %r13, -0x58(%rbp)
leaq -0x58(%rbp), %rdi
leaq 0xe3f1(%rip), %rsi      # 0x35ce4
leaq 0xe409(%rip), %rdx      # 0x35d03
callq 0xf97e
testl %ebx, %ebx
je 0x27916
testq %r15, %r15
je 0x279a2
callq 0x2c80a
movl %ebx, (%r15)
jmp 0x27927
testq %r15, %r15
je 0x2792b
movl $0x0, (%r15)
callq 0x2c80a
movq %rax, 0x8(%r15)
movq -0x58(%rbp), %rdi
cmpq %r13, %rdi
je 0x27939
callq 0xb430
movq %r14, %rdi
callq 0xb5a0
addq %r12, %r12
testl %ebx, %ebx
je 0x278b7
jmp 0x2798f
movq -0x30(%rbp), %r12
movq 0x8(%r12), %rbx
movq %r14, %rdi
callq 0xb200
movq %r12, %rdi
xorl %esi, %esi
movq %rbx, %rdx
movq %r14, %rcx
movq %rax, %r8
callq 0xb6f0
testq %r15, %r15
je 0x27987
movl $0x0, (%r15)
callq 0x2c80a
movq %rax, 0x8(%r15)
movq %r14, %rdi
callq 0xb5a0
movq -0x30(%rbp), %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x50, %edi
callq 0xb250
movq %rax, %r15
callq 0x2c80a
leaq -0x58(%rbp), %rsi
movq %r15, %rdi
movl %ebx, %edx
movq %rax, %rcx
callq 0x29eaa
leaq 0x23b9c(%rip), %rsi     # 0x4b568
leaq 0x1e89(%rip), %rdx      # 0x2985c
movq %r15, %rdi
callq 0xb7b0
jmp 0x279f0
movq %rax, %rbx
movq -0x58(%rbp), %rdi
cmpq %r13, %rdi
je 0x279f3
callq 0xb430
jmp 0x279f3
movq %rax, %rbx
movq %r14, %rdi
callq 0xb5a0
jmp 0x27a00
movq %rax, %rbx
movq -0x30(%rbp), %rax
movq (%rax), %rdi
cmpq -0x38(%rbp), %rdi
je 0x27a12
callq 0xb430
movq %rbx, %rdi
callq 0xb7f0