user: What is the c source code of the assembly code below:

```asm
<get_cpuname>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    $0x0,%eax
  call   <have_cpuid@plt>
  mov    %eax,%edx
  mov    $0xb,%eax
  test   %edx,%edx
  je     L637
  mov    $0x4,%edi
  call   <get_cputype@plt>
  mov    %eax,%ebx
  mov    $0x1,%edi
  call   <get_cputype@plt>
  mov    %eax,%r12d
  mov    $0x5,%edi
  call   <get_cputype@plt>
  mov    %eax,%ebp
  mov    $0x2,%edi
  call   <get_cputype@plt>
  mov    %eax,%r13d
  mov    $0x0,%eax
  call   <get_vendor@plt>
  cmp    $0x1,%eax
  je     L394
  lea    -0x3(%rax),%edx
  cmp    $0x7,%edx
  ja     L701
  mov    %edx,%edx
  lea    D18(%rip),%rcx
  movslq (%rcx,%rdx,4),%rdx
  add    %rcx,%rdx
  notrack jmp *%rdx
L394:
  sub    $0x4,%ebx
  cmp    $0xb,%ebx
  ja     L637
  mov    %ebx,%ebx
  lea    D33(%rip),%rcx
  movslq (%rcx,%rbx,4),%rdx
  add    %rcx,%rdx
  notrack jmp *%rdx
  mov    $0xd,%eax
  jmp    L637
  cmp    $0x9,%r13d
  ja     L637
  mov    %r13d,%edx
  lea    D88(%rip),%rcx
  movslq (%rcx,%rdx,4),%rdx
  add    %rcx,%rdx
  notrack jmp *%rdx
  cmp    $0x6,%ebp
  jle    L635
  lea    -0x7(%rbp),%edx
  cmp    $0x8,%edx
  ja     L637
  sub    $0x7,%ebp
  cmp    $0x8,%ebp
  ja     L637
  mov    %ebp,%ebp
  lea    D14(%rip),%rcx
  movslq (%rcx,%rbp,4),%rdx
  add    %rcx,%rdx
  notrack jmp *%rdx
L635:
  test   %ebp,%ebp
  jle    L637
  mov    $0x6a,%edx
  mov    %ebp,%ecx
  shr    %cl,%rdx
  test   $0x1,%dl
  mov    $0xe,%edx
  cmovne %edx,%eax
  jmp    L637
  mov    $0xf,%eax
  jmp    L637
  mov    $0x12,%eax
  jmp    L637
  sub    $0x6,%ebp
  cmp    $0x9,%ebp
  ja     L395
  mov    %ebp,%ebp
  lea    D58(%rip),%rdx
  movslq (%rdx,%rbp,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
  mov    $0x13,%eax
  jmp    L637
L395:
  mov    %r13d,%eax
  jmp    L637
  mov    $0x15,%eax
  jmp    L637
  mov    $0x16,%eax
  jmp    L637
  mov    $0x14,%eax
  jmp    L637
  sub    $0x5,%ebp
  cmp    $0xa,%ebp
  ja     L637
  mov    %ebp,%ebp
  lea    D94(%rip),%rcx
  movslq (%rcx,%rbp,4),%rdx
  add    %rcx,%rdx
  notrack jmp *%rdx
  mov    $0x0,%eax
  call   <support_avx@plt>
  cmp    $0x1,%eax
  sbb    %eax,%eax
  and    $0xffffffe9,%eax
  add    $0x2c,%eax
  jmp    L637
  mov    $0x0,%eax
  call   <support_avx@plt>
  cmp    $0x1,%eax
  sbb    %eax,%eax
  and    $0xffffffe9,%eax
  add    $0x2c,%eax
  jmp    L637
  sub    $0x7,%ebp
  cmp    $0x8,%ebp
  ja     L637
  mov    %ebp,%ebp
  lea    D83(%rip),%rcx
  movslq (%rcx,%rbp,4),%rdx
  add    %rcx,%rdx
  notrack jmp *%rdx
  mov    $0x0,%eax
  call   <support_avx@plt>
  cmp    $0x1,%eax
  sbb    %eax,%eax
  and    $0xffffffe9,%eax
  add    $0x2c,%eax
  jmp    L637
  mov    $0x0,%eax
  call   <support_avx@plt>
  cmp    $0x1,%eax
  sbb    %eax,%eax
  and    $0xffffffe5,%eax
  add    $0x30,%eax
  jmp    L637
  mov    $0x0,%eax
  call   <support_avx@plt>
  cmp    $0x1,%eax
  sbb    %eax,%eax
  and    $0xffffffe5,%eax
  add    $0x30,%eax
  jmp    L637
  sub    $0x5,%ebp
  cmp    $0xa,%ebp
  ja     L637
  mov    %ebp,%ebp
  lea    D51(%rip),%rcx
  movslq (%rcx,%rbp,4),%rdx
  add    %rcx,%rdx
  notrack jmp *%rdx
  mov    $0x0,%eax
  call   <support_avx@plt>
  cmp    $0x1,%eax
  sbb    %eax,%eax
  and    $0xffffffe5,%eax
  add    $0x30,%eax
  jmp    L637
  mov    $0x0,%eax
  call   <support_avx@plt>
  cmp    $0x1,%eax
  sbb    %eax,%eax
  and    $0xffffffe5,%eax
  add    $0x30,%eax
  jmp    L637
  mov    $0x0,%eax
  call   <support_avx@plt>
  cmp    $0x1,%eax
  sbb    %eax,%eax
  and    $0xffffffe5,%eax
  add    $0x30,%eax
  jmp    L637
  sub    $0x5,%ebp
  cmp    $0x9,%ebp
  ja     L637
  mov    %ebp,%ebp
  lea    D43(%rip),%rcx
  movslq (%rcx,%rbp,4),%rdx
  add    %rcx,%rdx
  notrack jmp *%rdx
  mov    $0x0,%eax
  call   <support_avx@plt>
  cmp    $0x1,%eax
  sbb    %eax,%eax
  and    $0xffffffe5,%eax
  add    $0x30,%eax
  jmp    L637
  mov    $0x0,%eax
  call   <support_avx@plt>
  cmp    $0x1,%eax
  sbb    %eax,%eax
  and    $0xffffffe5,%eax
  add    $0x30,%eax
  jmp    L637
  mov    $0x0,%eax
  call   <support_avx@plt>
  cmp    $0x1,%eax
  sbb    %eax,%eax
  and    $0xffffffe5,%eax
  add    $0x30,%eax
  jmp    L637
  cmp    $0xe,%ebp
  jne    L637
  mov    $0x0,%eax
  call   <support_avx@plt>
  cmp    $0x1,%eax
  sbb    %eax,%eax
  and    $0xffffffe5,%eax
  add    $0x30,%eax
  jmp    L637
  mov    $0x17,%eax
  jmp    L637
  test   %r12d,%r12d
  je     L212
  cmp    $0x1,%r12d
  mov    $0x17,%edx
  cmove  %edx,%eax
  jmp    L637
  cmp    $0x6,%ebx
  je     L101
  jg     L194
  cmp    $0x4,%ebx
  je     L452
  cmp    $0x5,%ebx
  mov    $0x1a,%edx
  cmove  %edx,%eax
L637:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L194:
  cmp    $0xf,%ebx
  jne    L637
  cmp    $0xa,%r12d
  ja     L637
  mov    %r12d,%r12d
  lea    D102(%rip),%rcx
  movslq (%rcx,%r12,4),%rdx
  add    %rcx,%rdx
  notrack jmp *%rdx
  mov    $0x1e,%eax
  jmp    L637
  mov    $0x2d,%eax
  jmp    L637
  cmp    $0x8,%ebp
  ja     L637
  mov    %ebp,%ebp
  lea    D97(%rip),%rcx
  movslq (%rcx,%rbp,4),%rdx
  add    %rcx,%rdx
  notrack jmp *%rdx
  mov    $0x0,%eax
  call   <support_avx@plt>
  cmp    $0x1,%eax
  sbb    %eax,%eax
  and    $0xfffffff0,%eax
  add    $0x2e,%eax
  jmp    L637
  mov    $0x0,%eax
  call   <support_avx@plt>
  cmp    $0x1,%eax
  sbb    %eax,%eax
  and    $0xffffffef,%eax
  add    $0x2f,%eax
  jmp    L637
  mov    $0x0,%eax
  call   <support_avx@plt>
  cmp    $0x1,%eax
  sbb    %eax,%eax
  and    $0xffffffec,%eax
  add    $0x32,%eax
  jmp    L637
  cmp    $0x3,%r13d
  je     L553
  cmp    $0x6,%r13d
  je     L502
  cmp    $0x1,%r13d
  jne    L637
  mov    $0x0,%eax
  call   <support_avx@plt>
  cmp    $0x1,%eax
  sbb    %eax,%eax
  and    $0xffffffef,%eax
  add    $0x2f,%eax
  jmp    L637
L553:
  mov    $0x0,%eax
  call   <support_avx@plt>
  cmp    $0x1,%eax
  sbb    %eax,%eax
  and    $0xffffffed,%eax
  add    $0x31,%eax
  jmp    L637
L502:
  mov    $0x0,%eax
  call   <support_avx@plt>
  cmp    $0x1,%eax
  sbb    %eax,%eax
  and    $0xffffffec,%eax
  add    $0x32,%eax
  jmp    L637
  cmp    $0x1,%ebp
  jne    L637
  mov    $0x0,%eax
  call   <support_avx@plt>
  cmp    $0x1,%eax
  sbb    %eax,%eax
  and    $0xffffffeb,%eax
  add    $0x33,%eax
  jmp    L637
  cmp    $0x5,%ebx
  je     L752
  cmp    $0x6,%ebx
  je     L409
  cmp    $0x4,%ebx
  mov    $0x21,%edx
  cmove  %edx,%eax
  jmp    L637
  cmp    $0x5,%ebx
  mov    $0x24,%edx
  cmove  %edx,%eax
  jmp    L637
  mov    $0x25,%eax
  cmp    $0x5,%ebx
  je     L637
  cmp    $0x6,%ebx
  sete   %al
  movzbl %al,%eax
  add    $0x2a,%eax
  jmp    L637
  cmp    $0x5,%ebx
  mov    $0x26,%edx
  cmove  %edx,%eax
  jmp    L637
  cmp    $0x5,%ebx
  mov    $0x27,%edx
  cmove  %edx,%eax
  jmp    L637
  cmp    $0x5,%ebx
  mov    $0x28,%edx
  cmove  %edx,%eax
  jmp    L637
  cmp    $0x5,%ebx
  mov    $0x29,%edx
  cmove  %edx,%eax
  jmp    L637
  mov    $0xc,%eax
  jmp    L637
  mov    $0x10,%eax
  jmp    L637
  mov    $0x12,%eax
  jmp    L637
  mov    $0x15,%eax
  jmp    L637
  mov    $0x16,%eax
  jmp    L637
  mov    $0x15,%eax
  jmp    L637
  mov    $0x15,%eax
  jmp    L637
L212:
  mov    $0x11,%eax
  jmp    L637
L701:
  mov    $0x0,%eax
  jmp    L637
L101:
  mov    $0x1b,%eax
  jmp    L637
L452:
  mov    $0x19,%eax
  jmp    L637
  mov    $0x1d,%eax
  jmp    L637
L752:
  mov    $0x22,%eax
  jmp    L637
L409:
  mov    $0x23,%eax
  jmp    L637
```

assistant: ```c
int get_cpuname(void) {
  int family, exfamily, model, vendor, exmodel;
  if (!have_cpuid())
    return 11;
  family = get_cputype(4);
  exfamily = get_cputype(1);
  model = get_cputype(5);
  exmodel = get_cputype(2);
  vendor = get_vendor();
  if (vendor == 1) {
    switch (family) {
    case 0x4:
      return 12;
    case 0x5:
      return 13;
    case 0x6:
      switch (exmodel) {
      case 0:
        switch (model) {
        case 1:
        case 3:
        case 5:
        case 6:
          return 14;
        case 7:
        case 8:
        case 10:
        case 11:
          return 15;
        case 9:
        case 13:
        case 14:
          return 16;
        case 15:
          return 18;
        }
        break;
      case 1:
        switch (model) {
        case 6:
          return 18;
        case 7:
          return 19;
        case 10:
        case 11:
        case 14:
        case 15:
          return 21;
        case 12:
          return 22;
        case 13:
          return 20;
        }
        break;
      case 2:
        switch (model) {
        case 5:
          return 21;
        case 10:
          if (support_avx())
            return 44;
          else
            return 21;
        case 12:
          return 21;
        case 13:
          if (support_avx())
            return 44;
          else
            return 21;
        case 14:
        case 15:
          return 21;
        }
        break;
      case 3:
        switch (model) {
        case 7:
          return 22;
        case 10:
        case 14:
          if (support_avx())
            return 44;
          else
            return 21;
        case 12:
        case 15:
          if (support_avx())
            return 48;
          else
            return 21;
        case 13:
          if (support_avx())
            return 48;
          else
            return 21;
        }
        break;
      case 4:
        switch (model) {
        case 5:
        case 6:
          if (support_avx())
            return 48;
          else
            return 21;
        case 7:
        case 15:
          if (support_avx())
            return 48;
          else
            return 21;
        case 14:
          if (support_avx())
            return 48;
          else
            return 21;
        case 12:
        case 13:
          return 21;
        }
        break;
      case 5:
        switch (model) {
        case 6:
          if (support_avx())
            return 48;
          else
            return 21;
        case 5:
        case 14:
          if (support_avx())
            return 48;
          else
            return 21;
        case 7:
          if (support_avx())
            return 48;
          else
            return 21;
        case 12:
          return 21;
        }
        break;
      case 9:
      case 8:
        switch (model) {
        case 14:
          if (support_avx())
            return 48;
          else
            return 21;
        }
        break;
      }
      break;
    case 0x7:
      return 23;
    case 0xf:
      switch (exfamily) {
      case 0:
        return 17;
      case 1:
        return 23;
      }
      break;
    }
    return 1;
  }
  if (vendor == 3) {
    switch (family) {
    case 0x4:
      return 25;
    case 0x5:
      return 26;
    case 0x6:
      return 27;
    case 0xf:
      switch (exfamily) {
      case 0:
      case 2:
        return 29;
      case 1:
      case 3:
      case 7:
      case 10:
        return 30;
      case 5:
        return 45;
      case 6:
        switch (model) {
        case 1:
          if (support_avx())
            return 46;
          else
            return 30;
        case 2:
        case 3:
          if (support_avx())
            return 47;
          else
            return 30;
        case 5:
          if (support_avx())
            return 50;
          else
            return 30;
        case 0:
        case 8:
          switch (exmodel) {
          case 1:
            if (support_avx())
              return 47;
            else
              return 30;
          case 3:
            if (support_avx())
              return 49;
            else
              return 30;
          case 6:
            if (support_avx())
              return 50;
            else
              return 30;
          }
          break;
        }
        break;
      case 8:
        switch (model) {
        case 1:
          if (support_avx())
            return 51;
          else
            return 30;
        }
      }
      break;
    }
    return 3;
  }
  if (vendor == 4) {
    switch (family) {
    case 0x4:
      return 33;
    case 0x5:
      return 34;
    case 0x6:
      return 35;
    }
    return 4;
  }
  if (vendor == 5) {
    switch (family) {
    case 0x5:
      return 36;
    }
    return 5;
  }
  if (vendor == 6) {
    switch (family) {
    case 0x5:
      return 37;
      break;
    case 0x6:
      return 43;
      break;
    }
    return 42;
  }
  if (vendor == 7) {
    switch (family) {
    case 0x5:
      return 38;
    }
    return 7;
  }
  if (vendor == 8) {
    switch (family) {
    case 0x5:
      return 39;
    }
    return 8;
  }
  if (vendor == 9) {
    switch (family) {
    case 0x5:
      return 40;
    }
    return 9;
  }
  if (vendor == 10) {
    switch (family) {
    case 0x5:
      return 41;
    }
    return 10;
  }
  return 0;
}
```