// File: /workspace/github_cpp_makefile_star2_O2/mh0fm4[P]SCDC/src/components/dataprov/dataprov_jobrun_relay.cc
// Function: scdc_dataset_jobrun_relay::do_cmd_put(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, _scdc_dataset_inout_t*, _scdc_dataset_inout_t*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
bool do_cmd_put(const std::string &params, scdc_dataset_input_t *input, scdc_dataset_output_t *output, scdc_result &result)
    {
      string p = params;
      string jobid = pwd;
      bool have_remote = (remote_dataset != SCDC_DATASET_NULL);

      if (jobid.empty())
      {
        stringlist plist(' ', p);

        jobid = safe_jobid(plist.front_pop().c_str());

        p += plist.offset();

        if (jobid.empty()) return dataprov_jobrun_relay()->do_cmd_put(p, input, output, result);

        if (!dataprov_jobrun_relay()->sched_job_add(jobid, result))
        {
          result = "adding job failed: " + result;
          SCDC_FAIL("do_cmd_put: " << result);
          return false;
        }

        remote_dataset_open(jobid, false);
      }

      if (remote_dataset == SCDC_DATASET_NULL)
      {
        result = "no remote dataset available";
        SCDC_FAIL(__func__ << ": putting remote dataset failed: " << result);
        return false;
      }

      string cmd = "put ";
      if (!have_remote) cmd += jobid + " ";
      cmd += p;

      if (scdc_dataset_cmd(remote_dataset, cmd.c_str(), input, output) != SCDC_SUCCESS)
      {
        result = "remote command failed";
        SCDC_FAIL(__func__ << ": putting remote dataset failed: " << result);
        return false;
      }

      if (!have_remote) remote_dataset_close();

      return true;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %r8, %r13
movq %rcx, %r15
movq %rdx, %r12
movq %rdi, %r14
leaq 0x78(%rsp), %rdi
callq 0xb750
leaq 0x18(%r14), %rsi
leaq 0x58(%rsp), %rdi
callq 0xb750
movq 0x38(%r14), %rbx
cmpq $0x0, 0x60(%rsp)
movq %rbx, %rax
je 0x45512
testq %rax, %rax
je 0x45647
leaq 0xf0f2(%rip), %rsi      # 0x54578
leaq 0x10(%rsp), %rdi
leaq 0x38(%rsp), %rdx
callq 0x1a132
testq %rbx, %rbx
jne 0x454c9
leaq 0xeb5f(%rip), %rdx      # 0x54000
leaq 0x38(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x1d867
leaq 0x10(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0xba90
leaq 0x38(%rsp), %rdi
callq 0xb230
leaq 0x10(%rsp), %rdi
leaq 0x78(%rsp), %rsi
callq 0xba90
movq 0x38(%r14), %rdi
movq 0x10(%rsp), %rsi
movq %r12, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x1909c
cmpq $0x1, %rax
sete %bpl
jne 0x456d8
testq %rbx, %rbx
jne 0x45760
movq %r14, %rdi
callq 0x463c6
jmp 0x45760
leaq 0xf8(%rsp), %rdi
leaq 0x78(%rsp), %rsi
callq 0xb750
leaq 0x10(%rsp), %rdi
pushq $0x20
popq %rsi
leaq 0xf8(%rsp), %rdx
callq 0x2f05c
leaq 0xf8(%rsp), %rdi
callq 0xb230
leaq 0xb8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x19ba0
movq 0xb8(%rsp), %rsi
leaq 0xd8(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x1a132
movq %r13, %rbp
leaq 0x38(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
callq 0x44fd5
leaq 0x58(%rsp), %rdi
leaq 0x38(%rsp), %r13
movq %r13, %rsi
callq 0xb690
movq %r13, %rdi
callq 0xb230
leaq 0xd8(%rsp), %rdi
callq 0xb230
leaq 0xb8(%rsp), %rdi
callq 0xb230
leaq 0x30(%rsp), %rax
movq -0x20(%rax), %rcx
addq $0x30, %rcx
cmpq $0x0, -0x10(%rax)
cmoveq %rax, %rcx
movsbl (%rcx), %esi
leaq 0x78(%rsp), %rdi
callq 0xb450
cmpq $0x0, 0x60(%rsp)
je 0x45805
movq %rbp, %r13
movq 0x8(%r14), %rdi
leaq 0x58(%rsp), %rsi
callq 0x4477e
testb %al, %al
je 0x4576f
leaq 0x98(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0xb750
leaq 0x98(%rsp), %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0x46228
leaq 0x98(%rsp), %rdi
callq 0xb230
leaq 0x10(%rsp), %rdi
callq 0x19ef4
movq 0x38(%r14), %rax
jmp 0x45476
leaq 0xee23(%rip), %rsi      # 0x54471
movq %r13, %rdi
callq 0xba40
leaq 0x2ff23(%rip), %rbx     # 0x75580
movq (%rbx), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x4580f
addq $0x20, %rdi
callq 0xb800
movq (%rbx), %rax
movq 0x8(%rax), %rdi
leaq 0xbb06(%rip), %rsi      # 0x51188
callq 0xb520
leaq 0xedff(%rip), %rsi      # 0x5448d
movq %rax, %rdi
callq 0xb520
leaq 0xc3fc(%rip), %rsi      # 0x51a99
movq %rax, %rdi
callq 0xb520
leaq 0xeeaa(%rip), %rsi      # 0x54556
movq %rax, %rdi
callq 0xb520
movq %rax, %rdi
movq %r13, %rsi
callq 0xb490
movq %rax, %rdi
callq 0xb270
movq (%rbx), %rdi
addq $0x20, %rdi
callq 0xb3e0
jmp 0x4580f
leaq 0xedeb(%rip), %rsi      # 0x544ca
movq %r13, %rdi
callq 0xba40
leaq 0x2fe92(%rip), %rbx     # 0x75580
movq (%rbx), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x45760
addq $0x20, %rdi
callq 0xb800
movq (%rbx), %rax
movq 0x8(%rax), %rdi
leaq 0xba79(%rip), %rsi      # 0x51188
callq 0xb520
leaq 0xed72(%rip), %rsi      # 0x5448d
movq %rax, %rdi
callq 0xb520
leaq 0xc36f(%rip), %rsi      # 0x51a99
movq %rax, %rdi
callq 0xb520
leaq 0xee1d(%rip), %rsi      # 0x54556
movq %rax, %rdi
callq 0xb520
movq %rax, %rdi
movq %r13, %rsi
callq 0xb490
movq %rax, %rdi
callq 0xb270
movq (%rbx), %rdi
addq $0x20, %rdi
callq 0xb3e0
leaq 0x10(%rsp), %rdi
callq 0xb230
jmp 0x45811
leaq 0xedcc(%rip), %rsi      # 0x54542
leaq 0x38(%rsp), %rdi
movq %r13, %rdx
callq 0x19ae2
leaq 0x38(%rsp), %r14
movq %r13, %rdi
movq %r14, %rsi
callq 0xb690
movq %r14, %rdi
callq 0xb230
leaq 0x2fdde(%rip), %rbx     # 0x75580
movq (%rbx), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x45805
addq $0x20, %rdi
callq 0xb800
movq (%rbx), %rax
movq 0x8(%rax), %rdi
leaq 0xb9c5(%rip), %rsi      # 0x51188
callq 0xb520
leaq 0xecbe(%rip), %rsi      # 0x5448d
movq %rax, %rdi
callq 0xb520
leaq 0xe9aa(%rip), %rsi      # 0x54188
movq %rax, %rdi
callq 0xb520
movq %rax, %rdi
movq %r13, %rsi
callq 0xb490
movq %rax, %rdi
callq 0xb270
movq (%rbx), %rdi
addq $0x20, %rdi
callq 0xb3e0
leaq 0x10(%rsp), %rdi
callq 0x19ef4
xorl %ebp, %ebp
leaq 0x58(%rsp), %rdi
callq 0xb230
leaq 0x78(%rsp), %rdi
callq 0xb230
movl %ebp, %eax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
jmp 0x45876
jmp 0x45895
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0xb230
jmp 0x458ac
jmp 0x458a9
movq %rax, %rbx
leaq 0xd8(%rsp), %rdi
callq 0xb230
jmp 0x4586e
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
callq 0xb230
jmp 0x45898
jmp 0x45895
movq %rax, %rbx
leaq 0xf8(%rsp), %rdi
jmp 0x458b1
jmp 0x458a4
jmp 0x458a4
movq %rax, %rbx
jmp 0x458c0
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x19ef4
jmp 0x458b6
movq %rax, %rbx
jmp 0x458b6
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xb230
leaq 0x58(%rsp), %rdi
callq 0xb230
leaq 0x78(%rsp), %rdi
callq 0xb230
movq %rbx, %rdi
callq 0xb9a0