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

```asm
<main>:
  endbr64
  push   %r15
  xor    %r9d,%r9d
  xor    %r15d,%r15d
  push   %r14
  xor    %r14d,%r14d
  push   %r13
  xor    %r13d,%r13d
  push   %r12
  xor    %r12d,%r12d
  push   %rbp
  xor    %ebp,%ebp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x408,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x3f8(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%rax
  mov    %rax,0x8(%rsp)
  nopl   (%rax)
L405:
  mov    0x8(%rsp),%rdi
  mov    $0x3e8,%esi
  mov    %r9d,0x4(%rsp)
  call   <getline@plt>
  mov    0x4(%rsp),%r9d
  test   %eax,%eax
  jle    L20
  movzbl 0x10(%rsp),%eax
  xor    %edx,%edx
L102:
  test   %al,%al
  je     L405
  cmp    $0x27,%al
  je     L236
L540:
  mov    %ebx,%ecx
  and    $0x1,%ecx
  cmp    $0x5c,%al
  je     L161
L27:
  test   %r14d,%r14d
  je     L644
L296:
  test   %cl,%cl
  je     L644
  cmp    $0x22,%al
  je     L32
L91:
  xor    %r14d,%r14d
L551:
  mov    %ebp,%ecx
  or     %r12d,%ecx
  or     %ebx,%ecx
  jne    L651
L300:
  add    $0x1,%edx
  movslq %edx,%rcx
  movzbl 0x10(%rsp,%rcx,1),%ecx
  cmp    $0x2f,%al
  je     L564
  test   %r14d,%r14d
  jne    L111
  cmp    $0x5b,%al
  jne    L563
  add    $0x1,%r13d
L169:
  mov    %ecx,%eax
  xor    %r12d,%r12d
  xor    %ebx,%ebx
  xor    %r14d,%r14d
  jmp    L102
  nopw   0x0(%rax,%rax,1)
L66:
  test   %r14d,%r14d
  je     L551
  test   %cl,%cl
  je     L551
  mov    $0x1,%ebx
  xor    %r14d,%r14d
L651:
  test   %ebp,%ebp
  je     L33
L164:
  lea    0x1(%rdx),%ecx
  cmp    $0x2f,%al
  je     L294
L171:
  movslq %ecx,%rax
  mov    %ecx,%edx
  mov    $0x1,%ebp
  movzbl 0x10(%rsp,%rax,1),%eax
  jmp    L102
L236:
  mov    %ebp,%ecx
  or     %ebx,%ecx
  or     %r12d,%ecx
  or     %r14d,%ecx
  je     L196
  mov    %r12d,%esi
  mov    %ebx,%ecx
  xor    $0x1,%esi
  and    $0x1,%ecx
  and    %ebx,%esi
  and    $0x1,%esi
  je     L27
  mov    %ebp,%ebx
  mov    %ebp,%ecx
  or     %r14d,%ebx
  or     %r14d,%ecx
  test   %r14d,%r14d
  jne    L296
  nopl   0x0(%rax)
L644:
  mov    %ebp,%ecx
  or     %r12d,%ecx
  or     %ebx,%ecx
  cmp    $0x22,%al
  jne    L551
  test   %ecx,%ecx
  jne    L259
  mov    $0x1,%r12d
L359:
  add    $0x1,%edx
  mov    %ecx,%ebx
  xor    %ebp,%ebp
  movslq %edx,%rax
  movzbl 0x10(%rsp,%rax,1),%eax
  jmp    L102
  nopl   0x0(%rax)
L161:
  mov    %r12d,%esi
  xor    $0x1,%esi
  and    %ebx,%esi
  and    $0x1,%esi
  je     L66
  mov    %ebp,%ebx
  or     %r14d,%ebx
  jne    L185
  mov    $0x1,%ecx
  mov    $0x1,%r14d
L636:
  mov    %ebx,%r12d
  jmp    L359
  nopl   0x0(%rax)
L196:
  mov    $0x1,%ecx
  mov    $0x1,%ebx
  jmp    L27
  nopw   0x0(%rax,%rax,1)
L564:
  cmp    $0x2a,%cl
  je     L62
  test   %r14d,%r14d
  je     L169
L111:
  mov    %ecx,%eax
  xor    %r12d,%r12d
  xor    %ebx,%ebx
  jmp    L102
  xchg   %ax,%ax
L294:
  lea    -0x1(%rdx),%eax
  cltq
  cmpb   $0x2a,0x10(%rsp,%rax,1)
  jne    L171
  add    $0x2,%edx
  xor    %ebp,%ebp
  movslq %edx,%rax
  movzbl 0x10(%rsp,%rax,1),%eax
  jmp    L102
  nopw   0x0(%rax,%rax,1)
L563:
  cmp    $0x5d,%al
  jne    L87
  sub    $0x1,%r13d
  jmp    L169
L87:
  cmp    $0x28,%al
  jne    L602
  add    $0x1,%r9d
  mov    %ecx,%eax
  xor    %r12d,%r12d
  xor    %ebx,%ebx
  jmp    L102
L602:
  cmp    $0x29,%al
  jne    L83
  sub    $0x1,%r9d
  mov    %ecx,%eax
  xor    %r12d,%r12d
  xor    %ebx,%ebx
  jmp    L102
L83:
  cmp    $0x7b,%al
  jne    L547
  add    $0x1,%r15d
  mov    %ecx,%eax
  xor    %r12d,%r12d
  xor    %ebx,%ebx
  jmp    L102
L547:
  cmp    $0x7d,%al
  jne    L169
  sub    $0x1,%r15d
  mov    %ecx,%eax
  xor    %r12d,%r12d
  xor    %ebx,%ebx
  jmp    L102
  nopl   0x0(%rax)
L32:
  mov    %ebx,%ecx
  xor    %r14d,%r14d
  xor    $0x1,%ecx
  and    %r12d,%ecx
  and    $0x1,%ecx
  je     L551
L237:
  test   %ebp,%ebp
  je     L300
  mov    %ebp,%r12d
  xor    %ebx,%ebx
  jmp    L164
  cs nopw 0x0(%rax,%rax,1)
L185:
  test   %r14d,%r14d
  je     L551
  mov    %r14d,%ebx
  jmp    L91
  nopl   0x0(%rax)
L259:
  mov    %ebx,%ecx
  xor    $0x1,%ecx
  and    %r12d,%ecx
  and    $0x1,%ecx
  jne    L237
  jmp    L651
  nopw   0x0(%rax,%rax,1)
L62:
  mov    $0x2a,%eax
  xor    %r12d,%r12d
  xor    %ebx,%ebx
  mov    $0x1,%ebp
  jmp    L540
  nopl   0x0(%rax)
L20:
  test   %r15d,%r15d
  jne    L7
L597:
  test   %r13d,%r13d
  jne    L404
L353:
  test   %r9d,%r9d
  jne    L198
L622:
  test   %ebx,%ebx
  jne    L581
L492:
  test   %r12d,%r12d
  jne    L347
L193:
  test   %ebp,%ebp
  jne    L594
  test   %r14d,%r14d
  jne    L620
  mov    %ebx,%eax
  or     %r12d,%eax
  or     %r9d,%eax
  or     %r13d,%eax
  or     %r15d,%eax
  jne    L5
  lea    D26(%rip),%rdi
  call   <printf@plt>
L5:
  mov    0x3f8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L668
  add    $0x408,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L594:
  lea    D40(%rip),%rdi
  call   <printf@plt>
  test   %r14d,%r14d
  je     L5
L620:
  lea    D25(%rip),%rdi
  call   <printf@plt>
  jmp    L5
L347:
  lea    D45(%rip),%rdi
  mov    %r9d,0x4(%rsp)
  call   <printf@plt>
  mov    0x4(%rsp),%r9d
  jmp    L193
L581:
  lea    D70(%rip),%rdi
  mov    %r9d,0x4(%rsp)
  call   <printf@plt>
  mov    0x4(%rsp),%r9d
  jmp    L492
L198:
  lea    D1(%rip),%rdi
  mov    %r9d,0x4(%rsp)
  call   <printf@plt>
  mov    0x4(%rsp),%r9d
  jmp    L622
L404:
  lea    D10(%rip),%rdi
  mov    %r9d,0x4(%rsp)
  call   <printf@plt>
  mov    0x4(%rsp),%r9d
  jmp    L353
L7:
  lea    D3(%rip),%rdi
  mov    %r9d,0x4(%rsp)
  call   <printf@plt>
  mov    0x4(%rsp),%r9d
  jmp    L597
L668:
  call   <__stack_chk_fail@plt>
L33:
  mov    %ebx,%ecx
  mov    %r12d,%ebx
  jmp    L636
```

tool_calls: name: parse_data
arguments: tag: D26
type_infered: string
name: parse_data
arguments: tag: D40
type_infered: string
name: parse_data
arguments: tag: D25
type_infered: string
name: parse_data
arguments: tag: D45
type_infered: string
name: parse_data
arguments: tag: D70
type_infered: string
name: parse_data
arguments: tag: D1
type_infered: string
name: parse_data
arguments: tag: D10
type_infered: string
name: parse_data
arguments: tag: D3
type_infered: string

tool: D26: Syntax is OK.


tool: D40: Unbalanced comments


tool: D25: Illegal escape sequence


tool: D45: Unbalanced double quote


tool: D70: Unbalanced single quote


tool: D1: Unbalanced parenthese.


tool: D10: Unbalanced bracket.


tool: D3: Unbalanced brace.


assistant: ```c
main() {
  int i;
  int escape, comment, charconst, quoted, parenthese, bracket, brace;
  int len;
  char line[1000];
  escape = comment = charconst = quoted = parenthese = bracket = brace = 0;
  while ((len = getline(line, 1000)) > 0) {
    i = 0;
    while (line[i] != '\0') {
      if (line[i] == '\'') {
        if (charconst == 0 && quoted == 0 && comment == 0 && escape == 0)
          charconst = 1;
        else if (charconst && quoted == 0 && comment == 0 && escape == 0) {
          charconst = 0;
        }
      }
      if (line[i] == '\\') {
        if (charconst && quoted == 0 && comment == 0 && escape == 0)
          escape = 1;
        else if (charconst && escape)
          escape = 0;
      }
      if (line[i] != '\\' && charconst && escape)
        escape = 0;
      if (line[i] == '\"') {
        if (charconst == 0 && quoted == 0 && comment == 0)
          quoted = 1;
        else if (charconst == 0 && quoted && comment == 0)
          quoted = 0;
      }
      if (charconst == 0 && quoted == 0 && comment == 0 && line[i] == '/' && line[i + 1] == '*')
        comment = 1;
      else if (comment && line[i] == '/' && line[i - 1] == '*') {
        comment = 0;
        ++i;
      } else if (quoted == 0 && charconst == 0 && comment == 0 && escape == 0) {
        if (line[i] == '[')
          ++bracket;
        if (line[i] == ']')
          --bracket;
        if (line[i] == '(')
          ++parenthese;
        if (line[i] == ')')
          --parenthese;
        if (line[i] == '{')
          ++brace;
        if (line[i] == '}')
          --brace;
      }
      ++i;
    }
  }
  if (brace != 0)
    printf("Unbalanced brace.\n");
  if (bracket != 0)
    printf("Unbalanced bracket.\n");
  if (parenthese != 0)
    printf("Unbalanced parenthese.\n");
  if (charconst != 0)
    printf("Unbalanced single quote\n");
  if (quoted != 0)
    printf("Unbalanced double quote\n");
  if (comment != 0)
    printf("Unbalanced comments\n");
  if (escape != 0)
    printf("Illegal escape sequence\n");
  if (brace == 0 && bracket == 0 && parenthese == 0 && charconst == 0 && quoted == 0 && comment == 0 && escape == 0)
    printf("Syntax is OK.\n");
  return 0;
}
```