// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/tools/gt_inlineseq_split.c
// Function: gt_inlineseq_split_runner
static int gt_inlineseq_split_runner(int argc, const char **argv,
                                     int parsed_args,
                              void *tool_arguments, GtError *err)
{
  GtInlineseqSplitArguments *arguments = tool_arguments;
  GtNodeStream *gff3_in_stream = NULL,
               *gff3_out_stream = NULL,
               *split_stream = NULL,
               *last_stream = NULL;
  GtFile *seq_out_file = NULL,
         *gff3_out_file = NULL;
  int had_err = 0;

  gt_error_check(err);
  gt_assert(arguments);

  if (gt_str_length(arguments->seqoutfile) > 0) {
    seq_out_file = gt_file_new(gt_str_get(arguments->seqoutfile), "w+", err);
    if (!seq_out_file)
      had_err = -1;
  }

  if (!had_err && gt_str_length(arguments->gffoutfile) > 0) {
    gff3_out_file = gt_file_new(gt_str_get(arguments->gffoutfile), "w+", err);
    if (!gff3_out_file)
      had_err = -1;
  }

  if (!had_err) {
    last_stream = gff3_in_stream = gt_gff3_in_stream_new_unsorted(
                                                            argc - parsed_args,
                                                            argv + parsed_args);
    gt_assert(gff3_in_stream);
  }

  if (!had_err) {
    last_stream = split_stream = gt_sequence_node_out_stream_new(last_stream,
                                                                 seq_out_file,
                                                                 err);
    gt_assert(split_stream);
  }

  if (!had_err) {
    last_stream = gff3_out_stream = gt_gff3_out_stream_new(last_stream,
                                                           gff3_out_file);
    had_err = gt_node_stream_pull(last_stream, err);
  }

  gt_node_stream_delete(gff3_in_stream);
  gt_node_stream_delete(gff3_out_stream);
  gt_node_stream_delete(split_stream);
  gt_file_delete(seq_out_file);
  gt_file_delete(gff3_out_file);

  return had_err;
}

// Assembly:
subq $0x68, %rsp
movl %edi, 0x64(%rsp)
movq %rsi, 0x58(%rsp)
movl %edx, 0x54(%rsp)
movq %rcx, 0x48(%rsp)
movq %r8, 0x40(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x38(%rsp)
movq $0x0, 0x30(%rsp)
movq $0x0, 0x28(%rsp)
movq $0x0, 0x20(%rsp)
movq $0x0, 0x18(%rsp)
movq $0x0, 0x10(%rsp)
movq $0x0, 0x8(%rsp)
movl $0x0, 0x4(%rsp)
cmpq $0x0, 0x40(%rsp)
je 0x3f063
movq 0x40(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x3f02b
jmp 0x3f063
movq 0x5fcf6e(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4d6fd7(%rip), %rsi    # 0x516013
leaq 0x4d717c(%rip), %rdx    # 0x5161bf
leaq 0x4e14e8(%rip), %rcx    # 0x520532
leaq 0x4e13dc(%rip), %r8     # 0x52042d
movl $0x61, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x3f065
jmp 0x3f067
cmpq $0x0, 0x38(%rsp)
jne 0x3f0a7
movq 0x5fcf2a(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4d6f93(%rip), %rsi    # 0x516013
leaq 0x53bad8(%rip), %rdx    # 0x57ab5f
leaq 0x4e14a4(%rip), %rcx    # 0x520532
leaq 0x4e1398(%rip), %r8     # 0x52042d
movl $0x62, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x3f0a9
movq 0x38(%rsp), %rax
movq (%rax), %rdi
callq 0x11dfa0
cmpq $0x0, %rax
jbe 0x3f0f4
movq 0x38(%rsp), %rax
movq (%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
movq 0x40(%rsp), %rdx
leaq 0x4d75cc(%rip), %rsi    # 0x5166a4
callq 0xdd320
movq %rax, 0x10(%rsp)
cmpq $0x0, 0x10(%rsp)
jne 0x3f0f2
movl $0xffffffff, 0x4(%rsp)  # imm = 0xFFFFFFFF
jmp 0x3f0f4
cmpl $0x0, 0x4(%rsp)
jne 0x3f148
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x11dfa0
cmpq $0x0, %rax
jbe 0x3f148
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
movq 0x40(%rsp), %rdx
leaq 0x4d7578(%rip), %rsi    # 0x5166a4
callq 0xdd320
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
jne 0x3f146
movl $0xffffffff, 0x4(%rsp)  # imm = 0xFFFFFFFF
jmp 0x3f148
cmpl $0x0, 0x4(%rsp)
jne 0x3f1bb
movl 0x64(%rsp), %edi
subl 0x54(%rsp), %edi
movq 0x58(%rsp), %rsi
movslq 0x54(%rsp), %rax
shlq $0x3, %rax
addq %rax, %rsi
callq 0x1746b0
movq %rax, 0x30(%rsp)
movq %rax, 0x18(%rsp)
cmpq $0x0, 0x30(%rsp)
jne 0x3f1b7
movq 0x5fce1a(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4d6e83(%rip), %rsi    # 0x516013
leaq 0x4e1287(%rip), %rdx    # 0x52041e
leaq 0x4e1394(%rip), %rcx    # 0x520532
leaq 0x4e1288(%rip), %r8     # 0x52042d
movl $0x74, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x3f1b9
jmp 0x3f1bb
cmpl $0x0, 0x4(%rsp)
jne 0x3f224
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq 0x40(%rsp), %rdx
callq 0x1d6e60
movq %rax, 0x20(%rsp)
movq %rax, 0x18(%rsp)
cmpq $0x0, 0x20(%rsp)
jne 0x3f220
movq 0x5fcdb1(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4d6e1a(%rip), %rsi    # 0x516013
leaq 0x4e134c(%rip), %rdx    # 0x52054c
leaq 0x4e132b(%rip), %rcx    # 0x520532
leaq 0x4e121f(%rip), %r8     # 0x52042d
movl $0x7b, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x3f222
jmp 0x3f224
cmpl $0x0, 0x4(%rsp)
jne 0x3f257
movq 0x18(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x176d50
movq %rax, 0x28(%rsp)
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x1b1f90
movl %eax, 0x4(%rsp)
movq 0x30(%rsp), %rdi
callq 0x1b1cb0
movq 0x28(%rsp), %rdi
callq 0x1b1cb0
movq 0x20(%rsp), %rdi
callq 0x1b1cb0
movq 0x10(%rsp), %rdi
callq 0xde430
movq 0x8(%rsp), %rdi
callq 0xde430
movl 0x4(%rsp), %eax
addq $0x68, %rsp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)