// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/genome_node.c
// Function: gt_genome_node_cmp_generic
static inline int gt_genome_node_cmp_generic(GtGenomeNode *gn_a,
                                             GtGenomeNode *gn_b,
                                             bool numeric_cmp)
{
  GtRange range_a, range_b;
  int rval;
  const char *id_a, *id_b;
  gt_assert(gn_a && gn_b);
  /* ensure that region nodes come first and sequence nodes come last,
     otherwise we don't get a valid GFF3 stream */
  if ((rval = compare_genome_node_type(gn_a, gn_b)))
    return rval;

  id_a = gt_str_get(gt_genome_node_get_idstr(gn_a));
  id_b = gt_str_get(gt_genome_node_get_idstr(gn_b));
  if (numeric_cmp) {
    GtUword anum, bnum;
    int arval, brval;
    arval = gt_parse_uword(&anum, id_a);
    brval = gt_parse_uword(&bnum, id_b);
    if (arval == 0 && brval == 0)
      rval = anum-bnum;
    else if (arval == 0)
      return -1;
    else if (brval == 0)
      return 1;
    else
      rval = 0;
    if (rval)
      return rval;
  } else {
    if ((rval = gt_md5_seqid_cmp_seqids(id_a, id_b))) {
      return rval;
    }
  }
  range_a = gt_genome_node_get_range(gn_a),
  range_b = gt_genome_node_get_range(gn_b);
  return gt_range_compare(&range_a, &range_b);
}

// Assembly:
subq $0x98, %rsp
movb %dl, %al
movq %rdi, 0x88(%rsp)
movq %rsi, 0x80(%rsp)
andb $0x1, %al
movb %al, 0x7f(%rsp)
cmpq $0x0, 0x88(%rsp)
je 0x25315
cmpq $0x0, 0x80(%rsp)
jne 0x2534d
movq 0x18ecbc(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x138d40(%rip), %rsi    # 0x15e066
leaq 0x13dd11(%rip), %rdx    # 0x16303e
leaq 0x13dd17(%rip), %rcx    # 0x16304b
leaq 0x13d7a0(%rip), %r8     # 0x162adb
movl $0x95, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x2534f
movq 0x88(%rsp), %rdi
movq 0x80(%rsp), %rsi
callq 0x26fc0
movl %eax, 0x54(%rsp)
cmpl $0x0, %eax
je 0x2537d
movl 0x54(%rsp), %eax
movl %eax, 0x94(%rsp)
jmp 0x254e6
movq 0x88(%rsp), %rdi
callq 0x25940
movq %rax, %rdi
callq 0x19940
movq %rax, 0x48(%rsp)
movq 0x80(%rsp), %rdi
callq 0x25940
movq %rax, %rdi
callq 0x19940
movq %rax, 0x40(%rsp)
testb $0x1, 0x7f(%rsp)
je 0x25453
movq 0x48(%rsp), %rsi
leaq 0x38(%rsp), %rdi
callq 0x15580
movl %eax, 0x2c(%rsp)
movq 0x40(%rsp), %rsi
leaq 0x30(%rsp), %rdi
callq 0x15580
movl %eax, 0x28(%rsp)
cmpl $0x0, 0x2c(%rsp)
jne 0x25400
cmpl $0x0, 0x28(%rsp)
jne 0x25400
movq 0x38(%rsp), %rax
subq 0x30(%rsp), %rax
movl %eax, 0x54(%rsp)
jmp 0x2543a
cmpl $0x0, 0x2c(%rsp)
jne 0x25417
movl $0xffffffff, 0x94(%rsp) # imm = 0xFFFFFFFF
jmp 0x254e6
cmpl $0x0, 0x28(%rsp)
jne 0x2542e
movl $0x1, 0x94(%rsp)
jmp 0x254e6
movl $0x0, 0x54(%rsp)
jmp 0x25438
jmp 0x2543a
cmpl $0x0, 0x54(%rsp)
je 0x25451
movl 0x54(%rsp), %eax
movl %eax, 0x94(%rsp)
jmp 0x254e6
jmp 0x2547a
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x8dd10
movl %eax, 0x54(%rsp)
cmpl $0x0, %eax
je 0x25478
movl 0x54(%rsp), %eax
movl %eax, 0x94(%rsp)
jmp 0x254e6
jmp 0x2547a
movq 0x88(%rsp), %rdi
callq 0x259f0
movq %rax, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x80(%rsp), %rdi
callq 0x259f0
movq %rax, 0x8(%rsp)
movq %rdx, 0x10(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x60(%rsp)
leaq 0x68(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x93850
movl %eax, 0x94(%rsp)
movl 0x94(%rsp), %eax
addq $0x98, %rsp
retq
nopw %cs:(%rax,%rax)