// File: /workspace/github_cpp_makefile_star2_O2/mh0fm4[P]SCDC/src/components/dataprov/dataprov_jobrun.cc
// Function: scdc_dataprov_jobrun_system::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_system::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_jobrun::config_do_cmd_param(cmd, "", val, result, done);
    if (!ret) goto do_quit;

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

      ret = scdc_dataprov_config::info(result, param, "job-system");

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

      ret = scdc_dataprov_config::ls(result, "workdir")
         && scdc_dataprov_config::ls(result, "xterm")
         && scdc_dataprov_config::ls(result, "xterm_hold")
         && scdc_dataprov_config::ls(result, "Xvfb")
         && scdc_dataprov_config::ls(result, "show_output")
         && scdc_dataprov_config::ls(result, "sleep_before_run")
         && scdc_dataprov_config::ls(result, "sleep_after_run");

    } else done = false;

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

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

      if (param == "workdir")               ret = scdc_dataprov_config::info(result, param, "root of working directory for jobs (string)");
      else if (param == "xterm")            ret = scdc_dataprov_config::info(result, param, "whether a job should run in an xterm (bool)");
      else if (param == "xterm_hold")       ret = scdc_dataprov_config::info(result, param, "whether the xterm should be closed automatically (boolean)");
      else if (param == "Xvfb")             ret = scdc_dataprov_config::info(result, param, "whether a dummy X server should be started (boolean)");
      else if (param == "show_output")      ret = scdc_dataprov_config::info(result, param, "whether the command output should be shown (boolean)");
      else if (param == "sleep_before_run") ret = scdc_dataprov_config::info(result, param, "number of seconds to sleep before runing a job (integer)");
      else if (param == "sleep_after_run")  ret = scdc_dataprov_config::info(result, param, "number of seconds to sleep after runing a job (integer)");
      else done = false;

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

      if (param == "workdir")               ret = scdc_dataprov_config::put<string>(result, param, val, workdir);
      else if (param == "xterm")            ret = scdc_dataprov_config::put<bool>(result, param, val, xterm);
      else if (param == "xterm_hold")       ret = scdc_dataprov_config::put<bool>(result, param, val, xterm_hold);
      else if (param == "Xvfb")             ret = scdc_dataprov_config::put<bool>(result, param, val, Xvfb);
      else if (param == "show_output")      ret = scdc_dataprov_config::put<bool>(result, param, val, show_output);
      else if (param == "sleep_before_run") ret = scdc_dataprov_config::put<scdcint_t>(result, param, val, sleep_before_run);
      else if (param == "sleep_after_run")  ret = scdc_dataprov_config::put<scdcint_t>(result, param, val, sleep_after_run);
      else done = false;

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

      if (param == "workdir")               ret = scdc_dataprov_config::get<string>(result, param, workdir);
      else if (param == "xterm")            ret = scdc_dataprov_config::get<bool>(result, param, xterm);
      else if (param == "xterm_hold")       ret = scdc_dataprov_config::get<bool>(result, param, xterm_hold);
      else if (param == "Xvfb")             ret = scdc_dataprov_config::get<bool>(result, param, Xvfb);
      else if (param == "show_output")      ret = scdc_dataprov_config::get<bool>(result, param, show_output);
      else if (param == "sleep_before_run") ret = scdc_dataprov_config::get<scdcint_t>(result, param, sleep_before_run);
      else if (param == "sleep_after_run")  ret = scdc_dataprov_config::get<scdcint_t>(result, param, sleep_after_run);
      else done = false;

    } else done = false;
  }

do_quit:  
  if (done && !ret)
  {
    SCDC_FAIL("config_do_cmd_param: command '" << cmd << "' with param '" << param << "' 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, %rbx
movq %rdx, %rbp
movq %rsi, %r15
movq %rdi, %r13
movb $0x1, (%r9)
leaq 0x13a61(%rip), %rsi     # 0x524bd
movq %rdx, %rdi
callq 0x19be0
testb %al, %al
je 0x3eaf7
leaq 0x13a4a(%rip), %rsi     # 0x524bd
leaq 0x48(%rsp), %rdi
leaq 0x17(%rsp), %rdx
callq 0x1a132
leaq 0x28(%rsp), %rdi
movq %rbx, %rsi
callq 0xb750
leaq 0x48(%rsp), %rdx
leaq 0x28(%rsp), %rcx
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %r8
movq %r14, %r9
callq 0x3c542
movl %eax, %ebx
leaq 0x28(%rsp), %rdi
callq 0xb230
leaq 0x48(%rsp), %rdi
callq 0xb230
testb %bl, %bl
je 0x3eb9b
leaq 0x12d81(%rip), %rsi     # 0x51850
movq %r15, %rdi
callq 0x19be0
testb %al, %al
je 0x3ec55
movb $0x1, (%r14)
leaq 0x15343(%rip), %rsi     # 0x53e2d
movq %r12, %rdi
callq 0x1a288
jmp 0x3ed36
movq %rbx, %rsi
leaq 0x68(%rsp), %rbx
movq %rbx, %rdi
movq %rsi, 0x8(%rsp)
callq 0xb750
movq %r13, 0x20(%rsp)
movq %r13, %rdi
movq %r15, %r13
movq %r15, %rsi
movq %rbp, 0x18(%rsp)
movq %rbp, %rdx
movq %rbx, %rcx
movq %r12, %r8
movq %r14, %r9
callq 0x3c542
movl %eax, %ebp
leaq 0x68(%rsp), %rdi
callq 0xb230
testb %bpl, %bpl
je 0x3eb94
movb $0x1, %bpl
cmpb $0x0, (%r14)
jne 0x3ed39
movq %r13, %r15
leaq 0x12cf8(%rip), %rsi     # 0x51850
movq %r13, %rdi
callq 0x19be0
testb %al, %al
je 0x3ecdb
movb $0x1, (%r14)
leaq 0x15231(%rip), %rsi     # 0x53da4
movq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0x19be0
testb %al, %al
je 0x3ed4d
leaq 0x152ec(%rip), %rsi     # 0x53e7b
jmp 0x3ef83
xorl %ebp, %ebp
movq %r13, %r15
jmp 0x3eba2
movq %rbp, 0x18(%rsp)
xorl %ebp, %ebp
testb %bpl, %bpl
jne 0x3ed39
cmpb $0x0, (%r14)
je 0x3ed39
leaq 0x369c4(%rip), %rbx     # 0x75580
movq (%rbx), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x3ec4e
addq $0x20, %rdi
callq 0xb800
movq (%rbx), %rax
movq 0x8(%rax), %rdi
leaq 0x125a7(%rip), %rsi     # 0x51188
callq 0xb520
leaq 0x151bf(%rip), %rsi     # 0x53dac
movq %rax, %rdi
callq 0xb520
leaq 0x15020(%rip), %rsi     # 0x53c1c
movq %rax, %rdi
callq 0xb520
movq %rax, %rdi
movq %r15, %rsi
callq 0xb490
leaq 0x153d3(%rip), %rsi     # 0x53fe9
movq %rax, %rdi
callq 0xb520
movq %rax, %rdi
movq 0x18(%rsp), %rsi
callq 0xb490
leaq 0x1425e(%rip), %rsi     # 0x52e90
movq %rax, %rdi
callq 0xb520
movq %rax, %rdi
callq 0xb270
movq (%rbx), %rdi
addq $0x20, %rdi
callq 0xb3e0
xorl %ebp, %ebp
jmp 0x3ed39
leaq 0x131a1(%rip), %rsi     # 0x51dfd
movq %r15, %rdi
callq 0x19be0
testb %al, %al
je 0x3ed32
movb $0x1, (%r14)
leaq 0x1512d(%rip), %rsi     # 0x53da4
movq %r12, %rdi
callq 0x1a2c8
leaq 0x151b2(%rip), %rsi     # 0x53e38
movq %r12, %rdi
callq 0x1a2c8
leaq 0x151a9(%rip), %rsi     # 0x53e3e
movq %r12, %rdi
callq 0x1a2c8
leaq 0x151a5(%rip), %rsi     # 0x53e49
movq %r12, %rdi
callq 0x1a2c8
leaq 0x1519b(%rip), %rsi     # 0x53e4e
movq %r12, %rdi
callq 0x1a2c8
leaq 0x15198(%rip), %rsi     # 0x53e5a
movq %r12, %rdi
callq 0x1a2c8
leaq 0x1519a(%rip), %rsi     # 0x53e6b
movq %r12, %rdi
callq 0x1a2c8
jmp 0x3ed36
leaq 0x12dbe(%rip), %rsi     # 0x51aa0
movq %r15, %rdi
callq 0x19be0
testb %al, %al
je 0x3ed6c
movb $0x1, (%r14)
leaq 0x150ab(%rip), %rsi     # 0x53da4
movq 0x18(%rsp), %r13
movq %r13, %rdi
callq 0x19be0
testb %al, %al
movq 0x20(%rsp), %rbx
je 0x3edbe
addq $0x270, %rbx            # imm = 0x270
movq %r12, %rdi
movq %r13, %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rcx
callq 0x40e16
jmp 0x3ef42
movb $0x0, (%r14)
movb $0x1, %bpl
movl %ebp, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x150e4(%rip), %rsi     # 0x53e38
movq %rbx, %rdi
callq 0x19be0
testb %al, %al
je 0x3eddd
leaq 0x15140(%rip), %rsi     # 0x53ea7
jmp 0x3ef83
leaq 0x12da5(%rip), %rsi     # 0x51b18
movq %r15, %rdi
callq 0x19be0
testb %al, %al
movq 0x20(%rsp), %r13
je 0x3f00b
movb $0x1, (%r14)
leaq 0x15011(%rip), %rsi     # 0x53da4
movq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0x19be0
testb %al, %al
je 0x3edfc
addq $0x270, %r13            # imm = 0x270
movq %r12, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x40e26
jmp 0x3ef42
leaq 0x15073(%rip), %rsi     # 0x53e38
movq %r13, %rdi
callq 0x19be0
testb %al, %al
je 0x3ee1b
addq $0x290, %rbx            # imm = 0x290
jmp 0x3eee9
leaq 0x1505a(%rip), %rsi     # 0x53e3e
movq %rbx, %rdi
callq 0x19be0
testb %al, %al
je 0x3ee3a
leaq 0x150dc(%rip), %rsi     # 0x53ed3
jmp 0x3ef83
leaq 0x15035(%rip), %rsi     # 0x53e38
movq %rbx, %rdi
callq 0x19be0
testb %al, %al
je 0x3ee59
addq $0x290, %r13            # imm = 0x290
jmp 0x3ef34
leaq 0x1501c(%rip), %rsi     # 0x53e3e
movq %r13, %rdi
callq 0x19be0
testb %al, %al
je 0x3ee78
addq $0x291, %rbx            # imm = 0x291
jmp 0x3eee9
leaq 0x15008(%rip), %rsi     # 0x53e49
movq %rbx, %rdi
callq 0x19be0
testb %al, %al
je 0x3ee94
leaq 0x150ba(%rip), %rsi     # 0x53f0e
jmp 0x3ef83
leaq 0x14fde(%rip), %rsi     # 0x53e3e
movq %rbx, %rdi
callq 0x19be0
testb %al, %al
je 0x3eeb3
addq $0x291, %r13            # imm = 0x291
jmp 0x3ef34
leaq 0x14fca(%rip), %rsi     # 0x53e49
movq %r13, %rdi
callq 0x19be0
testb %al, %al
je 0x3eecf
addq $0x292, %rbx            # imm = 0x292
jmp 0x3eee9
leaq 0x14fb3(%rip), %rsi     # 0x53e4e
movq %rbx, %rdi
callq 0x19be0
testb %al, %al
je 0x3eefe
leaq 0x15095(%rip), %rsi     # 0x53f43
jmp 0x3ef83
leaq 0x14f8f(%rip), %rsi     # 0x53e49
movq %rbx, %rdi
callq 0x19be0
testb %al, %al
je 0x3ef1a
addq $0x292, %r13            # imm = 0x292
jmp 0x3ef34
leaq 0x14f78(%rip), %rsi     # 0x53e4e
movq %r13, %rdi
callq 0x19be0
testb %al, %al
je 0x3ef49
addq $0x293, %rbx            # imm = 0x293
movq %r12, %rdi
movq %r13, %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rcx
callq 0x40e1e
jmp 0x3ef42
leaq 0x14f55(%rip), %rsi     # 0x53e5a
movq %rbx, %rdi
callq 0x19be0
testb %al, %al
je 0x3ef65
leaq 0x15060(%rip), %rsi     # 0x53f78
jmp 0x3ef83
leaq 0x14f2d(%rip), %rsi     # 0x53e4e
movq %rbx, %rdi
callq 0x19be0
testb %al, %al
je 0x3ef90
addq $0x293, %r13            # imm = 0x293
movq %r12, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x40e2e
movl %eax, %ebp
jmp 0x3eba2
leaq 0x14f0a(%rip), %rsi     # 0x53e5a
movq %r13, %rdi
callq 0x19be0
testb %al, %al
je 0x3efac
addq $0x298, %rbx            # imm = 0x298
jmp 0x3efc6
leaq 0x14eff(%rip), %rsi     # 0x53e6b
movq %rbx, %rdi
callq 0x19be0
testb %al, %al
je 0x3f00b
leaq 0x1502e(%rip), %rsi     # 0x53fb1
movq %r12, %rdi
callq 0x1a288
jmp 0x3ed39
leaq 0x14ec3(%rip), %rsi     # 0x53e5a
movq %rbx, %rdi
callq 0x19be0
testb %al, %al
je 0x3efde
addq $0x298, %r13            # imm = 0x298
jmp 0x3eff8
leaq 0x14eb8(%rip), %rsi     # 0x53e6b
movq %r13, %rdi
callq 0x19be0
testb %al, %al
je 0x3f00b
addq $0x2a0, %rbx            # imm = 0x2A0
movq %r12, %rdi
movq %r13, %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rcx
callq 0x4119e
jmp 0x3ef42
leaq 0x14e86(%rip), %rsi     # 0x53e6b
movq %rbx, %rdi
callq 0x19be0
testb %al, %al
je 0x3f00b
addq $0x2a0, %r13            # imm = 0x2A0
movq %r12, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x411a6
jmp 0x3ef42
movb $0x0, (%r14)
jmp 0x3ed39
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0xb230
jmp 0x3f026
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
jmp 0x3f035
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0xb230
jmp 0x3f03f
movq %rax, %rbx
movq %rbx, %rdi
callq 0xb9a0
nop