user: What is the c source code of the assembly code below:

```asm
<parseCommands>:
  endbr64
  push   %r15
  lea    D78(%rip),%r15
  push   %r14
  push   %r13
  mov    %rsi,%r13
  push   %r12
  lea    D0(%rip),%r12
  push   %rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %rdi,0x8(%rsp)
  lea    0x10(%rsp),%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  nopl   (%rax)
L44:
  mov    %r15,%rdx
  lea    D123(%rip),%rsi
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <fprintf@plt>
  mov    $0x51,%edx
  xor    %esi,%esi
  mov    %rbp,%rdi
  call   <memset@plt>
  mov    0x8(%rsp),%rdx
  mov    %rbp,%rdi
  mov    %rbp,%r14
  mov    $0x51,%esi
  xor    %ebx,%ebx
  call   <fgets@plt>
  movzbl 0x10(%rsp),%eax
  test   %al,%al
  je     L6
  nopl   0x0(%rax,%rax,1)
L79:
  movsbl %al,%edi
  call   <tolower@plt>
  cmp    $0xa,%al
  cmove  %ebx,%eax
  add    $0x1,%r14
  mov    %al,-0x1(%r14)
  movzbl (%r14),%eax
  test   %al,%al
  jne    L79
L6:
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <strtok@plt>
  xor    %edi,%edi
  mov    %r12,%rsi
  mov    %rax,%r14
  call   <strtok@plt>
  test   %r14,%r14
  je     L44
  mov    %r14,%rdi
  call   <strlen@plt>
  cmp    $0x4,%eax
  je     L115
  mov    %r14,%rdx
  lea    D32(%rip),%rsi
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <fprintf@plt>
  jmp    L44
L115:
  lea    D28(%rip),%rsi
  mov    %r14,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L28
  lea    D69(%rip),%rsi
  mov    %r14,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L0
  lea    D104(%rip),%rsi
  mov    %r14,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L30
  mov    %r13,%rcx
  mov    $0x13,%edx
  mov    $0x1,%esi
  lea    D6(%rip),%rdi
  lea    D120(%rip),%r14
  call   <fwrite@plt>
  mov    %r13,%rcx
  mov    $0x1a,%edx
  mov    $0x1,%esi
  lea    D90(%rip),%rdi
  call   <fwrite@plt>
  mov    %r13,%rcx
  mov    $0x1d,%edx
  mov    $0x1,%esi
  lea    D40(%rip),%rdi
  call   <fwrite@plt>
  mov    %r13,%rcx
  mov    %r14,%rdi
  mov    $0x22,%edx
  mov    $0x1,%esi
  call   <fwrite@plt>
  mov    %r13,%rcx
  mov    $0x24,%edx
  mov    $0x1,%esi
  lea    D67(%rip),%rdi
  call   <fwrite@plt>
  mov    %r13,%rcx
  mov    %r14,%rdi
  mov    $0x22,%edx
  mov    $0x1,%esi
  call   <fwrite@plt>
  mov    %r13,%rcx
  mov    $0x24,%edx
  mov    $0x1,%esi
  lea    D64(%rip),%rdi
  call   <fwrite@plt>
  mov    %r13,%rcx
  mov    $0x29,%edx
  mov    $0x1,%esi
  lea    D26(%rip),%rdi
  call   <fwrite@plt>
  mov    %r13,%rcx
  mov    $0x22,%edx
  mov    %r14,%rdi
  mov    $0x1,%esi
  call   <fwrite@plt>
  jmp    L44
L30:
  mov    %r14,%rdx
  lea    D15(%rip),%rsi
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <fprintf@plt>
  jmp    L44
L28:
  mov    $0x1,%eax
L43:
  mov    0x68(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L37
  add    $0x78,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L0:
  xor    %eax,%eax
  jmp    L43
L37:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D78
data_type: string
name: unpack_data
arguments: label: D0
data_type: string
name: unpack_data
arguments: label: D123
data_type: string
name: unpack_data
arguments: label: D32
data_type: string
name: unpack_data
arguments: label: D28
data_type: string
name: unpack_data
arguments: label: D69
data_type: string
name: unpack_data
arguments: label: D104
data_type: string
name: unpack_data
arguments: label: D6
data_type: string
name: unpack_data
arguments: label: D120
data_type: string
name: unpack_data
arguments: label: D90
data_type: string
name: unpack_data
arguments: label: D40
data_type: string
name: unpack_data
arguments: label: D67
data_type: string
name: unpack_data
arguments: label: D64
data_type: string
name: unpack_data
arguments: label: D26
data_type: string
name: unpack_data
arguments: label: D15
data_type: string

tool: D78: LSN>

tool: D0:  

tool: D123: %s 

tool: D32: Bad command: %s


tool: D28: cont

tool: D69: exit

tool: D104: help

tool: D6: Listener commands:


tool: D120: SMAC        - display MAC address


tool: D90: EXIT        - end process


tool: D40: CONT        - resume process


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


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


tool: D26: LIST        - enter list definition mode


tool: D15: 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;
}
```