// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/gff3_linesorted_out_stream.c
// Function: gt_linesorted_gff3_cmp
static int gt_linesorted_gff3_cmp(const void *val1, const void *val2,
                                  GT_UNUSED void *data)
{
  GtUword p1 = 0, p2 = 0;
  const char *s1 = *(const char**) val1,
             *s2 = *(const char**) val2,
             *reststart1 = s1, *reststart2 = s2;
  int str_cmp_result,
      GT_UNUSED rval = 0;
  char buf1[BUFSIZ], buf2[BUFSIZ];

  if (s1[0] == '#' || s2[0] == '\0')
    return 1;
  if (s2[0] == '#' || s1[0] == '\0')
    return -1;

  /* parse seqid */
  gt_linesorted_gff3_next_token_pair(&reststart1, &reststart2, buf1, BUFSIZ,
                                     buf2, BUFSIZ, GT_LINESORTED_SEP);
  str_cmp_result = strcmp(buf1, buf2);
  if (str_cmp_result != 0)
    return str_cmp_result;

  /* parse source */
  gt_linesorted_gff3_next_token_pair(&reststart1, &reststart2, buf1, BUFSIZ,
                                     buf2, BUFSIZ, GT_LINESORTED_SEP);
  /* parse type */
  gt_linesorted_gff3_next_token_pair(&reststart1, &reststart2, buf1, BUFSIZ,
                                     buf2, BUFSIZ, GT_LINESORTED_SEP);

  /* parse start */
  gt_linesorted_gff3_next_token_pair(&reststart1, &reststart2, buf1, BUFSIZ,
                                     buf2, BUFSIZ, GT_LINESORTED_SEP);
  rval = gt_parse_uword(&p1, buf1);
  gt_assert(rval == 0);
  rval = gt_parse_uword(&p2, buf2);
  gt_assert(rval == 0);

  if (p1 == p2) {
    /* parse end */
    gt_linesorted_gff3_next_token_pair(&reststart1, &reststart2, buf1, BUFSIZ,
                                       buf2, BUFSIZ, GT_LINESORTED_SEP);
    rval = gt_parse_uword(&p1, buf1);
    gt_assert(rval == 0);
    rval = gt_parse_uword(&p2, buf2);
    gt_assert(rval == 0);
    if (p1 == p2)
      return 0;
    if (p1 > p2)
      return 1;
    else
      return -1;
  }
  if (p1 > p2)
    return 1;
  else
    return -1;
}

// Assembly:
subq $0x4068, %rsp           # imm = 0x4068
movq %rdi, 0x4058(%rsp)
movq %rsi, 0x4050(%rsp)
movq %rdx, 0x4048(%rsp)
movq $0x0, 0x4040(%rsp)
movq $0x0, 0x4038(%rsp)
movq 0x4058(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x4030(%rsp)
movq 0x4050(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x4028(%rsp)
movq 0x4030(%rsp), %rax
movq %rax, 0x4020(%rsp)
movq 0x4028(%rsp), %rax
movq %rax, 0x4018(%rsp)
movl $0x0, 0x4010(%rsp)
movq 0x4030(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x23, %eax
je 0x176148
movq 0x4028(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x176158
movl $0x1, 0x4064(%rsp)
jmp 0x1764bd
movq 0x4028(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x23, %eax
je 0x176178
movq 0x4030(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x176188
movl $0xffffffff, 0x4064(%rsp) # imm = 0xFFFFFFFF
jmp 0x1764bd
leaq 0x2010(%rsp), %rdx
leaq 0x10(%rsp), %r8
leaq 0x4020(%rsp), %rdi
leaq 0x4018(%rsp), %rsi
movl $0x2000, %r9d           # imm = 0x2000
movq %r9, %rcx
movl $0x9, (%rsp)
callq 0x1764d0
leaq 0x2010(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x19980
movl %eax, 0x4014(%rsp)
cmpl $0x0, 0x4014(%rsp)
je 0x1761f0
movl 0x4014(%rsp), %eax
movl %eax, 0x4064(%rsp)
jmp 0x1764bd
leaq 0x2010(%rsp), %rdx
leaq 0x10(%rsp), %r8
leaq 0x4020(%rsp), %rdi
leaq 0x4018(%rsp), %rsi
movl $0x2000, %r9d           # imm = 0x2000
movq %r9, %rcx
movl $0x9, (%rsp)
callq 0x1764d0
leaq 0x2010(%rsp), %rdx
leaq 0x10(%rsp), %r8
leaq 0x4020(%rsp), %rdi
leaq 0x4018(%rsp), %rsi
movl $0x2000, %r9d           # imm = 0x2000
movq %r9, %rcx
movl $0x9, (%rsp)
callq 0x1764d0
leaq 0x2010(%rsp), %rdx
leaq 0x10(%rsp), %r8
leaq 0x4020(%rsp), %rdi
leaq 0x4018(%rsp), %rsi
movl $0x2000, %r9d           # imm = 0x2000
movq %r9, %rcx
movl $0x9, (%rsp)
callq 0x1764d0
leaq 0x2010(%rsp), %rsi
leaq 0x4040(%rsp), %rdi
callq 0xf86d0
movl %eax, 0x4010(%rsp)
cmpl $0x0, 0x4010(%rsp)
je 0x1762e4
movq 0x4c5ced(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x39fd56(%rip), %rsi    # 0x516013
leaq 0x3d999b(%rip), %rdx    # 0x54fc5f
leaq 0x3dbac2(%rip), %rcx    # 0x551d8d
leaq 0x3db9d9(%rip), %r8     # 0x551cab
movl $0x79, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1762e6
leaq 0x10(%rsp), %rsi
leaq 0x4038(%rsp), %rdi
callq 0xf86d0
movl %eax, 0x4010(%rsp)
cmpl $0x0, 0x4010(%rsp)
je 0x176341
movq 0x4c5c90(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x39fcf9(%rip), %rsi    # 0x516013
leaq 0x3d993e(%rip), %rdx    # 0x54fc5f
leaq 0x3dba65(%rip), %rcx    # 0x551d8d
leaq 0x3db97c(%rip), %r8     # 0x551cab
movl $0x7b, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x176343
movq 0x4040(%rsp), %rax
cmpq 0x4038(%rsp), %rax
jne 0x176493
leaq 0x2010(%rsp), %rdx
leaq 0x10(%rsp), %r8
leaq 0x4020(%rsp), %rdi
leaq 0x4018(%rsp), %rsi
movl $0x2000, %r9d           # imm = 0x2000
movq %r9, %rcx
movl $0x9, (%rsp)
callq 0x1764d0
leaq 0x2010(%rsp), %rsi
leaq 0x4040(%rsp), %rdi
callq 0xf86d0
movl %eax, 0x4010(%rsp)
cmpl $0x0, 0x4010(%rsp)
je 0x1763e9
movq 0x4c5be8(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x39fc51(%rip), %rsi    # 0x516013
leaq 0x3d9896(%rip), %rdx    # 0x54fc5f
leaq 0x3db9bd(%rip), %rcx    # 0x551d8d
leaq 0x3db8d4(%rip), %r8     # 0x551cab
movl $0x82, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1763eb
leaq 0x10(%rsp), %rsi
leaq 0x4038(%rsp), %rdi
callq 0xf86d0
movl %eax, 0x4010(%rsp)
cmpl $0x0, 0x4010(%rsp)
je 0x176446
movq 0x4c5b8b(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x39fbf4(%rip), %rsi    # 0x516013
leaq 0x3d9839(%rip), %rdx    # 0x54fc5f
leaq 0x3db960(%rip), %rcx    # 0x551d8d
leaq 0x3db877(%rip), %r8     # 0x551cab
movl $0x84, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x176448
movq 0x4040(%rsp), %rax
cmpq 0x4038(%rsp), %rax
jne 0x176467
movl $0x0, 0x4064(%rsp)
jmp 0x1764bd
movq 0x4040(%rsp), %rax
cmpq 0x4038(%rsp), %rax
jbe 0x176486
movl $0x1, 0x4064(%rsp)
jmp 0x1764bd
movl $0xffffffff, 0x4064(%rsp) # imm = 0xFFFFFFFF
jmp 0x1764bd
movq 0x4040(%rsp), %rax
cmpq 0x4038(%rsp), %rax
jbe 0x1764b2
movl $0x1, 0x4064(%rsp)
jmp 0x1764bd
movl $0xffffffff, 0x4064(%rsp) # imm = 0xFFFFFFFF
movl 0x4064(%rsp), %eax
addq $0x4068, %rsp           # imm = 0x4068
retq
nopl (%rax)