// File: /workspace/github_cpp_makefile_star2_O2/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %r8, %rbx
movq %rcx, %r12
movq %rdi, %r13
leaq 0x48(%rsp), %r14
movq %r14, %rdi
callq 0xb750
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
leaq 0x18(%rsp), %rcx
movq %rcx, -0x10(%rcx)
andq $0x0, -0x8(%rcx)
xorl %edx, %edx
movb %dl, (%rax)
movb %dl, (%rcx)
leaq 0x18(%r13), %r15
leaq 0x28(%rsp), %rcx
movq %r15, %rsi
movq %r14, %rdx
callq 0x37714
testb %al, %al
je 0x38089
movq 0x8(%r13), %rdi
leaq 0x28(%rsp), %r14
leaq 0x8(%rsp), %rdx
movq %r14, %rsi
callq 0x377f2
movq 0x8(%rsp), %rdx
leaq 0x1b365(%rip), %rsi     # 0x53365
movq %r12, %rdi
xorl %eax, %eax
callq 0x274da
movb $0x1, %bpl
cmpq $0x1, %rax
je 0x38154
leaq 0x1b353(%rip), %rsi     # 0x53371
movq %rbx, %rdi
callq 0xba40
leaq 0x3d553(%rip), %r15     # 0x75580
movq (%r15), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x38152
addq $0x20, %rdi
callq 0xb800
movq (%r15), %rax
movq 0x8(%rax), %rdi
leaq 0x19136(%rip), %rsi     # 0x51188
callq 0xb520
leaq 0x1b2df(%rip), %rsi     # 0x5333d
movq %rax, %rdi
callq 0xb520
leaq 0x19d89(%rip), %rsi     # 0x51df6
movq %rax, %rdi
callq 0xb520
leaq 0x1b304(%rip), %rsi     # 0x53380
movq %rax, %rdi
callq 0xb520
jmp 0x38112
leaq 0x1af26(%rip), %rsi     # 0x52fb6
movq %rbx, %rdi
callq 0xba40
leaq 0x3d4e1(%rip), %r12     # 0x75580
movq (%r12), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x38152
addq $0x20, %rdi
callq 0xb800
movq (%r12), %rax
movq 0x8(%rax), %rdi
leaq 0x190c2(%rip), %rsi     # 0x51188
callq 0xb520
leaq 0x1b26b(%rip), %rsi     # 0x5333d
movq %rax, %rdi
callq 0xb520
leaq 0x19d15(%rip), %rsi     # 0x51df6
movq %rax, %rdi
callq 0xb520
leaq 0x1b261(%rip), %rsi     # 0x53351
movq %rax, %rdi
callq 0xb520
movq %rax, %rdi
movq %r15, %rsi
callq 0xb490
leaq 0x1b255(%rip), %rsi     # 0x5335f
movq %rax, %rdi
callq 0xb520
movq %rax, %rdi
movq %r14, %rsi
callq 0xb490
leaq 0x19881(%rip), %rsi     # 0x519a5
movq %rax, %rdi
callq 0xb520
movq %rax, %rdi
movq %rbx, %rsi
callq 0xb490
movq %rax, %rdi
callq 0xb270
leaq 0x3d43a(%rip), %rax     # 0x75580
movq (%rax), %rdi
addq $0x20, %rdi
callq 0xb3e0
xorl %ebp, %ebp
leaq 0x8(%rsp), %rdi
callq 0xb230
leaq 0x28(%rsp), %rdi
callq 0xb230
leaq 0x48(%rsp), %rdi
callq 0xb230
movl %ebp, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0xb230
leaq 0x28(%rsp), %rdi
callq 0xb230
leaq 0x48(%rsp), %rdi
callq 0xb230
movq %rbx, %rdi
callq 0xb9a0