user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<get_vendor>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x1c(%rbp),%rsi
  lea    -0x20(%rbp),%rcx
  lea    -0x24(%rbp),%rdx
  lea    -0x28(%rbp),%rax
  mov    %rsi,%r8
  mov    %rax,%rsi
  mov    $0x0,%edi
  call   <cpuid@plt>
  lea    -0x15(%rbp),%rax
  mov    -0x24(%rbp),%edx
  mov    %edx,(%rax)
  lea    -0x15(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    -0x1c(%rbp),%eax
  mov    %eax,(%rdx)
  lea    -0x15(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    -0x20(%rbp),%eax
  mov    %eax,(%rdx)
  movb   $0x0,-0x9(%rbp)
  lea    -0x15(%rbp),%rax
  lea    D79(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L187
  mov    $0x1,%eax
  jmp    L188
L187:
  lea    -0x15(%rbp),%rax
  lea    D21(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L201
  mov    $0x2,%eax
  jmp    L188
L201:
  lea    -0x15(%rbp),%rax
  lea    D34(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L100
  mov    $0x3,%eax
  jmp    L188
L100:
  lea    -0x15(%rbp),%rax
  lea    D54(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L91
  mov    $0x4,%eax
  jmp    L188
L91:
  lea    -0x15(%rbp),%rax
  lea    D30(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L140
  mov    $0x5,%eax
  jmp    L188
L140:
  lea    -0x15(%rbp),%rax
  lea    D75(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L10
  mov    $0x6,%eax
  jmp    L188
L10:
  lea    -0x15(%rbp),%rax
  lea    D66(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L202
  mov    $0xc,%eax
  jmp    L188
L202:
  lea    -0x15(%rbp),%rax
  lea    D76(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L6
  mov    $0x7,%eax
  jmp    L188
L6:
  lea    -0x15(%rbp),%rax
  lea    D16(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L210
  mov    $0x8,%eax
  jmp    L188
L210:
  lea    -0x15(%rbp),%rax
  lea    D61(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L70
  mov    $0x9,%eax
  jmp    L188
L70:
  lea    -0x15(%rbp),%rax
  lea    D98(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L209
  mov    $0xa,%eax
  jmp    L188
L209:
  lea    -0x15(%rbp),%rax
  lea    D96(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L263
  mov    $0xb,%eax
  jmp    L188
L263:
  mov    -0x28(%rbp),%eax
  test   %eax,%eax
  je     L228
  mov    -0x28(%rbp),%eax
  and    $0x500,%eax
  test   %eax,%eax
  je     L126
L228:
  mov    $0x1,%eax
  jmp    L188
L126:
  mov    $0x63,%eax
L188:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L5
  call   <__stack_chk_fail@plt>
L5:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: label: D79
type: string
name: retrieve_data
arguments: label: D21
type: string
name: retrieve_data
arguments: label: D34
type: string
name: retrieve_data
arguments: label: D54
type: string
name: retrieve_data
arguments: label: D30
type: string
name: retrieve_data
arguments: label: D75
type: string
name: retrieve_data
arguments: label: D66
type: string
name: retrieve_data
arguments: label: D76
type: string
name: retrieve_data
arguments: label: D16
type: string
name: retrieve_data
arguments: label: D61
type: string
name: retrieve_data
arguments: label: D98
type: string
name: retrieve_data
arguments: label: D96
type: string

tool: D79: GenuineIntel

tool: D21:  UMC UMC UMC

tool: D34: AuthenticAMD

tool: D54: CyrixInstead

tool: D30: NexGenDriven

tool: D75: CentaurHauls

tool: D66:   Shanghai  

tool: D76: RiseRiseRise

tool: D16:  SiS SiS SiS

tool: D61: GenuineTMx86

tool: D98: Geode by NSC

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