// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/tools/gt_condenseq_blast.c
// Function: gt_condenseq_blast_parse_coarse_hits
static inline int
gt_condenseq_blast_parse_coarse_hits(const GtMatch *match,
                                     GtCesBlastInfo *info,
                                     const GtCondenseqBlastQInfo qinfo)
{
  int had_err = 0;
  GtUword hit_seq_id;
  GtRange query;
  const char *dbseqid = gt_match_get_seqid2(match),
        *skip;
  /* seqids printed with -debug will contain 'unique' in front of the actual id
     as a number */
  if ((skip = strchr(dbseqid, 'e')) != NULL) {
    dbseqid=++skip;
  }
  if (gt_parse_uword(&hit_seq_id, dbseqid) != 0) {
    /* old files had a ',' at the end of 'unique000', this leads to an error
       with gt_parse_uword() */
    if (sscanf(dbseqid, GT_WU ",", &hit_seq_id) != 1) {
      gt_error_set(info->err, "couldn't parse target number: %s", dbseqid);
      had_err = -1;
    }
  }
  if (!had_err) {
    GtCondenseqBlastHitPos *hit;
    if (info->curr_hits == info->hits_size) {
      info->hits_size *= 1.2;
      info->hits_size += 10;
      info->hits = gt_realloc(info->hits,
                              sizeof (*info->hits) * info->hits_size);
    }
    hit = &info->hits[info->curr_hits];
    gt_match_get_range_seq2(match, &hit->range);
    gt_match_get_range_seq1(match, &query);
    hit->left_ex = query.start + GT_DIV2(qinfo.avg);
    hit->right_ex = qinfo.max - query.end + GT_DIV2(qinfo.avg);
    hit->uid = hit_seq_id;
    /* Blast Hits are 1 based. transform to zerobased */
    gt_assert(hit->range.start != 0);
    gt_assert(hit->range.end != 0);
    hit->range.start--;
    hit->range.end--;
    info->curr_hits++;
  }
  return had_err;
}

// Assembly:
subq $0x58, %rsp
leaq 0x60(%rsp), %rax
movq %rax, 0x8(%rsp)
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movl $0x0, 0x44(%rsp)
movq 0x50(%rsp), %rdi
callq 0x1a6c80
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rdi
movl $0x65, %esi
callq 0x19240
movq %rax, 0x18(%rsp)
cmpq $0x0, %rax
je 0x2596c
movq 0x18(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x18(%rsp)
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rsi
leaq 0x38(%rsp), %rdi
callq 0xf86d0
cmpl $0x0, %eax
je 0x259c3
movq 0x20(%rsp), %rdi
leaq 0x5539bc(%rip), %rsi    # 0x579348
leaq 0x38(%rsp), %rdx
movb $0x0, %al
callq 0x19770
cmpl $0x1, %eax
je 0x259c1
movq 0x48(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x20(%rsp), %rdx
leaq 0x4f3b50(%rip), %rsi    # 0x519502
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x44(%rsp) # imm = 0xFFFFFFFF
jmp 0x259c3
cmpl $0x0, 0x44(%rsp)
jne 0x25bc5
movq 0x48(%rsp), %rax
movq 0x60(%rax), %rax
movq 0x48(%rsp), %rcx
cmpq 0x58(%rcx), %rax
jne 0x25a89
movq 0x48(%rsp), %rax
movq 0x58(%rax), %xmm0
movaps 0x4f2f39(%rip), %xmm1   # 0x518930
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x4f2f3d(%rip), %xmm1   # 0x518940
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movsd 0x4f334e(%rip), %xmm1   # 0x518d68
mulsd %xmm1, %xmm0
movaps %xmm0, %xmm1
cvttsd2si %xmm1, %rcx
movq %rcx, %rsi
sarq $0x3f, %rsi
movsd 0x4f333b(%rip), %xmm1   # 0x518d70
subsd %xmm1, %xmm0
cvttsd2si %xmm0, %rdx
andq %rsi, %rdx
orq %rdx, %rcx
movq %rcx, 0x58(%rax)
movq 0x48(%rsp), %rax
movq 0x58(%rax), %rcx
addq $0xa, %rcx
movq %rcx, 0x58(%rax)
movq 0x48(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x48(%rsp), %rax
imulq $0x28, 0x58(%rax), %rsi
leaq 0x4f3305(%rip), %rdx    # 0x518d78
movl $0x1ad, %ecx            # imm = 0x1AD
callq 0xe8540
movq %rax, %rcx
movq 0x48(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x48(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x48(%rsp), %rcx
imulq $0x28, 0x60(%rcx), %rcx
addq %rcx, %rax
movq %rax, 0x10(%rsp)
movq 0x50(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x1a6d60
movq 0x50(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x1a6ce0
movq 0x8(%rsp), %rax
movq 0x28(%rsp), %rdx
movq (%rax), %rcx
shrq %rcx
addq %rcx, %rdx
movq 0x10(%rsp), %rcx
movq %rdx, 0x18(%rcx)
movq 0x8(%rax), %rcx
subq 0x30(%rsp), %rcx
movq (%rax), %rax
shrq %rax
addq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x38(%rsp), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x10(%rsp), %rax
cmpq $0x0, (%rax)
jne 0x25b4a
movq 0x616487(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4f04f0(%rip), %rsi    # 0x516013
leaq 0x4f39f9(%rip), %rdx    # 0x519523
leaq 0x4f3a08(%rip), %rcx    # 0x519539
leaq 0x4f3240(%rip), %r8     # 0x518d78
movl $0x1b6, %r9d            # imm = 0x1B6
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x25b4c
jmp 0x25b4e
movq 0x10(%rsp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x25b92
movq 0x61643f(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4f04a8(%rip), %rsi    # 0x516013
leaq 0x4f39ec(%rip), %rdx    # 0x51955e
leaq 0x4f39c0(%rip), %rcx    # 0x519539
leaq 0x4f31f8(%rip), %r8     # 0x518d78
movl $0x1b7, %r9d            # imm = 0x1B7
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x25b94
movq 0x10(%rsp), %rax
movq (%rax), %rcx
addq $-0x1, %rcx
movq %rcx, (%rax)
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x8(%rax)
movq 0x48(%rsp), %rax
movq 0x60(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x60(%rax)
movl 0x44(%rsp), %eax
addq $0x58, %rsp
retq
nop