// File: /workspace/github_cpp_makefile_star2_O2/mh0fm4[P]SCDC/src/components/dataprov/dataprov_fs2.cc
// Function: scdc_dataset_fs2_access::do_cmd_get(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_get(const string &params, scdc_dataset_input_t *input, scdc_dataset_output_t *output, scdc_result &result)
    {
      SCDC_TRACE("do_cmd_get: params: '" << params << "'");

      bool ret = false;

      stringlist psl(' ', params);

      const string sub = (!pwd_file)?psl.front_pop():"";
      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("do_cmd_get: pwd_path: '" << pwd_path << "', abs_path: '" << abs_path << "'");

      if (z_fs_is_directory(abs_path.c_str()))
      {
        SCDC_TRACE("do_cmd_get: fstar output from directory");

        if (scdc_dataset_output_redirect(output, "from:fs", abs_path.c_str(), params.c_str()) != SCDC_SUCCESS)
        {
          result = "output redirection failed";
          SCDC_FAIL("do_cmd_get: redirecting output '" << params << "' from directory '" << abs_path.c_str() << "' failed: " << result);

        } else ret = true;

      } else
      {
        SCDC_TRACE("do_cmd_get: plain output from file");

        string conf = "from:streamdup:" + psl.front_pop();

        FILE *file = open_file(abs_path, true, false);

        if (scdc_dataset_output_redirect(output, conf.c_str(), file) != SCDC_SUCCESS)
        {
          result = "output redirection failed";
          SCDC_FAIL("do_cmd_get: redirecting output from file '" << abs_path << "' failed: " << result);

        } else ret = true;

        close_file(file);
      }

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

      return ret;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %r8, %rbx
movq %rcx, %r15
movq %rsi, %r14
movq %rdi, %r12
leaq 0xc8(%rsp), %r13
movq %r13, %rdi
callq 0xb750
leaq 0xa0(%rsp), %rdi
pushq $0x20
popq %rsi
movq %r13, %rdx
callq 0x2f05c
leaq 0xc8(%rsp), %rdi
callq 0xb230
cmpb $0x0, 0x38(%r12)
je 0x387c9
leaq 0x19d05(%rip), %rsi     # 0x524bd
leaq 0x40(%rsp), %rdi
leaq 0x20(%rsp), %rdx
callq 0x1a132
jmp 0x387db
leaq 0x40(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
callq 0x19ba0
leaq 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
leaq 0x10(%rsp), %rcx
movq %rcx, -0x10(%rcx)
andq $0x0, -0x8(%rcx)
xorl %edx, %edx
movb %dl, (%rax)
movb %dl, (%rcx)
leaq 0x18(%r12), %r13
leaq 0x40(%rsp), %rdx
leaq 0x20(%rsp), %rcx
movq %r13, %rsi
callq 0x37714
testb %al, %al
je 0x38913
movq 0x8(%r12), %rdi
leaq 0x20(%rsp), %rsi
movq %rsp, %rdx
callq 0x377f2
movq (%rsp), %rdi
callq 0x2d93f
testq %rax, %rax
je 0x389dc
movq (%rsp), %rdx
movq (%r14), %rcx
leaq 0x1abd9(%rip), %rsi     # 0x53427
movq %r15, %rdi
xorl %eax, %eax
callq 0x274da
movb $0x1, %bpl
cmpq $0x1, %rax
je 0x38ae4
leaq 0x1abc3(%rip), %rsi     # 0x5342f
movq %rbx, %rdi
callq 0xba40
leaq 0x3cd05(%rip), %r15     # 0x75580
movq (%r15), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x389d5
addq $0x20, %rdi
callq 0xb800
movq (%r15), %rax
movq 0x8(%rax), %rdi
leaq 0x188e8(%rip), %rsi     # 0x51188
callq 0xb520
leaq 0x1aa91(%rip), %rsi     # 0x5333d
movq %rax, %rdi
callq 0xb520
leaq 0x1ab8e(%rip), %rsi     # 0x53449
movq %rax, %rdi
callq 0xb520
movq %rax, %rdi
movq %r14, %rsi
callq 0xb490
leaq 0x1ab95(%rip), %rsi     # 0x5346a
movq %rax, %rdi
callq 0xb520
movq (%rsp), %rsi
movq %rax, %rdi
callq 0xb520
leaq 0x190b5(%rip), %rsi     # 0x519a5
movq %rax, %rdi
callq 0xb520
movq %rax, %rdi
movq %rbx, %rsi
callq 0xb490
movq %rax, %rdi
callq 0xb270
movq (%r15), %rdi
jmp 0x389cc
leaq 0x1a69c(%rip), %rsi     # 0x52fb6
movq %rbx, %rdi
callq 0xba40
leaq 0x3cc57(%rip), %r14     # 0x75580
movq (%r14), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x389d5
addq $0x20, %rdi
callq 0xb800
movq (%r14), %rax
movq 0x8(%rax), %rdi
leaq 0x1883a(%rip), %rsi     # 0x51188
callq 0xb520
leaq 0x1a9e3(%rip), %rsi     # 0x5333d
movq %rax, %rdi
callq 0xb520
leaq 0x191a8(%rip), %rsi     # 0x51b11
movq %rax, %rdi
callq 0xb520
leaq 0x1a9d9(%rip), %rsi     # 0x53351
movq %rax, %rdi
callq 0xb520
movq %rax, %rdi
movq %r13, %rsi
callq 0xb490
leaq 0x1a9cd(%rip), %rsi     # 0x5335f
movq %rax, %rdi
callq 0xb520
leaq 0x40(%rsp), %rsi
movq %rax, %rdi
callq 0xb490
leaq 0x18ff7(%rip), %rsi     # 0x519a5
movq %rax, %rdi
callq 0xb520
movq %rax, %rdi
movq %rbx, %rsi
callq 0xb490
movq %rax, %rdi
callq 0xb270
movq (%r14), %rdi
addq $0x20, %rdi
callq 0xb3e0
xorl %ebp, %ebp
jmp 0x38ae4
leaq 0x60(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
callq 0x19ba0
leaq 0x1aa88(%rip), %rsi     # 0x5347d
leaq 0x80(%rsp), %rdi
leaq 0x60(%rsp), %rdx
callq 0x218cd
leaq 0x60(%rsp), %rdi
callq 0xb230
movq %rsp, %rsi
pushq $0x1
popq %rdx
movq %r12, %rdi
xorl %ecx, %ecx
callq 0x3a57c
movq 0x80(%rsp), %rsi
movq %r15, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x274da
cmpq $0x1, %rax
sete %bpl
je 0x38ad7
leaq 0x1a9e4(%rip), %rsi     # 0x5342f
movq %rbx, %rdi
callq 0xba40
leaq 0x3cb26(%rip), %r14     # 0x75580
movq (%r14), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x38ad7
addq $0x20, %rdi
callq 0xb800
movq (%r14), %rax
movq 0x8(%rax), %rdi
leaq 0x1870d(%rip), %rsi     # 0x51188
callq 0xb520
leaq 0x1a8b6(%rip), %rsi     # 0x5333d
movq %rax, %rdi
callq 0xb520
leaq 0x1a9f7(%rip), %rsi     # 0x5348d
movq %rax, %rdi
callq 0xb520
movq %rsp, %rsi
movq %rax, %rdi
callq 0xb490
leaq 0x18ef5(%rip), %rsi     # 0x519a5
movq %rax, %rdi
callq 0xb520
movq %rax, %rdi
movq %rbx, %rsi
callq 0xb490
movq %rax, %rdi
callq 0xb270
movq (%r14), %rdi
addq $0x20, %rdi
callq 0xb3e0
leaq 0x80(%rsp), %rdi
callq 0xb230
movq %rsp, %rdi
callq 0xb230
leaq 0x20(%rsp), %rdi
callq 0xb230
leaq 0x40(%rsp), %rdi
callq 0xb230
leaq 0xa0(%rsp), %rdi
callq 0x19ef4
movl %ebp, %eax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
jmp 0x38b3f
jmp 0x38b58
jmp 0x38b2f
movq %rax, %rbx
jmp 0x38b77
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0xb230
jmp 0x38b5b
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0xb230
jmp 0x38b84
movq %rax, %rbx
movq %rsp, %rdi
callq 0xb230
leaq 0x20(%rsp), %rdi
callq 0xb230
leaq 0x40(%rsp), %rdi
callq 0xb230
leaq 0xa0(%rsp), %rdi
callq 0x19ef4
movq %rbx, %rdi
callq 0xb9a0