user: 这段汇编代码用C语言表示是什么样的?

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  lea    D30(%rip),%rax
  mov    %rax,-0x18(%rbp)
  lea    D11(%rip),%rax
  mov    %rax,-0x10(%rbp)
  movl   $0x0,-0x2c(%rbp)
  movl   $0x0,-0x28(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x20(%rbp)
  mov    -0x10(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x1c(%rbp)
  mov    -0x10(%rbp),%rax
  mov    %rax,%rdi
  call   <_computeLPS@plt>
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x8(%rbp)
  jne    L110
  lea    D39(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%edi
  call   <exit@plt>
L110:
  movl   $0x0,-0x24(%rbp)
  jmp    L87
L73:
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x24(%rbp),%eax
  mov    %eax,%esi
  lea    D10(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x24(%rbp)
L87:
  mov    -0x10(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    %eax,-0x24(%rbp)
  jl     L73
  mov    $0xa,%edi
  call   <putchar@plt>
  jmp    L84
L9:
  mov    -0x28(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x2c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  jne    L64
  addl   $0x1,-0x28(%rbp)
  addl   $0x1,-0x2c(%rbp)
L64:
  mov    -0x28(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jne    L67
  mov    -0x2c(%rbp),%eax
  sub    -0x28(%rbp),%eax
  mov    %eax,%esi
  lea    D19(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x28(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x28(%rbp)
  jmp    L84
L67:
  mov    -0x2c(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  jge    L84
  mov    -0x28(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x2c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  je     L84
  cmpl   $0x0,-0x28(%rbp)
  je     L56
  mov    -0x28(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x28(%rbp)
  jmp    L84
L56:
  addl   $0x1,-0x2c(%rbp)
L84:
  mov    -0x2c(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  jl     L9
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  nop
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D30
datatype: string
name: extract_symbolic_data
arguments: label: D11
datatype: string
name: extract_symbolic_data
arguments: label: D39
datatype: string
name: extract_symbolic_data
arguments: label: D10
datatype: string
name: extract_symbolic_data
arguments: label: D19
datatype: string

tool: D30: THIS IS A TEST TEXT

tool: D11: TEST

tool: D39: 
Error: lsp array not allocated 

tool: D10: lsp[%d]:=%d

tool: D19: 
SUCCESS: Found pattern at %d

assistant: ```c
void main() {
  char *txt = "THIS IS A TEST TEXT";
  char *pat = "TEST";
  int *lsp;
  int i = 0, j = 0, str_len = strlen(txt), pat_len = strlen(pat);
  lsp = _computeLPS(pat);
  if (!lsp) {
    printf("\nError: lsp array not allocated ");
    exit(0);
  }
  for (int k = 0; k < strlen(pat); k++) {
    printf("lsp[%d]:=%d", k, lsp[k]);
  }
  printf("\n");
  while (i < str_len) {
    if (pat[j] == txt[i]) {
      j++;
      i++;
    }
    if (j == pat_len) {
      printf("\nSUCCESS: Found pattern at %d", i - j);
      j = lsp[j - 1];
    } else if (i < str_len && pat[j] != txt[i]) {
      if (j != 0) {
        j = lsp[j - 1];
      } else {
        i = i + 1;
      }
    }
  }
  free(lsp);
}
```