// File: /workspace/github_cpp_makefile_star2_O3/ncbi[P]amr/common.cpp
// Function: Common_sp::RawDirItemGenerator::next_(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, bool)
bool RawDirItemGenerator::next_ (string &item,
                                 bool report)
{ 
  ASSERT (imp);
  for (;;)
  {
    if (const dirent* f = readdir (imp->dir))    
      item = std::move (string (f->d_name));
    else
      return false;
    if (item == ".")
      continue;
    if (item == "..")
      continue;
    break;
  }

  if (report)
    prog (item);

	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movl %edx, %r15d
movq %rsi, %rbx
movq %rdi, %r14
callq 0xa070
movl $0x0, (%rax)
movq 0x68(%r14), %rax
testq %rax, %rax
je 0x51820
movq (%rax), %rdi
callq 0xa8a0
testq %rax, %rax
je 0x517ef
movq %rax, %rbp
movl %r15d, 0x4(%rsp)
leaq 0x18(%rsp), %r12
leaq 0x8(%rsp), %r15
leaq 0x13(%rbp), %r13
movq %r12, 0x8(%rsp)
movq %r13, %rdi
callq 0xa260
leaq (%rax,%rbp), %rdx
addq $0x13, %rdx
movq %r15, %rdi
movq %r13, %rsi
callq 0x2fa1a
movq %rbx, %rdi
movq %r15, %rsi
callq 0xa6e0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x517b5
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
movq %rbx, %rdi
leaq 0x38a51(%rip), %rsi     # 0x8a210
callq 0xa160
testl %eax, %eax
je 0x517db
movq %rbx, %rdi
leaq 0x3a76d(%rip), %rsi     # 0x8bf3f
callq 0xa160
testl %eax, %eax
jne 0x51805
movq 0x68(%r14), %rax
movq (%rax), %rdi
callq 0xa8a0
movq %rax, %rbp
testq %rax, %rax
jne 0x5176f
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb $0x1, %bpl
cmpb $0x0, 0x4(%rsp)
je 0x517f1
addq $0x8, %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x40a4e
jmp 0x517f1
callq 0xa6b0
testl %eax, %eax
jne 0x518b8
leaq 0x98(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x3b0f6(%rip), %rsi     # 0x8c936
leaq 0x3b102(%rip), %rdx     # 0x8c949
leaq 0x88(%rsp), %rdi
callq 0x2fa1a
leaq 0xa8(%rsp), %rdi
movl $0xd8d, %esi            # imm = 0xD8D
callq 0x2d1fa
leaq 0xc8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0x2d152
leaq 0x3935b(%rip), %rsi     # 0x8abe5
leaq 0xc8(%rsp), %rdi
callq 0xaac0
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x518c2
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x518cf
movl $0x1, %edi
callq 0xa6c0
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x78(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x3c68d(%rip), %rsi     # 0x8df85
leaq 0x3c6c0(%rip), %rdx     # 0x8dfbf
leaq 0x68(%rsp), %rdi
callq 0x2fa1a
leaq 0x3b023(%rip), %rsi     # 0x8c933
leaq 0x68(%rsp), %rdi
callq 0xaac0
leaq 0x58(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x5193c
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x51949
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
movq 0x8(%rax), %rsi
leaq 0x48(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xe8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x2d152
leaq 0x3c642(%rip), %rsi     # 0x8dfc0
leaq 0xe8(%rsp), %rdi
callq 0xaac0
leaq 0x18(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x519ac
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x519b9
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x34fa2
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x519f9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x519f9
movq %rax, %rbx
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x51a1f
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x51a1f
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x51a3b
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x51a3b
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x51a57
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x51a57
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x51a73
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x51a73
movq %rax, %rbx
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x51a99
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x51a99
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x51abf
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x51abf
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r14, %rdi
je 0x51adc
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xa5a0
movq %rbx, %rdi
callq 0xaa10