// File: /workspace/github_cpp_makefile_star2_O3/mh0fm4[P]SCDC/src/components/dataprov/dataprov_register.cc
// Function: scdc_dataprov_register::dataset_cmds_do_cmd(scdc_dataset*, char const*, 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_register::dataset_cmds_do_cmd(scdc_dataset *dataset, const char *cmd, const char *params, scdc_dataset_input_t *input, scdc_dataset_output_t *output, scdc_result &result)
{
  SCDC_TRACE("dataset_cmds_do_cmd: cmd: '" << cmd << "', params: '" << params << "'");

  string c(cmd), p(params), r;
  bool ret;

  if (c == "put")
  {
    ret = reg_put(p);

    if (ret) reg_update(p);

  } else if (c == "get")
  {
    ret = reg_get(p);

  } else if (c == "info")
  {
    ret = reg_info(p, r);

  } else if (c == "rm")
  {
    ret = reg_rm(p);

  } else if (c == "ls")
  {
    ret = reg_ls(p, r);

  } else 
  {
    return scdc_dataprov::dataset_cmds_do_cmd(dataset, cmd, params, input, output, result);
  }

  result = r;

  return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %r9, 0x70(%rsp)
movq %r8, %r12
movq %rcx, %rbp
movq %rdx, %rbx
movq %rsi, %r13
movq %rdi, %r14
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rdx
movq %rbx, %rsi
callq 0x1bd28
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rdx
movq %rbp, %rsi
callq 0x1bd28
leaq 0x60(%rsp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
leaq 0x4b2ea(%rip), %rsi     # 0x6ab0b
leaq 0x30(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x1f934
leaq 0x4b349(%rip), %rsi     # 0x6ab83
leaq 0x30(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x1f957
leaq 0x4b068(%rip), %rsi     # 0x6a8bb
leaq 0x30(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x1f976
leaq 0x4ccc3(%rip), %rsi     # 0x6c52f
leaq 0x30(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x1f98a
leaq 0x4b5e8(%rip), %rsi     # 0x6ae6d
leaq 0x30(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x1fa0c
leaq 0x98(%rsp), %rdi
leaq 0xf(%rsp), %rdx
movq %rbx, %rsi
callq 0x1bd28
leaq 0x78(%rsp), %rdi
leaq 0xe(%rsp), %rdx
movq %rbp, %rsi
callq 0x1bd28
movq 0xf0(%rsp), %rax
movq %rax, (%rsp)
leaq 0x98(%rsp), %rdx
leaq 0x78(%rsp), %rcx
movq %r14, %rdi
movq %r13, %rsi
movq %r12, %r8
movq 0x70(%rsp), %r9
callq 0x3778a
movl %eax, %ebp
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1f90d
movq 0x88(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1f9ab
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x1f9ab
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x1fad2
testb %al, %al
je 0x1f972
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x1fcb0
jmp 0x1f999
leaq 0x68(%r14), %rdi
leaq 0x10(%rsp), %rsi
callq 0x206b2
addq $0x70, %r14
cmpq %r14, %rax
setne %bpl
jmp 0x1f999
xorl %ebp, %ebp
jmp 0x1f999
leaq 0x10(%rsp), %rsi
leaq 0x50(%rsp), %rdx
movq %r14, %rdi
callq 0x1fec8
jmp 0x1f997
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x20010
movl %eax, %ebp
leaq 0x50(%rsp), %rsi
movq 0xf0(%rsp), %rdi
callq 0xb2c0
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x1f9c2
movq 0x60(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1f9dd
movq 0x20(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1f9f8
movq 0x40(%rsp), %rsi
incq %rsi
callq 0xb510
movl %ebp, %eax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
leaq 0x50(%rsp), %rdx
movq %r14, %rdi
callq 0x2011a
jmp 0x1f999
movq %rax, %rbx
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1fa4f
movq 0x88(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x1fa4f
movq %rax, %rbx
leaq 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1fa7c
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x1fa7c
jmp 0x1fa79
movq %rax, %rbx
jmp 0x1faae
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x1fa93
movq 0x60(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1faae
movq 0x20(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1fac9
movq 0x40(%rsp), %rsi
incq %rsi
callq 0xb510
movq %rbx, %rdi
callq 0xb9c0
nop