// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/esa-scanprj.c
// Function: gt_scannedprjkey_scanline
static int gt_scannedprjkey_scanline(uint32_t *lengthofkey,
                                     GtScannedprjvalue *scannedprjvalue,
                                     const char *linebuffer,
                                     GtUword linelength,
                                     GtError *err)
{
  GtUword idx;
  bool haserr = false, found = false;
  int retval = 0;

  gt_error_check(err);
  for (idx=0; idx<linelength; idx++)
  {
    if (linebuffer[idx] == '=')
    {
      *lengthofkey = (uint32_t) idx;
      found = true;
      if (strchr(linebuffer + idx + 1,'.') != NULL)
      {
        double readdouble;

        if (sscanf((const char *) (linebuffer + idx + 1),"%lf",
                   &readdouble) != 1)
        {
          gt_error_set(err,"cannot find floating point number in \"%*.*s\"",
                             (int) (linelength - (idx+1)),
                             (int) (linelength - (idx+1)),
                             linebuffer + idx + 1);
          return -1;
        }
        scannedprjvalue->doublevalue = readdouble;
        retval = 2;
      } else
      {
        int64_t readint;

        if (sscanf((const char *) (linebuffer + idx + 1),
                   FormatScanint64_t,
                   SCANint64_tcast(&readint)) != 1 || readint < (int64_t) 0)
        {
          gt_error_set(err,"cannot find non-negative integer in \"%*.*s\"",
                             (int) (linelength - (idx+1)),
                             (int) (linelength - (idx+1)),
                             linebuffer + idx + 1);
          return -1;
        }
        if (readint <= (int64_t) UINT32_MAX)
        {
          scannedprjvalue->uint32value = (uint32_t) readint;
          retval = 0;
        } else
        {
          scannedprjvalue->uint64value = (uint64_t) readint;
          retval = 1;
        }
      }
      break;
    }
  }
  if (!found)
  {
    gt_error_set(err,"missing equality symbol in \"%*.*s\"",
                       (int) linelength,
                       (int) linelength,
                       linebuffer);
    haserr = true;
  }
  return haserr ? -1 : retval;
}

// Assembly:
subq $0x58, %rsp
movq %rdi, 0x48(%rsp)
movq %rsi, 0x40(%rsp)
movq %rdx, 0x38(%rsp)
movq %rcx, 0x30(%rsp)
movq %r8, 0x28(%rsp)
movb $0x0, 0x1f(%rsp)
movb $0x0, 0x1e(%rsp)
movl $0x0, 0x18(%rsp)
cmpq $0x0, 0x28(%rsp)
je 0x23b1af
movq 0x28(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x23b177
jmp 0x23b1af
movq 0x400e22(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2dae8b(%rip), %rsi    # 0x516013
leaq 0x2db030(%rip), %rdx    # 0x5161bf
leaq 0x33c41e(%rip), %rcx    # 0x5775b4
leaq 0x33c287(%rip), %r8     # 0x577424
movl $0x7c, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x23b1b1
movq $0x0, 0x20(%rsp)
movq 0x20(%rsp), %rax
cmpq 0x30(%rsp), %rax
jae 0x23b380
movq 0x38(%rsp), %rax
movq 0x20(%rsp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x3d, %eax
jne 0x23b36b
movq 0x20(%rsp), %rax
movl %eax, %ecx
movq 0x48(%rsp), %rax
movl %ecx, (%rax)
movb $0x1, 0x1e(%rsp)
movq 0x38(%rsp), %rdi
addq 0x20(%rsp), %rdi
addq $0x1, %rdi
movl $0x2e, %esi
callq 0x19240
cmpq $0x0, %rax
je 0x23b2ac
movq 0x38(%rsp), %rdi
addq 0x20(%rsp), %rdi
addq $0x1, %rdi
leaq 0x2e3336(%rip), %rsi    # 0x51e561
leaq 0x10(%rsp), %rdx
movb $0x0, %al
callq 0x19770
cmpl $0x1, %eax
je 0x23b290
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rax
movq 0x20(%rsp), %rcx
addq $0x1, %rcx
subq %rcx, %rax
movl %eax, %edx
movq 0x30(%rsp), %rax
movq 0x20(%rsp), %rcx
addq $0x1, %rcx
subq %rcx, %rax
movl %eax, %ecx
movq 0x38(%rsp), %r8
addq 0x20(%rsp), %r8
addq $0x1, %r8
leaq 0x33c352(%rip), %rsi    # 0x5775ce
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
jmp 0x23b3d4
movsd 0x10(%rsp), %xmm0
movq 0x40(%rsp), %rax
movsd %xmm0, (%rax)
movl $0x2, 0x18(%rsp)
jmp 0x23b369
movq 0x38(%rsp), %rdi
addq 0x20(%rsp), %rdi
addq $0x1, %rdi
leaq 0x3135ae(%rip), %rsi    # 0x54e86f
leaq 0x8(%rsp), %rdx
movb $0x0, %al
callq 0x19770
cmpl $0x1, %eax
jne 0x23b2da
cmpq $0x0, 0x8(%rsp)
jge 0x23b32e
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rax
movq 0x20(%rsp), %rcx
addq $0x1, %rcx
subq %rcx, %rax
movl %eax, %edx
movq 0x30(%rsp), %rax
movq 0x20(%rsp), %rcx
addq $0x1, %rcx
subq %rcx, %rax
movl %eax, %ecx
movq 0x38(%rsp), %r8
addq 0x20(%rsp), %r8
addq $0x1, %r8
leaq 0x33c2e1(%rip), %rsi    # 0x5775fb
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
jmp 0x23b3d4
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, 0x8(%rsp)
jg 0x23b352
movq 0x8(%rsp), %rax
movl %eax, %ecx
movq 0x40(%rsp), %rax
movl %ecx, (%rax)
movl $0x0, 0x18(%rsp)
jmp 0x23b367
movq 0x8(%rsp), %rcx
movq 0x40(%rsp), %rax
movq %rcx, (%rax)
movl $0x1, 0x18(%rsp)
jmp 0x23b369
jmp 0x23b380
jmp 0x23b36d
movq 0x20(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x20(%rsp)
jmp 0x23b1ba
testb $0x1, 0x1e(%rsp)
jne 0x23b3b2
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rax
movl %eax, %edx
movq 0x30(%rsp), %rax
movl %eax, %ecx
movq 0x38(%rsp), %r8
leaq 0x33c281(%rip), %rsi    # 0x577627
movb $0x0, %al
callq 0xd88c0
movb $0x1, 0x1f(%rsp)
testb $0x1, 0x1f(%rsp)
je 0x23b3c4
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, 0x4(%rsp)
jmp 0x23b3cc
movl 0x18(%rsp), %eax
movl %eax, 0x4(%rsp)
movl 0x4(%rsp), %eax
movl %eax, 0x54(%rsp)
movl 0x54(%rsp), %eax
addq $0x58, %rsp
retq
nopl (%rax)