// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/select_visitor.c
// Function: select_visitor_region_node
static int select_visitor_region_node(GtNodeVisitor *nv, GtRegionNode *rn,
                                      GT_UNUSED GtError *err)
{
  GtSelectVisitor *select_visitor;
  gt_error_check(err);
  select_visitor = select_visitor_cast(nv);
  if (!gt_str_length(select_visitor->seqid) || /* no seqid was specified */
      !gt_str_cmp(select_visitor->seqid,       /* or seqids are equal */
               gt_genome_node_get_seqid((GtGenomeNode*) rn))) {
    if (select_visitor->contain_range.start != GT_UNDEF_UWORD) {
      GtRange range = gt_genome_node_get_range((GtGenomeNode*) rn);
      if (gt_range_overlap(&range, &select_visitor->contain_range)) {
        /* an overlapping contain range was defined -> update range  */
        range.start = GT_MAX(range.start, select_visitor->contain_range.start);
        range.end = GT_MIN(range.end, select_visitor->contain_range.end);
        gt_genome_node_set_range((GtGenomeNode*) rn, &range);
        gt_queue_add(select_visitor->node_buffer, rn);
      }
      else {
        /* contain range does not overlap with <rn> range -> handle <rn> */
        select_visitor->drophandler((GtGenomeNode*) rn, select_visitor->data,
                                    err);
        gt_genome_node_delete((GtGenomeNode*) rn);
      }
    }
    else
      gt_queue_add(select_visitor->node_buffer, rn);
  }
  else {
    select_visitor->drophandler((GtGenomeNode*) rn, select_visitor->data, err);
    gt_genome_node_delete((GtGenomeNode*) rn);
  }
  return 0;
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq %rdx, 0x30(%rsp)
cmpq $0x0, 0x30(%rsp)
je 0x1d3423
movq 0x30(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x1d33eb
jmp 0x1d3423
movq 0x468bae(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x342c17(%rip), %rsi    # 0x516013
leaq 0x342dbc(%rip), %rdx    # 0x5161bf
leaq 0x391a5b(%rip), %rcx    # 0x564e65
leaq 0x391931(%rip), %r8     # 0x564d42
movl $0x128, %r9d            # imm = 0x128
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1d3425
callq 0x1d2dc0
movq %rax, %rdi
movq 0x40(%rsp), %rsi
callq 0x1b2350
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0x11dfa0
cmpq $0x0, %rax
je 0x1d347e
movq 0x28(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x38(%rsp), %rdi
callq 0x171b70
movq 0x10(%rsp), %rdi
movq %rax, %rsi
callq 0x11e170
cmpl $0x0, %eax
jne 0x1d358c
movq 0x28(%rsp), %rax
cmpq $-0x1, 0x28(%rax)
je 0x1d3577
movq 0x38(%rsp), %rdi
callq 0x171cc0
movq %rax, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
movq 0x28(%rsp), %rsi
addq $0x28, %rsi
leaq 0x18(%rsp), %rdi
callq 0x107390
testb $0x1, %al
jne 0x1d34be
jmp 0x1d3547
movq 0x18(%rsp), %rax
movq 0x28(%rsp), %rcx
cmpq 0x28(%rcx), %rax
jbe 0x1d34da
movq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
jmp 0x1d34e8
movq 0x28(%rsp), %rax
movq 0x28(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rcx
cmpq 0x30(%rcx), %rax
jae 0x1d350d
movq 0x20(%rsp), %rax
movq %rax, (%rsp)
jmp 0x1d351a
movq 0x28(%rsp), %rax
movq 0x30(%rax), %rax
movq %rax, (%rsp)
movq (%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x38(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0x171e20
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rdi
movq 0x38(%rsp), %rsi
callq 0xfd170
jmp 0x1d3575
movq 0x28(%rsp), %rax
movq 0xb8(%rax), %rax
movq 0x38(%rsp), %rdi
movq 0x28(%rsp), %rcx
movq 0xc0(%rcx), %rsi
movq 0x30(%rsp), %rdx
callq *%rax
movq 0x38(%rsp), %rdi
callq 0x173180
jmp 0x1d358a
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rdi
movq 0x38(%rsp), %rsi
callq 0xfd170
jmp 0x1d35ba
movq 0x28(%rsp), %rax
movq 0xb8(%rax), %rax
movq 0x38(%rsp), %rdi
movq 0x28(%rsp), %rcx
movq 0xc0(%rcx), %rsi
movq 0x30(%rsp), %rdx
callq *%rax
movq 0x38(%rsp), %rdi
callq 0x173180
xorl %eax, %eax
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)