// File: 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 %rbp
movq %rsp, %rbp
subq $0x200, %rsp            # imm = 0x200
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x1c8(%rbp)
jmp 0x7a628
movq -0x1c8(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
callq 0x5dee0
testb $0x1, %al
jne 0x7a6d3
jmp 0x7a64a
leaq 0x5a057(%rip), %rax     # 0xd46a8
movq (%rax), %rdi
callq 0x257e0
cmpq $0x0, %rax
je 0x7a6c8
leaq 0x5a042(%rip), %rax     # 0xd46a8
movq (%rax), %rdi
callq 0x25800
leaq 0x5a033(%rip), %rax     # 0xd46a8
movq (%rax), %rdi
callq 0x257e0
movq %rax, %rdi
leaq 0x2bb29(%rip), %rsi     # 0xa61b0
callq 0xc670
movq %rax, %rdi
leaq 0x2e3ce(%rip), %rsi     # 0xa8a64
callq 0xc670
movq %rax, %rdi
leaq 0x2d460(%rip), %rsi     # 0xa7b05
callq 0xc670
movq %rax, %rdi
movq 0x5990c(%rip), %rsi     # 0xd3fc0
callq 0xc6d0
leaq 0x59fe8(%rip), %rax     # 0xd46a8
movq (%rax), %rdi
callq 0x25820
jmp 0x7a6ca
movb $0x0, -0x1(%rbp)
jmp 0x7abcb
leaq -0x49(%rbp), %rdi
movq %rdi, -0x1d0(%rbp)
callq 0xcbc0
movq -0x1d0(%rbp), %rdx
leaq 0x2c5ba(%rip), %rsi     # 0xa6cab
leaq -0x48(%rbp), %rdi
callq 0x27820
jmp 0x7a6fc
movq -0x1c8(%rbp), %rdi
movq $0x0, -0x68(%rbp)
movq $0x21, -0x70(%rbp)
movq -0x70(%rbp), %rdx
movq -0x68(%rbp), %rcx
leaq -0x48(%rbp), %rsi
callq 0x39150
jmp 0x7a726
leaq -0x48(%rbp), %rdi
callq 0xc3e0
leaq -0x49(%rbp), %rdi
callq 0xc730
leaq -0x91(%rbp), %rdi
movq %rdi, -0x1d8(%rbp)
callq 0xcbc0
movq -0x1d8(%rbp), %rdx
leaq 0x2c309(%rip), %rsi     # 0xa6a62
leaq -0x90(%rbp), %rdi
callq 0x27820
jmp 0x7a767
movq -0x1c8(%rbp), %rdi
movq $0x0, -0xa0(%rbp)
movq $0x29, -0xa8(%rbp)
movq -0xa8(%rbp), %rdx
movq -0xa0(%rbp), %rcx
leaq -0x90(%rbp), %rsi
callq 0x39150
jmp 0x7a7a0
leaq -0x90(%rbp), %rdi
callq 0xc3e0
leaq -0x91(%rbp), %rdi
callq 0xc730
leaq -0xc9(%rbp), %rdi
movq %rdi, -0x1e0(%rbp)
callq 0xcbc0
movq -0x1e0(%rbp), %rdx
leaq 0x2c357(%rip), %rsi     # 0xa6b30
leaq -0xc8(%rbp), %rdi
callq 0x27820
jmp 0x7a7e7
movq -0x1c8(%rbp), %rdi
leaq 0x787b(%rip), %rax      # 0x82070
movq %rax, -0xe0(%rbp)
movq $0x0, -0xd8(%rbp)
movq -0xe0(%rbp), %rdx
movq -0xd8(%rbp), %rcx
leaq -0xc8(%rbp), %rsi
callq 0x39150
jmp 0x7a823
leaq -0xc8(%rbp), %rdi
callq 0xc3e0
leaq -0xc9(%rbp), %rdi
callq 0xc730
leaq -0x101(%rbp), %rdi
movq %rdi, -0x1e8(%rbp)
callq 0xcbc0
movq -0x1e8(%rbp), %rdx
leaq 0x2c017(%rip), %rsi     # 0xa6873
leaq -0x100(%rbp), %rdi
callq 0x27820
jmp 0x7a86a
movq -0x1c8(%rbp), %rdi
movq $0x0, -0x110(%rbp)
movq $0x19, -0x118(%rbp)
movq -0x118(%rbp), %rdx
movq -0x110(%rbp), %rcx
leaq -0x100(%rbp), %rsi
callq 0x39150
jmp 0x7a8a3
leaq -0x100(%rbp), %rdi
callq 0xc3e0
leaq -0x101(%rbp), %rdi
callq 0xc730
leaq -0x139(%rbp), %rdi
movq %rdi, -0x1f0(%rbp)
callq 0xcbc0
movq -0x1f0(%rbp), %rdx
leaq 0x2c277(%rip), %rsi     # 0xa6b53
leaq -0x138(%rbp), %rdi
callq 0x27820
jmp 0x7a8ea
movq -0x1c8(%rbp), %rdi
leaq 0x7a48(%rip), %rax      # 0x82340
movq %rax, -0x150(%rbp)
movq $0x0, -0x148(%rbp)
movq -0x150(%rbp), %rdx
movq -0x148(%rbp), %rcx
leaq -0x138(%rbp), %rsi
callq 0x39150
jmp 0x7a926
leaq -0x138(%rbp), %rdi
callq 0xc3e0
leaq -0x139(%rbp), %rdi
callq 0xc730
leaq -0x171(%rbp), %rdi
movq %rdi, -0x1f8(%rbp)
callq 0xcbc0
movq -0x1f8(%rbp), %rdx
leaq 0x2c26c(%rip), %rsi     # 0xa6bcb
leaq -0x170(%rbp), %rdi
callq 0x27820
jmp 0x7a96d
movq -0x1c8(%rbp), %rdi
leaq 0x82b5(%rip), %rax      # 0x82c30
movq %rax, -0x188(%rbp)
movq $0x0, -0x180(%rbp)
movq -0x188(%rbp), %rdx
movq -0x180(%rbp), %rcx
leaq -0x170(%rbp), %rsi
callq 0x39150
jmp 0x7a9a9
leaq -0x170(%rbp), %rdi
callq 0xc3e0
leaq -0x171(%rbp), %rdi
callq 0xc730
leaq -0x1a9(%rbp), %rdi
movq %rdi, -0x200(%rbp)
callq 0xcbc0
movq -0x200(%rbp), %rdx
leaq 0x2db4d(%rip), %rsi     # 0xa852f
leaq -0x1a8(%rbp), %rdi
callq 0x27820
jmp 0x7a9f0
movq -0x1c8(%rbp), %rdi
leaq 0x8682(%rip), %rax      # 0x83080
movq %rax, -0x1c0(%rbp)
movq $0x0, -0x1b8(%rbp)
movq -0x1c0(%rbp), %rdx
movq -0x1b8(%rbp), %rcx
leaq -0x1a8(%rbp), %rsi
callq 0x39150
jmp 0x7aa2c
leaq -0x1a8(%rbp), %rdi
callq 0xc3e0
leaq -0x1a9(%rbp), %rdi
callq 0xc730
movq -0x1c8(%rbp), %rdi
callq 0x7abf0
movb $0x1, -0x1(%rbp)
jmp 0x7abcb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x7aa7c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x48(%rbp), %rdi
callq 0xc3e0
leaq -0x49(%rbp), %rdi
callq 0xc730
jmp 0x7abd9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x7aab0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x90(%rbp), %rdi
callq 0xc3e0
leaq -0x91(%rbp), %rdi
callq 0xc730
jmp 0x7abd9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x7aae7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0xc8(%rbp), %rdi
callq 0xc3e0
leaq -0xc9(%rbp), %rdi
callq 0xc730
jmp 0x7abd9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x7ab1e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x100(%rbp), %rdi
callq 0xc3e0
leaq -0x101(%rbp), %rdi
callq 0xc730
jmp 0x7abd9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x7ab55
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x138(%rbp), %rdi
callq 0xc3e0
leaq -0x139(%rbp), %rdi
callq 0xc730
jmp 0x7abd9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x7ab89
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x170(%rbp), %rdi
callq 0xc3e0
leaq -0x171(%rbp), %rdi
callq 0xc730
jmp 0x7abd9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x7abbd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x1a8(%rbp), %rdi
callq 0xc3e0
leaq -0x1a9(%rbp), %rdi
callq 0xc730
jmp 0x7abd9
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x200, %rsp            # imm = 0x200
popq %rbp
retq
movq -0x58(%rbp), %rdi
callq 0xcba0
nopw %cs:(%rax,%rax)