// File: /workspace/github_cpp_makefile_star2_O3/establishment[P]sandman/src/bin.cpp
// Function: LevenshteinDistance(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
int LevenshteinDistance(const string& a, const string& b) {
    vector<vector<int>> d(a.size() + 1, vector<int>(b.size() + 1, 0));
    for (int i = 1; i <= (int)a.size(); i += 1) {
        d[i][0] = i;
    }

    for (int i = 1; i <= (int)b.size(); i += 1) {
        d[0][i] = i;
    }

    for (int i = 1; i <= (int)a.size(); i += 1) {
        for (int j = 1; j <= (int)b.size(); j += 1) {
            d[i][j] = min({d[i - 1][j] + 1, d[i][j - 1] + 1, d[i - 1][j - 1] + (a[i - 1] == b[j - 1] ? 0 : 1)});
        }
    }

    return d[a.size()][b.size()];
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %r15
movq 0x8(%rsi), %rsi
incq %rsi
leaq 0x14(%rsp), %rdx
movl $0x0, (%rdx)
leaq 0x18(%rsp), %r12
leaq 0x7(%rsp), %rcx
movq %r12, %rdi
callq 0x370be
incq %r15
leaq 0x30(%rsp), %rdi
leaq 0x6(%rsp), %rcx
movq %r15, %rsi
movq %r12, %rdx
callq 0x3723a
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x2e38c
movq 0x28(%rsp), %rsi
subq %rdi, %rsi
callq 0x27480
movq 0x8(%r14), %r9
movq 0x30(%rsp), %rcx
testl %r9d, %r9d
jle 0x2e3b8
leal 0x1(%r9), %edx
leaq 0x18(%rcx), %rsi
movl $0x1, %edi
movq (%rsi), %rax
movl %edi, (%rax)
incq %rdi
addq $0x18, %rsi
cmpq %rdi, %rdx
jne 0x2e3a7
movq 0x8(%rbx), %rdx
testl %edx, %edx
jle 0x2e462
movq (%rcx), %rsi
leaq 0x1(%rdx), %rax
movl %eax, %r8d
andl $0x1, %eax
movq %r8, %rdi
subq %rax, %rdi
addq $-0x2, %r8
movq %r8, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
xorl %r8d, %r8d
movdqa 0x26c60(%rip), %xmm1    # 0x55050
movdqa 0x26c68(%rip), %xmm2    # 0x55060
pxor %xmm2, %xmm0
pcmpeqd %xmm3, %xmm3
movq %r8, %xmm4
pshufd $0x44, %xmm4, %xmm4     # xmm4 = xmm4[0,1,0,1]
por %xmm1, %xmm4
pxor %xmm2, %xmm4
movdqa %xmm4, %xmm5
pcmpgtd %xmm0, %xmm5
pcmpeqd %xmm0, %xmm4
pshufd $0xf5, %xmm4, %xmm6     # xmm6 = xmm4[1,1,3,3]
pand %xmm5, %xmm6
pshufd $0xf5, %xmm5, %xmm4     # xmm4 = xmm5[1,1,3,3]
por %xmm6, %xmm4
movd %xmm4, %eax
notl %eax
testb $0x1, %al
je 0x2e443
leal 0x1(%r8), %eax
movl %eax, 0x4(%rsi,%r8,4)
pxor %xmm3, %xmm4
pextrw $0x4, %xmm4, %eax
testb $0x1, %al
je 0x2e459
leal 0x2(%r8), %eax
movl %eax, 0x8(%rsi,%r8,4)
addq $0x2, %r8
cmpq %r8, %rdi
jne 0x2e400
movq %r9, 0x8(%rsp)
testl %r9d, %r9d
jle 0x2e4e6
movq (%r14), %rsi
movq (%rbx), %rdi
leal 0x1(%rdx), %r8d
movq 0x8(%rsp), %rax
leal 0x1(%rax), %r9d
decq %r8
movl $0x1, %r10d
testl %edx, %edx
jle 0x2e4de
leaq -0x1(%r10), %r11
leaq (%r10,%r10,2), %rax
movq -0x18(%rcx,%rax,8), %rbx
movq (%rcx,%rax,8), %r14
movl (%r14), %ebp
xorl %r15d, %r15d
movl 0x4(%rbx,%r15,4), %r13d
incl %r13d
incl %ebp
movb (%rsi,%r11), %al
xorl %r12d, %r12d
cmpb (%rdi,%r15), %al
setne %al
cmpl %r13d, %ebp
jl 0x2e4c3
movl %r13d, %ebp
movb %al, %r12b
addl (%rbx,%r15,4), %r12d
cmpl %ebp, %r12d
cmovll %r12d, %ebp
movl %ebp, 0x4(%r14,%r15,4)
incq %r15
cmpq %r15, %r8
jne 0x2e4a3
incq %r10
cmpq %r9, %r10
jne 0x2e488
movq 0x8(%rsp), %rax
leaq (%rax,%rax,2), %rax
movq (%rcx,%rax,8), %rax
movl (%rax,%rdx,4), %ebx
leaq 0x30(%rsp), %rdi
callq 0x372d2
movl %ebx, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x2e52b
movq 0x28(%rsp), %rsi
subq %rdi, %rsi
callq 0x27480
movq %rbx, %rdi
callq 0x27830