// File: /workspace/github_cpp_makefile_star2_O3/ncbi[P]amr/alignment.cpp
// Function: Alignment_sp::normalizeSeqs(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void normalizeSeqs (string &seq1,
                    string &seq2)
{
  for (;;)
  {
    const bool b1 = normalizeSeq (seq1, seq2);
    const bool b2 = normalizeSeq (seq2, seq1);
    if (   ! b1 
        && ! b2
       )
      break;
  }
  ASSERT (seq1. size () == seq2. size ());
  
  while (   seq1. back () == '-'
         && seq2. back () == '-'
        )
  {
    seq1. erase (seq1. size () - 1, 1);
    seq2. erase (seq2. size () - 1, 1);
  }
  ASSERT (seq1. size () == seq2. size ());
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rsi, %rbx
movq %rdi, %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x5fd22
movl %eax, %ebp
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5fd22
testb %bpl, %bpl
jne 0x5f7d9
testb %al, %al
jne 0x5f7d9
callq 0xb070
movl $0x0, (%rax)
movq 0x8(%r14), %rsi
cmpq 0x8(%rbx), %rsi
jne 0x5f882
movq %rax, %r15
movq (%r14), %rax
cmpb $0x2d, -0x1(%rax,%rsi)
jne 0x5f870
movq (%rbx), %rcx
movq 0x8(%rbx), %rax
cmpb $0x2d, -0x1(%rcx,%rax)
jne 0x5f860
decq %rsi
movl $0x1, %edx
movq %r14, %rdi
callq 0xb110
movq 0x8(%rbx), %rsi
decq %rsi
movl $0x1, %edx
movq %rbx, %rdi
callq 0xb110
movq (%r14), %rax
movq 0x8(%r14), %rsi
cmpb $0x2d, -0x1(%rax,%rsi)
je 0x5f81c
movq 0x8(%rbx), %rax
movl $0x0, (%r15)
cmpq %rax, %rsi
jne 0x5f921
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xb6b0
testl %eax, %eax
jne 0x5f9c0
leaq 0x98(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x37776(%rip), %rsi     # 0x97018
leaq 0x37785(%rip), %rdx     # 0x9702e
leaq 0x88(%rsp), %rdi
callq 0xdc76
leaq 0xa8(%rsp), %rdi
movl $0x1f9, %esi            # imm = 0x1F9
callq 0xe1b2
leaq 0xc8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0xe10a
leaq 0x338e5(%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 0x5f9ca
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x5f9d7
callq 0xb6b0
testl %eax, %eax
jne 0x5f9c0
leaq 0x98(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x376d7(%rip), %rsi     # 0x97018
leaq 0x376e6(%rip), %rdx     # 0x9702e
leaq 0x88(%rsp), %rdi
callq 0xdc76
leaq 0xa8(%rsp), %rdi
movl $0x202, %esi            # imm = 0x202
callq 0xe1b2
leaq 0xc8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0xe10a
leaq 0x33846(%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 0x5fa4b
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x5fa58
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 0x37d3e(%rip), %rsi     # 0x9773e
leaq 0x37d6b(%rip), %rdx     # 0x97772
leaq 0x68(%rsp), %rdi
callq 0xdc76
leaq 0x33e99(%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 0x5fac5
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x5fad2
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 0x37cbd(%rip), %rsi     # 0x9773e
leaq 0x37cea(%rip), %rdx     # 0x97772
leaq 0x68(%rsp), %rdi
callq 0xdc76
leaq 0x33e18(%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 0x5fb35
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x5fb42
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 0x37c6c(%rip), %rsi     # 0x97773
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 0x5fba5
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x5fbb2
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 0x37bfc(%rip), %rsi     # 0x97773
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 0x5fbd3
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x5fbe0
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 0x5fc07
jmp 0x5fc23
jmp 0x5fc4b
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x5fc26
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x5fc26
movq %rax, %rbx
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5fc4e
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x5fc4e
jmp 0x5fc69
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x5fc6c
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x5fc6c
jmp 0x5fc87
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x5fc8a
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x5fc8a
jmp 0x5fca5
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x5fca8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x5fca8
jmp 0x5fccd
movq %rax, %rbx
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5fcd0
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x5fcd0
jmp 0x5fcf5
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5fcf8
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x5fcf8
jmp 0x5fd17
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r14, %rdi
je 0x5fd1a
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x5fd1a
movq %rax, %rbx
movq %rbx, %rdi
callq 0xba60