// File: /workspace/github_cpp_makefile_star2_O3/mh0fm4[P]SCDC/src/components/dataprov/dataprov_jobrun_relay.cc
// Function: scdc_dataset_jobrun_relay::remote_dataset_open(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool)
bool remote_dataset_open(string jobid, bool cd)
    {
      string remote;

      if (!dataprov_jobrun_relay()->sched_job_get_relay(jobid, remote))
      {
        SCDC_ERROR("remote_dataset_open: getting relay address of job '" << jobid << "' failed");
        return false;
      }

      if (cd) remote += "/" + jobid;

      remote_dataset = scdc_dataset_open(remote.c_str());

      if (remote_dataset == SCDC_DATASET_NULL)
      {
        SCDC_FAIL("remote_dataset_open: opening remote dataset '" << remote << "' failed");
        return false;
      }

      return true;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
movq 0x8(%rdi), %r12
leaq 0xf8(%r12), %rdi
callq 0x22790
addq $0x100, %r12            # imm = 0x100
cmpq %r12, %rax
je 0x5af6d
addq $0x40, %rax
movq %rsp, %rdi
movq %rax, %rsi
callq 0xb2c0
testb %bpl, %bpl
je 0x5aeb1
leaq 0xf4f6(%rip), %rsi      # 0x6a36d
leaq 0x20(%rsp), %rdi
movq %rbx, %rdx
callq 0x1b7aa
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %rsp, %rdi
callq 0xb150
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5aeb1
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb510
movq (%rsp), %rdi
xorl %eax, %eax
callq 0x19f09
movq %rax, 0x38(%r14)
movb $0x1, %bl
testq %rax, %rax
jne 0x5b030
leaq 0x3169e(%rip), %rbx     # 0x8c570
movq (%rbx), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x5b02e
addq $0x20, %rdi
callq 0xb7d0
movq (%rbx), %rax
movq 0x8(%rax), %rbx
leaq 0xf2b1(%rip), %rsi      # 0x6a1a8
movl $0xb, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0x125f2(%rip), %rsi     # 0x6d4fd
movl $0x16, %edx
movq %rbx, %rdi
callq 0xb5f0
leaq 0x12665(%rip), %rsi     # 0x6d584
movl $0x2d, %edx
movq %rbx, %rdi
callq 0xb5f0
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0xb5f0
movq %rax, %rbx
leaq 0x10fb9(%rip), %rsi     # 0x6bf00
movl $0x8, %edx
movq %rax, %rdi
callq 0xb5f0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0xb4d0
jmp 0x5b008
leaq 0x315fc(%rip), %r14     # 0x8c570
movq (%r14), %rdi
cmpq $0x0, 0x18(%rdi)
je 0x5b02e
addq $0x20, %rdi
callq 0xb7d0
movq (%r14), %rax
movq 0x18(%rax), %r14
leaq 0xf50f(%rip), %rsi      # 0x6a4a8
movl $0xc, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x12550(%rip), %rsi     # 0x6d4fd
movl $0x16, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x1258f(%rip), %rsi     # 0x6d550
movl $0x33, %edx
movq %r14, %rdi
callq 0xb5f0
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r14, %rdi
callq 0xb5f0
movq %rax, %rbx
leaq 0x10f19(%rip), %rsi     # 0x6bf00
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
leaq 0x3154e(%rip), %rax     # 0x8c570
movq (%rax), %rdi
addq $0x20, %rdi
callq 0xb3b0
xorl %ebx, %ebx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x5b046
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
movl %ebx, %eax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5b07a
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x5b07a
jmp 0x5b077
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x5b090
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb510
movq %rbx, %rdi
callq 0xb9c0