#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 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 10:
        return 30;
      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 0:
          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 5:
        return 45;
      }
      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    $0x80,%rsp
mov    $0x0,%al
call   1060 <have_cpuid@plt>
cmp    $0x0,%eax
jne    1167 <get_cpuname+0x27>
movl   $0xb,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
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    0xe8d(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0xc,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0xd,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
mov    -0x18(%rbp),%eax
mov    %rax,-0x28(%rbp)
sub    $0x8,%rax
ja     15d3 <get_cpuname+0x493>
mov    -0x28(%rbp),%rax
lea    0xe80(%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    0xf47(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0xe,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0xf,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x10,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x12,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
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    0xec1(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x12,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x13,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x15,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x16,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x14,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
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    0xe2b(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x15,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
mov    $0x0,%al
call   1050 <support_avx@plt>
cmp    $0x0,%eax
je     132e <get_cpuname+0x1ee>
movl   $0x2c,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x15,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x15,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
mov    $0x0,%al
call   1050 <support_avx@plt>
cmp    $0x0,%eax
je     1362 <get_cpuname+0x222>
movl   $0x2c,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x15,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x15,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
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    0xd65(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x16,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
mov    $0x0,%al
call   1050 <support_avx@plt>
cmp    $0x0,%eax
je     13d0 <get_cpuname+0x290>
movl   $0x2c,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x15,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
mov    $0x0,%al
call   1050 <support_avx@plt>
cmp    $0x0,%eax
je     13f8 <get_cpuname+0x2b8>
movl   $0x30,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x15,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
mov    $0x0,%al
call   1050 <support_avx@plt>
cmp    $0x0,%eax
je     1420 <get_cpuname+0x2e0>
movl   $0x30,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x15,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
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    0xc87(%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    19eb <get_cpuname+0x8ab>
movl   $0x15,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
mov    $0x0,%al
call   1050 <support_avx@plt>
cmp    $0x0,%eax
je     149e <get_cpuname+0x35e>
movl   $0x30,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x15,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
mov    $0x0,%al
call   1050 <support_avx@plt>
cmp    $0x0,%eax
je     14c6 <get_cpuname+0x386>
movl   $0x30,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x15,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x15,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
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    0xbad(%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    19eb <get_cpuname+0x8ab>
movl   $0x15,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
mov    $0x0,%al
call   1050 <support_avx@plt>
cmp    $0x0,%eax
je     1550 <get_cpuname+0x410>
movl   $0x30,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x15,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
mov    $0x0,%al
call   1050 <support_avx@plt>
cmp    $0x0,%eax
je     1578 <get_cpuname+0x438>
movl   $0x30,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x15,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x15,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
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    19eb <get_cpuname+0x8ab>
movl   $0x15,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
jmp    15d3 <get_cpuname+0x493>
jmp    1625 <get_cpuname+0x4e5>
movl   $0x17,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
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    19eb <get_cpuname+0x8ab>
movl   $0x17,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
jmp    1625 <get_cpuname+0x4e5>
movl   $0x1,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
cmpl   $0x3,-0x14(%rbp)
jne    1822 <get_cpuname+0x6e2>
mov    -0x8(%rbp),%eax
add    $0xfffffffc,%eax
mov    %eax,%ecx
mov    %rcx,-0x68(%rbp)
sub    $0xb,%eax
ja     1816 <get_cpuname+0x6d6>
mov    -0x68(%rbp),%rax
lea    0x9a5(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x19,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x1a,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x1b,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
mov    -0xc(%rbp),%eax
mov    %rax,-0x70(%rbp)
sub    $0xa,%rax
ja     1811 <get_cpuname+0x6d1>
mov    -0x70(%rbp),%rax
lea    0x98c(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x1d,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x1e,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
mov    -0x10(%rbp),%eax
mov    %eax,-0x74(%rbp)
test   %eax,%eax
je     174d <get_cpuname+0x60d>
jmp    16d8 <get_cpuname+0x598>
mov    -0x74(%rbp),%eax
sub    $0x1,%eax
je     16fd <get_cpuname+0x5bd>
jmp    16e9 <get_cpuname+0x5a9>
mov    -0x74(%rbp),%eax
add    $0xfffffffe,%eax
sub    $0x2,%eax
jb     1725 <get_cpuname+0x5e5>
jmp    1800 <get_cpuname+0x6c0>
mov    $0x0,%al
call   1050 <support_avx@plt>
cmp    $0x0,%eax
je     1719 <get_cpuname+0x5d9>
movl   $0x2e,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x1e,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
mov    $0x0,%al
call   1050 <support_avx@plt>
cmp    $0x0,%eax
je     1741 <get_cpuname+0x601>
movl   $0x2f,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x1e,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
mov    -0x18(%rbp),%eax
mov    %eax,-0x78(%rbp)
sub    $0x1,%eax
je     1783 <get_cpuname+0x643>
jmp    1761 <get_cpuname+0x621>
mov    -0x78(%rbp),%eax
sub    $0x3,%eax
je     17ab <get_cpuname+0x66b>
jmp    1772 <get_cpuname+0x632>
mov    -0x78(%rbp),%eax
sub    $0x6,%eax
je     17d3 <get_cpuname+0x693>
jmp    17fb <get_cpuname+0x6bb>
mov    $0x0,%al
call   1050 <support_avx@plt>
cmp    $0x0,%eax
je     179f <get_cpuname+0x65f>
movl   $0x2f,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x1e,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
mov    $0x0,%al
call   1050 <support_avx@plt>
cmp    $0x0,%eax
je     17c7 <get_cpuname+0x687>
movl   $0x31,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x1e,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
mov    $0x0,%al
call   1050 <support_avx@plt>
cmp    $0x0,%eax
je     17ef <get_cpuname+0x6af>
movl   $0x32,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x1e,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
jmp    1800 <get_cpuname+0x6c0>
jmp    1811 <get_cpuname+0x6d1>
movl   $0x2d,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
jmp    1816 <get_cpuname+0x6d6>
movl   $0x3,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
cmpl   $0x4,-0x14(%rbp)
jne    1892 <get_cpuname+0x752>
mov    -0x8(%rbp),%eax
mov    %eax,-0x7c(%rbp)
sub    $0x4,%eax
je     1862 <get_cpuname+0x722>
jmp    1840 <get_cpuname+0x700>
mov    -0x7c(%rbp),%eax
sub    $0x5,%eax
je     186e <get_cpuname+0x72e>
jmp    1851 <get_cpuname+0x711>
mov    -0x7c(%rbp),%eax
sub    $0x6,%eax
je     187a <get_cpuname+0x73a>
jmp    1886 <get_cpuname+0x746>
movl   $0x21,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x22,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x23,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x4,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
cmpl   $0x5,-0x14(%rbp)
jne    18c5 <get_cpuname+0x785>
mov    -0x8(%rbp),%eax
sub    $0x5,%eax
jne    18b9 <get_cpuname+0x779>
jmp    18ad <get_cpuname+0x76d>
movl   $0x24,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x5,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
cmpl   $0x6,-0x14(%rbp)
jne    1918 <get_cpuname+0x7d8>
mov    -0x8(%rbp),%eax
mov    %eax,-0x80(%rbp)
sub    $0x5,%eax
je     18f4 <get_cpuname+0x7b4>
jmp    18e3 <get_cpuname+0x7a3>
mov    -0x80(%rbp),%eax
sub    $0x6,%eax
je     1900 <get_cpuname+0x7c0>
jmp    190c <get_cpuname+0x7cc>
movl   $0x25,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x2b,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x2a,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
cmpl   $0x7,-0x14(%rbp)
jne    194b <get_cpuname+0x80b>
mov    -0x8(%rbp),%eax
sub    $0x5,%eax
jne    193f <get_cpuname+0x7ff>
jmp    1933 <get_cpuname+0x7f3>
movl   $0x26,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x7,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
cmpl   $0x8,-0x14(%rbp)
jne    197e <get_cpuname+0x83e>
mov    -0x8(%rbp),%eax
sub    $0x5,%eax
jne    1972 <get_cpuname+0x832>
jmp    1966 <get_cpuname+0x826>
movl   $0x27,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x8,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
cmpl   $0x9,-0x14(%rbp)
jne    19b1 <get_cpuname+0x871>
mov    -0x8(%rbp),%eax
sub    $0x5,%eax
jne    19a5 <get_cpuname+0x865>
jmp    1999 <get_cpuname+0x859>
movl   $0x28,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x9,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
cmpl   $0xa,-0x14(%rbp)
jne    19e4 <get_cpuname+0x8a4>
mov    -0x8(%rbp),%eax
sub    $0x5,%eax
jne    19d8 <get_cpuname+0x898>
jmp    19cc <get_cpuname+0x88c>
movl   $0x29,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0xa,-0x4(%rbp)
jmp    19eb <get_cpuname+0x8ab>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x80,%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     1462 <get_cpuname+0x322>
mov    $0xc,%ebx
lea    0xec5(%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
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    $0x26,%eax
mov    $0x7,%ebx
cmove  %eax,%ebx
jmp    11d4 <get_cpuname+0x94>
add    $0xfffffffc,%ebp
cmp    $0xb,%ebp
ja     1499 <get_cpuname+0x359>
mov    $0x19,%ebx
lea    0xe0c(%rip),%rax
movslq (%rax,%rbp,4),%rcx
add    %rax,%rcx
jmp    *%rcx
mov    $0x1a,%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    $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     1499 <get_cpuname+0x359>
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    $0x8,%r15d
ja     1462 <get_cpuname+0x322>
mov    %r15d,%eax
lea    0xdd2(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
add    $0xffffffff,%r14d
cmp    $0xf,%r14d
jae    1462 <get_cpuname+0x322>
movslq %r14d,%rax
lea    0xe4d(%rip),%rcx
jmp    138e <get_cpuname+0x24e>
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>
lea    -0x2(%r14),%eax
cmp    $0x2,%eax
jb     147e <get_cpuname+0x33e>
test   %r14d,%r14d
je     146c <get_cpuname+0x32c>
cmp    $0x1,%r14d
jne    1499 <get_cpuname+0x359>
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>
add    $0xfffffffa,%r14d
cmp    $0xa,%r14d
jae    1462 <get_cpuname+0x322>
movslq %r14d,%rax
lea    0xdfe(%rip),%rcx
mov    (%rcx,%rax,4),%ebx
jmp    11d4 <get_cpuname+0x94>
cmp    $0xf,%r14d
ja     1462 <get_cpuname+0x322>
mov    $0x15,%ebx
mov    $0xd020,%eax
bt     %r14d,%eax
jb     11d4 <get_cpuname+0x94>
cmp    $0xa,%r14d
je     13e8 <get_cpuname+0x2a8>
cmp    $0xd,%r14d
je     13e8 <get_cpuname+0x2a8>
jmp    1462 <get_cpuname+0x322>
add    $0xfffffff9,%r14d
cmp    $0x8,%r14d
ja     1462 <get_cpuname+0x322>
mov    $0x16,%ebx
lea    0xd4d(%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     1462 <get_cpuname+0x322>
mov    $0x15,%ebx
lea    0xce7(%rip),%rax
movslq (%rax,%r14,4),%rcx
add    %rax,%rcx
jmp    *%rcx
add    $0xfffffffb,%r14d
cmp    $0x9,%r14d
ja     1462 <get_cpuname+0x322>
mov    $0x15,%ebx
lea    0xca0(%rip),%rax
movslq (%rax,%r14,4),%rcx
add    %rax,%rcx
jmp    *%rcx
cmp    $0xe,%r14d
jne    1462 <get_cpuname+0x322>
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>
cmp    $0x6,%r15d
je     14a3 <get_cpuname+0x363>
cmp    $0x3,%r15d
je     14be <get_cpuname+0x37e>
cmp    $0x1,%r15d
jne    1499 <get_cpuname+0x359>
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>
mov    $0x3,%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>
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 %227
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 %227
21: ; preds = %18
store i32 13, i32* %1
br label %227
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 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 %227
27: ; preds = %24, %24, %24, %24
store i32 15, i32* %1
br label %227
28: ; preds = %24, %24, %24
store i32 16, i32* %1
br label %227
29: ; preds = %24
store i32 18, i32* %1
br label %227
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 %227
34: ; preds = %31
store i32 19, i32* %1
br label %227
35: ; preds = %31, %31, %31, %31
store i32 21, i32* %1
br label %227
36: ; preds = %31
store i32 22, i32* %1
br label %227
37: ; preds = %31
store i32 20, i32* %1
br label %227
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 %227
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 %227
46: ; preds = %42
store i32 21, i32* %1
br label %227
47: ; preds = %39
store i32 21, i32* %1
br label %227
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 %227
52: ; preds = %48
store i32 21, i32* %1
br label %227
53: ; preds = %39, %39
store i32 21, i32* %1
br label %227
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 %227
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 %227
62: ; preds = %58
store i32 21, i32* %1
br label %227
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 %227
67: ; preds = %63
store i32 21, i32* %1
br label %227
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 %227
72: ; preds = %68
store i32 21, i32* %1
br label %227
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 %227
80: ; preds = %76
store i32 21, i32* %1
br label %227
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 %227
85: ; preds = %81
store i32 21, i32* %1
br label %227
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 %227
90: ; preds = %86
store i32 21, i32* %1
br label %227
91: ; preds = %74, %74
store i32 21, i32* %1
br label %227
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 %227
99: ; preds = %95
store i32 21, i32* %1
br label %227
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 %227
104: ; preds = %100
store i32 21, i32* %1
br label %227
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 %227
109: ; preds = %105
store i32 21, i32* %1
br label %227
110: ; preds = %93
store i32 21, i32* %1
br label %227
111: ; preds = %93
br label %120
112: ; preds = %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 %227
118: ; preds = %114
store i32 21, i32* %1
br label %227
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 %227
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 %227
125: ; preds = %122
store i32 23, i32* %1
br label %227
126: ; preds = %122
br label %127
127: ; preds = %18, %126, %120
store i32 1, i32* %1
br label %227
128: ; preds = %10
%129 = load i32, i32* %5
%130 = icmp eq i32 %129, 3
br i1 %130, label %131, label %174
131: ; preds = %128
%132 = load i32, i32* %2
switch i32 %132, label %173 [
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 %227
134: ; preds = %131
store i32 26, i32* %1
br label %227
135: ; preds = %131
store i32 27, i32* %1
br label %227
136: ; preds = %131
%137 = load i32, i32* %3
switch i32 %137, label %172 [
i32 0, label %138
i32 2, label %138
i32 1, label %139
i32 3, label %139
i32 10, label %139
i32 6, label %140
i32 5, label %171
]
138: ; preds = %136, %136
store i32 29, i32* %1
br label %227
139: ; preds = %136, %136, %136
store i32 30, i32* %1
br label %227
140: ; preds = %136
%141 = load i32, i32* %4
switch i32 %141, label %170 [
i32 1, label %142
i32 2, label %147
i32 3, label %147
i32 0, label %152
]
142: ; preds = %140
%143 = call i32 (...) @support_avx()
%144 = icmp ne i32 %143, 0
br i1 %144, label %145, label %146
145: ; preds = %142
store i32 46, i32* %1
br label %227
146: ; preds = %142
store i32 30, i32* %1
br label %227
147: ; preds = %140, %140
%148 = call i32 (...) @support_avx()
%149 = icmp ne i32 %148, 0
br i1 %149, label %150, label %151
150: ; preds = %147
store i32 47, i32* %1
br label %227
151: ; preds = %147
store i32 30, i32* %1
br label %227
152: ; preds = %140
%153 = load i32, i32* %6
switch i32 %153, label %169 [
i32 1, label %154
i32 3, label %159
i32 6, label %164
]
154: ; preds = %152
%155 = call i32 (...) @support_avx()
%156 = icmp ne i32 %155, 0
br i1 %156, label %157, label %158
157: ; preds = %154
store i32 47, i32* %1
br label %227
158: ; preds = %154
store i32 30, i32* %1
br label %227
159: ; preds = %152
%160 = call i32 (...) @support_avx()
%161 = icmp ne i32 %160, 0
br i1 %161, label %162, label %163
162: ; preds = %159
store i32 49, i32* %1
br label %227
163: ; preds = %159
store i32 30, i32* %1
br label %227
164: ; preds = %152
%165 = call i32 (...) @support_avx()
%166 = icmp ne i32 %165, 0
br i1 %166, label %167, label %168
167: ; preds = %164
store i32 50, i32* %1
br label %227
168: ; preds = %164
store i32 30, i32* %1
br label %227
169: ; preds = %152
br label %170
170: ; preds = %140, %169
br label %172
171: ; preds = %136
store i32 45, i32* %1
br label %227
172: ; preds = %136, %170
br label %173
173: ; preds = %131, %172
store i32 3, i32* %1
br label %227
174: ; preds = %128
%175 = load i32, i32* %5
%176 = icmp eq i32 %175, 4
br i1 %176, label %177, label %183
177: ; preds = %174
%178 = load i32, i32* %2
switch i32 %178, label %182 [
i32 4, label %179
i32 5, label %180
i32 6, label %181
]
179: ; preds = %177
store i32 33, i32* %1
br label %227
180: ; preds = %177
store i32 34, i32* %1
br label %227
181: ; preds = %177
store i32 35, i32* %1
br label %227
182: ; preds = %177
store i32 4, i32* %1
br label %227
183: ; preds = %174
%184 = load i32, i32* %5
%185 = icmp eq i32 %184, 5
br i1 %185, label %186, label %190
186: ; preds = %183
%187 = load i32, i32* %2
switch i32 %187, label %189 [
i32 5, label %188
]
188: ; preds = %186
store i32 36, i32* %1
br label %227
189: ; preds = %186
store i32 5, i32* %1
br label %227
190: ; preds = %183
%191 = load i32, i32* %5
%192 = icmp eq i32 %191, 6
br i1 %192, label %193, label %198
193: ; preds = %190
%194 = load i32, i32* %2
switch i32 %194, label %197 [
i32 5, label %195
i32 6, label %196
]
195: ; preds = %193
store i32 37, i32* %1
br label %227
196: ; preds = %193
store i32 43, i32* %1
br label %227
197: ; preds = %193
store i32 42, i32* %1
br label %227
198: ; preds = %190
%199 = load i32, i32* %5
%200 = icmp eq i32 %199, 7
br i1 %200, label %201, label %205
201: ; preds = %198
%202 = load i32, i32* %2
switch i32 %202, label %204 [
i32 5, label %203
]
203: ; preds = %201
store i32 38, i32* %1
br label %227
204: ; preds = %201
store i32 7, i32* %1
br label %227
205: ; preds = %198
%206 = load i32, i32* %5
%207 = icmp eq i32 %206, 8
br i1 %207, label %208, label %212
208: ; preds = %205
%209 = load i32, i32* %2
switch i32 %209, label %211 [
i32 5, label %210
]
210: ; preds = %208
store i32 39, i32* %1
br label %227
211: ; preds = %208
store i32 8, i32* %1
br label %227
212: ; preds = %205
%213 = load i32, i32* %5
%214 = icmp eq i32 %213, 9
br i1 %214, label %215, label %219
215: ; preds = %212
%216 = load i32, i32* %2
switch i32 %216, label %218 [
i32 5, label %217
]
217: ; preds = %215
store i32 40, i32* %1
br label %227
218: ; preds = %215
store i32 9, i32* %1
br label %227
219: ; preds = %212
%220 = load i32, i32* %5
%221 = icmp eq i32 %220, 10
br i1 %221, label %222, label %226
222: ; preds = %219
%223 = load i32, i32* %2
switch i32 %223, label %225 [
i32 5, label %224
]
224: ; preds = %222
store i32 41, i32* %1
br label %227
225: ; preds = %222
store i32 10, i32* %1
br label %227
226: ; preds = %219
store i32 0, i32* %1
br label %227
227: ; preds = %226, %225, %224, %218, %217, %211, %210, %204, %203, %197, %196, %195, %189, %188, %182, %181, %180, %179, %173, %171, %168, %167, %163, %162, %158, %157, %151, %150, %146, %145, %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
%228 = load i32, i32* %1
ret i32 %228
}

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 %141, 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 %141 [
i32 1, label %9
i32 3, label %79
i32 4, label %108
i32 5, label %113
i32 6, label %116
i32 7, label %121
i32 8, label %124
i32 9, label %127
i32 10, label %130
]
9: ; preds = %3
switch i32 %4, label %78 [
i32 4, label %141
i32 5, label %10
i32 6, label %11
i32 7, label %72
i32 15, label %73
]
10: ; preds = %9
br label %141
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 8, label %66
]
12: ; preds = %11
%13 = add i32 %6, -1
%14 = icmp ult i32 %13, 15
br i1 %14, label %133, label %78
15: ; preds = %11
%16 = add i32 %6, -6
%17 = icmp ult i32 %16, 10
br i1 %17, label %137, label %78
18: ; preds = %11
switch i32 %6, label %78 [
i32 5, label %141
i32 10, label %19
i32 12, label %141
i32 13, label %23
i32 14, label %141
i32 15, label %141
]
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 %141
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 %141
27: ; preds = %11
switch i32 %6, label %78 [
i32 7, label %141
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 %141
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 %141
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 %141
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 %141
i32 13, label %141
]
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 %141
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 %141
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 %141
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 %141
]
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 %141
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 %141
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 %141
66: ; preds = %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 %141
72: ; preds = %9
br label %141
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 %141
78: ; preds = %15, %12, %11, %18, %27, %40, %53, %66, %9
br label %141
79: ; preds = %3
switch i32 %4, label %107 [
i32 4, label %141
i32 5, label %80
i32 6, label %81
i32 15, label %82
]
80: ; preds = %79
br label %141
81: ; preds = %79
br label %141
82: ; preds = %79
switch i32 %5, label %107 [
i32 0, label %141
i32 2, label %141
i32 1, label %83
i32 3, label %83
i32 10, label %83
i32 6, label %84
i32 5, label %106
]
83: ; preds = %82, %82, %82
br label %141
84: ; preds = %82
switch i32 %6, label %107 [
i32 1, label %85
i32 2, label %89
i32 3, label %89
i32 0, label %93
]
85: ; preds = %84
%86 = tail call i32 (...) @support_avx()
%87 = icmp eq i32 %86, 0
%88 = select i1 %87, i32 30, i32 46
br label %141
89: ; preds = %84, %84
%90 = tail call i32 (...) @support_avx()
%91 = icmp eq i32 %90, 0
%92 = select i1 %91, i32 30, i32 47
br label %141
93: ; preds = %84
switch i32 %7, label %107 [
i32 1, label %94
i32 3, label %98
i32 6, label %102
]
94: ; preds = %93
%95 = tail call i32 (...) @support_avx()
%96 = icmp eq i32 %95, 0
%97 = select i1 %96, i32 30, i32 47
br label %141
98: ; preds = %93
%99 = tail call i32 (...) @support_avx()
%100 = icmp eq i32 %99, 0
%101 = select i1 %100, i32 30, i32 49
br label %141
102: ; preds = %93
%103 = tail call i32 (...) @support_avx()
%104 = icmp eq i32 %103, 0
%105 = select i1 %104, i32 30, i32 50
br label %141
106: ; preds = %82
br label %141
107: ; preds = %82, %93, %84, %79
br label %141
108: ; preds = %3
%109 = add i32 %4, -4
%110 = icmp ult i32 %109, 3
%111 = add i32 %4, 29
%112 = select i1 %110, i32 %111, i32 4
br label %141
113: ; preds = %3
%114 = icmp eq i32 %4, 5
%115 = select i1 %114, i32 36, i32 5
br label %141
116: ; preds = %3
%117 = icmp eq i32 %4, 6
%118 = select i1 %117, i32 43, i32 42
%119 = icmp eq i32 %4, 5
%120 = select i1 %119, i32 37, i32 %118
br label %141
121: ; preds = %3
%122 = icmp eq i32 %4, 5
%123 = select i1 %122, i32 38, i32 7
br label %141
124: ; preds = %3
%125 = icmp eq i32 %4, 5
%126 = select i1 %125, i32 39, i32 8
br label %141
127: ; preds = %3
%128 = icmp eq i32 %4, 5
%129 = select i1 %128, i32 40, i32 9
br label %141
130: ; preds = %3
%131 = icmp eq i32 %4, 5
%132 = select i1 %131, i32 41, i32 10
br label %141
133: ; preds = %12
%134 = sext i32 %13 to i64
%135 = getelementptr inbounds [15 x i32], [15 x i32]* @switch.table.get_cpuname, i64 0, i64 %134
%136 = load i32, i32* %135
br label %141
137: ; preds = %15
%138 = sext i32 %16 to i64
%139 = getelementptr inbounds [10 x i32], [10 x i32]* @switch.table.get_cpuname.1, i64 0, i64 %138
%140 = load i32, i32* %139
br label %141
141: ; preds = %108, %137, %133, %3, %130, %127, %124, %121, %116, %113, %102, %98, %94, %89, %85, %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, %107, %106, %83, %81, %80, %78, %72, %10
%142 = phi i32 [ 1, %78 ], [ 23, %72 ], [ 13, %10 ], [ 3, %107 ], [ 45, %106 ], [ 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 ], [ %88, %85 ], [ %92, %89 ], [ %97, %94 ], [ %101, %98 ], [ %105, %102 ], [ %115, %113 ], [ %120, %116 ], [ %123, %121 ], [ %126, %124 ], [ %129, %127 ], [ %132, %130 ], [ 0, %3 ], [ %136, %133 ], [ %140, %137 ], [ %112, %108 ]
ret i32 %142
}