// File: mh0fm4[P]SCDC/src/components/dataset/dataset_inout.cc
// Function: scdc_dataset_input_fslist_file_create(_scdc_dataset_inout_t*, char const*, _scdc_args_t*, char const*)
static scdc_dataset_inout_t *scdc_dataset_input_fslist_file_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 = snprintf(static_cast<char *>(SCDC_DATASET_INOUT_BUF_PTR(input)), SCDC_DATASET_INOUT_BUF_SIZE(input), "f:%" scdcint_fmt "|", z_fs_get_file_size(pathname));

  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 $0x110, %rsp            # imm = 0x110
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 0x49c0e
leaq -0xc0(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x267a0
jmp 0x49c20
leaq 0x5d94d(%rip), %rsi     # 0xa7574
leaq -0xc0(%rbp), %rdi
callq 0x25b80
movb %al, -0xf1(%rbp)
jmp 0x49c3b
leaq -0xc0(%rbp), %rdi
callq 0xc3e0
movb -0xf1(%rbp), %al
testb $0x1, %al
jne 0x49c56
jmp 0x49ce0
leaq -0x90(%rbp), %rdi
movl $0x2, %esi
leaq -0x30(%rbp), %rdx
xorl %ecx, %ecx
callq 0x4d170
jmp 0x49c6f
leaq -0xe0(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x25b00
jmp 0x49c81
leaq -0xe0(%rbp), %rdi
callq 0xc3e0
jmp 0x49ce0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
jmp 0x49dda
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
jmp 0x49dce
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x98(%rbp)
movl %eax, -0x9c(%rbp)
leaq -0xc0(%rbp), %rdi
callq 0xc3e0
jmp 0x49dce
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x47500
testb $0x1, %al
jne 0x49d0c
movq $0x0, -0x8(%rbp)
movl $0x1, -0xe4(%rbp)
jmp 0x49dac
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movq $0xb, 0x8(%rax)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rcx
movq %rcx, -0x110(%rbp)
movq 0x18(%rax), %rax
movq %rax, -0x108(%rbp)
movq -0x28(%rbp), %rdi
callq 0x5d580
movq %rax, -0x100(%rbp)
jmp 0x49d48
movq -0x100(%rbp), %rcx
movq -0x108(%rbp), %rsi
movq -0x110(%rbp), %rdi
leaq 0x5d7a0(%rip), %rdx     # 0xa7504
movb $0x0, %al
callq 0xcaf0
cltq
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 $0x110, %rsp            # imm = 0x110
popq %rbp
retq
leaq -0x90(%rbp), %rdi
callq 0x256b0
leaq -0x58(%rbp), %rdi
callq 0x25c90
movq -0x98(%rbp), %rdi
callq 0xcba0
nop