// File: /workspace/github_cpp_makefile_star2_O3/trapexit[P]bbf/src/bbf_find_files.cpp
// Function: bbf::find_files(Options const&)
AppError
  find_files(const Options &opts_)
  {
    int rv;
    BlockToFileMapper b2fm;
    std::vector<uint64_t> badblocks;

    rv = BadBlockFile::read(opts_.input_file,badblocks);
    if(rv < 0)
      return AppError::reading_badblocks_file(-rv,opts_.input_file);

    b2fm.scan(opts_.device);

    const std::string none = "[none]";
    for(uint64_t i = 0, ei = badblocks.size(); i != ei; i++)
      {
        std::pair<bool,std::string> entry;
        const uint64_t badblock = badblocks[i];

        entry = b2fm.find(badblock);

        std::cout << badblock
                  << " "
                  << (entry.first ? entry.second : none)
                  << std::endl;
      }

    return AppError::success();
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x98(%rsp), %rdi
callq 0xd0ec
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movq $0x0, 0x10(%rsi)
leaq 0x78(%rbx), %r14
movq %r14, %rdi
callq 0x4cf8
testl %eax, %eax
js 0x7562
addq $0x8, %rbx
leaq 0x98(%rsp), %rdi
movq %rbx, %rsi
callq 0xd10a
movq %r15, 0x68(%rsp)
leaq 0x58(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xee1f(%rip), %rsi      # 0x16219
leaq 0xee1e(%rip), %rdx      # 0x1621f
leaq 0x48(%rsp), %rdi
callq 0x7618
movq 0x8(%rsp), %rbp
movq (%rsp), %rax
subq %rax, %rbp
je 0x7537
sarq $0x3, %rbp
leaq 0x28(%rsp), %r15
leaq 0x38(%rsp), %r13
xorl %ebx, %ebx
xorl %r14d, %r14d
movb %bl, 0x20(%rsp)
movq %r13, 0x28(%rsp)
movq $0x0, 0x30(%rsp)
movb %bl, 0x38(%rsp)
movq (%rsp), %rax
movq (%rax,%r14,8), %r12
leaq 0x70(%rsp), %rdi
leaq 0x98(%rsp), %rsi
movq %r12, %rdx
callq 0xd5da
movb 0x70(%rsp), %al
movb %al, 0x20(%rsp)
movq %r15, %rdi
leaq 0x78(%rsp), %rsi
callq 0x4540
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x749a
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x44b0
movq 0x1cb17(%rip), %rdi     # 0x23fb8
movq %r12, %rsi
callq 0x4300
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
leaq 0xee31(%rip), %rsi      # 0x162ec
callq 0x4500
cmpb $0x0, 0x20(%rsp)
leaq 0x48(%rsp), %rax
cmovneq %r15, %rax
movq (%rax), %rsi
leaq 0x50(%rsp), %rax
leaq 0x30(%rsp), %rcx
cmovneq %rcx, %rax
movq (%rax), %rdx
movq %r12, %rdi
callq 0x4500
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x4480
movsbl %al, %esi
movq %r12, %rdi
callq 0x4050
movq %rax, %rdi
callq 0x4310
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x752b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x44b0
incq %r14
cmpq %r14, %rbp
jne 0x7430
movq 0x68(%rsp), %r15
movq %r15, %rdi
callq 0xdce4
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x7571
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x44b0
jmp 0x7571
negl %eax
movq %r15, %rdi
movl %eax, %esi
movq %r14, %rdx
callq 0xe0fc
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x7587
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x44b0
leaq 0x98(%rsp), %rdi
callq 0x6c78
movq %r15, %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x75d1
jmp 0x75b0
movq %rax, %rbx
jmp 0x75ed
jmp 0x75b7
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x75d1
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x44b0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x75ed
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x44b0
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x7603
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x44b0
leaq 0x98(%rsp), %rdi
callq 0x6c78
movq %rbx, %rdi
callq 0x46f0