// File: /workspace/github_cpp_makefile_star2_O1/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 $0x78, %rsp
movq %r9, %r14
movq %r8, %r12
movq %rcx, %r15
movq %rdx, %rbx
movq %rsi, %rbp
movq %rdi, %r13
movb $0x1, (%r9)
leaq 0x1e034(%rip), %rsi     # 0x6b50d
movq %rdx, %rdi
callq 0xb110
testl %eax, %eax
movq %rbp, 0x8(%rsp)
je 0x4d5e5
leaq 0x48(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%r15), %rsi
movq %r15, (%rsp)
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x38(%rsp), %r15
movq %r15, %rdi
callq 0x1d19a
movq %r13, 0x10(%rsp)
movq %r13, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
movq %r15, %rcx
movq %r12, %r8
movq %r14, %r9
callq 0x37842
movl %eax, %ebp
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x4d54c
movq 0x48(%rsp), %rsi
incq %rsi
callq 0xb510
testb %bpl, %bpl
je 0x4dabf
cmpb $0x0, (%r14)
jne 0x4dabf
leaq 0x1d335(%rip), %rsi     # 0x6a89b
movq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0xb110
testl %eax, %eax
je 0x4d6b9
leaq 0x1d569(%rip), %rsi     # 0x6aaeb
movq %r15, %rdi
callq 0xb110
testl %eax, %eax
je 0x4d802
leaq 0x1d5ca(%rip), %rsi     # 0x6ab63
movq %r15, %rdi
callq 0xb110
testl %eax, %eax
je 0x4d8cf
leaq 0x1ef07(%rip), %rsi     # 0x6c4b7
movq %r15, %rdi
callq 0xb110
testl %eax, %eax
jne 0x4d6a7
movb $0x1, (%r14)
leaq 0x1f4cb(%rip), %rsi     # 0x6ca96
movq %rbx, %rdi
callq 0xb110
testl %eax, %eax
jne 0x4d6a7
movq 0x10(%rsp), %rdi
jmp 0x4da15
leaq 0x28(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x1df18(%rip), %rdx     # 0x6b50d
leaq 0x18(%rsp), %rdi
movq %rdx, %rsi
callq 0x1bee6
leaq 0x68(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x58(%rsp), %rdi
callq 0x1d19a
leaq 0x18(%rsp), %rdx
leaq 0x58(%rsp), %rcx
movq %r13, %rdi
movq %rbp, %rsi
movq %r12, %r8
movq %r14, %r9
callq 0x37842
movl %eax, %ebp
movq 0x58(%rsp), %rdi
cmpq %rbx, %rdi
je 0x4d653
movq 0x68(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x4d66f
movq 0x28(%rsp), %rsi
incq %rsi
callq 0xb510
testb %bpl, %bpl
je 0x4dabf
leaq 0x1d21c(%rip), %rsi     # 0x6a89b
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0xb110
testl %eax, %eax
je 0x4d6b0
leaq 0x1d7b6(%rip), %rsi     # 0x6ae4d
movq %rbx, %rdi
callq 0xb110
testl %eax, %eax
je 0x4d781
movb $0x0, (%r14)
jmp 0x4dabf
movb $0x1, (%r14)
jmp 0x4dabf
movb $0x1, (%r14)
leaq 0x1f3a1(%rip), %rsi     # 0x6ca65
movq %rbx, %rdi
callq 0xb110
testl %eax, %eax
je 0x4d99c
leaq 0x1f3bb(%rip), %rsi     # 0x6ca96
movq %rbx, %rdi
callq 0xb110
testl %eax, %eax
je 0x4d9a8
leaq 0x1f3aa(%rip), %rsi     # 0x6ca9c
movq %rbx, %rdi
callq 0xb110
testl %eax, %eax
je 0x4d9d1
leaq 0x1fc6e(%rip), %rsi     # 0x6d377
movq %rbx, %rdi
callq 0xb110
testl %eax, %eax
je 0x4da02
leaq 0x1f382(%rip), %rsi     # 0x6caa2
movq %rbx, %rdi
callq 0xb110
testl %eax, %eax
je 0x4da21
leaq 0x1f377(%rip), %rsi     # 0x6caae
movq %rbx, %rdi
callq 0xb110
testl %eax, %eax
je 0x4da38
leaq 0x1f368(%rip), %rsi     # 0x6cab6
movq %rbx, %rdi
callq 0xb110
testl %eax, %eax
je 0x4da78
leaq 0x1f35c(%rip), %rsi     # 0x6cac1
movq %rbx, %rdi
callq 0xb110
testl %eax, %eax
jne 0x4d6a7
leaq 0x1f477(%rip), %rsi     # 0x6cbf3
jmp 0x4da7f
movb $0x1, (%r14)
leaq 0x1f2d9(%rip), %rsi     # 0x6ca65
movq %r12, %rdi
callq 0x1bfb2
leaq 0x1f2fb(%rip), %rsi     # 0x6ca96
movq %r12, %rdi
callq 0x1bfb2
leaq 0x1f2f2(%rip), %rsi     # 0x6ca9c
movq %r12, %rdi
callq 0x1bfb2
leaq 0x1fbbe(%rip), %rsi     # 0x6d377
movq %r12, %rdi
callq 0x1bfb2
leaq 0x1f2da(%rip), %rsi     # 0x6caa2
movq %r12, %rdi
callq 0x1bfb2
leaq 0x1f2d7(%rip), %rsi     # 0x6caae
movq %r12, %rdi
callq 0x1bfb2
leaq 0x1f2d0(%rip), %rsi     # 0x6cab6
movq %r12, %rdi
callq 0x1bfb2
leaq 0x1f2cc(%rip), %rsi     # 0x6cac1
movq %r12, %rdi
callq 0x1bfb2
jmp 0x4da87
movb $0x1, (%r14)
leaq 0x1f258(%rip), %rsi     # 0x6ca65
movq %rbx, %rdi
callq 0xb110
testl %eax, %eax
je 0x4d9b4
leaq 0x1f272(%rip), %rsi     # 0x6ca96
movq %rbx, %rdi
callq 0xb110
testl %eax, %eax
movq 0x10(%rsp), %r15
je 0x4d9dd
leaq 0x1f25c(%rip), %rsi     # 0x6ca9c
movq %rbx, %rdi
callq 0xb110
testl %eax, %eax
je 0x4da0b
leaq 0x1fb20(%rip), %rsi     # 0x6d377
movq %rbx, %rdi
callq 0xb110
testl %eax, %eax
je 0x4da2a
leaq 0x1f234(%rip), %rsi     # 0x6caa2
movq %rbx, %rdi
callq 0xb110
testl %eax, %eax
je 0x4da41
leaq 0x1f229(%rip), %rsi     # 0x6caae
movq %rbx, %rdi
callq 0xb110
testl %eax, %eax
je 0x4da8c
leaq 0x1f21a(%rip), %rsi     # 0x6cab6
movq %rbx, %rdi
callq 0xb110
testl %eax, %eax
je 0x4dba4
leaq 0x1f20e(%rip), %rsi     # 0x6cac1
movq %rbx, %rdi
callq 0xb110
testl %eax, %eax
jne 0x4d6a7
leaq 0xf0(%r15), %rcx
jmp 0x4dbab
movb $0x1, (%r14)
leaq 0x1f18b(%rip), %rsi     # 0x6ca65
movq %rbx, %rdi
callq 0xb110
testl %eax, %eax
je 0x4d9e9
leaq 0x1f1a5(%rip), %rsi     # 0x6ca96
movq %rbx, %rdi
callq 0xb110
testl %eax, %eax
movq 0x10(%rsp), %r15
je 0x4da12
leaq 0x1f18f(%rip), %rsi     # 0x6ca9c
movq %rbx, %rdi
callq 0xb110
testl %eax, %eax
je 0x4da31
leaq 0x1fa53(%rip), %rsi     # 0x6d377
movq %rbx, %rdi
callq 0xb110
testl %eax, %eax
je 0x4da71
leaq 0x1f167(%rip), %rsi     # 0x6caa2
movq %rbx, %rdi
callq 0xb110
testl %eax, %eax
je 0x4daa4
leaq 0x1f15c(%rip), %rsi     # 0x6caae
movq %rbx, %rdi
callq 0xb110
testl %eax, %eax
je 0x4dbbf
leaq 0x1f14d(%rip), %rsi     # 0x6cab6
movq %rbx, %rdi
callq 0xb110
testl %eax, %eax
je 0x4dbd9
leaq 0x1f141(%rip), %rsi     # 0x6cac1
movq %rbx, %rdi
callq 0xb110
testl %eax, %eax
jne 0x4d6a7
addq $0xf0, %r15
jmp 0x4dbe0
leaq 0x1f12b(%rip), %rsi     # 0x6cace
jmp 0x4da7f
leaq 0x1f142(%rip), %rsi     # 0x6caf1
jmp 0x4da7f
movq 0x10(%rsp), %rcx
addq $0x68, %rcx
movq (%rbx), %rsi
movq %r12, %rdi
movq (%rsp), %rdx
callq 0x22400
jmp 0x4dabd
leaq 0x1f148(%rip), %rsi     # 0x6cb20
jmp 0x4da7f
movq %r15, %rdi
movq 0x8(%rsp), %rsi
xorl %edx, %edx
jmp 0x4da4e
movq 0x10(%rsp), %rdx
addq $0x68, %rdx
movq (%rbx), %rsi
movq %r12, %rdi
callq 0x224ae
jmp 0x4dabd
leaq 0x1f143(%rip), %rsi     # 0x6cb4c
jmp 0x4da7f
movl $0x1, %edx
jmp 0x4da46
movq %r15, %rdi
movq 0x8(%rsp), %rsi
xorl %edx, %edx
jmp 0x4dab1
leaq 0x1f160(%rip), %rsi     # 0x6cb88
jmp 0x4da7f
movl $0x2, %edx
jmp 0x4da46
movl $0x1, %edx
jmp 0x4daa9
leaq 0x1f16f(%rip), %rsi     # 0x6cbae
jmp 0x4da7f
movl $0x3, %edx
movq %r15, %rdi
movq 0x8(%rsp), %rsi
movq (%rsp), %rcx
movq %r12, %r8
callq 0x4dc50
movl %eax, %ebp
testb %al, %al
je 0x4dabf
addq $0x1b8, %r15            # imm = 0x1B8
movq %r15, %rdi
callq 0xb030
jmp 0x4dabf
movl $0x2, %edx
jmp 0x4daa9
leaq 0x1f151(%rip), %rsi     # 0x6cbd0
movq %r12, %rdi
callq 0x1bf76
movb $0x1, %bpl
jmp 0x4dabf
leaq 0xc8(%r15), %rcx
movq (%rbx), %rsi
movq %r12, %rdi
movq (%rsp), %rdx
callq 0x55e94
jmp 0x4da5a
movl $0x3, %edx
movq %r15, %rdi
movq 0x8(%rsp), %rsi
movq (%rsp), %rcx
movq %r12, %r8
callq 0x4dc50
movl %eax, %ebp
testb %bpl, %bpl
jne 0x4db93
cmpb $0x0, (%r14)
je 0x4db93
leaq 0x3ea97(%rip), %r14     # 0x8c570
movq (%r14), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x4db91
addq $0x20, %rdi
callq 0xb7d0
movq (%r14), %rax
movq 0x8(%rax), %rbx
leaq 0x1c68a(%rip), %rsi     # 0x6a188
movl $0xb, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0x1ef5a(%rip), %rsi     # 0x6ca6c
movl $0x11, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0x1f0f6(%rip), %rsi     # 0x6cc1c
movl $0x1e, %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 0x1e337(%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 $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xd0(%r15), %rcx
movq (%rbx), %rsi
movq %r12, %rdi
movq (%rsp), %rdx
callq 0x22400
jmp 0x4da5a
addq $0xc8, %r15
movq (%rbx), %rsi
movq %r12, %rdi
movq %r15, %rdx
callq 0x55f42
jmp 0x4dabd
addq $0xd0, %r15
movq (%rbx), %rsi
movq %r12, %rdi
movq %r15, %rdx
jmp 0x4d9f8
movq %rax, %r14
movq 0x58(%rsp), %rdi
cmpq %rbx, %rdi
je 0x4dc0d
movq 0x68(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x4dc0d
movq %rax, %r14
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x4dc47
movq 0x28(%rsp), %rsi
jmp 0x4dc3f
movq %rax, %r14
jmp 0x4dc47
movq %rax, %r14
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x4dc47
movq 0x48(%rsp), %rsi
incq %rsi
callq 0xb510
movq %r14, %rdi
callq 0xb9c0
nop