void check_features(unsigned int ecx, unsigned int edx, int max_cpuid_level) {
  if (edx & (1 << 15))
    assert(__builtin_cpu_supports("cmov"));
  if (edx & (1 << 23))
    assert(__builtin_cpu_supports("mmx"));
  if (edx & (1 << 25))
    assert(__builtin_cpu_supports("sse"));
  if (edx & (1 << 26))
    assert(__builtin_cpu_supports("sse2"));
  if (ecx & (1 << 23))
    assert(__builtin_cpu_supports("popcnt"));
  if (ecx & (1 << 0))
    assert(__builtin_cpu_supports("sse3"));
  if (ecx & (1 << 9))
    assert(__builtin_cpu_supports("ssse3"));
  if (ecx & (1 << 19))
    assert(__builtin_cpu_supports("sse4.1"));
  if (ecx & (1 << 20))
    assert(__builtin_cpu_supports("sse4.2"));
  if (ecx & (1 << 28))
    assert(__builtin_cpu_supports("avx"));
  if (max_cpuid_level >= 7) {
    unsigned int eax, ebx, ecx, edx;
    __asm__("cpuid\n\t"
            : "=a"(eax), "=b"(ebx), "=c"(ecx), "=d"(edx)
            : "0"(7), "2"(0));
    if (ebx & (1 << 5))
      assert(__builtin_cpu_supports("avx2"));
  }
}


x86 assembly (clang, -O0):
<check_features>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x28,%rsp
mov    %edi,-0xc(%rbp)
mov    %esi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x10(%rbp),%eax
and    $0x8000,%eax
cmp    $0x0,%eax
je     21c0 <check_features+0x40>
mov    0x2eb3(%rip),%eax
and    $0x1,%eax
cmp    $0x1,%eax
sete   %al
and    $0x1,%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1030 <assert@plt>
mov    -0x10(%rbp),%eax
and    $0x800000,%eax
cmp    $0x0,%eax
je     21ee <check_features+0x6e>
mov    0x2e85(%rip),%eax
and    $0x2,%eax
cmp    $0x2,%eax
sete   %al
and    $0x1,%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1030 <assert@plt>
mov    -0x10(%rbp),%eax
and    $0x2000000,%eax
cmp    $0x0,%eax
je     221c <check_features+0x9c>
mov    0x2e57(%rip),%eax
and    $0x8,%eax
cmp    $0x8,%eax
sete   %al
and    $0x1,%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1030 <assert@plt>
mov    -0x10(%rbp),%eax
and    $0x4000000,%eax
cmp    $0x0,%eax
je     224a <check_features+0xca>
mov    0x2e29(%rip),%eax
and    $0x10,%eax
cmp    $0x10,%eax
sete   %al
and    $0x1,%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1030 <assert@plt>
mov    -0xc(%rbp),%eax
and    $0x800000,%eax
cmp    $0x0,%eax
je     2278 <check_features+0xf8>
mov    0x2dfb(%rip),%eax
and    $0x4,%eax
cmp    $0x4,%eax
sete   %al
and    $0x1,%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1030 <assert@plt>
mov    -0xc(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     22a4 <check_features+0x124>
mov    0x2dcf(%rip),%eax
and    $0x20,%eax
cmp    $0x20,%eax
sete   %al
and    $0x1,%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1030 <assert@plt>
mov    -0xc(%rbp),%eax
and    $0x200,%eax
cmp    $0x0,%eax
je     22d2 <check_features+0x152>
mov    0x2da1(%rip),%eax
and    $0x40,%eax
cmp    $0x40,%eax
sete   %al
and    $0x1,%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1030 <assert@plt>
mov    -0xc(%rbp),%eax
and    $0x80000,%eax
cmp    $0x0,%eax
je     2304 <check_features+0x184>
mov    0x2d73(%rip),%eax
and    $0x80,%eax
cmp    $0x80,%eax
sete   %al
and    $0x1,%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1030 <assert@plt>
mov    -0xc(%rbp),%eax
and    $0x100000,%eax
cmp    $0x0,%eax
je     2336 <check_features+0x1b6>
mov    0x2d41(%rip),%eax
and    $0x100,%eax
cmp    $0x100,%eax
sete   %al
and    $0x1,%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1030 <assert@plt>
mov    -0xc(%rbp),%eax
and    $0x10000000,%eax
cmp    $0x0,%eax
je     2368 <check_features+0x1e8>
mov    0x2d0f(%rip),%eax
and    $0x200,%eax
cmp    $0x200,%eax
sete   %al
and    $0x1,%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1030 <assert@plt>
cmpl   $0x7,-0x14(%rbp)
jl     23bc <check_features+0x23c>
mov    $0x7,%eax
xor    %ecx,%ecx
cpuid
mov    %eax,-0x18(%rbp)
mov    %ebx,-0x1c(%rbp)
mov    %ecx,-0x20(%rbp)
mov    %edx,-0x24(%rbp)
mov    -0x1c(%rbp),%eax
and    $0x20,%eax
cmp    $0x0,%eax
je     23b7 <check_features+0x237>
mov    0x2cc0(%rip),%eax
and    $0x400,%eax
cmp    $0x400,%eax
sete   %al
and    $0x1,%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1030 <assert@plt>
jmp    23bc <check_features+0x23c>
add    $0x28,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<check_features>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%r14d
mov    %esi,%ebx
mov    %edi,%ebp
test   $0x8000,%esi
jne    220c <check_features+0x8c>
test   $0x800000,%ebx
jne    2228 <check_features+0xa8>
test   $0x2000000,%ebx
jne    2246 <check_features+0xc6>
test   $0x4000000,%ebx
jne    2265 <check_features+0xe5>
test   $0x800000,%ebp
jne    2284 <check_features+0x104>
test   $0x1,%bpl
jne    22a1 <check_features+0x121>
test   $0x200,%ebp
jne    22c0 <check_features+0x140>
test   $0x80000,%ebp
jne    22df <check_features+0x15f>
test   $0x100000,%ebp
jne    22fe <check_features+0x17e>
test   $0x10000000,%ebp
jne    231d <check_features+0x19d>
cmp    $0x7,%r14d
jge    2336 <check_features+0x1b6>
jmp    2344 <check_features+0x1c4>
mov    0x2e4a(%rip),%edi
and    $0x1,%edi
xor    %eax,%eax
call   1030 <assert@plt>
test   $0x800000,%ebx
je     219f <check_features+0x1f>
mov    0x2e2e(%rip),%edi
shr    %edi
and    $0x1,%edi
xor    %eax,%eax
call   1030 <assert@plt>
test   $0x2000000,%ebx
je     21ab <check_features+0x2b>
mov    0x2e10(%rip),%edi
shr    $0x3,%edi
and    $0x1,%edi
xor    %eax,%eax
call   1030 <assert@plt>
test   $0x4000000,%ebx
je     21b7 <check_features+0x37>
mov    0x2df1(%rip),%edi
shr    $0x4,%edi
and    $0x1,%edi
xor    %eax,%eax
call   1030 <assert@plt>
test   $0x800000,%ebp
je     21c3 <check_features+0x43>
mov    0x2dd2(%rip),%edi
shr    $0x2,%edi
and    $0x1,%edi
xor    %eax,%eax
call   1030 <assert@plt>
test   $0x1,%bpl
je     21cd <check_features+0x4d>
mov    0x2db5(%rip),%edi
shr    $0x5,%edi
and    $0x1,%edi
xor    %eax,%eax
call   1030 <assert@plt>
test   $0x200,%ebp
je     21d9 <check_features+0x59>
mov    0x2d96(%rip),%edi
shr    $0x6,%edi
and    $0x1,%edi
xor    %eax,%eax
call   1030 <assert@plt>
test   $0x80000,%ebp
je     21e5 <check_features+0x65>
mov    0x2d77(%rip),%edi
shr    $0x7,%edi
and    $0x1,%edi
xor    %eax,%eax
call   1030 <assert@plt>
test   $0x100000,%ebp
je     21f1 <check_features+0x71>
mov    0x2d58(%rip),%edi
shr    $0x8,%edi
and    $0x1,%edi
xor    %eax,%eax
call   1030 <assert@plt>
test   $0x10000000,%ebp
je     21fd <check_features+0x7d>
mov    0x2d39(%rip),%edi
shr    $0x9,%edi
and    $0x1,%edi
xor    %eax,%eax
call   1030 <assert@plt>
cmp    $0x7,%r14d
jl     2344 <check_features+0x1c4>
mov    $0x7,%eax
xor    %ecx,%ecx
cpuid
test   $0x20,%bl
jne    2349 <check_features+0x1c9>
pop    %rbx
pop    %r14
pop    %rbp
ret
mov    0x2d0d(%rip),%edi
shr    $0xa,%edi
and    $0x1,%edi
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <assert@plt>

LLVM IR (-O0):
@__cpu_model = external global { i32, i32, i32, [1 x i32] }
define void @check_features(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%11 = load i32, i32* %5
%12 = and i32 %11, 32768
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %21
14: ; preds = %3
%15 = load i32, i32* getelementptr inbounds ({ i32, i32, i32, [1 x i32] }, { i32, i32, i32, [1 x i32] }* @__cpu_model, i32 0, i32 3, i32 0)
%16 = and i32 %15, 1
%17 = icmp eq i32 %16, 1
%18 = and i1 true, %17
%19 = zext i1 %18 to i32
%20 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %19)
br label %21
21: ; preds = %14, %3
%22 = load i32, i32* %5
%23 = and i32 %22, 8388608
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %32
25: ; preds = %21
%26 = load i32, i32* getelementptr inbounds ({ i32, i32, i32, [1 x i32] }, { i32, i32, i32, [1 x i32] }* @__cpu_model, i32 0, i32 3, i32 0)
%27 = and i32 %26, 2
%28 = icmp eq i32 %27, 2
%29 = and i1 true, %28
%30 = zext i1 %29 to i32
%31 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %30)
br label %32
32: ; preds = %25, %21
%33 = load i32, i32* %5
%34 = and i32 %33, 33554432
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %43
36: ; preds = %32
%37 = load i32, i32* getelementptr inbounds ({ i32, i32, i32, [1 x i32] }, { i32, i32, i32, [1 x i32] }* @__cpu_model, i32 0, i32 3, i32 0)
%38 = and i32 %37, 8
%39 = icmp eq i32 %38, 8
%40 = and i1 true, %39
%41 = zext i1 %40 to i32
%42 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %41)
br label %43
43: ; preds = %36, %32
%44 = load i32, i32* %5
%45 = and i32 %44, 67108864
%46 = icmp ne i32 %45, 0
br i1 %46, label %47, label %54
47: ; preds = %43
%48 = load i32, i32* getelementptr inbounds ({ i32, i32, i32, [1 x i32] }, { i32, i32, i32, [1 x i32] }* @__cpu_model, i32 0, i32 3, i32 0)
%49 = and i32 %48, 16
%50 = icmp eq i32 %49, 16
%51 = and i1 true, %50
%52 = zext i1 %51 to i32
%53 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %52)
br label %54
54: ; preds = %47, %43
%55 = load i32, i32* %4
%56 = and i32 %55, 8388608
%57 = icmp ne i32 %56, 0
br i1 %57, label %58, label %65
58: ; preds = %54
%59 = load i32, i32* getelementptr inbounds ({ i32, i32, i32, [1 x i32] }, { i32, i32, i32, [1 x i32] }* @__cpu_model, i32 0, i32 3, i32 0)
%60 = and i32 %59, 4
%61 = icmp eq i32 %60, 4
%62 = and i1 true, %61
%63 = zext i1 %62 to i32
%64 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %63)
br label %65
65: ; preds = %58, %54
%66 = load i32, i32* %4
%67 = and i32 %66, 1
%68 = icmp ne i32 %67, 0
br i1 %68, label %69, label %76
69: ; preds = %65
%70 = load i32, i32* getelementptr inbounds ({ i32, i32, i32, [1 x i32] }, { i32, i32, i32, [1 x i32] }* @__cpu_model, i32 0, i32 3, i32 0)
%71 = and i32 %70, 32
%72 = icmp eq i32 %71, 32
%73 = and i1 true, %72
%74 = zext i1 %73 to i32
%75 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %74)
br label %76
76: ; preds = %69, %65
%77 = load i32, i32* %4
%78 = and i32 %77, 512
%79 = icmp ne i32 %78, 0
br i1 %79, label %80, label %87
80: ; preds = %76
%81 = load i32, i32* getelementptr inbounds ({ i32, i32, i32, [1 x i32] }, { i32, i32, i32, [1 x i32] }* @__cpu_model, i32 0, i32 3, i32 0)
%82 = and i32 %81, 64
%83 = icmp eq i32 %82, 64
%84 = and i1 true, %83
%85 = zext i1 %84 to i32
%86 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %85)
br label %87
87: ; preds = %80, %76
%88 = load i32, i32* %4
%89 = and i32 %88, 524288
%90 = icmp ne i32 %89, 0
br i1 %90, label %91, label %98
91: ; preds = %87
%92 = load i32, i32* getelementptr inbounds ({ i32, i32, i32, [1 x i32] }, { i32, i32, i32, [1 x i32] }* @__cpu_model, i32 0, i32 3, i32 0)
%93 = and i32 %92, 128
%94 = icmp eq i32 %93, 128
%95 = and i1 true, %94
%96 = zext i1 %95 to i32
%97 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %96)
br label %98
98: ; preds = %91, %87
%99 = load i32, i32* %4
%100 = and i32 %99, 1048576
%101 = icmp ne i32 %100, 0
br i1 %101, label %102, label %109
102: ; preds = %98
%103 = load i32, i32* getelementptr inbounds ({ i32, i32, i32, [1 x i32] }, { i32, i32, i32, [1 x i32] }* @__cpu_model, i32 0, i32 3, i32 0)
%104 = and i32 %103, 256
%105 = icmp eq i32 %104, 256
%106 = and i1 true, %105
%107 = zext i1 %106 to i32
%108 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %107)
br label %109
109: ; preds = %102, %98
%110 = load i32, i32* %4
%111 = and i32 %110, 268435456
%112 = icmp ne i32 %111, 0
br i1 %112, label %113, label %120
113: ; preds = %109
%114 = load i32, i32* getelementptr inbounds ({ i32, i32, i32, [1 x i32] }, { i32, i32, i32, [1 x i32] }* @__cpu_model, i32 0, i32 3, i32 0)
%115 = and i32 %114, 512
%116 = icmp eq i32 %115, 512
%117 = and i1 true, %116
%118 = zext i1 %117 to i32
%119 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %118)
br label %120
120: ; preds = %113, %109
%121 = load i32, i32* %6
%122 = icmp sge i32 %121, 7
br i1 %122, label %123, label %140
123: ; preds = %120
%124 = call { i32, i32, i32, i32 } asm "cpuid\0A\09", "={ax},={bx},={cx},={dx},0,2,~{dirflag},~{fpsr},~{flags}"(i32 7, i32 0)
%125 = extractvalue { i32, i32, i32, i32 } %124, 0
%126 = extractvalue { i32, i32, i32, i32 } %124, 1
%127 = extractvalue { i32, i32, i32, i32 } %124, 2
%128 = extractvalue { i32, i32, i32, i32 } %124, 3
store i32 %125, i32* %7
store i32 %126, i32* %8
store i32 %127, i32* %9
store i32 %128, i32* %10
%129 = load i32, i32* %8
%130 = and i32 %129, 32
%131 = icmp ne i32 %130, 0
br i1 %131, label %132, label %139
132: ; preds = %123
%133 = load i32, i32* getelementptr inbounds ({ i32, i32, i32, [1 x i32] }, { i32, i32, i32, [1 x i32] }* @__cpu_model, i32 0, i32 3, i32 0)
%134 = and i32 %133, 1024
%135 = icmp eq i32 %134, 1024
%136 = and i1 true, %135
%137 = zext i1 %136 to i32
%138 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %137)
br label %139
139: ; preds = %132, %123
br label %140
140: ; preds = %139, %120
ret void
}

LLVM IR (-O2):
@__cpu_model = external global { i32, i32, i32, [1 x i32] }
define void @check_features(i32 %0, i32 %1, i32 %2) {
%4 = and i32 %1, 32768
%5 = icmp eq i32 %4, 0
br i1 %5, label %10, label %6
6: ; preds = %3
%7 = load i32, i32* getelementptr inbounds ({ i32, i32, i32, [1 x i32] }, { i32, i32, i32, [1 x i32] }* @__cpu_model, i64 0, i32 3, i64 0)
%8 = and i32 %7, 1
%9 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %8)
br label %10
10: ; preds = %6, %3
%11 = and i32 %1, 8388608
%12 = icmp eq i32 %11, 0
br i1 %12, label %18, label %13
13: ; preds = %10
%14 = load i32, i32* getelementptr inbounds ({ i32, i32, i32, [1 x i32] }, { i32, i32, i32, [1 x i32] }* @__cpu_model, i64 0, i32 3, i64 0)
%15 = lshr i32 %14, 1
%16 = and i32 %15, 1
%17 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %16)
br label %18
18: ; preds = %13, %10
%19 = and i32 %1, 33554432
%20 = icmp eq i32 %19, 0
br i1 %20, label %26, label %21
21: ; preds = %18
%22 = load i32, i32* getelementptr inbounds ({ i32, i32, i32, [1 x i32] }, { i32, i32, i32, [1 x i32] }* @__cpu_model, i64 0, i32 3, i64 0)
%23 = lshr i32 %22, 3
%24 = and i32 %23, 1
%25 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %24)
br label %26
26: ; preds = %21, %18
%27 = and i32 %1, 67108864
%28 = icmp eq i32 %27, 0
br i1 %28, label %34, label %29
29: ; preds = %26
%30 = load i32, i32* getelementptr inbounds ({ i32, i32, i32, [1 x i32] }, { i32, i32, i32, [1 x i32] }* @__cpu_model, i64 0, i32 3, i64 0)
%31 = lshr i32 %30, 4
%32 = and i32 %31, 1
%33 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %32)
br label %34
34: ; preds = %29, %26
%35 = and i32 %0, 8388608
%36 = icmp eq i32 %35, 0
br i1 %36, label %42, label %37
37: ; preds = %34
%38 = load i32, i32* getelementptr inbounds ({ i32, i32, i32, [1 x i32] }, { i32, i32, i32, [1 x i32] }* @__cpu_model, i64 0, i32 3, i64 0)
%39 = lshr i32 %38, 2
%40 = and i32 %39, 1
%41 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %40)
br label %42
42: ; preds = %37, %34
%43 = and i32 %0, 1
%44 = icmp eq i32 %43, 0
br i1 %44, label %50, label %45
45: ; preds = %42
%46 = load i32, i32* getelementptr inbounds ({ i32, i32, i32, [1 x i32] }, { i32, i32, i32, [1 x i32] }* @__cpu_model, i64 0, i32 3, i64 0)
%47 = lshr i32 %46, 5
%48 = and i32 %47, 1
%49 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %48)
br label %50
50: ; preds = %45, %42
%51 = and i32 %0, 512
%52 = icmp eq i32 %51, 0
br i1 %52, label %58, label %53
53: ; preds = %50
%54 = load i32, i32* getelementptr inbounds ({ i32, i32, i32, [1 x i32] }, { i32, i32, i32, [1 x i32] }* @__cpu_model, i64 0, i32 3, i64 0)
%55 = lshr i32 %54, 6
%56 = and i32 %55, 1
%57 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %56)
br label %58
58: ; preds = %53, %50
%59 = and i32 %0, 524288
%60 = icmp eq i32 %59, 0
br i1 %60, label %66, label %61
61: ; preds = %58
%62 = load i32, i32* getelementptr inbounds ({ i32, i32, i32, [1 x i32] }, { i32, i32, i32, [1 x i32] }* @__cpu_model, i64 0, i32 3, i64 0)
%63 = lshr i32 %62, 7
%64 = and i32 %63, 1
%65 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %64)
br label %66
66: ; preds = %61, %58
%67 = and i32 %0, 1048576
%68 = icmp eq i32 %67, 0
br i1 %68, label %74, label %69
69: ; preds = %66
%70 = load i32, i32* getelementptr inbounds ({ i32, i32, i32, [1 x i32] }, { i32, i32, i32, [1 x i32] }* @__cpu_model, i64 0, i32 3, i64 0)
%71 = lshr i32 %70, 8
%72 = and i32 %71, 1
%73 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %72)
br label %74
74: ; preds = %69, %66
%75 = and i32 %0, 268435456
%76 = icmp eq i32 %75, 0
br i1 %76, label %82, label %77
77: ; preds = %74
%78 = load i32, i32* getelementptr inbounds ({ i32, i32, i32, [1 x i32] }, { i32, i32, i32, [1 x i32] }* @__cpu_model, i64 0, i32 3, i64 0)
%79 = lshr i32 %78, 9
%80 = and i32 %79, 1
%81 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %80)
br label %82
82: ; preds = %77, %74
%83 = icmp sgt i32 %2, 6
br i1 %83, label %84, label %94
84: ; preds = %82
%85 = tail call { i32, i32, i32, i32 } asm "cpuid\0A\09", "={ax},={bx},={cx},={dx},0,2,~{dirflag},~{fpsr},~{flags}"(i32 7, i32 0)
%86 = extractvalue { i32, i32, i32, i32 } %85, 1
%87 = and i32 %86, 32
%88 = icmp eq i32 %87, 0
br i1 %88, label %94, label %89
89: ; preds = %84
%90 = load i32, i32* getelementptr inbounds ({ i32, i32, i32, [1 x i32] }, { i32, i32, i32, [1 x i32] }* @__cpu_model, i64 0, i32 3, i64 0)
%91 = lshr i32 %90, 10
%92 = and i32 %91, 1
%93 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %92)
br label %94
94: ; preds = %84, %89, %82
ret void
}