// File: /workspace/github_c_makefile_star2_O3/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 0xcd083
movq %r12, %rdi
callq 0xfcc32
testb %al, %al
jne 0xcd5b0
testq %rbx, %rbx
je 0xcd5a6
movl 0x10(%rbx), %r15d
movslq %ebp, %rax
movq (%r14,%rax,8), %rax
movq %rax, 0x10(%rsp)
movq 0x18(%rbx), %rdi
callq 0x11b0ca
testq %rax, %rax
movq %r12, 0x20(%rsp)
je 0xcd23b
movq 0x8(%rbx), %rax
movq %rax, 0x28(%rsp)
movq 0x18(%rbx), %rax
movq %rax, 0x8(%rsp)
movb 0x20(%rbx), %bl
testq %r12, %r12
je 0xcd0dd
movq %r12, %rdi
callq 0xfcc32
testb %al, %al
jne 0xcd5b5
cmpq $0x0, 0x10(%rsp)
je 0xcd5a1
cmpq $0x0, 0x8(%rsp)
je 0xcd5a1
movq 0x8(%rsp), %rdi
callq 0x11b0ca
testq %rax, %rax
je 0xcd5a1
callq 0x11ac6c
movq %rax, %r13
movq 0x10(%rsp), %rdi
movq %r12, %rsi
callq 0xd4388
movq %rax, %rbp
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
testq %rax, %rax
je 0xcd52d
movq %rbp, %rdi
callq 0xd4fc8
testq %rax, %rax
je 0xcd233
xorl %r14d, %r14d
movzbl %bl, %eax
movl %eax, 0x1c(%rsp)
movq %r13, %rdi
callq 0x11b132
movq %r13, %rdi
movq 0x8(%rsp), %rsi
callq 0x11adc1
movq %r13, %rdi
movl $0x2f, %esi
callq 0x11af23
movq %rbp, %rdi
movq %r14, %rsi
callq 0xd4bb7
movq %r13, %rdi
movq %rax, %rsi
callq 0x11acf3
movq 0x10(%rsp), %rdi
callq 0xff3dc
movq %r13, %rdi
movq %rax, %rsi
callq 0x11acf3
movq %r13, %rdi
callq 0x11b0a1
movq %rax, %rdi
leaq 0x2c640c(%rip), %rsi    # 0x3935b5
movl 0x1c(%rsp), %edx
movq %r12, %rcx
callq 0x10b033
testq %rax, %rax
je 0xcd527
movq %rax, %r15
movq %rbp, %rdi
movq %r14, %rsi
callq 0xd4b0d
movq %rax, %r12
movq %rbp, %rdi
movq %r14, %rsi
callq 0xd4bb7
movq %rax, %rbx
movq %rbp, %rdi
movq %r14, %rsi
callq 0xd4ba3
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
movq 0x28(%rsp), %rcx
movq %r15, %r8
callq 0xfe000
movq %r12, %rdi
movq 0x20(%rsp), %r12
leaq 0x28eb13(%rip), %rsi    # 0x35bd20
movl $0x87, %edx
callq 0x1045eb
movq %r15, %rdi
callq 0xff22c
incq %r14
movq %rbp, %rdi
callq 0xd4fc8
cmpq %rax, %r14
jb 0xcd14a
xorl %r14d, %r14d
jmp 0xcd52d
testq %r15, %r15
je 0xcd254
movq 0x10(%rsp), %rdi
callq 0xff6cf
cqto
idivq %r15
movq %rax, %r12
jmp 0xcd25b
movq (%rbx), %r12
shlq $0x14, %r12
movb 0x20(%rbx), %bpl
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0xcd276
callq 0xfcc32
testb %al, %al
jne 0xcd5c4
cmpq $0x0, 0x10(%rsp)
je 0xcd5ba
testq %r12, %r12
je 0xcd5ba
leaq 0x28dbc3(%rip), %rsi    # 0x35ae55
movq 0x10(%rsp), %rdi
callq 0xfed58
testq %rax, %rax
je 0xcd5bf
movq %rax, %r15
leaq 0x30(%rsp), %rsi
movl $0x2000, %edx           # imm = 0x2000
movq %rax, %rdi
callq 0xff139
testl %eax, %eax
je 0xcd50a
cmpb $0x3e, 0x30(%rsp)
jne 0xcd53f
movl %eax, %ebx
callq 0x11ac6c
movq %rax, %r13
movq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0xfea15
movq %r13, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x11ae1b
movq %r13, %rdi
movl $0x2e, %esi
callq 0x11af23
movl $0x1, %esi
movq %r13, %rdi
callq 0x11ae72
movq %r15, %rdi
callq 0xfedc2
movl %eax, %edi
callq 0xfe9f9
movq %r13, %rdi
movq %rax, %rsi
callq 0x11acf3
movq %r13, 0x8(%rsp)
movq %r13, %rdi
callq 0x11b0a1
movzbl %bpl, %ebp
leaq 0x2c6277(%rip), %rsi    # 0x3935b5
movq %rax, %rdi
movl %ebp, %edx
movq 0x20(%rsp), %rcx
callq 0x10b033
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
testq %rax, %rax
je 0xcd564
movq %rax, %r13
movslq %ebx, %r14
leaq 0x30(%rsp), %rbx
movq %rax, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0xff190
movl $0x2000, %edx           # imm = 0x2000
movq %r15, %rdi
movq %rbx, %rsi
callq 0xff139
testl %eax, %eax
je 0xcd55f
movl %ebp, 0x1c(%rsp)
movl $0x1, %ecx
movq %rcx, 0x28(%rsp)
movq %r14, %rdx
movslq %eax, %rbp
addq %rbp, %r14
cmpq %r12, %r14
jbe 0xcd3ea
movq %r12, %rcx
subq %rdx, %rcx
movl $0x0, %edx
cmovbq %rdx, %rcx
cmpl %ecx, %eax
jle 0xcd5ab
leaq (%rsp,%rbp), %rax
addq $0x30, %rax
movslq %ecx, %rbx
cmpb $0x3e, 0x30(%rsp,%rbx)
je 0xcd3e4
leaq (%rsp,%rbx), %rcx
addq $0x31, %rcx
incq %rbx
cmpq %rax, %rcx
jb 0xcd3cb
jmp 0xcd3ea
cmpq $-0x1, %rbx
jne 0xcd416
movq %r13, %rdi
leaq 0x30(%rsp), %rbx
movq %rbx, %rsi
movq %rbp, %rdx
callq 0xff190
movl $0x2000, %edx           # imm = 0x2000
movq %r15, %rdi
movq %rbx, %rsi
callq 0xff139
testl %eax, %eax
jne 0xcd39b
jmp 0xcd55f
cmpq %rbp, %rbx
jae 0xcd5c9
testq %rbx, %rbx
je 0xcd434
movq %r13, %rdi
leaq 0x30(%rsp), %rsi
movq %rbx, %rdx
callq 0xff190
movq %r13, %rdi
callq 0xff22c
movq 0x8(%rsp), %r13
movq %r13, %rdi
callq 0x11b132
movq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0xfea15
movq %r13, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x11ae1b
movq %r13, %rdi
movl $0x2e, %esi
callq 0x11af23
movq 0x28(%rsp), %r14
incq %r14
movq %r13, %rdi
movq %r14, %rsi
callq 0x11ae72
movq %r15, %rdi
callq 0xfedc2
movl %eax, %edi
callq 0xfe9f9
movq %r13, %rdi
movq %rax, %rsi
callq 0x11acf3
movq %r13, %rdi
callq 0x11b0a1
movq %rax, %rdi
leaq 0x2c6105(%rip), %rsi    # 0x3935b5
movl 0x1c(%rsp), %edx
movq 0x20(%rsp), %rcx
callq 0x10b033
testq %rax, %rax
je 0xcd596
movq %r14, 0x28(%rsp)
cmpb $0x3e, 0x30(%rsp,%rbx)
jne 0xcd5ce
movq %rax, %r13
leaq (%rsp,%rbx), %rsi
addq $0x30, %rsi
subq %rbx, %rbp
movq %rax, %rdi
movq %rbp, %rdx
callq 0xff190
movl $0x2000, %edx           # imm = 0x2000
movq %r15, %rdi
leaq 0x30(%rsp), %rsi
callq 0xff139
movq %rbp, %r14
jmp 0xcd40d
leaq 0x2b2729(%rip), %rsi    # 0x37fc3a
xorl %r13d, %r13d
movq 0x20(%rsp), %rdi
movq 0x10(%rsp), %rdx
xorl %eax, %eax
callq 0xfcb67
jmp 0xcd555
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movq %rbp, %rdi
callq 0xd491d
movq %r13, %rdi
callq 0x11bdbf
jmp 0xcd581
leaq 0x28e989(%rip), %rsi    # 0x35becf
xorl %r13d, %r13d
movq 0x20(%rsp), %rdi
xorl %eax, %eax
callq 0xfcb67
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
xorl %edi, %edi
jmp 0xcd56c
xorl %r14d, %r14d
jmp 0xcd567
xorl %r13d, %r13d
movq 0x8(%rsp), %rdi
callq 0x11bdbf
movq %r13, %rdi
callq 0xff22c
movq %r15, %rdi
callq 0xff22c
movl %r14d, %eax
addq $0x2038, %rsp           # imm = 0x2038
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r13d, %r13d
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
jmp 0xcd567
callq 0x211eb
callq 0x21376
callq 0x21294
callq 0x2117b
callq 0x211b4
callq 0x2125b
callq 0x2133d
callq 0x21222
callq 0x212cb
callq 0x21304
nop