// File: /workspace/github_cpp_makefile_star2_O3/mh0fm4[P]SCDC/src/components/dataset/dataset_inout.cc
// Function: scdc_dataset_output_create_intern
scdc_dataset_output_t *scdc_dataset_output_create_intern(scdc_dataset_output_t *output, const char *conf, scdc_args_t *args)
{
  SCDC_TRACE("scdc_dataset_output_create_intern: output: " << static_cast<void *>(output) << ", conf: '" << conf << "'");

  scdc_dataset_output_t output_given, *output_ret = output;

  /* backup given output struct */
  if (output) output_given = *output;

  stringlist confs(':', conf);
  string op_type = confs.front_pop();

  bool autodestroy = false;

  if (confs.front() == "autodestroy")
  {
    autodestroy = true;
    confs.front_pop();
  }

  conf += confs.offset();

  scdc_dataset_output_unset(output_ret);

  if (op_type == "null")
    output_ret = 0;
  else if (op_type == "none")
    { if (output_ret) *output_ret = *SCDC_DATASET_OUTPUT_NONE; }
  else if (op_type == "endl" || op_type == "endless")
    { if (output_ret) *output_ret = *SCDC_DATASET_OUTPUT_ENDL; }
  else if (op_type == "copy" || op_type == "output" || op_type == "outputsink")
    output_ret = scdc_dataset_output_copy_create(output_ret, conf, args);
  else if (op_type == "alloc")
    output_ret = scdc_dataset_output_alloc_create(output_ret, conf, args);
  else if (op_type == "buffer")
    output_ret = scdc_dataset_output_buffer_create(output_ret, conf, args);
  else if (op_type == "fd")
    output_ret = scdc_dataset_output_fd_create(output_ret, conf, args);
  else if (op_type == "fddup")
    output_ret = scdc_dataset_output_fddup_create(output_ret, conf, args);
  else if (op_type == "stream")
    output_ret = scdc_dataset_output_stream_create(output_ret, conf, args);
  else if (op_type == "streamdup")
    output_ret = scdc_dataset_output_streamdup_create(output_ret, conf, args);
  else if (op_type == "file")
    output_ret = scdc_dataset_output_file_create(output_ret, conf, args);
  else if (op_type == "fs")
    output_ret = scdc_dataset_output_fs_create(output_ret, conf, args);
  else if (op_type == "consume")
    output_ret = scdc_dataset_output_consume_create(output_ret, conf, args);
  else
  {
    SCDC_ERROR("unknown output type '" << op_type << "'");
    output_ret = 0;
  }

  if (!output_ret)
  {
    /* restore given output struct */
    if (output) *output = output_given;
    return 0;
  }

  INOUT_INTERN_BACKUP(output_ret);

  if (autodestroy) scdc_dataset_output_autodestroy(output_ret);

  SCDC_TRACE_DATASET_OUTPUT(output, "scdc_dataset_output_create_intern: ");

  return output_ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x100, %rsp            # imm = 0x100
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
testq %rdi, %rdi
je 0x2c826
leaq 0xa8(%rsp), %rdi
movl $0xb, %ecx
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
leaq 0x28(%rsp), %r12
movq %r12, %rdi
movl $0x3a, %esi
movq %r15, %rdx
movq $-0x1, %rcx
callq 0x1b83e
leaq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x1b878
leaq 0x50(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x1bb82
leaq 0x3e81f(%rip), %rsi     # 0x6b084
leaq 0x50(%rsp), %r12
movq %r12, %rdi
callq 0xb110
movl %eax, %ebp
movq (%r12), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x2c88f
movq 0x60(%rsp), %rsi
incq %rsi
callq 0xb510
testl %ebp, %ebp
jne 0x2c8c6
leaq 0x88(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x1b878
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2c8c6
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x48(%rsp), %rax
movq -0x20(%rax), %rcx
addq $0x30, %rcx
cmpq $0x0, -0x10(%rax)
cmoveq %rax, %rcx
addq (%rcx), %r15
testq %rbx, %rbx
je 0x2c8fe
movb $0x0, (%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
movups %xmm0, 0x20(%rbx)
movb $0x6e, 0x30(%rbx)
movups %xmm0, 0x38(%rbx)
movups %xmm0, 0x48(%rbx)
leaq 0x3eb83(%rip), %rsi     # 0x6b488
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x2ccbb
leaq 0x3db2c(%rip), %rsi     # 0x6a44a
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x2cb43
leaq 0x3e759(%rip), %rsi     # 0x6b090
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x2cb31
leaq 0x3e745(%rip), %rsi     # 0x6b095
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x2cb31
leaq 0x3e7ac(%rip), %rsi     # 0x6b115
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x2cba8
leaq 0x40541(%rip), %rsi     # 0x6cec3
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x2cba8
leaq 0x3d8ae(%rip), %rsi     # 0x6a249
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x2cba8
leaq 0x3e6e9(%rip), %rsi     # 0x6b09d
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x2cc16
leaq 0x411a6(%rip), %rsi     # 0x6db73
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x2cc44
leaq 0x3e6bd(%rip), %rsi     # 0x6b0a3
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x2cc51
leaq 0x3e6a7(%rip), %rsi     # 0x6b0a6
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x2cc61
leaq 0x3e694(%rip), %rsi     # 0x6b0ac
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x2cc71
leaq 0x3e682(%rip), %rsi     # 0x6b0b3
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x2cc81
leaq 0x3ec34(%rip), %rsi     # 0x6b67e
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x2cc91
leaq 0x3fa39(%rip), %rsi     # 0x6c49c
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x2cca1
leaq 0x3e69e(%rip), %rsi     # 0x6b11a
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x2cd0e
leaq 0x5fadb(%rip), %r15     # 0x8c570
movq (%r15), %rdi
cmpq $0x0, 0x18(%rdi)
je 0x2ccbb
addq $0x20, %rdi
callq 0xb7d0
movq (%r15), %rax
movq 0x18(%rax), %r14
leaq 0x3d9ee(%rip), %rsi     # 0x6a4a8
movl $0xc, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x3e5f7(%rip), %rsi     # 0x6b0c5
movl $0xf, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x3e640(%rip), %rsi     # 0x6b122
movl $0x15, %edx
movq %r14, %rdi
callq 0xb5f0
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0xb5f0
movq %rax, %r14
leaq 0x3f8c8(%rip), %rsi     # 0x6c3d3
movl $0x1, %edx
movq %rax, %rdi
callq 0xb5f0
movq %r14, %rdi
callq 0xb250
movq (%r15), %rdi
addq $0x20, %rdi
callq 0xb3b0
jmp 0x2ccbb
testq %rbx, %rbx
je 0x2ccd3
leaq 0x5d81f(%rip), %rsi     # 0x8a360
jmp 0x2cb53
testq %rbx, %rbx
je 0x2ccd3
leaq 0x3e4bd(%rip), %rsi     # 0x6b010
movl $0xb, %ecx
movq %rbx, %rdi
rep  movsq (%rsi), %es:(%rdi)
movq %rbx, %r14
movq 0x48(%r14), %rax
testq %rax, %rax
je 0x2cb7a
movq 0x10(%r14), %rcx
movq %rcx, 0x10(%rax)
movq 0x40(%r14), %rcx
movq %rcx, 0x18(%rax)
testl %ebp, %ebp
jne 0x2ccd6
movl $0x10, %edi
callq 0xb500
movups 0x38(%r14), %xmm0
movups %xmm0, (%rax)
leaq 0x309f(%rip), %rcx      # 0x2fc3a
movq %rcx, 0x38(%r14)
movq %rax, 0x40(%r14)
jmp 0x2ccd6
testq %rbx, %rbx
je 0x2ccd3
leaq 0x70(%rsp), %rax
movq %rax, 0x8(%rax)
movq %rax, (%rax)
movq $0x0, 0x10(%rax)
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movaps %xmm0, -0x20(%rax)
movaps %xmm1, -0x10(%rax)
movq -0x18(%rax), %rax
testq %rax, %rax
je 0x2cbee
movq 0x50(%rsp), %rdi
movl $0xa, %esi
movq %rbx, %rdx
callq *%rax
movq 0x48(%rbx), %rax
testq %rax, %rax
je 0x2cc07
movq $0x1, 0x8(%rax)
movq $0x0, 0x20(%rax)
leaq 0x50(%rsp), %rdi
callq 0x1b76c
jmp 0x2cb5e
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2e1ef
movq %rax, %r14
testq %rax, %rax
je 0x2ccbb
movq 0x48(%r14), %rax
leaq 0x31b3(%rip), %rcx      # 0x2fdee
movq %rcx, 0x20(%rax)
jmp 0x2cb61
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2cd91
jmp 0x2ccaf
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2ce5b
jmp 0x2ccaf
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2cf10
jmp 0x2ccaf
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2cfce
jmp 0x2ccaf
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2d09b
jmp 0x2ccaf
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2d1d9
jmp 0x2ccaf
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2d2cd
movq %rax, %r14
testq %rax, %rax
jne 0x2cb61
testq %rbx, %rbx
je 0x2ccd3
leaq 0xa8(%rsp), %rsi
movl $0xb, %ecx
movq %rbx, %rdi
rep  movsq (%rsi), %es:(%rdi)
xorl %r14d, %r14d
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2ccf1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x28(%rsp), %rdi
callq 0x1bad0
movq %r14, %rax
addq $0x100, %rsp            # imm = 0x100
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2e1ef
movq %rax, %r14
testq %rax, %rax
je 0x2ccbb
movq 0x48(%r14), %rax
movq $0xe, 0x8(%rax)
leaq 0x457b(%rip), %rcx      # 0x312b2
movq %rcx, 0x20(%rax)
leaq 0x4593(%rip), %rax      # 0x312d5
movq %rax, 0x38(%r14)
jmp 0x2cb61
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x1b76c
jmp 0x2cd5f
jmp 0x2cd5c
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2cd7f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x2cd7f
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x1bad0
movq %rbx, %rdi
callq 0xb9c0