// File: /workspace/github_cpp_makefile_star2_O3/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rdi, %rbx
leaq 0xa8(%rsp), %rbp
movq %rbp, -0x10(%rbp)
xorl %eax, %eax
movq %rax, -0x8(%rbp)
movb %al, (%rbp)
leaq 0xc8(%rsp), %r13
movq %r13, -0x10(%r13)
movq %rax, -0x8(%r13)
movb %al, (%r13)
leaq 0x88(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x68(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
movq (%rsi), %rdi
movq 0x8(%rsi), %rsi
leaq 0x98(%rsp), %rdx
leaq 0xb8(%rsp), %rcx
leaq 0x78(%rsp), %r8
callq 0x1c48f
movq 0xb8(%rsp), %rsi
movq 0x78(%rsp), %rdx
leaq 0x58(%rsp), %rcx
xorl %edi, %edi
callq 0x1c718
cmpb $0x1, 0x10(%rbx)
jne 0x29f55
leaq 0x40d7d(%rip), %rsi     # 0x6ac27
leaq 0x98(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x29fc3
leaq 0x40ba7(%rip), %rsi     # 0x6aa6d
leaq 0x98(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x2a099
movq 0x20(%rbx), %rdx
testq %rdx, %rdx
je 0x2a167
leaq 0x48(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x18(%rbx), %rsi
addq %rsi, %rdx
leaq 0x38(%rsp), %rdi
callq 0x1d0a0
leaq 0x43167(%rip), %rsi     # 0x6d070
leaq 0x38(%rsp), %rdi
callq 0xba60
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
leaq 0x38(%rsp), %rdi
callq 0xb150
leaq 0x28(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2a0f5
movq %rdx, 0x18(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x28(%rsp)
jmp 0x2a0fc
movq 0x8(%rbx), %r13
movq 0x98(%rsp), %rsi
leaq 0x18(%rsp), %rdi
leaq 0x16(%rsp), %rdx
callq 0x1bd28
movq 0x58(%rsp), %rsi
leaq 0x38(%rsp), %rdi
leaq 0x17(%rsp), %rdx
callq 0x1bd28
movq (%r13), %rax
movq 0x68(%rax), %rax
movq %r14, (%rsp)
leaq 0x18(%rsp), %rdx
leaq 0x38(%rsp), %rcx
movq %r13, %rdi
movq %rbx, %rsi
movq %r12, %r8
movq %r15, %r9
callq *%rax
movl %eax, %ebx
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
leaq 0xc8(%rsp), %r13
jmp 0x2a1c0
leaq 0x41563(%rip), %rsi     # 0x6b52d
leaq 0x58(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x2a072
movq 0x8(%rbx), %r15
leaq 0x28(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x408ca(%rip), %rsi     # 0x6a8bb
leaq 0x408c7(%rip), %rdx     # 0x6a8bf
leaq 0x18(%rsp), %rdi
callq 0x1be38
movq 0x58(%rsp), %rsi
leaq 0x38(%rsp), %rdi
leaq 0x16(%rsp), %rdx
callq 0x1bd28
movq (%r15), %rax
leaq 0x18(%rsp), %rsi
leaq 0x38(%rsp), %rdx
movq %r15, %rdi
xorl %ecx, %ecx
xorl %r8d, %r8d
movq %r14, %r9
callq *0x58(%rax)
movl %eax, %ebp
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a04e
movq 0x48(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0x2a065
movq 0x28(%rsp), %rsi
incq %rsi
callq 0xb510
testb %bpl, %bpl
leaq 0xa8(%rsp), %rbp
je 0x2a0e6
movq 0x58(%rsp), %rsi
leaq 0x18(%rsp), %rdi
leaq 0x38(%rsp), %rdx
callq 0x1bd28
addq $0x18, %rbx
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
callq 0xb2c0
jmp 0x2a0bc
movq 0x58(%rsp), %rsi
leaq 0x18(%rsp), %rdi
leaq 0x38(%rsp), %rdx
callq 0x1bd28
addq $0x18, %rbx
movq %r14, %rdi
movq %rbx, %rsi
callq 0xb2c0
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
leaq 0x88(%rsp), %r14
je 0x2a0df
movq 0x28(%rsp), %rsi
incq %rsi
callq 0xb510
movb $0x1, %bl
jmp 0x2a1f2
xorl %ebx, %ebx
leaq 0x88(%rsp), %r14
jmp 0x2a1f2
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
leaq 0x18(%rsp), %r13
movq %rdx, 0x8(%r13)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x58(%rsp), %rdi
movq %r13, %rsi
callq 0xb670
movq (%r13), %rdi
cmpq %rbp, %rdi
je 0x2a13b
movq 0x28(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
leaq 0xa8(%rsp), %rbp
leaq 0xc8(%rsp), %r13
je 0x2a167
movq 0x48(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x8(%rbx), %rbx
movq 0x98(%rsp), %rsi
leaq 0x18(%rsp), %rdi
leaq 0x16(%rsp), %rdx
callq 0x1bd28
movq 0x58(%rsp), %rsi
leaq 0x38(%rsp), %rdi
leaq 0x17(%rsp), %rdx
callq 0x1bd28
movq (%rbx), %rax
leaq 0x18(%rsp), %rsi
leaq 0x38(%rsp), %rdx
movq %rbx, %rdi
movq %r12, %rcx
movq %r15, %r8
movq %r14, %r9
callq *0x58(%rax)
movl %eax, %ebx
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
leaq 0x88(%rsp), %r14
je 0x2a1d7
movq 0x48(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a1f2
movq 0x28(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x2a20e
movq 0x68(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x78(%rsp), %rdi
cmpq %r14, %rdi
je 0x2a228
movq 0x88(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0xb8(%rsp), %rdi
cmpq %r13, %rdi
je 0x2a245
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x98(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2a262
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0xb510
movl %ebx, %eax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a29b
movq 0x48(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x2a29b
jmp 0x2a2ed
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
jne 0x2a2fe
jmp 0x2a312
jmp 0x2a30f
jmp 0x2a30f
jmp 0x2a2ad
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0x2a312
movq 0x48(%rsp), %rsi
jmp 0x2a303
jmp 0x2a30f
jmp 0x2a2ed
jmp 0x2a30f
jmp 0x2a2cd
jmp 0x2a2ed
jmp 0x2a30f
movq %rax, %rbx
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a2f0
movq 0x48(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x2a2f0
movq %rax, %rbx
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a312
movq 0x28(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x2a312
jmp 0x2a30f
movq %rax, %rbx
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x2a32e
movq 0x68(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x2a350
movq 0x88(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x2a375
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x2a39a
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0xb510
movq %rbx, %rdi
callq 0xb9c0