// File: 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:
subq $0x298, %rsp            # imm = 0x298
movq %rdi, 0x290(%rsp)
movq %rsi, 0x288(%rsp)
movq 0x290(%rsp), %rdi
movq 0x288(%rsp), %rsi
callq 0x99300
andb $0x1, %al
movb %al, 0x287(%rsp)
movq 0x288(%rsp), %rdi
movq 0x290(%rsp), %rsi
callq 0x99300
andb $0x1, %al
movb %al, 0x286(%rsp)
testb $0x1, 0x287(%rsp)
jne 0x98cd9
testb $0x1, 0x286(%rsp)
jne 0x98cd9
jmp 0x98cdb
jmp 0x98c87
callq 0xd0a0
movl $0x0, (%rax)
movq 0x290(%rsp), %rdi
callq 0xd520
movq %rax, 0x48(%rsp)
movq 0x288(%rsp), %rdi
callq 0xd520
movq %rax, %rcx
movq 0x48(%rsp), %rax
cmpq %rcx, %rax
je 0x98f9d
callq 0xd8c0
cmpl $0x0, %eax
jne 0x98f93
leaq 0x1df(%rsp), %rdi
movq %rdi, 0x40(%rsp)
callq 0xdd50
movq 0x40(%rsp), %rdx
leaq 0x4e42e(%rip), %rsi     # 0xe7170
leaq 0x1e0(%rsp), %rdi
callq 0xfae0
jmp 0x98d51
leaq 0x1a8(%rsp), %rdi
movl $0x1f9, %esi            # imm = 0x1F9
callq 0x11600
jmp 0x98d65
leaq 0x200(%rsp), %rdi
leaq 0x1e0(%rsp), %rsi
leaq 0x1a8(%rsp), %rdx
callq 0x11510
jmp 0x98d84
leaq 0x4a446(%rip), %rdx     # 0xe31d1
leaq 0x220(%rsp), %rdi
leaq 0x200(%rsp), %rsi
callq 0x114c0
jmp 0x98da2
leaq 0x167(%rsp), %rdi
movq %rdi, 0x38(%rsp)
callq 0xdd50
movq 0x38(%rsp), %rdx
leaq 0x4ead6(%rip), %rsi     # 0xe7896
leaq 0x168(%rsp), %rdi
callq 0xfae0
jmp 0x98dcf
leaq 0x4abce(%rip), %rdx     # 0xe39a4
leaq 0x188(%rsp), %rdi
leaq 0x168(%rsp), %rsi
callq 0x114c0
jmp 0x98ded
leaq 0x240(%rsp), %rdi
leaq 0x220(%rsp), %rsi
leaq 0x188(%rsp), %rdx
callq 0x11510
jmp 0x98e0c
leaq 0x4eab8(%rip), %rdx     # 0xe78cb
leaq 0x260(%rsp), %rdi
leaq 0x240(%rsp), %rsi
callq 0x114c0
jmp 0x98e2a
leaq 0x260(%rsp), %rdi
callq 0x173d0
jmp 0x98e39
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1d0(%rsp)
movl %eax, 0x1cc(%rsp)
jmp 0x98f81
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1d0(%rsp)
movl %eax, 0x1cc(%rsp)
jmp 0x98f74
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1d0(%rsp)
movl %eax, 0x1cc(%rsp)
jmp 0x98f67
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1d0(%rsp)
movl %eax, 0x1cc(%rsp)
jmp 0x98f5a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1d0(%rsp)
movl %eax, 0x1cc(%rsp)
jmp 0x98f40
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1d0(%rsp)
movl %eax, 0x1cc(%rsp)
jmp 0x98f33
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1d0(%rsp)
movl %eax, 0x1cc(%rsp)
jmp 0x98f26
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1d0(%rsp)
movl %eax, 0x1cc(%rsp)
jmp 0x98f19
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1d0(%rsp)
movl %eax, 0x1cc(%rsp)
leaq 0x260(%rsp), %rdi
callq 0xdf08
leaq 0x240(%rsp), %rdi
callq 0xdf08
leaq 0x188(%rsp), %rdi
callq 0xdf08
leaq 0x168(%rsp), %rdi
callq 0xdf08
leaq 0x167(%rsp), %rdi
callq 0xd7a0
leaq 0x220(%rsp), %rdi
callq 0xdf08
leaq 0x200(%rsp), %rdi
callq 0xdf08
leaq 0x1a8(%rsp), %rdi
callq 0xdf08
leaq 0x1e0(%rsp), %rdi
callq 0xdf08
leaq 0x1df(%rsp), %rdi
callq 0xd7a0
jmp 0x992f2
movl $0x1, %edi
callq 0xd8e0
jmp 0x98f9f
movq 0x290(%rsp), %rdi
callq 0xd550
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x2d, %ecx
movb %al, 0x37(%rsp)
jne 0x98fd4
movq 0x288(%rsp), %rdi
callq 0xd550
movsbl (%rax), %eax
cmpl $0x2d, %eax
sete %al
movb %al, 0x37(%rsp)
movb 0x37(%rsp), %al
testb $0x1, %al
jne 0x98fde
jmp 0x99043
movq 0x290(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x290(%rsp), %rdi
callq 0xd520
movq 0x20(%rsp), %rdi
movq %rax, %rsi
subq $0x1, %rsi
movl $0x1, %edx
callq 0xd170
movq 0x288(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x288(%rsp), %rdi
callq 0xd520
movq 0x28(%rsp), %rdi
movq %rax, %rsi
subq $0x1, %rsi
movl $0x1, %edx
callq 0xd170
jmp 0x98f9f
callq 0xd0a0
movl $0x0, (%rax)
movq 0x290(%rsp), %rdi
callq 0xd520
movq %rax, 0x18(%rsp)
movq 0x288(%rsp), %rdi
callq 0xd520
movq %rax, %rcx
movq 0x18(%rsp), %rax
cmpq %rcx, %rax
je 0x992ea
callq 0xd8c0
cmpl $0x0, %eax
jne 0x992e0
leaq 0xbf(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0xdd50
movq 0x10(%rsp), %rdx
leaq 0x4e0c6(%rip), %rsi     # 0xe7170
leaq 0xc0(%rsp), %rdi
callq 0xfae0
jmp 0x990b9
leaq 0x98(%rsp), %rdi
movl $0x202, %esi            # imm = 0x202
callq 0x11600
jmp 0x990cd
leaq 0xe0(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
leaq 0x98(%rsp), %rdx
callq 0x11510
jmp 0x990ec
leaq 0x4a0de(%rip), %rdx     # 0xe31d1
leaq 0x100(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
callq 0x114c0
jmp 0x9910a
leaq 0x57(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0xdd50
movq 0x8(%rsp), %rdx
leaq 0x4e771(%rip), %rsi     # 0xe7896
leaq 0x58(%rsp), %rdi
callq 0xfae0
jmp 0x99131
leaq 0x4a86c(%rip), %rdx     # 0xe39a4
leaq 0x78(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x114c0
jmp 0x99149
leaq 0x120(%rsp), %rdi
leaq 0x100(%rsp), %rsi
leaq 0x78(%rsp), %rdx
callq 0x11510
jmp 0x99165
leaq 0x4e75f(%rip), %rdx     # 0xe78cb
leaq 0x140(%rsp), %rdi
leaq 0x120(%rsp), %rsi
callq 0x114c0
jmp 0x99183
leaq 0x140(%rsp), %rdi
callq 0x173d0
jmp 0x99192
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1d0(%rsp)
movl %eax, 0x1cc(%rsp)
jmp 0x992d1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1d0(%rsp)
movl %eax, 0x1cc(%rsp)
jmp 0x992c4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1d0(%rsp)
movl %eax, 0x1cc(%rsp)
jmp 0x992b7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1d0(%rsp)
movl %eax, 0x1cc(%rsp)
jmp 0x992aa
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1d0(%rsp)
movl %eax, 0x1cc(%rsp)
jmp 0x99293
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1d0(%rsp)
movl %eax, 0x1cc(%rsp)
jmp 0x99289
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1d0(%rsp)
movl %eax, 0x1cc(%rsp)
jmp 0x9927f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1d0(%rsp)
movl %eax, 0x1cc(%rsp)
jmp 0x99272
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1d0(%rsp)
movl %eax, 0x1cc(%rsp)
leaq 0x140(%rsp), %rdi
callq 0xdf08
leaq 0x120(%rsp), %rdi
callq 0xdf08
leaq 0x78(%rsp), %rdi
callq 0xdf08
leaq 0x58(%rsp), %rdi
callq 0xdf08
leaq 0x57(%rsp), %rdi
callq 0xd7a0
leaq 0x100(%rsp), %rdi
callq 0xdf08
leaq 0xe0(%rsp), %rdi
callq 0xdf08
leaq 0x98(%rsp), %rdi
callq 0xdf08
leaq 0xc0(%rsp), %rdi
callq 0xdf08
leaq 0xbf(%rsp), %rdi
callq 0xd7a0
jmp 0x992f2
movl $0x1, %edi
callq 0xd8e0
addq $0x298, %rsp            # imm = 0x298
retq
movq 0x1d0(%rsp), %rdi
callq 0xdd40
nop