// File: /workspace/github_cpp_makefile_star2_O3/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 0x1d0a0
movq %r14, %rdi
movq %r15, %rsi
callq 0x37b12
movq %rax, %r14
movq (%rsp), %rdi
movq %r12, %r15
cmpq %r12, %rdi
je 0x377fa
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x90(%rsp), %r12
addq $0x30, %rbx
cmpq %rbx, %r14
je 0x3783c
movq 0x40(%r14), %rax
addq 0x48(%r14), %r13
testb $0x1, %al
je 0x37820
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 0x3799d
leaq 0x3545e(%rip), %rsi     # 0x6cca1
leaq 0x38(%rsp), %rbx
movq %rbx, %rdi
movq %rbp, %rdx
callq 0x1b7aa
leaq 0x34597(%rip), %rsi     # 0x6bdf1
movq %rbx, %rdi
callq 0xba60
movq %r15, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x37883
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x3788a
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 0x378c4
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x378df
movq 0x48(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x54c8a(%rip), %r14     # 0x8c570
movq (%r14), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x3799b
addq $0x20, %rdi
callq 0xb7d0
movq (%r14), %rax
movq 0x8(%rax), %rbx
leaq 0x3289d(%rip), %rsi     # 0x6a1a8
movl $0xb, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0x34371(%rip), %rsi     # 0x6bc90
movl $0xa, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0x344d0(%rip), %rsi     # 0x6be03
movl $0x13, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0x361cc(%rip), %rsi     # 0x6db13
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 0x379dd
movq 0x48(%rsp), %rsi
jmp 0x379d5
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x379dd
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
movq %rbx, %rdi
callq 0xb9c0
nop