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

```asm
<numDistinct>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdi,%r14
  mov    %rsi,%r12
  call   <strlen@plt>
  mov    %eax,%ebp
  mov    %r12,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  je     L77
  mov    %eax,%r13d
  cmp    %eax,%ebp
  jl     L77
  test   %ebp,%ebp
  jle    L54
  movzbl (%r12),%edx
  mov    %r14,%rax
  mov    $0x0,%ebx
L52:
  cmp    %dl,(%rax)
  je     L12
  add    $0x1,%ebx
  add    $0x1,%rax
  cmp    %ebx,%ebp
  jne    L52
  mov    $0x0,%eax
  jmp    L115
L54:
  mov    $0x0,%ebx
L12:
  cmp    %ebx,%ebp
  je     L139
  sub    %ebx,%ebp
  mov    %ebp,%edi
  imul   %r13d,%edi
  shl    $0x2,%edi
  call   <malloc@plt>
  mov    %rax,0x8(%rsp)
  movslq %ebp,%r15
  lea    0x0(,%rbp,8),%edi
  call   <malloc@plt>
  mov    %rax,%r9
  test   %ebp,%ebp
  jle    L234
  movslq %r13d,%rcx
  shl    $0x2,%rcx
  mov    0x8(%rsp),%rdx
  mov    %ebp,%esi
  lea    (%rax,%rsi,8),%rsi
L159:
  mov    %rdx,(%rax)
  add    %rcx,%rdx
  add    $0x8,%rax
  cmp    %rsi,%rax
  jne    L159
L234:
  mov    (%r9),%rax
  movl   $0x1,(%rax)
  cmp    $0x1,%r13d
  jle    L104
  lea    -0x2(%r13),%eax
  lea    0x8(,%rax,4),%rcx
  mov    $0x4,%eax
L239:
  mov    (%r9),%rdx
  movl   $0x0,(%rdx,%rax,1)
  add    $0x4,%rax
  cmp    %rcx,%rax
  jne    L239
L104:
  cmp    $0x1,%ebp
  jle    L87
  mov    %ebp,%edi
  mov    $0x1,%eax
  movslq %ebx,%rbx
  lea    (%r14,%rbx,1),%rsi
  jmp    L60
L119:
  add    $0x1,%rax
  cmp    %rdi,%rax
  je     L143
L60:
  mov    (%r9,%rax,8),%rdx
  mov    -0x8(%r9,%rax,8),%rcx
  mov    (%rcx),%ecx
  mov    %ecx,(%rdx)
  movzbl (%r12),%edx
  cmp    %dl,(%rsi,%rax,1)
  jne    L119
  mov    (%r9,%rax,8),%rdx
  addl   $0x1,(%rdx)
  jmp    L119
L143:
  mov    %r9,%rcx
  lea    0x1(%r14,%rbx,1),%r8
  lea    -0x1(%rbp),%eax
  lea    (%r9,%rax,8),%r11
  lea    -0x2(%r13),%eax
  lea    0x8(,%rax,4),%r10
  jmp    L164
L160:
  add    $0x4,%rax
  add    $0x1,%rdx
  cmp    %rax,%r10
  je     L157
L147:
  mov    (%rcx),%rsi
  mov    (%rsi,%rax,1),%edi
  mov    0x8(%rcx),%rsi
  mov    %edi,(%rsi,%rax,1)
  movzbl (%rdx),%ebx
  cmp    %bl,(%r8)
  jne    L160
  mov    %rax,%rsi
  add    0x8(%rcx),%rsi
  mov    (%rcx),%rdi
  mov    -0x4(%rdi,%rax,1),%edi
  add    %edi,(%rsi)
  jmp    L160
L157:
  add    $0x8,%rcx
  add    $0x1,%r8
  cmp    %r11,%rcx
  je     L87
L164:
  lea    0x1(%r12),%rdx
  mov    $0x4,%eax
  cmp    $0x1,%r13d
  jg     L147
  jmp    L157
L87:
  movslq %r13d,%r13
  mov    -0x8(%r9,%r15,8),%rax
  mov    -0x4(%rax,%r13,4),%eax
L115:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L77:
  mov    $0x0,%eax
  jmp    L115
L139:
  mov    $0x0,%eax
  jmp    L115
```

assistant: ```c
int numDistinct(char *s, char *t) {
  int s_len = strlen(s);
  int t_len = strlen(t);
  if (t_len == 0 || s_len < t_len) {
    return 0;
  }
  int start = 0;
  while (start < s_len && s[start] != t[0]) {
    start++;
  }
  if (start == s_len) {
    return 0;
  }
  int i, j;
  int *table = malloc((s_len - start) * t_len * sizeof(int));
  int **dp = malloc((s_len - start) * sizeof(int *));
  for (i = 0; i < s_len - start; i++) {
    dp[i] = &table[i * t_len];
  }
  dp[0][0] = 1;
  for (i = 1; i < t_len; i++) {
    dp[0][i] = 0;
  }
  for (i = 1; i < s_len - start; i++) {
    dp[i][0] = dp[i - 1][0];
    if (s[start + i] == t[0]) {
      dp[i][0]++;
    }
  }
  for (i = 1; i < s_len - start; i++) {
    for (j = 1; j < t_len; j++) {
      dp[i][j] = dp[i - 1][j];
      if (s[start + i] == t[j]) {
        dp[i][j] += dp[i - 1][j - 1];
      }
    }
  }
  return dp[s_len - start - 1][t_len - 1];
}
```