#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;
      case 2:
        switch (model) {
        case 5:
          return 21;
        case 10:
          return 21;
        case 12:
          return 21;
        case 13:
          return 21;
        case 15:
          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 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    1610 <get_cpuname+0x4e0>
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    13a2 <get_cpuname+0x272>
mov    -0x8(%rbp),%eax
add    $0xfffffffc,%eax
mov    %eax,%ecx
mov    %rcx,-0x20(%rbp)
sub    $0xb,%eax
ja     1396 <get_cpuname+0x266>
mov    -0x20(%rbp),%rax
lea    0xea0(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0xc,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
movl   $0xd,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
mov    -0x18(%rbp),%eax
mov    %eax,-0x24(%rbp)
test   %eax,%eax
je     1212 <get_cpuname+0xe2>
jmp    11f0 <get_cpuname+0xc0>
mov    -0x24(%rbp),%eax
sub    $0x1,%eax
je     1270 <get_cpuname+0x140>
jmp    1201 <get_cpuname+0xd1>
mov    -0x24(%rbp),%eax
sub    $0x2,%eax
je     12da <get_cpuname+0x1aa>
jmp    1344 <get_cpuname+0x214>
mov    -0x10(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x30(%rbp)
sub    $0xe,%eax
ja     126b <get_cpuname+0x13b>
mov    -0x30(%rbp),%rax
lea    0xeae(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0xe,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
movl   $0xf,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
movl   $0x10,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
movl   $0x12,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
jmp    1344 <get_cpuname+0x214>
mov    -0x10(%rbp),%eax
add    $0xfffffffa,%eax
mov    %eax,%ecx
mov    %rcx,-0x38(%rbp)
sub    $0x9,%eax
ja     12d5 <get_cpuname+0x1a5>
mov    -0x38(%rbp),%rax
lea    0xe28(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x12,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
movl   $0x13,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
movl   $0x15,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
movl   $0x16,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
movl   $0x14,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
jmp    1344 <get_cpuname+0x214>
mov    -0x10(%rbp),%eax
add    $0xfffffffb,%eax
mov    %eax,%ecx
mov    %rcx,-0x40(%rbp)
sub    $0xa,%eax
ja     133f <get_cpuname+0x20f>
mov    -0x40(%rbp),%rax
lea    0xd92(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x15,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
movl   $0x15,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
movl   $0x15,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
movl   $0x15,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
movl   $0x15,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
jmp    1344 <get_cpuname+0x214>
jmp    1396 <get_cpuname+0x266>
movl   $0x17,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
mov    -0xc(%rbp),%eax
mov    %eax,-0x44(%rbp)
test   %eax,%eax
je     1379 <get_cpuname+0x249>
jmp    1368 <get_cpuname+0x238>
mov    -0x44(%rbp),%eax
sub    $0x1,%eax
je     1385 <get_cpuname+0x255>
jmp    1391 <get_cpuname+0x261>
movl   $0x11,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
movl   $0x17,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
jmp    1396 <get_cpuname+0x266>
movl   $0x1,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
cmpl   $0x3,-0x14(%rbp)
jne    1447 <get_cpuname+0x317>
mov    -0x8(%rbp),%eax
add    $0xfffffffc,%eax
mov    %eax,%ecx
mov    %rcx,-0x50(%rbp)
sub    $0xb,%eax
ja     143b <get_cpuname+0x30b>
mov    -0x50(%rbp),%rax
lea    0xc34(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x19,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
movl   $0x1a,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
movl   $0x1b,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
mov    -0xc(%rbp),%eax
mov    %rax,-0x58(%rbp)
sub    $0xa,%rax
ja     1436 <get_cpuname+0x306>
mov    -0x58(%rbp),%rax
lea    0xc1b(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x1d,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
movl   $0x1e,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
jmp    143b <get_cpuname+0x30b>
movl   $0x3,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
cmpl   $0x4,-0x14(%rbp)
jne    14b7 <get_cpuname+0x387>
mov    -0x8(%rbp),%eax
mov    %eax,-0x5c(%rbp)
sub    $0x4,%eax
je     1487 <get_cpuname+0x357>
jmp    1465 <get_cpuname+0x335>
mov    -0x5c(%rbp),%eax
sub    $0x5,%eax
je     1493 <get_cpuname+0x363>
jmp    1476 <get_cpuname+0x346>
mov    -0x5c(%rbp),%eax
sub    $0x6,%eax
je     149f <get_cpuname+0x36f>
jmp    14ab <get_cpuname+0x37b>
movl   $0x21,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
movl   $0x22,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
movl   $0x23,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
movl   $0x4,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
cmpl   $0x5,-0x14(%rbp)
jne    14ea <get_cpuname+0x3ba>
mov    -0x8(%rbp),%eax
sub    $0x5,%eax
jne    14de <get_cpuname+0x3ae>
jmp    14d2 <get_cpuname+0x3a2>
movl   $0x24,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
movl   $0x5,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
cmpl   $0x6,-0x14(%rbp)
jne    153d <get_cpuname+0x40d>
mov    -0x8(%rbp),%eax
mov    %eax,-0x60(%rbp)
sub    $0x5,%eax
je     1519 <get_cpuname+0x3e9>
jmp    1508 <get_cpuname+0x3d8>
mov    -0x60(%rbp),%eax
sub    $0x6,%eax
je     1525 <get_cpuname+0x3f5>
jmp    1531 <get_cpuname+0x401>
movl   $0x25,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
movl   $0x2b,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
movl   $0x2a,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
cmpl   $0x7,-0x14(%rbp)
jne    1570 <get_cpuname+0x440>
mov    -0x8(%rbp),%eax
sub    $0x5,%eax
jne    1564 <get_cpuname+0x434>
jmp    1558 <get_cpuname+0x428>
movl   $0x26,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
movl   $0x7,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
cmpl   $0x8,-0x14(%rbp)
jne    15a3 <get_cpuname+0x473>
mov    -0x8(%rbp),%eax
sub    $0x5,%eax
jne    1597 <get_cpuname+0x467>
jmp    158b <get_cpuname+0x45b>
movl   $0x27,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
movl   $0x8,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
cmpl   $0x9,-0x14(%rbp)
jne    15d6 <get_cpuname+0x4a6>
mov    -0x8(%rbp),%eax
sub    $0x5,%eax
jne    15ca <get_cpuname+0x49a>
jmp    15be <get_cpuname+0x48e>
movl   $0x28,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
movl   $0x9,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
cmpl   $0xa,-0x14(%rbp)
jne    1609 <get_cpuname+0x4d9>
mov    -0x8(%rbp),%eax
sub    $0x5,%eax
jne    15fd <get_cpuname+0x4cd>
jmp    15f1 <get_cpuname+0x4c1>
movl   $0x29,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
movl   $0xa,-0x4(%rbp)
jmp    1610 <get_cpuname+0x4e0>
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,%r12d
mov    $0x5,%edi
call   1030 <get_cputype@plt>
mov    %eax,%r15d
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     1353 <get_cpuname+0x223>
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
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    $0x26,%eax
mov    $0x7,%ebx
cmove  %eax,%ebx
jmp    11c6 <get_cpuname+0x96>
add    $0xfffffffc,%r14d
cmp    $0xb,%r14d
ja     12c8 <get_cpuname+0x198>
mov    $0x19,%ebx
lea    0xe14(%rip),%rax
movslq (%rax,%r14,4),%rcx
add    %rax,%rcx
jmp    *%rcx
mov    $0x1a,%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    $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,%r12d
ja     12c8 <get_cpuname+0x198>
mov    $0x1d,%ebx
mov    %r12d,%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    $0x2,%ebp
je     1321 <get_cpuname+0x1f1>
cmp    $0x1,%ebp
je     1337 <get_cpuname+0x207>
test   %ebp,%ebp
jne    1353 <get_cpuname+0x223>
add    $0xffffffff,%r15d
cmp    $0xf,%r15d
jae    1353 <get_cpuname+0x223>
movslq %r15d,%rax
lea    0xdc0(%rip),%rcx
jmp    134b <get_cpuname+0x21b>
mov    $0x17,%ebx
jmp    11c6 <get_cpuname+0x96>
cmp    $0x1,%r12d
mov    $0x17,%eax
mov    $0x1,%ecx
cmove  %eax,%ecx
test   %r12d,%r12d
mov    $0x11,%ebx
cmovne %ecx,%ebx
jmp    11c6 <get_cpuname+0x96>
add    $0xfffffffb,%r15d
cmp    $0xb,%r15d
jae    1353 <get_cpuname+0x223>
movslq %r15d,%rax
lea    0xde3(%rip),%rcx
jmp    134b <get_cpuname+0x21b>
add    $0xfffffffa,%r15d
cmp    $0xa,%r15d
jae    1353 <get_cpuname+0x223>
movslq %r15d,%rax
lea    0xda5(%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 %122
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 %55
18: ; preds = %10
%19 = load i32, i32* %2
switch i32 %19, label %54 [
i32 4, label %20
i32 5, label %21
i32 6, label %22
i32 7, label %48
i32 15, label %49
]
20: ; preds = %18
store i32 12, i32* %1
br label %122
21: ; preds = %18
store i32 13, i32* %1
br label %122
22: ; preds = %18
%23 = load i32, i32* %6
switch i32 %23, label %47 [
i32 0, label %24
i32 1, label %31
i32 2, label %39
]
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 %122
27: ; preds = %24, %24, %24, %24
store i32 15, i32* %1
br label %122
28: ; preds = %24, %24, %24
store i32 16, i32* %1
br label %122
29: ; preds = %24
store i32 18, i32* %1
br label %122
30: ; preds = %24
br label %47
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 %122
34: ; preds = %31
store i32 19, i32* %1
br label %122
35: ; preds = %31, %31, %31, %31
store i32 21, i32* %1
br label %122
36: ; preds = %31
store i32 22, i32* %1
br label %122
37: ; preds = %31
store i32 20, i32* %1
br label %122
38: ; preds = %31
br label %47
39: ; preds = %22
%40 = load i32, i32* %4
switch i32 %40, label %46 [
i32 5, label %41
i32 10, label %42
i32 12, label %43
i32 13, label %44
i32 15, label %45
]
41: ; preds = %39
store i32 21, i32* %1
br label %122
42: ; preds = %39
store i32 21, i32* %1
br label %122
43: ; preds = %39
store i32 21, i32* %1
br label %122
44: ; preds = %39
store i32 21, i32* %1
br label %122
45: ; preds = %39
store i32 21, i32* %1
br label %122
46: ; preds = %39
br label %47
47: ; preds = %22, %46, %38, %30
br label %54
48: ; preds = %18
store i32 23, i32* %1
br label %122
49: ; preds = %18
%50 = load i32, i32* %3
switch i32 %50, label %53 [
i32 0, label %51
i32 1, label %52
]
51: ; preds = %49
store i32 17, i32* %1
br label %122
52: ; preds = %49
store i32 23, i32* %1
br label %122
53: ; preds = %49
br label %54
54: ; preds = %18, %53, %47
store i32 1, i32* %1
br label %122
55: ; preds = %10
%56 = load i32, i32* %5
%57 = icmp eq i32 %56, 3
br i1 %57, label %58, label %69
58: ; preds = %55
%59 = load i32, i32* %2
switch i32 %59, label %68 [
i32 4, label %60
i32 5, label %61
i32 6, label %62
i32 15, label %63
]
60: ; preds = %58
store i32 25, i32* %1
br label %122
61: ; preds = %58
store i32 26, i32* %1
br label %122
62: ; preds = %58
store i32 27, i32* %1
br label %122
63: ; preds = %58
%64 = load i32, i32* %3
switch i32 %64, label %67 [
i32 0, label %65
i32 2, label %65
i32 1, label %66
i32 10, label %66
]
65: ; preds = %63, %63
store i32 29, i32* %1
br label %122
66: ; preds = %63, %63
store i32 30, i32* %1
br label %122
67: ; preds = %63
br label %68
68: ; preds = %58, %67
store i32 3, i32* %1
br label %122
69: ; preds = %55
%70 = load i32, i32* %5
%71 = icmp eq i32 %70, 4
br i1 %71, label %72, label %78
72: ; preds = %69
%73 = load i32, i32* %2
switch i32 %73, label %77 [
i32 4, label %74
i32 5, label %75
i32 6, label %76
]
74: ; preds = %72
store i32 33, i32* %1
br label %122
75: ; preds = %72
store i32 34, i32* %1
br label %122
76: ; preds = %72
store i32 35, i32* %1
br label %122
77: ; preds = %72
store i32 4, i32* %1
br label %122
78: ; preds = %69
%79 = load i32, i32* %5
%80 = icmp eq i32 %79, 5
br i1 %80, label %81, label %85
81: ; preds = %78
%82 = load i32, i32* %2
switch i32 %82, label %84 [
i32 5, label %83
]
83: ; preds = %81
store i32 36, i32* %1
br label %122
84: ; preds = %81
store i32 5, i32* %1
br label %122
85: ; preds = %78
%86 = load i32, i32* %5
%87 = icmp eq i32 %86, 6
br i1 %87, label %88, label %93
88: ; preds = %85
%89 = load i32, i32* %2
switch i32 %89, label %92 [
i32 5, label %90
i32 6, label %91
]
90: ; preds = %88
store i32 37, i32* %1
br label %122
91: ; preds = %88
store i32 43, i32* %1
br label %122
92: ; preds = %88
store i32 42, i32* %1
br label %122
93: ; preds = %85
%94 = load i32, i32* %5
%95 = icmp eq i32 %94, 7
br i1 %95, label %96, label %100
96: ; preds = %93
%97 = load i32, i32* %2
switch i32 %97, label %99 [
i32 5, label %98
]
98: ; preds = %96
store i32 38, i32* %1
br label %122
99: ; preds = %96
store i32 7, i32* %1
br label %122
100: ; preds = %93
%101 = load i32, i32* %5
%102 = icmp eq i32 %101, 8
br i1 %102, label %103, label %107
103: ; preds = %100
%104 = load i32, i32* %2
switch i32 %104, label %106 [
i32 5, label %105
]
105: ; preds = %103
store i32 39, i32* %1
br label %122
106: ; preds = %103
store i32 8, i32* %1
br label %122
107: ; preds = %100
%108 = load i32, i32* %5
%109 = icmp eq i32 %108, 9
br i1 %109, label %110, label %114
110: ; preds = %107
%111 = load i32, i32* %2
switch i32 %111, label %113 [
i32 5, label %112
]
112: ; preds = %110
store i32 40, i32* %1
br label %122
113: ; preds = %110
store i32 9, i32* %1
br label %122
114: ; preds = %107
%115 = load i32, i32* %5
%116 = icmp eq i32 %115, 10
br i1 %116, label %117, label %121
117: ; preds = %114
%118 = load i32, i32* %2
switch i32 %118, label %120 [
i32 5, label %119
]
119: ; preds = %117
store i32 41, i32* %1
br label %122
120: ; preds = %117
store i32 10, i32* %1
br label %122
121: ; preds = %114
store i32 0, i32* %1
br label %122
122: ; preds = %121, %120, %119, %113, %112, %106, %105, %99, %98, %92, %91, %90, %84, %83, %77, %76, %75, %74, %68, %66, %65, %62, %61, %60, %54, %52, %51, %48, %45, %44, %43, %42, %41, %37, %36, %35, %34, %33, %29, %28, %27, %26, %21, %20, %9
%123 = load i32, i32* %1
ret i32 %123
}

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