// File: /workspace/github_cpp_makefile_star2_O1/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 $0x98, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq 0x8(%rsi), %r13
movl 0x23736(%rip), %r12d    # 0x4c5f0
leaq -0x40(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0xd0be(%rip), %rsi      # 0x35f87
leaq 0xd0e7(%rip), %rdx      # 0x35fb7
leaq -0x50(%rbp), %rdi
callq 0xf97e
xorl %edi, %edi
testq %r13, %r13
cmovel %r12d, %edi
leaq -0x50(%rbp), %rcx
movq %r15, %rsi
movq %rbx, %rdx
callq 0x27ab3
movl %eax, %r12d
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x28f06
callq 0xb430
testb %r12b, %r12b
jne 0x2916b
movq %rbx, -0x58(%rbp)
leaq -0x68(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq (%r14), %r13
testq %r13, %r13
je 0x2917d
movq (%r15), %rdi
callq 0xb6a0
movq %rax, 0x30(%r13)
testq %rax, %rax
je 0x28f96
leaq -0x50(%rbp), %r12
leaq -0x40(%rbp), %rbx
movq %rbx, (%r12)
movw $0x2e, 0x10(%r12)
movq $0x1, 0x8(%r12)
leaq -0x78(%rbp), %rdi
movq %r12, %rsi
callq 0xb560
movq (%r12), %rdi
cmpq %rbx, %rdi
je 0x28f7a
callq 0xb430
movl 0x2362f(%rip), %r12d    # 0x4c5b0
testl %r12d, %r12d
jne 0x28fa3
movl $0x1019, %edi           # imm = 0x1019
callq 0xb5e0
movq %rax, 0x38(%r13)
jmp 0x28fa3
callq 0xb060
movl (%rax), %r12d
callq 0x2c80a
testl %r12d, %r12d
je 0x29027
xorps %xmm0, %xmm0
leaq -0x48(%rbp), %r13
movaps %xmm0, -0x8(%r13)
movq (%r14), %rax
movq %rax, -0x8(%r13)
movq $0x0, (%r14)
movq 0x8(%r14), %rax
movq (%r13), %rcx
movq %rcx, 0x8(%r14)
movq %rax, (%r13)
movq %r13, %rdi
callq 0xf5d6
leaq -0x40(%rbp), %rax
movq %rax, -0x8(%r13)
leaq 0xcf9e(%rip), %rsi      # 0x35f87
leaq 0xcfc7(%rip), %rdx      # 0x35fb7
leaq -0x50(%rbp), %rdi
callq 0xf97e
leaq -0x50(%rbp), %rcx
movl %r12d, %edi
movq %r15, %rsi
movq -0x58(%rbp), %rdx
callq 0x27ab3
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x29159
callq 0xb430
jmp 0x29159
movq (%r14), %r12
testq %r12, %r12
je 0x2917d
cmpq $0x0, 0x30(%r12)
je 0x29130
leaq -0x88(%rbp), %r13
movq %r13, -0x10(%r13)
movq -0x78(%rbp), %rsi
movq -0x70(%rbp), %rdx
addq %rsi, %rdx
leaq -0x98(%rbp), %rdi
callq 0xfa18
leaq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
movq %rax, (%rdi)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
callq 0xfa18
leaq -0x50(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x2a134
leaq -0xa8(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0xb8(%rbp), %rdi
callq 0xfa18
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x290be
callq 0xb430
leaq -0xb8(%rbp), %rsi
movq %r12, %rdi
callq 0xb290
movabsq $0xffff00000000, %rax   # imm = 0xFFFF00000000
movq %rax, 0x20(%r12)
movq %rax, 0x28(%r12)
movq -0xb8(%rbp), %rdi
cmpq %r15, %rdi
je 0x290f2
callq 0xb430
movq -0x98(%rbp), %rdi
cmpq %r13, %rdi
je 0x29103
callq 0xb430
movq -0x78(%rbp), %rax
cmpb $0x2e, (%rax)
movq -0x58(%rbp), %rsi
jne 0x29159
movq -0x70(%rbp), %rcx
cmpq $0x1, %rcx
je 0x29126
cmpq $0x2, %rcx
jne 0x29159
cmpb $0x2e, 0x1(%rax)
jne 0x29159
movq %r14, %rdi
callq 0x2921f
jmp 0x29159
xorps %xmm0, %xmm0
leaq -0x48(%rbp), %rdi
movaps %xmm0, -0x8(%rdi)
movq %r12, -0x8(%rdi)
movq $0x0, (%r14)
movq 0x8(%r14), %rax
movq (%rdi), %rcx
movq %rcx, 0x8(%r14)
movq %rax, (%rdi)
callq 0xf5d6
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x2916b
callq 0xb430
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x94b0(%rip), %rdi      # 0x32634
leaq 0x94b1(%rip), %rsi      # 0x3263c
leaq 0xd2a3(%rip), %rcx      # 0x36435
movl $0x2af, %edx            # imm = 0x2AF
callq 0xb310
jmp 0x291f0
movq %rax, %r14
movq -0xb8(%rbp), %rdi
cmpq %r15, %rdi
jne 0x291c6
jmp 0x291cb
movq %rax, %r14
jmp 0x291cb
jmp 0x291f0
movq %rax, %r14
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x291cb
callq 0xb430
movq -0x98(%rbp), %rdi
cmpq %r13, %rdi
jne 0x291e9
jmp 0x291f3
movq %rax, %r14
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x291f3
callq 0xb430
jmp 0x291f3
movq %rax, %r14
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
jmp 0x29208
movq %rax, %r14
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x29217
callq 0xb430
jmp 0x29217
movq %rax, %r14
movq %r14, %rdi
callq 0xb7f0