// File: /workspace/github_cpp_makefile_star2_O1/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 0x5fdde
movl %eax, %ebp
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5fdde
testb %bpl, %bpl
jne 0x5f8a0
testb %al, %al
jne 0x5f8a0
callq 0xb070
movq %rax, %r15
movl $0x0, (%rax)
movq 0x8(%r14), %rax
cmpq 0x8(%rbx), %rax
jne 0x5f93e
movq (%r14), %rax
movq 0x8(%r14), %rsi
cmpb $0x2d, -0x1(%rax,%rsi)
jne 0x5f91b
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
cmpb $0x2d, -0x1(%rax,%rcx)
jne 0x5f91b
decq %rsi
movl $0x1, %edx
movq %r14, %rdi
callq 0xb110
movq 0x8(%rbx), %rsi
decq %rsi
movl $0x1, %edx
movq %rbx, %rdi
callq 0xb110
jmp 0x5f8d9
movl $0x0, (%r15)
cmpq 0x8(%rbx), %rsi
jne 0x5f9dd
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xb6b0
testl %eax, %eax
jne 0x5fa7c
leaq 0x98(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x376ca(%rip), %rsi     # 0x97028
leaq 0x376d9(%rip), %rdx     # 0x9703e
leaq 0x88(%rsp), %rdi
callq 0xdc76
leaq 0xa8(%rsp), %rdi
movl $0x1f9, %esi            # imm = 0x1F9
callq 0xe1a8
leaq 0xc8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0xe100
leaq 0x33829(%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 0x5fa86
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x5fa93
callq 0xb6b0
testl %eax, %eax
jne 0x5fa7c
leaq 0x98(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x3762b(%rip), %rsi     # 0x97028
leaq 0x3763a(%rip), %rdx     # 0x9703e
leaq 0x88(%rsp), %rdi
callq 0xdc76
leaq 0xa8(%rsp), %rdi
movl $0x202, %esi            # imm = 0x202
callq 0xe1a8
leaq 0xc8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0xe100
leaq 0x3378a(%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 0x5fb07
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x5fb14
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 0x37c92(%rip), %rsi     # 0x9774e
leaq 0x37cbf(%rip), %rdx     # 0x97782
leaq 0x68(%rsp), %rdi
callq 0xdc76
leaq 0x33ddd(%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 0x5fb81
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x5fb8e
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 0x37c11(%rip), %rsi     # 0x9774e
leaq 0x37c3e(%rip), %rdx     # 0x97782
leaq 0x68(%rsp), %rdi
callq 0xdc76
leaq 0x33d5c(%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 0x5fbf1
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x5fbfe
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 0x37bc0(%rip), %rsi     # 0x97783
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 0x5fc61
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x5fc6e
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 0x37b50(%rip), %rsi     # 0x97783
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 0x5fc8f
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x5fc9c
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 0x5fcc1
jmp 0x5fcdd
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x5fce0
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x5fce0
movq %rax, %rbx
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5fd08
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x5fd08
jmp 0x5fd05
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x5fd26
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x5fd26
jmp 0x5fd23
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x5fd44
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x5fd44
jmp 0x5fd41
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x5fd62
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x5fd62
jmp 0x5fd5f
movq %rax, %rbx
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5fd8a
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x5fd8a
jmp 0x5fd87
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5fdb2
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x5fdb2
jmp 0x5fdaf
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r14, %rdi
je 0x5fdd6
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x5fdd6
jmp 0x5fdd3
movq %rax, %rbx
movq %rbx, %rdi
callq 0xba60