// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/ltr/ltr_cluster_prepare_seq_visitor.c
// Function: gt_ltr_cluster_prepare_seq_finish_encseqs
int gt_ltr_cluster_prepare_seq_finish_encseqs(void *key, void *value,
                                              void *data, GtError *err)
{
  GtLTRClusterPrepareSeqVisitor *v = (GtLTRClusterPrepareSeqVisitor*) data;
  GtEncseqBuilder *eb = (GtEncseqBuilder*) value;
  GtEncseq *encseq;
  int had_err = 0;
  const char *feature = (const char*) key;
  gt_assert(key && value);
  gt_error_check(err);

  encseq = gt_encseq_builder_build(eb, err);
  if (!encseq)
    had_err = -1;
  if (!had_err) {
    if (!v->feat_to_encseq) {
      v->feat_to_encseq = gt_hashmap_new(GT_HASH_STRING, gt_free_func,
                                         (GtFree) gt_encseq_delete);
    }
    gt_assert(!gt_hashmap_get(v->feat_to_encseq, feature));
    gt_hashmap_add(v->feat_to_encseq, gt_cstr_dup(feature), encseq);
    gt_log_log("added encseq %p to hash for feature %s", encseq, feature);
  }
  return had_err;
}

// Assembly:
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movq %rdx, 0x40(%rsp)
movq %rcx, 0x38(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x28(%rsp)
movl $0x0, 0x1c(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x10(%rsp)
cmpq $0x0, 0x50(%rsp)
je 0x4e94ce
cmpq $0x0, 0x48(%rsp)
jne 0x4e9506
movq 0x152acb(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2cb34(%rip), %rsi     # 0x516013
leaq 0xb0108(%rip), %rdx     # 0x5995ee
leaq 0xd2387(%rip), %rcx     # 0x5bb874
leaq 0xd2356(%rip), %r8      # 0x5bb84a
movl $0xe3, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4e9508
jmp 0x4e950a
cmpq $0x0, 0x38(%rsp)
je 0x4e955a
movq 0x38(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x4e9522
jmp 0x4e955a
movq 0x152a77(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2cae0(%rip), %rsi     # 0x516013
leaq 0x2cc85(%rip), %rdx     # 0x5161bf
leaq 0xd2333(%rip), %rcx     # 0x5bb874
leaq 0xd2302(%rip), %r8      # 0x5bb84a
movl $0xe4, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4e955c
movq 0x28(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0xbd620
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x20(%rsp)
jne 0x4e9580
movl $0xffffffff, 0x1c(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0x1c(%rsp)
jne 0x4e9652
movq 0x30(%rsp), %rax
cmpq $0x0, 0x18(%rax)
jne 0x4e95bb
movl $0x1, %edi
leaq -0x400b73(%rip), %rsi   # 0xe8a30
leaq -0x43b53a(%rip), %rdx   # 0xae070
callq 0xe0c40
movq %rax, %rcx
movq 0x30(%rsp), %rax
movq %rcx, 0x18(%rax)
jmp 0x4e95bd
movq 0x30(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x10(%rsp), %rsi
callq 0xe0f20
cmpq $0x0, %rax
je 0x4e960e
movq 0x1529c3(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2ca2c(%rip), %rsi     # 0x516013
leaq 0xd22b0(%rip), %rdx     # 0x5bb89e
leaq 0xd227f(%rip), %rcx     # 0x5bb874
leaq 0xd224e(%rip), %r8      # 0x5bb84a
movl $0xee, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4e9610
movq 0x30(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rdi
callq 0xa2db0
movq 0x8(%rsp), %rdi
movq %rax, %rsi
movq 0x20(%rsp), %rdx
callq 0xe0fc0
movq 0x20(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0xd227f(%rip), %rdi     # 0x5bb8ca
movb $0x0, %al
callq 0xe7740
movl 0x1c(%rsp), %eax
addq $0x58, %rsp
retq
nopl (%rax,%rax)