// File: /workspace/github_cpp_makefile_star2_O3/mh0fm4[P]SCDC/src/components/dataprov/dataprov_jobrun_relay.cc
// Function: scdc_dataprov_jobrun_relay::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_jobrun_relay::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 == "")
  {
    ret = scdc_dataprov_relay::config_do_cmd_param(cmd, param, val, result, done);
    if (!ret) goto do_quit;

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

    } else done = false;

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

    if (done);
    else if (p == "max_parallel_jobs")
    {
      done = true;

      if (c == "info") ret = scdc_dataprov_config::ls(result, "maximum number of parallel jobs executed at once");
      else if (c == "get") ret = scdc_dataprov_config::get<scdcint_t>(result, "max_parallel_jobs", max_parallel_jobs);
      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 $0x88, %rsp
movq %r9, %r14
movq %r8, %r12
movq %rcx, %rbp
movq %rdx, %r13
movq %rsi, %rbx
movq %rdi, (%rsp)
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%rsi), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0x1d0a0
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rdi
callq 0x1d0a0
movb $0x1, (%r14)
leaq 0x13889(%rip), %rsi     # 0x6b52d
leaq 0x28(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x57d8d
leaq 0x58(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rdi
callq 0x1d0a0
leaq 0x48(%rsp), %rcx
movq (%rsp), %rdi
movq %rbx, %rsi
movq %r13, %rdx
movq %r12, %r8
movq %r14, %r9
callq 0x20f90
movl %eax, %ebp
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x57d07
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xb510
testb %bpl, %bpl
je 0x57e21
movb $0x1, %bpl
cmpb $0x0, (%r14)
jne 0x57f0f
leaq 0x156c3(%rip), %rsi     # 0x6d3e7
leaq 0x28(%rsp), %rdi
callq 0xb110
testl %eax, %eax
jne 0x57f0f
movb $0x1, (%r14)
leaq 0x12b7a(%rip), %rsi     # 0x6a8bb
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x57efd
leaq 0x12e29(%rip), %rsi     # 0x6ab83
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
jne 0x57e18
movq (%rsp), %rdx
addq $0x128, %rdx            # imm = 0x128
leaq 0x15669(%rip), %rsi     # 0x6d3e7
movq %r12, %rdi
callq 0x53c9c
movl %eax, %ebp
jmp 0x57e23
leaq 0x78(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %rdi
callq 0x1d0a0
leaq 0x68(%rsp), %rcx
movq (%rsp), %rdi
movq %rbx, %rsi
movq %r13, %rdx
movq %r12, %r8
movq %r14, %r9
callq 0x20f90
movl %eax, %ebp
movq 0x68(%rsp), %rdi
cmpq %r15, %rdi
je 0x57dde
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xb510
testb %bpl, %bpl
je 0x57e21
leaq 0x12ad1(%rip), %rsi     # 0x6a8bb
leaq 0x8(%rsp), %rdi
callq 0xb110
movb $0x1, %bpl
testl %eax, %eax
je 0x57f0f
leaq 0x13067(%rip), %rsi     # 0x6ae6d
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x57ef4
movb $0x0, (%r14)
jmp 0x57f0f
xorl %ebp, %ebp
testb %bpl, %bpl
jne 0x57f0f
cmpb $0x0, (%r14)
je 0x57f0f
leaq 0x34733(%rip), %r15     # 0x8c570
movq (%r15), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x57ef0
addq $0x20, %rdi
callq 0xb7d0
movq (%r15), %rax
movq 0x8(%rax), %r14
leaq 0x12346(%rip), %rsi     # 0x6a1a8
movl $0xb, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x15506(%rip), %rsi     # 0x6d37c
movl $0x17, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x12afc(%rip), %rsi     # 0x6a986
movl $0x1a, %edx
movq %r14, %rdi
callq 0xb5f0
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r14, %rdi
callq 0xb5f0
movq %rax, %rbx
leaq 0x14050(%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 (%r15), %rdi
addq $0x20, %rdi
callq 0xb3b0
xorl %ebp, %ebp
jmp 0x57f0f
leaq 0x154ec(%rip), %rsi     # 0x6d3e7
jmp 0x57f04
leaq 0x15490(%rip), %rsi     # 0x6d394
movb $0x1, %bpl
movq %r12, %rdi
callq 0x1bf0a
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x57f2b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x57f47
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb510
movl %ebp, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r15, %rdi
je 0x57f93
movq 0x78(%rsp), %rsi
jmp 0x57f81
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x57f93
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x57f93
movq %rax, %rbx
jmp 0x57faf
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x57faf
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x57fcb
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb510
movq %rbx, %rdi
callq 0xb9c0
nop