user: Please show me the C implementation that matches the assembly code listed below:

```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>
  mov    0xc(%rsp),%eax
  lea    0x1b(%rsp),%rbp
  lea    D84(%rip),%rsi
  mov    %rbp,%rdi
  movb   $0x0,0x27(%rsp)
  mov    %eax,0x1b(%rsp)
  mov    0x14(%rsp),%eax
  mov    %eax,0x1f(%rsp)
  mov    0x10(%rsp),%eax
  mov    %eax,0x23(%rsp)
  call   <strcmp@plt>
  mov    %eax,%r8d
  mov    $0x1,%eax
  test   %r8d,%r8d
  je     L78
  lea    D10(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  mov    %eax,%r8d
  mov    $0x2,%eax
  test   %r8d,%r8d
  je     L78
  lea    D60(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  mov    %eax,%r8d
  mov    $0x3,%eax
  test   %r8d,%r8d
  je     L78
  lea    D76(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  mov    %eax,%r8d
  mov    $0x4,%eax
  test   %r8d,%r8d
  je     L78
  lea    D95(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  mov    %eax,%r8d
  mov    $0x5,%eax
  test   %r8d,%r8d
  je     L78
  lea    D106(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  mov    %eax,%r8d
  mov    $0x6,%eax
  test   %r8d,%r8d
  je     L78
  lea    D4(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  mov    %eax,%r8d
  mov    $0xc,%eax
  test   %r8d,%r8d
  je     L78
  lea    D85(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  mov    %eax,%r8d
  mov    $0x7,%eax
  test   %r8d,%r8d
  je     L78
  lea    D73(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  mov    %eax,%r8d
  mov    $0x8,%eax
  test   %r8d,%r8d
  je     L78
  lea    D99(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  mov    %eax,%r8d
  mov    $0x9,%eax
  test   %r8d,%r8d
  je     L78
  lea    D74(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  mov    %eax,%r8d
  mov    $0xa,%eax
  test   %r8d,%r8d
  je     L78
  lea    D105(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  mov    %eax,%r8d
  mov    $0xb,%eax
  test   %r8d,%r8d
  je     L78
  mov    0x8(%rsp),%edx
  mov    $0x1,%eax
  test   %edx,%edx
  je     L78
  and    $0x500,%edx
  cmp    $0x1,%edx
  sbb    %eax,%eax
  and    $0x62,%eax
  add    $0x1,%eax
  nopl   0x0(%rax)
L78:
  mov    0x28(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L110
  add    $0x30,%rsp
  pop    %rbp
  ret
L110:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D84
type_infered: string
name: read_data
arguments: label: D10
type_infered: string
name: read_data
arguments: label: D60
type_infered: string
name: read_data
arguments: label: D76
type_infered: string
name: read_data
arguments: label: D95
type_infered: string
name: read_data
arguments: label: D106
type_infered: string
name: read_data
arguments: label: D4
type_infered: string
name: read_data
arguments: label: D85
type_infered: string
name: read_data
arguments: label: D73
type_infered: string
name: read_data
arguments: label: D99
type_infered: string
name: read_data
arguments: label: D74
type_infered: string
name: read_data
arguments: label: D105
type_infered: string

tool: D84: GenuineIntel

tool: D10:  UMC UMC UMC

tool: D60: AuthenticAMD

tool: D76: CyrixInstead

tool: D95: NexGenDriven

tool: D106: CentaurHauls

tool: D4:   Shanghai  

tool: D85: RiseRiseRise

tool: D73:  SiS SiS SiS

tool: D99: GenuineTMx86

tool: D74: Geode by NSC

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