// File: /workspace/github_cpp_makefile_star2_O1/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, %rbx
movq %r8, %r15
movq %rcx, %rbp
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r13
movb $0x1, (%r9)
leaq 0x1f221(%rip), %rsi     # 0x6b50d
movq %rdx, %rdi
callq 0xb110
testl %eax, %eax
movq %r14, 0x8(%rsp)
movq %r15, (%rsp)
movq %r13, 0x38(%rsp)
movq %rbp, 0x30(%rsp)
je 0x4c446
leaq 0x50(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
addq %rsi, %rdx
leaq 0x40(%rsp), %rbp
movq %rbp, %rdi
callq 0x1d19a
movq %r13, %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %rbp, %rcx
movq %r15, %r8
movq %rbx, %r9
callq 0x37842
movl %eax, %ebp
movq %rbx, %r14
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x4c368
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xb510
testb %bpl, %bpl
je 0x4c5c5
cmpb $0x0, (%r14)
jne 0x4c5c5
movq 0x38(%rsp), %rax
movq 0x78(%rax), %r15
testq %r15, %r15
je 0x4c599
leaq 0x80(%rsp), %rbp
movl $0x208, %edx            # imm = 0x208
movq %rax, %rbx
movq %rbp, %rdi
xorl %esi, %esi
callq 0xb2d0
movq $0x200, (%rbp)          # imm = 0x200
movq 0xb8(%rbx), %rdi
movq 0x8(%rsp), %rax
movq (%rax), %rsi
movq (%r12), %rdx
movq 0x30(%rsp), %rax
movq (%rax), %rcx
movq 0x8(%rax), %r8
movq %rbp, %r9
callq *%r15
cmpq $0x1, %rax
sete %bpl
jne 0x4c5c5
movb $0x1, (%r14)
leaq 0x88(%rsp), %rbx
leaq 0x20(%rsp), %r12
movq %r12, -0x10(%r12)
movq %rbx, %rdi
callq 0xb200
leaq (%rsp,%rax), %rdx
addq $0x88, %rdx
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x1bee6
leaq 0x10(%rsp), %rsi
movq (%rsp), %rdi
callq 0xb2c0
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x4c5c5
movq 0x20(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x4c5c5
leaq 0x70(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
addq %rsi, %rdx
leaq 0x60(%rsp), %rbp
movq %rbp, %rdi
callq 0x1d19a
movq %r13, %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %rbp, %rcx
movq %r15, %r8
movq %rbx, %r9
callq 0x37842
movl %eax, %ebp
movq %rbx, %r14
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x4c49f
movq 0x70(%rsp), %rsi
incq %rsi
callq 0xb510
testb %bpl, %bpl
je 0x4c5c5
movb $0x1, (%r14)
movq 0x38(%rsp), %rax
movq 0x78(%rax), %r15
testq %r15, %r15
je 0x4c5c5
leaq 0x80(%rsp), %rbp
movl $0x208, %edx            # imm = 0x208
movq %rax, %rbx
movq %rbp, %rdi
xorl %esi, %esi
callq 0xb2d0
movq $0x200, (%rbp)          # imm = 0x200
movq 0xb8(%rbx), %rdi
movq 0x8(%rsp), %rbx
movq (%rbx), %rsi
movq (%r12), %rdx
movq 0x30(%rsp), %rax
movq (%rax), %rcx
movq 0x8(%rax), %r8
movq %rbp, %r9
callq *%r15
cmpq $0x1, %rax
sete %bpl
jne 0x4c5c5
movb $0x1, (%r14)
leaq 0x1e37d(%rip), %rsi     # 0x6a89b
movq %rbx, %rdi
callq 0xb110
testl %eax, %eax
je 0x4c59f
leaq 0x1e91c(%rip), %rsi     # 0x6ae4d
movq %rbx, %rdi
callq 0xb110
testl %eax, %eax
movq (%rsp), %r15
je 0x4c5b2
leaq 0x88(%rsp), %rbx
leaq 0x20(%rsp), %r12
movq %r12, -0x10(%r12)
movq %rbx, %rdi
callq 0xb200
leaq (%rsp,%rax), %rdx
addq $0x88, %rdx
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x1bee6
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0xb2c0
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x4c5c2
movq 0x20(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x4c5c2
movb $0x0, (%r14)
jmp 0x4c5c5
leaq 0x88(%rsp), %rsi
movq (%rsp), %rdi
callq 0x1bf76
jmp 0x4c5c2
leaq 0x88(%rsp), %rsi
movq %r15, %rdi
callq 0x1bfb2
movb $0x1, %bpl
testb %bpl, %bpl
jne 0x4c699
cmpb $0x0, (%r14)
je 0x4c699
leaq 0x3ff91(%rip), %r14     # 0x8c570
movq (%r14), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x4c697
addq $0x20, %rdi
callq 0xb7d0
movq (%r14), %rax
movq 0x8(%rax), %rbx
leaq 0x1db84(%rip), %rsi     # 0x6a188
movl $0xb, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0x20202(%rip), %rsi     # 0x6c81a
movl $0xf, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0x1e33a(%rip), %rsi     # 0x6a966
movl $0x1a, %edx
movq %rbx, %rdi
callq 0xb5f0
movq 0x8(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %rbx, %rdi
callq 0xb5f0
movq %rax, %rbx
leaq 0x1f831(%rip), %rsi     # 0x6be88
movl $0x8, %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 (%r14), %rdi
addq $0x20, %rdi
callq 0xb3b0
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4c6b1
jmp 0x4c6c5
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x4c702
movq 0x20(%rsp), %rsi
jmp 0x4c6fa
movq %rax, %rbx
jmp 0x4c702
movq %rax, %rbx
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x4c702
movq 0x70(%rsp), %rsi
jmp 0x4c6fa
movq %rax, %rbx
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x4c702
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xb510
movq %rbx, %rdi
callq 0xb9c0