// File: /workspace/github_cpp_makefile_star2_O3/mh0fm4[P]SCDC/src/components/compcoup/compcoup.cc
// Function: scdc_compcoup::dataset_cmd(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 scdc_compcoup::dataset_cmd(const std::string &cmd, scdc_dataset_input_t *input, scdc_dataset_output_t *output, scdc_result &result)
{
  SCDC_TRACE_F("cmd: '" << cmd << "'");

  bool ret = false;
  string res;

  string scmd, suri, sparams;
  split_cmdline(cmd.c_str(), cmd.size(), &scmd, &suri, &sparams);
  suri = ltrim(suri, ":");

  scdc_dataset *dataset = dataprovs->dataset_open(suri, res);

  if (!dataset)
  {
    result = "opening dataset '" + suri + "' failed: " + res;
    SCDC_FAIL_F(result);
    goto do_return;
  }

  SCDC_TRACE_F("dataset: " << dataset);

  {
    string cmdline;
    join_cmdline(scmd.c_str(), 0, sparams.c_str(), cmdline);

    ret = dataset->do_cmd(cmdline, input, output, result);

    if (!ret)
    {
      result = "command failed: " + result;
      SCDC_FAIL_F(result);
    }

    SCDC_TRACE_F("command " << (ret?"successful":"failed") << ", result: '" << result << "'");
  }

  if (!dataprovs->dataset_close(dataset, res))
  {
    result = "closing dataset failed: " + res + ", previous command " + (ret?"successful: ":"failed: ") + result;
    SCDC_FAIL_F(result);
    goto do_return;
  }

do_return:
  SCDC_TRACE_F("return: " << ret << ", result: '" + result + "'");

  return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %r8, %rbx
movq %rcx, %r12
movq %rdx, %r13
movq %rdi, %r14
leaq 0x78(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0xb8(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x58(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0xd8(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
movq (%rsi), %rdi
movq 0x8(%rsi), %rsi
leaq 0xa8(%rsp), %rdx
leaq 0x48(%rsp), %rcx
leaq 0xc8(%rsp), %r8
callq 0x1c48f
leaq 0x2aa7(%rip), %rsi      # 0x6a364
leaq 0x48(%rsp), %r15
movl $0x1, %ecx
movq %r15, %rdi
xorl %edx, %edx
callq 0xb980
movq %r15, %rdi
xorl %esi, %esi
movq %rax, %rdx
callq 0xb0e0
leaq 0x48(%rsp), %rdi
movq %rdi, %rsi
callq 0xb2c0
movq 0x8(%r14), %rdi
leaq 0x48(%rsp), %rsi
leaq 0x68(%rsp), %rdx
callq 0x1e2ce
movq %rax, %r15
testq %rax, %rax
je 0x67af0
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0xa8(%rsp), %rdi
movq 0xc8(%rsp), %rdx
leaq 0x28(%rsp), %rcx
xorl %esi, %esi
callq 0x1c718
movq (%r15), %rax
leaq 0x28(%rsp), %rsi
movq %r15, %rdi
movq %r13, %rdx
movq %r12, %rcx
movq %rbx, %r8
callq *0x10(%rax)
movl %eax, %ebp
testb %al, %al
jne 0x67a57
leaq 0x6c55(%rip), %rsi      # 0x6e5b7
leaq 0x8(%rsp), %rdi
movq %rbx, %rdx
callq 0x1b7aa
leaq 0x8(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0xb670
movq (%r12), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x6799a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x24bcf(%rip), %r13     # 0x8c570
movq (%r13), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x67a57
addq $0x20, %rdi
callq 0xb7d0
movq (%r13), %rax
movq 0x8(%rax), %r12
leaq 0x27e0(%rip), %rsi      # 0x6a1a8
movl $0xb, %edx
movq %r12, %rdi
callq 0xb5f0
leaq 0x6bd0(%rip), %rsi      # 0x6e5ac
movl $0xa, %edx
movq %r12, %rdi
callq 0xb5f0
leaq 0x1a73(%rip), %rsi      # 0x69463
movl $0xb, %edx
movq %r12, %rdi
callq 0xb5f0
leaq 0x610f(%rip), %rsi      # 0x6db13
movl $0x2, %edx
movq %r12, %rdi
callq 0xb5f0
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r12, %rdi
callq 0xb5f0
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0xb4d0
movsbl %al, %esi
movq %r12, %rdi
callq 0xb050
movq %rax, %rdi
callq 0xb340
movq (%r13), %rdi
addq $0x20, %rdi
callq 0xb3b0
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %r13
cmpq %r13, %rdi
je 0x67a73
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x8(%r14), %rdi
leaq 0x68(%rsp), %rdx
movq %r15, %rsi
callq 0x1e61e
testb %al, %al
jne 0x67eeb
leaq 0x6b35(%rip), %rsi      # 0x6e5c8
leaq 0xe8(%rsp), %rdi
leaq 0x68(%rsp), %rdx
callq 0x1b7aa
leaq 0x6b35(%rip), %rsi      # 0x6e5e1
leaq 0xe8(%rsp), %rdi
callq 0xba60
leaq 0x98(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x67cd6
movq %rdx, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
jmp 0x67cdd
leaq 0x6aa3(%rip), %rsi      # 0x6e59a
leaq 0x88(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0x1b7aa
leaq 0x2f00(%rip), %rsi      # 0x6aa10
leaq 0x88(%rsp), %rdi
callq 0xba60
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x67b44
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x67b4b
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
callq 0xb150
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x67b9e
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x67ba6
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %r14
movq %rdx, 0x8(%r14)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
movq %r14, %rsi
callq 0xb670
movq (%r14), %rdi
cmpq %r12, %rdi
je 0x67be2
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x67bf9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x67c1a
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x2494f(%rip), %r14     # 0x8c570
movq (%r14), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x67ccf
addq $0x20, %rdi
callq 0xb7d0
movq (%r14), %rax
movq 0x8(%rax), %r14
leaq 0x2562(%rip), %rsi      # 0x6a1a8
movl $0xb, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x6952(%rip), %rsi      # 0x6e5ac
movl $0xa, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x17f5(%rip), %rsi      # 0x69463
movl $0xb, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x5e91(%rip), %rsi      # 0x6db13
movl $0x2, %edx
movq %r14, %rdi
callq 0xb5f0
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r14, %rdi
callq 0xb5f0
movq %rax, %rbx
movq (%rax), %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
xorl %ebp, %ebp
jmp 0x67ed8
xorl %ebp, %ebp
jmp 0x67eeb
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x88(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x68f2(%rip), %rax      # 0x6e5f5
leaq 0x2d08(%rip), %rsi      # 0x6aa12
testb %bpl, %bpl
cmovneq %rax, %rsi
callq 0xba60
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x67d3e
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x67d46
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
callq 0xb150
movq %r13, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x67d91
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x67d99
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %r14
movq %rdx, 0x8(%r14)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
movq %r14, %rsi
callq 0xb670
movq (%r14), %rdi
cmpq %r13, %rdi
je 0x67dd5
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x67dec
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x88(%rsp), %rdi
cmpq %r15, %rdi
je 0x67e09
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x67e2a
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x2473f(%rip), %r14     # 0x8c570
movq (%r14), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x67eeb
addq $0x20, %rdi
callq 0xb7d0
movq (%r14), %rax
movq 0x8(%rax), %r14
leaq 0x2352(%rip), %rsi      # 0x6a1a8
movl $0xb, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x6742(%rip), %rsi      # 0x6e5ac
movl $0xa, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x15e5(%rip), %rsi      # 0x69463
movl $0xb, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x5c81(%rip), %rsi      # 0x6db13
movl $0x2, %edx
movq %r14, %rdi
callq 0xb5f0
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r14, %rdi
callq 0xb5f0
movq %rax, %rbx
movq (%rax), %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 0x24691(%rip), %rax     # 0x8c570
movq (%rax), %rdi
addq $0x20, %rdi
callq 0xb3b0
leaq 0x78(%rsp), %rbx
leaq 0xb8(%rsp), %r14
leaq 0x58(%rsp), %r15
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x67f22
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x67f39
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0xa8(%rsp), %rdi
cmpq %r14, %rdi
je 0x67f56
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x68(%rsp), %rdi
cmpq %rbx, %rdi
je 0x67f6d
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xb510
movl %ebp, %eax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x67fa0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x67fa0
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r15, %rdi
je 0x67fc2
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x67fc2
movq %rax, %rbx
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x68043
movq 0xf8(%rsp), %rsi
jmp 0x68034
jmp 0x68040
jmp 0x6801d
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x68000
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x68000
movq %rax, %rbx
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x68043
movq 0x98(%rsp), %rsi
jmp 0x68034
jmp 0x68040
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x68043
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x68043
jmp 0x68040
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x68068
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x68084
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x680a9
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x680c5
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xb510
movq %rbx, %rdi
callq 0xb9c0
nop