// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/giextract.c
// Function: desc2key
static const char *desc2key(GtUword *keylen,const char *desc,
                            GtError *err)
{
  GtUword i, firstpipe = 0, secondpipe = 0;

  gt_error_check(err);
  for (i=0; desc[i] != '\0'; i++)
  {
    if (desc[i] == '|')
    {
      if (firstpipe > 0)
      {
        gt_assert(i>0);
        secondpipe = i;
        break;
      }
      gt_assert(i>0);
      firstpipe = i;
    }
  }
  if (firstpipe == 0 || secondpipe == 0)
  {
    gt_error_set(err,"Cannot find key in description \"%s\"",desc);
    return NULL;
  }
  gt_assert(firstpipe < secondpipe);
  *keylen = secondpipe - firstpipe - 1;
  return desc + firstpipe + 1;
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movq %rsi, 0x20(%rsp)
movq %rdx, 0x18(%rsp)
movq $0x0, 0x8(%rsp)
movq $0x0, (%rsp)
cmpq $0x0, 0x18(%rsp)
je 0x251c24
movq 0x18(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x251bec
jmp 0x251c24
movq 0x3ea3ad(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2c4416(%rip), %rsi    # 0x516013
leaq 0x2c45bb(%rip), %rdx    # 0x5161bf
leaq 0x327f9b(%rip), %rcx    # 0x579ba6
leaq 0x327d61(%rip), %r8     # 0x579973
movl $0x171, %r9d            # imm = 0x171
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x251c26
movq $0x0, 0x10(%rsp)
movq 0x20(%rsp), %rax
movq 0x10(%rsp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
je 0x251d17
movq 0x20(%rsp), %rax
movq 0x10(%rsp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x7c, %eax
jne 0x251d02
cmpq $0x0, 0x8(%rsp)
jbe 0x251cb4
jmp 0x251c67
cmpq $0x0, 0x10(%rsp)
ja 0x251ca7
movq 0x3ea32a(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2c4393(%rip), %rsi    # 0x516013
leaq 0x327f28(%rip), %rdx    # 0x579baf
leaq 0x327f18(%rip), %rcx    # 0x579ba6
leaq 0x327cde(%rip), %r8     # 0x579973
movl $0x178, %r9d            # imm = 0x178
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x251ca9
movq 0x10(%rsp), %rax
movq %rax, (%rsp)
jmp 0x251d17
jmp 0x251cb6
cmpq $0x0, 0x10(%rsp)
ja 0x251cf6
movq 0x3ea2db(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2c4344(%rip), %rsi    # 0x516013
leaq 0x327ed9(%rip), %rdx    # 0x579baf
leaq 0x327ec9(%rip), %rcx    # 0x579ba6
leaq 0x327c8f(%rip), %r8     # 0x579973
movl $0x17c, %r9d            # imm = 0x17C
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x251cf8
movq 0x10(%rsp), %rax
movq %rax, 0x8(%rsp)
jmp 0x251d04
movq 0x10(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x10(%rsp)
jmp 0x251c2f
cmpq $0x0, 0x8(%rsp)
je 0x251d26
cmpq $0x0, (%rsp)
jne 0x251d49
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rdx
leaq 0x327e7c(%rip), %rsi    # 0x579bb3
movb $0x0, %al
callq 0xd88c0
movq $0x0, 0x30(%rsp)
jmp 0x251db8
jmp 0x251d4b
movq 0x8(%rsp), %rax
cmpq (%rsp), %rax
jb 0x251d8e
movq 0x3ea243(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2c42ac(%rip), %rsi    # 0x516013
leaq 0x327e69(%rip), %rdx    # 0x579bd7
leaq 0x327e31(%rip), %rcx    # 0x579ba6
leaq 0x327bf7(%rip), %r8     # 0x579973
movl $0x185, %r9d            # imm = 0x185
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x251d90
movq (%rsp), %rcx
subq 0x8(%rsp), %rcx
subq $0x1, %rcx
movq 0x28(%rsp), %rax
movq %rcx, (%rax)
movq 0x20(%rsp), %rax
addq 0x8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)