// File: /workspace/github_cpp_makefile_star2_O1/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 0x36176
movl %eax, %ebx
testb %al, %al
je 0x4d23d
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1db9c(%rip), %rsi     # 0x6ac07
leaq 0x1db97(%rip), %rdx     # 0x6ac09
movq %rsp, %rdi
callq 0x1bee6
movq %rsp, %rsi
movl $0x21, %edx
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x252ac
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x4d0a2
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
movq %rsp, %rdi
movq %r15, (%rdi)
leaq 0x1d99e(%rip), %rsi     # 0x6aa4d
leaq 0x1d99a(%rip), %rdx     # 0x6aa50
callq 0x1bee6
movq %rsp, %rsi
movl $0x29, %edx
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x252ac
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x4d0e3
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
movq %rsp, %rdi
movq %r15, (%rdi)
leaq 0x1dd5d(%rip), %rsi     # 0x6ae4d
leaq 0x1dd58(%rip), %rdx     # 0x6ae4f
callq 0x1bee6
leaq 0x5b6d(%rip), %rdx      # 0x52c70
movq %rsp, %rsi
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x252ac
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x4d126
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
movq %rsp, %rdi
movq %r15, (%rdi)
leaq 0x1d768(%rip), %rsi     # 0x6a89b
leaq 0x1d765(%rip), %rdx     # 0x6a89f
callq 0x1bee6
movq %rsp, %rsi
movl $0x19, %edx
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x252ac
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x4d167
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
movq %rsp, %rdi
movq %r15, (%rdi)
leaq 0x1d977(%rip), %rsi     # 0x6aaeb
leaq 0x1d973(%rip), %rdx     # 0x6aaee
callq 0x1bee6
leaq 0x5d99(%rip), %rdx      # 0x52f20
movq %rsp, %rsi
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x252ac
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x4d1aa
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
movq %rsp, %rdi
movq %r15, (%rdi)
leaq 0x1d9ac(%rip), %rsi     # 0x6ab63
leaq 0x1d9a8(%rip), %rdx     # 0x6ab66
callq 0x1bee6
leaq 0x65a6(%rip), %rdx      # 0x53770
movq %rsp, %rsi
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x252ac
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x4d1ed
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
movq %rsp, %rdi
movq %r15, (%rdi)
leaq 0x1f2bd(%rip), %rsi     # 0x6c4b7
leaq 0x1f2b8(%rip), %rdx     # 0x6c4b9
callq 0x1bee6
leaq 0x690b(%rip), %rdx      # 0x53b18
movq %rsp, %rsi
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x252ac
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x4d230
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
movq %r14, %rdi
callq 0x4d318
jmp 0x4d2cd
leaq 0x3f32c(%rip), %r15     # 0x8c570
movq (%r15), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x4d2cd
addq $0x20, %rdi
callq 0xb7d0
movq (%r15), %rax
movq 0x8(%rax), %r14
leaq 0x1cf23(%rip), %rsi     # 0x6a188
movl $0xb, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x1f7f3(%rip), %rsi     # 0x6ca6c
movl $0x11, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x1e8a0(%rip), %rsi     # 0x6bb2d
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 0x4d2f1
jmp 0x4d30c
jmp 0x4d2f1
jmp 0x4d30c
jmp 0x4d2f1
jmp 0x4d30c
jmp 0x4d2f1
jmp 0x4d30c
jmp 0x4d2f1
jmp 0x4d30c
jmp 0x4d2f1
jmp 0x4d30c
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x4d30f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x4d30f
movq %rax, %rbx
movq %rbx, %rdi
callq 0xb9c0
nop