user: Converte this assembly snippet into its equivalent C code:

```asm
<levenstein_distance>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x38,%rsp
  mov    %rsi,-0x50(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  cmp    %rsi,%rdi
  je     L37
  mov    %rdi,%rbx
  mov    %rsi,%r15
  call   <strlen@plt>
  mov    %eax,%r14d
  mov    %r15,%rdi
  call   <strlen@plt>
  mov    %eax,-0x54(%rbp)
  test   %r14d,%r14d
  je     L101
  test   %eax,%eax
  je     L101
  cltq
  shl    $0x2,%rax
  lea    0xf(%rax),%rdx
  mov    %rdx,%rsi
  and    $0xfffffffffffffff0,%rsi
  and    $0xfffffffffffff000,%rdx
  mov    %rsp,%rcx
  sub    %rdx,%rcx
L8:
  cmp    %rcx,%rsp
  je     L171
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L8
L171:
  mov    %rsi,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L128
  orq    $0x0,-0x8(%rsp,%rdx,1)
L128:
  mov    %rsp,%r13
  add    $0xf,%rax
  mov    %rax,%rdx
  and    $0xfffffffffffffff0,%rdx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rcx
  sub    %rax,%rcx
L45:
  cmp    %rcx,%rsp
  je     L107
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L45
L107:
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L4
  orq    $0x0,-0x8(%rsp,%rax,1)
L4:
  mov    %rsp,%r12
  mov    -0x54(%rbp),%eax
  test   %eax,%eax
  jle    L50
  mov    %eax,%edx
  mov    $0x0,%eax
L80:
  mov    %eax,0x0(%r13,%rax,4)
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L80
L50:
  test   %r14d,%r14d
  jle    L2
  mov    %rbx,-0x48(%rbp)
  lea    0x1(%r14),%eax
  mov    %rax,-0x60(%rbp)
  mov    $0x1,%r15d
  mov    -0x54(%rbp),%r14d
L12:
  mov    %r15d,(%r12)
  cmpl   $0x0,-0x54(%rbp)
  jle    L102
  mov    $0x0,%ebx
L154:
  mov    -0x48(%rbp),%rax
  mov    -0x50(%rbp),%rcx
  movzbl (%rcx,%rbx,1),%ecx
  cmp    %cl,(%rax)
  setne  %dl
  movzbl %dl,%edx
  add    0x0(%r13,%rbx,4),%edx
  mov    0x4(%r13,%rbx,4),%eax
  lea    0x1(%rax),%esi
  mov    -0x4(%r12,%r15,4),%eax
  lea    0x1(%rax),%edi
  call   <min3@plt>
  mov    %eax,0x4(%r12,%rbx,4)
  add    $0x1,%rbx
  cmp    %rbx,%r14
  jne    L154
  mov    $0x0,%eax
L112:
  mov    (%r12,%rax,4),%edx
  mov    %edx,0x0(%r13,%rax,4)
  add    $0x1,%rax
  cmp    %rax,%r14
  jne    L112
L102:
  add    $0x1,%r15
  addq   $0x1,-0x48(%rbp)
  cmp    -0x60(%rbp),%r15
  jne    L12
L2:
  movslq -0x54(%rbp),%rax
  mov    (%r12,%rax,4),%eax
L37:
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  jne    L176
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L101:
  mov    $0x0,%eax
  jmp    L37
L176:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int levenstein_distance(char *s, char *t) {
  if (s == t) {
    return 0;
  }
  int len_s = strlen(s);
  int len_t = strlen(t);
  if (len_s == 0 || len_t == 0) {
    return 0;
  }
  int v0[len_t];
  int v1[len_t];
  int i;
  for (i = 0; i < len_t; i++) {
    v0[i] = i;
  }
  for (i = 0; i < len_s; i++) {
    v1[0] = i + 1;
    int j;
    for (j = 0; j < len_t; j++) {
      int cost = (s[i] == t[j]) ? 0 : 1;
      v1[j + 1] = min3(v1[i] + 1, v0[j + 1] + 1, v0[j] + cost);
    }
    for (j = 0; j < len_t; j++) {
      v0[j] = v1[j];
    }
  }
  return v1[len_t];
}
```