// File: /workspace/github_cpp_makefile_star2_O2/demon386[P]git-store/./libs/filesystem/src/operations.cpp
// Function: boost::filesystem::detail::directory_iterator_construct(boost::filesystem::directory_iterator&, boost::filesystem::path const&, boost::system::error_code*)
void directory_iterator_construct(directory_iterator& it,
    const path& p, system::error_code* ec)    
  {
    if (error(p.empty() ? not_found_error_code.value() : 0, p, ec,
              "boost::filesystem::directory_iterator::construct"))
      return;

    path::string_type filename;
    file_status file_stat, symlink_file_stat;
    error_code result = dir_itr_first(it.m_imp->handle,
#     if defined(BOOST_POSIX_API)
      it.m_imp->buffer,
#     endif
      p.c_str(), filename, file_stat, symlink_file_stat);

    if (result)
    {
      it.m_imp.reset();
      error(result.value(), p,
        ec, "boost::filesystem::directory_iterator::construct");
      return;
    }
    
    if (it.m_imp->handle == 0)
      it.m_imp.reset(); // eof, so make end iterator
    else // not eof
    {
      it.m_imp->dir_entry.assign(p / filename, file_stat, symlink_file_stat);
      if (filename[0] == dot // dot or dot-dot
        && (filename.size()== 1
          || (filename[1] == dot
            && filename.size()== 2)))
        {  it.increment(*ec); }
    }
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq 0x8(%rsi), %r13
movl 0x252c8(%rip), %r12d    # 0x49628
leaq 0xbcd0(%rip), %rsi      # 0x30037
leaq -0x48(%rbp), %rdi
leaq -0x68(%rbp), %rdx
callq 0xc1b0
xorl %edi, %edi
testq %r13, %r13
cmovel %r12d, %edi
leaq -0x48(%rbp), %rcx
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2320a
movl %eax, %r12d
leaq -0x48(%rbp), %rdi
callq 0xc9a0
testb %r12b, %r12b
jne 0x24479
leaq -0x58(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq %r14, %rdi
callq 0x24cac
movq %rax, %r13
movq %r14, %rdi
callq 0x24cac
movq %rax, %r12
movq (%r15), %rdi
callq 0xc720
movq %rax, 0x30(%r13)
testq %rax, %rax
je 0x24424
leaq 0xc3f1(%rip), %rsi      # 0x307d0
leaq -0x48(%rbp), %rdi
leaq -0x88(%rbp), %rdx
callq 0xc1b0
leaq -0x68(%rbp), %rdi
leaq -0x48(%rbp), %r13
movq %r13, %rsi
callq 0xc5a0
movq %r13, %rdi
callq 0xc9a0
movl 0x251da(%rip), %r13d    # 0x495e8
testl %r13d, %r13d
jne 0x24436
movl $0x1019, %edi           # imm = 0x1019
callq 0xc630
movq %rax, 0x38(%r12)
jmp 0x24488
callq 0xc060
movl (%rax), %r13d
callq 0x2761f
testl %r13d, %r13d
je 0x24488
movq %r14, %rdi
callq 0x24cd8
leaq 0xbbf2(%rip), %rsi      # 0x30037
leaq -0x48(%rbp), %rdi
leaq -0x88(%rbp), %rdx
callq 0xc1b0
leaq -0x48(%rbp), %rcx
movl %r13d, %edi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2320a
leaq -0x48(%rbp), %rdi
callq 0xc9a0
leaq -0x68(%rbp), %rdi
callq 0xc9a0
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0x24cac
cmpq $0x0, 0x30(%rax)
je 0x24539
movq %r14, %rdi
callq 0x24cac
movq %rax, %r12
leaq -0x88(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0xc660
leaq -0x48(%rbp), %rdi
leaq -0x88(%rbp), %rdx
movq %r15, %rsi
callq 0x249e8
leaq -0x48(%rbp), %rsi
movq %r12, %rdi
callq 0xc2b0
movabsq $0xffff00000000, %rax   # imm = 0xFFFF00000000
movq %rax, 0x20(%r12)
movq %rax, 0x28(%r12)
leaq -0x48(%rbp), %rdi
callq 0xc9a0
leaq -0x88(%rbp), %rdi
callq 0xc9a0
movq -0x68(%rbp), %rax
cmpb $0x2e, (%rax)
jne 0x24470
movq -0x60(%rbp), %rcx
cmpq $0x1, %rcx
je 0x24529
cmpq $0x2, %rcx
jne 0x24470
cmpb $0x2e, 0x1(%rax)
jne 0x24470
movq %r14, %rdi
movq %rbx, %rsi
callq 0x24594
jmp 0x24470
movq %r14, %rdi
callq 0x24cd8
jmp 0x24470
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0xc9a0
jmp 0x24557
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
jmp 0x24569
jmp 0x24572
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0xc9a0
jmp 0x24575
jmp 0x24572
movq %rax, %rbx
leaq -0x68(%rbp), %rdi
jmp 0x24582
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0xc9a0
jmp 0x2458c
movq %rax, %rbx
movq %rbx, %rdi
callq 0xc850