user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<editDistanceP>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x68,%rsp
  mov    %rdi,-0x68(%rbp)
  mov    %esi,-0x6c(%rbp)
  mov    %rdx,-0x78(%rbp)
  mov    %ecx,-0x70(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,-0x80(%rbp)
  mov    -0x70(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x58(%rbp)
  mov    -0x6c(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x54(%rbp)
  mov    -0x58(%rbp),%ecx
  mov    -0x54(%rbp),%esi
  movslq %ecx,%rax
  sub    $0x1,%rax
  mov    %rax,-0x50(%rbp)
  movslq %ecx,%rax
  mov    %rax,-0x90(%rbp)
  movq   $0x0,-0x88(%rbp)
  movslq %ecx,%rax
  lea    0x0(,%rax,4),%rbx
  movslq %esi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x48(%rbp)
  movslq %ecx,%rax
  mov    %rax,%r14
  mov    $0x0,%r15d
  movslq %esi,%rax
  mov    %rax,%r12
  mov    $0x0,%r13d
  mov    %r15,%rdx
  imul   %r12,%rdx
  mov    %r13,%rax
  imul   %r14,%rax
  lea    (%rdx,%rax,1),%rdi
  mov    %r14,%rax
  mul    %r12
  add    %rdx,%rdi
  mov    %rdi,%rdx
  movslq %ecx,%rax
  mov    %rax,%r10
  mov    $0x0,%r11d
  movslq %esi,%rax
  mov    %rax,%r8
  mov    $0x0,%r9d
  mov    %r11,%rdx
  imul   %r8,%rdx
  mov    %r9,%rax
  imul   %r10,%rax
  lea    (%rdx,%rax,1),%rdi
  mov    %r10,%rax
  mul    %r8
  add    %rdx,%rdi
  mov    %rdi,%rdx
  movslq %ecx,%rdx
  movslq %esi,%rax
  imul   %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L141:
  cmp    %rdx,%rsp
  je     L46
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L141
L46:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L95
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L95:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x40(%rbp)
  movl   $0x0,-0x60(%rbp)
  jmp    L155
L80:
  mov    -0x58(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%ecx
  mov    %rbx,%rdx
  shr    $0x2,%rdx
  mov    -0x60(%rbp),%eax
  cltq
  imul   %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  mov    %rbx,%rcx
  shr    $0x2,%rcx
  mov    -0x40(%rbp),%rax
  mov    -0x60(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  mov    -0x60(%rbp),%ecx
  mov    %ecx,(%rax,%rdx,4)
  addl   $0x1,-0x60(%rbp)
L155:
  mov    -0x60(%rbp),%eax
  cmp    -0x54(%rbp),%eax
  jl     L80
  movl   $0x0,-0x60(%rbp)
  jmp    L181
L96:
  mov    -0x40(%rbp),%rax
  mov    -0x60(%rbp),%edx
  movslq %edx,%rdx
  mov    -0x60(%rbp),%ecx
  mov    %ecx,(%rax,%rdx,4)
  addl   $0x1,-0x60(%rbp)
L181:
  mov    -0x60(%rbp),%eax
  cmp    -0x58(%rbp),%eax
  jl     L96
  movl   $0x1,-0x60(%rbp)
  jmp    L25
L198:
  movl   $0x1,-0x5c(%rbp)
  jmp    L175
L50:
  mov    -0x5c(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%edx
  mov    -0x60(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rcx
  mov    -0x68(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <fitPattern@plt>
  test   %rax,%rax
  je     L195
  mov    %rbx,%rcx
  shr    $0x2,%rcx
  mov    -0x60(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x5c(%rbp),%eax
  lea    -0x1(%rax),%edi
  mov    %rbx,%rsi
  shr    $0x2,%rsi
  mov    -0x40(%rbp),%rax
  movslq %edi,%rdi
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rdi,%rdx
  mov    (%rax,%rdx,4),%edx
  mov    -0x40(%rbp),%rax
  mov    -0x5c(%rbp),%ecx
  movslq %ecx,%rdi
  mov    -0x60(%rbp),%ecx
  movslq %ecx,%rcx
  imul   %rsi,%rcx
  add    %rdi,%rcx
  mov    %edx,(%rax,%rcx,4)
  jmp    L124
L195:
  mov    %rbx,%rcx
  shr    $0x2,%rcx
  mov    -0x5c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x40(%rbp),%rax
  movslq %edx,%rsi
  mov    -0x60(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  mov    (%rax,%rdx,4),%edx
  mov    %rbx,%rsi
  shr    $0x2,%rsi
  mov    -0x60(%rbp),%eax
  lea    -0x1(%rax),%edi
  mov    -0x40(%rbp),%rax
  mov    -0x5c(%rbp),%ecx
  movslq %ecx,%r8
  movslq %edi,%rcx
  imul   %rsi,%rcx
  add    %r8,%rcx
  mov    (%rax,%rcx,4),%eax
  cmp    %eax,%edx
  jge    L4
  mov    %rbx,%rcx
  shr    $0x2,%rcx
  mov    -0x5c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x40(%rbp),%rax
  movslq %edx,%rsi
  mov    -0x60(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  mov    (%rax,%rdx,4),%edx
  mov    %rbx,%rsi
  shr    $0x2,%rsi
  mov    -0x60(%rbp),%eax
  lea    -0x1(%rax),%ecx
  mov    -0x5c(%rbp),%eax
  lea    -0x1(%rax),%edi
  mov    -0x40(%rbp),%rax
  movslq %edi,%rdi
  movslq %ecx,%rcx
  imul   %rsi,%rcx
  add    %rdi,%rcx
  mov    (%rax,%rcx,4),%eax
  cmp    %eax,%edx
  jge    L69
  mov    %rbx,%rcx
  shr    $0x2,%rcx
  mov    -0x5c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x40(%rbp),%rax
  movslq %edx,%rsi
  mov    -0x60(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  mov    (%rax,%rdx,4),%eax
  add    $0x1,%eax
  jmp    L86
L69:
  mov    %rbx,%rcx
  shr    $0x2,%rcx
  mov    -0x60(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x5c(%rbp),%eax
  lea    -0x1(%rax),%esi
  mov    -0x40(%rbp),%rax
  movslq %esi,%rsi
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  mov    (%rax,%rdx,4),%eax
  add    $0x1,%eax
  jmp    L86
L4:
  mov    %rbx,%rcx
  shr    $0x2,%rcx
  mov    -0x60(%rbp),%eax
  lea    -0x1(%rax),%esi
  mov    -0x40(%rbp),%rax
  mov    -0x5c(%rbp),%edx
  movslq %edx,%rdi
  movslq %esi,%rdx
  imul   %rcx,%rdx
  add    %rdi,%rdx
  mov    (%rax,%rdx,4),%edx
  mov    %rbx,%rsi
  shr    $0x2,%rsi
  mov    -0x60(%rbp),%eax
  lea    -0x1(%rax),%ecx
  mov    -0x5c(%rbp),%eax
  lea    -0x1(%rax),%edi
  mov    -0x40(%rbp),%rax
  movslq %edi,%rdi
  movslq %ecx,%rcx
  imul   %rsi,%rcx
  add    %rdi,%rcx
  mov    (%rax,%rcx,4),%eax
  cmp    %eax,%edx
  jge    L93
  mov    %rbx,%rcx
  shr    $0x2,%rcx
  mov    -0x60(%rbp),%eax
  lea    -0x1(%rax),%esi
  mov    -0x40(%rbp),%rax
  mov    -0x5c(%rbp),%edx
  movslq %edx,%rdi
  movslq %esi,%rdx
  imul   %rcx,%rdx
  add    %rdi,%rdx
  mov    (%rax,%rdx,4),%eax
  add    $0x1,%eax
  jmp    L86
L93:
  mov    %rbx,%rcx
  shr    $0x2,%rcx
  mov    -0x60(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x5c(%rbp),%eax
  lea    -0x1(%rax),%esi
  mov    -0x40(%rbp),%rax
  movslq %esi,%rsi
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  mov    (%rax,%rdx,4),%eax
  add    $0x1,%eax
L86:
  mov    %rbx,%rsi
  shr    $0x2,%rsi
  mov    -0x40(%rbp),%rdx
  mov    -0x5c(%rbp),%ecx
  movslq %ecx,%rdi
  mov    -0x60(%rbp),%ecx
  movslq %ecx,%rcx
  imul   %rsi,%rcx
  add    %rdi,%rcx
  mov    %eax,(%rdx,%rcx,4)
L124:
  addl   $0x1,-0x5c(%rbp)
L175:
  mov    -0x5c(%rbp),%eax
  cmp    -0x58(%rbp),%eax
  jl     L50
  addl   $0x1,-0x60(%rbp)
L25:
  mov    -0x60(%rbp),%eax
  cmp    -0x54(%rbp),%eax
  jl     L198
  shr    $0x2,%rbx
  mov    %rbx,%rcx
  mov    -0x54(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x58(%rbp),%eax
  lea    -0x1(%rax),%esi
  mov    -0x40(%rbp),%rax
  movslq %esi,%rsi
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    -0x80(%rbp),%rsp
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L7
  call   <__stack_chk_fail@plt>
L7:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

assistant: ```c
int editDistanceP(const char *t, int tlen, const char *s, int slen) {
  int m = slen + 1;
  int n = tlen + 1;
  int matrix[n][m];
  int i;
  int j;
  for (i = 0; i < n; i++) {
    memset(matrix[i], 0, m * sizeof(int));
    matrix[i][0] = i;
  }
  for (i = 0; i < m; i++)
    matrix[0][i] = i;
  for (i = 1; i < n; i++) {
    for (j = 1; j < m; j++) {
      if (fitPattern(t[i - 1], s[j - 1])) {
        matrix[i][j] = matrix[i - 1][j - 1];
      } else {
        matrix[i][j] = ((matrix[i][j - 1] + 1 < matrix[i - 1][j] + 1) ? ((matrix[i][j - 1] + 1 < matrix[i - 1][j - 1] + 1) ? matrix[i][j - 1] + 1 : matrix[i - 1][j - 1] + 1) : ((matrix[i - 1][j] + 1 < matrix[i - 1][j - 1] + 1) ? matrix[i - 1][j] + 1 : matrix[i - 1][j - 1] + 1));
      }
    }
  }
  return matrix[n - 1][m - 1];
}
```