// File: mh0fm4[P]SCDC/src/components/dataprov/dataprov_fs2.cc
// Function: scdc_dataset_fs2_access::do_cmd_ls(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, _scdc_dataset_inout_t*, _scdc_dataset_inout_t*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
bool do_cmd_ls(const string &params, scdc_dataset_input_t *input, scdc_dataset_output_t *output, scdc_result &result)
    {
      SCDC_TRACE("do_cmd_ls: params: '" << params << "'");

      bool ret = false;

      const string sub = params;
      string pwd_path, abs_path;

      if (!dataprov_fs2()->make_pwd_path(pwd, sub, pwd_path))
      {
        result = "invalid path";
        SCDC_FAIL(__func__ << ": make path '" << pwd << "' + '" << sub << "' failed: " << result);
        goto do_return;
      }

      dataprov_fs2()->make_abs_path(pwd_path, abs_path);
      SCDC_TRACE(__func__ << ": pwd_path: '" << pwd_path << "', abs_path: '" << abs_path << "'");

      if (scdc_dataset_output_redirect(output, "from:fslist", abs_path.c_str()) != SCDC_SUCCESS)
      {
        result = "listing failed";
        SCDC_FAIL(__func__ << ": listing file or directory '" << pwd_path << "' failed: " << result);
        goto do_return;
      }

      ret = true;

do_return:
      SCDC_TRACE("do_cmd_ls: return: " << ret);

      return ret;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x170, %rsp            # imm = 0x170
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xa8(%rbp)
jmp 0x72b2c
movb $0x0, -0x29(%rbp)
movq -0x10(%rbp), %rsi
leaq -0x50(%rbp), %rdi
callq 0xc270
leaq -0x70(%rbp), %rdi
callq 0xc960
leaq -0x90(%rbp), %rdi
callq 0xc960
movq -0xa8(%rbp), %rdi
callq 0x77520
movq %rax, -0xb0(%rbp)
jmp 0x72b67
movq -0xb0(%rbp), %rdi
movq -0xa8(%rbp), %rsi
addq $0x18, %rsi
leaq -0x50(%rbp), %rdx
leaq -0x70(%rbp), %rcx
callq 0x714c0
movb %al, -0xb1(%rbp)
jmp 0x72b8e
movb -0xb1(%rbp), %al
testb $0x1, %al
jne 0x72d4a
jmp 0x72b9e
movq -0x28(%rbp), %rdi
leaq 0x35485(%rip), %rsi     # 0xa802e
callq 0xc920
jmp 0x72bb0
jmp 0x72bb2
leaq 0x61aef(%rip), %rax     # 0xd46a8
movq (%rax), %rdi
callq 0x257e0
cmpq $0x0, %rax
je 0x72d41
leaq 0x61ad6(%rip), %rax     # 0xd46a8
movq %rax, -0xc8(%rbp)
movq (%rax), %rdi
callq 0x25800
movq -0xc8(%rbp), %rax
movq (%rax), %rdi
callq 0x257e0
movq %rax, %rdi
leaq 0x335b6(%rip), %rsi     # 0xa61b0
callq 0xc670
movq %rax, -0xc0(%rbp)
jmp 0x72c08
movq -0xc0(%rbp), %rdi
leaq 0x35797(%rip), %rsi     # 0xa83ad
callq 0xc670
movq %rax, -0xd0(%rbp)
jmp 0x72c24
movq -0xd0(%rbp), %rdi
leaq 0x33ef7(%rip), %rsi     # 0xa6b29
callq 0xc670
movq %rax, -0xd8(%rbp)
jmp 0x72c40
movq -0xd8(%rbp), %rdi
leaq 0x35773(%rip), %rsi     # 0xa83c1
callq 0xc670
movq %rax, -0xe0(%rbp)
jmp 0x72c5c
movq -0xe0(%rbp), %rdi
movq -0xa8(%rbp), %rsi
addq $0x18, %rsi
callq 0xc5b0
movq %rax, -0xe8(%rbp)
jmp 0x72c7c
movq -0xe8(%rbp), %rdi
leaq 0x35745(%rip), %rsi     # 0xa83cf
callq 0xc670
movq %rax, -0xf0(%rbp)
jmp 0x72c98
movq -0xf0(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0xc5b0
movq %rax, -0xf8(%rbp)
jmp 0x72cb1
movq -0xf8(%rbp), %rdi
leaq 0x33d09(%rip), %rsi     # 0xa69c8
callq 0xc670
movq %rax, -0x100(%rbp)
jmp 0x72ccd
movq -0x100(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0xc5b0
movq %rax, -0x108(%rbp)
jmp 0x72ce6
movq -0x108(%rbp), %rdi
movq 0x612cc(%rip), %rsi     # 0xd3fc0
callq 0xc6d0
jmp 0x72cfb
leaq 0x619a6(%rip), %rax     # 0xd46a8
movq (%rax), %rdi
callq 0x25820
jmp 0x72d41
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
leaq -0x90(%rbp), %rdi
callq 0xc3e0
leaq -0x70(%rbp), %rdi
callq 0xc3e0
leaq -0x50(%rbp), %rdi
callq 0xc3e0
jmp 0x72f3f
jmp 0x72d43
jmp 0x72d45
jmp 0x72f01
movq -0xa8(%rbp), %rdi
callq 0x77520
movq %rax, -0x110(%rbp)
jmp 0x72d5f
movq -0x110(%rbp), %rdi
leaq -0x70(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0x71620
jmp 0x72d78
jmp 0x72d7a
jmp 0x72d7c
jmp 0x72d7e
movq -0x20(%rbp), %rax
movq %rax, -0x120(%rbp)
leaq -0x90(%rbp), %rdi
callq 0xc260
movq -0x120(%rbp), %rdi
movq %rax, %rdx
leaq 0x3562f(%rip), %rsi     # 0xa83d5
xorl %eax, %eax
callq 0x47200
movq %rax, -0x118(%rbp)
jmp 0x72db6
movq -0x118(%rbp), %rax
cmpq $0x1, %rax
je 0x72efd
movq -0x28(%rbp), %rdi
leaq 0x3560f(%rip), %rsi     # 0xa83e1
callq 0xc920
jmp 0x72dd9
jmp 0x72ddb
leaq 0x618c6(%rip), %rax     # 0xd46a8
movq (%rax), %rdi
callq 0x257e0
cmpq $0x0, %rax
je 0x72ef7
leaq 0x618ad(%rip), %rax     # 0xd46a8
movq %rax, -0x130(%rbp)
movq (%rax), %rdi
callq 0x25800
movq -0x130(%rbp), %rax
movq (%rax), %rdi
callq 0x257e0
movq %rax, %rdi
leaq 0x3338d(%rip), %rsi     # 0xa61b0
callq 0xc670
movq %rax, -0x128(%rbp)
jmp 0x72e31
movq -0x128(%rbp), %rdi
leaq 0x3556e(%rip), %rsi     # 0xa83ad
callq 0xc670
movq %rax, -0x138(%rbp)
jmp 0x72e4d
movq -0x138(%rbp), %rdi
leaq 0x33cce(%rip), %rsi     # 0xa6b29
callq 0xc670
movq %rax, -0x140(%rbp)
jmp 0x72e69
movq -0x140(%rbp), %rdi
leaq 0x35579(%rip), %rsi     # 0xa83f0
callq 0xc670
movq %rax, -0x148(%rbp)
jmp 0x72e85
movq -0x148(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0xc5b0
movq %rax, -0x150(%rbp)
jmp 0x72e9e
movq -0x150(%rbp), %rdi
leaq 0x33b1c(%rip), %rsi     # 0xa69c8
callq 0xc670
movq %rax, -0x158(%rbp)
jmp 0x72eba
movq -0x158(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0xc5b0
movq %rax, -0x160(%rbp)
jmp 0x72ed3
movq -0x160(%rbp), %rdi
movq 0x610df(%rip), %rsi     # 0xd3fc0
callq 0xc6d0
jmp 0x72ee8
leaq 0x617b9(%rip), %rax     # 0xd46a8
movq (%rax), %rdi
callq 0x25820
jmp 0x72ef9
jmp 0x72efb
jmp 0x72f01
movb $0x1, -0x29(%rbp)
jmp 0x72f03
jmp 0x72f05
jmp 0x72f07
movb -0x29(%rbp), %al
movb %al, -0x161(%rbp)
leaq -0x90(%rbp), %rdi
callq 0xc3e0
leaq -0x70(%rbp), %rdi
callq 0xc3e0
leaq -0x50(%rbp), %rdi
callq 0xc3e0
movb -0x161(%rbp), %al
andb $0x1, %al
addq $0x170, %rsp            # imm = 0x170
popq %rbp
retq
movq -0x98(%rbp), %rdi
callq 0xcba0
nopl (%rax,%rax)