#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 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;
        }
      }
      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 10:
        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    $0x60,%rsp
mov    $0x0,%al
call   1050 <have_cpuid@plt>
cmp    $0x0,%eax
jne    1154 <get_cpuname+0x24>
movl   $0xb,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
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    1327 <get_cpuname+0x1f7>
mov    -0x8(%rbp),%eax
add    $0xfffffffc,%eax
mov    %eax,%ecx
mov    %rcx,-0x20(%rbp)
sub    $0xb,%eax
ja     131b <get_cpuname+0x1eb>
mov    -0x20(%rbp),%rax
lea    0xea0(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0xc,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
movl   $0xd,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
mov    -0x18(%rbp),%eax
mov    %eax,-0x24(%rbp)
test   %eax,%eax
je     1201 <get_cpuname+0xd1>
jmp    11f0 <get_cpuname+0xc0>
mov    -0x24(%rbp),%eax
sub    $0x1,%eax
je     125f <get_cpuname+0x12f>
jmp    12c9 <get_cpuname+0x199>
mov    -0x10(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x30(%rbp)
sub    $0xe,%eax
ja     125a <get_cpuname+0x12a>
mov    -0x30(%rbp),%rax
lea    0xe93(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0xe,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
movl   $0xf,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
movl   $0x10,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
movl   $0x12,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
jmp    12c9 <get_cpuname+0x199>
mov    -0x10(%rbp),%eax
add    $0xfffffffa,%eax
mov    %eax,%ecx
mov    %rcx,-0x38(%rbp)
sub    $0x9,%eax
ja     12c4 <get_cpuname+0x194>
mov    -0x38(%rbp),%rax
lea    0xe0d(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x12,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
movl   $0x13,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
movl   $0x15,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
movl   $0x16,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
movl   $0x14,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
jmp    12c9 <get_cpuname+0x199>
jmp    131b <get_cpuname+0x1eb>
movl   $0x17,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
mov    -0xc(%rbp),%eax
mov    %eax,-0x3c(%rbp)
test   %eax,%eax
je     12fe <get_cpuname+0x1ce>
jmp    12ed <get_cpuname+0x1bd>
mov    -0x3c(%rbp),%eax
sub    $0x1,%eax
je     130a <get_cpuname+0x1da>
jmp    1316 <get_cpuname+0x1e6>
movl   $0x11,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
movl   $0x17,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
jmp    131b <get_cpuname+0x1eb>
movl   $0x1,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
cmpl   $0x3,-0x14(%rbp)
jne    13cc <get_cpuname+0x29c>
mov    -0x8(%rbp),%eax
add    $0xfffffffc,%eax
mov    %eax,%ecx
mov    %rcx,-0x48(%rbp)
sub    $0xb,%eax
ja     13c0 <get_cpuname+0x290>
mov    -0x48(%rbp),%rax
lea    0xcaf(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x19,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
movl   $0x1a,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
movl   $0x1b,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
mov    -0xc(%rbp),%eax
mov    %rax,-0x50(%rbp)
sub    $0xa,%rax
ja     13bb <get_cpuname+0x28b>
mov    -0x50(%rbp),%rax
lea    0xc96(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x1d,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
movl   $0x1e,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
jmp    13c0 <get_cpuname+0x290>
movl   $0x3,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
cmpl   $0x4,-0x14(%rbp)
jne    143c <get_cpuname+0x30c>
mov    -0x8(%rbp),%eax
mov    %eax,-0x54(%rbp)
sub    $0x4,%eax
je     140c <get_cpuname+0x2dc>
jmp    13ea <get_cpuname+0x2ba>
mov    -0x54(%rbp),%eax
sub    $0x5,%eax
je     1418 <get_cpuname+0x2e8>
jmp    13fb <get_cpuname+0x2cb>
mov    -0x54(%rbp),%eax
sub    $0x6,%eax
je     1424 <get_cpuname+0x2f4>
jmp    1430 <get_cpuname+0x300>
movl   $0x21,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
movl   $0x22,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
movl   $0x23,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
movl   $0x4,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
cmpl   $0x5,-0x14(%rbp)
jne    146f <get_cpuname+0x33f>
mov    -0x8(%rbp),%eax
sub    $0x5,%eax
jne    1463 <get_cpuname+0x333>
jmp    1457 <get_cpuname+0x327>
movl   $0x24,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
movl   $0x5,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
cmpl   $0x6,-0x14(%rbp)
jne    14c2 <get_cpuname+0x392>
mov    -0x8(%rbp),%eax
mov    %eax,-0x58(%rbp)
sub    $0x5,%eax
je     149e <get_cpuname+0x36e>
jmp    148d <get_cpuname+0x35d>
mov    -0x58(%rbp),%eax
sub    $0x6,%eax
je     14aa <get_cpuname+0x37a>
jmp    14b6 <get_cpuname+0x386>
movl   $0x25,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
movl   $0x2b,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
movl   $0x2a,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
cmpl   $0x7,-0x14(%rbp)
jne    14f5 <get_cpuname+0x3c5>
mov    -0x8(%rbp),%eax
sub    $0x5,%eax
jne    14e9 <get_cpuname+0x3b9>
jmp    14dd <get_cpuname+0x3ad>
movl   $0x26,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
movl   $0x7,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
cmpl   $0x8,-0x14(%rbp)
jne    1528 <get_cpuname+0x3f8>
mov    -0x8(%rbp),%eax
sub    $0x5,%eax
jne    151c <get_cpuname+0x3ec>
jmp    1510 <get_cpuname+0x3e0>
movl   $0x27,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
movl   $0x8,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
cmpl   $0x9,-0x14(%rbp)
jne    155b <get_cpuname+0x42b>
mov    -0x8(%rbp),%eax
sub    $0x5,%eax
jne    154f <get_cpuname+0x41f>
jmp    1543 <get_cpuname+0x413>
movl   $0x28,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
movl   $0x9,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
cmpl   $0xa,-0x14(%rbp)
jne    158e <get_cpuname+0x45e>
mov    -0x8(%rbp),%eax
sub    $0x5,%eax
jne    1582 <get_cpuname+0x452>
jmp    1576 <get_cpuname+0x446>
movl   $0x29,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
movl   $0xa,-0x4(%rbp)
jmp    1595 <get_cpuname+0x465>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%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   1050 <have_cpuid@plt>
test   %eax,%eax
je     11c1 <get_cpuname+0x91>
mov    $0x4,%edi
call   1030 <get_cputype@plt>
mov    %eax,%r14d
mov    $0x1,%edi
call   1030 <get_cputype@plt>
mov    %eax,%r15d
mov    $0x5,%edi
call   1030 <get_cputype@plt>
mov    %eax,%r12d
mov    $0x2,%edi
call   1030 <get_cputype@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1040 <get_vendor@plt>
add    $0xffffffff,%eax
cmp    $0x9,%eax
ja     11c6 <get_cpuname+0x96>
lea    0xe72(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
add    $0xfffffffc,%r14d
cmp    $0xb,%r14d
ja     1338 <get_cpuname+0x208>
mov    $0xc,%ebx
lea    0xed3(%rip),%rax
movslq (%rax,%r14,4),%rcx
add    %rax,%rcx
jmp    *%rcx
mov    $0xd,%ebx
jmp    11c6 <get_cpuname+0x96>
mov    $0xb,%ebx
mov    %ebx,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
add    $0xfffffffc,%r14d
cmp    $0xb,%r14d
ja     12c8 <get_cpuname+0x198>
mov    $0x19,%ebx
lea    0xe3d(%rip),%rax
movslq (%rax,%r14,4),%rcx
add    %rax,%rcx
jmp    *%rcx
mov    $0x1a,%ebx
jmp    11c6 <get_cpuname+0x96>
lea    -0x4(%r14),%eax
add    $0x1d,%r14d
cmp    $0x3,%eax
mov    $0x4,%ebx
cmovb  %r14d,%ebx
jmp    11c6 <get_cpuname+0x96>
cmp    $0x5,%r14d
mov    $0x24,%eax
mov    $0x5,%ebx
cmove  %eax,%ebx
jmp    11c6 <get_cpuname+0x96>
xor    %eax,%eax
cmp    $0x6,%r14d
sete   %al
or     $0x2a,%eax
cmp    $0x5,%r14d
mov    $0x25,%ebx
cmovne %eax,%ebx
jmp    11c6 <get_cpuname+0x96>
cmp    $0x5,%r14d
mov    $0x26,%eax
mov    $0x7,%ebx
cmove  %eax,%ebx
jmp    11c6 <get_cpuname+0x96>
cmp    $0x5,%r14d
mov    $0x27,%eax
mov    $0x8,%ebx
cmove  %eax,%ebx
jmp    11c6 <get_cpuname+0x96>
cmp    $0x5,%r14d
mov    $0x28,%eax
mov    $0x9,%ebx
cmove  %eax,%ebx
jmp    11c6 <get_cpuname+0x96>
cmp    $0x5,%r14d
mov    $0x29,%eax
mov    $0xa,%ebx
cmove  %eax,%ebx
jmp    11c6 <get_cpuname+0x96>
mov    $0x1b,%ebx
jmp    11c6 <get_cpuname+0x96>
cmp    $0xa,%r15d
ja     12c8 <get_cpuname+0x198>
mov    $0x1d,%ebx
mov    %r15d,%eax
lea    0xda3(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x1e,%ebx
jmp    11c6 <get_cpuname+0x96>
mov    $0x3,%ebx
jmp    11c6 <get_cpuname+0x96>
cmp    $0x1,%ebp
je     131c <get_cpuname+0x1ec>
test   %ebp,%ebp
jne    1338 <get_cpuname+0x208>
add    $0xffffffff,%r12d
cmp    $0xf,%r12d
jae    1338 <get_cpuname+0x208>
movslq %r12d,%rax
lea    0xdc5(%rip),%rcx
jmp    1330 <get_cpuname+0x200>
mov    $0x17,%ebx
jmp    11c6 <get_cpuname+0x96>
cmp    $0x1,%r15d
mov    $0x17,%eax
mov    $0x1,%ecx
cmove  %eax,%ecx
test   %r15d,%r15d
mov    $0x11,%ebx
cmovne %ecx,%ebx
jmp    11c6 <get_cpuname+0x96>
add    $0xfffffffa,%r12d
cmp    $0xa,%r12d
jae    1338 <get_cpuname+0x208>
movslq %r12d,%rax
lea    0xdc0(%rip),%rcx
mov    (%rcx,%rax,4),%ebx
jmp    11c6 <get_cpuname+0x96>
mov    $0x1,%ebx
jmp    11c6 <get_cpuname+0x96>

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 %114
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 %47
18: ; preds = %10
%19 = load i32, i32* %2
switch i32 %19, label %46 [
i32 4, label %20
i32 5, label %21
i32 6, label %22
i32 7, label %40
i32 15, label %41
]
20: ; preds = %18
store i32 12, i32* %1
br label %114
21: ; preds = %18
store i32 13, i32* %1
br label %114
22: ; preds = %18
%23 = load i32, i32* %6
switch i32 %23, label %39 [
i32 0, label %24
i32 1, label %31
]
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 %114
27: ; preds = %24, %24, %24, %24
store i32 15, i32* %1
br label %114
28: ; preds = %24, %24, %24
store i32 16, i32* %1
br label %114
29: ; preds = %24
store i32 18, i32* %1
br label %114
30: ; preds = %24
br label %39
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 %114
34: ; preds = %31
store i32 19, i32* %1
br label %114
35: ; preds = %31, %31, %31, %31
store i32 21, i32* %1
br label %114
36: ; preds = %31
store i32 22, i32* %1
br label %114
37: ; preds = %31
store i32 20, i32* %1
br label %114
38: ; preds = %31
br label %39
39: ; preds = %38, %22, %30
br label %46
40: ; preds = %18
store i32 23, i32* %1
br label %114
41: ; preds = %18
%42 = load i32, i32* %3
switch i32 %42, label %45 [
i32 0, label %43
i32 1, label %44
]
43: ; preds = %41
store i32 17, i32* %1
br label %114
44: ; preds = %41
store i32 23, i32* %1
br label %114
45: ; preds = %41
br label %46
46: ; preds = %18, %45, %39
store i32 1, i32* %1
br label %114
47: ; preds = %10
%48 = load i32, i32* %5
%49 = icmp eq i32 %48, 3
br i1 %49, label %50, label %61
50: ; preds = %47
%51 = load i32, i32* %2
switch i32 %51, label %60 [
i32 4, label %52
i32 5, label %53
i32 6, label %54
i32 15, label %55
]
52: ; preds = %50
store i32 25, i32* %1
br label %114
53: ; preds = %50
store i32 26, i32* %1
br label %114
54: ; preds = %50
store i32 27, i32* %1
br label %114
55: ; preds = %50
%56 = load i32, i32* %3
switch i32 %56, label %59 [
i32 0, label %57
i32 2, label %57
i32 1, label %58
i32 10, label %58
]
57: ; preds = %55, %55
store i32 29, i32* %1
br label %114
58: ; preds = %55, %55
store i32 30, i32* %1
br label %114
59: ; preds = %55
br label %60
60: ; preds = %50, %59
store i32 3, i32* %1
br label %114
61: ; preds = %47
%62 = load i32, i32* %5
%63 = icmp eq i32 %62, 4
br i1 %63, label %64, label %70
64: ; preds = %61
%65 = load i32, i32* %2
switch i32 %65, label %69 [
i32 4, label %66
i32 5, label %67
i32 6, label %68
]
66: ; preds = %64
store i32 33, i32* %1
br label %114
67: ; preds = %64
store i32 34, i32* %1
br label %114
68: ; preds = %64
store i32 35, i32* %1
br label %114
69: ; preds = %64
store i32 4, i32* %1
br label %114
70: ; preds = %61
%71 = load i32, i32* %5
%72 = icmp eq i32 %71, 5
br i1 %72, label %73, label %77
73: ; preds = %70
%74 = load i32, i32* %2
switch i32 %74, label %76 [
i32 5, label %75
]
75: ; preds = %73
store i32 36, i32* %1
br label %114
76: ; preds = %73
store i32 5, i32* %1
br label %114
77: ; preds = %70
%78 = load i32, i32* %5
%79 = icmp eq i32 %78, 6
br i1 %79, label %80, label %85
80: ; preds = %77
%81 = load i32, i32* %2
switch i32 %81, label %84 [
i32 5, label %82
i32 6, label %83
]
82: ; preds = %80
store i32 37, i32* %1
br label %114
83: ; preds = %80
store i32 43, i32* %1
br label %114
84: ; preds = %80
store i32 42, i32* %1
br label %114
85: ; preds = %77
%86 = load i32, i32* %5
%87 = icmp eq i32 %86, 7
br i1 %87, label %88, label %92
88: ; preds = %85
%89 = load i32, i32* %2
switch i32 %89, label %91 [
i32 5, label %90
]
90: ; preds = %88
store i32 38, i32* %1
br label %114
91: ; preds = %88
store i32 7, i32* %1
br label %114
92: ; preds = %85
%93 = load i32, i32* %5
%94 = icmp eq i32 %93, 8
br i1 %94, label %95, label %99
95: ; preds = %92
%96 = load i32, i32* %2
switch i32 %96, label %98 [
i32 5, label %97
]
97: ; preds = %95
store i32 39, i32* %1
br label %114
98: ; preds = %95
store i32 8, i32* %1
br label %114
99: ; preds = %92
%100 = load i32, i32* %5
%101 = icmp eq i32 %100, 9
br i1 %101, label %102, label %106
102: ; preds = %99
%103 = load i32, i32* %2
switch i32 %103, label %105 [
i32 5, label %104
]
104: ; preds = %102
store i32 40, i32* %1
br label %114
105: ; preds = %102
store i32 9, i32* %1
br label %114
106: ; preds = %99
%107 = load i32, i32* %5
%108 = icmp eq i32 %107, 10
br i1 %108, label %109, label %113
109: ; preds = %106
%110 = load i32, i32* %2
switch i32 %110, label %112 [
i32 5, label %111
]
111: ; preds = %109
store i32 41, i32* %1
br label %114
112: ; preds = %109
store i32 10, i32* %1
br label %114
113: ; preds = %106
store i32 0, i32* %1
br label %114
114: ; preds = %113, %112, %111, %105, %104, %98, %97, %91, %90, %84, %83, %82, %76, %75, %69, %68, %67, %66, %60, %58, %57, %54, %53, %52, %46, %44, %43, %40, %37, %36, %35, %34, %33, %29, %28, %27, %26, %21, %20, %9
%115 = load i32, i32* %1
ret i32 %115
}

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 %64, 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 %64 [
i32 1, label %9
i32 3, label %25
i32 4, label %31
i32 5, label %36
i32 6, label %39
i32 7, label %44
i32 8, label %47
i32 9, label %50
i32 10, label %53
]
9: ; preds = %3
switch i32 %4, label %24 [
i32 4, label %64
i32 5, label %10
i32 6, label %11
i32 7, label %18
i32 15, label %19
]
10: ; preds = %9
br label %64
11: ; preds = %9
switch i32 %7, label %24 [
i32 0, label %12
i32 1, label %15
]
12: ; preds = %11
%13 = add i32 %6, -1
%14 = icmp ult i32 %13, 15
br i1 %14, label %56, label %24
15: ; preds = %11
%16 = add i32 %6, -6
%17 = icmp ult i32 %16, 10
br i1 %17, label %60, label %24
18: ; preds = %9
br label %64
19: ; preds = %9
%20 = icmp eq i32 %5, 1
%21 = select i1 %20, i32 23, i32 1
%22 = icmp eq i32 %5, 0
%23 = select i1 %22, i32 17, i32 %21
br label %64
24: ; preds = %15, %12, %11, %9
br label %64
25: ; preds = %3
switch i32 %4, label %30 [
i32 4, label %64
i32 5, label %26
i32 6, label %27
i32 15, label %28
]
26: ; preds = %25
br label %64
27: ; preds = %25
br label %64
28: ; preds = %25
switch i32 %5, label %30 [
i32 0, label %64
i32 2, label %64
i32 1, label %29
i32 10, label %29
]
29: ; preds = %28, %28
br label %64
30: ; preds = %28, %25
br label %64
31: ; preds = %3
%32 = add i32 %4, -4
%33 = icmp ult i32 %32, 3
%34 = add i32 %4, 29
%35 = select i1 %33, i32 %34, i32 4
br label %64
36: ; preds = %3
%37 = icmp eq i32 %4, 5
%38 = select i1 %37, i32 36, i32 5
br label %64
39: ; preds = %3
%40 = icmp eq i32 %4, 6
%41 = select i1 %40, i32 43, i32 42
%42 = icmp eq i32 %4, 5
%43 = select i1 %42, i32 37, i32 %41
br label %64
44: ; preds = %3
%45 = icmp eq i32 %4, 5
%46 = select i1 %45, i32 38, i32 7
br label %64
47: ; preds = %3
%48 = icmp eq i32 %4, 5
%49 = select i1 %48, i32 39, i32 8
br label %64
50: ; preds = %3
%51 = icmp eq i32 %4, 5
%52 = select i1 %51, i32 40, i32 9
br label %64
53: ; preds = %3
%54 = icmp eq i32 %4, 5
%55 = select i1 %54, i32 41, i32 10
br label %64
56: ; preds = %12
%57 = sext i32 %13 to i64
%58 = getelementptr inbounds [15 x i32], [15 x i32]* @switch.table.get_cpuname, i64 0, i64 %57
%59 = load i32, i32* %58
br label %64
60: ; preds = %15
%61 = sext i32 %16 to i64
%62 = getelementptr inbounds [10 x i32], [10 x i32]* @switch.table.get_cpuname.1, i64 0, i64 %61
%63 = load i32, i32* %62
br label %64
64: ; preds = %31, %60, %56, %3, %53, %50, %47, %44, %39, %36, %28, %28, %25, %19, %9, %0, %30, %29, %27, %26, %24, %18, %10
%65 = phi i32 [ 1, %24 ], [ 23, %18 ], [ 13, %10 ], [ 3, %30 ], [ 30, %29 ], [ 27, %27 ], [ 26, %26 ], [ 11, %0 ], [ 12, %9 ], [ %23, %19 ], [ 25, %25 ], [ 29, %28 ], [ 29, %28 ], [ %38, %36 ], [ %43, %39 ], [ %46, %44 ], [ %49, %47 ], [ %52, %50 ], [ %55, %53 ], [ 0, %3 ], [ %59, %56 ], [ %63, %60 ], [ %35, %31 ]
ret i32 %65
}