user: 请将以下的汇编代码转换成C语言代码:

```asm
<get_vendor>:
  endbr64
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%rcx
  lea    0xc(%rsp),%rdx
  lea    0x8(%rsp),%rsi
  lea    0x14(%rsp),%r8
  mov    $0x0,%edi
  call   <cpuid@plt>
  mov    0xc(%rsp),%eax
  mov    %eax,0x1b(%rsp)
  mov    0x14(%rsp),%eax
  mov    %eax,0x1f(%rsp)
  mov    0x10(%rsp),%eax
  mov    %eax,0x23(%rsp)
  movb   $0x0,0x27(%rsp)
  lea    0x1b(%rsp),%rdi
  lea    D15(%rip),%rsi
  call   <strcmp@plt>
  mov    %eax,%edx
  mov    $0x1,%eax
  test   %edx,%edx
  je     L110
  lea    0x1b(%rsp),%rdi
  lea    D46(%rip),%rsi
  call   <strcmp@plt>
  mov    %eax,%edx
  mov    $0x2,%eax
  test   %edx,%edx
  je     L110
  lea    0x1b(%rsp),%rdi
  lea    D79(%rip),%rsi
  call   <strcmp@plt>
  mov    %eax,%edx
  mov    $0x3,%eax
  test   %edx,%edx
  je     L110
  lea    0x1b(%rsp),%rdi
  lea    D3(%rip),%rsi
  call   <strcmp@plt>
  mov    %eax,%edx
  mov    $0x4,%eax
  test   %edx,%edx
  je     L110
  lea    0x1b(%rsp),%rdi
  lea    D65(%rip),%rsi
  call   <strcmp@plt>
  mov    %eax,%edx
  mov    $0x5,%eax
  test   %edx,%edx
  je     L110
  lea    0x1b(%rsp),%rdi
  lea    D25(%rip),%rsi
  call   <strcmp@plt>
  mov    %eax,%edx
  mov    $0x6,%eax
  test   %edx,%edx
  je     L110
  lea    0x1b(%rsp),%rdi
  lea    D10(%rip),%rsi
  call   <strcmp@plt>
  mov    %eax,%edx
  mov    $0x7,%eax
  test   %edx,%edx
  je     L110
  lea    0x1b(%rsp),%rdi
  lea    D29(%rip),%rsi
  call   <strcmp@plt>
  mov    %eax,%edx
  mov    $0x8,%eax
  test   %edx,%edx
  je     L110
  lea    0x1b(%rsp),%rdi
  lea    D45(%rip),%rsi
  call   <strcmp@plt>
  mov    %eax,%edx
  mov    $0x9,%eax
  test   %edx,%edx
  je     L110
  lea    0x1b(%rsp),%rdi
  lea    D47(%rip),%rsi
  call   <strcmp@plt>
  mov    %eax,%edx
  mov    $0xa,%eax
  test   %edx,%edx
  je     L110
  mov    0x8(%rsp),%edx
  mov    $0x1,%eax
  test   %edx,%edx
  je     L110
  and    $0x500,%edx
  cmp    $0x1,%edx
  sbb    %eax,%eax
  and    $0x62,%eax
  add    $0x1,%eax
L110:
  mov    0x28(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L114
  add    $0x38,%rsp
  ret
L114:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D15
type: string
name: read_data
arguments: label: D46
type: string
name: read_data
arguments: label: D79
type: string
name: read_data
arguments: label: D3
type: string
name: read_data
arguments: label: D65
type: string
name: read_data
arguments: label: D25
type: string
name: read_data
arguments: label: D10
type: string
name: read_data
arguments: label: D29
type: string
name: read_data
arguments: label: D45
type: string
name: read_data
arguments: label: D47
type: string

tool: D15: GenuineIntel

tool: D46:  UMC UMC UMC

tool: D79: AuthenticAMD

tool: D3: CyrixInstead

tool: D65: NexGenDriven

tool: D25: CentaurHauls

tool: D10: RiseRiseRise

tool: D29:  SiS SiS SiS

tool: D45: GenuineTMx86

tool: D47: Geode by NSC

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, "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 ((eax == 0) || ((eax & 0x500) != 0))
    return 1;
  return 99;
}
```