// File: /workspace/github_cpp_makefile_star2_O3/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 0x5c78a
movq 0x18(%r14), %r12
movq (%r15), %r13
movb (%r13,%r12), %bpl
callq 0xb070
movq %rax, %r15
cmpb $0x2d, %bpl
jne 0x5c0db
movl $0x0, (%r15)
testq %r12, %r12
je 0x5c1a4
leaq -0x1(%r12), %rax
movq %rax, 0x18(%r14)
incq 0x20(%r14)
movl $0x0, (%r15)
cmpb $0x2d, -0x1(%r13,%r12)
je 0x5c243
movq %r14, %rdi
callq 0x5c78a
movl $0x0, (%r15)
cmpq $0x0, 0x30(%r14)
je 0x5c105
movq %r14, %rdi
movq %rbx, %rsi
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x5d64c
callq 0xb6b0
testl %eax, %eax
jne 0x5c2e2
leaq 0x98(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x3aef3(%rip), %rsi     # 0x97018
leaq 0x3af02(%rip), %rdx     # 0x9702e
leaq 0x88(%rsp), %rdi
callq 0xdc76
leaq 0xa8(%rsp), %rdi
movl $0x11e, %esi            # imm = 0x11E
callq 0xe1b2
leaq 0xc8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0xe10a
leaq 0x37062(%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 0x5c2ec
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x5c2f9
callq 0xb6b0
testl %eax, %eax
jne 0x5c2e2
leaq 0x98(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x3ae54(%rip), %rsi     # 0x97018
leaq 0x3ae63(%rip), %rdx     # 0x9702e
leaq 0x88(%rsp), %rdi
callq 0xdc76
leaq 0xa8(%rsp), %rdi
movl $0x118, %esi            # imm = 0x118
callq 0xe1b2
leaq 0xc8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0xe10a
leaq 0x36fc3(%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 0x5c36d
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x5c37a
callq 0xb6b0
testl %eax, %eax
jne 0x5c2e2
leaq 0x98(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x3adb5(%rip), %rsi     # 0x97018
leaq 0x3adc4(%rip), %rdx     # 0x9702e
leaq 0x88(%rsp), %rdi
callq 0xdc76
leaq 0xa8(%rsp), %rdi
movl $0x11b, %esi            # imm = 0x11B
callq 0xe1b2
leaq 0xc8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0xe10a
leaq 0x36f24(%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 0x5c3ee
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x5c3fb
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 0x3b150(%rip), %rsi     # 0x97472
leaq 0x3b185(%rip), %rdx     # 0x974ae
leaq 0x68(%rsp), %rdi
callq 0xdc76
leaq 0x37577(%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 0x5c46f
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x5c47c
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 0x3b0cf(%rip), %rsi     # 0x97472
leaq 0x3b104(%rip), %rdx     # 0x974ae
leaq 0x68(%rsp), %rdi
callq 0xdc76
leaq 0x374f6(%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 0x5c4e6
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x5c4f3
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 0x3b04e(%rip), %rsi     # 0x97472
leaq 0x3b083(%rip), %rdx     # 0x974ae
leaq 0x68(%rsp), %rdi
callq 0xdc76
leaq 0x37475(%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 0x5c55d
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x5c56a
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 0xe10a
leaq 0x3ae29(%rip), %rsi     # 0x972da
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 0x5c5cd
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x5c5da
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 0xe10a
leaq 0x3c750(%rip), %rsi     # 0x98c78
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 0x5c5fb
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x5c608
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 0xe10a
leaq 0x3af10(%rip), %rsi     # 0x974af
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 0x5c629
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x5c636
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 0x1155a
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 0x1155a
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 0x1155a
jmp 0x5c65f
jmp 0x5c67d
jmp 0x5c65f
jmp 0x5c67d
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x5c680
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x5c680
jmp 0x5c6a5
movq %rax, %rbx
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5c6a8
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x5c6a8
jmp 0x5c6a5
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x5c6ca
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x5c6ca
jmp 0x5c6c7
jmp 0x5c6c7
jmp 0x5c6e5
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x5c6e8
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x5c6e8
jmp 0x5c6e5
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x5c70a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x5c70a
jmp 0x5c707
jmp 0x5c707
jmp 0x5c731
movq %rax, %rbx
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5c734
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x5c734
jmp 0x5c731
jmp 0x5c75b
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5c75e
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x5c75e
jmp 0x5c75b
jmp 0x5c77f
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r14, %rdi
je 0x5c782
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x5c782
jmp 0x5c77f
movq %rax, %rbx
movq %rbx, %rdi
callq 0xba60