// File: /workspace/github_cpp_makefile_star2_O1/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 0x1c52f
leaq 0x2937(%rip), %rsi      # 0x6a344
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 0x1e3de
movq %rax, %r15
testq %rax, %rax
je 0x67c40
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 0x1c7be
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 0x67ba7
leaq 0x6a95(%rip), %rsi      # 0x6e547
leaq 0x8(%rsp), %rdi
movq %rbx, %rdx
callq 0x1b85e
leaq 0x8(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0xb670
movq (%r12), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x67aea
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x24a7f(%rip), %r13     # 0x8c570
movq (%r13), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x67ba7
addq $0x20, %rdi
callq 0xb7d0
movq (%r13), %rax
movq 0x8(%rax), %r12
leaq 0x2670(%rip), %rsi      # 0x6a188
movl $0xb, %edx
movq %r12, %rdi
callq 0xb5f0
leaq 0x6a10(%rip), %rsi      # 0x6e53c
movl $0xa, %edx
movq %r12, %rdi
callq 0xb5f0
leaq 0x1903(%rip), %rsi      # 0x69443
movl $0xb, %edx
movq %r12, %rdi
callq 0xb5f0
leaq 0x5f4f(%rip), %rsi      # 0x6daa3
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 0x67bc3
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x8(%r14), %rdi
leaq 0x68(%rsp), %rdx
movq %r15, %rsi
callq 0x1e72e
testb %al, %al
jne 0x6803b
leaq 0x6975(%rip), %rsi      # 0x6e558
leaq 0xe8(%rsp), %rdi
leaq 0x68(%rsp), %rdx
callq 0x1b85e
leaq 0x6975(%rip), %rsi      # 0x6e571
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 0x67e26
movq %rdx, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
jmp 0x67e2d
leaq 0x68e3(%rip), %rsi      # 0x6e52a
leaq 0x88(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0x1b85e
leaq 0x2d90(%rip), %rsi      # 0x6a9f0
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 0x67c94
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x67c9b
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 0x67cee
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x67cf6
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 0x67d32
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x67d49
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x67d6a
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x247ff(%rip), %r14     # 0x8c570
movq (%r14), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x67e1f
addq $0x20, %rdi
callq 0xb7d0
movq (%r14), %rax
movq 0x8(%rax), %r14
leaq 0x23f2(%rip), %rsi      # 0x6a188
movl $0xb, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x6792(%rip), %rsi      # 0x6e53c
movl $0xa, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x1685(%rip), %rsi      # 0x69443
movl $0xb, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x5cd1(%rip), %rsi      # 0x6daa3
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 0x68028
xorl %ebp, %ebp
jmp 0x6803b
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 0x6732(%rip), %rax      # 0x6e585
leaq 0x2b98(%rip), %rsi      # 0x6a9f2
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 0x67e8e
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x67e96
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 0x67ee1
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x67ee9
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 0x67f25
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x67f3c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x88(%rsp), %rdi
cmpq %r15, %rdi
je 0x67f59
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x67f7a
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x245ef(%rip), %r14     # 0x8c570
movq (%r14), %rdi
cmpq $0x0, 0x8(%rdi)
je 0x6803b
addq $0x20, %rdi
callq 0xb7d0
movq (%r14), %rax
movq 0x8(%rax), %r14
leaq 0x21e2(%rip), %rsi      # 0x6a188
movl $0xb, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x6582(%rip), %rsi      # 0x6e53c
movl $0xa, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x1475(%rip), %rsi      # 0x69443
movl $0xb, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x5ac1(%rip), %rsi      # 0x6daa3
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 0x24541(%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 0x68072
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x68089
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0xa8(%rsp), %rdi
cmpq %r14, %rdi
je 0x680a6
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x68(%rsp), %rdi
cmpq %rbx, %rdi
je 0x680bd
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 0x680f0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x680f0
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r15, %rdi
je 0x68112
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x68112
movq %rax, %rbx
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x68193
movq 0xf8(%rsp), %rsi
jmp 0x68184
jmp 0x68190
jmp 0x6816d
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x68150
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x68150
movq %rax, %rbx
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x68193
movq 0x98(%rsp), %rsi
jmp 0x68184
jmp 0x68190
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x68193
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x68193
jmp 0x68190
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x681b8
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x681d4
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x681f9
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xb510
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x68215
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xb510
movq %rbx, %rdi
callq 0xb9c0
nop