// File: /workspace/github_cpp_makefile_star2_O3/mh0fm4[P]SCDC/src/components/dataprov/dataprov_jobrun.cc
// Function: scdc_dataprov_jobrun::open(char const*, scdc_args*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
bool scdc_dataprov_jobrun::open(const char *conf, scdc_args *args, scdc_result &result)
{
  SCDC_TRACE(__func__ << ": '" << conf << "'");

  if (!scdc_dataprov::open(conf, args, result))
  {
    SCDC_FAIL("open: opening base");
    return false;
  }

  dataset_cmds_add("cd", static_cast<dataset_cmds_do_cmd_f>(&scdc_dataset_jobrun::do_cmd_cd));
  dataset_cmds_add("pwd", static_cast<dataset_cmds_do_cmd_f>(&scdc_dataset_jobrun::do_cmd_pwd));
  dataset_cmds_add("ls", static_cast<dataset_cmds_do_cmd_f>(&scdc_dataset_jobrun::do_cmd_ls));
  dataset_cmds_add("info", static_cast<dataset_cmds_do_cmd_f>(&scdc_dataset_jobrun::do_cmd_info));
  dataset_cmds_add("put", static_cast<dataset_cmds_do_cmd_f>(&scdc_dataset_jobrun::do_cmd_put));
  dataset_cmds_add("get", static_cast<dataset_cmds_do_cmd_f>(&scdc_dataset_jobrun::do_cmd_get));
  dataset_cmds_add("rm", static_cast<dataset_cmds_do_cmd_f>(&scdc_dataset_jobrun::do_cmd_rm));

#if SCDC_LOCK
  pthread_mutex_init(&libscdc_lock, NULL);
#endif

  sched_init();

  return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %r14
callq 0x35e3a
movl %eax, %ebx
testb %al, %al
je 0x4cd55
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1e0a4(%rip), %rsi     # 0x6ac27
leaq 0x1e09f(%rip), %rdx     # 0x6ac29
movq %rsp, %rdi
callq 0x1be38
movq %rsp, %rsi
movl $0x21, %edx
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x251be
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x4cbba
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
movq %rsp, %rdi
movq %r15, (%rdi)
leaq 0x1dea6(%rip), %rsi     # 0x6aa6d
leaq 0x1dea2(%rip), %rdx     # 0x6aa70
callq 0x1be38
movq %rsp, %rsi
movl $0x29, %edx
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x251be
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x4cbfb
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
movq %rsp, %rdi
movq %r15, (%rdi)
leaq 0x1e265(%rip), %rsi     # 0x6ae6d
leaq 0x1e260(%rip), %rdx     # 0x6ae6f
callq 0x1be38
leaq 0x5bf5(%rip), %rdx      # 0x52810
movq %rsp, %rsi
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x251be
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x4cc3e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
movq %rsp, %rdi
movq %r15, (%rdi)
leaq 0x1dc70(%rip), %rsi     # 0x6a8bb
leaq 0x1dc6d(%rip), %rdx     # 0x6a8bf
callq 0x1be38
movq %rsp, %rsi
movl $0x19, %edx
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x251be
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x4cc7f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
movq %rsp, %rdi
movq %r15, (%rdi)
leaq 0x1de7f(%rip), %rsi     # 0x6ab0b
leaq 0x1de7b(%rip), %rdx     # 0x6ab0e
callq 0x1be38
leaq 0x5e21(%rip), %rdx      # 0x52ac0
movq %rsp, %rsi
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x251be
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x4ccc2
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
movq %rsp, %rdi
movq %r15, (%rdi)
leaq 0x1deb4(%rip), %rsi     # 0x6ab83
leaq 0x1deb0(%rip), %rdx     # 0x6ab86
callq 0x1be38
leaq 0x662e(%rip), %rdx      # 0x53310
movq %rsp, %rsi
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x251be
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x4cd05
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
movq %rsp, %rdi
movq %r15, (%rdi)
leaq 0x1f81d(%rip), %rsi     # 0x6c52f
leaq 0x1f818(%rip), %rdx     # 0x6c531
callq 0x1be38
leaq 0x6993(%rip), %rdx      # 0x536b8
movq %rsp, %rsi
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x251be
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x4cd48
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
movq %r14, %rdi
callq 0x4ce30
jmp 0x4cde5
leaq 0x3f814(%rip), %r15     # 0x8c570
movq (%r15), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x4cde5
addq $0x20, %rdi
callq 0xb7d0
movq (%r15), %rax
movq 0x8(%rax), %r14
leaq 0x1d42b(%rip), %rsi     # 0x6a1a8
movl $0xb, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x1fd4b(%rip), %rsi     # 0x6cadc
movl $0x11, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x1eda8(%rip), %rsi     # 0x6bb4d
movl $0x12, %edx
movq %r14, %rdi
callq 0xb5f0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0xb4d0
movsbl %al, %esi
movq %r14, %rdi
callq 0xb050
movq %rax, %rdi
callq 0xb340
movq (%r15), %rdi
addq $0x20, %rdi
callq 0xb3b0
movl %ebx, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x4ce09
jmp 0x4ce24
jmp 0x4ce09
jmp 0x4ce24
jmp 0x4ce09
jmp 0x4ce24
jmp 0x4ce09
jmp 0x4ce24
jmp 0x4ce09
jmp 0x4ce24
jmp 0x4ce09
jmp 0x4ce24
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x4ce27
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x4ce27
movq %rax, %rbx
movq %rbx, %rdi
callq 0xb9c0
nop