// File: /workspace/github_cpp_makefile_star2_O2/mh0fm4[P]SCDC/src/components/dataset/dataset.cc
// Function: scdc_dataset::do_cmd(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 scdc_dataset::do_cmd(const std::string &cmd, scdc_dataset_input_t *input, scdc_dataset_output_t *output, scdc_result &result)
{
  SCDC_TRACE("do_cmd: cmd: '" << cmd << "'");

  string scmd, suri, sparams, params;

  split_cmdline(cmd.c_str(), cmd.size(), &scmd, &suri, &sparams);

  join_cmdline(0, suri.c_str(), sparams.c_str(), params);

  SCDC_TRACE("do_cmd: pwd: '" << pwd << "'");
  SCDC_TRACE("do_cmd: cmd: '" << scmd << "'");
  SCDC_TRACE("do_cmd: params: '" << params << "'");

  bool ret;

  if (config)
  {
    if (scmd == "cd")
    {
      if (params == "") ret = true;
      else ret = dataprov->config_do_cmd("info", params.c_str(), 0, 0, result);

      if (ret) ret = scdc_dataset::do_cmd_cd(params.c_str(), input, output, result);

    } else if (scmd == "pwd")
    {
      ret = scdc_dataset::do_cmd_pwd(params.c_str(), input, output, result);

    } else
    {
      if (pwd.size() > 0) params = pwd + " " + params;

      ret = dataprov->config_do_cmd(scmd.c_str(), params.c_str(), input, output, result);
    }

  } else ret = dataprov->dataset_cmds_do_cmd(this, scmd.c_str(), params.c_str(), input, output, result);

  SCDC_TRACE("do_cmd: return: '" << ret << "'");

  return ret;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd0, %rsp
movq %r8, %rbx
movq %rcx, %r15
movq %rdx, %r12
leaq 0x80(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movq %rdi, %r14
xorl %ecx, %ecx
leaq 0xc0(%rsp), %rdx
movq %rdx, -0x10(%rdx)
andq $0x0, -0x8(%rdx)
movb %cl, (%rax)
movb %cl, (%rdx)
leaq 0xa0(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
leaq 0x60(%rsp), %rdx
movq %rdx, -0x10(%rdx)
andq $0x0, -0x8(%rdx)
movb %cl, (%rax)
movb %cl, (%rdx)
movq (%rsi), %rdi
movq 0x8(%rsi), %rsi
leaq 0x70(%rsp), %rdx
leaq 0xb0(%rsp), %rcx
leaq 0x90(%rsp), %r8
callq 0x1a97b
movq 0xb0(%rsp), %rsi
movq 0x90(%rsp), %rdx
leaq 0x50(%rsp), %rcx
xorl %edi, %edi
callq 0x1abbc
cmpb $0x1, 0x10(%r14)
jne 0x241d6
leaq 0x2da9e(%rip), %rsi     # 0x51bbc
leaq 0x70(%rsp), %rdi
callq 0x19be0
testb %al, %al
je 0x2423e
leaq 0x2e386(%rip), %rsi     # 0x524bd
leaq 0x50(%rsp), %rdi
callq 0x19be0
testb %al, %al
jne 0x241ac
movq 0x8(%r14), %r15
leaq 0x2d700(%rip), %rsi     # 0x51850
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x1a132
movq 0x50(%rsp), %rsi
leaq 0x30(%rsp), %rdi
leaq 0xe(%rsp), %rdx
callq 0x1a132
movq (%r15), %rax
leaq 0x10(%rsp), %rsi
leaq 0x30(%rsp), %rdx
movq %r15, %rdi
xorl %ecx, %ecx
xorl %r8d, %r8d
movq %rbx, %r9
callq *0x58(%rax)
movl %eax, %ebx
leaq 0x30(%rsp), %rdi
callq 0xb230
leaq 0x10(%rsp), %rdi
callq 0xb230
testb %bl, %bl
je 0x24364
movq 0x50(%rsp), %rsi
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0x1a132
addq $0x18, %r14
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0xb2e0
jmp 0x24276
movq 0x8(%r14), %r13
movq 0x70(%rsp), %rsi
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x1a132
movq 0x50(%rsp), %rsi
leaq 0x30(%rsp), %rdi
leaq 0xe(%rsp), %rdx
callq 0x1a132
movq (%r13), %rax
movq 0x68(%rax), %rax
movq %rbx, (%rsp)
leaq 0x10(%rsp), %rdx
leaq 0x30(%rsp), %rcx
movq %r13, %rdi
movq %r14, %rsi
movq %r12, %r8
movq %r15, %r9
callq *%rax
movl %eax, %ebx
leaq 0x30(%rsp), %rdi
callq 0xb230
leaq 0x10(%rsp), %rdi
callq 0xb230
jmp 0x24282
leaq 0x2d7bd(%rip), %rsi     # 0x51a02
leaq 0x70(%rsp), %rdi
callq 0x19be0
testb %al, %al
je 0x242c3
movq 0x50(%rsp), %rsi
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0x1a132
addq $0x18, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xb2e0
leaq 0x10(%rsp), %rdi
callq 0xb230
movb $0x1, %bl
leaq 0x50(%rsp), %rdi
callq 0xb230
leaq 0x90(%rsp), %rdi
callq 0xb230
leaq 0xb0(%rsp), %rdi
callq 0xb230
leaq 0x70(%rsp), %rdi
callq 0xb230
movl %ebx, %eax
addq $0xd0, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
cmpq $0x0, 0x20(%r14)
je 0x24317
leaq 0x18(%r14), %rsi
leaq 0x2fd2b(%rip), %rdx     # 0x54000
leaq 0x30(%rsp), %rdi
callq 0x1d867
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x50(%rsp), %rdx
callq 0x1eeb2
leaq 0x50(%rsp), %rdi
leaq 0x10(%rsp), %r13
movq %r13, %rsi
callq 0xb690
movq %r13, %rdi
callq 0xb230
leaq 0x30(%rsp), %rdi
callq 0xb230
movq 0x8(%r14), %r14
movq 0x70(%rsp), %rsi
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x1a132
movq 0x50(%rsp), %rsi
leaq 0x30(%rsp), %rdi
leaq 0xe(%rsp), %rdx
callq 0x1a132
movq (%r14), %rax
leaq 0x10(%rsp), %rsi
leaq 0x30(%rsp), %rdx
movq %r14, %rdi
movq %r12, %rcx
movq %r15, %r8
movq %rbx, %r9
callq *0x58(%rax)
jmp 0x24226
xorl %ebx, %ebx
jmp 0x24282
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
jmp 0x243a2
jmp 0x243ab
jmp 0x2438b
jmp 0x2439a
jmp 0x2438b
jmp 0x243ab
jmp 0x2439a
jmp 0x2439a
jmp 0x243ab
jmp 0x243ab
jmp 0x2439a
jmp 0x243ab
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xb230
jmp 0x2439d
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xb230
jmp 0x243ae
jmp 0x243ab
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0xb230
leaq 0x90(%rsp), %rdi
callq 0xb230
leaq 0xb0(%rsp), %rdi
callq 0xb230
leaq 0x70(%rsp), %rdi
callq 0xb230
movq %rbx, %rdi
callq 0xb9a0