; LLVM IR from libxsmm/libxsmm :: src (libxsmm_cpuid_x86)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.libxsmm_cpuid_info = type { [1024 x i8], i32, i32 }

@libxsmm_cpuid_x86.result = external hidden global i32, align 4
@libxsmm_se = external global i32, align 4
@.str.3 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@libxsmm_cpuid_x86.error_once = external hidden global i32, align 4
@libxsmm_verbosity = external global i32, align 4
@stderr = external global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [73 x i8], align 1
@__PRETTY_FUNCTION__.libxsmm_cpuid_x86 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [40 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_cpuid_x86_amx_enable() #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_cpuid_model(ptr noundef, ptr noundef) #0

declare noalias ptr @fopen(ptr noundef, ptr noundef) #2

declare i32 @fclose(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @libxsmm_cpuid_x86(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !9
  store i32 0, ptr %5, align 4, !tbaa !9
  %19 = call { i32, i32, i32, i32 } asm sideeffect ".byte 0x0f, 0xa2", "={ax},={bx},={cx},={dx},{ax},{bx},{cx},{dx},~{dirflag},~{fpsr},~{flags}"(i32 0, i32 0, i32 0, i32 0) #6, !srcloc !11
  %20 = extractvalue { i32, i32, i32, i32 } %19, 0
  %21 = extractvalue { i32, i32, i32, i32 } %19, 1
  %22 = extractvalue { i32, i32, i32, i32 } %19, 2
  %23 = extractvalue { i32, i32, i32, i32 } %19, 3
  store i32 %20, ptr %3, align 4, !tbaa !9
  store i32 %21, ptr %4, align 4, !tbaa !9
  store i32 %22, ptr %5, align 4, !tbaa !9
  store i32 %23, ptr %6, align 4, !tbaa !9
  %24 = load i32, ptr %6, align 4, !tbaa !9
  %25 = icmp eq i32 0, %24
  br i1 %25, label %26, label %28

26:                                               ; preds = %1
  %27 = load i32, ptr %6, align 4, !tbaa !9
  br label %28

28:                                               ; preds = %26, %1
  %29 = load i32, ptr %3, align 4, !tbaa !9
  %30 = icmp ule i32 1, %29
  br i1 %30, label %31, label %388

31:                                               ; preds = %28
  %32 = load i32, ptr @libxsmm_cpuid_x86.result, align 4, !tbaa !9
  %33 = icmp eq i32 0, %32
  br i1 %33, label %37, label %34

34:                                               ; preds = %31
  %35 = load ptr, ptr %2, align 8, !tbaa !5
  %36 = icmp ne ptr null, %35
  br i1 %36, label %37, label %387

37:                                               ; preds = %34, %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 1002, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 1002, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %38 = load i32, ptr %3, align 4, !tbaa !9
  store i32 %38, ptr %10, align 4, !tbaa !9
  %39 = load i32, ptr @libxsmm_se, align 4, !tbaa !9
  %40 = icmp eq i32 0, %39
  br i1 %40, label %41, label %62

41:                                               ; preds = %37
  %42 = load i32, ptr @libxsmm_cpuid_x86.result, align 4, !tbaa !9
  %43 = icmp eq i32 0, %42
  br i1 %43, label %44, label %62

44:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %45 = call noalias ptr @fopen(ptr noundef @.str.3, ptr noundef @.str.4)
  store ptr %45, ptr %11, align 8, !tbaa !5
  %46 = load ptr, ptr %11, align 8, !tbaa !5
  %47 = icmp ne ptr null, %46
  br i1 %47, label %48, label %61

48:                                               ; preds = %44
  %49 = load ptr, ptr %11, align 8, !tbaa !5
  %50 = call i64 @fread(ptr noundef @libxsmm_se, i64 noundef 1, i64 noundef 1, ptr noundef %49)
  %51 = icmp eq i64 1, %50
  br i1 %51, label %52, label %57

52:                                               ; preds = %48
  %53 = load i32, ptr @libxsmm_se, align 4, !tbaa !9
  %54 = icmp ne i32 48, %53
  %55 = zext i1 %54 to i64
  %56 = select i1 %54, i32 1, i32 0
  store i32 %56, ptr @libxsmm_se, align 4, !tbaa !9
  br label %58

57:                                               ; preds = %48
  store i32 1, ptr @libxsmm_se, align 4, !tbaa !9
  br label %58

58:                                               ; preds = %57, %52
  %59 = load ptr, ptr %11, align 8, !tbaa !5
  %60 = call i32 @fclose(ptr noundef %59)
  br label %61

61:                                               ; preds = %58, %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %62

62:                                               ; preds = %61, %41, %37
  store i32 0, ptr %6, align 4, !tbaa !9
  store i32 0, ptr %5, align 4, !tbaa !9
  %63 = call { i32, i32, i32, i32 } asm sideeffect ".byte 0x0f, 0xa2", "={ax},={bx},={cx},={dx},{ax},{bx},{cx},{dx},~{dirflag},~{fpsr},~{flags}"(i32 1, i32 0, i32 0, i32 0) #6, !srcloc !12
  %64 = extractvalue { i32, i32, i32, i32 } %63, 0
  %65 = extractvalue { i32, i32, i32, i32 } %63, 1
  %66 = extractvalue { i32, i32, i32, i32 } %63, 2
  %67 = extractvalue { i32, i32, i32, i32 } %63, 3
  store i32 %64, ptr %3, align 4, !tbaa !9
  store i32 %65, ptr %4, align 4, !tbaa !9
  store i32 %66, ptr %5, align 4, !tbaa !9
  store i32 %67, ptr %6, align 4, !tbaa !9
  %68 = load i32, ptr %6, align 4, !tbaa !9
  %69 = icmp eq i32 0, %68
  br i1 %69, label %70, label %72

70:                                               ; preds = %62
  %71 = load i32, ptr %6, align 4, !tbaa !9
  br label %72

72:                                               ; preds = %70, %62
  %73 = load i32, ptr %5, align 4, !tbaa !9
  %74 = and i32 1, %73
  %75 = icmp eq i32 1, %74
  br i1 %75, label %76, label %183

76:                                               ; preds = %72
  %77 = load i32, ptr %5, align 4, !tbaa !9
  %78 = and i32 1048576, %77
  %79 = icmp eq i32 1048576, %78
  br i1 %79, label %80, label %181

80:                                               ; preds = %76
  %81 = load i32, ptr %5, align 4, !tbaa !9
  %82 = and i32 268435456, %81
  %83 = icmp eq i32 268435456, %82
  br i1 %83, label %84, label %179

84:                                               ; preds = %80
  %85 = load i32, ptr %5, align 4, !tbaa !9
  %86 = and i32 4096, %85
  %87 = icmp eq i32 4096, %86
  br i1 %87, label %88, label %177

88:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %6, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  %89 = call { i32, i32, i32, i32 } asm sideeffect ".byte 0x0f, 0xa2", "={ax},={bx},={cx},={dx},{ax},{bx},{cx},{dx},~{dirflag},~{fpsr},~{flags}"(i32 7, i32 0, i32 0, i32 0) #6, !srcloc !13
  %90 = extractvalue { i32, i32, i32, i32 } %89, 0
  %91 = extractvalue { i32, i32, i32, i32 } %89, 1
  %92 = extractvalue { i32, i32, i32, i32 } %89, 2
  %93 = extractvalue { i32, i32, i32, i32 } %89, 3
  store i32 %90, ptr %3, align 4, !tbaa !9
  store i32 %91, ptr %4, align 4, !tbaa !9
  store i32 %92, ptr %12, align 4, !tbaa !9
  store i32 %93, ptr %6, align 4, !tbaa !9
  %94 = load i32, ptr %6, align 4, !tbaa !9
  %95 = icmp eq i32 0, %94
  br i1 %95, label %96, label %98

96:                                               ; preds = %88
  %97 = load i32, ptr %6, align 4, !tbaa !9
  br label %98

98:                                               ; preds = %96, %88
  %99 = load i32, ptr %4, align 4, !tbaa !9
  %100 = and i32 268500992, %99
  %101 = icmp eq i32 268500992, %100
  br i1 %101, label %102, label %155

102:                                              ; preds = %98
  %103 = load i32, ptr %4, align 4, !tbaa !9
  %104 = and i32 -1073610752, %103
  %105 = icmp eq i32 -1073610752, %104
  br i1 %105, label %106, label %154

106:                                              ; preds = %102
  %107 = load i32, ptr %12, align 4, !tbaa !9
  %108 = and i32 2048, %107
  %109 = icmp eq i32 2048, %108
  br i1 %109, label %110, label %152

110:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  %111 = call { i32, i32, i32, i32 } asm sideeffect ".byte 0x0f, 0xa2", "={ax},={bx},={cx},={dx},{ax},{bx},{cx},{dx},~{dirflag},~{fpsr},~{flags}"(i32 7, i32 0, i32 1, i32 0) #6, !srcloc !14
  %112 = extractvalue { i32, i32, i32, i32 } %111, 0
  %113 = extractvalue { i32, i32, i32, i32 } %111, 1
  %114 = extractvalue { i32, i32, i32, i32 } %111, 2
  %115 = extractvalue { i32, i32, i32, i32 } %111, 3
  store i32 %112, ptr %3, align 4, !tbaa !9
  store i32 %113, ptr %4, align 4, !tbaa !9
  store i32 %114, ptr %12, align 4, !tbaa !9
  store i32 %115, ptr %13, align 4, !tbaa !9
  %116 = load i32, ptr %13, align 4, !tbaa !9
  %117 = icmp eq i32 0, %116
  br i1 %117, label %118, label %120

118:                                              ; preds = %110
  %119 = load i32, ptr %13, align 4, !tbaa !9
  br label %120

120:                                              ; preds = %118, %110
  %121 = load i32, ptr %3, align 4, !tbaa !9
  %122 = and i32 32, %121
  %123 = icmp eq i32 32, %122
  br i1 %123, label %124, label %150

124:                                              ; preds = %120
  store i32 1103, ptr %7, align 4, !tbaa !9
  %125 = load i32, ptr %6, align 4, !tbaa !9
  %126 = and i32 54525952, %125
  %127 = icmp eq i32 54525952, %126
  br i1 %127, label %128, label %149

128:                                              ; preds = %124
  store i32 1104, ptr %7, align 4, !tbaa !9
  %129 = load i32, ptr %3, align 4, !tbaa !9
  %130 = and i32 2097152, %129
  %131 = icmp eq i32 2097152, %130
  br i1 %131, label %132, label %148

132:                                              ; preds = %128
  store i32 1105, ptr %7, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  %133 = call { i32, i32, i32, i32 } asm sideeffect ".byte 0x0f, 0xa2", "={ax},={bx},={cx},={dx},{ax},{bx},{cx},{dx},~{dirflag},~{fpsr},~{flags}"(i32 30, i32 0, i32 1, i32 0) #6, !srcloc !15
  %134 = extractvalue { i32, i32, i32, i32 } %133, 0
  %135 = extractvalue { i32, i32, i32, i32 } %133, 1
  %136 = extractvalue { i32, i32, i32, i32 } %133, 2
  %137 = extractvalue { i32, i32, i32, i32 } %133, 3
  store i32 %134, ptr %3, align 4, !tbaa !9
  store i32 %135, ptr %4, align 4, !tbaa !9
  store i32 %136, ptr %12, align 4, !tbaa !9
  store i32 %137, ptr %13, align 4, !tbaa !9
  %138 = load i32, ptr %13, align 4, !tbaa !9
  %139 = icmp eq i32 0, %138
  br i1 %139, label %140, label %142

140:                                              ; preds = %132
  %141 = load i32, ptr %13, align 4, !tbaa !9
  br label %142

142:                                              ; preds = %140, %132
  %143 = load i32, ptr %3, align 4, !tbaa !9
  %144 = and i32 15, %143
  %145 = icmp eq i32 15, %144
  br i1 %145, label %146, label %147

146:                                              ; preds = %142
  store i32 1106, ptr %7, align 4, !tbaa !9
  br label %147

147:                                              ; preds = %146, %142
  br label %148

148:                                              ; preds = %147, %128
  br label %149

149:                                              ; preds = %148, %124
  br label %151

150:                                              ; preds = %120
  store i32 1102, ptr %7, align 4, !tbaa !9
  br label %151

151:                                              ; preds = %150, %149
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %153

152:                                              ; preds = %106
  store i32 1101, ptr %7, align 4, !tbaa !9
  br label %153

153:                                              ; preds = %152, %151
  br label %154

154:                                              ; preds = %153, %102
  br label %176

155:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 1006, ptr %7, align 4, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  %156 = call { i32, i32, i32, i32 } asm sideeffect ".byte 0x0f, 0xa2", "={ax},={bx},={cx},={dx},{ax},{bx},{cx},{dx},~{dirflag},~{fpsr},~{flags}"(i32 7, i32 0, i32 1, i32 0) #6, !srcloc !16
  %157 = extractvalue { i32, i32, i32, i32 } %156, 0
  %158 = extractvalue { i32, i32, i32, i32 } %156, 1
  %159 = extractvalue { i32, i32, i32, i32 } %156, 2
  %160 = extractvalue { i32, i32, i32, i32 } %156, 3
  store i32 %157, ptr %3, align 4, !tbaa !9
  store i32 %158, ptr %4, align 4, !tbaa !9
  store i32 %159, ptr %12, align 4, !tbaa !9
  store i32 %160, ptr %14, align 4, !tbaa !9
  %161 = load i32, ptr %14, align 4, !tbaa !9
  %162 = icmp eq i32 0, %161
  br i1 %162, label %163, label %165

163:                                              ; preds = %155
  %164 = load i32, ptr %14, align 4, !tbaa !9
  br label %165

165:                                              ; preds = %163, %155
  %166 = load i32, ptr %3, align 4, !tbaa !9
  %167 = and i32 16, %166
  %168 = icmp eq i32 16, %167
  br i1 %168, label %169, label %175

169:                                              ; preds = %165
  store i32 1007, ptr %7, align 4, !tbaa !9
  %170 = load i32, ptr %14, align 4, !tbaa !9
  %171 = and i32 48, %170
  %172 = icmp eq i32 48, %171
  br i1 %172, label %173, label %174

173:                                              ; preds = %169
  store i32 1008, ptr %7, align 4, !tbaa !9
  br label %174

174:                                              ; preds = %173, %169
  br label %175

175:                                              ; preds = %174, %165
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %176

176:                                              ; preds = %175, %154
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %178

177:                                              ; preds = %84
  store i32 1005, ptr %7, align 4, !tbaa !9
  br label %178

178:                                              ; preds = %177, %176
  br label %180

179:                                              ; preds = %80
  store i32 1004, ptr %7, align 4, !tbaa !9
  br label %180

180:                                              ; preds = %179, %178
  br label %182

181:                                              ; preds = %76
  store i32 1003, ptr %7, align 4, !tbaa !9
  br label %182

182:                                              ; preds = %181, %180
  br label %183

183:                                              ; preds = %182, %72
  %184 = load i32, ptr %7, align 4, !tbaa !9
  %185 = icmp sge i32 %184, 1104
  br i1 %185, label %186, label %201

186:                                              ; preds = %183
  %187 = call i32 @libxsmm_cpuid_x86_amx_enable()
  %188 = icmp ne i32 0, %187
  br i1 %188, label %189, label %200

189:                                              ; preds = %186
  %190 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  %191 = icmp ne i32 0, %190
  br i1 %191, label %192, label %199

192:                                              ; preds = %189
  %193 = atomicrmw add ptr @libxsmm_cpuid_x86.error_once, i32 1 seq_cst, align 4
  %194 = add i32 %193, 1
  %195 = icmp eq i32 1, %194
  br i1 %195, label %196, label %199

196:                                              ; preds = %192
  %197 = load ptr, ptr @stderr, align 8, !tbaa !5
  %198 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %197, ptr noundef @.str.5) #6
  br label %199

199:                                              ; preds = %196, %192, %189
  store i32 1102, ptr %7, align 4, !tbaa !9
  br label %200

200:                                              ; preds = %199, %186
  br label %201

201:                                              ; preds = %200, %183
  %202 = load i32, ptr %7, align 4, !tbaa !9
  %203 = icmp slt i32 1002, %202
  br i1 %203, label %204, label %206

204:                                              ; preds = %201
  %205 = load i32, ptr %7, align 4, !tbaa !9
  br label %207

206:                                              ; preds = %201
  br label %207

207:                                              ; preds = %206, %204
  %208 = phi i32 [ %205, %204 ], [ 1002, %206 ]
  %209 = icmp sle i32 1002, %208
  br i1 %209, label %210, label %211

210:                                              ; preds = %207
  br label %212

211:                                              ; preds = %207
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.7, i32 noundef 244, ptr noundef @__PRETTY_FUNCTION__.libxsmm_cpuid_x86) #7
  unreachable

212:                                              ; preds = %210
  %213 = load i32, ptr %7, align 4, !tbaa !9
  %214 = icmp sgt i32 1002, %213
  br i1 %214, label %215, label %216

215:                                              ; preds = %212
  store i32 1002, ptr %7, align 4, !tbaa !9
  br label %216

216:                                              ; preds = %215, %212
  %217 = load i32, ptr %5, align 4, !tbaa !9
  %218 = and i32 201326592, %217
  %219 = icmp eq i32 201326592, %218
  br i1 %219, label %220, label %271

220:                                              ; preds = %216
  %221 = load i32, ptr %7, align 4, !tbaa !9
  %222 = icmp slt i32 1004, %221
  br i1 %222, label %223, label %224

223:                                              ; preds = %220
  br label %226

224:                                              ; preds = %220
  %225 = load i32, ptr %7, align 4, !tbaa !9
  br label %226

226:                                              ; preds = %224, %223
  %227 = phi i32 [ 1004, %223 ], [ %225, %224 ]
  store i32 %227, ptr %8, align 4, !tbaa !9
  %228 = load i32, ptr %7, align 4, !tbaa !9
  %229 = icmp sle i32 1005, %228
  br i1 %229, label %230, label %270

230:                                              ; preds = %226
  %231 = call { i32, i32 } asm sideeffect ".byte 0x0f, 0x01, 0xd0", "={ax},={dx},{cx},~{dirflag},~{fpsr},~{flags}"(i32 0) #6, !srcloc !17
  %232 = extractvalue { i32, i32 } %231, 0
  %233 = extractvalue { i32, i32 } %231, 1
  store i32 %232, ptr %3, align 4, !tbaa !9
  store i32 %233, ptr %6, align 4, !tbaa !9
  %234 = load i32, ptr %3, align 4, !tbaa !9
  %235 = and i32 6, %234
  %236 = icmp eq i32 6, %235
  br i1 %236, label %237, label %269

237:                                              ; preds = %230
  %238 = load i32, ptr %7, align 4, !tbaa !9
  %239 = icmp slt i32 1008, %238
  br i1 %239, label %240, label %241

240:                                              ; preds = %237
  br label %243

241:                                              ; preds = %237
  %242 = load i32, ptr %7, align 4, !tbaa !9
  br label %243

243:                                              ; preds = %241, %240
  %244 = phi i32 [ 1008, %240 ], [ %242, %241 ]
  store i32 %244, ptr %8, align 4, !tbaa !9
  %245 = load i32, ptr %3, align 4, !tbaa !9
  %246 = and i32 224, %245
  %247 = icmp eq i32 224, %246
  br i1 %247, label %248, label %268

248:                                              ; preds = %243
  %249 = load i32, ptr %7, align 4, !tbaa !9
  %250 = icmp slt i32 1103, %249
  br i1 %250, label %251, label %252

251:                                              ; preds = %248
  br label %254

252:                                              ; preds = %248
  %253 = load i32, ptr %7, align 4, !tbaa !9
  br label %254

254:                                              ; preds = %252, %251
  %255 = phi i32 [ 1103, %251 ], [ %253, %252 ]
  store i32 %255, ptr %8, align 4, !tbaa !9
  %256 = load i32, ptr %7, align 4, !tbaa !9
  %257 = icmp sle i32 1104, %256
  br i1 %257, label %258, label %267

258:                                              ; preds = %254
  %259 = load i32, ptr %10, align 4, !tbaa !9
  %260 = icmp ule i32 7, %259
  br i1 %260, label %261, label %267

261:                                              ; preds = %258
  %262 = load i32, ptr %3, align 4, !tbaa !9
  %263 = and i32 393216, %262
  %264 = icmp eq i32 393216, %263
  br i1 %264, label %265, label %267

265:                                              ; preds = %261
  %266 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %266, ptr %8, align 4, !tbaa !9
  br label %267

267:                                              ; preds = %265, %261, %258, %254
  br label %268

268:                                              ; preds = %267, %243
  br label %269

269:                                              ; preds = %268, %230
  br label %270

270:                                              ; preds = %269, %226
  br label %277

271:                                              ; preds = %216
  %272 = load i32, ptr %7, align 4, !tbaa !9
  %273 = icmp sle i32 1002, %272
  br i1 %273, label %274, label %275

274:                                              ; preds = %271
  store i32 1004, ptr %8, align 4, !tbaa !9
  br label %276

275:                                              ; preds = %271
  store i32 1, ptr %8, align 4, !tbaa !9
  br label %276

276:                                              ; preds = %275, %274
  br label %277

277:                                              ; preds = %276, %270
  %278 = load i32, ptr %7, align 4, !tbaa !9
  %279 = icmp sge i32 1002, %278
  br i1 %279, label %284, label %280

280:                                              ; preds = %277
  %281 = load i32, ptr %8, align 4, !tbaa !9
  %282 = load i32, ptr %7, align 4, !tbaa !9
  %283 = icmp sge i32 %281, %282
  br label %284

284:                                              ; preds = %280, %277
  %285 = phi i1 [ true, %277 ], [ %283, %280 ]
  %286 = zext i1 %285 to i64
  %287 = select i1 %285, i32 1, i32 0
  store i32 %287, ptr %9, align 4, !tbaa !9
  %288 = load i32, ptr @libxsmm_cpuid_x86.result, align 4, !tbaa !9
  %289 = icmp eq i32 0, %288
  br i1 %289, label %290, label %338

290:                                              ; preds = %284
  %291 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  %292 = icmp ne i32 0, %291
  br i1 %292, label %293, label %338

293:                                              ; preds = %290
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %294 = load i32, ptr %7, align 4, !tbaa !9
  %295 = call i32 @libxsmm_cpuid_vlen32(i32 noundef %294)
  store i32 %295, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %296 = call i32 @libxsmm_cpuid_vlen32(i32 noundef 1103)
  %297 = load i32, ptr %15, align 4, !tbaa !9
  %298 = icmp slt i32 %296, %297
  br i1 %298, label %299, label %300

299:                                              ; preds = %293
  br label %313

300:                                              ; preds = %293
  %301 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  %302 = icmp sle i32 2, %301
  br i1 %302, label %306, label %303

303:                                              ; preds = %300
  %304 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  %305 = icmp sgt i32 0, %304
  br i1 %305, label %306, label %309

306:                                              ; preds = %303, %300
  %307 = load i32, ptr %7, align 4, !tbaa !9
  %308 = icmp slt i32 1103, %307
  br label %309

309:                                              ; preds = %306, %303
  %310 = phi i1 [ false, %303 ], [ %308, %306 ]
  %311 = zext i1 %310 to i64
  %312 = select i1 %310, ptr @.str.9, ptr null
  br label %313

313:                                              ; preds = %309, %299
  %314 = phi ptr [ @.str.8, %299 ], [ %312, %309 ]
  store ptr %314, ptr %16, align 8, !tbaa !5
  %315 = load ptr, ptr %16, align 8, !tbaa !5
  %316 = icmp ne ptr null, %315
  br i1 %316, label %317, label %323

317:                                              ; preds = %313
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %318 = call ptr @libxsmm_cpuid_name(i32 noundef 1103)
  store ptr %318, ptr %17, align 8, !tbaa !5
  %319 = load ptr, ptr @stderr, align 8, !tbaa !5
  %320 = load ptr, ptr %16, align 8, !tbaa !5
  %321 = load ptr, ptr %17, align 8, !tbaa !5
  %322 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %319, ptr noundef @.str.10, ptr noundef %320, ptr noundef %321) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %323

323:                                              ; preds = %317, %313
  %324 = load ptr, ptr @stderr, align 8, !tbaa !5
  %325 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %324, ptr noundef @.str.11) #6
  %326 = load i32, ptr %9, align 4, !tbaa !9
  %327 = icmp eq i32 0, %326
  br i1 %327, label %328, label %337

328:                                              ; preds = %323
  %329 = load ptr, ptr @stderr, align 8, !tbaa !5
  %330 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %329, ptr noundef @.str.12) #6
  %331 = load i32, ptr @libxsmm_se, align 4, !tbaa !9
  %332 = icmp eq i32 0, %331
  br i1 %332, label %333, label %336

333:                                              ; preds = %328
  %334 = load ptr, ptr @stderr, align 8, !tbaa !5
  %335 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %334, ptr noundef @.str.13) #6
  br label %336

336:                                              ; preds = %333, %328
  br label %337

337:                                              ; preds = %336, %323
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %338

338:                                              ; preds = %337, %290, %284
  %339 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %339, ptr @libxsmm_cpuid_x86.result, align 4, !tbaa !9
  %340 = load i32, ptr %7, align 4, !tbaa !9
  %341 = load i32, ptr %8, align 4, !tbaa !9
  %342 = icmp slt i32 %340, %341
  br i1 %342, label %343, label %345

343:                                              ; preds = %338
  %344 = load i32, ptr %7, align 4, !tbaa !9
  br label %347

345:                                              ; preds = %338
  %346 = load i32, ptr %8, align 4, !tbaa !9
  br label %347

347:                                              ; preds = %345, %343
  %348 = phi i32 [ %344, %343 ], [ %346, %345 ]
  store i32 %348, ptr @libxsmm_cpuid_x86.result, align 4, !tbaa !9
  %349 = load ptr, ptr %2, align 8, !tbaa !5
  %350 = icmp ne ptr null, %349
  br i1 %350, label %351, label %386

351:                                              ; preds = %347
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  store i64 1024, ptr %18, align 8, !tbaa !18
  %352 = load ptr, ptr %2, align 8, !tbaa !5
  %353 = getelementptr inbounds %struct.libxsmm_cpuid_info, ptr %352, i32 0, i32 0
  %354 = getelementptr inbounds [1024 x i8], ptr %353, i64 0, i64 0
  call void @libxsmm_cpuid_model(ptr noundef %354, ptr noundef %18)
  %355 = load i64, ptr %18, align 8, !tbaa !18
  %356 = icmp ne i64 0, %355
  br i1 %356, label %364, label %357

357:                                              ; preds = %351
  %358 = load ptr, ptr %2, align 8, !tbaa !5
  %359 = getelementptr inbounds %struct.libxsmm_cpuid_info, ptr %358, i32 0, i32 0
  %360 = getelementptr inbounds [1024 x i8], ptr %359, i64 0, i64 0
  %361 = load i8, ptr %360, align 4, !tbaa !20
  %362 = sext i8 %361 to i32
  %363 = icmp eq i32 0, %362
  br i1 %363, label %364, label %365

364:                                              ; preds = %357, %351
  br label %366

365:                                              ; preds = %357
  call void @__assert_fail(ptr noundef @.str.14, ptr noundef @.str.7, i32 noundef 313, ptr noundef @__PRETTY_FUNCTION__.libxsmm_cpuid_x86) #7
  unreachable

366:                                              ; preds = %364
  store i32 0, ptr %6, align 4, !tbaa !9
  store i32 0, ptr %5, align 4, !tbaa !9
  %367 = call { i32, i32, i32, i32 } asm sideeffect ".byte 0x0f, 0xa2", "={ax},={bx},={cx},={dx},{ax},{bx},{cx},{dx},~{dirflag},~{fpsr},~{flags}"(i32 -2147483641, i32 0, i32 0, i32 0) #6, !srcloc !21
  %368 = extractvalue { i32, i32, i32, i32 } %367, 0
  %369 = extractvalue { i32, i32, i32, i32 } %367, 1
  %370 = extractvalue { i32, i32, i32, i32 } %367, 2
  %371 = extractvalue { i32, i32, i32, i32 } %367, 3
  store i32 %368, ptr %3, align 4, !tbaa !9
  store i32 %369, ptr %4, align 4, !tbaa !9
  store i32 %370, ptr %5, align 4, !tbaa !9
  store i32 %371, ptr %6, align 4, !tbaa !9
  %372 = load i32, ptr %6, align 4, !tbaa !9
  %373 = icmp eq i32 0, %372
  br i1 %373, label %374, label %376

374:                                              ; preds = %366
  %375 = load i32, ptr %6, align 4, !tbaa !9
  br label %376

376:                                              ; preds = %374, %366
  %377 = load i32, ptr %6, align 4, !tbaa !9
  %378 = and i32 256, %377
  %379 = icmp eq i32 256, %378
  %380 = zext i1 %379 to i32
  %381 = load ptr, ptr %2, align 8, !tbaa !5
  %382 = getelementptr inbounds %struct.libxsmm_cpuid_info, ptr %381, i32 0, i32 1
  store i32 %380, ptr %382, align 4, !tbaa !22
  %383 = load i32, ptr %9, align 4, !tbaa !9
  %384 = load ptr, ptr %2, align 8, !tbaa !5
  %385 = getelementptr inbounds %struct.libxsmm_cpuid_info, ptr %384, i32 0, i32 2
  store i32 %383, ptr %385, align 4, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %386

386:                                              ; preds = %376, %347
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %387

387:                                              ; preds = %386, %34
  br label %394

388:                                              ; preds = %28
  %389 = load ptr, ptr %2, align 8, !tbaa !5
  %390 = icmp ne ptr null, %389
  br i1 %390, label %391, label %393

391:                                              ; preds = %388
  %392 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 4 %392, i8 0, i64 1032, i1 false)
  br label %393

393:                                              ; preds = %391, %388
  store i32 1002, ptr @libxsmm_cpuid_x86.result, align 4, !tbaa !9
  br label %394

394:                                              ; preds = %393, %387
  %395 = load i32, ptr @libxsmm_cpuid_x86.result, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  ret i32 %395
}

declare i64 @fread(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #2

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_cpuid_vlen32(i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @libxsmm_cpuid_name(i32 noundef) #0

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }
attributes #7 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{i64 2152739277}
!12 = !{i64 2152739606}
!13 = !{i64 2152740135}
!14 = !{i64 2152740608}
!15 = !{i64 2152741100}
!16 = !{i64 2152741482}
!17 = !{i64 2152743005}
!18 = !{!19, !19, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!7, !7, i64 0}
!21 = !{i64 2152744206}
!22 = !{!23, !10, i64 1024}
!23 = !{!"libxsmm_cpuid_info", !7, i64 0, !10, i64 1024, !10, i64 1028}
!24 = !{!23, !10, i64 1028}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@libxsmm_cpuid_x86.result = external hidden local_unnamed_addr global i32, align 4
@libxsmm_se = external global i32, align 4
@.str.3 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@libxsmm_cpuid_x86.error_once = external hidden global i32, align 4
@libxsmm_verbosity = external local_unnamed_addr global i32, align 4
@stderr = external local_unnamed_addr global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [73 x i8], align 1
@__PRETTY_FUNCTION__.libxsmm_cpuid_x86 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [40 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_cpuid_x86_amx_enable() local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_cpuid_model(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local i32 @libxsmm_cpuid_x86(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca i64, align 8
  %3 = tail call { i32, i32, i32, i32 } asm sideeffect ".byte 0x0f, 0xa2", "={ax},={bx},={cx},={dx},{ax},{bx},{cx},{dx},~{dirflag},~{fpsr},~{flags}"(i32 0, i32 0, i32 0, i32 0) #6, !srcloc !5
  %4 = extractvalue { i32, i32, i32, i32 } %3, 0
  %.not = icmp eq i32 %4, 0
  br i1 %.not, label %136, label %5

5:                                                ; preds = %1
  %6 = load i32, ptr @libxsmm_cpuid_x86.result, align 4
  %7 = icmp eq i32 %6, 0
  %8 = icmp ne ptr %0, null
  %or.cond = or i1 %8, %7
  br i1 %or.cond, label %9, label %139

9:                                                ; preds = %5
  %10 = load i32, ptr @libxsmm_se, align 4, !tbaa !6
  %11 = or i32 %10, %6
  %or.cond3 = icmp eq i32 %11, 0
  br i1 %or.cond3, label %12, label %19

12:                                               ; preds = %9
  %13 = tail call noalias ptr @fopen(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4)
  %.not93 = icmp eq ptr %13, null
  br i1 %.not93, label %19, label %14

14:                                               ; preds = %12
  %15 = tail call i64 @fread(ptr noundef nonnull @libxsmm_se, i64 noundef 1, i64 noundef 1, ptr noundef nonnull %13)
  %16 = icmp ne i64 %15, 1
  %17 = load i32, ptr @libxsmm_se, align 4
  %.not94 = icmp ne i32 %17, 48
  %narrow = select i1 %16, i1 true, i1 %.not94
  %storemerge = zext i1 %narrow to i32
  store i32 %storemerge, ptr @libxsmm_se, align 4, !tbaa !6
  %18 = tail call i32 @fclose(ptr noundef nonnull %13)
  br label %19

19:                                               ; preds = %12, %14, %9
  %20 = tail call { i32, i32, i32, i32 } asm sideeffect ".byte 0x0f, 0xa2", "={ax},={bx},={cx},={dx},{ax},{bx},{cx},{dx},~{dirflag},~{fpsr},~{flags}"(i32 1, i32 0, i32 0, i32 0) #6, !srcloc !10
  %21 = extractvalue { i32, i32, i32, i32 } %20, 2
  %22 = and i32 %21, 1
  %.not95 = icmp eq i32 %22, 0
  br i1 %.not95, label %.thread, label %23

23:                                               ; preds = %19
  %24 = and i32 %21, 1048576
  %.not96 = icmp eq i32 %24, 0
  br i1 %.not96, label %.thread, label %25

25:                                               ; preds = %23
  %26 = and i32 %21, 268435456
  %.not97 = icmp eq i32 %26, 0
  br i1 %.not97, label %.thread, label %27

27:                                               ; preds = %25
  %28 = and i32 %21, 4096
  %.not98 = icmp eq i32 %28, 0
  br i1 %.not98, label %.thread, label %29

29:                                               ; preds = %27
  %30 = tail call { i32, i32, i32, i32 } asm sideeffect ".byte 0x0f, 0xa2", "={ax},={bx},={cx},={dx},{ax},{bx},{cx},{dx},~{dirflag},~{fpsr},~{flags}"(i32 7, i32 0, i32 0, i32 0) #6, !srcloc !11
  %31 = extractvalue { i32, i32, i32, i32 } %30, 1
  %32 = extractvalue { i32, i32, i32, i32 } %30, 2
  %33 = extractvalue { i32, i32, i32, i32 } %30, 3
  %34 = and i32 %31, 268500992
  %35 = icmp eq i32 %34, 268500992
  br i1 %35, label %36, label %55

36:                                               ; preds = %29
  %37 = and i32 %31, -1073610752
  %38 = icmp eq i32 %37, -1073610752
  br i1 %38, label %39, label %.thread

39:                                               ; preds = %36
  %40 = and i32 %32, 2048
  %.not100 = icmp eq i32 %40, 0
  br i1 %.not100, label %.thread, label %41

41:                                               ; preds = %39
  %42 = tail call { i32, i32, i32, i32 } asm sideeffect ".byte 0x0f, 0xa2", "={ax},={bx},={cx},={dx},{ax},{bx},{cx},{dx},~{dirflag},~{fpsr},~{flags}"(i32 7, i32 0, i32 1, i32 0) #6, !srcloc !12
  %43 = extractvalue { i32, i32, i32, i32 } %42, 0
  %44 = and i32 %43, 32
  %.not101 = icmp eq i32 %44, 0
  br i1 %.not101, label %.thread, label %45

45:                                               ; preds = %41
  %46 = and i32 %33, 54525952
  %47 = icmp eq i32 %46, 54525952
  br i1 %47, label %48, label %.thread

48:                                               ; preds = %45
  %49 = and i32 %43, 2097152
  %.not102 = icmp eq i32 %49, 0
  br i1 %.not102, label %62, label %50

50:                                               ; preds = %48
  %51 = tail call { i32, i32, i32, i32 } asm sideeffect ".byte 0x0f, 0xa2", "={ax},={bx},={cx},={dx},{ax},{bx},{cx},{dx},~{dirflag},~{fpsr},~{flags}"(i32 30, i32 0, i32 1, i32 0) #6, !srcloc !13
  %52 = extractvalue { i32, i32, i32, i32 } %51, 0
  %53 = and i32 %52, 15
  %54 = icmp eq i32 %53, 15
  %spec.select = select i1 %54, i32 1106, i32 1105
  br label %62

55:                                               ; preds = %29
  %56 = tail call { i32, i32, i32, i32 } asm sideeffect ".byte 0x0f, 0xa2", "={ax},={bx},={cx},={dx},{ax},{bx},{cx},{dx},~{dirflag},~{fpsr},~{flags}"(i32 7, i32 0, i32 1, i32 0) #6, !srcloc !14
  %57 = extractvalue { i32, i32, i32, i32 } %56, 0
  %58 = extractvalue { i32, i32, i32, i32 } %56, 3
  %59 = and i32 %57, 16
  %.not99 = icmp eq i32 %59, 0
  %60 = and i32 %58, 48
  %61 = icmp eq i32 %60, 48
  %spec.store.select = select i1 %61, i32 1008, i32 1007
  %.1 = select i1 %.not99, i32 1006, i32 %spec.store.select
  br label %.thread

62:                                               ; preds = %48, %50
  %.3 = phi i32 [ 1104, %48 ], [ %spec.select, %50 ]
  %63 = tail call i32 @libxsmm_cpuid_x86_amx_enable()
  %.not103 = icmp eq i32 %63, 0
  br i1 %.not103, label %.thread, label %64

64:                                               ; preds = %62
  %65 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !6
  %.not104 = icmp eq i32 %65, 0
  br i1 %.not104, label %.thread, label %66

66:                                               ; preds = %64
  %67 = atomicrmw add ptr @libxsmm_cpuid_x86.error_once, i32 1 seq_cst, align 4
  %68 = icmp eq i32 %67, 0
  br i1 %68, label %69, label %.thread

69:                                               ; preds = %66
  %70 = load ptr, ptr @stderr, align 8, !tbaa !15
  %71 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef nonnull @.str.5) #7
  br label %.thread

.thread:                                          ; preds = %23, %25, %27, %39, %41, %45, %55, %36, %19, %64, %66, %69, %62
  %.4 = phi i32 [ %.3, %62 ], [ 1102, %69 ], [ 1102, %66 ], [ 1102, %64 ], [ 1003, %23 ], [ 1004, %25 ], [ 1005, %27 ], [ 1101, %39 ], [ 1102, %41 ], [ 1103, %45 ], [ %.1, %55 ], [ 1002, %36 ], [ 1002, %19 ]
  %72 = and i32 %21, 201326592
  %73 = icmp eq i32 %72, 201326592
  br i1 %73, label %74, label %92

74:                                               ; preds = %.thread
  %75 = tail call i32 @llvm.umin.i32(i32 %.4, i32 1004)
  %76 = icmp ugt i32 %.4, 1004
  br i1 %76, label %77, label %92

77:                                               ; preds = %74
  %78 = tail call { i32, i32 } asm sideeffect ".byte 0x0f, 0x01, 0xd0", "={ax},={dx},{cx},~{dirflag},~{fpsr},~{flags}"(i32 0) #6, !srcloc !17
  %79 = extractvalue { i32, i32 } %78, 0
  %80 = and i32 %79, 6
  %81 = icmp eq i32 %80, 6
  br i1 %81, label %82, label %92

82:                                               ; preds = %77
  %83 = tail call i32 @llvm.umin.i32(i32 %.4, i32 1008)
  %84 = and i32 %79, 224
  %85 = icmp eq i32 %84, 224
  br i1 %85, label %86, label %92

86:                                               ; preds = %82
  %87 = tail call i32 @llvm.umin.i32(i32 %.4, i32 1103)
  %88 = icmp ugt i32 %.4, 1103
  %89 = icmp ugt i32 %4, 6
  %or.cond6 = and i1 %89, %88
  %90 = and i32 %79, 393216
  %91 = icmp eq i32 %90, 393216
  %or.cond108 = and i1 %or.cond6, %91
  %spec.select109 = select i1 %or.cond108, i32 %.4, i32 %87
  br label %92

92:                                               ; preds = %86, %.thread, %74, %82, %77
  %.085 = phi i32 [ %83, %82 ], [ %75, %77 ], [ %75, %74 ], [ 1004, %.thread ], [ %spec.select109, %86 ]
  %93 = icmp ult i32 %.4, 1003
  %94 = icmp uge i32 %.085, %.4
  %95 = or i1 %93, %94
  %96 = zext i1 %95 to i32
  %97 = load i32, ptr @libxsmm_cpuid_x86.result, align 4, !tbaa !6
  %98 = icmp eq i32 %97, 0
  %99 = load i32, ptr @libxsmm_verbosity, align 4
  %100 = icmp ne i32 %99, 0
  %or.cond8 = select i1 %98, i1 %100, i1 false
  br i1 %or.cond8, label %101, label %122

101:                                              ; preds = %92
  %102 = tail call i32 @libxsmm_cpuid_vlen32(i32 noundef %.4)
  %103 = tail call i32 @libxsmm_cpuid_vlen32(i32 noundef 1103)
  %104 = icmp slt i32 %103, %102
  br i1 %104, label %.thread113, label %105

105:                                              ; preds = %101
  %106 = load i32, ptr @libxsmm_verbosity, align 4
  %or.cond10 = icmp ult i32 %106, 2
  %107 = icmp ult i32 %.4, 1104
  %or.cond115 = select i1 %or.cond10, i1 true, i1 %107
  br i1 %or.cond115, label %.thread111, label %.thread113

.thread113:                                       ; preds = %105, %101
  %108 = phi ptr [ @.str.8, %101 ], [ @.str.9, %105 ]
  %109 = tail call ptr @libxsmm_cpuid_name(i32 noundef 1103)
  %110 = load ptr, ptr @stderr, align 8, !tbaa !15
  %111 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %110, ptr noundef nonnull @.str.10, ptr noundef nonnull %108, ptr noundef %109) #7
  br label %.thread111

.thread111:                                       ; preds = %105, %.thread113
  %112 = load ptr, ptr @stderr, align 8, !tbaa !15
  %113 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %112, ptr noundef nonnull @.str.11) #7
  br i1 %95, label %122, label %114

114:                                              ; preds = %.thread111
  %115 = load ptr, ptr @stderr, align 8, !tbaa !15
  %116 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef nonnull @.str.12) #7
  %117 = load i32, ptr @libxsmm_se, align 4, !tbaa !6
  %118 = icmp eq i32 %117, 0
  br i1 %118, label %119, label %122

119:                                              ; preds = %114
  %120 = load ptr, ptr @stderr, align 8, !tbaa !15
  %121 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str.13) #7
  br label %122

122:                                              ; preds = %.thread111, %119, %114, %92
  %123 = tail call i32 @llvm.umin.i32(i32 %.4, i32 %.085)
  store i32 %123, ptr @libxsmm_cpuid_x86.result, align 4, !tbaa !6
  br i1 %8, label %124, label %139

124:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  store i64 1024, ptr %2, align 8, !tbaa !18
  call void @libxsmm_cpuid_model(ptr noundef nonnull %0, ptr noundef nonnull %2)
  %125 = load i64, ptr %2, align 8, !tbaa !18
  %.not106 = icmp eq i64 %125, 0
  br i1 %.not106, label %126, label %130

126:                                              ; preds = %124
  %127 = load i8, ptr %0, align 4, !tbaa !20
  %128 = icmp eq i8 %127, 0
  br i1 %128, label %130, label %129

129:                                              ; preds = %126
  call void @__assert_fail(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.7, i32 noundef 313, ptr noundef nonnull @__PRETTY_FUNCTION__.libxsmm_cpuid_x86) #8
  unreachable

130:                                              ; preds = %124, %126
  %131 = call { i32, i32, i32, i32 } asm sideeffect ".byte 0x0f, 0xa2", "={ax},={bx},={cx},={dx},{ax},{bx},{cx},{dx},~{dirflag},~{fpsr},~{flags}"(i32 -2147483641, i32 0, i32 0, i32 0) #6, !srcloc !21
  %132 = extractvalue { i32, i32, i32, i32 } %131, 3
  %133 = lshr i32 %132, 8
  %.lobit = and i32 %133, 1
  %134 = getelementptr inbounds i8, ptr %0, i64 1024
  store i32 %.lobit, ptr %134, align 4, !tbaa !22
  %135 = getelementptr inbounds i8, ptr %0, i64 1028
  store i32 %96, ptr %135, align 4, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  %.pre = load i32, ptr @libxsmm_cpuid_x86.result, align 4, !tbaa !6
  br label %139

136:                                              ; preds = %1
  %.not92 = icmp eq ptr %0, null
  br i1 %.not92, label %138, label %137

137:                                              ; preds = %136
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(1032) %0, i8 0, i64 1032, i1 false)
  br label %138

138:                                              ; preds = %137, %136
  store i32 1002, ptr @libxsmm_cpuid_x86.result, align 4, !tbaa !6
  br label %139

139:                                              ; preds = %122, %130, %5, %138
  %140 = phi i32 [ %123, %122 ], [ %.pre, %130 ], [ %6, %5 ], [ 1002, %138 ]
  ret i32 %140
}

; Function Attrs: nofree nounwind
declare noundef i64 @fread(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_cpuid_vlen32(i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @libxsmm_cpuid_name(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umin.i32(i32, i32) #5

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { cold nounwind }
attributes #8 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{i64 2152739277}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{i64 2152739606}
!11 = !{i64 2152740135}
!12 = !{i64 2152740608}
!13 = !{i64 2152741100}
!14 = !{i64 2152741482}
!15 = !{!16, !16, i64 0}
!16 = !{!"any pointer", !8, i64 0}
!17 = !{i64 2152743005}
!18 = !{!19, !19, i64 0}
!19 = !{!"long", !8, i64 0}
!20 = !{!8, !8, i64 0}
!21 = !{i64 2152744206}
!22 = !{!23, !7, i64 1024}
!23 = !{!"libxsmm_cpuid_info", !8, i64 0, !7, i64 1024, !7, i64 1028}
!24 = !{!23, !7, i64 1028}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass