// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/regioncov_visitor.c
// Function: gt_regioncov_visitor_feature_node
static int gt_regioncov_visitor_feature_node(GtNodeVisitor *nv,
                                             GtFeatureNode *fn,
                                             GT_UNUSED GtError *err)
{
  GtRange *old_range_ptr, old_range, new_range;
  GtArray *ranges;
  GtRegionCovVisitor *regioncov_visitor;
  gt_error_check(err);
  regioncov_visitor = gt_regioncov_visitor_cast(nv);
  ranges = gt_hashmap_get(regioncov_visitor->region2rangelist,
                       gt_str_get(gt_genome_node_get_seqid((GtGenomeNode*)
                                                           fn)));
  gt_assert(ranges);
  new_range = gt_genome_node_get_range((GtGenomeNode*) fn);
  if (!gt_array_size(ranges))
    gt_array_add(ranges, new_range);
  else {
    old_range_ptr = gt_array_get_last(ranges);
    old_range = *old_range_ptr;
    old_range.end += regioncov_visitor->max_feature_dist;
    if (gt_range_overlap(&old_range, &new_range)) {
      old_range_ptr->end = GT_MAX(old_range_ptr->end, new_range.end);
    }
    else
      gt_array_add(ranges, new_range);
  }
  return 0;
}

// Assembly:
subq $0x78, %rsp
movq %rdi, 0x70(%rsp)
movq %rsi, 0x68(%rsp)
movq %rdx, 0x60(%rsp)
cmpq $0x0, 0x60(%rsp)
je 0x1cadd3
movq 0x60(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x1cad9b
jmp 0x1cadd3
movq 0x4711fe(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x34b267(%rip), %rsi    # 0x516013
leaq 0x34b40c(%rip), %rdx    # 0x5161bf
leaq 0x397eae(%rip), %rcx    # 0x562c68
leaq 0x397e86(%rip), %r8     # 0x562c47
movl $0x33, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1cadd5
callq 0x1cacd0
movq %rax, %rdi
movq 0x70(%rsp), %rsi
callq 0x1b2350
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x68(%rsp), %rdi
callq 0x171b70
movq %rax, %rdi
callq 0x11dee0
movq 0x10(%rsp), %rdi
movq %rax, %rsi
callq 0xe0f20
movq %rax, 0x30(%rsp)
cmpq $0x0, 0x30(%rsp)
jne 0x1cae5e
movq 0x471173(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x34b1dc(%rip), %rsi    # 0x516013
leaq 0x351351(%rip), %rdx    # 0x51c18f
leaq 0x397e23(%rip), %rcx    # 0x562c68
leaq 0x397dfb(%rip), %r8     # 0x562c47
movl $0x38, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1cae60
movq 0x68(%rsp), %rdi
callq 0x171cc0
movq %rax, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x30(%rsp), %rdi
callq 0x81370
cmpq $0x0, %rax
jne 0x1caeb1
movq 0x30(%rsp), %rdi
leaq 0x38(%rsp), %rsi
movl $0x10, %edx
callq 0x81100
jmp 0x1caf4e
movq 0x30(%rsp), %rdi
callq 0x80c00
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rax
movq (%rax), %rcx
movq %rcx, 0x48(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x50(%rsp)
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rax
addq 0x50(%rsp), %rax
movq %rax, 0x50(%rsp)
leaq 0x48(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x107390
testb $0x1, %al
jne 0x1caefe
jmp 0x1caf38
movq 0x58(%rsp), %rax
movq 0x8(%rax), %rax
cmpq 0x40(%rsp), %rax
jbe 0x1caf1e
movq 0x58(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x8(%rsp)
jmp 0x1caf28
movq 0x40(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rcx
movq 0x58(%rsp), %rax
movq %rcx, 0x8(%rax)
jmp 0x1caf4c
movq 0x30(%rsp), %rdi
leaq 0x38(%rsp), %rsi
movl $0x10, %edx
callq 0x81100
jmp 0x1caf4e
xorl %eax, %eax
addq $0x78, %rsp
retq
nopw %cs:(%rax,%rax)