#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 /*<<< orphan*/ cpuid(int, int *, int *, int *, int *);
int get_vendor();
int /*<<< orphan*/ have_cpuid();
int /*<<< orphan*/ support_avx();
int cpu_detect() {
  int eax, ebx, ecx, edx;
  int vendor, family, extend_family, model, extend_model;
  if (!have_cpuid())
    return 0;
  vendor = get_vendor();
  cpuid(1, &eax, &ebx, &ecx, &edx);
  extend_family = ((((eax) >> (20)) & (0xff)));
  extend_model = ((((eax) >> (16)) & (0x0f)));
  family = ((((eax) >> (8)) & (0x0f)));
  model = ((((eax) >> (4)) & (0x0f)));
  if (vendor == 1) {
    switch (family) {
    case 0x6:
      switch (extend_model) {
      case 2:
        switch (model) {
        case 10:
        case 13:
          if (support_avx()) {
            return 1;
          } else {
            return 0;
          }
        }
        break;
      case 3:
        switch (model) {
        case 10:
        case 14:
          if (support_avx()) {
            return 1;
          } else {
            return 0;
          }
        case 12:
        case 15:
          if (support_avx()) {
            return 2;
          } else {
            return 0;
          }
        case 13:
          if (support_avx()) {
            return 2;
          } else {
            return 0;
          }
        }
        break;
      case 4:
        switch (model) {
        case 5:
        case 6:
          if (support_avx()) {
            return 2;
          } else {
            return 0;
          }
        case 7:
        case 15:
          if (support_avx()) {
            return 2;
          } else {
            return 0;
          }
        case 14:
          if (support_avx()) {
            return 2;
          } else {
            return 0;
          }
        }
        break;
      case 5:
        switch (model) {
        case 6:
          if (support_avx()) {
            return 2;
          } else {
            return 0;
          }
        case 5:
        case 14:
          if (support_avx()) {
            return 2;
          } else {
            return 0;
          }
        }
        break;
      case 8:
        switch (model) {
        case 14:
          if (support_avx())
            return 2;
          else
            return 0;
        }
        break;
      }
      break;
    }
  } else if (vendor == 2) {
    switch (family) {
    case 0xf:
      switch (extend_family) {
      case 6:
        switch (model) {
        case 1:
          if (support_avx())
            return 0;
          else
            return 0;
        case 2:
          if (support_avx())
            return 0;
          else
            return 0;
        case 0:
          if (support_avx())
            return 0;
          else
            return 0;
        }
      }
      break;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<cpu_detect>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    $0x0,%al
call   1060 <have_cpuid@plt>
cmp    $0x0,%eax
jne    1164 <cpu_detect+0x24>
movl   $0x0,-0x4(%rbp)
jmp    1563 <cpu_detect+0x423>
mov    $0x0,%al
call   1030 <get_vendor@plt>
mov    %eax,-0x18(%rbp)
mov    $0x1,%edi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
lea    -0x14(%rbp),%r8
call   1050 <cpuid@plt>
mov    -0x8(%rbp),%eax
sar    $0x14,%eax
and    $0xff,%eax
mov    %eax,-0x20(%rbp)
mov    -0x8(%rbp),%eax
sar    $0x10,%eax
and    $0xf,%eax
mov    %eax,-0x28(%rbp)
mov    -0x8(%rbp),%eax
sar    $0x8,%eax
and    $0xf,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%eax
sar    $0x4,%eax
and    $0xf,%eax
mov    %eax,-0x24(%rbp)
cmpl   $0x1,-0x18(%rbp)
jne    146f <cpu_detect+0x32f>
mov    -0x1c(%rbp),%eax
sub    $0x6,%eax
jne    146a <cpu_detect+0x32a>
jmp    11d5 <cpu_detect+0x95>
mov    -0x28(%rbp),%eax
add    $0xfffffffe,%eax
mov    %eax,%ecx
mov    %rcx,-0x30(%rbp)
sub    $0x6,%eax
ja     1465 <cpu_detect+0x325>
mov    -0x30(%rbp),%rax
lea    0xe0b(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x24(%rbp),%eax
mov    %eax,-0x34(%rbp)
sub    $0xa,%eax
je     1223 <cpu_detect+0xe3>
jmp    1212 <cpu_detect+0xd2>
mov    -0x34(%rbp),%eax
sub    $0xd,%eax
jne    124b <cpu_detect+0x10b>
jmp    1223 <cpu_detect+0xe3>
mov    $0x0,%al
call   1040 <support_avx@plt>
cmp    $0x0,%eax
je     123f <cpu_detect+0xff>
movl   $0x1,-0x4(%rbp)
jmp    1563 <cpu_detect+0x423>
movl   $0x0,-0x4(%rbp)
jmp    1563 <cpu_detect+0x423>
jmp    1465 <cpu_detect+0x325>
mov    -0x24(%rbp),%eax
add    $0xfffffff6,%eax
mov    %eax,%ecx
mov    %rcx,-0x40(%rbp)
sub    $0x5,%eax
ja     12f1 <cpu_detect+0x1b1>
mov    -0x40(%rbp),%rax
lea    0xdd8(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x0,%al
call   1040 <support_avx@plt>
cmp    $0x0,%eax
je     1295 <cpu_detect+0x155>
movl   $0x1,-0x4(%rbp)
jmp    1563 <cpu_detect+0x423>
movl   $0x0,-0x4(%rbp)
jmp    1563 <cpu_detect+0x423>
mov    $0x0,%al
call   1040 <support_avx@plt>
cmp    $0x0,%eax
je     12bd <cpu_detect+0x17d>
movl   $0x2,-0x4(%rbp)
jmp    1563 <cpu_detect+0x423>
movl   $0x0,-0x4(%rbp)
jmp    1563 <cpu_detect+0x423>
mov    $0x0,%al
call   1040 <support_avx@plt>
cmp    $0x0,%eax
je     12e5 <cpu_detect+0x1a5>
movl   $0x2,-0x4(%rbp)
jmp    1563 <cpu_detect+0x423>
movl   $0x0,-0x4(%rbp)
jmp    1563 <cpu_detect+0x423>
jmp    1465 <cpu_detect+0x325>
mov    -0x24(%rbp),%eax
add    $0xfffffffb,%eax
mov    %eax,%ecx
mov    %rcx,-0x48(%rbp)
sub    $0xa,%eax
ja     1397 <cpu_detect+0x257>
mov    -0x48(%rbp),%rax
lea    0xd06(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x0,%al
call   1040 <support_avx@plt>
cmp    $0x0,%eax
je     133b <cpu_detect+0x1fb>
movl   $0x2,-0x4(%rbp)
jmp    1563 <cpu_detect+0x423>
movl   $0x0,-0x4(%rbp)
jmp    1563 <cpu_detect+0x423>
mov    $0x0,%al
call   1040 <support_avx@plt>
cmp    $0x0,%eax
je     1363 <cpu_detect+0x223>
movl   $0x2,-0x4(%rbp)
jmp    1563 <cpu_detect+0x423>
movl   $0x0,-0x4(%rbp)
jmp    1563 <cpu_detect+0x423>
mov    $0x0,%al
call   1040 <support_avx@plt>
cmp    $0x0,%eax
je     138b <cpu_detect+0x24b>
movl   $0x2,-0x4(%rbp)
jmp    1563 <cpu_detect+0x423>
movl   $0x0,-0x4(%rbp)
jmp    1563 <cpu_detect+0x423>
jmp    1465 <cpu_detect+0x325>
mov    -0x24(%rbp),%eax
mov    %eax,-0x4c(%rbp)
sub    $0x5,%eax
je     13fa <cpu_detect+0x2ba>
jmp    13b0 <cpu_detect+0x270>
mov    -0x4c(%rbp),%eax
sub    $0x6,%eax
je     13d2 <cpu_detect+0x292>
jmp    13c1 <cpu_detect+0x281>
mov    -0x4c(%rbp),%eax
sub    $0xe,%eax
je     13fa <cpu_detect+0x2ba>
jmp    1422 <cpu_detect+0x2e2>
mov    $0x0,%al
call   1040 <support_avx@plt>
cmp    $0x0,%eax
je     13ee <cpu_detect+0x2ae>
movl   $0x2,-0x4(%rbp)
jmp    1563 <cpu_detect+0x423>
movl   $0x0,-0x4(%rbp)
jmp    1563 <cpu_detect+0x423>
mov    $0x0,%al
call   1040 <support_avx@plt>
cmp    $0x0,%eax
je     1416 <cpu_detect+0x2d6>
movl   $0x2,-0x4(%rbp)
jmp    1563 <cpu_detect+0x423>
movl   $0x0,-0x4(%rbp)
jmp    1563 <cpu_detect+0x423>
jmp    1465 <cpu_detect+0x325>
mov    -0x24(%rbp),%eax
sub    $0xe,%eax
jne    1460 <cpu_detect+0x320>
jmp    1438 <cpu_detect+0x2f8>
mov    $0x0,%al
call   1040 <support_avx@plt>
cmp    $0x0,%eax
je     1454 <cpu_detect+0x314>
movl   $0x2,-0x4(%rbp)
jmp    1563 <cpu_detect+0x423>
movl   $0x0,-0x4(%rbp)
jmp    1563 <cpu_detect+0x423>
jmp    1465 <cpu_detect+0x325>
jmp    146a <cpu_detect+0x32a>
jmp    155c <cpu_detect+0x41c>
cmpl   $0x2,-0x18(%rbp)
jne    1557 <cpu_detect+0x417>
mov    -0x1c(%rbp),%eax
sub    $0xf,%eax
jne    1552 <cpu_detect+0x412>
jmp    148a <cpu_detect+0x34a>
mov    -0x20(%rbp),%eax
sub    $0x6,%eax
jne    154d <cpu_detect+0x40d>
jmp    149b <cpu_detect+0x35b>
mov    -0x24(%rbp),%eax
mov    %eax,-0x50(%rbp)
test   %eax,%eax
je     1520 <cpu_detect+0x3e0>
jmp    14ae <cpu_detect+0x36e>
mov    -0x50(%rbp),%eax
sub    $0x1,%eax
je     14d0 <cpu_detect+0x390>
jmp    14bf <cpu_detect+0x37f>
mov    -0x50(%rbp),%eax
sub    $0x2,%eax
je     14f8 <cpu_detect+0x3b8>
jmp    1548 <cpu_detect+0x408>
mov    $0x0,%al
call   1040 <support_avx@plt>
cmp    $0x0,%eax
je     14ec <cpu_detect+0x3ac>
movl   $0x0,-0x4(%rbp)
jmp    1563 <cpu_detect+0x423>
movl   $0x0,-0x4(%rbp)
jmp    1563 <cpu_detect+0x423>
mov    $0x0,%al
call   1040 <support_avx@plt>
cmp    $0x0,%eax
je     1514 <cpu_detect+0x3d4>
movl   $0x0,-0x4(%rbp)
jmp    1563 <cpu_detect+0x423>
movl   $0x0,-0x4(%rbp)
jmp    1563 <cpu_detect+0x423>
mov    $0x0,%al
call   1040 <support_avx@plt>
cmp    $0x0,%eax
je     153c <cpu_detect+0x3fc>
movl   $0x0,-0x4(%rbp)
jmp    1563 <cpu_detect+0x423>
movl   $0x0,-0x4(%rbp)
jmp    1563 <cpu_detect+0x423>
jmp    154d <cpu_detect+0x40d>
jmp    1552 <cpu_detect+0x412>
jmp    1557 <cpu_detect+0x417>
jmp    155c <cpu_detect+0x41c>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cpu_detect>:
push   %rbp
push   %rbx
sub    $0x18,%rsp
xor    %ebx,%ebx
xor    %eax,%eax
call   1060 <have_cpuid@plt>
test   %eax,%eax
je     1272 <cpu_detect+0x132>
xor    %ebx,%ebx
xor    %eax,%eax
call   1030 <get_vendor@plt>
mov    %eax,%ebp
lea    0x8(%rsp),%rsi
lea    0x14(%rsp),%rdx
lea    0x10(%rsp),%rcx
lea    0xc(%rsp),%r8
mov    $0x1,%edi
call   1050 <cpuid@plt>
mov    0x8(%rsp),%ecx
mov    %ecx,%edx
shr    $0x8,%edx
and    $0xf,%edx
mov    %ecx,%eax
shr    $0x4,%eax
and    $0xf,%eax
cmp    $0x1,%ebp
jne    11d3 <cpu_detect+0x93>
cmp    $0x6,%edx
jne    1272 <cpu_detect+0x132>
shr    $0x10,%ecx
and    $0xf,%ecx
add    $0xfffffffe,%ecx
cmp    $0x6,%ecx
ja     1272 <cpu_detect+0x132>
lea    0xe45(%rip),%rdx
movslq (%rdx,%rcx,4),%rcx
add    %rdx,%rcx
jmp    *%rcx
cmp    $0xd,%eax
je     1224 <cpu_detect+0xe4>
cmp    $0xa,%eax
je     1224 <cpu_detect+0xe4>
jmp    1272 <cpu_detect+0x132>
cmp    $0x2,%ebp
jne    1272 <cpu_detect+0x132>
cmp    $0xf,%edx
jne    1272 <cpu_detect+0x132>
and    $0xff00000,%ecx
cmp    $0x600000,%ecx
jne    1272 <cpu_detect+0x132>
test   %eax,%eax
je     1201 <cpu_detect+0xc1>
cmp    $0x2,%eax
je     1201 <cpu_detect+0xc1>
cmp    $0x1,%eax
jne    1272 <cpu_detect+0x132>
xor    %ebx,%ebx
xor    %eax,%eax
call   1040 <support_avx@plt>
jmp    1272 <cpu_detect+0x132>
add    $0xfffffff6,%eax
cmp    $0x5,%eax
ja     1272 <cpu_detect+0x132>
lea    0xe2d(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
xor    %eax,%eax
call   1040 <support_avx@plt>
xor    %ebx,%ebx
test   %eax,%eax
setne  %bl
jmp    1272 <cpu_detect+0x132>
add    $0xfffffffb,%eax
cmp    $0xa,%eax
ja     1272 <cpu_detect+0x132>
lea    0xdd9(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
cmp    $0x5,%eax
je     1262 <cpu_detect+0x122>
cmp    $0xe,%eax
je     1262 <cpu_detect+0x122>
cmp    $0x6,%eax
je     1262 <cpu_detect+0x122>
jmp    1272 <cpu_detect+0x132>
cmp    $0xe,%eax
jne    1272 <cpu_detect+0x132>
xor    %eax,%eax
call   1040 <support_avx@plt>
xor    %ebx,%ebx
test   %eax,%eax
setne  %bl
add    %ebx,%ebx
mov    %ebx,%eax
add    $0x18,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @cpu_detect() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = call i32 (...) @have_cpuid()
%12 = icmp ne i32 %11, 0
br i1 %12, label %14, label %13
13: ; preds = %0
store i32 0, i32* %1
br label %131
14: ; preds = %0
%15 = call i32 (...) @get_vendor()
store i32 %15, i32* %6
%16 = call i32 @cpuid(i32 1, i32* %2, i32* %3, i32* %4, i32* %5)
%17 = load i32, i32* %2
%18 = ashr i32 %17, 20
%19 = and i32 %18, 255
store i32 %19, i32* %8
%20 = load i32, i32* %2
%21 = ashr i32 %20, 16
%22 = and i32 %21, 15
store i32 %22, i32* %10
%23 = load i32, i32* %2
%24 = ashr i32 %23, 8
%25 = and i32 %24, 15
store i32 %25, i32* %7
%26 = load i32, i32* %2
%27 = ashr i32 %26, 4
%28 = and i32 %27, 15
store i32 %28, i32* %9
%29 = load i32, i32* %6
%30 = icmp eq i32 %29, 1
br i1 %30, label %31, label %102
31: ; preds = %14
%32 = load i32, i32* %7
switch i32 %32, label %101 [
i32 6, label %33
]
33: ; preds = %31
%34 = load i32, i32* %10
switch i32 %34, label %100 [
i32 2, label %35
i32 3, label %43
i32 4, label %61
i32 5, label %79
i32 8, label %92
]
35: ; preds = %33
%36 = load i32, i32* %9
switch i32 %36, label %42 [
i32 10, label %37
i32 13, label %37
]
37: ; preds = %35, %35
%38 = call i32 (...) @support_avx()
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %41
40: ; preds = %37
store i32 1, i32* %1
br label %131
41: ; preds = %37
store i32 0, i32* %1
br label %131
42: ; preds = %35
br label %100
43: ; preds = %33
%44 = load i32, i32* %9
switch i32 %44, label %60 [
i32 10, label %45
i32 14, label %45
i32 12, label %50
i32 15, label %50
i32 13, label %55
]
45: ; preds = %43, %43
%46 = call i32 (...) @support_avx()
%47 = icmp ne i32 %46, 0
br i1 %47, label %48, label %49
48: ; preds = %45
store i32 1, i32* %1
br label %131
49: ; preds = %45
store i32 0, i32* %1
br label %131
50: ; preds = %43, %43
%51 = call i32 (...) @support_avx()
%52 = icmp ne i32 %51, 0
br i1 %52, label %53, label %54
53: ; preds = %50
store i32 2, i32* %1
br label %131
54: ; preds = %50
store i32 0, i32* %1
br label %131
55: ; preds = %43
%56 = call i32 (...) @support_avx()
%57 = icmp ne i32 %56, 0
br i1 %57, label %58, label %59
58: ; preds = %55
store i32 2, i32* %1
br label %131
59: ; preds = %55
store i32 0, i32* %1
br label %131
60: ; preds = %43
br label %100
61: ; preds = %33
%62 = load i32, i32* %9
switch i32 %62, label %78 [
i32 5, label %63
i32 6, label %63
i32 7, label %68
i32 15, label %68
i32 14, label %73
]
63: ; preds = %61, %61
%64 = call i32 (...) @support_avx()
%65 = icmp ne i32 %64, 0
br i1 %65, label %66, label %67
66: ; preds = %63
store i32 2, i32* %1
br label %131
67: ; preds = %63
store i32 0, i32* %1
br label %131
68: ; preds = %61, %61
%69 = call i32 (...) @support_avx()
%70 = icmp ne i32 %69, 0
br i1 %70, label %71, label %72
71: ; preds = %68
store i32 2, i32* %1
br label %131
72: ; preds = %68
store i32 0, i32* %1
br label %131
73: ; preds = %61
%74 = call i32 (...) @support_avx()
%75 = icmp ne i32 %74, 0
br i1 %75, label %76, label %77
76: ; preds = %73
store i32 2, i32* %1
br label %131
77: ; preds = %73
store i32 0, i32* %1
br label %131
78: ; preds = %61
br label %100
79: ; preds = %33
%80 = load i32, i32* %9
switch i32 %80, label %91 [
i32 6, label %81
i32 5, label %86
i32 14, label %86
]
81: ; preds = %79
%82 = call i32 (...) @support_avx()
%83 = icmp ne i32 %82, 0
br i1 %83, label %84, label %85
84: ; preds = %81
store i32 2, i32* %1
br label %131
85: ; preds = %81
store i32 0, i32* %1
br label %131
86: ; preds = %79, %79
%87 = call i32 (...) @support_avx()
%88 = icmp ne i32 %87, 0
br i1 %88, label %89, label %90
89: ; preds = %86
store i32 2, i32* %1
br label %131
90: ; preds = %86
store i32 0, i32* %1
br label %131
91: ; preds = %79
br label %100
92: ; preds = %33
%93 = load i32, i32* %9
switch i32 %93, label %99 [
i32 14, label %94
]
94: ; preds = %92
%95 = call i32 (...) @support_avx()
%96 = icmp ne i32 %95, 0
br i1 %96, label %97, label %98
97: ; preds = %94
store i32 2, i32* %1
br label %131
98: ; preds = %94
store i32 0, i32* %1
br label %131
99: ; preds = %92
br label %100
100: ; preds = %33, %99, %91, %78, %60, %42
br label %101
101: ; preds = %31, %100
br label %130
102: ; preds = %14
%103 = load i32, i32* %6
%104 = icmp eq i32 %103, 2
br i1 %104, label %105, label %129
105: ; preds = %102
%106 = load i32, i32* %7
switch i32 %106, label %128 [
i32 15, label %107
]
107: ; preds = %105
%108 = load i32, i32* %8
switch i32 %108, label %127 [
i32 6, label %109
]
109: ; preds = %107
%110 = load i32, i32* %9
switch i32 %110, label %126 [
i32 1, label %111
i32 2, label %116
i32 0, label %121
]
111: ; preds = %109
%112 = call i32 (...) @support_avx()
%113 = icmp ne i32 %112, 0
br i1 %113, label %114, label %115
114: ; preds = %111
store i32 0, i32* %1
br label %131
115: ; preds = %111
store i32 0, i32* %1
br label %131
116: ; preds = %109
%117 = call i32 (...) @support_avx()
%118 = icmp ne i32 %117, 0
br i1 %118, label %119, label %120
119: ; preds = %116
store i32 0, i32* %1
br label %131
120: ; preds = %116
store i32 0, i32* %1
br label %131
121: ; preds = %109
%122 = call i32 (...) @support_avx()
%123 = icmp ne i32 %122, 0
br i1 %123, label %124, label %125
124: ; preds = %121
store i32 0, i32* %1
br label %131
125: ; preds = %121
store i32 0, i32* %1
br label %131
126: ; preds = %109
br label %127
127: ; preds = %126, %107
br label %128
128: ; preds = %105, %127
br label %129
129: ; preds = %128, %102
br label %130
130: ; preds = %129, %101
store i32 0, i32* %1
br label %131
131: ; preds = %130, %125, %124, %120, %119, %115, %114, %98, %97, %90, %89, %85, %84, %77, %76, %72, %71, %67, %66, %59, %58, %54, %53, %49, %48, %41, %40, %13
%132 = load i32, i32* %1
ret i32 %132
}

LLVM IR (-O2):
define i32 @cpu_detect() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = bitcast i32* %1 to i8*
%6 = bitcast i32* %2 to i8*
%7 = bitcast i32* %3 to i8*
%8 = bitcast i32* %4 to i8*
%9 = tail call i32 (...) @have_cpuid()
%10 = icmp eq i32 %9, 0
br i1 %10, label %85, label %11
11: ; preds = %0
%12 = tail call i32 (...) @get_vendor()
%13 = call i32 @cpuid(i32 1, i32* %1, i32* %2, i32* %3, i32* %4)
%14 = load i32, i32* %1
%15 = lshr i32 %14, 16
%16 = and i32 %15, 15
%17 = lshr i32 %14, 8
%18 = and i32 %17, 15
%19 = lshr i32 %14, 4
%20 = and i32 %19, 15
%21 = icmp eq i32 %12, 1
br i1 %21, label %22, label %71
22: ; preds = %11
%23 = icmp eq i32 %18, 6
br i1 %23, label %24, label %85
24: ; preds = %22
switch i32 %16, label %85 [
i32 2, label %25
i32 3, label %30
i32 4, label %43
i32 5, label %56
i32 8, label %65
]
25: ; preds = %24
switch i32 %20, label %85 [
i32 10, label %26
i32 13, label %26
]
26: ; preds = %25, %25
%27 = call i32 (...) @support_avx()
%28 = icmp ne i32 %27, 0
%29 = zext i1 %28 to i32
br label %85
30: ; preds = %24
switch i32 %20, label %85 [
i32 10, label %31
i32 14, label %31
i32 12, label %35
i32 15, label %35
i32 13, label %39
]
31: ; preds = %30, %30
%32 = call i32 (...) @support_avx()
%33 = icmp ne i32 %32, 0
%34 = zext i1 %33 to i32
br label %85
35: ; preds = %30, %30
%36 = call i32 (...) @support_avx()
%37 = icmp eq i32 %36, 0
%38 = select i1 %37, i32 0, i32 2
br label %85
39: ; preds = %30
%40 = call i32 (...) @support_avx()
%41 = icmp eq i32 %40, 0
%42 = select i1 %41, i32 0, i32 2
br label %85
43: ; preds = %24
switch i32 %20, label %85 [
i32 5, label %44
i32 6, label %44
i32 7, label %48
i32 15, label %48
i32 14, label %52
]
44: ; preds = %43, %43
%45 = call i32 (...) @support_avx()
%46 = icmp eq i32 %45, 0
%47 = select i1 %46, i32 0, i32 2
br label %85
48: ; preds = %43, %43
%49 = call i32 (...) @support_avx()
%50 = icmp eq i32 %49, 0
%51 = select i1 %50, i32 0, i32 2
br label %85
52: ; preds = %43
%53 = call i32 (...) @support_avx()
%54 = icmp eq i32 %53, 0
%55 = select i1 %54, i32 0, i32 2
br label %85
56: ; preds = %24
switch i32 %20, label %85 [
i32 6, label %57
i32 5, label %61
i32 14, label %61
]
57: ; preds = %56
%58 = call i32 (...) @support_avx()
%59 = icmp eq i32 %58, 0
%60 = select i1 %59, i32 0, i32 2
br label %85
61: ; preds = %56, %56
%62 = call i32 (...) @support_avx()
%63 = icmp eq i32 %62, 0
%64 = select i1 %63, i32 0, i32 2
br label %85
65: ; preds = %24
%66 = icmp eq i32 %20, 14
br i1 %66, label %67, label %85
67: ; preds = %65
%68 = call i32 (...) @support_avx()
%69 = icmp eq i32 %68, 0
%70 = select i1 %69, i32 0, i32 2
br label %85
71: ; preds = %11
%72 = icmp eq i32 %12, 2
%73 = icmp eq i32 %18, 15
%74 = select i1 %72, i1 %73, i1 false
%75 = and i32 %14, 267386880
%76 = icmp eq i32 %75, 6291456
%77 = select i1 %74, i1 %76, i1 false
br i1 %77, label %78, label %85
78: ; preds = %71
switch i32 %20, label %85 [
i32 1, label %79
i32 2, label %81
i32 0, label %83
]
79: ; preds = %78
%80 = call i32 (...) @support_avx()
br label %85
81: ; preds = %78
%82 = call i32 (...) @support_avx()
br label %85
83: ; preds = %78
%84 = call i32 (...) @support_avx()
br label %85
85: ; preds = %24, %25, %30, %43, %56, %65, %22, %78, %71, %83, %81, %79, %67, %61, %57, %52, %48, %44, %39, %35, %31, %26, %0
%86 = phi i32 [ 0, %0 ], [ %29, %26 ], [ %34, %31 ], [ %38, %35 ], [ %42, %39 ], [ %47, %44 ], [ %51, %48 ], [ %55, %52 ], [ %60, %57 ], [ %64, %61 ], [ %70, %67 ], [ 0, %79 ], [ 0, %81 ], [ 0, %83 ], [ 0, %71 ], [ 0, %78 ], [ 0, %22 ], [ 0, %65 ], [ 0, %56 ], [ 0, %43 ], [ 0, %30 ], [ 0, %25 ], [ 0, %24 ]
ret i32 %86
}