// File: /workspace/github_cpp_makefile_star2_O1/mh0fm4[P]SCDC/src/components/dataprov/dataprov.cc
// Function: scdc_dataprov::dataset_cmds_do_cmd(scdc_dataset*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 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_dataprov::dataset_cmds_do_cmd(scdc_dataset *dataset, const std::string &cmd, const std::string &params, scdc_dataset_input_t *input, scdc_dataset_output_t *output, scdc_result &result)
{
  SCDC_TRACE("dataset_cmds_do_cmd: cmd: '" << cmd << "', params: '" << params << "'");

  dataset_cmds_t::iterator i = dataset_cmds.find(string(cmd));

  if (i == dataset_cmds.end())
  {
    result = "command '" + cmd + "' not implemented";
    SCDC_FAIL(__func__ << ": " << result);
    return false;
  }

  dataset_cmds_do_cmd_f do_cmd = i->second;

  bool ret = (dataset->*do_cmd)(params, input, output, result);

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

  return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %r9, 0x30(%rsp)
movq %r8, 0x28(%rsp)
movq %rcx, 0x20(%rsp)
movq %rdx, %rbp
movq %rsi, %r13
movq %rdi, %rbx
leaq 0x28(%rdi), %r14
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rdx), %rsi
movq 0x8(%rdx), %rdx
addq %rsi, %rdx
movq %rsp, %r15
movq %r15, %rdi
callq 0x1d19a
movq %r14, %rdi
movq %r15, %rsi
callq 0x37e7c
movq %rax, %r14
movq (%rsp), %rdi
movq %r12, %r15
cmpq %r12, %rdi
je 0x37b60
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x90(%rsp), %r12
addq $0x30, %rbx
cmpq %rbx, %r14
je 0x37ba2
movq 0x40(%r14), %rax
addq 0x48(%r14), %r13
testb $0x1, %al
je 0x37b86
movq (%r13), %rcx
movq -0x1(%rcx,%rax), %rax
movq %r13, %rdi
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x30(%rsp), %rcx
movq %r12, %r8
callq *%rax
jmp 0x37d03
leaq 0x35088(%rip), %rsi     # 0x6cc31
leaq 0x38(%rsp), %rbx
movq %rbx, %rdi
movq %rbp, %rdx
callq 0x1b85e
leaq 0x341b9(%rip), %rsi     # 0x6bd79
movq %rbx, %rdi
callq 0xba60
movq %r15, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x37be9
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x37bf0
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rsp, %rbx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %r12, %rdi
movq %rbx, %rsi
callq 0xb670
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x37c2a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x37c45
movq 0x48(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x54924(%rip), %r14     # 0x8c570
movq (%r14), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x37d01
addq $0x20, %rdi
callq 0xb7d0
movq (%r14), %rax
movq 0x8(%rax), %rbx
leaq 0x32517(%rip), %rsi     # 0x6a188
movl $0xb, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0x33f93(%rip), %rsi     # 0x6bc18
movl $0xa, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0x340f2(%rip), %rsi     # 0x6bd8b
movl $0x13, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0x35df6(%rip), %rsi     # 0x6daa3
movl $0x2, %edx
movq %rbx, %rdi
callq 0xb5f0
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %rbx, %rdi
callq 0xb5f0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0xb4d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0xb050
movq %rax, %rdi
callq 0xb340
movq (%r14), %rdi
addq $0x20, %rdi
callq 0xb3b0
xorl %eax, %eax
addq $0x58, %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 0x37d43
movq 0x48(%rsp), %rsi
jmp 0x37d3b
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x37d43
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
movq %rbx, %rdi
callq 0xb9c0
nop