user: 请将以下的汇编代码转换成C语言代码:

```asm
<parseCommands>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x90,%rsp
  mov    %rdi,-0x88(%rbp)
  mov    %rsi,-0x90(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x78(%rbp)
  movl   $0x1,-0x74(%rbp)
  jmp    L42
L73:
  mov    -0x90(%rbp),%rax
  lea    D44(%rip),%rdx
  lea    D103(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  lea    -0x60(%rbp),%rax
  mov    $0x51,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  mov    -0x88(%rbp),%rdx
  lea    -0x60(%rbp),%rax
  mov    $0x51,%esi
  mov    %rax,%rdi
  call   <fgets@plt>
  lea    -0x60(%rbp),%rax
  mov    %rax,-0x70(%rbp)
  jmp    L114
L55:
  mov    -0x70(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <tolower@plt>
  mov    -0x70(%rbp),%rdx
  mov    %al,(%rdx)
  mov    -0x70(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0xa,%al
  jne    L95
  mov    -0x70(%rbp),%rax
  movb   $0x0,(%rax)
L95:
  addq   $0x1,-0x70(%rbp)
L114:
  mov    -0x70(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L55
  lea    -0x60(%rbp),%rax
  lea    D153(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strtok@plt>
  mov    %rax,-0x70(%rbp)
  lea    D153(%rip),%rax
  mov    %rax,%rsi
  mov    $0x0,%edi
  call   <strtok@plt>
  mov    %rax,-0x68(%rbp)
  cmpq   $0x0,-0x70(%rbp)
  je     L42
  mov    -0x70(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    $0x4,%eax
  je     L138
  mov    -0x70(%rbp),%rdx
  mov    -0x90(%rbp),%rax
  lea    D76(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  jmp    L42
L138:
  mov    -0x70(%rbp),%rax
  lea    D142(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L40
  movl   $0x1,-0x74(%rbp)
  movl   $0x1,-0x78(%rbp)
  jmp    L42
L40:
  mov    -0x70(%rbp),%rax
  lea    D154(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L121
  movl   $0x0,-0x74(%rbp)
  movl   $0x1,-0x78(%rbp)
  jmp    L42
L121:
  mov    -0x70(%rbp),%rax
  lea    D160(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L9
  mov    -0x90(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x13,%edx
  mov    $0x1,%esi
  lea    D13(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  mov    -0x90(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x1a,%edx
  mov    $0x1,%esi
  lea    D6(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  mov    -0x90(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x1d,%edx
  mov    $0x1,%esi
  lea    D70(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  mov    -0x90(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x22,%edx
  mov    $0x1,%esi
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  mov    -0x90(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x24,%edx
  mov    $0x1,%esi
  lea    D49(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  mov    -0x90(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x22,%edx
  mov    $0x1,%esi
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  mov    -0x90(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x24,%edx
  mov    $0x1,%esi
  lea    D12(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  mov    -0x90(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x29,%edx
  mov    $0x1,%esi
  lea    D159(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  mov    -0x90(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x22,%edx
  mov    $0x1,%esi
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  jmp    L42
L9:
  mov    -0x70(%rbp),%rdx
  mov    -0x90(%rbp),%rax
  lea    D36(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
L42:
  cmpl   $0x1,-0x78(%rbp)
  jne    L73
  mov    -0x74(%rbp),%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L103
  call   <__stack_chk_fail@plt>
L103:
  leave
  ret
```

tool_calls: name: read_data
arguments: data_tag: D44
type_infered: string
name: read_data
arguments: data_tag: D103
type_infered: string
name: read_data
arguments: data_tag: D153
type_infered: string
name: read_data
arguments: data_tag: D76
type_infered: string
name: read_data
arguments: data_tag: D142
type_infered: string
name: read_data
arguments: data_tag: D154
type_infered: string
name: read_data
arguments: data_tag: D160
type_infered: string
name: read_data
arguments: data_tag: D13
type_infered: string
name: read_data
arguments: data_tag: D6
type_infered: string
name: read_data
arguments: data_tag: D70
type_infered: string
name: read_data
arguments: data_tag: D7
type_infered: string
name: read_data
arguments: data_tag: D49
type_infered: string
name: read_data
arguments: data_tag: D12
type_infered: string
name: read_data
arguments: data_tag: D159
type_infered: string
name: read_data
arguments: data_tag: D36
type_infered: string

tool: D44: LSN>

tool: D103: %s 

tool: D153:  

tool: D76: Bad command: %s


tool: D142: cont

tool: D154: exit

tool: D160: help

tool: D13: Listener commands:


tool: D6: EXIT        - end process


tool: D70: CONT        - resume process


tool: D7: SMAC        - display MAC address


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


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


tool: D159: LIST        - enter list definition mode


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