// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/esa-scanprj.c
// Function: gt_scannedprjkey_analyze
int gt_scannedprjkey_analyze(const char *indexname,
                             const char *suffix,
                             unsigned int linenum,
                             const char *linebuffer,
                             GtUword linelength,
                             GtScannedprjkeytable *scannedprjkeytable,
                             GtError *err)
{
  GtScannedprjkey *rikptr;
  bool found = false, haserr = false;
  GtUword i;
  int retval;
  GtScannedprjvalue scannedprjvalue;
  uint32_t lengthofkey;

  gt_error_check(err);
  retval = gt_scannedprjkey_scanline(&lengthofkey,
                                     &scannedprjvalue,
                                     linebuffer,
                                     linelength,
                                     err);
  if (retval < 0)
  {
    haserr = true;
  } else
  {
    for (i=0; i<gt_array_size(scannedprjkeytable->arr); i++)
    {
      rikptr = gt_array_get(scannedprjkeytable->arr,i);
      if (memcmp(linebuffer, rikptr->keystring,(size_t) lengthofkey) == 0)
      {
        rikptr->found = true;
        if (rikptr->ptrdefined)
        {
          if (rikptr->uint32valueptr == NULL)
          {
            if (retval == 1)
            {
              *(rikptr->uint64valueptr) = scannedprjvalue.uint64value;
            } else
            {
              if (retval == 2)
              {
                gt_assert(rikptr->readdouble);
                *(rikptr->doublevalueptr) = scannedprjvalue.doublevalue;
              } else
              {
                gt_assert(retval == 0);
                *(rikptr->uint64valueptr)
                  = (uint64_t) scannedprjvalue.uint32value;
              }
            }
          } else
          {
            if (retval == 1)
            {
              gt_error_set(err,"uint64value " Formatuint64_t
                           " does not fit into %s",
                           PRINTuint64_tcast(scannedprjvalue.uint64value),
                           rikptr->keystring);
              haserr = true;
              break;
            }
            if (retval == 2)
            {
              gt_error_set(err,"double %.2f does not fit into %s",
                           scannedprjvalue.doublevalue,
                           rikptr->keystring);
              haserr = true;
              break;
            }
            *(rikptr->uint32valueptr) = scannedprjvalue.uint32value;
          }
        }
        found = true;
        break;
      }
    }
    if (!found)
    {
      gt_error_set(err,"file %s%s, line %u: cannot find key for \"%*.*s\"",
                    indexname,
                    suffix,
                    linenum,
                    (int) lengthofkey,
                    (int) lengthofkey,
                    linebuffer);
      haserr = true;
    }
  }
  return haserr ? -1 : 0;
}

// Assembly:
subq $0x78, %rsp
movq 0x80(%rsp), %rax
movq %rdi, 0x70(%rsp)
movq %rsi, 0x68(%rsp)
movl %edx, 0x64(%rsp)
movq %rcx, 0x58(%rsp)
movq %r8, 0x50(%rsp)
movq %r9, 0x48(%rsp)
movb $0x0, 0x3f(%rsp)
movb $0x0, 0x3e(%rsp)
cmpq $0x0, 0x80(%rsp)
je 0x23ae99
movq 0x80(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x23ae61
jmp 0x23ae99
movq 0x401138(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2db1a1(%rip), %rsi    # 0x516013
leaq 0x2db346(%rip), %rdx    # 0x5161bf
leaq 0x33c692(%rip), %rcx    # 0x577512
leaq 0x33c59d(%rip), %r8     # 0x577424
movl $0x107, %r9d            # imm = 0x107
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x23ae9b
movq 0x58(%rsp), %rdx
movq 0x50(%rsp), %rcx
movq 0x80(%rsp), %r8
leaq 0x1c(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x23b130
movl %eax, 0x2c(%rsp)
cmpl $0x0, 0x2c(%rsp)
jge 0x23aed1
movb $0x1, 0x3e(%rsp)
jmp 0x23b116
movq $0x0, 0x30(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x48(%rsp), %rax
movq (%rax), %rdi
callq 0x81370
movq %rax, %rcx
movq 0x10(%rsp), %rax
cmpq %rcx, %rax
jae 0x23b0cb
movq 0x48(%rsp), %rax
movq (%rax), %rdi
movq 0x30(%rsp), %rsi
callq 0x80b60
movq %rax, 0x40(%rsp)
movq 0x58(%rsp), %rdi
movq 0x40(%rsp), %rax
movq (%rax), %rsi
movl 0x1c(%rsp), %eax
movl %eax, %edx
callq 0x192c0
cmpl $0x0, %eax
jne 0x23b0b6
movq 0x40(%rsp), %rax
movb $0x1, 0x22(%rax)
movq 0x40(%rsp), %rax
testb $0x1, 0x21(%rax)
je 0x23b0af
movq 0x40(%rsp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x23b03b
cmpl $0x1, 0x2c(%rsp)
jne 0x23af7f
movq 0x20(%rsp), %rcx
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rax
movq %rcx, (%rax)
jmp 0x23b039
cmpl $0x2, 0x2c(%rsp)
jne 0x23afe2
jmp 0x23af88
movq 0x40(%rsp), %rax
testb $0x1, 0x20(%rax)
jne 0x23afcb
movq 0x401006(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2db06f(%rip), %rsi    # 0x516013
leaq 0x33c580(%rip), %rdx    # 0x57752b
leaq 0x33c560(%rip), %rcx    # 0x577512
leaq 0x33c46b(%rip), %r8     # 0x577424
movl $0x123, %r9d            # imm = 0x123
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x23afcd
movsd 0x20(%rsp), %xmm0
movq 0x40(%rsp), %rax
movq 0x18(%rax), %rax
movsd %xmm0, (%rax)
jmp 0x23b037
jmp 0x23afe4
cmpl $0x0, 0x2c(%rsp)
je 0x23b023
movq 0x400fae(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2db017(%rip), %rsi    # 0x516013
leaq 0x2fed22(%rip), %rdx    # 0x539d25
leaq 0x33c508(%rip), %rcx    # 0x577512
leaq 0x33c413(%rip), %r8     # 0x577424
movl $0x127, %r9d            # imm = 0x127
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x23b025
movl 0x20(%rsp), %eax
movl %eax, %ecx
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rax
movq %rcx, (%rax)
jmp 0x23b039
jmp 0x23b0ad
cmpl $0x1, 0x2c(%rsp)
jne 0x23b06c
movq 0x80(%rsp), %rdi
movq 0x20(%rsp), %rdx
movq 0x40(%rsp), %rax
movq (%rax), %rcx
leaq 0x33c4e0(%rip), %rsi    # 0x57753e
movb $0x0, %al
callq 0xd88c0
movb $0x1, 0x3e(%rsp)
jmp 0x23b0cb
cmpl $0x2, 0x2c(%rsp)
jne 0x23b09e
movq 0x80(%rsp), %rdi
movsd 0x20(%rsp), %xmm0
movq 0x40(%rsp), %rax
movq (%rax), %rdx
leaq 0x33c4d3(%rip), %rsi    # 0x577563
movb $0x1, %al
callq 0xd88c0
movb $0x1, 0x3e(%rsp)
jmp 0x23b0cb
movl 0x20(%rsp), %ecx
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rax
movl %ecx, (%rax)
jmp 0x23b0af
movb $0x1, 0x3f(%rsp)
jmp 0x23b0cb
jmp 0x23b0b8
movq 0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x30(%rsp)
jmp 0x23aeda
testb $0x1, 0x3f(%rsp)
jne 0x23b114
movq 0x80(%rsp), %rdi
movq 0x70(%rsp), %rdx
movq 0x68(%rsp), %rcx
movl 0x64(%rsp), %r8d
movl 0x1c(%rsp), %r9d
movl 0x1c(%rsp), %r10d
movq 0x58(%rsp), %rax
leaq 0x33c485(%rip), %rsi    # 0x577584
movl %r10d, (%rsp)
movq %rax, 0x8(%rsp)
movb $0x0, %al
callq 0xd88c0
movb $0x1, 0x3e(%rsp)
jmp 0x23b116
movb 0x3e(%rsp), %dl
xorl %eax, %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
testb $0x1, %dl
cmovnel %ecx, %eax
addq $0x78, %rsp
retq
nopl (%rax)