; LLVM IR from libxsmm/libxsmm :: src (generator_common_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_generated_code = type { ptr, i32, i32, i32, i32, i32, i32 }

@.str.6 = external hidden unnamed_addr constant [76 x i8], align 1
@libxsmm_ninit = external global i32, align 4
@libxsmm_verbosity = external global i32, align 4
@__func__.libxsmm_generator_initialize_avx512_mask = external hidden unnamed_addr constant [41 x i8], align 1

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

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

declare void @libxsmm_handle_error(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1

declare void @libxsmm_x86_instruction_alu_imm_i64(ptr noundef, i32 noundef, i32 noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_initialize_avx512_mask(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  store i64 0, ptr %11, align 8, !tbaa !11
  %13 = load ptr, ptr %6, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %13, i32 0, i32 6
  %15 = load i32, ptr %14, align 4, !tbaa !13
  %16 = icmp uge i32 %15, 1101
  br i1 %16, label %17, label %69

17:                                               ; preds = %5
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %18, i32 0, i32 6
  %20 = load i32, ptr %19, align 4, !tbaa !13
  %21 = icmp ule i32 %20, 1999
  br i1 %21, label %22, label %69

22:                                               ; preds = %17
  %23 = load i32, ptr %10, align 4, !tbaa !9
  %24 = icmp eq i32 %23, 0
  br i1 %24, label %28, label %25

25:                                               ; preds = %22
  %26 = load i32, ptr %10, align 4, !tbaa !9
  %27 = icmp eq i32 %26, 6
  br i1 %27, label %28, label %29

28:                                               ; preds = %25, %22
  store i64 255, ptr %11, align 8, !tbaa !11
  br label %68

29:                                               ; preds = %25
  %30 = load i32, ptr %10, align 4, !tbaa !9
  %31 = icmp eq i32 %30, 1
  br i1 %31, label %35, label %32

32:                                               ; preds = %29
  %33 = load i32, ptr %10, align 4, !tbaa !9
  %34 = icmp eq i32 %33, 8
  br i1 %34, label %35, label %36

35:                                               ; preds = %32, %29
  store i64 65535, ptr %11, align 8, !tbaa !11
  br label %67

36:                                               ; preds = %32
  %37 = load i32, ptr %10, align 4, !tbaa !9
  %38 = icmp eq i32 %37, 3
  br i1 %38, label %45, label %39

39:                                               ; preds = %36
  %40 = load i32, ptr %10, align 4, !tbaa !9
  %41 = icmp eq i32 %40, 2
  br i1 %41, label %45, label %42

42:                                               ; preds = %39
  %43 = load i32, ptr %10, align 4, !tbaa !9
  %44 = icmp eq i32 %43, 10
  br i1 %44, label %45, label %46

45:                                               ; preds = %42, %39, %36
  store i64 4294967295, ptr %11, align 8, !tbaa !11
  br label %66

46:                                               ; preds = %42
  %47 = load i32, ptr %10, align 4, !tbaa !9
  %48 = icmp eq i32 %47, 12
  br i1 %48, label %55, label %49

49:                                               ; preds = %46
  %50 = load i32, ptr %10, align 4, !tbaa !9
  %51 = icmp eq i32 %50, 4
  br i1 %51, label %55, label %52

52:                                               ; preds = %49
  %53 = load i32, ptr %10, align 4, !tbaa !9
  %54 = icmp eq i32 %53, 5
  br i1 %54, label %55, label %56

55:                                               ; preds = %52, %49, %46
  store i64 -1, ptr %11, align 8, !tbaa !11
  br label %65

56:                                               ; preds = %52
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %59 = icmp ult i32 1, %58
  br i1 %59, label %60, label %62

60:                                               ; preds = %56
  %61 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %63

62:                                               ; preds = %56
  br label %63

63:                                               ; preds = %62, %60
  %64 = phi i32 [ %61, %60 ], [ 1, %62 ]
  call void @libxsmm_handle_error(ptr noundef %57, i32 noundef 90033, ptr noundef @__func__.libxsmm_generator_initialize_avx512_mask, ptr noundef @.str.6, i32 noundef 3989, i32 noundef %64)
  store i32 1, ptr %12, align 4
  br label %208

65:                                               ; preds = %55
  br label %66

66:                                               ; preds = %65, %45
  br label %67

67:                                               ; preds = %66, %35
  br label %68

68:                                               ; preds = %67, %28
  br label %136

69:                                               ; preds = %17, %5
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %70, i32 0, i32 6
  %72 = load i32, ptr %71, align 4, !tbaa !13
  %73 = icmp uge i32 %72, 1051
  br i1 %73, label %74, label %126

74:                                               ; preds = %69
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %75, i32 0, i32 6
  %77 = load i32, ptr %76, align 4, !tbaa !13
  %78 = icmp ult i32 %77, 1101
  br i1 %78, label %79, label %126

79:                                               ; preds = %74
  %80 = load i32, ptr %10, align 4, !tbaa !9
  %81 = icmp eq i32 %80, 0
  br i1 %81, label %85, label %82

82:                                               ; preds = %79
  %83 = load i32, ptr %10, align 4, !tbaa !9
  %84 = icmp eq i32 %83, 6
  br i1 %84, label %85, label %86

85:                                               ; preds = %82, %79
  store i64 15, ptr %11, align 8, !tbaa !11
  br label %125

86:                                               ; preds = %82
  %87 = load i32, ptr %10, align 4, !tbaa !9
  %88 = icmp eq i32 %87, 1
  br i1 %88, label %92, label %89

89:                                               ; preds = %86
  %90 = load i32, ptr %10, align 4, !tbaa !9
  %91 = icmp eq i32 %90, 8
  br i1 %91, label %92, label %93

92:                                               ; preds = %89, %86
  store i64 255, ptr %11, align 8, !tbaa !11
  br label %124

93:                                               ; preds = %89
  %94 = load i32, ptr %10, align 4, !tbaa !9
  %95 = icmp eq i32 %94, 3
  br i1 %95, label %102, label %96

96:                                               ; preds = %93
  %97 = load i32, ptr %10, align 4, !tbaa !9
  %98 = icmp eq i32 %97, 2
  br i1 %98, label %102, label %99

99:                                               ; preds = %96
  %100 = load i32, ptr %10, align 4, !tbaa !9
  %101 = icmp eq i32 %100, 10
  br i1 %101, label %102, label %103

102:                                              ; preds = %99, %96, %93
  store i64 65535, ptr %11, align 8, !tbaa !11
  br label %123

103:                                              ; preds = %99
  %104 = load i32, ptr %10, align 4, !tbaa !9
  %105 = icmp eq i32 %104, 12
  br i1 %105, label %112, label %106

106:                                              ; preds = %103
  %107 = load i32, ptr %10, align 4, !tbaa !9
  %108 = icmp eq i32 %107, 4
  br i1 %108, label %112, label %109

109:                                              ; preds = %106
  %110 = load i32, ptr %10, align 4, !tbaa !9
  %111 = icmp eq i32 %110, 5
  br i1 %111, label %112, label %113

112:                                              ; preds = %109, %106, %103
  store i64 4294967295, ptr %11, align 8, !tbaa !11
  br label %122

113:                                              ; preds = %109
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  %115 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %116 = icmp ult i32 1, %115
  br i1 %116, label %117, label %119

117:                                              ; preds = %113
  %118 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %120

119:                                              ; preds = %113
  br label %120

120:                                              ; preds = %119, %117
  %121 = phi i32 [ %118, %117 ], [ 1, %119 ]
  call void @libxsmm_handle_error(ptr noundef %114, i32 noundef 90033, ptr noundef @__func__.libxsmm_generator_initialize_avx512_mask, ptr noundef @.str.6, i32 noundef 4002, i32 noundef %121)
  store i32 1, ptr %12, align 4
  br label %208

122:                                              ; preds = %112
  br label %123

123:                                              ; preds = %122, %102
  br label %124

124:                                              ; preds = %123, %92
  br label %125

125:                                              ; preds = %124, %85
  br label %135

126:                                              ; preds = %74, %69
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %129 = icmp ult i32 1, %128
  br i1 %129, label %130, label %132

130:                                              ; preds = %126
  %131 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %133

132:                                              ; preds = %126
  br label %133

133:                                              ; preds = %132, %130
  %134 = phi i32 [ %131, %130 ], [ 1, %132 ]
  call void @libxsmm_handle_error(ptr noundef %127, i32 noundef 90005, ptr noundef @__func__.libxsmm_generator_initialize_avx512_mask, ptr noundef @.str.6, i32 noundef 4007, i32 noundef %134)
  store i32 1, ptr %12, align 4
  br label %208

135:                                              ; preds = %125
  br label %136

136:                                              ; preds = %135, %68
  %137 = load i64, ptr %11, align 8, !tbaa !11
  %138 = load i32, ptr %9, align 4, !tbaa !9
  %139 = zext i32 %138 to i64
  %140 = lshr i64 %137, %139
  store i64 %140, ptr %11, align 8, !tbaa !11
  %141 = load ptr, ptr %6, align 8, !tbaa !5
  %142 = load i32, ptr %7, align 4, !tbaa !9
  %143 = load i64, ptr %11, align 8, !tbaa !11
  call void @libxsmm_x86_instruction_alu_imm_i64(ptr noundef %141, i32 noundef -1568407413, i32 noundef %142, i64 noundef %143)
  %144 = load i32, ptr %10, align 4, !tbaa !9
  %145 = icmp eq i32 %144, 0
  br i1 %145, label %149, label %146

146:                                              ; preds = %136
  %147 = load i32, ptr %10, align 4, !tbaa !9
  %148 = icmp eq i32 %147, 6
  br i1 %148, label %149, label %159

149:                                              ; preds = %146, %136
  %150 = load ptr, ptr %6, align 8, !tbaa !5
  %151 = load ptr, ptr %6, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %151, i32 0, i32 6
  %153 = load i32, ptr %152, align 4, !tbaa !13
  %154 = icmp uge i32 %153, 1101
  %155 = zext i1 %154 to i64
  %156 = select i1 %154, i32 -1610280558, i32 -1610346094
  %157 = load i32, ptr %7, align 4, !tbaa !9
  %158 = load i32, ptr %8, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_mask_move(ptr noundef %150, i32 noundef %156, i32 noundef %157, i32 noundef %158)
  br label %207

159:                                              ; preds = %146
  %160 = load i32, ptr %10, align 4, !tbaa !9
  %161 = icmp eq i32 %160, 1
  br i1 %161, label %165, label %162

162:                                              ; preds = %159
  %163 = load i32, ptr %10, align 4, !tbaa !9
  %164 = icmp eq i32 %163, 8
  br i1 %164, label %165, label %169

165:                                              ; preds = %162, %159
  %166 = load ptr, ptr %6, align 8, !tbaa !5
  %167 = load i32, ptr %7, align 4, !tbaa !9
  %168 = load i32, ptr %8, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_mask_move(ptr noundef %166, i32 noundef -1610346094, i32 noundef %167, i32 noundef %168)
  br label %206

169:                                              ; preds = %162
  %170 = load i32, ptr %10, align 4, !tbaa !9
  %171 = icmp eq i32 %170, 3
  br i1 %171, label %178, label %172

172:                                              ; preds = %169
  %173 = load i32, ptr %10, align 4, !tbaa !9
  %174 = icmp eq i32 %173, 2
  br i1 %174, label %178, label %175

175:                                              ; preds = %172
  %176 = load i32, ptr %10, align 4, !tbaa !9
  %177 = icmp eq i32 %176, 10
  br i1 %177, label %178, label %182

178:                                              ; preds = %175, %172, %169
  %179 = load ptr, ptr %6, align 8, !tbaa !5
  %180 = load i32, ptr %7, align 4, !tbaa !9
  %181 = load i32, ptr %8, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_mask_move(ptr noundef %179, i32 noundef -1610149486, i32 noundef %180, i32 noundef %181)
  br label %205

182:                                              ; preds = %175
  %183 = load i32, ptr %10, align 4, !tbaa !9
  %184 = icmp eq i32 %183, 12
  br i1 %184, label %191, label %185

185:                                              ; preds = %182
  %186 = load i32, ptr %10, align 4, !tbaa !9
  %187 = icmp eq i32 %186, 4
  br i1 %187, label %191, label %188

188:                                              ; preds = %185
  %189 = load i32, ptr %10, align 4, !tbaa !9
  %190 = icmp eq i32 %189, 5
  br i1 %190, label %191, label %195

191:                                              ; preds = %188, %185, %182
  %192 = load ptr, ptr %6, align 8, !tbaa !5
  %193 = load i32, ptr %7, align 4, !tbaa !9
  %194 = load i32, ptr %8, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_mask_move(ptr noundef %192, i32 noundef -1601760878, i32 noundef %193, i32 noundef %194)
  br label %204

195:                                              ; preds = %188
  %196 = load ptr, ptr %6, align 8, !tbaa !5
  %197 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %198 = icmp ult i32 1, %197
  br i1 %198, label %199, label %201

199:                                              ; preds = %195
  %200 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %202

201:                                              ; preds = %195
  br label %202

202:                                              ; preds = %201, %199
  %203 = phi i32 [ %200, %199 ], [ 1, %201 ]
  call void @libxsmm_handle_error(ptr noundef %196, i32 noundef 90033, ptr noundef @__func__.libxsmm_generator_initialize_avx512_mask, ptr noundef @.str.6, i32 noundef 4042, i32 noundef %203)
  store i32 1, ptr %12, align 4
  br label %208

204:                                              ; preds = %191
  br label %205

205:                                              ; preds = %204, %178
  br label %206

206:                                              ; preds = %205, %165
  br label %207

207:                                              ; preds = %206, %149
  store i32 0, ptr %12, align 4
  br label %208

208:                                              ; preds = %207, %202, %133, %120, %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  %209 = load i32, ptr %12, align 4
  switch i32 %209, label %211 [
    i32 0, label %210
    i32 1, label %210
  ]

210:                                              ; preds = %208, %208
  ret void

211:                                              ; preds = %208
  unreachable
}

declare void @libxsmm_x86_instruction_mask_move(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 #2 = { 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 #3 = { 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 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = !{!14, !10, i64 28}
!14 = !{!"libxsmm_generated_code", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}


; 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"

@.str.6 = external hidden unnamed_addr constant [76 x i8], align 1
@libxsmm_ninit = external local_unnamed_addr global i32, align 4
@libxsmm_verbosity = external local_unnamed_addr global i32, align 4
@__func__.libxsmm_generator_initialize_avx512_mask = external hidden unnamed_addr constant [41 x i8], align 1
@switch.table.libxsmm_generator_initialize_avx512_mask = private unnamed_addr constant [13 x i64] [i64 255, i64 65535, i64 4294967295, i64 4294967295, i64 -1, i64 -1, i64 255, i64 255, i64 65535, i64 255, i64 4294967295, i64 255, i64 -1], align 8
@switch.table.libxsmm_generator_initialize_avx512_mask.1 = private unnamed_addr constant [13 x i64] [i64 15, i64 255, i64 65535, i64 65535, i64 4294967295, i64 4294967295, i64 15, i64 15, i64 255, i64 15, i64 65535, i64 15, i64 4294967295], align 8

declare void @libxsmm_handle_error(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

declare void @libxsmm_x86_instruction_alu_imm_i64(ptr noundef, i32 noundef, i32 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_initialize_avx512_mask(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #1 {
  %6 = getelementptr inbounds i8, ptr %0, i64 28
  %7 = load i32, ptr %6, align 4, !tbaa !5
  %8 = add i32 %7, -1101
  %or.cond93 = icmp ult i32 %8, 899
  br i1 %or.cond93, label %9, label %16

9:                                                ; preds = %5
  %10 = icmp ult i32 %4, 13
  br i1 %10, label %switch.hole_check, label %11

11:                                               ; preds = %switch.hole_check, %9
  %12 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !11
  %13 = icmp ugt i32 %12, 1
  %14 = load i32, ptr @libxsmm_verbosity, align 4
  %15 = select i1 %13, i32 %14, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90033, ptr noundef nonnull @__func__.libxsmm_generator_initialize_avx512_mask, ptr noundef nonnull @.str.6, i32 noundef 3989, i32 noundef %15) #2
  br label %45

16:                                               ; preds = %5
  %17 = add i32 %7, -1051
  %or.cond = icmp ult i32 %17, 50
  br i1 %or.cond, label %18, label %25

18:                                               ; preds = %16
  %19 = icmp ult i32 %4, 13
  br i1 %19, label %switch.hole_check100, label %20

20:                                               ; preds = %switch.hole_check100, %18
  %21 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !11
  %22 = icmp ugt i32 %21, 1
  %23 = load i32, ptr @libxsmm_verbosity, align 4
  %24 = select i1 %22, i32 %23, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90033, ptr noundef nonnull @__func__.libxsmm_generator_initialize_avx512_mask, ptr noundef nonnull @.str.6, i32 noundef 4002, i32 noundef %24) #2
  br label %45

25:                                               ; preds = %16
  %26 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !11
  %27 = icmp ugt i32 %26, 1
  %28 = load i32, ptr @libxsmm_verbosity, align 4
  %29 = select i1 %27, i32 %28, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90005, ptr noundef nonnull @__func__.libxsmm_generator_initialize_avx512_mask, ptr noundef nonnull @.str.6, i32 noundef 4007, i32 noundef %29) #2
  br label %45

switch.hole_check:                                ; preds = %9
  %switch.maskindex = trunc nuw i32 %4 to i16
  %switch.shifted = lshr i16 5503, %switch.maskindex
  %switch.lobit = trunc i16 %switch.shifted to i1
  br i1 %switch.lobit, label %switch.lookup, label %11

switch.hole_check100:                             ; preds = %18
  %switch.maskindex102 = trunc nuw i32 %4 to i16
  %switch.shifted103 = lshr i16 5503, %switch.maskindex102
  %switch.lobit104 = trunc i16 %switch.shifted103 to i1
  br i1 %switch.lobit104, label %switch.lookup, label %20

switch.lookup:                                    ; preds = %switch.hole_check100, %switch.hole_check
  %switch.table.libxsmm_generator_initialize_avx512_mask.1.sink = phi ptr [ @switch.table.libxsmm_generator_initialize_avx512_mask, %switch.hole_check ], [ @switch.table.libxsmm_generator_initialize_avx512_mask.1, %switch.hole_check100 ]
  %30 = sext i32 %4 to i64
  %switch.gep105 = getelementptr inbounds [13 x i64], ptr %switch.table.libxsmm_generator_initialize_avx512_mask.1.sink, i64 0, i64 %30
  %switch.load106 = load i64, ptr %switch.gep105, align 8
  %31 = zext nneg i32 %3 to i64
  %32 = lshr i64 %switch.load106, %31
  tail call void @libxsmm_x86_instruction_alu_imm_i64(ptr noundef nonnull %0, i32 noundef -1568407413, i32 noundef %1, i64 noundef %32) #2
  switch i32 %4, label %40 [
    i32 6, label %33
    i32 0, label %33
    i32 8, label %37
    i32 1, label %37
    i32 10, label %38
    i32 3, label %38
    i32 2, label %38
    i32 12, label %39
    i32 5, label %39
    i32 4, label %39
  ]

33:                                               ; preds = %switch.lookup, %switch.lookup
  %34 = load i32, ptr %6, align 4, !tbaa !5
  %35 = icmp ugt i32 %34, 1100
  %36 = select i1 %35, i32 -1610280558, i32 -1610346094
  tail call void @libxsmm_x86_instruction_mask_move(ptr noundef nonnull %0, i32 noundef %36, i32 noundef %1, i32 noundef %2) #2
  br label %45

37:                                               ; preds = %switch.lookup, %switch.lookup
  tail call void @libxsmm_x86_instruction_mask_move(ptr noundef nonnull %0, i32 noundef -1610346094, i32 noundef %1, i32 noundef %2) #2
  br label %45

38:                                               ; preds = %switch.lookup, %switch.lookup, %switch.lookup
  tail call void @libxsmm_x86_instruction_mask_move(ptr noundef nonnull %0, i32 noundef -1610149486, i32 noundef %1, i32 noundef %2) #2
  br label %45

39:                                               ; preds = %switch.lookup, %switch.lookup, %switch.lookup
  tail call void @libxsmm_x86_instruction_mask_move(ptr noundef nonnull %0, i32 noundef -1601760878, i32 noundef %1, i32 noundef %2) #2
  br label %45

40:                                               ; preds = %switch.lookup
  %41 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !11
  %42 = icmp ugt i32 %41, 1
  %43 = load i32, ptr @libxsmm_verbosity, align 4
  %44 = select i1 %42, i32 %43, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90033, ptr noundef nonnull @__func__.libxsmm_generator_initialize_avx512_mask, ptr noundef nonnull @.str.6, i32 noundef 4042, i32 noundef %44) #2
  br label %45

45:                                               ; preds = %33, %38, %39, %37, %40, %25, %20, %11
  ret void
}

declare void @libxsmm_x86_instruction_mask_move(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

attributes #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 = { 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 #2 = { 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, !10, i64 28}
!6 = !{!"libxsmm_generated_code", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!10, !10, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass