// File: /workspace/github_cpp_makefile_star2_O3/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 $0x88, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq 0x8(%rsi), %r13
movl 0x23a10(%rip), %r12d    # 0x4c5f0
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0xd398(%rip), %rsi      # 0x35f87
leaq 0xd3c1(%rip), %rdx      # 0x35fb7
leaq -0x48(%rbp), %rdi
callq 0xf8ee
xorl %edi, %edi
testq %r13, %r13
cmovel %r12d, %edi
leaq -0x48(%rbp), %rcx
movq %r15, %rsi
movq %rbx, %rdx
callq 0x277fe
movl %eax, %r12d
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x28c2c
callq 0xb430
testb %r12b, %r12b
jne 0x28e73
movq %rbx, -0x50(%rbp)
leaq -0x60(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq (%r14), %r13
testq %r13, %r13
je 0x28e85
movq (%r15), %rdi
callq 0xb6a0
movq %rax, 0x30(%r13)
testq %rax, %rax
je 0x28cbf
leaq -0x48(%rbp), %r12
leaq -0x38(%rbp), %rbx
movq %rbx, (%r12)
movw $0x2e, 0x10(%r12)
movq $0x1, 0x8(%r12)
leaq -0x70(%rbp), %rdi
movq %r12, %rsi
callq 0xb560
movq (%r12), %rdi
cmpq %rbx, %rdi
je 0x28ca0
callq 0xb430
movl 0x23909(%rip), %r12d    # 0x4c5b0
testl %r12d, %r12d
jne 0x28cd1
movl $0x1019, %edi           # imm = 0x1019
callq 0xb5e0
movq %rax, 0x38(%r13)
jmp 0x28d40
callq 0xb060
movl (%rax), %r12d
callq 0x2c4e2
testl %r12d, %r12d
je 0x28d40
movq (%r14), %rax
leaq -0x40(%rbp), %r13
movq %rax, -0x8(%r13)
xorps %xmm0, %xmm0
movq 0x8(%r14), %rax
movups %xmm0, (%r14)
movq %rax, (%r13)
movq %r13, %rdi
callq 0xf546
leaq -0x38(%rbp), %rax
movq %rax, -0x8(%r13)
leaq 0xd285(%rip), %rsi      # 0x35f87
leaq 0xd2ae(%rip), %rdx      # 0x35fb7
leaq -0x48(%rbp), %rdi
callq 0xf8ee
leaq -0x48(%rbp), %rcx
movl %r12d, %edi
movq %r15, %rsi
movq -0x50(%rbp), %rdx
callq 0x277fe
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x28e61
callq 0xb430
jmp 0x28e61
movq (%r14), %r12
testq %r12, %r12
je 0x28e85
cmpq $0x0, 0x30(%r12)
je 0x28e46
leaq -0x80(%rbp), %r13
movq %r13, -0x10(%r13)
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
addq %rsi, %rdx
leaq -0x90(%rbp), %rdi
callq 0xf98c
leaq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
movq %rax, (%rdi)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
callq 0xf98c
leaq -0x48(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x29e38
leaq -0xa0(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0xb0(%rbp), %rdi
callq 0xf98c
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x28dd4
callq 0xb430
leaq -0xb0(%rbp), %rsi
movq %r12, %rdi
callq 0xb290
movabsq $0xffff00000000, %rax   # imm = 0xFFFF00000000
movq %rax, 0x20(%r12)
movq %rax, 0x28(%r12)
movq -0xb0(%rbp), %rdi
cmpq %r15, %rdi
je 0x28e08
callq 0xb430
movq -0x90(%rbp), %rdi
cmpq %r13, %rdi
je 0x28e19
callq 0xb430
movq -0x70(%rbp), %rax
cmpb $0x2e, (%rax)
movq -0x50(%rbp), %rsi
jne 0x28e61
movq -0x68(%rbp), %rcx
cmpq $0x1, %rcx
je 0x28e3c
cmpq $0x2, %rcx
jne 0x28e61
cmpb $0x2e, 0x1(%rax)
jne 0x28e61
movq %r14, %rdi
callq 0x28f27
jmp 0x28e61
leaq -0x40(%rbp), %rdi
movq %r12, -0x8(%rdi)
xorps %xmm0, %xmm0
movq 0x8(%r14), %rax
movups %xmm0, (%r14)
movq %rax, (%rdi)
callq 0xf546
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x28e73
callq 0xb430
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x97a8(%rip), %rdi      # 0x32634
leaq 0x97a9(%rip), %rsi      # 0x3263c
leaq 0xd59b(%rip), %rcx      # 0x36435
movl $0x2af, %edx            # imm = 0x2AF
callq 0xb310
jmp 0x28ef8
movq %rax, %r14
movq -0xb0(%rbp), %rdi
cmpq %r15, %rdi
jne 0x28ece
jmp 0x28ed3
movq %rax, %r14
jmp 0x28ed3
jmp 0x28ef8
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x28ed3
callq 0xb430
movq -0x90(%rbp), %rdi
cmpq %r13, %rdi
jne 0x28ef1
jmp 0x28efb
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x28efb
callq 0xb430
jmp 0x28efb
movq %rax, %r14
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
jmp 0x28f10
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x28f1f
callq 0xb430
jmp 0x28f1f
movq %rax, %r14
movq %r14, %rdi
callq 0xb7f0