// File: /workspace/github_c_makefile_star2_O2/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0xfd6a3
movq %rsi, %r13
testq %rsi, %rsi
je 0xfd6a3
movq %rdi, %rbp
movl %edx, %r14d
movl %ecx, %r12d
movl %r8d, %r15d
movl %r9d, (%rsp)
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0xfd2ab
callq 0x89eb7
testb %al, %al
jne 0xfd6d4
callq 0xfd766
movq %rax, %rdi
callq 0xfc61f
movq %rax, %rbx
leaq 0x22a25c(%rip), %rdx    # 0x32751e
pushq $0x1
popq %rdi
pushq $0x70
popq %rsi
movl $0x1db, %ecx            # imm = 0x1DB
callq 0x9334a
movq %rax, 0x8(%rbx)
movq %rbp, %rdi
callq 0x73cbe
movq 0x8(%rbx), %rcx
movq %rax, (%rcx)
movq %r13, %rdi
callq 0x73cbe
movq 0x8(%rbx), %r13
movq %rax, 0x8(%r13)
movl %r14d, 0x10(%r13)
movl %r12d, 0x14(%r13)
movl %r15d, 0x18(%r13)
movl (%rsp), %eax
movl %eax, 0x1c(%r13)
movl 0x40(%rsp), %eax
movl %eax, 0x20(%r13)
movl 0x48(%rsp), %eax
movl %eax, 0x24(%r13)
movl 0x50(%rsp), %eax
movl %eax, 0x28(%r13)
movl 0x60(%rsp), %eax
movl %eax, 0x2c(%r13)
movl 0x68(%rsp), %eax
movl %eax, 0x30(%r13)
movl 0x58(%rsp), %eax
movl %eax, 0x34(%r13)
leaq 0x278ce8(%rip), %rdi    # 0x376027
callq 0x17900
testq %rax, %rax
leaq 0x20cc2c(%rip), %rcx    # 0x309f7a
cmovneq %rax, %rcx
movq %rcx, 0x38(%r13)
callq 0xacb84
movq 0x8(%rbx), %rcx
movq %rax, 0x58(%rcx)
leaq -0x69b2b(%rip), %rsi    # 0x9383f
pushq $0x1
popq %rdi
xorl %edx, %edx
callq 0x8f330
movq 0x8(%rbx), %rcx
movq %rax, 0x68(%rcx)
callq 0xacb84
movq %rax, %r12
callq 0xacb84
movq %rax, %r15
movq 0x70(%rsp), %r14
testq %r14, %r14
je 0xfd3b6
movq %r14, %rdi
callq 0x89eb7
testb %al, %al
jne 0xfd702
movq %r14, %rdi
callq 0x89eb7
testb %al, %al
jne 0xfd730
movq %r12, %rdi
callq 0xad357
movq 0x8(%rbx), %rax
movq 0x38(%rax), %rsi
movq %r12, %rdi
callq 0xacbfb
leaq 0x201d32(%rip), %rsi    # 0x2ff107
movq %r12, %rdi
callq 0xacbfb
movq 0x8(%rbx), %rax
movq (%rax), %rdi
callq 0x71dd6
movq %r12, %rdi
movq %rax, %rsi
callq 0xacbfb
movq 0x8(%rbx), %rax
movq (%rax), %rdi
callq 0x7055e
leaq 0x1(%rax), %rdi
leaq 0x22a113(%rip), %rbp    # 0x32751e
movq %rbp, %rsi
movl $0x191, %edx            # imm = 0x191
callq 0x93160
movq %rax, %r13
movq 0x8(%rbx), %rax
movq (%rax), %rdi
callq 0x7055e
movb $0x0, (%r13,%rax)
movq 0x8(%rbx), %rax
movq (%rax), %r14
movq %r14, %rdi
callq 0x7055e
leaq -0x1(%rax), %rcx
movq %r14, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x7239d
movq 0x8(%rbx), %rax
movq (%rax), %rdi
callq 0x7055e
movq %r13, %rdi
movq %rax, %rsi
callq 0x96924
movq %rax, %r14
movq %r13, %rdi
movq %rbp, %rsi
movl $0x197, %edx            # imm = 0x197
callq 0x936f9
movq 0x8(%rbx), %rax
movq 0x38(%rax), %rsi
movq %r15, %rdi
callq 0xacbfb
movq %r15, %rdi
leaq 0x201c76(%rip), %rsi    # 0x2ff107
callq 0xacbfb
movq %r15, %rdi
movq %r14, %rsi
callq 0xacbfb
movq %r15, %rdi
callq 0xad4d2
movq 0x8(%rbx), %rcx
movq %rax, 0x40(%rcx)
movq %rax, %rdi
callq 0xad442
movq %rax, %rbp
leaq 0x22a0a9(%rip), %rsi    # 0x32756c
movq %rax, %rdi
callq 0xacbfb
movq %rbp, %rdi
callq 0xad1fa
movq %rax, %rdi
callq 0x8da98
testb %al, %al
je 0xfd54b
movq %rbp, %rdi
callq 0xae103
leaq 0x22a030(%rip), %rsi    # 0x32751e
movq %r14, %rdi
movl $0x1bf, %edx            # imm = 0x1BF
callq 0x936f9
movq %r12, %rdi
callq 0xae103
movq %r15, %rdi
callq 0xae103
movq 0x8(%rbx), %rax
cmpq $0x0, 0x40(%rax)
jne 0xfd680
movq 0x33aa47(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1e7ae8(%rip), %rsi    # 0x2e5013
leaq 0x22a00f(%rip), %rdx    # 0x327541
leaq 0x229fca(%rip), %rcx    # 0x327503
leaq 0x229fde(%rip), %r8     # 0x32751e
movl $0x1f3, %r9d            # imm = 0x1F3
jmp 0xfd75a
movq %r14, (%rsp)
movq 0x8(%rbx), %rax
movq 0x40(%rax), %rdi
callq 0xad1fa
movq 0x8(%rbx), %rcx
movq (%rcx), %rsi
movq 0x68(%rcx), %rdx
movq %rax, %rdi
movq 0x70(%rsp), %r13
movq %r13, %rcx
callq 0xfe26c
testl %eax, %eax
je 0xfd583
xorl %r14d, %r14d
jmp 0xfd630
callq 0xacb84
movq %rax, %r14
leaq 0x229fe0(%rip), %rdi    # 0x327572
callq 0x17900
testq %rax, %rax
je 0xfd5e8
movq %r14, %rdi
movq %rax, %rsi
callq 0xacbfb
leaq 0x229fd1(%rip), %rsi    # 0x32757f
movq %r14, %rdi
callq 0xacbfb
movq %r14, %rdi
callq 0xad1fa
movq %rax, %rdi
callq 0x8da98
testb %al, %al
jne 0xfd5f7
movq %r14, %rdi
callq 0xad1fa
leaq 0x229faf(%rip), %rsi    # 0x327588
movq %r13, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x89dbb
jmp 0xfd630
leaq 0x229f91(%rip), %rsi    # 0x327580
movq %r14, %rdi
callq 0xacbfb
movq %r14, %rdi
movq %r15, %rsi
callq 0xacd13
leaq 0x264f27(%rip), %rsi    # 0x362530
movq %r14, %rdi
callq 0xacbfb
movq %r14, %rdi
movq %r15, %rsi
callq 0xacd13
movq %r14, %rdi
callq 0xad1fa
movq %rax, %rdi
callq 0x17670
testl %eax, %eax
je 0xfd692
leaq 0x229f75(%rip), %rsi    # 0x3275ac
movq %r13, %rdi
xorl %eax, %eax
callq 0x89dbb
movq %r14, %rdi
callq 0xae103
movq %rbp, %rdi
callq 0xae103
leaq 0x229ec6(%rip), %rsi    # 0x32751e
movq (%rsp), %rdi
movl $0x1bf, %edx            # imm = 0x1BF
callq 0x936f9
movq %r12, %rdi
callq 0xae103
movq %r15, %rdi
callq 0xae103
movq %rbx, %rdi
callq 0xfc715
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0xae103
movq (%rsp), %r14
jmp 0xfd4df
movq 0x33a8be(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1e795f(%rip), %rsi    # 0x2e5013
leaq 0x1f31fa(%rip), %rdx    # 0x2f08b5
leaq 0x229e41(%rip), %rcx    # 0x327503
leaq 0x229e55(%rip), %r8     # 0x32751e
movl $0x1d6, %r9d            # imm = 0x1D6
jmp 0xfd75a
movq 0x33a88d(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1e792e(%rip), %rsi    # 0x2e5013
leaq 0x1e7ad3(%rip), %rdx    # 0x2e51bf
leaq 0x229e10(%rip), %rcx    # 0x327503
leaq 0x229e24(%rip), %r8     # 0x32751e
movl $0x1d7, %r9d            # imm = 0x1D7
jmp 0xfd75a
movq 0x33a85f(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1e7900(%rip), %rsi    # 0x2e5013
leaq 0x1e7aa5(%rip), %rdx    # 0x2e51bf
leaq 0x229e36(%rip), %rcx    # 0x327557
leaq 0x229df6(%rip), %r8     # 0x32751e
movl $0x189, %r9d            # imm = 0x189
jmp 0xfd75a
movq 0x33a831(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1e78d2(%rip), %rsi    # 0x2e5013
leaq 0x1e7a77(%rip), %rdx    # 0x2e51bf
leaq 0x229e7c(%rip), %rcx    # 0x3275cb
leaq 0x229dc8(%rip), %r8     # 0x32751e
pushq $0x52
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390