// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/snp_annotator_visitor.c
// Function: gt_snp_annotator_visitor_new
GtNodeVisitor* gt_snp_annotator_visitor_new(GtFeatureNode *gene,
                                            GtTransTable *trans_table,
                                            GtRegionMapping *rmap,
                                            GtError *err)
{
  GtNodeVisitor *nv;
  GtSNPAnnotatorVisitor *sav;
  gt_assert(gene && gt_feature_node_get_type(gene) == gt_symbol(gt_ft_gene));
  nv = gt_node_visitor_create(gt_snp_annotator_visitor_class());
  sav = snp_annotator_visitor_cast(nv);
  sav->gene = (GtFeatureNode*) gt_genome_node_ref((GtGenomeNode*) gene);
  sav->rmap = gt_region_mapping_ref(rmap);
  sav->mRNA_type = gt_symbol(gt_ft_mRNA);
  sav->CDS_type = gt_symbol(gt_ft_CDS);
  sav->SNV_type = gt_symbol(gt_ft_SNV);
  sav->SNP_type = gt_symbol(gt_ft_SNP);
  sav->rnaseqs = gt_hashmap_new(GT_HASH_DIRECT, NULL, gt_free_func);
  if (trans_table) {
    sav->tt = trans_table;
    sav->own_tt = false;
  } else {
    sav->tt = gt_trans_table_new_standard(err);
    sav->own_tt = true;
  }
  if (!sav->tt || gt_snp_annotator_visitor_prepare_gene(sav, err) != 0) {
    gt_node_visitor_delete(nv);
    return NULL;
  }
  return nv;
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
movq %rdx, 0x28(%rsp)
movq %rcx, 0x20(%rsp)
cmpq $0x0, 0x38(%rsp)
je 0x1d9508
movq 0x38(%rsp), %rdi
callq 0x16d430
movq %rax, 0x8(%rsp)
leaq 0x3d9670(%rip), %rdi    # 0x5b2b66
callq 0x120930
movq %rax, %rcx
movq 0x8(%rsp), %rax
cmpq %rcx, %rax
je 0x1d9540
movq 0x462a91(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x33cafa(%rip), %rsi    # 0x516013
leaq 0x38c6ec(%rip), %rdx    # 0x565c0c
leaq 0x38c725(%rip), %rcx    # 0x565c4c
leaq 0x38c73b(%rip), %r8     # 0x565c69
movl $0x16f, %r9d            # imm = 0x16F
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1d9542
callq 0x1d8c60
movq %rax, %rdi
callq 0x1b22c0
movq %rax, 0x18(%rsp)
callq 0x1d8c60
movq %rax, %rdi
movq 0x18(%rsp), %rsi
callq 0x1b2350
movq %rax, 0x10(%rsp)
movq 0x38(%rsp), %rdi
callq 0x171410
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x28(%rsp), %rdi
callq 0x1c7fe0
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x18(%rax)
leaq 0x373894(%rip), %rdi    # 0x54ce32
callq 0x120930
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x38(%rax)
leaq 0x37b502(%rip), %rdi    # 0x554ab8
callq 0x120930
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x40(%rax)
leaq 0x38c5b2(%rip), %rdi    # 0x565b80
callq 0x120930
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x48(%rax)
leaq 0x38c59e(%rip), %rdi    # 0x565b84
callq 0x120930
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x50(%rax)
xorl %edi, %edi
xorl %eax, %eax
movl %eax, %esi
leaq -0xf0bd4(%rip), %rdx    # 0xe8a30
callq 0xe0c40
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x20(%rax)
cmpq $0x0, 0x30(%rsp)
je 0x1d9636
movq 0x30(%rsp), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x28(%rax)
movq 0x10(%rsp), %rax
movb $0x0, 0x30(%rax)
jmp 0x1d9655
movq 0x20(%rsp), %rdi
callq 0x124040
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x28(%rax)
movq 0x10(%rsp), %rax
movb $0x1, 0x30(%rax)
movq 0x10(%rsp), %rax
cmpq $0x0, 0x28(%rax)
je 0x1d9675
movq 0x10(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x1d96a0
cmpl $0x0, %eax
je 0x1d968a
movq 0x18(%rsp), %rdi
callq 0x1b29d0
movq $0x0, 0x40(%rsp)
jmp 0x1d9694
movq 0x18(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
addq $0x48, %rsp
retq
nop