// File: /workspace/github_cpp_makefile_star2_O1/mh0fm4[P]SCDC/src/components/dataprov/dataprov.cc
// Function: scdc_dataprov::config_do_cmd_param(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&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, scdc_config_result&, bool&)
bool scdc_dataprov::config_do_cmd_param(const std::string &cmd, const std::string &param, std::string val, scdc_config_result &result, bool &done)
{
  SCDC_TRACE("config_do_cmd_param: cmd: '" << cmd << "', param: '" << param << "', val: '" << val << "', result: '" << result << "'");

  string c(cmd), p(param);
  done = true;
  bool ret = true;

  if (p == "")
  {
    if (c == "info")
    {
      ret = scdc_dataprov_config::info(result, type.c_str());

    } else if (c == "ls")
    {
      ret = scdc_dataprov_config::ls(result, "type");

    } else done = false;

  } else if (p == "type")
  {
    if (c == "info")
    {
      ret = scdc_dataprov_config::info(result, p, "type of the data provider");

    } else if (c == "get")
    {
      ret = scdc_dataprov_config::get<string>(result, p, type);

    } else done = false;

  } else done = false;

  if (done && !ret)
  {
    SCDC_FAIL("config_do_cmd_param: cmd '" << cmd << "' not implemented");
    return false;
  }

  return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r9, %r14
movq %r8, %r15
movq %rdx, %r13
movq %rsi, %rbx
movq %rdi, %r12
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%rsi), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0x1d19a
leaq 0x38(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rdi
callq 0x1d19a
movb $0x1, (%r14)
leaq 0x33c68(%rip), %rsi     # 0x6b50d
leaq 0x28(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x37911
leaq 0x344a0(%rip), %rsi     # 0x6bd5a
leaq 0x28(%rsp), %rdi
callq 0xb110
testl %eax, %eax
jne 0x37943
leaq 0x32fcc(%rip), %rsi     # 0x6a89b
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x37a78
leaq 0x3327b(%rip), %rsi     # 0x6ab63
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
jne 0x37943
movq %rbp, %r13
addq $0x8, %r12
movq 0x28(%rsp), %rsi
movq %r15, %rdi
movq %r12, %rdx
callq 0x224ae
movl %eax, %ebp
jmp 0x3794d
leaq 0x32f83(%rip), %rsi     # 0x6a89b
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x37a60
leaq 0x3351c(%rip), %rsi     # 0x6ae4d
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x37a92
movq %rbp, %r13
movb $0x0, (%r14)
movb $0x1, %bpl
testb %bpl, %bpl
jne 0x37a1c
cmpb $0x0, (%r14)
je 0x37a1c
leaq 0x54c09(%rip), %r15     # 0x8c570
movq (%r15), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x37a1a
addq $0x20, %rdi
callq 0xb7d0
movq (%r15), %rax
movq 0x8(%rax), %r14
leaq 0x327fc(%rip), %rsi     # 0x6a188
movl $0xb, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x34278(%rip), %rsi     # 0x6bc18
movl $0xa, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x32fb2(%rip), %rsi     # 0x6a966
movl $0x1a, %edx
movq %r14, %rdi
callq 0xb5f0
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r14, %rdi
callq 0xb5f0
movq %rax, %rbx
leaq 0x3439f(%rip), %rsi     # 0x6bd79
movl $0x11, %edx
movq %rax, %rdi
callq 0xb5f0
movq (%rbx), %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 (%r15), %rdi
addq $0x20, %rdi
callq 0xb3b0
xorl %ebp, %ebp
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x37a33
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x37a4f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb510
movl %ebp, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbp, %r13
movq 0x8(%r12), %rsi
movb $0x1, %bpl
movq %r15, %rdi
callq 0x1bf76
jmp 0x3794d
movq %rbp, %r13
movb $0x1, %bpl
leaq 0x342da(%rip), %rsi     # 0x6bd5f
movq %r15, %rdi
callq 0x1bf76
jmp 0x3794d
movq %rbp, %r13
movb $0x1, %bpl
leaq 0x342bb(%rip), %rsi     # 0x6bd5a
movq %r15, %rdi
callq 0x1bfb2
jmp 0x3794d
movq %rax, %rbx
jmp 0x37acb
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x37acb
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x37ae7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb510
movq %rbx, %rdi
callq 0xb9c0
nop