// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/tools/gt_shulen.c
// Function: gt_shulengthdist_runner
static int gt_shulengthdist_runner(GT_UNUSED int argc,
                                   GT_UNUSED const char **argv,
                                   GT_UNUSED int parsed_args,
                                   void *tool_arguments, GtError *err)
{
  bool haserr = false;
  Shulengthoptions *arguments = tool_arguments;
  GtLogger *logger = NULL;

  gt_error_check(err);
  logger = gt_logger_new(arguments->beverbose, GT_LOGGER_DEFLT_PREFIX, stdout);
  if (parsed_args < argc)
  {
    gt_error_set(err,"superfluous arguments: \"%s\"",argv[argc-1]);
    haserr = true;
  }
  if (!haserr)
  {
    if (gt_str_array_size(arguments->queryfilenames) == 0)
    {
      if (callmultishulengthdist(gt_str_get(arguments->indexname),
                                 arguments->scanfile,
                                 logger,
                                 err) != 0)
      {
        haserr = true;
      }
    } else
    {
      if (callpairswisesshulendistdist(gt_str_get(arguments->indexname),
                                       arguments->queryfilenames,
                                       logger,
                                       err) != 0)
      {
        haserr = true;
      }
    }
  }
  gt_logger_delete(logger);
  return haserr ? -1 : 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %r8, %r14
movq %rcx, %r15
movl %edx, %r13d
movq %rsi, %r12
movl %edi, %ebp
testq %r8, %r8
je 0xcb0f3
movq %r14, %rdi
callq 0x101a9a
testb %al, %al
jne 0xcb270
movzbl 0x1(%r15), %edi
movq 0x3f8de9(%rip), %rax    # 0x4c3ee8
movq (%rax), %rdx
leaq 0x2847cb(%rip), %rsi    # 0x34f8d4
callq 0x108ed0
movq %rax, %rbx
cmpl %ebp, %r13d
jge 0xcb134
movslq %ebp, %rax
movq -0x8(%r12,%rax,8), %rdx
leaq 0x29358f(%rip), %rsi    # 0x35e6b4
movq %r14, %rdi
xorl %eax, %eax
callq 0x1019cf
movb $0x1, %bpl
jmp 0xcb136
xorl %ebp, %ebp
testb %bpl, %bpl
jne 0xcb250
movq 0x10(%r15), %rdi
callq 0x121e78
movq %rax, %r13
movq 0x8(%r15), %rdi
callq 0x120d23
movq %rax, %r12
testq %r13, %r13
je 0xcb1c7
movq 0x10(%r15), %r15
leaq 0x8(%rsp), %rdi
movl $0x3, %esi
movq %r12, %rdx
movq %rbx, %rcx
movq %r14, %r8
callq 0x1aab20
testl %eax, %eax
setne %r12b
jne 0xcb1b8
movq %rsp, %rdi
movq $0x0, (%rdi)
leaq 0x8(%rsp), %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x1af227
movb $0x1, %cl
testl %eax, %eax
jne 0xcb1b5
movq (%rsp), %rsi
leaq 0x28e8b8(%rip), %rdi    # 0x359a63
xorl %eax, %eax
callq 0x17070
movl %r12d, %ecx
movl %ecx, %r12d
leaq 0x8(%rsp), %rdi
callq 0x1a9e1c
testb %r12b, %r12b
jmp 0xcb244
movb (%r15), %r15b
testq %r14, %r14
je 0xcb1df
movq %r14, %rdi
callq 0x101a9a
testb %al, %al
jne 0xcb275
movzbl %r15b, %edx
movq %r12, %rdi
movl $0x7, %esi
movq %rbx, %rcx
movq %r14, %r8
callq 0x1ae094
movq %rax, 0x8(%rsp)
xorl %r13d, %r13d
testq %rax, %rax
sete %r12b
je 0xcb22f
movq %rax, %r15
movq %rax, %rdi
callq 0x1ae549
movq %r15, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x1ae694
testl %eax, %eax
movb %r12b, %r13b
movl $0x1, %r12d
cmovel %r13d, %r12d
cmpq $0x0, 0x8(%rsp)
je 0xcb241
leaq 0x8(%rsp), %rdi
callq 0x1ae1ac
testb %r12b, %r12b
movzbl %bpl, %eax
movl $0x1, %ebp
cmovel %eax, %ebp
movq %rbx, %rdi
callq 0x10916a
movzbl %bpl, %eax
negl %eax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x205b7
callq 0x205f0
nop