// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x48, %rsp
movl %edi, 0x44(%rsp)
movq %rsi, 0x38(%rsp)
movl %edx, 0x34(%rsp)
movq %rcx, 0x28(%rsp)
movq %r8, 0x20(%rsp)
movb $0x0, 0x1f(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x10(%rsp)
movq $0x0, 0x8(%rsp)
cmpq $0x0, 0x20(%rsp)
je 0x6ec03
movq 0x20(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x6ebcb
jmp 0x6ec03
movq 0x5cd3ce(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4a7437(%rip), %rsi    # 0x516013
leaq 0x4a75dc(%rip), %rdx    # 0x5161bf
leaq 0x4bcef2(%rip), %rcx    # 0x52badc
leaq 0x4bce64(%rip), %r8     # 0x52ba55
movl $0xbc, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x6ec05
movq 0x10(%rsp), %rax
movb 0x1(%rax), %al
movq 0x5cd324(%rip), %rcx    # 0x63bf38
movq (%rcx), %rdx
leaq 0x4a8cce(%rip), %rsi    # 0x5178ec
andb $0x1, %al
movzbl %al, %edi
callq 0xe7870
movq %rax, 0x8(%rsp)
movl 0x34(%rsp), %eax
cmpl 0x44(%rsp), %eax
jge 0x6ec62
movq 0x20(%rsp), %rdi
movq 0x38(%rsp), %rax
movl 0x44(%rsp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdx
leaq 0x4b7aee(%rip), %rsi    # 0x526744
movb $0x0, %al
callq 0xd88c0
movb $0x1, 0x1f(%rsp)
testb $0x1, 0x1f(%rsp)
jne 0x6ecf0
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x11fcc0
cmpq $0x0, %rax
jne 0x6ecb9
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
movq 0x10(%rsp), %rax
movb (%rax), %al
movq 0x8(%rsp), %rdx
movq 0x20(%rsp), %rcx
andb $0x1, %al
movzbl %al, %esi
callq 0x6ed10
cmpl $0x0, %eax
je 0x6ecb7
movb $0x1, 0x1f(%rsp)
jmp 0x6ecee
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rsi
movq 0x8(%rsp), %rdx
movq 0x20(%rsp), %rcx
callq 0x6ee20
cmpl $0x0, %eax
je 0x6ecec
movb $0x1, 0x1f(%rsp)
jmp 0x6ecee
jmp 0x6ecf0
movq 0x8(%rsp), %rdi
callq 0xe7ed0
movb 0x1f(%rsp), %dl
xorl %eax, %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
testb $0x1, %dl
cmovnel %ecx, %eax
addq $0x48, %rsp
retq