// File: /workspace/github_cpp_makefile_star2_O2/mh0fm4[P]SCDC/src/components/dataprov/dataprov_hook.cc
// Function: scdc_dataprov_hook::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_hook::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 << "'");

  done = true;
  bool ret = true;

  if (param == "")
  {
    ret = scdc_dataprov::config_do_cmd_param(cmd, param, val, result, done);
    if (!ret) goto do_quit;

    done = true;

    if (hook_arg.hook.config)
    {
      scdc_result_t res = SCDC_RESULT_INIT_EMPTY;

      ret = (hook_arg.hook.config(dataprov, cmd.c_str(), param.c_str(), val.c_str(), val.size(), &res) == SCDC_SUCCESS);
      if (!ret) goto do_quit;

      done = true;

      /* base class AND hook, concat results */
      if (cmd == "info")
      {
        ret = scdc_dataprov_config::info(result, SCDC_RESULT_STR(&res));

      } else if (cmd == "ls")
      {
        ret = scdc_dataprov_config::ls(result, SCDC_RESULT_STR(&res));

      } else
      {
        ret = true;
        result = SCDC_RESULT_STR(&res);
      }
    }

  } else
  {
    ret = scdc_dataprov::config_do_cmd_param(cmd, param, val, result, done);
    if (!ret) goto do_quit;

    if (done);
    else if (hook_arg.hook.config)
    {
      scdc_result_t res = SCDC_RESULT_INIT_EMPTY;

      ret = (hook_arg.hook.config(dataprov, cmd.c_str(), param.c_str(), val.c_str(), val.size(), &res) == SCDC_SUCCESS);
      if (!ret) goto do_quit;

      done = true;

      result = SCDC_RESULT_STR(&res);

    } else done = false;
  }

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

  return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x288, %rsp            # imm = 0x288
movq %r9, %r12
movq %r8, %r14
movq %rcx, %rbx
movq %rdx, %rbp
movq %rsi, %r15
movq %rdi, %r13
movb $0x1, (%r9)
leaq 0x16d1b(%rip), %rsi     # 0x524bd
movq %rdx, %rdi
callq 0x19be0
testb %al, %al
movq %r15, 0x10(%rsp)
movq %rbx, 0x18(%rsp)
je 0x3b89c
leaq 0x60(%rsp), %rdi
movq %rbx, %rsi
callq 0xb750
movq %r13, %rdi
movq %r15, %rsi
movq %rbp, %rdx
leaq 0x60(%rsp), %rcx
movq %r14, %r8
movq %r12, %r15
movq %r12, %r9
callq 0x2ec9c
movl %eax, %ebx
movq %rbp, %r12
leaq 0x60(%rsp), %rdi
callq 0xb230
testb %bl, %bl
je 0x3b988
movb $0x1, (%r15)
movq 0x78(%r13), %rbp
testq %rbp, %rbp
je 0x3ba22
movq %r14, %rbx
movq %r15, %r14
leaq 0x88(%rsp), %r15
movl $0x200, %edx            # imm = 0x200
movq %r15, %rdi
xorl %esi, %esi
callq 0xb2f0
movq $0x200, -0x8(%r15)      # imm = 0x200
movq 0xb8(%r13), %rdi
movq 0x10(%rsp), %rax
movq (%rax), %rsi
movq (%r12), %rdx
movq 0x18(%rsp), %r8
movq (%r8), %rcx
movq 0x8(%r8), %r8
movq %rax, %r12
leaq 0x80(%rsp), %r9
callq *%rbp
cmpq $0x1, %rax
sete %bpl
jne 0x3b992
movb $0x1, (%r14)
leaq 0x15fd9(%rip), %rsi     # 0x51850
movq %r12, %rdi
callq 0x19be0
testb %al, %al
je 0x3ba3f
leaq 0x88(%rsp), %rsi
movq %rbx, %rdi
callq 0x1a288
jmp 0x3b992
leaq 0x40(%rsp), %rdi
movq %rbx, %rsi
callq 0xb750
movq %r13, %rdi
movq %r15, %rsi
movq %rbp, %rdx
leaq 0x40(%rsp), %rcx
movq %r14, %r8
movq %r12, %r15
movq %r12, %r9
callq 0x2ec9c
movl %eax, %ebx
movq %rbp, %r12
leaq 0x40(%rsp), %rdi
callq 0xb230
testb %bl, %bl
je 0x3b988
movb $0x1, %bpl
cmpb $0x0, (%r15)
jne 0x3ba2b
movq %r14, %rbx
movq %r15, %r14
movq 0x78(%r13), %r15
testq %r15, %r15
je 0x3ba27
leaq 0x88(%rsp), %rbp
movl $0x200, %edx            # imm = 0x200
movq %rbp, %rdi
xorl %esi, %esi
callq 0xb2f0
movq $0x200, -0x8(%rbp)      # imm = 0x200
movq 0xb8(%r13), %rdi
movq 0x10(%rsp), %rax
movq (%rax), %rsi
movq (%r12), %rdx
movq 0x18(%rsp), %rax
movq (%rax), %rcx
movq 0x8(%rax), %r8
leaq 0x80(%rsp), %r9
callq *%r15
cmpq $0x1, %rax
sete %bpl
jne 0x3b981
movb $0x1, (%r14)
leaq 0x88(%rsp), %rsi
leaq 0x20(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x1a132
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0xb2e0
leaq 0x20(%rsp), %rdi
callq 0xb230
movq 0x10(%rsp), %r12
jmp 0x3b992
xorl %ebp, %ebp
movq 0x10(%rsp), %r12
movq %r15, %r14
testb %bpl, %bpl
jne 0x3ba2b
cmpb $0x0, (%r14)
je 0x3ba2b
leaq 0x39bd4(%rip), %rbx     # 0x75580
movq (%rbx), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x3ba1e
addq $0x20, %rdi
callq 0xb800
movq (%rbx), %rax
movq 0x8(%rax), %rdi
leaq 0x157bb(%rip), %rsi     # 0x51188
callq 0xb520
leaq 0x17e49(%rip), %rsi     # 0x53822
movq %rax, %rdi
callq 0xb520
leaq 0x15f33(%rip), %rsi     # 0x5191b
movq %rax, %rdi
callq 0xb520
movq %rax, %rdi
movq %r12, %rsi
callq 0xb490
leaq 0x1748e(%rip), %rsi     # 0x52e90
movq %rax, %rdi
callq 0xb520
movq %rax, %rdi
callq 0xb270
movq (%rbx), %rdi
addq $0x20, %rdi
callq 0xb3e0
xorl %ebp, %ebp
jmp 0x3ba2b
movb $0x1, %bpl
jmp 0x3ba2b
movb $0x0, (%r14)
movl %ebp, %eax
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x163b7(%rip), %rsi     # 0x51dfd
movq %r12, %rdi
callq 0x19be0
leaq 0x88(%rsp), %rsi
testb %al, %al
je 0x3ba67
movq %rbx, %rdi
callq 0x1a2c8
jmp 0x3b992
leaq 0x20(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x1a132
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0xb2e0
leaq 0x20(%rsp), %rdi
callq 0xb230
jmp 0x3b992
jmp 0x3ba96
jmp 0x3baa0
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
jmp 0x3bab7
movq %rax, %rbx
jmp 0x3babc
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
jmp 0x3bab7
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0xb230
movq %rbx, %rdi
callq 0xb9a0