user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<cmd_zero>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xc0,%rsp
  mov    %rdi,-0xa8(%rbp)
  mov    %rsi,-0xb0(%rbp)
  mov    %rdx,-0xb8(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0xb8(%rbp),%rax
  lea    D9(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcasecmp@plt>
  test   %eax,%eax
  jne    L164
  mov    -0xa8(%rbp),%rax
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <atrf_driver_spec@plt>
  mov    %rax,-0x98(%rbp)
  cmpq   $0x0,-0x98(%rbp)
  je     L77
  mov    -0x98(%rbp),%rdx
  mov    -0xb0(%rbp),%rax
  lea    D19(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <netio_printf@plt>
  jmp    L143
L77:
  mov    -0xb0(%rbp),%rax
  lea    D58(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <netio_printf@plt>
  jmp    L143
L164:
  mov    -0xb8(%rbp),%rax
  lea    D29(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcasecmp@plt>
  test   %eax,%eax
  jne    L27
  mov    -0xa8(%rbp),%rax
  mov    %rax,%rdi
  call   <atrf_reset@plt>
  mov    -0xb0(%rbp),%rax
  lea    D65(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <netio_printf@plt>
  jmp    L143
L27:
  mov    -0xb8(%rbp),%rax
  lea    D49(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcasecmp@plt>
  test   %eax,%eax
  jne    L34
  mov    -0xa8(%rbp),%rax
  mov    %rax,%rdi
  call   <atrf_reset_rf@plt>
  mov    -0xb0(%rbp),%rax
  lea    D65(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <netio_printf@plt>
  jmp    L143
L34:
  mov    -0xb8(%rbp),%rax
  lea    D73(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcasecmp@plt>
  test   %eax,%eax
  jne    L56
  mov    -0xa8(%rbp),%rax
  mov    %rax,%rdi
  call   <atrf_test_mode@plt>
  mov    -0xb0(%rbp),%rax
  lea    D65(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <netio_printf@plt>
  jmp    L143
L56:
  mov    -0xb8(%rbp),%rax
  lea    D99(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcasecmp@plt>
  test   %eax,%eax
  jne    L127
  lea    -0x90(%rbp),%rcx
  mov    -0xa8(%rbp),%rax
  mov    $0x81,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <atrf_buf_read@plt>
  mov    %eax,-0x9c(%rbp)
  cmpl   $0x0,-0x9c(%rbp)
  jns    L103
  mov    -0xb0(%rbp),%rax
  lea    D98(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <netio_printf@plt>
  jmp    L143
L103:
  mov    -0x9c(%rbp),%edx
  mov    -0xb0(%rbp),%rax
  lea    D95(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <netio_printf@plt>
  test   %eax,%eax
  jns    L63
  mov    $0xffffffff,%eax
  jmp    L143
L63:
  mov    -0x9c(%rbp),%eax
  cltq
  movb   $0xa,-0x90(%rbp,%rax,1)
  mov    -0x9c(%rbp),%eax
  lea    0x1(%rax),%edx
  lea    -0x90(%rbp),%rcx
  mov    -0xb0(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <netio_write@plt>
  jmp    L143
L127:
  mov    -0xb0(%rbp),%rax
  lea    D61(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <netio_printf@plt>
L143:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L74
  call   <__stack_chk_fail@plt>
L74:
  leave
  ret
```

tool_calls: name: parse_data
arguments: tag: D9
type_infered: string
name: parse_data
arguments: tag: D19
type_infered: string
name: parse_data
arguments: tag: D58
type_infered: string
name: parse_data
arguments: tag: D29
type_infered: string
name: parse_data
arguments: tag: D65
type_infered: string
name: parse_data
arguments: tag: D49
type_infered: string
name: parse_data
arguments: tag: D73
type_infered: string
name: parse_data
arguments: tag: D99
type_infered: string
name: parse_data
arguments: tag: D98
type_infered: string
name: parse_data
arguments: tag: D95
type_infered: string
name: parse_data
arguments: tag: D61
type_infered: string

tool: D9: spec

tool: D19: +%s


tool: D58: -can't obtain specification


tool: D29: reset

tool: D65: +


tool: D49: reset_rf

tool: D73: test

tool: D99: read

tool: D98: -I/O error


tool: D95: +%d 

tool: D61: -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");
}
```