// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/extended/stream_evaluator.c
// Function: mRNAs_are_equal
static bool mRNAs_are_equal(GtGenomeNode *gn_1, GtGenomeNode *gn_2,
                            const char *feature_type)
{
  GtArray *exons_1, *exons_2;
  StoreExonFeatureInfo info;
  bool equal;
  GT_UNUSED int had_err;

  gt_assert(gn_1 && gn_2 && feature_type);

  /* init */
  exons_1 = gt_array_new(sizeof (GtRange));
  exons_2 = gt_array_new(sizeof (GtRange));

  /* get exon ranges */
  info.exons = exons_1;
  info.feature_type = feature_type;
  had_err = gt_feature_node_traverse_children(gt_feature_node_cast(gn_1), &info,
                                              store_exon, false, NULL);
  gt_assert(!had_err); /* cannot happen, store_exon() is sane */
  info.exons = exons_2;
  had_err = gt_feature_node_traverse_children(gt_feature_node_cast(gn_2), &info,
                                              store_exon, false, NULL);
  gt_assert(!had_err); /* cannot happen, store_exon() is sane */

  /* sort exon ranges */
  gt_ranges_sort(exons_1);
  gt_ranges_sort(exons_2);

  /* compare exon ranges */
  equal = gt_ranges_are_equal(exons_1, exons_2);

  /* free */
  gt_array_delete(exons_1);
  gt_array_delete(exons_2);

  return equal;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
testq %rdi, %rdi
je 0x8dd17
movq %rsi, %r15
testq %rsi, %rsi
je 0x8dd17
movq %rdx, %r13
testq %rdx, %rdx
je 0x8dd17
movq %rdi, %r12
pushq $0x10
popq %r14
movq %r14, %rdi
callq 0x4b380
movq %rax, %rbx
movq %r14, %rdi
callq 0x4b380
movq %rax, %r14
leaq 0x8(%rsp), %rbp
movq %rbx, (%rbp)
movq %r13, 0x8(%rbp)
movq %r12, %rdi
callq 0x18df7
leaq 0x764(%rip), %rdx       # 0x8e3f5
movq %rax, %rdi
movq %rbp, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x19e82
testl %eax, %eax
jne 0x8dd45
leaq 0x8(%rsp), %r12
movq %r14, (%r12)
movq %r15, %rdi
callq 0x18df7
leaq 0x734(%rip), %rdx       # 0x8e3f5
movq %rax, %rdi
movq %r12, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x19e82
testl %eax, %eax
jne 0x8dd73
movq %rbx, %rdi
callq 0x5db48
movq %r14, %rdi
callq 0x5db48
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5dd87
movl %eax, %ebp
movq %rbx, %rdi
callq 0x4c19d
movq %r14, %rdi
callq 0x4c19d
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xa029a(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x3c33e(%rip), %rsi     # 0xca066
leaq 0x57e7b(%rip), %rdx     # 0xe5baa
leaq 0x57eb4(%rip), %rcx     # 0xe5bea
leaq 0x576d3(%rip), %r8      # 0xe5410
movl $0x251, %r9d            # imm = 0x251
jmp 0x8dd9f
movq 0xa026c(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x3c310(%rip), %rsi     # 0xca066
leaq 0x3c8b6(%rip), %rdx     # 0xca613
leaq 0x57e86(%rip), %rcx     # 0xe5bea
leaq 0x576a5(%rip), %r8      # 0xe5410
movl $0x25c, %r9d            # imm = 0x25C
jmp 0x8dd9f
movq 0xa023e(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x3c2e2(%rip), %rsi     # 0xca066
leaq 0x3c888(%rip), %rdx     # 0xca613
leaq 0x57e58(%rip), %rcx     # 0xe5bea
leaq 0x57677(%rip), %r8      # 0xe5410
movl $0x260, %r9d            # imm = 0x260
xorl %eax, %eax
callq 0xb8c0
callq 0xb300