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

```asm
<get_vendor>:
  endbr64
  push   %rbp
  xor    %edi,%edi
  sub    $0x30,%rsp
  lea    0x14(%rsp),%r8
  lea    0x10(%rsp),%rcx
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  lea    0xc(%rsp),%rdx
  lea    0x8(%rsp),%rsi
  call   <cpuid@plt>
  movd   0x14(%rsp),%xmm1
  movd   0xc(%rsp),%xmm0
  lea    0x18(%rsp),%rbp
  mov    0x10(%rsp),%eax
  lea    D110(%rip),%rsi
  mov    %rbp,%rdi
  movb   $0x0,0x24(%rsp)
  punpckldq %xmm1,%xmm0
  mov    %eax,0x20(%rsp)
  movq   %xmm0,0x18(%rsp)
  call   <strcmp@plt>
  mov    %eax,%r8d
  mov    $0x1,%eax
  test   %r8d,%r8d
  je     L104
  lea    D116(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  mov    %eax,%r8d
  mov    $0x2,%eax
  test   %r8d,%r8d
  je     L104
  lea    D87(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  mov    %eax,%r8d
  mov    $0x3,%eax
  test   %r8d,%r8d
  je     L104
  lea    D103(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  mov    %eax,%r8d
  mov    $0x4,%eax
  test   %r8d,%r8d
  je     L104
  lea    D41(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  mov    %eax,%r8d
  mov    $0x5,%eax
  test   %r8d,%r8d
  je     L104
  lea    D67(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  mov    %eax,%r8d
  mov    $0x6,%eax
  test   %r8d,%r8d
  je     L104
  lea    D25(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  mov    %eax,%r8d
  mov    $0xc,%eax
  test   %r8d,%r8d
  je     L104
  lea    D53(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  mov    %eax,%r8d
  mov    $0x7,%eax
  test   %r8d,%r8d
  je     L104
  lea    D77(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  mov    %eax,%r8d
  mov    $0x8,%eax
  test   %r8d,%r8d
  je     L104
  lea    D101(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  mov    %eax,%r8d
  mov    $0x9,%eax
  test   %r8d,%r8d
  je     L104
  lea    D102(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  mov    %eax,%r8d
  mov    $0xa,%eax
  test   %r8d,%r8d
  je     L104
  lea    D48(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  mov    %eax,%r8d
  mov    $0xb,%eax
  test   %r8d,%r8d
  je     L104
  mov    0x8(%rsp),%edx
  mov    $0x1,%eax
  test   %edx,%edx
  je     L104
  and    $0x500,%edx
  cmp    $0x1,%edx
  sbb    %eax,%eax
  and    $0x62,%eax
  add    $0x1,%eax
  nopw   0x0(%rax,%rax,1)
L104:
  mov    0x28(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L111
  add    $0x30,%rsp
  pop    %rbp
  ret
L111:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D110
type_guessed: string
name: parse_data
arguments: label: D116
type_guessed: string
name: parse_data
arguments: label: D87
type_guessed: string
name: parse_data
arguments: label: D103
type_guessed: string
name: parse_data
arguments: label: D41
type_guessed: string
name: parse_data
arguments: label: D67
type_guessed: string
name: parse_data
arguments: label: D25
type_guessed: string
name: parse_data
arguments: label: D53
type_guessed: string
name: parse_data
arguments: label: D77
type_guessed: string
name: parse_data
arguments: label: D101
type_guessed: string
name: parse_data
arguments: label: D102
type_guessed: string
name: parse_data
arguments: label: D48
type_guessed: string

tool: D110: GenuineIntel

tool: D116:  UMC UMC UMC

tool: D87: AuthenticAMD

tool: D103: CyrixInstead

tool: D41: NexGenDriven

tool: D67: CentaurHauls

tool: D25:   Shanghai  

tool: D53: RiseRiseRise

tool: D77:  SiS SiS SiS

tool: D101: GenuineTMx86

tool: D102: Geode by NSC

tool: D48: HygonGenuine

assistant: ```c
int get_vendor(void) {
  int eax, ebx, ecx, edx;
  char vendor[13];
  cpuid(0, &eax, &ebx, &ecx, &edx);
  *(int *)(&vendor[0]) = ebx;
  *(int *)(&vendor[4]) = edx;
  *(int *)(&vendor[8]) = ecx;
  vendor[12] = (char)0;
  if (!strcmp(vendor, "GenuineIntel"))
    return 1;
  if (!strcmp(vendor, " UMC UMC UMC"))
    return 2;
  if (!strcmp(vendor, "AuthenticAMD"))
    return 3;
  if (!strcmp(vendor, "CyrixInstead"))
    return 4;
  if (!strcmp(vendor, "NexGenDriven"))
    return 5;
  if (!strcmp(vendor, "CentaurHauls"))
    return 6;
  if (!strcmp(vendor, "  Shanghai  "))
    return 12;
  if (!strcmp(vendor, "RiseRiseRise"))
    return 7;
  if (!strcmp(vendor, " SiS SiS SiS"))
    return 8;
  if (!strcmp(vendor, "GenuineTMx86"))
    return 9;
  if (!strcmp(vendor, "Geode by NSC"))
    return 10;
  if (!strcmp(vendor, "HygonGenuine"))
    return 11;
  if ((eax == 0) || ((eax & 0x500) != 0))
    return 1;
  return 99;
}
```