// File: mh0fm4[P]SCDC/src/components/dataset/dataset_inout.cc
// Function: scdc_dataset_input_fslist_link_create(_scdc_dataset_inout_t*, char const*, _scdc_args_t*, char const*)
static scdc_dataset_inout_t *scdc_dataset_input_fslist_link_create(scdc_dataset_input_t *input, const char *conf, scdc_args_t *args, const char *pathname)
{
  scdcint_t size = DEFAULT_DATASET_INOUT_BUF_SIZE;

  stringlist confs(':', conf);
  scdc_args xargs(args);

  if (confs.front() == "size")
  {
    xargs.get<scdcint_t>(SCDC_ARGS_TYPE_SCDCINT, &size);
    confs.front_pop();
  }

  if (!scdc_dataset_inout_alloc(input, size, 0)) return 0;

  input->intern->type = SCDC_DATASET_INOUT_TYPE_FSLIST_FILE;

  scdcint_t n = 0;

  n += snprintf(static_cast<char *>(SCDC_DATASET_INOUT_BUF_PTR(input)) + n, SCDC_DATASET_INOUT_BUF_SIZE(input) - n, "l:");

  n += z_fs_get_link_target(pathname, static_cast<char *>(SCDC_DATASET_INOUT_BUF_PTR(input)) + n, SCDC_DATASET_INOUT_BUF_SIZE(input) - n - 1);

  n += snprintf(static_cast<char *>(SCDC_DATASET_INOUT_BUF_PTR(input)) + n, SCDC_DATASET_INOUT_BUF_SIZE(input) - n, "|");

  SCDC_DATASET_INOUT_BUF_CURRENT(input) = n;
  input->total_size = n;
  input->total_size_given = SCDC_DATASET_INOUT_TOTAL_SIZE_GIVEN_EXACT;

  return input;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq $0x4000, -0x30(%rbp)    # imm = 0x4000
movq -0x18(%rbp), %rdx
leaq -0x58(%rbp), %rdi
movl $0x3a, %esi
movq $-0x1, %rcx
callq 0x25a70
movq -0x20(%rbp), %rsi
leaq -0x90(%rbp), %rdi
callq 0x25660
jmp 0x496ae
leaq -0xc0(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x267a0
jmp 0x496c0
leaq 0x5dead(%rip), %rsi     # 0xa7574
leaq -0xc0(%rbp), %rdi
callq 0x25b80
movb %al, -0xf1(%rbp)
jmp 0x496db
leaq -0xc0(%rbp), %rdi
callq 0xc3e0
movb -0xf1(%rbp), %al
testb $0x1, %al
jne 0x496f6
jmp 0x49780
leaq -0x90(%rbp), %rdi
movl $0x2, %esi
leaq -0x30(%rbp), %rdx
xorl %ecx, %ecx
callq 0x4d170
jmp 0x4970f
leaq -0xe0(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x25b00
jmp 0x49721
leaq -0xe0(%rbp), %rdi
callq 0xc3e0
jmp 0x49780
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
jmp 0x498e7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
jmp 0x498db
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
leaq -0xc0(%rbp), %rdi
callq 0xc3e0
jmp 0x498db
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x47500
testb $0x1, %al
jne 0x497ac
movq $0x0, -0x8(%rbp)
movl $0x1, -0xe4(%rbp)
jmp 0x498b9
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movq $0xb, 0x8(%rax)
movq $0x0, -0xf0(%rbp)
movq -0x10(%rbp), %rcx
movq -0xf0(%rbp), %rax
movq 0x10(%rcx), %rdi
movq 0x18(%rcx), %rsi
addq %rax, %rdi
subq %rax, %rsi
leaq 0x5dd06(%rip), %rdx     # 0xa74ed
xorl %eax, %eax
callq 0xcaf0
movslq %eax, %rcx
movq -0xf0(%rbp), %rax
addq %rcx, %rax
movq %rax, -0xf0(%rbp)
movq -0x28(%rbp), %rdi
movq -0x10(%rbp), %rax
movq -0xf0(%rbp), %rdx
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rax
addq %rdx, %rsi
notq %rdx
addq %rax, %rdx
callq 0x5d5d0
movq %rax, -0x100(%rbp)
jmp 0x49830
movq -0x100(%rbp), %rax
addq -0xf0(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
addq -0xf0(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rsi
subq -0xf0(%rbp), %rsi
leaq 0x5dc95(%rip), %rdx     # 0xa74ff
movb $0x0, %al
callq 0xcaf0
cltq
addq -0xf0(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0xf0(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0xf0(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x28(%rax)
movq -0x10(%rbp), %rax
movb $0x78, 0x30(%rax)
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
movl $0x1, -0xe4(%rbp)
leaq -0x90(%rbp), %rdi
callq 0x256b0
leaq -0x58(%rbp), %rdi
callq 0x25c90
movq -0x8(%rbp), %rax
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
leaq -0x90(%rbp), %rdi
callq 0x256b0
leaq -0x58(%rbp), %rdi
callq 0x25c90
movq -0x98(%rbp), %rdi
callq 0xcba0
nopl (%rax)