// File: /workspace/github_cpp_makefile_star2_O1/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 0x2ca74
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 0x1b8f2
leaq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x1b92c
leaq 0x50(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x1bc30
leaq 0x3e5b1(%rip), %rsi     # 0x6b064
leaq 0x50(%rsp), %r12
movq %r12, %rdi
callq 0xb110
movl %eax, %ebp
movq (%r12), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x2cadd
movq 0x60(%rsp), %rsi
incq %rsi
callq 0xb510
testl %ebp, %ebp
jne 0x2cb14
leaq 0x88(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x1b92c
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2cb14
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 0x2cb4c
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 0x3e915(%rip), %rsi     # 0x6b468
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x2cef7
leaq 0x3d8be(%rip), %rsi     # 0x6a42a
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x2cd91
leaq 0x3e4eb(%rip), %rsi     # 0x6b070
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x2cd7f
leaq 0x3e4d7(%rip), %rsi     # 0x6b075
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x2cd7f
leaq 0x3e53e(%rip), %rsi     # 0x6b0f5
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x2cdb4
leaq 0x40283(%rip), %rsi     # 0x6ce53
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x2cdb4
leaq 0x3d640(%rip), %rsi     # 0x6a229
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x2cdb4
leaq 0x3e47b(%rip), %rsi     # 0x6b07d
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x2ce1f
leaq 0x40ee8(%rip), %rsi     # 0x6db03
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x2ce4d
leaq 0x3e44f(%rip), %rsi     # 0x6b083
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x2ce5a
leaq 0x3e439(%rip), %rsi     # 0x6b086
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x2ce6a
leaq 0x3e426(%rip), %rsi     # 0x6b08c
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x2ce7a
leaq 0x3e414(%rip), %rsi     # 0x6b093
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x2ce8a
leaq 0x3e9c6(%rip), %rsi     # 0x6b65e
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x2ce9a
leaq 0x3f773(%rip), %rsi     # 0x6c424
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x2ceaa
leaq 0x3e430(%rip), %rsi     # 0x6b0fa
leaq 0x8(%rsp), %rdi
callq 0xb110
testl %eax, %eax
je 0x2cebd
leaq 0x5f88d(%rip), %r15     # 0x8c570
movq (%r15), %rdi
cmpq $0x0, 0x18(%rdi)
je 0x2cef7
addq $0x20, %rdi
callq 0xb7d0
movq (%r15), %rax
movq 0x18(%rax), %r14
leaq 0x3d780(%rip), %rsi     # 0x6a488
movl $0xc, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x3e389(%rip), %rsi     # 0x6b0a5
movl $0xf, %edx
movq %r14, %rdi
callq 0xb5f0
leaq 0x3e3d2(%rip), %rsi     # 0x6b102
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 0x3f602(%rip), %rsi     # 0x6c35b
movl $0x1, %edx
movq %rax, %rdi
callq 0xb5f0
movq %r14, %rdi
callq 0xb250
movq (%r15), %rdi
addq $0x20, %rdi
callq 0xb3b0
jmp 0x2cef7
testq %rbx, %rbx
je 0x2cef7
leaq 0x5d541(%rip), %rsi     # 0x8a2d0
jmp 0x2cda1
testq %rbx, %rbx
je 0x2cef7
leaq 0x3e24f(%rip), %rsi     # 0x6aff0
movl $0xb, %ecx
movq %rbx, %rdi
rep  movsq (%rsi), %es:(%rdi)
movq %rbx, %r14
jmp 0x2cefa
testq %rbx, %rbx
je 0x2cef7
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 0x2cdfa
movq 0x50(%rsp), %rdi
movl $0xa, %esi
movq %rbx, %rdx
callq *%rax
movq 0x48(%rbx), %rax
testq %rax, %rax
je 0x2ce13
movq $0x1, 0x8(%rax)
movq $0x0, 0x20(%rax)
leaq 0x50(%rsp), %rdi
callq 0x1b820
jmp 0x2cdac
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2e496
movq %rax, %r14
testq %rax, %rax
je 0x2cef7
movq 0x48(%r14), %rax
leaq 0x327f(%rip), %rcx      # 0x300c3
movq %rcx, 0x20(%rax)
jmp 0x2cefa
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2cfe5
jmp 0x2ceb8
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2d0b1
jmp 0x2ceb8
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2d166
jmp 0x2ceb8
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2d224
jmp 0x2ceb8
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2d2f4
jmp 0x2ceb8
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2d434
jmp 0x2ceb8
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2d528
movq %rax, %r14
jmp 0x2cefa
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2e496
movq %rax, %r14
testq %rax, %rax
je 0x2cef7
movq 0x48(%r14), %rax
movq $0xe, 0x8(%rax)
leaq 0x46a2(%rip), %rcx      # 0x31588
movq %rcx, 0x20(%rax)
leaq 0x46ba(%rip), %rax      # 0x315ab
movq %rax, 0x38(%r14)
jmp 0x2cefa
xorl %r14d, %r14d
testq %r14, %r14
je 0x2cf4c
movq 0x48(%r14), %rax
testq %rax, %rax
je 0x2cf18
movq 0x10(%r14), %rcx
movq %rcx, 0x10(%rax)
movq 0x40(%r14), %rcx
movq %rcx, 0x18(%rax)
testl %ebp, %ebp
jne 0x2cf67
movl $0x10, %edi
callq 0xb500
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movq 0x38(%r14), %rcx
movq %rcx, (%rax)
movq 0x40(%r14), %rcx
movq %rcx, 0x8(%rax)
leaq 0x2fb7(%rip), %rcx      # 0x2fef9
movq %rcx, 0x38(%r14)
movq %rax, 0x40(%r14)
jmp 0x2cf67
testq %rbx, %rbx
je 0x2cf64
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 0x2cf82
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb510
leaq 0x28(%rsp), %rdi
callq 0x1bb7e
movq %r14, %rax
addq $0x100, %rsp            # imm = 0x100
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x1b820
jmp 0x2cfb3
jmp 0x2cfb0
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2cfd3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb510
jmp 0x2cfd3
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x1bb7e
movq %rbx, %rdi
callq 0xb9c0