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

```asm
<wmlKeyWGrammarClass>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %rdi,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  lea    D2(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L129
  mov    $0x1,%eax
  jmp    L34
L129:
  mov    -0x8(%rbp),%rax
  lea    D22(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L176
  mov    $0x2,%eax
  jmp    L34
L176:
  mov    -0x8(%rbp),%rax
  lea    D90(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L201
  mov    $0x3,%eax
  jmp    L34
L201:
  mov    -0x8(%rbp),%rax
  lea    D4(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L193
  mov    $0x4,%eax
  jmp    L34
L193:
  mov    -0x8(%rbp),%rax
  lea    D79(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L120
  mov    $0x5,%eax
  jmp    L34
L120:
  mov    -0x8(%rbp),%rax
  lea    D122(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L82
  mov    $0x6,%eax
  jmp    L34
L82:
  mov    -0x8(%rbp),%rax
  lea    D101(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L147
  mov    $0x7,%eax
  jmp    L34
L147:
  mov    -0x8(%rbp),%rax
  lea    D146(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L123
  mov    $0x8,%eax
  jmp    L34
L123:
  mov    -0x8(%rbp),%rax
  lea    D32(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L84
  mov    $0x9,%eax
  jmp    L34
L84:
  mov    -0x8(%rbp),%rax
  lea    D140(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L256
  mov    $0xa,%eax
  jmp    L34
L256:
  mov    -0x8(%rbp),%rax
  lea    D107(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L171
  mov    $0xb,%eax
  jmp    L34
L171:
  mov    -0x8(%rbp),%rax
  lea    D136(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L219
  mov    $0xc,%eax
  jmp    L34
L219:
  mov    -0x8(%rbp),%rax
  lea    D29(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L161
  mov    $0xd,%eax
  jmp    L34
L161:
  mov    -0x8(%rbp),%rax
  lea    D85(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L73
  mov    $0xe,%eax
  jmp    L34
L73:
  mov    -0x8(%rbp),%rax
  mov    %rax,%rsi
  lea    D56(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
L34:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_label: D2
datatype: string
name: retrieve_data
arguments: data_label: D22
datatype: string
name: retrieve_data
arguments: data_label: D90
datatype: string
name: retrieve_data
arguments: data_label: D4
datatype: string
name: retrieve_data
arguments: data_label: D79
datatype: string
name: retrieve_data
arguments: data_label: D122
datatype: string
name: retrieve_data
arguments: data_label: D101
datatype: string
name: retrieve_data
arguments: data_label: D146
datatype: string
name: retrieve_data
arguments: data_label: D32
datatype: string
name: retrieve_data
arguments: data_label: D140
datatype: string
name: retrieve_data
arguments: data_label: D107
datatype: string
name: retrieve_data
arguments: data_label: D136
datatype: string
name: retrieve_data
arguments: data_label: D29
datatype: string
name: retrieve_data
arguments: data_label: D85
datatype: string
name: retrieve_data
arguments: data_label: D56
datatype: string

tool: D2: argument

tool: D22: charset

tool: D90: color

tool: D4: enumval

tool: D79: font

tool: D122: identifier

tool: D101: keyword

tool: D146: literal

tool: D32: reason

tool: D140: reserved

tool: D107: special

tool: D136: unused

tool: D29: class

tool: D85: child

tool: D56: 
Unrecognized token class %s

assistant: ```c
int wmlKeyWGrammarClass(token)
char *token;
{
  if (strcmp(token, "argument") == 0)
    return 1;
  if (strcmp(token, "charset") == 0)
    return 2;
  if (strcmp(token, "color") == 0)
    return 3;
  if (strcmp(token, "enumval") == 0)
    return 4;
  if (strcmp(token, "font") == 0)
    return 5;
  if (strcmp(token, "identifier") == 0)
    return 6;
  if (strcmp(token, "keyword") == 0)
    return 7;
  if (strcmp(token, "literal") == 0)
    return 8;
  if (strcmp(token, "reason") == 0)
    return 9;
  if (strcmp(token, "reserved") == 0)
    return 10;
  if (strcmp(token, "special") == 0)
    return 11;
  if (strcmp(token, "unused") == 0)
    return 12;
  if (strcmp(token, "class") == 0)
    return 13;
  if (strcmp(token, "child") == 0)
    return 14;
  printf("\nUnrecognized token class %s", token);
  return 0;
}
```