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

```asm
<parseCommands>:
  endbr64
  push   %r15
  lea    D76(%rip),%r15
  push   %r14
  lea    D33(%rip),%r14
  push   %r13
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  lea    D73(%rip),%rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %rdi,0x8(%rsp)
  lea    0x10(%rsp),%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  nopl   0x0(%rax)
L133:
  mov    %r15,%rdx
  mov    %r14,%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <fprintf@plt>
  mov    $0x51,%edx
  xor    %esi,%esi
  mov    %rbx,%rdi
  call   <memset@plt>
  mov    0x8(%rsp),%rdx
  mov    %rbx,%rdi
  mov    %rbx,%r13
  mov    $0x51,%esi
  call   <fgets@plt>
  movzbl 0x10(%rsp),%eax
  test   %al,%al
  je     L144
  nopl   (%rax)
L86:
  movsbl %al,%edi
  call   <tolower@plt>
  cmp    $0xa,%al
  je     L36
  mov    %al,0x0(%r13)
  movzbl 0x1(%r13),%eax
  add    $0x1,%r13
  test   %al,%al
  jne    L86
L144:
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <strtok@plt>
  xor    %edi,%edi
  mov    %rbp,%rsi
  mov    %rax,%r13
  call   <strtok@plt>
  test   %r13,%r13
  je     L133
  mov    %r13,%rdi
  call   <strlen@plt>
  cmp    $0x4,%eax
  je     L59
  mov    %r13,%rdx
  lea    D5(%rip),%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <fprintf@plt>
  jmp    L133
  nopl   0x0(%rax,%rax,1)
L36:
  movb   $0x0,0x0(%r13)
  movzbl 0x1(%r13),%eax
  add    $0x1,%r13
  test   %al,%al
  jne    L86
  jmp    L144
L59:
  lea    D86(%rip),%rsi
  mov    %r13,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L118
  lea    D2(%rip),%rsi
  mov    %r13,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L89
  lea    D11(%rip),%rsi
  mov    %r13,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L92
  mov    %r12,%rcx
  mov    $0x13,%edx
  mov    $0x1,%esi
  lea    D44(%rip),%rdi
  lea    D6(%rip),%r13
  call   <fwrite@plt>
  mov    %r12,%rcx
  mov    $0x1a,%edx
  mov    $0x1,%esi
  lea    D103(%rip),%rdi
  call   <fwrite@plt>
  mov    %r12,%rcx
  mov    $0x1d,%edx
  mov    $0x1,%esi
  lea    D80(%rip),%rdi
  call   <fwrite@plt>
  mov    %r12,%rcx
  mov    %r13,%rdi
  mov    $0x22,%edx
  mov    $0x1,%esi
  call   <fwrite@plt>
  mov    %r12,%rcx
  mov    $0x24,%edx
  mov    $0x1,%esi
  lea    D37(%rip),%rdi
  call   <fwrite@plt>
  mov    %r12,%rcx
  mov    %r13,%rdi
  mov    $0x22,%edx
  mov    $0x1,%esi
  call   <fwrite@plt>
  mov    %r12,%rcx
  mov    $0x24,%edx
  mov    $0x1,%esi
  lea    D121(%rip),%rdi
  call   <fwrite@plt>
  mov    %r12,%rcx
  mov    $0x29,%edx
  mov    $0x1,%esi
  lea    D55(%rip),%rdi
  call   <fwrite@plt>
  mov    %r12,%rcx
  mov    $0x22,%edx
  mov    %r13,%rdi
  mov    $0x1,%esi
  call   <fwrite@plt>
  jmp    L133
L92:
  mov    %r13,%rdx
  lea    D92(%rip),%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <fprintf@plt>
  jmp    L133
L118:
  mov    $0x1,%eax
L1:
  mov    0x68(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L22
  add    $0x78,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L89:
  xor    %eax,%eax
  jmp    L1
L22:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D76
type_infered: string
name: disassemble_data
arguments: tag: D33
type_infered: string
name: disassemble_data
arguments: tag: D73
type_infered: string
name: disassemble_data
arguments: tag: D5
type_infered: string
name: disassemble_data
arguments: tag: D86
type_infered: string
name: disassemble_data
arguments: tag: D2
type_infered: string
name: disassemble_data
arguments: tag: D11
type_infered: string
name: disassemble_data
arguments: tag: D44
type_infered: string
name: disassemble_data
arguments: tag: D6
type_infered: string
name: disassemble_data
arguments: tag: D103
type_infered: string
name: disassemble_data
arguments: tag: D80
type_infered: string
name: disassemble_data
arguments: tag: D37
type_infered: string
name: disassemble_data
arguments: tag: D121
type_infered: string
name: disassemble_data
arguments: tag: D55
type_infered: string
name: disassemble_data
arguments: tag: D92
type_infered: string

tool: D76: LSN>

tool: D33: %s 

tool: D73:  

tool: D5: Bad command: %s


tool: D86: cont

tool: D2: exit

tool: D11: help

tool: D44: Listener commands:


tool: D6: SMAC        - display MAC address


tool: D103: EXIT        - end process


tool: D80: CONT        - resume process


tool: D37: SNOD XX.XXX - show node information


tool: D121: SETM xx...  - set local MAC address


tool: D55: LIST        - enter list definition mode


tool: D92: Command not implemented: %s


assistant: ```c
int parseCommands(FILE *cmds, FILE *out) {
  int exitLoop = 0;
  int retVal = 1;
  char line[81];
  char cmnd[5];
  char *p;
  char *a;
  while (exitLoop != 1) {
    fprintf(out, "%s ", "LSN>");
    memset(line, 0, 81);
    fgets(line, 81, cmds);
    for (p = line; *p; ++p) {
      *p = tolower(*p);
      if (*p == '\n')
        *p = 0;
    }
    p = strtok(line, " ");
    a = strtok(NULL, " ");
    if (p != NULL) {
      if (strlen(p) != 4) {
        fprintf(out, "Bad command: %s\n", p);
      } else {
        if (strcmp(p, "cont") == 0) {
          retVal = 1;
          exitLoop = 1;
        } else if (strcmp(p, "exit") == 0) {
          retVal = 0;
          exitLoop = 1;
        } else if (strcmp(p, "help") == 0) {
          fprintf(out, "Listener commands:\n");
          fprintf(out, "EXIT        - end process\n");
          fprintf(out, "CONT        - resume process\n");
          fprintf(out, "SMAC        - display MAC address\n");
          fprintf(out, "SNOD XX.XXX - show node information\n");
          fprintf(out, "SMAC        - display MAC address\n");
          fprintf(out, "SETM xx...  - set local MAC address\n");
          fprintf(out, "LIST        - enter list definition mode\n");
          fprintf(out, "SMAC        - display MAC address\n");
        } else {
          fprintf(out, "Command not implemented: %s\n", p);
        }
      }
    }
  }
  return retVal;
}
```