// File: /workspace/github_cpp_makefile_star2_O3/mh0fm4[P]SCDC/src/components/dataprov/dataprov_jobrun.cc
// Function: scdc_dataprov_jobrun::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::config_do_cmd_param(const std::string &cmd, const std::string &param, std::string val, scdc_config_result &result, bool &done)
{
  SCDC_TRACE(__func__ << ": cmd: '" << cmd << "', param: '" << param << "', val: '" << val << "', result: '" << result << "'");

  done = true;
  bool ret = true;

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

    if (cmd == "info")
    {
      done = true;

    } else if (cmd == "ls")
    {
      done = true;

      ret = scdc_dataprov_config::ls(result, "jobcmd")
         && scdc_dataprov_config::ls(result, "nodes")
         && scdc_dataprov_config::ls(result, "cores")
         && scdc_dataprov_config::ls(result, "max_parallel_jobs")
         && scdc_dataprov_config::ls(result, "performance")
         && scdc_dataprov_config::ls(result, "runjobs")
         && scdc_dataprov_config::ls(result, "sched_mode")
         && scdc_dataprov_config::ls(result, "sched_method");

    } else done = false;

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

    if (done);
    else if (cmd == "info")
    {
      done = true;

      if (param == "jobcmd")                 ret = scdc_dataprov_config::info(result, param, "command for running a job (string)");
      else if (param == "nodes")             ret = scdc_dataprov_config::info(result, param, "compute nodes for executing jobs (string list)");
      else if (param == "cores")             ret = scdc_dataprov_config::info(result, param, "number of cores of a node or in total (int)");
      else if (param == "max_parallel_jobs") ret = scdc_dataprov_config::info(result, param, "maximum number of parallel jobs of a node or in total (int)");
      else if (param == "performance")       ret = scdc_dataprov_config::info(result, param, "performance factor of a node (double)");
      else if (param == "runjobs")           ret = scdc_dataprov_config::info(result, param, "whether jobs should be run (bool)");
      else if (param == "sched_mode")        ret = scdc_dataprov_config::info(result, param, "how scheduling is invoked (string)");
      else if (param == "sched_method")      ret = scdc_dataprov_config::info(result, param, "which scheduling method is used (string)");
      else done = false;

    } else if (cmd == "put")
    {
      done = true;

      if (param == "jobcmd")                 ret = scdc_dataprov_config::put<string>(result, param, val, jobcmd);
      else if (param == "nodes")             ret = nodes_config(cmd, 0, val, result) && sched_change();
      else if (param == "cores")             ret = nodes_config(cmd, 1, val, result) && sched_change();
      else if (param == "max_parallel_jobs") ret = nodes_config(cmd, 2, val, result) && sched_change();
      else if (param == "performance")       ret = nodes_config(cmd, 3, val, result) && sched_change();
      else if (param == "runjobs")           ret = scdc_dataprov_config::put<bool>(result, param, val, runjobs) && sched_change();
      else if (param == "sched_mode")        ret = scdc_dataprov_config::put<string>(result, param, val, sched_mode) && sched_change();
      else if (param == "sched_method")      ret = scdc_dataprov_config::put<string>(result, param, val, sched_method) && sched_change();
      else done = false;

    } else if (cmd == "get")
    {
      done = true;

      if (param == "jobcmd")                 ret = scdc_dataprov_config::get<string>(result, param, jobcmd);
      else if (param == "nodes")             ret = nodes_config(cmd, 0, val, result);
      else if (param == "cores")             ret = nodes_config(cmd, 1, val, result);
      else if (param == "max_parallel_jobs") ret = nodes_config(cmd, 2, val, result);
      else if (param == "performance")       ret = nodes_config(cmd, 3, val, result);
      else if (param == "runjobs")           ret = scdc_dataprov_config::get<bool>(result, param, runjobs);
      else if (param == "sched_mode")        ret = scdc_dataprov_config::get<string>(result, param, sched_mode);
      else if (param == "sched_method")      ret = scdc_dataprov_config::get<string>(result, param, sched_method);
      else done = false;

    } else if (cmd == "rm")
    {
      done = true;

      if (param == "nodes") ret = nodes_config(cmd, 0, val, result);
      else done = false;

    } else done = false;
  }

do_quit:
  if (done && !ret)
  {
    SCDC_FAIL("config_do_cmd_param: command '" << 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, 0x8(%rsp)
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %r15
movb $0x1, (%r9)
leaq 0x1e543(%rip), %rsi     # 0x6b52d
movq %rdx, %rdi
callq 0xb110
testl %eax, %eax
je 0x4d10b
movq %r13, %rbp
leaq 0x58(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%rbx), %rsi
movq %rbx, 0x10(%rsp)
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
movq %r12, %r13
leaq 0x48(%rsp), %r12
movq %r12, %rdi
callq 0x1d0a0
movq %r15, 0x20(%rsp)
movq %r15, %rdi
movq %rbp, %rbx
movq %rbp, %rsi
movq %r13, 0x18(%rsp)
movq %r13, %rdx
movq %r12, %rcx
movq 0x8(%rsp), %r8
movq %r14, %r9
callq 0x374f4
movl %eax, %r12d
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x4d06a
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xb510
testb %r12b, %r12b
movq %rbx, %r13
je 0x4d5f5
movb $0x1, %r12b
cmpb $0x0, (%r14)
jne 0x4d72b
leaq 0x1d831(%rip), %rsi     # 0x6a8bb
movq %r13, %rdi
callq 0xb110
testl %eax, %eax
je 0x4d1e9
leaq 0x1da6a(%rip), %rsi     # 0x6ab0b
movq %r13, %rdi
callq 0xb110
testl %eax, %eax
je 0x4d33b
leaq 0x1dacb(%rip), %rsi     # 0x6ab83
movq %r13, %rdi
callq 0xb110
testl %eax, %eax
movq 0x20(%rsp), %r15
je 0x4d40d
leaq 0x1f45b(%rip), %rsi     # 0x6c52f
movq %r13, %rdi
callq 0xb110
testl %eax, %eax
movq 0x10(%rsp), %rbx
jne 0x4d102
movb $0x1, (%r14)
leaq 0x1fa16(%rip), %rsi     # 0x6cb06
movq 0x18(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x4d51e
movb $0x0, (%r14)
jmp 0x4d72b
movq %r14, %rbp
movq 0x8(%rsp), %r14
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x1e40a(%rip), %rdx     # 0x6b52d
leaq 0x28(%rsp), %rdi
movq %rdx, %rsi
callq 0x1be38
leaq 0x78(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %rdi
callq 0x1d0a0
leaq 0x28(%rsp), %rdx
leaq 0x68(%rsp), %rcx
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %r15
movq %r14, %r8
movq %rbp, %r14
movq %rbp, %r9
callq 0x374f4
movl %eax, %ebp
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x4d188
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x4d1a4
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb510
testb %bpl, %bpl
je 0x4d5f5
leaq 0x1d707(%rip), %rsi     # 0x6a8bb
movq %r13, %rdi
callq 0xb110
testl %eax, %eax
je 0x4d1e0
leaq 0x1dca6(%rip), %rsi     # 0x6ae6d
movq %r13, %rdi
callq 0xb110
testl %eax, %eax
je 0x4d2ba
movb $0x0, (%r14)
jmp 0x4d728
movb $0x1, (%r14)
jmp 0x4d728
movb $0x1, (%r14)
leaq 0x1f8e1(%rip), %rsi     # 0x6cad5
movq 0x18(%rsp), %r13
movq %r13, %rdi
callq 0xb110
testl %eax, %eax
je 0x4d4e3
movq %r14, %rbx
leaq 0x1f8f3(%rip), %rsi     # 0x6cb06
movq %r13, %rdi
callq 0xb110
testl %eax, %eax
movq 0x8(%rsp), %r14
je 0x4d4f4
leaq 0x1f8dd(%rip), %rsi     # 0x6cb0c
movq %r13, %rdi
callq 0xb110
testl %eax, %eax
je 0x4d52b
leaq 0x201a1(%rip), %rsi     # 0x6d3e7
movq %r13, %rdi
callq 0xb110
testl %eax, %eax
je 0x4d587
leaq 0x1f8b5(%rip), %rsi     # 0x6cb12
movq %r13, %rdi
callq 0xb110
testl %eax, %eax
je 0x4d59a
leaq 0x1f8aa(%rip), %rsi     # 0x6cb1e
movq %r13, %rdi
callq 0xb110
testl %eax, %eax
je 0x4d5b7
leaq 0x1f89b(%rip), %rsi     # 0x6cb26
movq %r13, %rdi
callq 0xb110
testl %eax, %eax
je 0x4d6d2
leaq 0x1f88f(%rip), %rsi     # 0x6cb31
movq %r13, %rdi
callq 0xb110
testl %eax, %eax
je 0x4d719
movb $0x0, (%rbx)
jmp 0x4d728
movb $0x1, (%r14)
leaq 0x1f810(%rip), %rsi     # 0x6cad5
movq %r15, %rdi
callq 0x1bf0a
leaq 0x1f832(%rip), %rsi     # 0x6cb06
movq %r15, %rdi
callq 0x1bf0a
leaq 0x1f829(%rip), %rsi     # 0x6cb0c
movq %r15, %rdi
callq 0x1bf0a
leaq 0x200f5(%rip), %rsi     # 0x6d3e7
movq %r15, %rdi
callq 0x1bf0a
leaq 0x1f811(%rip), %rsi     # 0x6cb12
movq %r15, %rdi
callq 0x1bf0a
leaq 0x1f80e(%rip), %rsi     # 0x6cb1e
movq %r15, %rdi
callq 0x1bf0a
leaq 0x1f807(%rip), %rsi     # 0x6cb26
movq %r15, %rdi
callq 0x1bf0a
leaq 0x1f803(%rip), %rsi     # 0x6cb31
movq %r15, %rdi
callq 0x1bf0a
jmp 0x4d728
movb $0x1, (%r14)
leaq 0x1f78f(%rip), %rsi     # 0x6cad5
movq 0x18(%rsp), %r15
movq %r15, %rdi
callq 0xb110
testl %eax, %eax
movq 0x20(%rsp), %rbx
je 0x4d500
leaq 0x1f79f(%rip), %rsi     # 0x6cb06
movq %r15, %rdi
callq 0xb110
testl %eax, %eax
je 0x4d537
leaq 0x1f78e(%rip), %rsi     # 0x6cb0c
movq %r15, %rdi
callq 0xb110
testl %eax, %eax
je 0x4d593
leaq 0x20052(%rip), %rsi     # 0x6d3e7
movq %r15, %rdi
callq 0xb110
testl %eax, %eax
je 0x4d5a6
leaq 0x1f766(%rip), %rsi     # 0x6cb12
movq %r15, %rdi
callq 0xb110
testl %eax, %eax
je 0x4d5c3
leaq 0x1f75b(%rip), %rsi     # 0x6cb1e
movq %r15, %rdi
callq 0xb110
testl %eax, %eax
je 0x4d6db
leaq 0x1f74c(%rip), %rsi     # 0x6cb26
movq %r15, %rdi
callq 0xb110
testl %eax, %eax
je 0x4d740
leaq 0x1f740(%rip), %rsi     # 0x6cb31
movq %r15, %rdi
callq 0xb110
testl %eax, %eax
jne 0x4d102
leaq 0xf0(%rbx), %rcx
jmp 0x4d747
movb $0x1, (%r14)
leaq 0x1f6bd(%rip), %rsi     # 0x6cad5
movq 0x18(%rsp), %rbp
movq %rbp, %rdi
callq 0xb110
testl %eax, %eax
movq 0x10(%rsp), %rbx
je 0x4d56d
leaq 0x1f6cd(%rip), %rsi     # 0x6cb06
movq %rbp, %rdi
callq 0xb110
testl %eax, %eax
je 0x4d51e
leaq 0x1f6bc(%rip), %rsi     # 0x6cb0c
movq %rbp, %rdi
callq 0xb110
testl %eax, %eax
je 0x4d5ad
leaq 0x1ff80(%rip), %rsi     # 0x6d3e7
movq %rbp, %rdi
callq 0xb110
testl %eax, %eax
je 0x4d6cb
leaq 0x1f694(%rip), %rsi     # 0x6cb12
movq %rbp, %rdi
callq 0xb110
testl %eax, %eax
je 0x4d6f9
leaq 0x1f689(%rip), %rsi     # 0x6cb1e
movq %rbp, %rdi
callq 0xb110
testl %eax, %eax
je 0x4d75e
movq %r14, %rbx
leaq 0x1f677(%rip), %rsi     # 0x6cb26
movq %rbp, %rdi
callq 0xb110
testl %eax, %eax
movq 0x8(%rsp), %r14
je 0x4d778
leaq 0x1f666(%rip), %rsi     # 0x6cb31
movq %rbp, %rdi
callq 0xb110
testl %eax, %eax
je 0x4d781
movb $0x0, (%rbx)
jmp 0x4d72b
leaq 0x1f654(%rip), %rsi     # 0x6cb3e
movq 0x8(%rsp), %rdi
jmp 0x4d723
leaq 0x1f666(%rip), %rsi     # 0x6cb61
jmp 0x4d720
addq $0x68, %rbx
movq (%r15), %rsi
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rdx
movq %rbx, %rcx
callq 0x22322
jmp 0x4d711
movq %r15, %rdi
movq %r13, %rsi
xorl %edx, %edx
jmp 0x4d704
leaq 0x1f65e(%rip), %rsi     # 0x6cb90
jmp 0x4d720
xorl %r12d, %r12d
movq %rbx, %rdi
movq %r13, %rsi
xorl %edx, %edx
movq 0x10(%rsp), %rcx
movq 0x8(%rsp), %r8
callq 0x4d804
testb %al, %al
je 0x4d5f8
addq $0x1b8, %rbx            # imm = 0x1B8
movq %rbx, %rdi
callq 0xb030
jmp 0x4d728
addq $0x68, %r15
movq (%rbp), %rsi
movq 0x8(%rsp), %rdi
movq %r15, %rdx
callq 0x223d0
jmp 0x4d711
leaq 0x1f62e(%rip), %rsi     # 0x6cbbc
jmp 0x4d720
movl $0x1, %edx
jmp 0x4d5c8
leaq 0x1f657(%rip), %rsi     # 0x6cbf8
jmp 0x4d720
movl $0x2, %edx
jmp 0x4d5c8
movl $0x1, %edx
jmp 0x4d6fe
leaq 0x1f660(%rip), %rsi     # 0x6cc1e
jmp 0x4d720
movl $0x3, %edx
movq %rbx, %rdi
movq %r13, %rsi
movq 0x10(%rsp), %rcx
movq 0x8(%rsp), %r8
callq 0x4d804
testb %al, %al
je 0x4d5f5
addq $0x1b8, %rbx            # imm = 0x1B8
movq %rbx, %rdi
callq 0xb030
jmp 0x4d72b
xorl %r12d, %r12d
testb %r12b, %r12b
jne 0x4d72b
cmpb $0x0, (%r14)
je 0x4d72b
leaq 0x3ef5e(%rip), %r15     # 0x8c570
movq (%r15), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x4d6c6
addq $0x20, %rdi
callq 0xb7d0
movq (%r15), %rax
movq 0x8(%rax), %rbx
leaq 0x1cb71(%rip), %rsi     # 0x6a1a8
movl $0xb, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0x1f491(%rip), %rsi     # 0x6cadc
movl $0x11, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0x1f62d(%rip), %rsi     # 0x6cc8c
movl $0x1e, %edx
movq %rbx, %rdi
callq 0xb5f0
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq %rbx, %rdi
callq 0xb5f0
movq %rax, %rbx
leaq 0x1e87a(%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 %r12d, %r12d
jmp 0x4d72b
movl $0x2, %edx
jmp 0x4d6fe
leaq 0x1f567(%rip), %rsi     # 0x6cc40
jmp 0x4d720
leaq 0xc8(%rbx), %rcx
movq (%r15), %rsi
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rdx
callq 0x55a3a
jmp 0x4d5dd
movl $0x3, %edx
movq %r15, %rdi
movq %r13, %rsi
movq %rbx, %rcx
movq 0x8(%rsp), %r8
callq 0x4d804
movl %eax, %r12d
jmp 0x4d5f8
leaq 0x1f543(%rip), %rsi     # 0x6cc63
movq %r14, %rdi
callq 0x1bece
movb $0x1, %r12b
movl %r12d, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xd0(%rbx), %rcx
movq (%r15), %rsi
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rdx
callq 0x22322
jmp 0x4d5dd
addq $0xc8, %r15
movq (%rbp), %rsi
movq 0x8(%rsp), %rdi
movq %r15, %rdx
callq 0x55ae8
jmp 0x4d711
addq $0xd0, %r15
jmp 0x4d788
addq $0xf0, %r15
movq (%rbp), %rsi
movq %r14, %rdi
movq %r15, %rdx
callq 0x223d0
movl %eax, %r12d
movq %rbx, %r14
jmp 0x4d5f8
movq %rax, %r14
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x4d7c1
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x4d7c1
movq %rax, %r14
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x4d7fb
movq 0x38(%rsp), %rsi
jmp 0x4d7f3
movq %rax, %r14
jmp 0x4d7fb
movq %rax, %r14
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x4d7fb
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xb510
movq %r14, %rdi
callq 0xb9c0
nop