// File: /workspace/github_cpp_makefile_star2_O2/mh0fm4[P]SCDC/src/components/dataprov/dataprov.cc
// Function: scdc_dataprov::config_do_cmd(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::config_do_cmd(const std::string &cmd, const std::string &params, scdc_dataset_input_t *input, scdc_dataset_output_t *output, scdc_result &result)
{
  SCDC_TRACE("config_do_cmd: cmd: '" << cmd << "', params: '" << params << "', input: '" << input << "', output: '" << output << "'");

  stringlist pvsl(',', params);

  scdc_config_result res;
  bool done = false;

  if (pvsl.size() > 0)
  {
    string pv;

    while (pvsl.front_pop(pv))
    {
      SCDC_TRACE("config_do_cmd: parameter (and value): '" << pv << "'");

      stringlist pvl(' ', pv);
      string p = pvl.front_pop();

      if (p == "*")
      {
        scdc_config_result ast;
        config_do_cmd_param("ls", "", string(""), ast, done);

        if (ast.size() > 0)
        {
          if (pvsl.size() > 0) ast += "," + pvsl.conflate();
          pvsl = stringlist(',', ast);
        }

      } else
      {
        if (!config_do_cmd_param_base(cmd, p.c_str(), pvl.conflate(), res, done))
        {
          result = "config command for parameter '" + p + "' failed: " + res;
          SCDC_FAIL(__func__ << ": " << result);
          return false;
        }
      }
    }

  } else
  {
    if (!config_do_cmd_param_base(cmd, "", string(""), res, done))
    {
      result = "config command '" + cmd + "' failed";
      SCDC_FAIL(__func__ << ": " << result);
      return false;
    }
  }

  SCDC_TRACE("config_do_cmd: result: '" << res << "'");

  result = res;

  return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1f8, %rsp            # imm = 0x1F8
movq %r9, 0x8(%rsp)
movq %rsi, 0x10(%rsp)
movq %rdi, 0x18(%rsp)
leaq 0x158(%rsp), %rbx
movq %rbx, %rdi
movq %rdx, %rsi
callq 0xb750
leaq 0xf0(%rsp), %rdi
pushq $0x2c
popq %rsi
movq %rbx, %rdx
callq 0x2f05c
leaq 0x158(%rsp), %rdi
callq 0xb230
leaq 0xe0(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
xorl %ecx, %ecx
movb %cl, (%rax)
movb %cl, 0x4(%rsp)
cmpq $0x0, 0x100(%rsp)
je 0x2e805
leaq 0xc0(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x1d8(%rsp), %rbp
leaq 0x88(%rsp), %rbx
leaq 0x118(%rsp), %r14
leaq 0x60(%rsp), %r12
leaq 0xf0(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x19f34
testb %al, %al
je 0x2e7f3
movq %rbp, %rdi
leaq 0xb0(%rsp), %rsi
callq 0xb750
movq %rbx, %rdi
pushq $0x20
popq %rsi
movq %rbp, %rdx
callq 0x2f05c
movq %rbp, %rdi
callq 0xb230
movq %r14, %rdi
movq %rbx, %rsi
callq 0x19ba0
movq %r14, %rdi
leaq 0x246f8(%rip), %rsi     # 0x52d22
callq 0x19be0
testb %al, %al
je 0x2e778
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
andq $0x0, 0x28(%rsp)
movb $0x0, 0x30(%rsp)
movq %r12, %rdi
leaq 0x237a7(%rip), %rsi     # 0x51dfd
leaq 0x7(%rsp), %rdx
callq 0x1a132
leaq 0x40(%rsp), %rdi
leaq 0x23e51(%rip), %r13     # 0x524bd
movq %r13, %rsi
leaq 0x6(%rsp), %rdx
callq 0x1a132
leaq 0x1b8(%rsp), %r15
movq %r15, %rdi
movq %r13, %rsi
leaq 0x5(%rsp), %rdx
callq 0x1a132
movq 0x18(%rsp), %rdi
movq (%rdi), %rax
movq %r12, %rsi
leaq 0x40(%rsp), %r13
movq %r13, %rdx
movq %r15, %rcx
leaq 0x20(%rsp), %r8
leaq 0x4(%rsp), %r9
callq *0x60(%rax)
movq %r15, %rdi
callq 0xb230
movq %r13, %rdi
callq 0xb230
movq %r12, %rdi
callq 0xb230
cmpq $0x0, 0x28(%rsp)
je 0x2e76c
cmpq $0x0, 0x100(%rsp)
je 0x2e729
leaq 0x40(%rsp), %r13
movq %r13, %rdi
leaq 0xf0(%rsp), %rsi
callq 0x1ca32
movq %r12, %rdi
leaq 0x23144(%rip), %rsi     # 0x51846
movq %r13, %rdx
callq 0x218cd
leaq 0x20(%rsp), %rdi
movq %r12, %rsi
callq 0xba90
movq %r12, %rdi
callq 0xb230
leaq 0x40(%rsp), %rdi
callq 0xb230
leaq 0x198(%rsp), %r15
movq %r15, %rdi
leaq 0x20(%rsp), %rsi
callq 0xb750
movq %r12, %rdi
pushq $0x2c
popq %rsi
movq %r15, %rdx
callq 0x2f05c
leaq 0xf0(%rsp), %rdi
movq %r12, %rsi
callq 0x2f0c2
movq %r12, %rdi
callq 0x19ef4
movq %r15, %rdi
callq 0xb230
leaq 0x20(%rsp), %rdi
callq 0xb230
jmp 0x2e7de
movq 0x118(%rsp), %rsi
movq %r12, %rdi
leaq 0x20(%rsp), %rdx
callq 0x1a132
leaq 0x178(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1ca32
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq %r12, %rdx
movq %r15, %rcx
leaq 0xd0(%rsp), %r8
leaq 0x4(%rsp), %r9
callq 0x2ec24
movl %eax, %r13d
movq %r15, %rdi
callq 0xb230
movq %r12, %rdi
callq 0xb230
testb %r13b, %r13b
je 0x2e8a3
movq %r14, %rdi
callq 0xb230
movq %rbx, %rdi
callq 0x19ef4
jmp 0x2e5d2
leaq 0xb0(%rsp), %rdi
callq 0xb230
jmp 0x2e88a
leaq 0x23cb1(%rip), %rsi     # 0x524bd
leaq 0x88(%rsp), %rdi
leaq 0x60(%rsp), %rdx
callq 0x1a132
leaq 0x23c98(%rip), %rsi     # 0x524bd
leaq 0x138(%rsp), %rdi
leaq 0xb0(%rsp), %rdx
callq 0x1a132
leaq 0x88(%rsp), %rdx
leaq 0x138(%rsp), %rcx
leaq 0xd0(%rsp), %r8
leaq 0x4(%rsp), %r9
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x2ec24
movl %eax, %ebx
leaq 0x138(%rsp), %rdi
callq 0xb230
leaq 0x88(%rsp), %rdi
callq 0xb230
testb %bl, %bl
je 0x2e9be
movb $0x1, %bl
leaq 0xd0(%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0xb2e0
jmp 0x2ea91
leaq 0x2447a(%rip), %rsi     # 0x52d24
leaq 0x40(%rsp), %rdi
leaq 0x118(%rsp), %rdx
callq 0x19ae2
leaq 0x230e2(%rip), %rdx     # 0x519a5
leaq 0x20(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x1cb18
leaq 0x60(%rsp), %rdi
leaq 0x20(%rsp), %rsi
leaq 0xd0(%rsp), %rdx
callq 0x1eeb2
leaq 0x60(%rsp), %rbx
movq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0xb690
movq %rbx, %rdi
callq 0xb230
leaq 0x20(%rsp), %rdi
callq 0xb230
leaq 0x40(%rsp), %rdi
callq 0xb230
leaq 0x46c62(%rip), %rbx     # 0x75580
movq (%rbx), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x2e992
addq $0x20, %rdi
callq 0xb800
movq (%rbx), %rax
movq 0x8(%rax), %rdi
leaq 0x22849(%rip), %rsi     # 0x51188
callq 0xb520
leaq 0x242d5(%rip), %rsi     # 0x52c20
movq %rax, %rdi
callq 0xb520
leaq 0x243e9(%rip), %rsi     # 0x52d43
movq %rax, %rdi
callq 0xb520
leaq 0x2613a(%rip), %rsi     # 0x54aa3
movq %rax, %rdi
callq 0xb520
movq %rax, %rdi
movq 0x8(%rsp), %rsi
callq 0xb490
movq %rax, %rdi
callq 0xb270
movq (%rbx), %rdi
addq $0x20, %rdi
callq 0xb3e0
leaq 0x118(%rsp), %rdi
callq 0xb230
leaq 0x88(%rsp), %rdi
callq 0x19ef4
leaq 0xb0(%rsp), %rdi
callq 0xb230
jmp 0x2ea8f
leaq 0x2438c(%rip), %rsi     # 0x52d51
leaq 0x60(%rsp), %rdi
movq 0x10(%rsp), %rdx
callq 0x19ae2
leaq 0x244b5(%rip), %rdx     # 0x52e90
leaq 0x88(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x1cb18
leaq 0x88(%rsp), %rbx
movq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0xb690
movq %rbx, %rdi
callq 0xb230
leaq 0x60(%rsp), %rdi
callq 0xb230
leaq 0x46b65(%rip), %rbx     # 0x75580
movq (%rbx), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x2ea8f
addq $0x20, %rdi
callq 0xb800
movq (%rbx), %rax
movq 0x8(%rax), %rdi
leaq 0x2274c(%rip), %rsi     # 0x51188
callq 0xb520
leaq 0x241d8(%rip), %rsi     # 0x52c20
movq %rax, %rdi
callq 0xb520
leaq 0x242ec(%rip), %rsi     # 0x52d43
movq %rax, %rdi
callq 0xb520
leaq 0x2603d(%rip), %rsi     # 0x54aa3
movq %rax, %rdi
callq 0xb520
movq %rax, %rdi
movq 0x8(%rsp), %rsi
callq 0xb490
movq %rax, %rdi
callq 0xb270
movq (%rbx), %rdi
addq $0x20, %rdi
callq 0xb3e0
xorl %ebx, %ebx
leaq 0xd0(%rsp), %rdi
callq 0xb230
leaq 0xf0(%rsp), %rdi
callq 0x19ef4
movl %ebx, %eax
addq $0x1f8, %rsp            # imm = 0x1F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
jmp 0x2ebfd
jmp 0x2eb2d
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0xb230
jmp 0x2eae0
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
jmp 0x2ebb8
jmp 0x2eb99
movq %rax, %rbx
leaq 0x138(%rsp), %rdi
callq 0xb230
jmp 0x2eb04
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
jmp 0x2ebfd
jmp 0x2eb2d
jmp 0x2eb99
movq %rax, %rbx
leaq 0x158(%rsp), %rdi
callq 0xb230
jmp 0x2ec1c
movq %rax, %rbx
jmp 0x2ec02
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0xb230
jmp 0x2eb49
jmp 0x2eb8f
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
jmp 0x2eb88
movq %rax, %rbx
leaq 0x198(%rsp), %rdi
jmp 0x2eb88
jmp 0x2eb8f
movq %rax, %rbx
jmp 0x2eb74
movq %rax, %rbx
leaq 0x1b8(%rsp), %rdi
callq 0xb230
leaq 0x40(%rsp), %rdi
callq 0xb230
jmp 0x2eb83
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0xb230
jmp 0x2eb92
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
jmp 0x2ebb8
movq %rax, %rbx
jmp 0x2ebbd
movq %rax, %rbx
jmp 0x2ebb3
movq %rax, %rbx
leaq 0x178(%rsp), %rdi
callq 0xb230
leaq 0x60(%rsp), %rdi
callq 0xb230
leaq 0x118(%rsp), %rdi
callq 0xb230
leaq 0x88(%rsp), %rdi
callq 0x19ef4
jmp 0x2ebf5
jmp 0x2ebf2
movq %rax, %rbx
leaq 0x1d8(%rsp), %rdi
callq 0xb230
jmp 0x2ebf5
movq %rax, %rbx
jmp 0x2ebca
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0xb230
leaq 0xd0(%rsp), %rdi
callq 0xb230
leaq 0xf0(%rsp), %rdi
callq 0x19ef4
movq %rbx, %rdi
callq 0xb9a0