#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int get_cputype(int);
int get_vendor();
int /*<<< orphan*/ have_cpuid();
int /*<<< orphan*/ support_avx();
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;
}


x86 assembly (clang, -O0):
<get_cpuname>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    $0x0,%al
call   1060 <have_cpuid@plt>
cmp    $0x0,%eax
jne    1167 <get_cpuname+0x27>
movl   $0xb,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
mov    $0x4,%edi
call   1030 <get_cputype@plt>
mov    %eax,-0x8(%rbp)
mov    $0x1,%edi
call   1030 <get_cputype@plt>
mov    %eax,-0xc(%rbp)
mov    $0x5,%edi
call   1030 <get_cputype@plt>
mov    %eax,-0x10(%rbp)
mov    $0x2,%edi
call   1030 <get_cputype@plt>
mov    %eax,-0x18(%rbp)
mov    $0x0,%al
call   1040 <get_vendor@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x1,-0x14(%rbp)
jne    1631 <get_cpuname+0x4f1>
mov    -0x8(%rbp),%eax
add    $0xfffffffc,%eax
mov    %eax,%ecx
mov    %rcx,-0x20(%rbp)
sub    $0xb,%eax
ja     1625 <get_cpuname+0x4e5>
mov    -0x20(%rbp),%rax
lea    0xeb1(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0xc,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0xd,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
mov    -0x18(%rbp),%eax
mov    %rax,-0x28(%rbp)
sub    $0x9,%rax
ja     15d3 <get_cpuname+0x493>
mov    -0x28(%rbp),%rax
lea    0xea4(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x10(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x30(%rbp)
sub    $0xe,%eax
ja     126e <get_cpuname+0x12e>
mov    -0x30(%rbp),%rax
lea    0xf6f(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0xe,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0xf,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x10,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x12,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
jmp    15d3 <get_cpuname+0x493>
mov    -0x10(%rbp),%eax
add    $0xfffffffa,%eax
mov    %eax,%ecx
mov    %rcx,-0x38(%rbp)
sub    $0x9,%eax
ja     12d8 <get_cpuname+0x198>
mov    -0x38(%rbp),%rax
lea    0xee9(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x12,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x13,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x15,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x16,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x14,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
jmp    15d3 <get_cpuname+0x493>
mov    -0x10(%rbp),%eax
add    $0xfffffffb,%eax
mov    %eax,%ecx
mov    %rcx,-0x40(%rbp)
sub    $0xa,%eax
ja     137a <get_cpuname+0x23a>
mov    -0x40(%rbp),%rax
lea    0xe53(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x15,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
mov    $0x0,%al
call   1050 <support_avx@plt>
cmp    $0x0,%eax
je     132e <get_cpuname+0x1ee>
movl   $0x2c,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x15,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x15,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
mov    $0x0,%al
call   1050 <support_avx@plt>
cmp    $0x0,%eax
je     1362 <get_cpuname+0x222>
movl   $0x2c,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x15,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x15,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
jmp    15d3 <get_cpuname+0x493>
mov    -0x10(%rbp),%eax
add    $0xfffffff9,%eax
mov    %eax,%ecx
mov    %rcx,-0x48(%rbp)
sub    $0x8,%eax
ja     142c <get_cpuname+0x2ec>
mov    -0x48(%rbp),%rax
lea    0xd8d(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x16,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
mov    $0x0,%al
call   1050 <support_avx@plt>
cmp    $0x0,%eax
je     13d0 <get_cpuname+0x290>
movl   $0x2c,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x15,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
mov    $0x0,%al
call   1050 <support_avx@plt>
cmp    $0x0,%eax
je     13f8 <get_cpuname+0x2b8>
movl   $0x30,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x15,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
mov    $0x0,%al
call   1050 <support_avx@plt>
cmp    $0x0,%eax
je     1420 <get_cpuname+0x2e0>
movl   $0x30,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x15,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
jmp    15d3 <get_cpuname+0x493>
mov    -0x10(%rbp),%eax
add    $0xfffffffb,%eax
mov    %eax,%ecx
mov    %rcx,-0x50(%rbp)
sub    $0xa,%eax
ja     14de <get_cpuname+0x39e>
mov    -0x50(%rbp),%rax
lea    0xcaf(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x0,%al
call   1050 <support_avx@plt>
cmp    $0x0,%eax
je     1476 <get_cpuname+0x336>
movl   $0x30,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x15,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
mov    $0x0,%al
call   1050 <support_avx@plt>
cmp    $0x0,%eax
je     149e <get_cpuname+0x35e>
movl   $0x30,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x15,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
mov    $0x0,%al
call   1050 <support_avx@plt>
cmp    $0x0,%eax
je     14c6 <get_cpuname+0x386>
movl   $0x30,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x15,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x15,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
jmp    15d3 <get_cpuname+0x493>
mov    -0x10(%rbp),%eax
add    $0xfffffffb,%eax
mov    %eax,%ecx
mov    %rcx,-0x58(%rbp)
sub    $0x9,%eax
ja     1590 <get_cpuname+0x450>
mov    -0x58(%rbp),%rax
lea    0xbd5(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x0,%al
call   1050 <support_avx@plt>
cmp    $0x0,%eax
je     1528 <get_cpuname+0x3e8>
movl   $0x30,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x15,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
mov    $0x0,%al
call   1050 <support_avx@plt>
cmp    $0x0,%eax
je     1550 <get_cpuname+0x410>
movl   $0x30,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x15,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
mov    $0x0,%al
call   1050 <support_avx@plt>
cmp    $0x0,%eax
je     1578 <get_cpuname+0x438>
movl   $0x30,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x15,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x15,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
jmp    15d3 <get_cpuname+0x493>
mov    -0x10(%rbp),%eax
sub    $0xe,%eax
jne    15ce <get_cpuname+0x48e>
jmp    15a6 <get_cpuname+0x466>
mov    $0x0,%al
call   1050 <support_avx@plt>
cmp    $0x0,%eax
je     15c2 <get_cpuname+0x482>
movl   $0x30,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x15,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
jmp    15d3 <get_cpuname+0x493>
jmp    1625 <get_cpuname+0x4e5>
movl   $0x17,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
mov    -0xc(%rbp),%eax
mov    %eax,-0x5c(%rbp)
test   %eax,%eax
je     1608 <get_cpuname+0x4c8>
jmp    15f7 <get_cpuname+0x4b7>
mov    -0x5c(%rbp),%eax
sub    $0x1,%eax
je     1614 <get_cpuname+0x4d4>
jmp    1620 <get_cpuname+0x4e0>
movl   $0x11,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x17,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
jmp    1625 <get_cpuname+0x4e5>
movl   $0x1,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
cmpl   $0x3,-0x14(%rbp)
jne    1875 <get_cpuname+0x735>
mov    -0x8(%rbp),%eax
add    $0xfffffffc,%eax
mov    %eax,%ecx
mov    %rcx,-0x68(%rbp)
sub    $0xb,%eax
ja     1869 <get_cpuname+0x729>
mov    -0x68(%rbp),%rax
lea    0x9a5(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x19,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x1a,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x1b,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
mov    -0xc(%rbp),%eax
mov    %rax,-0x70(%rbp)
sub    $0xa,%rax
ja     1864 <get_cpuname+0x724>
mov    -0x70(%rbp),%rax
lea    0x98c(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x1d,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x1e,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x2d,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
mov    -0x10(%rbp),%eax
mov    %rax,-0x78(%rbp)
sub    $0x8,%rax
ja     1821 <get_cpuname+0x6e1>
mov    -0x78(%rbp),%rax
lea    0x96f(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x0,%al
call   1050 <support_avx@plt>
cmp    $0x0,%eax
je     1712 <get_cpuname+0x5d2>
movl   $0x2e,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x1e,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
mov    $0x0,%al
call   1050 <support_avx@plt>
cmp    $0x0,%eax
je     173a <get_cpuname+0x5fa>
movl   $0x2f,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x1e,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
mov    $0x0,%al
call   1050 <support_avx@plt>
cmp    $0x0,%eax
je     1762 <get_cpuname+0x622>
movl   $0x32,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x1e,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
mov    -0x18(%rbp),%eax
mov    %eax,-0x7c(%rbp)
sub    $0x1,%eax
je     17a4 <get_cpuname+0x664>
jmp    1782 <get_cpuname+0x642>
mov    -0x7c(%rbp),%eax
sub    $0x3,%eax
je     17cc <get_cpuname+0x68c>
jmp    1793 <get_cpuname+0x653>
mov    -0x7c(%rbp),%eax
sub    $0x6,%eax
je     17f4 <get_cpuname+0x6b4>
jmp    181c <get_cpuname+0x6dc>
mov    $0x0,%al
call   1050 <support_avx@plt>
cmp    $0x0,%eax
je     17c0 <get_cpuname+0x680>
movl   $0x2f,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x1e,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
mov    $0x0,%al
call   1050 <support_avx@plt>
cmp    $0x0,%eax
je     17e8 <get_cpuname+0x6a8>
movl   $0x31,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x1e,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
mov    $0x0,%al
call   1050 <support_avx@plt>
cmp    $0x0,%eax
je     1810 <get_cpuname+0x6d0>
movl   $0x32,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x1e,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
jmp    1821 <get_cpuname+0x6e1>
jmp    1864 <get_cpuname+0x724>
mov    -0x10(%rbp),%eax
sub    $0x1,%eax
jne    185f <get_cpuname+0x71f>
jmp    1837 <get_cpuname+0x6f7>
mov    $0x0,%al
call   1050 <support_avx@plt>
cmp    $0x0,%eax
je     1853 <get_cpuname+0x713>
movl   $0x33,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x1e,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
jmp    1864 <get_cpuname+0x724>
jmp    1869 <get_cpuname+0x729>
movl   $0x3,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
cmpl   $0x4,-0x14(%rbp)
jne    18e5 <get_cpuname+0x7a5>
mov    -0x8(%rbp),%eax
mov    %eax,-0x80(%rbp)
sub    $0x4,%eax
je     18b5 <get_cpuname+0x775>
jmp    1893 <get_cpuname+0x753>
mov    -0x80(%rbp),%eax
sub    $0x5,%eax
je     18c1 <get_cpuname+0x781>
jmp    18a4 <get_cpuname+0x764>
mov    -0x80(%rbp),%eax
sub    $0x6,%eax
je     18cd <get_cpuname+0x78d>
jmp    18d9 <get_cpuname+0x799>
movl   $0x21,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x22,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x23,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x4,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
cmpl   $0x5,-0x14(%rbp)
jne    1918 <get_cpuname+0x7d8>
mov    -0x8(%rbp),%eax
sub    $0x5,%eax
jne    190c <get_cpuname+0x7cc>
jmp    1900 <get_cpuname+0x7c0>
movl   $0x24,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x5,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
cmpl   $0x6,-0x14(%rbp)
jne    1971 <get_cpuname+0x831>
mov    -0x8(%rbp),%eax
mov    %eax,-0x84(%rbp)
sub    $0x5,%eax
je     194d <get_cpuname+0x80d>
jmp    1939 <get_cpuname+0x7f9>
mov    -0x84(%rbp),%eax
sub    $0x6,%eax
je     1959 <get_cpuname+0x819>
jmp    1965 <get_cpuname+0x825>
movl   $0x25,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x2b,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x2a,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
cmpl   $0x7,-0x14(%rbp)
jne    19a4 <get_cpuname+0x864>
mov    -0x8(%rbp),%eax
sub    $0x5,%eax
jne    1998 <get_cpuname+0x858>
jmp    198c <get_cpuname+0x84c>
movl   $0x26,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x7,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
cmpl   $0x8,-0x14(%rbp)
jne    19d7 <get_cpuname+0x897>
mov    -0x8(%rbp),%eax
sub    $0x5,%eax
jne    19cb <get_cpuname+0x88b>
jmp    19bf <get_cpuname+0x87f>
movl   $0x27,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x8,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
cmpl   $0x9,-0x14(%rbp)
jne    1a0a <get_cpuname+0x8ca>
mov    -0x8(%rbp),%eax
sub    $0x5,%eax
jne    19fe <get_cpuname+0x8be>
jmp    19f2 <get_cpuname+0x8b2>
movl   $0x28,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x9,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
cmpl   $0xa,-0x14(%rbp)
jne    1a3d <get_cpuname+0x8fd>
mov    -0x8(%rbp),%eax
sub    $0x5,%eax
jne    1a31 <get_cpuname+0x8f1>
jmp    1a25 <get_cpuname+0x8e5>
movl   $0x29,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0xa,-0x4(%rbp)
jmp    1a44 <get_cpuname+0x904>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_cpuname>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
xor    %ebx,%ebx
xor    %eax,%eax
call   1060 <have_cpuid@plt>
test   %eax,%eax
je     11cf <get_cpuname+0x8f>
mov    $0x4,%edi
call   1030 <get_cputype@plt>
mov    %eax,%ebp
mov    $0x1,%edi
call   1030 <get_cputype@plt>
mov    %eax,%r12d
mov    $0x5,%edi
call   1030 <get_cputype@plt>
mov    %eax,%r14d
mov    $0x2,%edi
call   1030 <get_cputype@plt>
mov    %eax,%r15d
xor    %eax,%eax
call   1040 <get_vendor@plt>
add    $0xffffffff,%eax
cmp    $0x9,%eax
ja     11d4 <get_cpuname+0x94>
lea    0xe62(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
add    $0xfffffffc,%ebp
cmp    $0xb,%ebp
ja     14a8 <get_cpuname+0x368>
mov    $0xc,%ebx
lea    0xee9(%rip),%rax
movslq (%rax,%rbp,4),%rcx
add    %rax,%rcx
jmp    *%rcx
mov    $0xd,%ebx
jmp    11d4 <get_cpuname+0x94>
mov    $0xb,%ebx
mov    %ebx,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
add    $0xfffffffc,%ebp
cmp    $0xb,%ebp
ja     139e <get_cpuname+0x25e>
mov    $0x19,%ebx
lea    0xe31(%rip),%rax
movslq (%rax,%rbp,4),%rcx
add    %rax,%rcx
jmp    *%rcx
mov    $0x1a,%ebx
jmp    11d4 <get_cpuname+0x94>
lea    -0x4(%rbp),%eax
add    $0x1d,%ebp
cmp    $0x3,%eax
mov    $0x4,%ebx
cmovb  %ebp,%ebx
jmp    11d4 <get_cpuname+0x94>
cmp    $0x5,%ebp
mov    $0x24,%eax
mov    $0x5,%ebx
cmove  %eax,%ebx
jmp    11d4 <get_cpuname+0x94>
xor    %eax,%eax
cmp    $0x6,%ebp
sete   %al
or     $0x2a,%eax
cmp    $0x5,%ebp
mov    $0x25,%ebx
cmovne %eax,%ebx
jmp    11d4 <get_cpuname+0x94>
cmp    $0x5,%ebp
mov    $0x26,%eax
mov    $0x7,%ebx
cmove  %eax,%ebx
jmp    11d4 <get_cpuname+0x94>
cmp    $0x5,%ebp
mov    $0x27,%eax
mov    $0x8,%ebx
cmove  %eax,%ebx
jmp    11d4 <get_cpuname+0x94>
cmp    $0x5,%ebp
mov    $0x28,%eax
mov    $0x9,%ebx
cmove  %eax,%ebx
jmp    11d4 <get_cpuname+0x94>
cmp    $0x5,%ebp
mov    $0x29,%eax
mov    $0xa,%ebx
cmove  %eax,%ebx
jmp    11d4 <get_cpuname+0x94>
mov    $0x1b,%ebx
jmp    11d4 <get_cpuname+0x94>
cmp    $0xa,%r12d
ja     139e <get_cpuname+0x25e>
mov    $0x1d,%ebx
mov    %r12d,%eax
lea    0xd9d(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x1e,%ebx
jmp    11d4 <get_cpuname+0x94>
cmp    $0x9,%r15d
ja     14a8 <get_cpuname+0x368>
mov    %r15d,%eax
lea    0xdf6(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
cmp    $0xe,%r14d
je     148d <get_cpuname+0x34d>
jmp    14a8 <get_cpuname+0x368>
mov    $0x17,%ebx
jmp    11d4 <get_cpuname+0x94>
cmp    $0x1,%r12d
mov    $0x17,%eax
mov    $0x1,%ecx
cmove  %eax,%ecx
test   %r12d,%r12d
mov    $0x11,%ebx
cmovne %ecx,%ebx
jmp    11d4 <get_cpuname+0x94>
mov    $0x2d,%ebx
jmp    11d4 <get_cpuname+0x94>
cmp    $0x8,%r14d
ja     139e <get_cpuname+0x25e>
mov    %r14d,%eax
lea    0xd45(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
cmp    $0x6,%r15d
je     14b2 <get_cpuname+0x372>
cmp    $0x3,%r15d
je     14e6 <get_cpuname+0x3a6>
cmp    $0x1,%r15d
jne    139e <get_cpuname+0x25e>
xor    %eax,%eax
call   1050 <support_avx@plt>
test   %eax,%eax
mov    $0x1e,%eax
mov    $0x2f,%ebx
cmove  %eax,%ebx
jmp    11d4 <get_cpuname+0x94>
cmp    $0x1,%r14d
jne    139e <get_cpuname+0x25e>
xor    %eax,%eax
call   1050 <support_avx@plt>
test   %eax,%eax
mov    $0x1e,%eax
mov    $0x33,%ebx
cmove  %eax,%ebx
jmp    11d4 <get_cpuname+0x94>
mov    $0x3,%ebx
jmp    11d4 <get_cpuname+0x94>
add    $0xffffffff,%r14d
cmp    $0xf,%r14d
jae    14a8 <get_cpuname+0x368>
movslq %r14d,%rax
lea    0xdb8(%rip),%rcx
jmp    13da <get_cpuname+0x29a>
add    $0xfffffffa,%r14d
cmp    $0xa,%r14d
jae    14a8 <get_cpuname+0x368>
movslq %r14d,%rax
lea    0xdda(%rip),%rcx
mov    (%rcx,%rax,4),%ebx
jmp    11d4 <get_cpuname+0x94>
cmp    $0xf,%r14d
ja     14a8 <get_cpuname+0x368>
mov    $0x15,%ebx
mov    $0xd020,%eax
bt     %r14d,%eax
jb     11d4 <get_cpuname+0x94>
cmp    $0xa,%r14d
je     1434 <get_cpuname+0x2f4>
cmp    $0xd,%r14d
je     1434 <get_cpuname+0x2f4>
jmp    14a8 <get_cpuname+0x368>
add    $0xfffffff9,%r14d
cmp    $0x8,%r14d
ja     14a8 <get_cpuname+0x368>
mov    $0x16,%ebx
lea    0xd29(%rip),%rax
movslq (%rax,%r14,4),%rcx
add    %rax,%rcx
jmp    *%rcx
xor    %eax,%eax
call   1050 <support_avx@plt>
test   %eax,%eax
mov    $0x15,%eax
mov    $0x2c,%ebx
cmove  %eax,%ebx
jmp    11d4 <get_cpuname+0x94>
add    $0xfffffffb,%r14d
cmp    $0xa,%r14d
ja     14a8 <get_cpuname+0x368>
mov    $0x15,%ebx
lea    0xcc3(%rip),%rax
movslq (%rax,%r14,4),%rcx
add    %rax,%rcx
jmp    *%rcx
add    $0xfffffffb,%r14d
cmp    $0x9,%r14d
ja     14a8 <get_cpuname+0x368>
mov    $0x15,%ebx
lea    0xc7c(%rip),%rax
movslq (%rax,%r14,4),%rcx
add    %rax,%rcx
jmp    *%rcx
xor    %eax,%eax
call   1050 <support_avx@plt>
test   %eax,%eax
mov    $0x15,%eax
mov    $0x30,%ebx
cmove  %eax,%ebx
jmp    11d4 <get_cpuname+0x94>
mov    $0x1,%ebx
jmp    11d4 <get_cpuname+0x94>
xor    %eax,%eax
call   1050 <support_avx@plt>
test   %eax,%eax
mov    $0x1e,%eax
mov    $0x32,%ebx
cmove  %eax,%ebx
jmp    11d4 <get_cpuname+0x94>
xor    %eax,%eax
call   1050 <support_avx@plt>
xor    %ebx,%ebx
test   %eax,%eax
setne  %bl
shl    $0x4,%ebx
add    $0x1e,%ebx
jmp    11d4 <get_cpuname+0x94>
xor    %eax,%eax
call   1050 <support_avx@plt>
test   %eax,%eax
mov    $0x1e,%eax
mov    $0x31,%ebx
cmove  %eax,%ebx
jmp    11d4 <get_cpuname+0x94>

LLVM IR (-O0):
define i32 @get_cpuname() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = call i32 (...) @have_cpuid()
%8 = icmp ne i32 %7, 0
br i1 %8, label %10, label %9
9: ; preds = %0
store i32 11, i32* %1
br label %240
10: ; preds = %0
%11 = call i32 @get_cputype(i32 4)
store i32 %11, i32* %2
%12 = call i32 @get_cputype(i32 1)
store i32 %12, i32* %3
%13 = call i32 @get_cputype(i32 5)
store i32 %13, i32* %4
%14 = call i32 @get_cputype(i32 2)
store i32 %14, i32* %6
%15 = call i32 (...) @get_vendor()
store i32 %15, i32* %5
%16 = load i32, i32* %5
%17 = icmp eq i32 %16, 1
br i1 %17, label %18, label %128
18: ; preds = %10
%19 = load i32, i32* %2
switch i32 %19, label %127 [
i32 4, label %20
i32 5, label %21
i32 6, label %22
i32 7, label %121
i32 15, label %122
]
20: ; preds = %18
store i32 12, i32* %1
br label %240
21: ; preds = %18
store i32 13, i32* %1
br label %240
22: ; preds = %18
%23 = load i32, i32* %6
switch i32 %23, label %120 [
i32 0, label %24
i32 1, label %31
i32 2, label %39
i32 3, label %55
i32 4, label %74
i32 5, label %93
i32 9, label %112
i32 8, label %112
]
24: ; preds = %22
%25 = load i32, i32* %4
switch i32 %25, label %30 [
i32 1, label %26
i32 3, label %26
i32 5, label %26
i32 6, label %26
i32 7, label %27
i32 8, label %27
i32 10, label %27
i32 11, label %27
i32 9, label %28
i32 13, label %28
i32 14, label %28
i32 15, label %29
]
26: ; preds = %24, %24, %24, %24
store i32 14, i32* %1
br label %240
27: ; preds = %24, %24, %24, %24
store i32 15, i32* %1
br label %240
28: ; preds = %24, %24, %24
store i32 16, i32* %1
br label %240
29: ; preds = %24
store i32 18, i32* %1
br label %240
30: ; preds = %24
br label %120
31: ; preds = %22
%32 = load i32, i32* %4
switch i32 %32, label %38 [
i32 6, label %33
i32 7, label %34
i32 10, label %35
i32 11, label %35
i32 14, label %35
i32 15, label %35
i32 12, label %36
i32 13, label %37
]
33: ; preds = %31
store i32 18, i32* %1
br label %240
34: ; preds = %31
store i32 19, i32* %1
br label %240
35: ; preds = %31, %31, %31, %31
store i32 21, i32* %1
br label %240
36: ; preds = %31
store i32 22, i32* %1
br label %240
37: ; preds = %31
store i32 20, i32* %1
br label %240
38: ; preds = %31
br label %120
39: ; preds = %22
%40 = load i32, i32* %4
switch i32 %40, label %54 [
i32 5, label %41
i32 10, label %42
i32 12, label %47
i32 13, label %48
i32 14, label %53
i32 15, label %53
]
41: ; preds = %39
store i32 21, i32* %1
br label %240
42: ; preds = %39
%43 = call i32 (...) @support_avx()
%44 = icmp ne i32 %43, 0
br i1 %44, label %45, label %46
45: ; preds = %42
store i32 44, i32* %1
br label %240
46: ; preds = %42
store i32 21, i32* %1
br label %240
47: ; preds = %39
store i32 21, i32* %1
br label %240
48: ; preds = %39
%49 = call i32 (...) @support_avx()
%50 = icmp ne i32 %49, 0
br i1 %50, label %51, label %52
51: ; preds = %48
store i32 44, i32* %1
br label %240
52: ; preds = %48
store i32 21, i32* %1
br label %240
53: ; preds = %39, %39
store i32 21, i32* %1
br label %240
54: ; preds = %39
br label %120
55: ; preds = %22
%56 = load i32, i32* %4
switch i32 %56, label %73 [
i32 7, label %57
i32 10, label %58
i32 14, label %58
i32 12, label %63
i32 15, label %63
i32 13, label %68
]
57: ; preds = %55
store i32 22, i32* %1
br label %240
58: ; preds = %55, %55
%59 = call i32 (...) @support_avx()
%60 = icmp ne i32 %59, 0
br i1 %60, label %61, label %62
61: ; preds = %58
store i32 44, i32* %1
br label %240
62: ; preds = %58
store i32 21, i32* %1
br label %240
63: ; preds = %55, %55
%64 = call i32 (...) @support_avx()
%65 = icmp ne i32 %64, 0
br i1 %65, label %66, label %67
66: ; preds = %63
store i32 48, i32* %1
br label %240
67: ; preds = %63
store i32 21, i32* %1
br label %240
68: ; preds = %55
%69 = call i32 (...) @support_avx()
%70 = icmp ne i32 %69, 0
br i1 %70, label %71, label %72
71: ; preds = %68
store i32 48, i32* %1
br label %240
72: ; preds = %68
store i32 21, i32* %1
br label %240
73: ; preds = %55
br label %120
74: ; preds = %22
%75 = load i32, i32* %4
switch i32 %75, label %92 [
i32 5, label %76
i32 6, label %76
i32 7, label %81
i32 15, label %81
i32 14, label %86
i32 12, label %91
i32 13, label %91
]
76: ; preds = %74, %74
%77 = call i32 (...) @support_avx()
%78 = icmp ne i32 %77, 0
br i1 %78, label %79, label %80
79: ; preds = %76
store i32 48, i32* %1
br label %240
80: ; preds = %76
store i32 21, i32* %1
br label %240
81: ; preds = %74, %74
%82 = call i32 (...) @support_avx()
%83 = icmp ne i32 %82, 0
br i1 %83, label %84, label %85
84: ; preds = %81
store i32 48, i32* %1
br label %240
85: ; preds = %81
store i32 21, i32* %1
br label %240
86: ; preds = %74
%87 = call i32 (...) @support_avx()
%88 = icmp ne i32 %87, 0
br i1 %88, label %89, label %90
89: ; preds = %86
store i32 48, i32* %1
br label %240
90: ; preds = %86
store i32 21, i32* %1
br label %240
91: ; preds = %74, %74
store i32 21, i32* %1
br label %240
92: ; preds = %74
br label %120
93: ; preds = %22
%94 = load i32, i32* %4
switch i32 %94, label %111 [
i32 6, label %95
i32 5, label %100
i32 14, label %100
i32 7, label %105
i32 12, label %110
]
95: ; preds = %93
%96 = call i32 (...) @support_avx()
%97 = icmp ne i32 %96, 0
br i1 %97, label %98, label %99
98: ; preds = %95
store i32 48, i32* %1
br label %240
99: ; preds = %95
store i32 21, i32* %1
br label %240
100: ; preds = %93, %93
%101 = call i32 (...) @support_avx()
%102 = icmp ne i32 %101, 0
br i1 %102, label %103, label %104
103: ; preds = %100
store i32 48, i32* %1
br label %240
104: ; preds = %100
store i32 21, i32* %1
br label %240
105: ; preds = %93
%106 = call i32 (...) @support_avx()
%107 = icmp ne i32 %106, 0
br i1 %107, label %108, label %109
108: ; preds = %105
store i32 48, i32* %1
br label %240
109: ; preds = %105
store i32 21, i32* %1
br label %240
110: ; preds = %93
store i32 21, i32* %1
br label %240
111: ; preds = %93
br label %120
112: ; preds = %22, %22
%113 = load i32, i32* %4
switch i32 %113, label %119 [
i32 14, label %114
]
114: ; preds = %112
%115 = call i32 (...) @support_avx()
%116 = icmp ne i32 %115, 0
br i1 %116, label %117, label %118
117: ; preds = %114
store i32 48, i32* %1
br label %240
118: ; preds = %114
store i32 21, i32* %1
br label %240
119: ; preds = %112
br label %120
120: ; preds = %22, %119, %111, %92, %73, %54, %38, %30
br label %127
121: ; preds = %18
store i32 23, i32* %1
br label %240
122: ; preds = %18
%123 = load i32, i32* %3
switch i32 %123, label %126 [
i32 0, label %124
i32 1, label %125
]
124: ; preds = %122
store i32 17, i32* %1
br label %240
125: ; preds = %122
store i32 23, i32* %1
br label %240
126: ; preds = %122
br label %127
127: ; preds = %18, %126, %120
store i32 1, i32* %1
br label %240
128: ; preds = %10
%129 = load i32, i32* %5
%130 = icmp eq i32 %129, 3
br i1 %130, label %131, label %187
131: ; preds = %128
%132 = load i32, i32* %2
switch i32 %132, label %186 [
i32 4, label %133
i32 5, label %134
i32 6, label %135
i32 15, label %136
]
133: ; preds = %131
store i32 25, i32* %1
br label %240
134: ; preds = %131
store i32 26, i32* %1
br label %240
135: ; preds = %131
store i32 27, i32* %1
br label %240
136: ; preds = %131
%137 = load i32, i32* %3
switch i32 %137, label %185 [
i32 0, label %138
i32 2, label %138
i32 1, label %139
i32 3, label %139
i32 7, label %139
i32 10, label %139
i32 5, label %140
i32 6, label %141
i32 8, label %177
]
138: ; preds = %136, %136
store i32 29, i32* %1
br label %240
139: ; preds = %136, %136, %136, %136
store i32 30, i32* %1
br label %240
140: ; preds = %136
store i32 45, i32* %1
br label %240
141: ; preds = %136
%142 = load i32, i32* %4
switch i32 %142, label %176 [
i32 1, label %143
i32 2, label %148
i32 3, label %148
i32 5, label %153
i32 0, label %158
i32 8, label %158
]
143: ; preds = %141
%144 = call i32 (...) @support_avx()
%145 = icmp ne i32 %144, 0
br i1 %145, label %146, label %147
146: ; preds = %143
store i32 46, i32* %1
br label %240
147: ; preds = %143
store i32 30, i32* %1
br label %240
148: ; preds = %141, %141
%149 = call i32 (...) @support_avx()
%150 = icmp ne i32 %149, 0
br i1 %150, label %151, label %152
151: ; preds = %148
store i32 47, i32* %1
br label %240
152: ; preds = %148
store i32 30, i32* %1
br label %240
153: ; preds = %141
%154 = call i32 (...) @support_avx()
%155 = icmp ne i32 %154, 0
br i1 %155, label %156, label %157
156: ; preds = %153
store i32 50, i32* %1
br label %240
157: ; preds = %153
store i32 30, i32* %1
br label %240
158: ; preds = %141, %141
%159 = load i32, i32* %6
switch i32 %159, label %175 [
i32 1, label %160
i32 3, label %165
i32 6, label %170
]
160: ; preds = %158
%161 = call i32 (...) @support_avx()
%162 = icmp ne i32 %161, 0
br i1 %162, label %163, label %164
163: ; preds = %160
store i32 47, i32* %1
br label %240
164: ; preds = %160
store i32 30, i32* %1
br label %240
165: ; preds = %158
%166 = call i32 (...) @support_avx()
%167 = icmp ne i32 %166, 0
br i1 %167, label %168, label %169
168: ; preds = %165
store i32 49, i32* %1
br label %240
169: ; preds = %165
store i32 30, i32* %1
br label %240
170: ; preds = %158
%171 = call i32 (...) @support_avx()
%172 = icmp ne i32 %171, 0
br i1 %172, label %173, label %174
173: ; preds = %170
store i32 50, i32* %1
br label %240
174: ; preds = %170
store i32 30, i32* %1
br label %240
175: ; preds = %158
br label %176
176: ; preds = %141, %175
br label %185
177: ; preds = %136
%178 = load i32, i32* %4
switch i32 %178, label %184 [
i32 1, label %179
]
179: ; preds = %177
%180 = call i32 (...) @support_avx()
%181 = icmp ne i32 %180, 0
br i1 %181, label %182, label %183
182: ; preds = %179
store i32 51, i32* %1
br label %240
183: ; preds = %179
store i32 30, i32* %1
br label %240
184: ; preds = %177
br label %185
185: ; preds = %184, %136, %176
br label %186
186: ; preds = %131, %185
store i32 3, i32* %1
br label %240
187: ; preds = %128
%188 = load i32, i32* %5
%189 = icmp eq i32 %188, 4
br i1 %189, label %190, label %196
190: ; preds = %187
%191 = load i32, i32* %2
switch i32 %191, label %195 [
i32 4, label %192
i32 5, label %193
i32 6, label %194
]
192: ; preds = %190
store i32 33, i32* %1
br label %240
193: ; preds = %190
store i32 34, i32* %1
br label %240
194: ; preds = %190
store i32 35, i32* %1
br label %240
195: ; preds = %190
store i32 4, i32* %1
br label %240
196: ; preds = %187
%197 = load i32, i32* %5
%198 = icmp eq i32 %197, 5
br i1 %198, label %199, label %203
199: ; preds = %196
%200 = load i32, i32* %2
switch i32 %200, label %202 [
i32 5, label %201
]
201: ; preds = %199
store i32 36, i32* %1
br label %240
202: ; preds = %199
store i32 5, i32* %1
br label %240
203: ; preds = %196
%204 = load i32, i32* %5
%205 = icmp eq i32 %204, 6
br i1 %205, label %206, label %211
206: ; preds = %203
%207 = load i32, i32* %2
switch i32 %207, label %210 [
i32 5, label %208
i32 6, label %209
]
208: ; preds = %206
store i32 37, i32* %1
br label %240
209: ; preds = %206
store i32 43, i32* %1
br label %240
210: ; preds = %206
store i32 42, i32* %1
br label %240
211: ; preds = %203
%212 = load i32, i32* %5
%213 = icmp eq i32 %212, 7
br i1 %213, label %214, label %218
214: ; preds = %211
%215 = load i32, i32* %2
switch i32 %215, label %217 [
i32 5, label %216
]
216: ; preds = %214
store i32 38, i32* %1
br label %240
217: ; preds = %214
store i32 7, i32* %1
br label %240
218: ; preds = %211
%219 = load i32, i32* %5
%220 = icmp eq i32 %219, 8
br i1 %220, label %221, label %225
221: ; preds = %218
%222 = load i32, i32* %2
switch i32 %222, label %224 [
i32 5, label %223
]
223: ; preds = %221
store i32 39, i32* %1
br label %240
224: ; preds = %221
store i32 8, i32* %1
br label %240
225: ; preds = %218
%226 = load i32, i32* %5
%227 = icmp eq i32 %226, 9
br i1 %227, label %228, label %232
228: ; preds = %225
%229 = load i32, i32* %2
switch i32 %229, label %231 [
i32 5, label %230
]
230: ; preds = %228
store i32 40, i32* %1
br label %240
231: ; preds = %228
store i32 9, i32* %1
br label %240
232: ; preds = %225
%233 = load i32, i32* %5
%234 = icmp eq i32 %233, 10
br i1 %234, label %235, label %239
235: ; preds = %232
%236 = load i32, i32* %2
switch i32 %236, label %238 [
i32 5, label %237
]
237: ; preds = %235
store i32 41, i32* %1
br label %240
238: ; preds = %235
store i32 10, i32* %1
br label %240
239: ; preds = %232
store i32 0, i32* %1
br label %240
240: ; preds = %239, %238, %237, %231, %230, %224, %223, %217, %216, %210, %209, %208, %202, %201, %195, %194, %193, %192, %186, %183, %182, %174, %173, %169, %168, %164, %163, %157, %156, %152, %151, %147, %146, %140, %139, %138, %135, %134, %133, %127, %125, %124, %121, %118, %117, %110, %109, %108, %104, %103, %99, %98, %91, %90, %89, %85, %84, %80, %79, %72, %71, %67, %66, %62, %61, %57, %53, %52, %51, %47, %46, %45, %41, %37, %36, %35, %34, %33, %29, %28, %27, %26, %21, %20, %9
%241 = load i32, i32* %1
ret i32 %241
}

LLVM IR (-O2):
@switch.table.get_cpuname = [15 x i32] [i32 14, i32 1, i32 14, i32 1, i32 14, i32 14, i32 15, i32 15, i32 16, i32 15, i32 15, i32 1, i32 16, i32 16, i32 18]
@switch.table.get_cpuname.1 = [10 x i32] [i32 18, i32 19, i32 1, i32 1, i32 21, i32 21, i32 22, i32 20, i32 21, i32 21]
define i32 @get_cpuname() {
%1 = tail call i32 (...) @have_cpuid()
%2 = icmp eq i32 %1, 0
br i1 %2, label %151, label %3
3: ; preds = %0
%4 = tail call i32 @get_cputype(i32 4)
%5 = tail call i32 @get_cputype(i32 1)
%6 = tail call i32 @get_cputype(i32 5)
%7 = tail call i32 @get_cputype(i32 2)
%8 = tail call i32 (...) @get_vendor()
switch i32 %8, label %151 [
i32 1, label %9
i32 3, label %79
i32 4, label %118
i32 5, label %123
i32 6, label %126
i32 7, label %131
i32 8, label %134
i32 9, label %137
i32 10, label %140
]
9: ; preds = %3
switch i32 %4, label %78 [
i32 4, label %151
i32 5, label %10
i32 6, label %11
i32 7, label %72
i32 15, label %73
]
10: ; preds = %9
br label %151
11: ; preds = %9
switch i32 %7, label %78 [
i32 0, label %12
i32 1, label %15
i32 2, label %18
i32 3, label %27
i32 4, label %40
i32 5, label %53
i32 9, label %66
i32 8, label %66
]
12: ; preds = %11
%13 = add i32 %6, -1
%14 = icmp ult i32 %13, 15
br i1 %14, label %143, label %78
15: ; preds = %11
%16 = add i32 %6, -6
%17 = icmp ult i32 %16, 10
br i1 %17, label %147, label %78
18: ; preds = %11
switch i32 %6, label %78 [
i32 5, label %151
i32 10, label %19
i32 12, label %151
i32 13, label %23
i32 14, label %151
i32 15, label %151
]
19: ; preds = %18
%20 = tail call i32 (...) @support_avx()
%21 = icmp eq i32 %20, 0
%22 = select i1 %21, i32 21, i32 44
br label %151
23: ; preds = %18
%24 = tail call i32 (...) @support_avx()
%25 = icmp eq i32 %24, 0
%26 = select i1 %25, i32 21, i32 44
br label %151
27: ; preds = %11
switch i32 %6, label %78 [
i32 7, label %151
i32 10, label %28
i32 14, label %28
i32 12, label %32
i32 15, label %32
i32 13, label %36
]
28: ; preds = %27, %27
%29 = tail call i32 (...) @support_avx()
%30 = icmp eq i32 %29, 0
%31 = select i1 %30, i32 21, i32 44
br label %151
32: ; preds = %27, %27
%33 = tail call i32 (...) @support_avx()
%34 = icmp eq i32 %33, 0
%35 = select i1 %34, i32 21, i32 48
br label %151
36: ; preds = %27
%37 = tail call i32 (...) @support_avx()
%38 = icmp eq i32 %37, 0
%39 = select i1 %38, i32 21, i32 48
br label %151
40: ; preds = %11
switch i32 %6, label %78 [
i32 5, label %41
i32 6, label %41
i32 7, label %45
i32 15, label %45
i32 14, label %49
i32 12, label %151
i32 13, label %151
]
41: ; preds = %40, %40
%42 = tail call i32 (...) @support_avx()
%43 = icmp eq i32 %42, 0
%44 = select i1 %43, i32 21, i32 48
br label %151
45: ; preds = %40, %40
%46 = tail call i32 (...) @support_avx()
%47 = icmp eq i32 %46, 0
%48 = select i1 %47, i32 21, i32 48
br label %151
49: ; preds = %40
%50 = tail call i32 (...) @support_avx()
%51 = icmp eq i32 %50, 0
%52 = select i1 %51, i32 21, i32 48
br label %151
53: ; preds = %11
switch i32 %6, label %78 [
i32 6, label %54
i32 5, label %58
i32 14, label %58
i32 7, label %62
i32 12, label %151
]
54: ; preds = %53
%55 = tail call i32 (...) @support_avx()
%56 = icmp eq i32 %55, 0
%57 = select i1 %56, i32 21, i32 48
br label %151
58: ; preds = %53, %53
%59 = tail call i32 (...) @support_avx()
%60 = icmp eq i32 %59, 0
%61 = select i1 %60, i32 21, i32 48
br label %151
62: ; preds = %53
%63 = tail call i32 (...) @support_avx()
%64 = icmp eq i32 %63, 0
%65 = select i1 %64, i32 21, i32 48
br label %151
66: ; preds = %11, %11
%67 = icmp eq i32 %6, 14
br i1 %67, label %68, label %78
68: ; preds = %66
%69 = tail call i32 (...) @support_avx()
%70 = icmp eq i32 %69, 0
%71 = select i1 %70, i32 21, i32 48
br label %151
72: ; preds = %9
br label %151
73: ; preds = %9
%74 = icmp eq i32 %5, 1
%75 = select i1 %74, i32 23, i32 1
%76 = icmp eq i32 %5, 0
%77 = select i1 %76, i32 17, i32 %75
br label %151
78: ; preds = %15, %12, %11, %18, %27, %40, %53, %66, %9
br label %151
79: ; preds = %3
switch i32 %4, label %117 [
i32 4, label %151
i32 5, label %80
i32 6, label %81
i32 15, label %82
]
80: ; preds = %79
br label %151
81: ; preds = %79
br label %151
82: ; preds = %79
switch i32 %5, label %117 [
i32 0, label %151
i32 2, label %151
i32 1, label %83
i32 3, label %83
i32 7, label %83
i32 10, label %83
i32 5, label %84
i32 6, label %85
i32 8, label %111
]
83: ; preds = %82, %82, %82, %82
br label %151
84: ; preds = %82
br label %151
85: ; preds = %82
switch i32 %6, label %117 [
i32 1, label %86
i32 2, label %90
i32 3, label %90
i32 5, label %94
i32 0, label %98
i32 8, label %98
]
86: ; preds = %85
%87 = tail call i32 (...) @support_avx()
%88 = icmp eq i32 %87, 0
%89 = select i1 %88, i32 30, i32 46
br label %151
90: ; preds = %85, %85
%91 = tail call i32 (...) @support_avx()
%92 = icmp eq i32 %91, 0
%93 = select i1 %92, i32 30, i32 47
br label %151
94: ; preds = %85
%95 = tail call i32 (...) @support_avx()
%96 = icmp eq i32 %95, 0
%97 = select i1 %96, i32 30, i32 50
br label %151
98: ; preds = %85, %85
switch i32 %7, label %117 [
i32 1, label %99
i32 3, label %103
i32 6, label %107
]
99: ; preds = %98
%100 = tail call i32 (...) @support_avx()
%101 = icmp eq i32 %100, 0
%102 = select i1 %101, i32 30, i32 47
br label %151
103: ; preds = %98
%104 = tail call i32 (...) @support_avx()
%105 = icmp eq i32 %104, 0
%106 = select i1 %105, i32 30, i32 49
br label %151
107: ; preds = %98
%108 = tail call i32 (...) @support_avx()
%109 = icmp eq i32 %108, 0
%110 = select i1 %109, i32 30, i32 50
br label %151
111: ; preds = %82
%112 = icmp eq i32 %6, 1
br i1 %112, label %113, label %117
113: ; preds = %111
%114 = tail call i32 (...) @support_avx()
%115 = icmp eq i32 %114, 0
%116 = select i1 %115, i32 30, i32 51
br label %151
117: ; preds = %82, %98, %85, %111, %79
br label %151
118: ; preds = %3
%119 = add i32 %4, -4
%120 = icmp ult i32 %119, 3
%121 = add i32 %4, 29
%122 = select i1 %120, i32 %121, i32 4
br label %151
123: ; preds = %3
%124 = icmp eq i32 %4, 5
%125 = select i1 %124, i32 36, i32 5
br label %151
126: ; preds = %3
%127 = icmp eq i32 %4, 6
%128 = select i1 %127, i32 43, i32 42
%129 = icmp eq i32 %4, 5
%130 = select i1 %129, i32 37, i32 %128
br label %151
131: ; preds = %3
%132 = icmp eq i32 %4, 5
%133 = select i1 %132, i32 38, i32 7
br label %151
134: ; preds = %3
%135 = icmp eq i32 %4, 5
%136 = select i1 %135, i32 39, i32 8
br label %151
137: ; preds = %3
%138 = icmp eq i32 %4, 5
%139 = select i1 %138, i32 40, i32 9
br label %151
140: ; preds = %3
%141 = icmp eq i32 %4, 5
%142 = select i1 %141, i32 41, i32 10
br label %151
143: ; preds = %12
%144 = sext i32 %13 to i64
%145 = getelementptr inbounds [15 x i32], [15 x i32]* @switch.table.get_cpuname, i64 0, i64 %144
%146 = load i32, i32* %145
br label %151
147: ; preds = %15
%148 = sext i32 %16 to i64
%149 = getelementptr inbounds [10 x i32], [10 x i32]* @switch.table.get_cpuname.1, i64 0, i64 %148
%150 = load i32, i32* %149
br label %151
151: ; preds = %118, %147, %143, %3, %140, %137, %134, %131, %126, %123, %113, %107, %103, %99, %94, %90, %86, %82, %82, %79, %73, %68, %53, %62, %58, %54, %40, %40, %49, %45, %41, %36, %32, %28, %27, %18, %18, %23, %18, %19, %18, %9, %0, %117, %84, %83, %81, %80, %78, %72, %10
%152 = phi i32 [ 1, %78 ], [ 23, %72 ], [ 13, %10 ], [ 3, %117 ], [ 45, %84 ], [ 30, %83 ], [ 27, %81 ], [ 26, %80 ], [ 11, %0 ], [ 12, %9 ], [ 21, %18 ], [ %22, %19 ], [ 21, %18 ], [ %26, %23 ], [ 21, %18 ], [ 21, %18 ], [ 22, %27 ], [ %31, %28 ], [ %35, %32 ], [ %39, %36 ], [ %44, %41 ], [ %48, %45 ], [ %52, %49 ], [ 21, %40 ], [ 21, %40 ], [ %57, %54 ], [ %61, %58 ], [ %65, %62 ], [ 21, %53 ], [ %71, %68 ], [ %77, %73 ], [ 25, %79 ], [ 29, %82 ], [ 29, %82 ], [ %89, %86 ], [ %93, %90 ], [ %97, %94 ], [ %102, %99 ], [ %106, %103 ], [ %110, %107 ], [ %116, %113 ], [ %125, %123 ], [ %130, %126 ], [ %133, %131 ], [ %136, %134 ], [ %139, %137 ], [ %142, %140 ], [ 0, %3 ], [ %146, %143 ], [ %150, %147 ], [ %122, %118 ]
ret i32 %152
}