user: What is the c source code of the assembly code below?

```asm
<findLCS>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  mov    %ecx,%r15d
  mov    %rsi,%rcx
  push   %r14
  lea    D3(%rip),%rsi
  push   %r13
  push   %r12
  push   %rbx
  mov    %edx,%ebx
  add    %ebx,%r15d
  lea    0x1(%r15),%r14d
  movslq %r15d,%rbx
  sub    $0x448,%rsp
  mov    %edx,-0x43c(%rbp)
  mov    %rdi,%rdx
  shl    $0x2,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  lea    -0x420(%rbp),%rax
  mov    %rax,%rdi
  mov    %rax,-0x448(%rbp)
  xor    %eax,%eax
  call   <sprintf@plt>
  lea    0x0(,%r14,4),%edi
  call   <malloc@plt>
  mov    %rax,%r13
  test   %r14d,%r14d
  jle    L13
  mov    %r15d,%r12d
  mov    $0xff,%esi
  mov    %rax,%rdi
  add    $0xf,%rbx
  lea    0x4(,%r12,4),%rdx
  call   <memset@plt>
  mov    -0x448(%rbp),%rdi
  mov    %r13,%rdx
  mov    %r14d,%esi
  call   <buildSuffixArray@plt>
  mov    %rbx,%rax
  mov    %rsp,%rdx
  and    $0xfffffffffffff000,%rbx
  sub    %rbx,%rdx
  and    $0xfffffffffffffff0,%rax
  cmp    %rdx,%rsp
  je     L144
L294:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rdx,%rsp
  jne    L294
L144:
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  jne    L293
L174:
  mov    %rsp,%r10
  mov    -0x448(%rbp),%rdi
  mov    %r14d,%ecx
  mov    %r13,%rdx
  mov    %r10,%rsi
  mov    %r10,-0x438(%rbp)
  mov    %r13,%r14
  xor    %ebx,%ebx
  call   <kasai_lcp@plt>
  xor    %r15d,%r15d
  mov    -0x438(%rbp),%r13
  jmp    L173
  nopl   0x0(%rax,%rax,1)
L169:
  lea    0x1(%rbx),%rax
  cmp    %r12,%rbx
  je     L279
L64:
  mov    %rax,%rbx
L173:
  mov    %ebx,%edi
  test   %rbx,%rbx
  je     L169
  cmp    %r15d,-0x4(%r13,%rbx,4)
  jle    L169
  mov    -0x4(%r14,%rbx,4),%edx
  mov    (%r14,%rbx,4),%esi
  mov    -0x43c(%rbp),%ecx
  call   <isValid@plt>
  test   %rax,%rax
  je     L169
  mov    -0x4(%r13,%rbx,4),%r15d
  lea    0x1(%rbx),%rax
  cmp    %r12,%rbx
  jne    L64
  nopl   0x0(%rax)
L279:
  mov    %r13,%r10
  mov    %r14,%r13
  test   %r15d,%r15d
  je     L56
  lea    0x1(%r15),%eax
  mov    %rsp,%rcx
  mov    %rsp,-0x458(%rbp)
  cltq
  add    $0xf,%rax
  mov    %rax,%rsi
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rsi
  and    $0xfffffffffffffff0,%rdx
  sub    %rsi,%rcx
  cmp    %rcx,%rsp
  je     L118
L278:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L278
L118:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L183
L182:
  mov    %rsp,-0x460(%rbp)
  mov    %rax,%rdx
  mov    %rsp,%rcx
  and    $0xfffffffffffff000,%rax
  and    $0xfffffffffffffff0,%rdx
  sub    %rax,%rcx
L222:
  cmp    %rcx,%rsp
  je     L26
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L222
L13:
  mov    -0x448(%rbp),%rdi
  mov    %rax,%rdx
  add    $0xf,%rbx
  mov    %r14d,%esi
  call   <buildSuffixArray@plt>
  mov    %rbx,%rax
  mov    %rsp,%rdx
  and    $0xfffffffffffff000,%rbx
  sub    %rbx,%rdx
  and    $0xfffffffffffffff0,%rax
  cmp    %rdx,%rsp
  je     L87
L228:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rdx,%rsp
  jne    L228
L87:
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L95
  orq    $0x0,-0x8(%rsp,%rax,1)
L95:
  mov    -0x448(%rbp),%rdi
  mov    %rsp,%rsi
  mov    %r14d,%ecx
  mov    %r13,%rdx
  call   <kasai_lcp@plt>
  nopl   0x0(%rax)
L56:
  lea    D29(%rip),%rdi
  call   <puts@plt>
L231:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L113
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  xchg   %ax,%ax
L293:
  orq    $0x0,-0x8(%rsp,%rax,1)
  jmp    L174
  nopl   0x0(%rax,%rax,1)
L183:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L182
L26:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L37
L320:
  xor    %ebx,%ebx
  mov    %r12,-0x438(%rbp)
  mov    %r10,%r14
  mov    %rsp,-0x470(%rbp)
  mov    %rbx,%r12
  jmp    L275
  nopl   (%rax)
L295:
  lea    0x1(%r12),%rax
  cmp    -0x438(%rbp),%r12
  je     L31
  mov    %rax,%r12
L275:
  mov    %r12d,%edi
  cmp    %r15d,-0x4(%r14,%r12,4)
  jne    L295
  mov    -0x4(%r13,%r12,4),%edx
  mov    0x0(%r13,%r12,4),%esi
  mov    -0x43c(%rbp),%ecx
  call   <isValid@plt>
  test   %rax,%rax
  je     L295
  movslq -0x4(%r13,%r12,4),%rax
  mov    -0x460(%rbp),%rdi
  lea    D18(%rip),%rsi
  lea    -0x422(%rbp),%rbx
  movsbl -0x420(%rbp,%rax,1),%edx
  xor    %eax,%eax
  call   <sprintf@plt>
  mov    -0x4(%r13,%r12,4),%eax
  lea    0x1(%rax),%ecx
  movslq %ecx,%rcx
  cmp    $0x1,%r15d
  jle    L263
  mov    %r14,-0x468(%rbp)
  mov    -0x460(%rbp),%r14
  mov    %r12,-0x450(%rbp)
  mov    %rcx,%r12
  nopl   0x0(%rax,%rax,1)
L220:
  mov    -0x448(%rbp),%rax
  lea    D18(%rip),%rsi
  mov    %rbx,%rdi
  movsbl (%rax,%r12,1),%edx
  xor    %eax,%eax
  add    $0x1,%r12
  call   <sprintf@plt>
  mov    %rbx,%rsi
  mov    %r14,%rdi
  call   <strcat@plt>
  mov    -0x450(%rbp),%rsi
  mov    -0x4(%r13,%rsi,4),%eax
  add    %r15d,%eax
  cmp    %r12d,%eax
  jg     L220
  mov    -0x468(%rbp),%r14
  mov    %rsi,%r12
L263:
  mov    -0x460(%rbp),%rsi
  mov    -0x470(%rbp),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L295
  mov    -0x460(%rbp),%rbx
  mov    %rbx,%rdi
  call   <puts@plt>
  mov    -0x470(%rbp),%rdi
  mov    %rbx,%rsi
  call   <strcpy@plt>
  jmp    L295
  nopl   0x0(%rax)
L31:
  mov    -0x458(%rbp),%rsp
  jmp    L231
L37:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L320
L113:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D3
type_infered: string
name: retrieve_data
arguments: label: D29
type_infered: string
name: retrieve_data
arguments: label: D18
type_infered: string

tool: D3: %s#%s

tool: D29: No common sequence.

tool: D18: %c

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);
        }
      }
    }
  }
}
```