user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0x5000(%rsp),%r11
L2:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L2
  sub    $0x8b8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x58a8(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%rdi
  mov    $0x57e4,%edx
  mov    $0x0,%esi
  call   <memset@plt>
  lea    D95(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x5800(%rsp),%rdi
  call   <gets@plt>
  lea    D8(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x5850(%rsp),%rdi
  call   <gets@plt>
  movzbl 0x5800(%rsp),%esi
  test   %sil,%sil
  je     L215
  movzbl 0x5850(%rsp),%edi
  lea    0x5801(%rsp),%rdx
  lea    0x10(%rsp),%rcx
  mov    %esi,%eax
  jmp    L226
L374:
  movzbl (%rdx),%eax
  add    $0x1,%rdx
  add    $0x12c,%rcx
  test   %al,%al
  je     L215
L226:
  cmp    %al,%dil
  jne    L374
  movl   $0x1,(%rcx)
  jmp    L374
L215:
  movzbl 0x5850(%rsp),%edx
  test   %dl,%dl
  je     L339
  mov    $0x1,%eax
  lea    0x584f(%rsp),%rcx
  jmp    L251
L241:
  add    $0x1,%rax
  movzbl (%rcx,%rax,1),%edx
  test   %dl,%dl
  je     L339
L251:
  cmp    %dl,%sil
  jne    L241
  movl   $0x1,0xc(%rsp,%rax,4)
  jmp    L241
L339:
  movzbl 0x5801(%rsp),%ecx
  test   %cl,%cl
  je     L25
  movzbl 0x5851(%rsp),%r10d
  lea    0x5802(%rsp),%r9
  lea    0x10(%rsp),%r8
  lea    0x13c(%rsp),%rdi
  lea    0x584f(%rsp),%rsi
  jmp    L179
L257:
  add    $0x1,%rax
  movzbl (%rsi,%rax,1),%edx
  test   %dl,%dl
  je     L144
L323:
  cmp    %cl,%dl
  jne    L257
  mov    -0x8(%r8,%rax,4),%ebx
  lea    0x1(%rbx),%edx
  mov    %edx,-0x4(%rdi,%rax,4)
  jmp    L257
L144:
  movzbl (%r9),%ecx
  add    $0x1,%r9
  add    $0x12c,%r8
  add    $0x12c,%rdi
  test   %cl,%cl
  je     L25
L179:
  mov    %r10d,%edx
  mov    $0x2,%eax
  test   %r10b,%r10b
  jne    L323
  jmp    L144
L25:
  mov    $0xa,%edi
  call   <putchar@plt>
  lea    D105(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpb   $0x0,0x5850(%rsp)
  je     L132
  mov    $0x0,%ebx
  lea    D21(%rip),%rbp
L131:
  mov    %ebx,%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%rbx
  cmpb   $0x0,0x5850(%rsp,%rbx,1)
  jne    L131
L132:
  mov    $0xa,%edi
  call   <putchar@plt>
  lea    D105(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movzbl 0x5850(%rsp),%esi
  test   %sil,%sil
  je     L65
  lea    0x5851(%rsp),%rbx
  lea    D112(%rip),%rbp
L335:
  movsbl %sil,%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%rbx
  movzbl -0x1(%rbx),%esi
  test   %sil,%sil
  jne    L335
L65:
  mov    $0xa,%edi
  call   <putchar@plt>
  movzbl 0x5800(%rsp),%edx
  test   %dl,%dl
  je     L57
  lea    0x10(%rsp),%rbp
  mov    %rbp,%r12
  mov    $0x0,%r15d
  lea    D21(%rip),%r14
  lea    0x5850(%rsp),%r13
  lea    0x5801(%rsp),%rax
  mov    %rax,0x8(%rsp)
L266:
  movsbl %dl,%edx
  mov    %r15d,%esi
  lea    D68(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpb   $0x0,0x5850(%rsp)
  je     L338
  mov    $0x0,%ebx
L219:
  mov    (%r12,%rbx,4),%esi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%rbx
  cmpb   $0x0,(%rbx,%r13,1)
  jne    L219
L338:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x8(%rsp),%rax
  movzbl (%rax,%r15,1),%edx
  add    $0x1,%r15
  add    $0x12c,%r12
  test   %dl,%dl
  jne    L266
  cmpb   $0x0,0x5800(%rsp)
  je     L57
  movzbl 0x5850(%rsp),%r10d
  mov    $0x0,%r8d
  mov    $0x0,%edi
  mov    $0x0,%r12d
  mov    $0x0,%ebx
  lea    0x5850(%rsp),%rcx
  lea    0x5801(%rsp),%r9
  jmp    L128
L286:
  add    $0x1,%rax
  cmpb   $0x0,(%rax,%rcx,1)
  je     L143
L28:
  mov    0x0(%rbp,%rax,4),%edx
  cmp    %ebx,%edx
  jle    L286
  mov    %eax,%edi
  mov    %esi,%r12d
  mov    %edx,%ebx
  jmp    L286
L143:
  movzbl (%r9,%r8,1),%eax
  add    $0x1,%r8
  add    $0x12c,%rbp
  test   %al,%al
  je     L58
L128:
  mov    %r8d,%esi
  mov    $0x0,%eax
  test   %r10b,%r10b
  jne    L28
  jmp    L143
L58:
  mov    %edi,%ecx
  mov    %r12d,%edx
  mov    %ebx,%esi
  lea    D40(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D82(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r12d,%eax
  sub    %ebx,%eax
  lea    0x1(%rax),%ebx
  cmp    %r12d,%ebx
  jg     L96
  movslq %ebx,%rbx
  lea    0x5800(%rsp),%rbp
L97:
  movsbl (%rbx,%rbp,1),%edi
  call   <putchar@plt>
  add    $0x1,%rbx
  cmp    %ebx,%r12d
  jge    L97
L96:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x58a8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L231
  add    $0x58b8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L57:
  mov    $0x0,%ecx
  mov    $0x0,%edx
  mov    $0x0,%esi
  lea    D40(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D82(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L96
L231:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D95
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D8
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D105
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D21
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D112
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D68
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D40
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D82
type_guessed: string

tool: D95: String 1: 

tool: D8: String 2: 

tool: D105:     

tool: D21: %3d

tool: D112:   %c

tool: D68: %2d %c

tool: D40: 

max=%d	maxi=%d	maxj=%d



tool: D82: Longest substring: 

assistant: ```c
void main() {
  char a[75], b[75];
  int mat[75][75] = {0};
  int i = 1, j = 1, max = 0, maxi = 0, maxj = 0;
  printf("String 1: ");
  gets(a);
  printf("String 2: ");
  gets(b);
  for (i = 0; a[i]; i++)
    if (a[i] == b[0])
      mat[i][0] = 1;
  for (j = 0; b[j]; j++)
    if (a[0] == b[j])
      mat[0][j] = 1;
  for (i = 1; a[i]; i++) {
    for (j = 1; b[j]; j++) {
      if (a[i] == b[j]) {
        mat[i][j] = mat[i - 1][j - 1] + 1;
      }
    }
  }
  printf("\n");
  printf("    ");
  for (j = 0; b[j]; j++)
    printf("%3d", j);
  printf("\n");
  printf("    ");
  for (j = 0; b[j]; j++)
    printf("  %c", b[j]);
  printf("\n");
  for (i = 0; a[i]; i++) {
    printf("%2d %c", i, a[i]);
    for (j = 0; b[j]; j++) {
      printf("%3d", mat[i][j]);
    }
    printf("\n");
  }
  for (i = 0; a[i]; i++) {
    for (j = 0; b[j]; j++) {
      if (mat[i][j] > max) {
        max = mat[i][j];
        maxi = i;
        maxj = j;
      }
    }
  }
  printf("\n\nmax=%d\tmaxi=%d\tmaxj=%d\n\n", max, maxi, maxj);
  printf("Longest substring: ");
  for (i = maxi - max + 1; i <= maxi; i++)
    printf("%c", a[i]);
  printf("\n");
}
```