user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x370,%rsp
  movdqa D16(%rip),%xmm0
  mov    %fs:0x28,%rax
  mov    %rax,0x368(%rsp)
  xor    %eax,%eax
  lea    0x333(%rsp),%rbp
  mov    $0x6325,%eax
  lea    0x32a(%rsp),%r12
  movaps %xmm0,0x340(%rsp)
  mov    %rbp,%rdi
  movdqa D0(%rip),%xmm0
  mov    %ax,0x323(%rsp)
  movabs $0x6167666564636261,%rax
  movaps %xmm0,0x350(%rsp)
  movl   $0x206425,0x326(%rsp)
  movb   $0x0,0x325(%rsp)
  movl   $0x656e6f6e,0x32e(%rsp)
  movb   $0x0,0x332(%rsp)
  mov    %rax,0x333(%rsp)
  movl   $0x66656462,0x33b(%rsp)
  movb   $0x0,0x33f(%rsp)
  movl   $0x666564,0x32a(%rsp)
  call   <strlen@plt>
  mov    %r12,%rdi
  mov    %eax,%ebx
  call   <strlen@plt>
  mov    $0x1,%esi
  movl   $0xffffffff,0x190(%rsp)
  mov    %eax,%edi
  mov    $0xffffffff,%eax
  test   %edi,%edi
  jle    L68
  movslq %esi,%rdx
  add    $0x1,%eax
  mov    %esi,%ecx
  cmp    %esi,%edi
  je     L21
  nopw   0x0(%rax,%rax,1)
L103:
  cmp    %eax,%ebx
  je     L231
  movslq %eax,%r8
  mov    %eax,%edx
  movzbl 0x32a(%rsp,%r8,1),%r10d
  cmp    %r10b,(%r12,%rsi,1)
  jne    L56
  mov    0x190(%rsp,%r8,4),%edx
L56:
  mov    %edx,0x190(%rsp,%rsi,4)
  cmp    %ecx,%edi
  jle    L68
  test   %eax,%eax
  js     L94
  movzbl (%r12,%rsi,1),%ecx
  jmp    L109
  nopw   0x0(%rax,%rax,1)
L62:
  mov    0x190(%rsp,%rdx,4),%eax
  test   %eax,%eax
  js     L94
L109:
  movslq %eax,%rdx
  cmp    0x32a(%rsp,%rdx,1),%cl
  jne    L62
L94:
  add    $0x1,%rsi
  add    $0x1,%eax
  movslq %esi,%rdx
  mov    %esi,%ecx
  cmp    %esi,%edi
  jne    L103
L21:
  cmp    %eax,%ebx
  jne    L233
  cltq
  mov    0x190(%rsp,%rax,4),%eax
  mov    %eax,0x190(%rsp,%rdx,4)
L68:
  test   %ebx,%ebx
  jle    L51
  movslq %ebx,%r9
  xor    %esi,%esi
  xor    %edx,%edx
  xor    %ebx,%ebx
  nopl   0x0(%rax,%rax,1)
L246:
  mov    %esi,%r8d
  test   %edx,%edx
  js     L95
  movzbl 0x0(%rbp,%rsi,1),%ecx
  mov    %edx,%eax
  jmp    L173
  nopl   0x0(%rax)
L80:
  mov    0x190(%rsp,%rdx,4),%eax
  test   %eax,%eax
  js     L102
L173:
  movslq %eax,%rdx
  cmp    0x32a(%rsp,%rdx,1),%cl
  jne    L80
L102:
  lea    0x1(%rax),%edx
  cmp    %edx,%edi
  jg     L39
  movslq %ebx,%rcx
  sub    %eax,%r8d
  movslq %edx,%rdx
  add    $0x1,%ebx
  mov    %r8d,(%rsp,%rcx,4)
  mov    0x190(%rsp,%rdx,4),%edx
L39:
  add    $0x1,%rsi
  cmp    %rsi,%r9
  jne    L246
  xor    %eax,%eax
  lea    0x340(%rsp),%rdi
  mov    %r12,%rcx
  mov    %rbp,%rsi
  mov    $0xa,%r8d
  mov    $0xa,%edx
  call   <printf@plt>
  test   %ebx,%ebx
  je     L58
  lea    -0x1(%rbx),%eax
  mov    %rsp,%rbp
  lea    0x326(%rsp),%rbx
  lea    0x4(%rsp,%rax,4),%r12
  nopl   0x0(%rax)
L169:
  mov    0x0(%rbp),%esi
  mov    %rbx,%rdi
  xor    %eax,%eax
  add    $0x4,%rbp
  call   <printf@plt>
  cmp    %rbp,%r12
  jne    L169
L245:
  xor    %eax,%eax
  lea    0x323(%rsp),%rdi
  mov    $0xa,%esi
  call   <printf@plt>
  mov    0x368(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L108
  add    $0x370,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L231:
  cmp    %esi,%edi
  je     L21
L233:
  mov    %eax,%edx
  jmp    L56
L95:
  mov    %edx,%eax
  jmp    L102
L51:
  lea    0x340(%rsp),%rdi
  mov    %r12,%rcx
  mov    %rbp,%rsi
  xor    %eax,%eax
  mov    $0xa,%r8d
  mov    $0xa,%edx
  call   <printf@plt>
L58:
  lea    0x32e(%rsp),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L245
L108:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D16
type_infered: byte[16]
name: parse_data
arguments: data_label: D0
type_infered: byte[16]

tool: {"D16": [0x54,0x45,0x58,0x54,0x3a,0x20,0x25,0x73,0x25,0x63,0x50,0x41,0x54,0x54,0x45,0x52]}

tool: {"D0": [0x4e,0x3a,0x20,0x25,0x73,0x25,0x63,0x41,0x4e,0x53,0x57,0x45,0x52,0x3a,0x20,0x00]}

assistant: ```c
int main() {
  char TIPS[] = "TEXT: %s%cPATTERN: %s%cANSWER: ";
  char number[] = "%d ";
  char charactor[] = "%c";
  char NO_ANSWER[] = "none";
  char text[] = "abcdefgabdef";
  char pattern[] = "def";
  int answer[100];
  int a = 0;
  int m = strlen(text);
  int n = strlen(pattern);
  int i = 0;
  int j = -1;
  int next[100];
  int x;
  int y;
  int z;
  next[0] = -1;
  while (i < n) {
    while (j > -1 && pattern[i] != pattern[j]) {
      j = next[j];
    }
    i += 1;
    j += 1;
    if ((i != n) && (j != m) && (pattern[i] == pattern[j]))
      next[i] = next[j];
    else if ((i == n) && (j == m))
      next[i] = next[j];
    else
      next[i] = j;
  }
  i = 0;
  j = 0;
  while (j < m) {
    while (i > -1 && text[j] != pattern[i])
      i = next[i];
    i += 1;
    j += 1;
    if (i >= n) {
      answer[a] = j - i;
      a += 1;
      i = next[i];
    }
  }
  printf(TIPS, text, 10, pattern, 10);
  if (a == 0)
    printf(NO_ANSWER);
  else {
    for (i = 0; i < a; i += 1) {
      printf(number, answer[i]);
    }
  }
  printf(charactor, 10);
  return 0;
}
```