user: 请从给定的汇编指令推导出C源代码:

```asm
<cmd_zero>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x90,%rsp
  mov    %rdi,%r12
  mov    %rsi,%rbp
  mov    %rdx,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x88(%rsp)
  xor    %eax,%eax
  lea    D79(%rip),%rsi
  mov    %rdx,%rdi
  call   <strcasecmp@plt>
  test   %eax,%eax
  je     L133
  lea    D13(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcasecmp@plt>
  test   %eax,%eax
  je     L117
  lea    D56(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcasecmp@plt>
  test   %eax,%eax
  je     L121
  lea    D70(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcasecmp@plt>
  test   %eax,%eax
  je     L86
  lea    D9(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcasecmp@plt>
  test   %eax,%eax
  jne    L5
  mov    %rsp,%rsi
  mov    $0x81,%edx
  mov    %r12,%rdi
  call   <atrf_buf_read@plt>
  mov    %eax,%ebx
  test   %eax,%eax
  js     L137
  mov    %eax,%edx
  lea    D54(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <netio_printf@plt>
  mov    %eax,%edx
  mov    $0xffffffff,%eax
  test   %edx,%edx
  js     L40
  movslq %ebx,%rax
  movb   $0xa,(%rsp,%rax,1)
  lea    0x1(%rbx),%edx
  mov    %rsp,%rsi
  mov    %rbp,%rdi
  call   <netio_write@plt>
  jmp    L40
L133:
  mov    $0x1,%esi
  mov    %r12,%rdi
  call   <atrf_driver_spec@plt>
  mov    %rax,%rdx
  test   %rax,%rax
  je     L34
  lea    D53(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <netio_printf@plt>
L40:
  mov    0x88(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L49
  add    $0x90,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L34:
  lea    D87(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <netio_printf@plt>
  jmp    L40
L117:
  mov    %r12,%rdi
  call   <atrf_reset@plt>
  lea    D23(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <netio_printf@plt>
  jmp    L40
L121:
  mov    %r12,%rdi
  call   <atrf_reset_rf@plt>
  lea    D23(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <netio_printf@plt>
  jmp    L40
L86:
  mov    %r12,%rdi
  call   <atrf_test_mode@plt>
  lea    D23(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <netio_printf@plt>
  jmp    L40
L137:
  lea    D122(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <netio_printf@plt>
  jmp    L40
L5:
  lea    D91(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <netio_printf@plt>
  jmp    L40
L49:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D79
type_guessed: string
name: parse_data
arguments: data_label: D13
type_guessed: string
name: parse_data
arguments: data_label: D56
type_guessed: string
name: parse_data
arguments: data_label: D70
type_guessed: string
name: parse_data
arguments: data_label: D9
type_guessed: string
name: parse_data
arguments: data_label: D54
type_guessed: string
name: parse_data
arguments: data_label: D53
type_guessed: string
name: parse_data
arguments: data_label: D87
type_guessed: string
name: parse_data
arguments: data_label: D23
type_guessed: string
name: parse_data
arguments: data_label: D122
type_guessed: string
name: parse_data
arguments: data_label: D91
type_guessed: string

tool: D79: spec

tool: D13: reset

tool: D56: reset_rf

tool: D70: test

tool: D9: read

tool: D54: +%d 

tool: D53: +%s


tool: D87: -can't obtain specification


tool: D23: +


tool: D122: -I/O error


tool: D91: -unrecognized command


assistant: ```c
int cmd_zero(struct atrf_dsc *dsc, struct netio *netio, const char *cmd) {
  if (!strcasecmp(cmd, "spec")) {
    const char *spec = atrf_driver_spec(dsc, 1);
    if (spec)
      return netio_printf(netio, "+%s\n", spec);
    else
      return netio_printf(netio, "-can't obtain specification\n");
  }
  if (!strcasecmp(cmd, "reset")) {
    atrf_reset(dsc);
    return netio_printf(netio, "+\n");
  }
  if (!strcasecmp(cmd, "reset_rf")) {
    atrf_reset_rf(dsc);
    return netio_printf(netio, "+\n");
  }
  if (!strcasecmp(cmd, "test")) {
    atrf_test_mode(dsc);
    return netio_printf(netio, "+\n");
  }
  if (!strcasecmp(cmd, "read")) {
    uint8_t buf[128 + 1];
    int got;
    got = atrf_buf_read(dsc, buf, sizeof(buf));
    if (got < 0)
      return netio_printf(netio, "-I/O error\n");
    if (netio_printf(netio, "+%d ", got) < 0)
      return -1;
    buf[got] = '\n';
    return netio_write(netio, buf, got + 1);
  }
  return netio_printf(netio, "-unrecognized command\n");
}
```