// File: /workspace/github_cpp_makefile_star2_O3/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 0x1f759(%rip), %rsi     # 0x6b52d
movq %rdx, %rdi
callq 0xb110
testl %eax, %eax
movq %r14, (%rsp)
movq %r15, 0x8(%rsp)
movq %r13, 0x38(%rsp)
movq %rbp, 0x30(%rsp)
je 0x4bf36
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 0x1d0a0
movq %r13, %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %rbp, %rcx
movq %r15, %r8
movq %rbx, %r9
callq 0x374f4
movl %eax, %ebp
movq %rbx, %r14
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x4be50
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xb510
testb %bpl, %bpl
je 0x4c097
movb $0x1, %bpl
cmpb $0x0, (%r14)
jne 0x4c16d
movq 0x38(%rsp), %rax
movq 0x78(%rax), %r15
testq %r15, %r15
je 0x4c186
leaq 0x88(%rsp), %rbp
movl $0x200, %edx            # imm = 0x200
movq %rax, %rbx
movq %rbp, %rdi
xorl %esi, %esi
callq 0xb2d0
movq $0x200, -0x8(%rbp)      # imm = 0x200
movq 0xb8(%rbx), %rdi
movq (%rsp), %rax
movq (%rax), %rsi
movq (%r12), %rdx
movq 0x30(%rsp), %rax
movq (%rax), %rcx
movq 0x8(%rax), %r8
leaq 0x80(%rsp), %r9
callq *%r15
cmpq $0x1, %rax
sete %bpl
jne 0x4c099
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 0x1be38
leaq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0xb2c0
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x4c099
movq 0x20(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x4c099
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 0x1d0a0
movq %r13, %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %rbp, %rcx
movq %r15, %r8
movq %rbx, %r9
callq 0x374f4
movl %eax, %ebp
movq %rbx, %r14
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x4bf8f
movq 0x70(%rsp), %rsi
incq %rsi
callq 0xb510
testb %bpl, %bpl
je 0x4c097
movb $0x1, (%r14)
movq 0x38(%rsp), %rax
movq 0x78(%rax), %r15
testq %r15, %r15
je 0x4c181
leaq 0x88(%rsp), %rbp
movl $0x200, %edx            # imm = 0x200
movq %rax, %rbx
movq %rbp, %rdi
xorl %esi, %esi
callq 0xb2d0
movq $0x200, -0x8(%rbp)      # imm = 0x200
movq 0xb8(%rbx), %rdi
movq (%rsp), %r13
movq (%r13), %rsi
movq (%r12), %rdx
movq 0x30(%rsp), %rax
movq (%rax), %rcx
movq 0x8(%rax), %r8
leaq 0x80(%rsp), %r9
callq *%r15
cmpq $0x1, %rax
sete %bpl
jne 0x4c09d
movb $0x1, (%r14)
leaq 0x1e8a8(%rip), %rsi     # 0x6a8bb
movq %r13, %rdi
callq 0xb110
testl %eax, %eax
je 0x4c18c
leaq 0x1ee43(%rip), %rsi     # 0x6ae6d
movq %r13, %rdi
callq 0xb110
testl %eax, %eax
movq 0x8(%rsp), %r15
je 0x4c1a3
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 0x1be38
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0xb2c0
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x4c09d
movq 0x20(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x4c09d
xorl %ebp, %ebp
movq (%rsp), %r13
testb %bpl, %bpl
jne 0x4c16d
cmpb $0x0, (%r14)
je 0x4c16d
leaq 0x404b9(%rip), %r14     # 0x8c570
movq (%r14), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x4c16b
addq $0x20, %rdi
callq 0xb7d0
movq (%r14), %rax
movq 0x8(%rax), %rbx
leaq 0x1e0cc(%rip), %rsi     # 0x6a1a8
movl $0xb, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0x207a2(%rip), %rsi     # 0x6c892
movl $0xf, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0x1e882(%rip), %rsi     # 0x6a986
movl $0x1a, %edx
movq %rbx, %rdi
callq 0xb5f0
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq %rbx, %rdi
callq 0xb5f0
movq %rax, %rbx
leaq 0x1fdd5(%rip), %rsi     # 0x6bf00
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
movb $0x1, %bpl
jmp 0x4c16d
movb $0x0, (%r14)
jmp 0x4c16d
leaq 0x88(%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0x1bece
jmp 0x4c09d
leaq 0x88(%rsp), %rsi
movq %r15, %rdi
callq 0x1bf0a
jmp 0x4c09d
jmp 0x4c1bc
jmp 0x4c1d0
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x4c20d
movq 0x20(%rsp), %rsi
jmp 0x4c205
movq %rax, %rbx
jmp 0x4c20d
movq %rax, %rbx
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x4c20d
movq 0x70(%rsp), %rsi
jmp 0x4c205
movq %rax, %rbx
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x4c20d
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xb510
movq %rbx, %rdi
callq 0xb9c0
nop