// File: /workspace/github_cpp_makefile_star2_O1/ncbi[P]amr/alignment.cpp
// Function: Alignment_sp::SeqChange::finish(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long)
bool SeqChange::finish (const string &refSeq,
                        size_t flankingLen)
{
  setSeq ();
  if (refSeq [start] == '-')
  {
    QC_ASSERT (start);
    start--;
    len++;
    ASSERT (refSeq [start] != '-');
    setSeq ();
  }
  ASSERT (! reference. empty ());
  return finishPos (flankingLen);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
callq 0x5c82c
movq 0x18(%r14), %r12
movq (%r15), %r15
cmpb $0x2d, (%r15,%r12)
jne 0x5c178
callq 0xb070
movl $0x0, (%rax)
testq %r12, %r12
je 0x5c245
leaq -0x1(%r12), %rcx
movq %rcx, 0x18(%r14)
incq 0x20(%r14)
movl $0x0, (%rax)
cmpb $0x2d, -0x1(%r15,%r12)
je 0x5c2e4
movq %r14, %rdi
callq 0x5c82c
callq 0xb070
movl $0x0, (%rax)
cmpq $0x0, 0x30(%r14)
je 0x5c1a6
movq %r14, %rdi
movq %rbx, %rsi
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x5d700
callq 0xb6b0
testl %eax, %eax
jne 0x5c383
leaq 0x98(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x3ae62(%rip), %rsi     # 0x97028
leaq 0x3ae71(%rip), %rdx     # 0x9703e
leaq 0x88(%rsp), %rdi
callq 0xdc76
leaq 0xa8(%rsp), %rdi
movl $0x11e, %esi            # imm = 0x11E
callq 0xe1a8
leaq 0xc8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0xe100
leaq 0x36fc1(%rip), %rsi     # 0x931d1
leaq 0xc8(%rsp), %rdi
callq 0xbb10
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x5c38d
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x5c39a
callq 0xb6b0
testl %eax, %eax
jne 0x5c383
leaq 0x98(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x3adc3(%rip), %rsi     # 0x97028
leaq 0x3add2(%rip), %rdx     # 0x9703e
leaq 0x88(%rsp), %rdi
callq 0xdc76
leaq 0xa8(%rsp), %rdi
movl $0x118, %esi            # imm = 0x118
callq 0xe1a8
leaq 0xc8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0xe100
leaq 0x36f22(%rip), %rsi     # 0x931d1
leaq 0xc8(%rsp), %rdi
callq 0xbb10
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x5c40e
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x5c41b
callq 0xb6b0
testl %eax, %eax
jne 0x5c383
leaq 0x98(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x3ad24(%rip), %rsi     # 0x97028
leaq 0x3ad33(%rip), %rdx     # 0x9703e
leaq 0x88(%rsp), %rdi
callq 0xdc76
leaq 0xa8(%rsp), %rdi
movl $0x11b, %esi            # imm = 0x11B
callq 0xe1a8
leaq 0xc8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0xe100
leaq 0x36e83(%rip), %rsi     # 0x931d1
leaq 0xc8(%rsp), %rdi
callq 0xbb10
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x5c48f
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x5c49c
movl $0x1, %edi
callq 0xb6d0
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x78(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x3b0bf(%rip), %rsi     # 0x97482
leaq 0x3b0f4(%rip), %rdx     # 0x974be
leaq 0x68(%rsp), %rdi
callq 0xdc76
leaq 0x374d6(%rip), %rsi     # 0x938b1
leaq 0x68(%rsp), %rdi
callq 0xbb10
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x5c510
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x5c51d
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x78(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x3b03e(%rip), %rsi     # 0x97482
leaq 0x3b073(%rip), %rdx     # 0x974be
leaq 0x68(%rsp), %rdi
callq 0xdc76
leaq 0x37455(%rip), %rsi     # 0x938b1
leaq 0x68(%rsp), %rdi
callq 0xbb10
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x5c587
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x5c594
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x78(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x3afbd(%rip), %rsi     # 0x97482
leaq 0x3aff2(%rip), %rdx     # 0x974be
leaq 0x68(%rsp), %rdi
callq 0xdc76
leaq 0x373d4(%rip), %rsi     # 0x938b1
leaq 0x68(%rsp), %rdi
callq 0xbb10
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x5c5fe
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x5c60b
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
movq 0x8(%rax), %rsi
leaq 0x28(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xe8(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xe100
leaq 0x3ad98(%rip), %rsi     # 0x972ea
leaq 0xe8(%rsp), %rdi
callq 0xbb10
leaq 0x58(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x5c66e
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x5c67b
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
movq 0x8(%rax), %rsi
leaq 0x28(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xe8(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xe100
leaq 0x3c6bf(%rip), %rsi     # 0x98c88
leaq 0xe8(%rsp), %rdi
callq 0xbb10
leaq 0x58(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x5c69c
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x5c6a9
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
movq 0x8(%rax), %rsi
leaq 0x28(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xe8(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xe100
leaq 0x3ae7f(%rip), %rsi     # 0x974bf
leaq 0xe8(%rsp), %rdi
callq 0xbb10
leaq 0x58(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x5c6ca
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x5c6d7
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
movq 0x8(%rax), %rdx
leaq 0x48(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x1151b
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
movq 0x8(%rax), %rdx
leaq 0x48(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x1151b
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
movq 0x8(%rax), %rdx
leaq 0x48(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x1151b
jmp 0x5c700
jmp 0x5c71e
jmp 0x5c700
jmp 0x5c71e
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x5c721
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x5c721
jmp 0x5c746
movq %rax, %rbx
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5c749
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x5c749
jmp 0x5c746
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x5c76b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x5c76b
jmp 0x5c768
jmp 0x5c768
jmp 0x5c786
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x5c789
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x5c789
jmp 0x5c786
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x5c7ab
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x5c7ab
jmp 0x5c7a8
jmp 0x5c7a8
jmp 0x5c7d2
movq %rax, %rbx
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5c7d5
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x5c7d5
jmp 0x5c7d2
jmp 0x5c7fc
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5c7ff
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x5c7ff
jmp 0x5c7fc
jmp 0x5c820
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r14, %rdi
je 0x5c823
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x5c823
jmp 0x5c820
movq %rax, %rbx
movq %rbx, %rdi
callq 0xba60
nop