// File: ncbi[P]amr/./alignment.hpp
// Function: Alignment_sp::AmrMutation::apply(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&) const
void apply (string &seq) const
    { if (pos_real >= seq. size ())
        throw runtime_error ("AmrMutation position " + to_string (pos_real) + " is outside the sequence: " + seq);
      if (frameshift != no_index)
        throw runtime_error ("AmrMutation is a frameshift");
      if (verbose ())
        cerr         << seq. substr (0, pos_real) 
             << endl << allele 
             << endl << seq. substr (pos_real + reference. size ())
             << endl;
      seq = seq. substr (0, pos_real) + allele + seq. substr (pos_real + reference. size ());
    }

// Assembly:
subq $0x1d8, %rsp            # imm = 0x1D8
movq %rdi, 0x1d0(%rsp)
movq %rsi, 0x1c8(%rsp)
movq 0x1d0(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x70(%rsp)
movq 0x1c8(%rsp), %rdi
callq 0xd520
movq %rax, %rcx
movq 0x70(%rsp), %rax
cmpq %rcx, %rax
jb 0x11ebf
movb $0x1, 0x13b(%rsp)
movl $0x10, %edi
callq 0xd3b0
movq %rax, %rcx
movq 0x68(%rsp), %rax
movq %rcx, 0x60(%rsp)
movq 0x8(%rax), %rsi
leaq 0x148(%rsp), %rdi
callq 0x122b0
jmp 0x11d6d
leaq 0xd14db(%rip), %rsi     # 0xe324f
leaq 0x168(%rsp), %rdi
leaq 0x148(%rsp), %rdx
callq 0x12260
jmp 0x11d8b
leaq 0xd14d3(%rip), %rdx     # 0xe3265
leaq 0x188(%rsp), %rdi
leaq 0x168(%rsp), %rsi
callq 0x114c0
jmp 0x11da9
movq 0x1c8(%rsp), %rdx
leaq 0x1a8(%rsp), %rdi
leaq 0x188(%rsp), %rsi
callq 0x12210
jmp 0x11dc8
movq 0x60(%rsp), %rdi
leaq 0x1a8(%rsp), %rsi
callq 0xdbf0
jmp 0x11ddc
movq 0x60(%rsp), %rdi
movb $0x0, 0x13b(%rsp)
movq 0x10e200(%rip), %rsi    # 0x11fff0
movq 0x10e179(%rip), %rdx    # 0x11ff70
callq 0xdcd0
jmp 0x121fe
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x140(%rsp)
movl %eax, 0x13c(%rsp)
jmp 0x11ea4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x140(%rsp)
movl %eax, 0x13c(%rsp)
jmp 0x11e97
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x140(%rsp)
movl %eax, 0x13c(%rsp)
jmp 0x11e8a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x140(%rsp)
movl %eax, 0x13c(%rsp)
jmp 0x11e7d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x140(%rsp)
movl %eax, 0x13c(%rsp)
leaq 0x1a8(%rsp), %rdi
callq 0xdf08
leaq 0x188(%rsp), %rdi
callq 0xdf08
leaq 0x168(%rsp), %rdi
callq 0xdf08
leaq 0x148(%rsp), %rdi
callq 0xdf08
testb $0x1, 0x13b(%rsp)
jne 0x11eb0
jmp 0x11eba
movq 0x60(%rsp), %rdi
callq 0xd570
jmp 0x121f1
movq 0x68(%rsp), %rax
cmpq $-0x1, 0x98(%rax)
je 0x11f2c
movl $0x10, %edi
callq 0xd3b0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x58(%rsp)
leaq 0xd1396(%rip), %rsi     # 0xe3280
callq 0xd2f0
jmp 0x11ef1
movq 0x58(%rsp), %rdi
movq 0x10e0f3(%rip), %rsi    # 0x11fff0
movq 0x10e06c(%rip), %rdx    # 0x11ff70
callq 0xdcd0
movq 0x58(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x140(%rsp)
movl %eax, 0x13c(%rsp)
callq 0xd570
jmp 0x121f1
xorl %edi, %edi
callq 0x23220
testb $0x1, %al
jne 0x11f3c
jmp 0x1209d
movq 0x68(%rsp), %rax
movq 0x1c8(%rsp), %rsi
movq 0x8(%rax), %rcx
xorl %eax, %eax
movl %eax, %edx
leaq 0x118(%rsp), %rdi
movq %rdi, 0x48(%rsp)
callq 0xd740
movq 0x48(%rsp), %rsi
movq 0x10e079(%rip), %rdi    # 0x11ffe8
callq 0xd680
movq %rax, 0x50(%rsp)
jmp 0x11f7b
movq 0x50(%rsp), %rdi
movq 0x10dfc9(%rip), %rsi    # 0x11ff50
callq 0xd760
movq %rax, 0x40(%rsp)
jmp 0x11f93
movq 0x40(%rsp), %rdi
movq 0x68(%rsp), %rsi
addq $0x50, %rsi
callq 0xd680
movq %rax, 0x38(%rsp)
jmp 0x11fad
movq 0x38(%rsp), %rdi
movq 0x10df97(%rip), %rsi    # 0x11ff50
callq 0xd760
movq %rax, 0x30(%rsp)
jmp 0x11fc5
movq 0x68(%rsp), %rdi
movq 0x1c8(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x8(%rdi), %rax
movq %rax, 0x20(%rsp)
addq $0x30, %rdi
callq 0xd520
movq 0x20(%rsp), %rdx
movq 0x28(%rsp), %rsi
addq %rax, %rdx
leaq 0xf8(%rsp), %rdi
movq $-0x1, %rcx
callq 0xd740
jmp 0x1200c
movq 0x30(%rsp), %rdi
leaq 0xf8(%rsp), %rsi
callq 0xd680
movq %rax, 0x18(%rsp)
jmp 0x12025
movq 0x18(%rsp), %rdi
movq 0x10df1f(%rip), %rsi    # 0x11ff50
callq 0xd760
jmp 0x12038
leaq 0xf8(%rsp), %rdi
callq 0xdf08
leaq 0x118(%rsp), %rdi
callq 0xdf08
jmp 0x1209d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x140(%rsp)
movl %eax, 0x13c(%rsp)
jmp 0x1208b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x140(%rsp)
movl %eax, 0x13c(%rsp)
leaq 0xf8(%rsp), %rdi
callq 0xdf08
leaq 0x118(%rsp), %rdi
callq 0xdf08
jmp 0x121f1
movq 0x68(%rsp), %rax
movq 0x1c8(%rsp), %rsi
movq 0x8(%rax), %rcx
xorl %eax, %eax
movl %eax, %edx
leaq 0x98(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0xd740
movq 0x68(%rsp), %rdx
movq 0x10(%rsp), %rsi
addq $0x50, %rdx
leaq 0xb8(%rsp), %rdi
callq 0x12210
jmp 0x120e1
movq 0x68(%rsp), %rdi
movq 0x1c8(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rdi), %rax
movq %rax, (%rsp)
addq $0x30, %rdi
callq 0xd520
movq (%rsp), %rdx
movq 0x8(%rsp), %rsi
addq %rax, %rdx
leaq 0x78(%rsp), %rdi
movq $-0x1, %rcx
callq 0xd740
jmp 0x12123
leaq 0xd8(%rsp), %rdi
leaq 0xb8(%rsp), %rsi
leaq 0x78(%rsp), %rdx
callq 0x11510
jmp 0x1213f
movq 0x1c8(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
callq 0xd900
leaq 0xd8(%rsp), %rdi
callq 0xdf08
leaq 0x78(%rsp), %rdi
callq 0xdf08
leaq 0xb8(%rsp), %rdi
callq 0xdf08
leaq 0x98(%rsp), %rdi
callq 0xdf08
addq $0x1d8, %rsp            # imm = 0x1D8
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x140(%rsp)
movl %eax, 0x13c(%rsp)
jmp 0x121e4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x140(%rsp)
movl %eax, 0x13c(%rsp)
jmp 0x121d7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x140(%rsp)
movl %eax, 0x13c(%rsp)
leaq 0x78(%rsp), %rdi
callq 0xdf08
leaq 0xb8(%rsp), %rdi
callq 0xdf08
leaq 0x98(%rsp), %rdi
callq 0xdf08
movq 0x140(%rsp), %rdi
callq 0xdd40
nop