// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/diagbandseed.c
// Function: gt_diagbandseed_seeds_compare
static int gt_diagbandseed_seeds_compare(const GtSeedpairlist *seedpairlist,
                                         const GtUword current)
{
  GtDiagbandseedSeedPair p_seedpair, c_seedpair;
  GtDiagbandseedPosition p_apos, c_apos, p_bpos, c_bpos;

  gt_assert(current > 0);
  gt_seedpairlist_at(&p_seedpair,seedpairlist,current - 1);
  gt_seedpairlist_at(&c_seedpair,seedpairlist,current);
  if (p_seedpair.aseqnum < c_seedpair.aseqnum)
  {
    return -1;
  }
  if (p_seedpair.aseqnum > c_seedpair.aseqnum)
  {
    return 1;
  }
  if (p_seedpair.bseqnum < c_seedpair.bseqnum)
  {
    return -1;
  }
  if (p_seedpair.bseqnum > c_seedpair.bseqnum)
  {
    return 1;
  }
  p_apos = GT_DIAGBANDSEED_GETPOS_A(&p_seedpair);
  c_apos = GT_DIAGBANDSEED_GETPOS_A(&c_seedpair);
  p_bpos = GT_DIAGBANDSEED_CONV_B(p_apos,GT_DIAGBANDSEED_GETPOS_B(&p_seedpair));
  c_bpos = GT_DIAGBANDSEED_CONV_B(c_apos,GT_DIAGBANDSEED_GETPOS_B(&c_seedpair));
  if (p_bpos < c_bpos)
  {
    return -1;
  }
  if (p_bpos > c_bpos)
  {
    return 1;
  }
  if (p_apos < c_apos)
  {
    return -1;
  }
  if (p_apos > c_apos)
  {
    return 1;
  }
  return 0;
}

// Assembly:
subq $0x58, %rsp
movq %rdi, 0x48(%rsp)
movq %rsi, 0x40(%rsp)
cmpq $0x0, 0x40(%rsp)
ja 0x21b15e
movq 0x420e73(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2faedc(%rip), %rsi    # 0x516013
leaq 0x35f6e1(%rip), %rdx    # 0x57a81f
leaq 0x35823c(%rip), %rcx    # 0x573381
leaq 0x356e48(%rip), %r8     # 0x571f94
movl $0x76e, %r9d            # imm = 0x76E
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x21b160
movq 0x48(%rsp), %rsi
movq 0x40(%rsp), %rdx
subq $0x1, %rdx
leaq 0x30(%rsp), %rdi
callq 0x21b390
movq 0x48(%rsp), %rsi
movq 0x40(%rsp), %rdx
leaq 0x20(%rsp), %rdi
callq 0x21b390
movl 0x34(%rsp), %eax
cmpl 0x24(%rsp), %eax
jae 0x21b1a3
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
jmp 0x21b2c9
movl 0x34(%rsp), %eax
cmpl 0x24(%rsp), %eax
jbe 0x21b1ba
movl $0x1, 0x54(%rsp)
jmp 0x21b2c9
movl 0x30(%rsp), %eax
cmpl 0x20(%rsp), %eax
jae 0x21b1d1
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
jmp 0x21b2c9
movl 0x30(%rsp), %eax
cmpl 0x20(%rsp), %eax
jbe 0x21b1e8
movl $0x1, 0x54(%rsp)
jmp 0x21b2c9
movl 0x38(%rsp), %eax
movl %eax, 0x1c(%rsp)
movl 0x28(%rsp), %eax
movl %eax, 0x18(%rsp)
movq 0x48(%rsp), %rax
testb $0x1, 0xb0(%rax)
je 0x21b224
movl 0x3c(%rsp), %eax
movl 0x1c(%rsp), %ecx
addq %rcx, %rax
movq 0x48(%rsp), %rcx
subq 0xb8(%rcx), %rax
movq %rax, 0x8(%rsp)
jmp 0x21b22d
movl 0x3c(%rsp), %eax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movl %eax, 0x14(%rsp)
movq 0x48(%rsp), %rax
testb $0x1, 0xb0(%rax)
je 0x21b261
movl 0x2c(%rsp), %eax
movl 0x18(%rsp), %ecx
addq %rcx, %rax
movq 0x48(%rsp), %rcx
subq 0xb8(%rcx), %rax
movq %rax, (%rsp)
jmp 0x21b269
movl 0x2c(%rsp), %eax
movq %rax, (%rsp)
movq (%rsp), %rax
movl %eax, 0x10(%rsp)
movl 0x14(%rsp), %eax
cmpl 0x10(%rsp), %eax
jae 0x21b285
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
jmp 0x21b2c9
movl 0x14(%rsp), %eax
cmpl 0x10(%rsp), %eax
jbe 0x21b299
movl $0x1, 0x54(%rsp)
jmp 0x21b2c9
movl 0x1c(%rsp), %eax
cmpl 0x18(%rsp), %eax
jae 0x21b2ad
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
jmp 0x21b2c9
movl 0x1c(%rsp), %eax
cmpl 0x18(%rsp), %eax
jbe 0x21b2c1
movl $0x1, 0x54(%rsp)
jmp 0x21b2c9
movl $0x0, 0x54(%rsp)
movl 0x54(%rsp), %eax
addq $0x58, %rsp
retq
nopw %cs:(%rax,%rax)