user: 请将以下的汇编代码转换成C语言代码：

```asm
<findLCS>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x438,%rsp
  mov    %edx,%ebx
  mov    %edx,-0x43c(%rbp)
  mov    %ecx,%r12d
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  lea    -0x420(%rbp),%rax
  mov    %rsi,%rcx
  mov    %rdi,%rdx
  lea    D38(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  add    %ebx,%r12d
  lea    0x1(%r12),%ebx
  lea    0x0(,%rbx,4),%edi
  call   <malloc@plt>
  mov    %rax,%r14
  test   %ebx,%ebx
  jle    L200
  mov    %r12d,%r13d
  lea    0x4(%rax,%r13,4),%rdx
L82:
  movl   $0xffffffff,(%rax)
  add    $0x4,%rax
  cmp    %rax,%rdx
  jne    L82
  lea    -0x420(%rbp),%rdi
  mov    %r14,%rdx
  mov    %ebx,%esi
  call   <buildSuffixArray@plt>
  movslq %r12d,%r12
  lea    0xf(,%r12,4),%rax
  mov    %rax,%rcx
  and    $0xfffffffffffffff0,%rcx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rdx
  sub    %rax,%rdx
L243:
  cmp    %rdx,%rsp
  je     L98
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L243
L22:
  lea    0x1(%rbx),%rax
  cmp    %rbx,%r13
  je     L65
  mov    %rax,%rbx
L21:
  mov    %ebx,%edi
  test   %ebx,%ebx
  jle    L22
  cmp    %r12d,-0x4(%r15,%rbx,4)
  jle    L22
  mov    -0x4(%r14,%rbx,4),%edx
  mov    (%r14,%rbx,4),%esi
  mov    -0x43c(%rbp),%ecx
  call   <isValid@plt>
  test   %rax,%rax
  je     L22
  mov    -0x4(%r15,%rbx,4),%r12d
  jmp    L22
L234:
  lea    0x1(%rbx),%rax
  cmp    %rbx,-0x438(%rbp)
  je     L290
  mov    %rax,%rbx
L237:
  mov    %ebx,%edi
  cmp    %r12d,-0x4(%r15,%rbx,4)
  jne    L234
  mov    -0x4(%r14,%rbx,4),%edx
  mov    (%r14,%rbx,4),%esi
  mov    -0x43c(%rbp),%ecx
  call   <isValid@plt>
  test   %rax,%rax
  je     L234
  movslq -0x4(%r14,%rbx,4),%rax
  movsbl -0x420(%rbp,%rax,1),%edx
  lea    D22(%rip),%rsi
  mov    -0x448(%rbp),%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  mov    -0x4(%r14,%rbx,4),%eax
  add    $0x1,%eax
  cmp    $0x1,%r12d
  jle    L249
  movslq %eax,%r13
  mov    %r15,-0x458(%rbp)
L154:
  movsbl -0x420(%rbp,%r13,1),%edx
  lea    -0x422(%rbp),%r15
  lea    D22(%rip),%rsi
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  mov    %r15,%rsi
  mov    -0x448(%rbp),%rdi
  call   <strcat@plt>
  add    $0x1,%r13
  mov    %r12d,%eax
  add    -0x4(%r14,%rbx,4),%eax
  cmp    %r13d,%eax
  jg     L154
  mov    -0x458(%rbp),%r15
L249:
  mov    -0x448(%rbp),%rsi
  mov    -0x460(%rbp),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L234
  mov    -0x448(%rbp),%r13
  mov    %r13,%rdi
  call   <puts@plt>
  mov    %r13,%rsi
  mov    -0x460(%rbp),%rdi
  call   <strcpy@plt>
  jmp    L234
L290:
  mov    -0x450(%rbp),%rsp
L63:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L132
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L55:
  mov    %rsi,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L255
  orq    $0x0,-0x8(%rsp,%rdx,1)
L255:
  mov    %rsp,-0x448(%rbp)
  add    $0xf,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffffff0,%rcx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rdx
  sub    %rax,%rdx
L29:
  cmp    %rdx,%rsp
  je     L90
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L29
L90:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L12
  orq    $0x0,-0x8(%rsp,%rax,1)
L12:
  mov    %rsp,-0x460(%rbp)
  mov    $0x0,%ebx
  mov    %r13,-0x438(%rbp)
  jmp    L237
L65:
  test   %r12d,%r12d
  je     L149
  mov    %rsp,-0x450(%rbp)
  lea    0x1(%r12),%eax
  cltq
  lea    0xf(%rax),%rdx
  mov    %rdx,%rsi
  and    $0xfffffffffffffff0,%rsi
  and    $0xfffffffffffff000,%rdx
  mov    %rsp,%rcx
  sub    %rdx,%rcx
L251:
  cmp    %rcx,%rsp
  je     L55
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L251
L200:
  lea    -0x420(%rbp),%rdi
  mov    %rax,%rdx
  mov    %ebx,%esi
  call   <buildSuffixArray@plt>
  movslq %r12d,%r12
  lea    0xf(,%r12,4),%rax
  mov    %rax,%rcx
  and    $0xfffffffffffffff0,%rcx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rdx
  sub    %rax,%rdx
L148:
  cmp    %rdx,%rsp
  je     L248
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L148
L248:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L174
  orq    $0x0,-0x8(%rsp,%rax,1)
L174:
  mov    %rsp,%rsi
  lea    -0x420(%rbp),%rdi
  mov    %ebx,%ecx
  mov    %r14,%rdx
  call   <kasai_lcp@plt>
L149:
  lea    D34(%rip),%rdi
  call   <puts@plt>
  jmp    L63
L98:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L294
  orq    $0x0,-0x8(%rsp,%rax,1)
L294:
  mov    %rsp,%r15
  lea    -0x420(%rbp),%rdi
  mov    %ebx,%ecx
  mov    %r14,%rdx
  mov    %r15,%rsi
  call   <kasai_lcp@plt>
  mov    $0x0,%ebx
  mov    $0x0,%r12d
  jmp    L21
L132:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D38
type_infered: string
name: parse_data
arguments: data_label: D22
type_infered: string
name: parse_data
arguments: data_label: D34
type_infered: string

tool: D38: %s#%s

tool: D22: %c

tool: D34: No common sequence.

assistant: ```c
void findLCS(char *str1, char *str2, int len1, int len2) {
  int i, j;
  char text[1000];
  sprintf(text, "%s#%s", str1, str2);
  int n = len1 + len2 + 1;
  int *suffArr = malloc(sizeof(int) * n);
  for (i = 0; i < n; i++) {
    suffArr[i] = -1;
  }
  buildSuffixArray(text, n, suffArr);
  int lcp_len = n - 1;
  int lcp[lcp_len];
  kasai_lcp(text, lcp, suffArr, n);
  int max_i = 0;
  int max_lcp = 0;
  for (i = 0; i < n; i++) {
    if (i > 0) {
      if ((lcp[i - 1] > max_lcp) && (isValid(i, suffArr[i], suffArr[i - 1], len1))) {
        max_lcp = lcp[i - 1];
        max_i = i;
      }
    }
  }
  if (max_lcp == 0) {
    printf("No common sequence.\n");
  } else {
    char lcs[max_lcp + 1];
    char prev[max_lcp + 1];
    char tmp[2];
    for (i = 0; i < n; i++) {
      if ((lcp[i - 1] == max_lcp) && (isValid(i, suffArr[i], suffArr[i - 1], len1))) {
        sprintf(lcs, "%c", text[suffArr[i - 1]]);
        for (j = suffArr[i - 1] + 1; j < suffArr[i - 1] + max_lcp; j++) {
          sprintf(tmp, "%c", text[j]);
          strcat(lcs, tmp);
        }
        if (strcmp(prev, lcs) != 0) {
          printf("%s\n", lcs);
          sprintf(prev, "%s", lcs);
        }
      }
    }
  }
}
```