// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/match_iterator_last.c
// Function: gt_match_iterator_last_new
GtMatchIterator* gt_match_iterator_last_new(GtEncseq *es1, GtEncseq *es2,
                                            int match_score,
                                            int mismatch_cost,
                                            int gap_open_cost,
                                            int gap_ext_cost,
                                            int xdrop,
                                            int ydrop,
                                            int zdrop,
                                            int k,
                                            int mscoregapped,
                                            int mscoregapless,
                                            GtError *err)
{
  GtMatchIterator *mp;
  GtMatchIteratorLast *mil;
  int had_err = 0;
  gt_assert(es1 && es2);
  gt_error_check(err);

  mp = gt_match_iterator_create(gt_match_iterator_last_class());
  mil = (GtMatchIteratorLast*) mp;
  mil->pvt = gt_calloc(1, sizeof (GtMatchIteratorLastMembers));
  mil->pvt->es1 = gt_encseq_ref(es1);
  mil->pvt->es2 = gt_encseq_ref(es2);
  mil->pvt->op.match_score = match_score;
  mil->pvt->op.mismatch_cost = mismatch_cost;
  mil->pvt->op.gap_open_cost = gap_open_cost;
  mil->pvt->op.gap_ext_cost = gap_ext_cost;
  mil->pvt->op.xdrop = xdrop;
  mil->pvt->op.ydrop = ydrop;
  mil->pvt->op.zdrop = zdrop;
  mil->pvt->op.mscoregapped = mscoregapped;
  mil->pvt->op.mscoregapless = mscoregapless;
  mil->pvt->op.k = k;
  mil->pvt->tmpdir = getenv("TMPDIR");
  if (!mil->pvt->tmpdir)
    mil->pvt->tmpdir = "/tmp";
  mil->pvt->linebuf = gt_str_new();
  mil->pvt->desc_to_seqno = gt_hashmap_new(GT_HASH_STRING, gt_free_func, NULL);

  had_err = last_prepare_indices(mil, err);
  if (had_err) {
    gt_match_iterator_delete(mp);
    return NULL;
  }
  gt_assert(mil->pvt->idxfilename);
  return mp;
}

// Assembly:
subq $0x48, %rsp
movq 0x80(%rsp), %rax
movl 0x78(%rsp), %eax
movl 0x70(%rsp), %eax
movl 0x68(%rsp), %eax
movl 0x60(%rsp), %eax
movl 0x58(%rsp), %eax
movl 0x50(%rsp), %eax
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
movl %edx, 0x2c(%rsp)
movl %ecx, 0x28(%rsp)
movl %r8d, 0x24(%rsp)
movl %r9d, 0x20(%rsp)
movl $0x0, 0xc(%rsp)
cmpq $0x0, 0x38(%rsp)
je 0x1a8d98
cmpq $0x0, 0x30(%rsp)
jne 0x1a8dd0
movq 0x493201(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x36d26a(%rip), %rsi    # 0x516013
leaq 0x378b70(%rip), %rdx    # 0x521920
leaq 0x3b0acc(%rip), %rcx    # 0x559883
leaq 0x3b0ae0(%rip), %r8     # 0x55989e
movl $0x1d6, %r9d            # imm = 0x1D6
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1a8dd2
jmp 0x1a8dd4
cmpq $0x0, 0x80(%rsp)
je 0x1a8e2a
movq 0x80(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x1a8df2
jmp 0x1a8e2a
movq 0x4931a7(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x36d210(%rip), %rsi    # 0x516013
leaq 0x36d3b5(%rip), %rdx    # 0x5161bf
leaq 0x3b0a72(%rip), %rcx    # 0x559883
leaq 0x3b0a86(%rip), %r8     # 0x55989e
movl $0x1d7, %r9d            # imm = 0x1D7
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1a8e2c
callq 0x1a9050
movq %rax, %rdi
callq 0x1a78c0
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x10(%rsp)
movl $0x1, %edi
movl $0x70, %esi
leaq 0x3b0a45(%rip), %rdx    # 0x55989e
movl $0x1db, %ecx            # imm = 0x1DB
callq 0xe83c0
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x38(%rsp), %rdi
callq 0xaebc0
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movq %rcx, (%rax)
movq 0x30(%rsp), %rdi
callq 0xaebc0
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movq %rcx, 0x8(%rax)
movl 0x2c(%rsp), %ecx
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movl %ecx, 0x10(%rax)
movl 0x28(%rsp), %ecx
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movl %ecx, 0x14(%rax)
movl 0x24(%rsp), %ecx
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movl %ecx, 0x18(%rax)
movl 0x20(%rsp), %ecx
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movl %ecx, 0x1c(%rax)
movl 0x50(%rsp), %ecx
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movl %ecx, 0x20(%rax)
movl 0x58(%rsp), %ecx
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movl %ecx, 0x24(%rax)
movl 0x60(%rsp), %ecx
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movl %ecx, 0x28(%rax)
movl 0x70(%rsp), %ecx
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movl %ecx, 0x2c(%rax)
movl 0x78(%rsp), %ecx
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movl %ecx, 0x30(%rax)
movl 0x68(%rsp), %ecx
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movl %ecx, 0x34(%rax)
leaq 0x40213d(%rip), %rdi    # 0x5ab086
callq 0x198a0
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movq %rcx, 0x38(%rax)
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
cmpq $0x0, 0x38(%rax)
jne 0x1a8f82
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
leaq 0x392546(%rip), %rcx    # 0x53b4c4
movq %rcx, 0x38(%rax)
callq 0x11d4a0
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movq %rcx, 0x58(%rax)
movl $0x1, %edi
leaq -0xc0573(%rip), %rsi    # 0xe8a30
xorl %eax, %eax
movl %eax, %edx
callq 0xe0c40
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movq %rcx, 0x68(%rax)
movq 0x10(%rsp), %rdi
movq 0x80(%rsp), %rsi
callq 0x1a9090
movl %eax, 0xc(%rsp)
cmpl $0x0, 0xc(%rsp)
je 0x1a8fee
movq 0x18(%rsp), %rdi
callq 0x1a7a70
movq $0x0, 0x40(%rsp)
jmp 0x1a9044
jmp 0x1a8ff0
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
cmpq $0x0, 0x40(%rax)
jne 0x1a9038
movq 0x492f99(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x36d002(%rip), %rsi    # 0x516013
leaq 0x3b08a9(%rip), %rdx    # 0x5598c1
leaq 0x3b0864(%rip), %rcx    # 0x559883
leaq 0x3b0878(%rip), %r8     # 0x55989e
movl $0x1f3, %r9d            # imm = 0x1F3
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1a903a
movq 0x18(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
addq $0x48, %rsp
retq
nop