// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/tools/gt_splitfasta.c
// Function: gt_splitfasta_runner
static int gt_splitfasta_runner(GT_UNUSED int argc, const char **argv,
                                int parsed_args, void *tool_arguments,
                                GtError *err)
{
  SplitfastaArguments *arguments = tool_arguments;
  unsigned int num_files;
  int had_err;
  off_t file_size;
  const char* filename;
  gt_error_check(err);
  gt_assert(arguments);

  num_files = arguments->num_files;
  filename = argv[parsed_args];

  if (gt_str_length(arguments->splitdesc)) {
    had_err = split_description(filename, arguments->splitdesc,
                                arguments->width, arguments->force, err);
  }
  else {
    GtUword max_filesize;
    if (num_files) {
      /* set the maxfile size based on requested number of files */
      file_size = gt_file_estimate_size(filename);
      max_filesize= file_size / num_files ;
    }
    else
      max_filesize= arguments->max_filesize_in_MB << 20;
    had_err = split_fasta_file(filename, max_filesize, arguments->force, err);
  }

  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2038, %rsp           # imm = 0x2038
movq %r8, %r12
movq %rcx, %rbx
movl %edx, %ebp
movq %rsi, %r14
testq %r8, %r8
je 0x52305
movq %r12, %rdi
callq 0x89eb7
testb %al, %al
jne 0x52869
testq %rbx, %rbx
je 0x5280e
movl 0x10(%rbx), %r15d
movslq %ebp, %rax
movq (%r14,%rax,8), %rax
movq %rax, (%rsp)
movq 0x18(%rbx), %rdi
callq 0xad289
testq %rax, %rax
movq %r12, 0x18(%rsp)
je 0x524a6
movq 0x8(%rbx), %rax
movq %rax, 0x20(%rsp)
movq 0x18(%rbx), %rax
movq %rax, 0x8(%rsp)
movb 0x20(%rbx), %bl
testq %r12, %r12
je 0x5235e
movq %r12, %rdi
callq 0x89eb7
testb %al, %al
jne 0x52897
cmpq $0x0, (%rsp)
je 0x527e1
cmpq $0x0, 0x8(%rsp)
je 0x527e1
movq 0x8(%rsp), %rdi
callq 0xad289
testq %rax, %rax
je 0x527e1
callq 0xacb84
movq %rax, %r13
movq (%rsp), %rdi
movq %r12, %rsi
callq 0x5a868
movq %rax, %rbp
testq %rax, %rax
setne %al
xorl %r14d, %r14d
movzbl %bl, %ecx
movl %ecx, 0x10(%rsp)
testb $0x1, %al
je 0x524a0
movq %rbp, %rdi
callq 0x5ba79
cmpq %rax, %r14
jae 0x524bb
movq %r13, %rdi
callq 0xad357
movq %r13, %rdi
movq 0x8(%rsp), %rsi
callq 0xacd13
movq %r13, %rdi
pushq $0x2f
popq %rsi
callq 0xaced9
movq %rbp, %rdi
movq %r14, %rsi
callq 0x5b338
movq %r13, %rdi
movq %rax, %rsi
callq 0xacbfb
movq (%rsp), %rdi
callq 0x8dc7b
movq %r13, %rdi
movq %rax, %rsi
callq 0xacbfb
movq %r13, %rdi
callq 0xad1fa
movq %rax, %rdi
leaq 0x2e14ea(%rip), %rsi    # 0x33390e
movl 0x10(%rsp), %edx
movq %r12, %rcx
callq 0x9ba49
testq %rax, %rax
je 0x524a0
movq %rax, %r15
movq %rbp, %rdi
movq %r14, %rsi
callq 0x5b1f9
movq %rax, %r12
movq %rbp, %rdi
movq %r14, %rsi
callq 0x5b338
movq %rax, %rbx
movq %rbp, %rdi
movq %r14, %rsi
callq 0x5b2f1
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
movq 0x20(%rsp), %rcx
movq %r15, %r8
callq 0x8c0bc
movq %r12, %rdi
movq 0x18(%rsp), %r12
leaq 0x2a97f2(%rip), %rsi    # 0x2fbc76
movl $0x87, %edx
callq 0x936f9
movq %r15, %rdi
callq 0x8da06
incq %r14
movb $0x1, %al
jmp 0x523af
pushq $-0x1
popq %r14
jmp 0x524be
testq %r15, %r15
je 0x524d3
movq (%rsp), %rdi
callq 0x8e013
cqto
idivq %r15
jmp 0x524da
xorl %r14d, %r14d
movq %rbp, %rdi
callq 0x5af87
movq %r13, %rdi
callq 0xae103
jmp 0x527cc
movq (%rbx), %rax
shlq $0x14, %rax
movq %rax, 0x8(%rsp)
movb 0x20(%rbx), %bpl
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x524fa
callq 0x89eb7
testb %al, %al
jne 0x52929
cmpq $0x0, (%rsp)
je 0x528cd
cmpq $0x0, 0x8(%rsp)
je 0x528cd
leaq 0x2a8915(%rip), %rsi    # 0x2fae2d
movq (%rsp), %rdi
callq 0x8d244
testq %rax, %rax
je 0x528fb
movq %rax, %r15
leaq 0x30(%rsp), %rsi
movl $0x2000, %edx           # imm = 0x2000
movq %rax, %rdi
callq 0x8d861
movl %eax, %ebx
testl %eax, %eax
jne 0x5255c
leaq 0x2cdafe(%rip), %rsi    # 0x32004a
movq 0x18(%rsp), %rdi
movq (%rsp), %rdx
xorl %eax, %eax
callq 0x89dbb
testl %ebx, %ebx
je 0x52586
cmpb $0x3e, 0x30(%rsp)
je 0x52586
leaq 0x2a98b7(%rip), %rsi    # 0x2fbe25
xorl %r13d, %r13d
movq 0x18(%rsp), %rdi
xorl %eax, %eax
callq 0x89dbb
pushq $-0x1
popq %r14
jmp 0x527a2
pushq $-0x1
popq %r14
testl %ebx, %ebx
je 0x5279f
movslq %ebx, %rbx
callq 0xacb84
movq %rax, %r12
movq (%rsp), %r14
movq %r14, %rdi
callq 0x8cd61
movq %r12, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0xacd9e
pushq $0x2e
popq %rsi
movq %r12, %rdi
callq 0xaced9
pushq $0x1
popq %rsi
movq %r12, %rdi
movq %rsi, 0x20(%rsp)
callq 0xace26
movq %r15, %rdi
callq 0x8d30a
movl %eax, %edi
callq 0x8cd14
movq %r12, %rdi
movq %rax, %rsi
callq 0xacbfb
movq %r12, 0x10(%rsp)
movq %r12, %rdi
callq 0xad1fa
movzbl %bpl, %edx
leaq 0x2e130a(%rip), %rsi    # 0x33390e
movq %rax, %rdi
movl %edx, 0x2c(%rsp)
movq 0x18(%rsp), %rcx
callq 0x9ba49
movq %rax, %r13
testq %rax, %rax
setne %r14b
je 0x52631
leaq 0x30(%rsp), %rsi
movq %r13, %rdi
movq %rbx, %rdx
callq 0x8d8e3
testb $0x1, %r14b
je 0x527ae
movl $0x2000, %edx           # imm = 0x2000
movq %r15, %rdi
leaq 0x30(%rsp), %rsi
callq 0x8d861
testl %eax, %eax
je 0x527a6
movq %r15, %r12
movslq %eax, %rbp
leaq (%rbx,%rbp), %r15
cmpq 0x8(%rsp), %r15
jbe 0x526a8
movq 0x8(%rsp), %rcx
subq %rbx, %rcx
movl $0x0, %edx
cmovbq %rdx, %rcx
cmpl %ecx, %eax
jle 0x5283f
movslq %ecx, %rbx
leaq (%rsp,%rbp), %rax
addq $0x30, %rax
leaq (%rsp,%rbx), %r14
addq $0x30, %r14
cmpq %rax, %r14
jae 0x526a8
cmpb $0x3e, (%r14)
je 0x526a2
incq %rbx
jmp 0x5268a
cmpq $-0x1, %rbx
jne 0x526c6
movq %r13, %rdi
leaq 0x30(%rsp), %rsi
movq %rbp, %rdx
callq 0x8d8e3
movb $0x1, %r14b
movq %r15, %rbx
movq %r12, %r15
jmp 0x52631
cmpq %rbp, %rbx
jae 0x5295a
testq %rbx, %rbx
je 0x526e4
movq %r13, %rdi
leaq 0x30(%rsp), %rsi
movq %rbx, %rdx
callq 0x8d8e3
movq %r13, %rdi
callq 0x8da06
movq 0x10(%rsp), %r13
movq %r13, %rdi
callq 0xad357
movq (%rsp), %r15
movq %r15, %rdi
callq 0x8cd61
movq %r13, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0xacd9e
movq %r13, %rdi
pushq $0x2e
popq %rsi
callq 0xaced9
movq 0x20(%rsp), %rsi
incq %rsi
movq %r13, %rdi
movq %rsi, 0x20(%rsp)
callq 0xace26
movq %r12, %r15
movq %r12, %rdi
callq 0x8d30a
movl %eax, %edi
callq 0x8cd14
movq %r13, %rdi
movq %rax, %rsi
callq 0xacbfb
movq %r13, %rdi
callq 0xad1fa
movq %rax, %rdi
leaq 0x2e11ac(%rip), %rsi    # 0x33390e
movl 0x2c(%rsp), %edx
movq 0x18(%rsp), %rcx
callq 0x9ba49
testq %rax, %rax
je 0x527ab
cmpb $0x3e, 0x30(%rsp,%rbx)
jne 0x5298b
movq %rax, %r13
subq %rbx, %rbp
movq %rax, %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq 0x8d8e3
movb $0x1, %r14b
movq %rbp, %rbx
jmp 0x52631
xorl %r13d, %r13d
xorl %edi, %edi
jmp 0x527b7
xorl %r14d, %r14d
jmp 0x527b2
xorl %r13d, %r13d
pushq $-0x1
popq %r14
movq 0x10(%rsp), %rdi
callq 0xae103
movq %r13, %rdi
callq 0x8da06
movq %r15, %rdi
callq 0x8da06
movl %r14d, %eax
addq $0x2038, %rsp           # imm = 0x2038
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x3e5780(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x292821(%rip), %rsi    # 0x2e5013
leaq 0x2a95ca(%rip), %rdx    # 0x2fbdc3
leaq 0x2a95b1(%rip), %rcx    # 0x2fbdb1
leaq 0x2a946f(%rip), %r8     # 0x2fbc76
pushq $0x70
jmp 0x528bf
movq 0x3e5753(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2927f4(%rip), %rsi    # 0x2e5013
leaq 0x2f5e2d(%rip), %rdx    # 0x348653
leaq 0x2a956f(%rip), %rcx    # 0x2fbd9c
leaq 0x2a9442(%rip), %r8     # 0x2fbc76
movl $0xfa, %r9d
jmp 0x528c1
movq 0x3e5722(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2927c3(%rip), %rsi    # 0x2e5013
leaq 0x2a961f(%rip), %rdx    # 0x2fbe76
leaq 0x2a9633(%rip), %rcx    # 0x2fbe91
leaq 0x2a9411(%rip), %r8     # 0x2fbc76
pushq $0x60
jmp 0x528bf
movq 0x3e56f8(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x292799(%rip), %rsi    # 0x2e5013
leaq 0x29293e(%rip), %rdx    # 0x2e51bf
leaq 0x2a9514(%rip), %rcx    # 0x2fbd9c
leaq 0x2a93e7(%rip), %r8     # 0x2fbc76
movl $0xf9, %r9d
jmp 0x528c1
movq 0x3e56ca(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x29276b(%rip), %rsi    # 0x2e5013
leaq 0x292910(%rip), %rdx    # 0x2e51bf
leaq 0x2a94fb(%rip), %rcx    # 0x2fbdb1
leaq 0x2a93b9(%rip), %r8     # 0x2fbc76
pushq $0x6f
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq 0x3e5694(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x292735(%rip), %rsi    # 0x2e5013
leaq 0x2a9521(%rip), %rdx    # 0x2fbe06
leaq 0x2a9509(%rip), %rcx    # 0x2fbdf5
leaq 0x2a9383(%rip), %r8     # 0x2fbc76
movl $0x9b, %r9d
jmp 0x528c1
movq 0x3e5666(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x292707(%rip), %rsi    # 0x2e5013
leaq 0x2a950c(%rip), %rdx    # 0x2fbe1f
leaq 0x2a94db(%rip), %rcx    # 0x2fbdf5
leaq 0x2a9355(%rip), %r8     # 0x2fbc76
movl $0x9f, %r9d
jmp 0x528c1
movq 0x3e5638(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2926d9(%rip), %rsi    # 0x2e5013
leaq 0x29287e(%rip), %rdx    # 0x2e51bf
leaq 0x2a94ad(%rip), %rcx    # 0x2fbdf5
leaq 0x2a9327(%rip), %r8     # 0x2fbc76
movl $0x9a, %r9d
jmp 0x528c1
movq 0x3e5607(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2926a8(%rip), %rsi    # 0x2e5013
leaq 0x2a94cf(%rip), %rdx    # 0x2fbe41
leaq 0x2a947c(%rip), %rcx    # 0x2fbdf5
leaq 0x2a92f6(%rip), %r8     # 0x2fbc76
movl $0xc5, %r9d
jmp 0x528c1
movq 0x3e55d6(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x292677(%rip), %rsi    # 0x2e5013
leaq 0x2a94b9(%rip), %rdx    # 0x2fbe5c
leaq 0x2a944b(%rip), %rcx    # 0x2fbdf5
leaq 0x2a92c5(%rip), %r8     # 0x2fbc76
movl $0xd9, %r9d
jmp 0x528c1