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

; 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_loop_label_tracker_struct = type { [512 x i32], i32 }
%struct.libxsmm_gp_reg_mapping_struct = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.libxsmm_jump_label_tracker_struct = type { [512 x i32], [512 x %struct.libxsmm_jump_source_struct] }
%struct.libxsmm_jump_source_struct = type { [512 x i32], [512 x i32], i32 }
%struct.libxsmm_gemm_descriptor = type <{ i32, i32, i32, i32, i32, i32, i32, i8, [3 x i8], i8, i64, i64, i8, i32, i32, i32, i16, i16, i8, i8, i8, i8, i16, i16, i16, i16, i16, i16, i32, i32, i32, i8 }>
%struct.libxsmm_generated_code = type { ptr, i32, i32, i32, i32, i32, i32 }

declare void @libxsmm_x86_instruction_alu_imm(ptr noundef, i32 noundef, i32 noundef, i64 noundef) #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

declare i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef) #0

declare i32 @libxsmm_x86_is_Amxfp4_Bbf16_gemm(ptr noundef) #0

declare i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef) #0

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gemm_amx_kernel_wrapper(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %struct.libxsmm_loop_label_tracker_struct, align 4
  %6 = alloca %struct.libxsmm_gp_reg_mapping_struct, align 4
  %7 = alloca i32, align 4
  %8 = alloca %struct.libxsmm_jump_label_tracker_struct, align 4
  %9 = alloca %struct.libxsmm_jump_label_tracker_struct, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2052, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 132, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  %11 = call i32 @libxsmm_x86_is_Amxfp4_Bbf16_gemm(ptr noundef %10)
  store i32 %11, ptr %7, align 4, !tbaa !9
  call void @libxsmm_reset_x86_gp_reg_mapping(ptr noundef %6)
  %12 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 0
  store i32 7, ptr %12, align 4, !tbaa !11
  %13 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 0
  %14 = load i32, ptr %13, align 4, !tbaa !11
  %15 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 1
  store i32 %14, ptr %15, align 4, !tbaa !13
  %16 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 3
  store i32 6, ptr %16, align 4, !tbaa !14
  %17 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 5
  store i32 2, ptr %17, align 4, !tbaa !15
  %18 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 6
  store i32 1, ptr %18, align 4, !tbaa !16
  %19 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 8
  store i32 8, ptr %19, align 4, !tbaa !17
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %20, i32 0, i32 8
  %22 = getelementptr inbounds [3 x i8], ptr %21, i64 0, i64 0
  %23 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %22)
  %24 = icmp eq i32 12, %23
  br i1 %24, label %25, label %35

25:                                               ; preds = %2
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %26, i32 0, i32 8
  %28 = getelementptr inbounds [3 x i8], ptr %27, i64 0, i64 0
  %29 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %28)
  %30 = icmp eq i32 1, %29
  br i1 %30, label %31, label %35

31:                                               ; preds = %25
  %32 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 20
  store i32 1, ptr %32, align 4, !tbaa !18
  %33 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 6
  store i32 8, ptr %33, align 4, !tbaa !16
  %34 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 8
  store i32 9, ptr %34, align 4, !tbaa !17
  br label %43

35:                                               ; preds = %25, %2
  %36 = load i32, ptr %7, align 4, !tbaa !9
  %37 = icmp ugt i32 %36, 0
  br i1 %37, label %38, label %40

38:                                               ; preds = %35
  %39 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 20
  store i32 1, ptr %39, align 4, !tbaa !18
  br label %42

40:                                               ; preds = %35
  %41 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 20
  store i32 127, ptr %41, align 4, !tbaa !18
  br label %42

42:                                               ; preds = %40, %38
  br label %43

43:                                               ; preds = %42, %31
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %44, i32 0, i32 6
  %46 = load i32, ptr %45, align 1, !tbaa !19
  %47 = and i32 %46, 65536
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %49, label %85

49:                                               ; preds = %43
  %50 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 1
  store i32 0, ptr %50, align 4, !tbaa !13
  %51 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 15
  store i32 7, ptr %51, align 4, !tbaa !23
  %52 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 3
  store i32 3, ptr %52, align 4, !tbaa !14
  %53 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 16
  store i32 6, ptr %53, align 4, !tbaa !24
  %54 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 5
  store i32 2, ptr %54, align 4, !tbaa !15
  %55 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 13
  store i32 1, ptr %55, align 4, !tbaa !25
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %56, i32 0, i32 8
  %58 = getelementptr inbounds [3 x i8], ptr %57, i64 0, i64 0
  %59 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %58)
  %60 = icmp eq i32 12, %59
  br i1 %60, label %61, label %71

61:                                               ; preds = %49
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %62, i32 0, i32 8
  %64 = getelementptr inbounds [3 x i8], ptr %63, i64 0, i64 0
  %65 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %64)
  %66 = icmp eq i32 1, %65
  br i1 %66, label %67, label %71

67:                                               ; preds = %61
  %68 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 20
  store i32 8, ptr %68, align 4, !tbaa !18
  %69 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 6
  store i32 9, ptr %69, align 4, !tbaa !16
  %70 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 8
  store i32 127, ptr %70, align 4, !tbaa !17
  br label %81

71:                                               ; preds = %61, %49
  %72 = load i32, ptr %7, align 4, !tbaa !9
  %73 = icmp ugt i32 %72, 0
  br i1 %73, label %74, label %76

74:                                               ; preds = %71
  %75 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 20
  store i32 14, ptr %75, align 4, !tbaa !18
  br label %78

76:                                               ; preds = %71
  %77 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 20
  store i32 127, ptr %77, align 4, !tbaa !18
  br label %78

78:                                               ; preds = %76, %74
  %79 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 6
  store i32 8, ptr %79, align 4, !tbaa !16
  %80 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 8
  store i32 9, ptr %80, align 4, !tbaa !17
  br label %81

81:                                               ; preds = %78, %67
  %82 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 14
  store i32 10, ptr %82, align 4, !tbaa !26
  %83 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 2
  store i32 7, ptr %83, align 4, !tbaa !27
  %84 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 4
  store i32 6, ptr %84, align 4, !tbaa !28
  br label %161

85:                                               ; preds = %43
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %86, i32 0, i32 6
  %88 = load i32, ptr %87, align 1, !tbaa !19
  %89 = and i32 %88, 131072
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %91, label %123

91:                                               ; preds = %85
  %92 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 2
  store i32 7, ptr %92, align 4, !tbaa !27
  %93 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 7
  store i32 8, ptr %93, align 4, !tbaa !29
  %94 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 1
  store i32 0, ptr %94, align 4, !tbaa !13
  %95 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 4
  store i32 6, ptr %95, align 4, !tbaa !28
  %96 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 9
  store i32 9, ptr %96, align 4, !tbaa !30
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %97, i32 0, i32 8
  %99 = getelementptr inbounds [3 x i8], ptr %98, i64 0, i64 0
  %100 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %99)
  %101 = icmp eq i32 12, %100
  br i1 %101, label %102, label %110

102:                                              ; preds = %91
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %103, i32 0, i32 8
  %105 = getelementptr inbounds [3 x i8], ptr %104, i64 0, i64 0
  %106 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %105)
  %107 = icmp eq i32 1, %106
  br i1 %107, label %108, label %110

108:                                              ; preds = %102
  %109 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 20
  store i32 0, ptr %109, align 4, !tbaa !18
  br label %118

110:                                              ; preds = %102, %91
  %111 = load i32, ptr %7, align 4, !tbaa !9
  %112 = icmp ugt i32 %111, 0
  br i1 %112, label %113, label %115

113:                                              ; preds = %110
  %114 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 20
  store i32 14, ptr %114, align 4, !tbaa !18
  br label %117

115:                                              ; preds = %110
  %116 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 20
  store i32 127, ptr %116, align 4, !tbaa !18
  br label %117

117:                                              ; preds = %115, %113
  br label %118

118:                                              ; preds = %117, %108
  %119 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 3
  store i32 3, ptr %119, align 4, !tbaa !14
  %120 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 5
  store i32 2, ptr %120, align 4, !tbaa !15
  %121 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 13
  store i32 1, ptr %121, align 4, !tbaa !25
  %122 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 14
  store i32 10, ptr %122, align 4, !tbaa !26
  br label %160

123:                                              ; preds = %85
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %124, i32 0, i32 6
  %126 = load i32, ptr %125, align 1, !tbaa !19
  %127 = and i32 %126, 262144
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %129, label %159

129:                                              ; preds = %123
  %130 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 2
  store i32 7, ptr %130, align 4, !tbaa !27
  %131 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 1
  store i32 8, ptr %131, align 4, !tbaa !13
  %132 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 4
  store i32 6, ptr %132, align 4, !tbaa !28
  %133 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 3
  store i32 3, ptr %133, align 4, !tbaa !14
  %134 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 5
  store i32 2, ptr %134, align 4, !tbaa !15
  %135 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 13
  store i32 1, ptr %135, align 4, !tbaa !25
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %136, i32 0, i32 8
  %138 = getelementptr inbounds [3 x i8], ptr %137, i64 0, i64 0
  %139 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %138)
  %140 = icmp eq i32 12, %139
  br i1 %140, label %141, label %149

141:                                              ; preds = %129
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %142, i32 0, i32 8
  %144 = getelementptr inbounds [3 x i8], ptr %143, i64 0, i64 0
  %145 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %144)
  %146 = icmp eq i32 1, %145
  br i1 %146, label %147, label %149

147:                                              ; preds = %141
  %148 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 20
  store i32 8, ptr %148, align 4, !tbaa !18
  br label %157

149:                                              ; preds = %141, %129
  %150 = load i32, ptr %7, align 4, !tbaa !9
  %151 = icmp ugt i32 %150, 0
  br i1 %151, label %152, label %154

152:                                              ; preds = %149
  %153 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 20
  store i32 14, ptr %153, align 4, !tbaa !18
  br label %156

154:                                              ; preds = %149
  %155 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 20
  store i32 127, ptr %155, align 4, !tbaa !18
  br label %156

156:                                              ; preds = %154, %152
  br label %157

157:                                              ; preds = %156, %147
  %158 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 14
  store i32 10, ptr %158, align 4, !tbaa !26
  br label %159

159:                                              ; preds = %157, %123
  br label %160

160:                                              ; preds = %159, %118
  br label %161

161:                                              ; preds = %160, %81
  %162 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 30
  store i32 1, ptr %162, align 4, !tbaa !31
  %163 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 29
  store i32 3, ptr %163, align 4, !tbaa !32
  %164 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 10
  store i32 12, ptr %164, align 4, !tbaa !33
  %165 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 11
  store i32 13, ptr %165, align 4, !tbaa !34
  %166 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 22
  store i32 12, ptr %166, align 4, !tbaa !35
  %167 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 23
  store i32 13, ptr %167, align 4, !tbaa !36
  %168 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 12
  store i32 14, ptr %168, align 4, !tbaa !37
  %169 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 17
  store i32 11, ptr %169, align 4, !tbaa !38
  %170 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 18
  store i32 15, ptr %170, align 4, !tbaa !39
  %171 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 19
  store i32 14, ptr %171, align 4, !tbaa !40
  call void @libxsmm_reset_loop_label_tracker(ptr noundef %5)
  %172 = load ptr, ptr %3, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_open_stream_alt(ptr noundef %172, i32 noundef 0, i32 noundef 0)
  %173 = load ptr, ptr %4, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %173, i32 0, i32 6
  %175 = load i32, ptr %174, align 1, !tbaa !19
  %176 = and i32 64, %175
  %177 = icmp eq i32 %176, 0
  br i1 %177, label %178, label %190

178:                                              ; preds = %161
  %179 = load ptr, ptr %4, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %179, i32 0, i32 6
  %181 = load i32, ptr %180, align 1, !tbaa !19
  %182 = and i32 128, %181
  %183 = icmp eq i32 %182, 0
  br i1 %183, label %184, label %190

184:                                              ; preds = %178
  %185 = load ptr, ptr %3, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %185, i32 noundef 30008, i32 noundef 4, i64 noundef 64)
  %186 = load ptr, ptr %3, align 8, !tbaa !5
  %187 = load ptr, ptr %3, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %187, i32 0, i32 6
  %189 = load i32, ptr %188, align 4, !tbaa !41
  call void @libxsmm_x86_instruction_tile_control(ptr noundef %186, i32 noundef 1000, i32 noundef %189, i32 noundef 50002, i32 noundef 4, i32 noundef 0, ptr noundef null)
  br label %215

190:                                              ; preds = %178, %161
  %191 = load ptr, ptr %4, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %191, i32 0, i32 6
  %193 = load i32, ptr %192, align 1, !tbaa !19
  %194 = and i32 64, %193
  %195 = icmp ne i32 %194, 0
  br i1 %195, label %196, label %214

196:                                              ; preds = %190
  %197 = load ptr, ptr %4, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %197, i32 0, i32 6
  %199 = load i32, ptr %198, align 1, !tbaa !19
  %200 = and i32 128, %199
  %201 = icmp eq i32 %200, 0
  br i1 %201, label %202, label %214

202:                                              ; preds = %196
  call void @llvm.lifetime.start.p0(i64 2101248, ptr %8) #3
  call void @libxsmm_reset_jump_label_tracker(ptr noundef %8)
  %203 = load ptr, ptr %3, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 0
  %205 = load i32, ptr %204, align 4, !tbaa !11
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %203, i32 noundef 30002, i32 noundef %205, i64 noundef 0)
  %206 = load ptr, ptr %3, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_jump_to_label(ptr noundef %206, i32 noundef 30101, i32 noundef 0, ptr noundef %8)
  %207 = load ptr, ptr %3, align 8, !tbaa !5
  %208 = load ptr, ptr %3, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %208, i32 0, i32 6
  %210 = load i32, ptr %209, align 4, !tbaa !41
  %211 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 0
  %212 = load i32, ptr %211, align 4, !tbaa !11
  call void @libxsmm_x86_instruction_tile_control(ptr noundef %207, i32 noundef 1000, i32 noundef %210, i32 noundef 50002, i32 noundef %212, i32 noundef 0, ptr noundef null)
  %213 = load ptr, ptr %3, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_register_jump_label(ptr noundef %213, i32 noundef 0, ptr noundef %8)
  call void @llvm.lifetime.end.p0(i64 2101248, ptr %8) #3
  br label %214

214:                                              ; preds = %202, %196, %190
  br label %215

215:                                              ; preds = %214, %184
  %216 = load ptr, ptr %4, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %216, i32 0, i32 6
  %218 = load i32, ptr %217, align 1, !tbaa !19
  %219 = and i32 64, %218
  %220 = icmp eq i32 %219, 0
  br i1 %220, label %221, label %245

221:                                              ; preds = %215
  %222 = load ptr, ptr %4, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %222, i32 0, i32 6
  %224 = load i32, ptr %223, align 1, !tbaa !19
  %225 = and i32 128, %224
  %226 = icmp ne i32 %225, 0
  br i1 %226, label %227, label %245

227:                                              ; preds = %221
  call void @llvm.lifetime.start.p0(i64 2101248, ptr %9) #3
  call void @libxsmm_reset_jump_label_tracker(ptr noundef %9)
  %228 = load ptr, ptr %3, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 0
  %230 = load i32, ptr %229, align 4, !tbaa !11
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %228, i32 noundef 30002, i32 noundef %230, i64 noundef 0)
  %231 = load ptr, ptr %3, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_jump_to_label(ptr noundef %231, i32 noundef 30101, i32 noundef 0, ptr noundef %9)
  %232 = load ptr, ptr %3, align 8, !tbaa !5
  %233 = load ptr, ptr %3, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %233, i32 0, i32 6
  %235 = load i32, ptr %234, align 4, !tbaa !41
  %236 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %6, i32 0, i32 0
  %237 = load i32, ptr %236, align 4, !tbaa !11
  call void @libxsmm_x86_instruction_tile_control(ptr noundef %232, i32 noundef 1001, i32 noundef %235, i32 noundef 50001, i32 noundef %237, i32 noundef 0, ptr noundef null)
  %238 = load ptr, ptr %3, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_jump_to_label(ptr noundef %238, i32 noundef 30108, i32 noundef 1, ptr noundef %9)
  %239 = load ptr, ptr %3, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_register_jump_label(ptr noundef %239, i32 noundef 0, ptr noundef %9)
  %240 = load ptr, ptr %3, align 8, !tbaa !5
  %241 = load ptr, ptr %3, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %241, i32 0, i32 6
  %243 = load i32, ptr %242, align 4, !tbaa !41
  call void @libxsmm_x86_instruction_tile_control(ptr noundef %240, i32 noundef 1002, i32 noundef %243, i32 noundef 50003, i32 noundef 127, i32 noundef 0, ptr noundef null)
  %244 = load ptr, ptr %3, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_register_jump_label(ptr noundef %244, i32 noundef 1, ptr noundef %9)
  call void @llvm.lifetime.end.p0(i64 2101248, ptr %9) #3
  br label %266

245:                                              ; preds = %221, %215
  %246 = load ptr, ptr %3, align 8, !tbaa !5
  %247 = load ptr, ptr %4, align 8, !tbaa !5
  call void @libxsmm_generator_gemm_amx_kernel(ptr noundef %246, ptr noundef %5, ptr noundef %6, ptr noundef %247)
  %248 = load ptr, ptr %4, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %248, i32 0, i32 6
  %250 = load i32, ptr %249, align 1, !tbaa !19
  %251 = and i32 64, %250
  %252 = icmp eq i32 %251, 0
  br i1 %252, label %253, label %265

253:                                              ; preds = %245
  %254 = load ptr, ptr %4, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %254, i32 0, i32 6
  %256 = load i32, ptr %255, align 1, !tbaa !19
  %257 = and i32 128, %256
  %258 = icmp eq i32 %257, 0
  br i1 %258, label %259, label %265

259:                                              ; preds = %253
  %260 = load ptr, ptr %3, align 8, !tbaa !5
  %261 = load ptr, ptr %3, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %261, i32 0, i32 6
  %263 = load i32, ptr %262, align 4, !tbaa !41
  call void @libxsmm_x86_instruction_tile_control(ptr noundef %260, i32 noundef 1001, i32 noundef %263, i32 noundef 50001, i32 noundef 4, i32 noundef 0, ptr noundef null)
  %264 = load ptr, ptr %3, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %264, i32 noundef 30000, i32 noundef 4, i64 noundef 64)
  br label %265

265:                                              ; preds = %259, %253, %245
  br label %266

266:                                              ; preds = %265, %227
  %267 = load ptr, ptr %3, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_close_stream_alt(ptr noundef %267, i32 noundef 0)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 132, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 2052, ptr %5) #3
  ret void
}

declare void @libxsmm_reset_x86_gp_reg_mapping(ptr noundef) #0

declare void @libxsmm_reset_loop_label_tracker(ptr noundef) #0

declare void @libxsmm_x86_instruction_open_stream_alt(ptr noundef, i32 noundef, i32 noundef) #0

declare void @libxsmm_x86_instruction_tile_control(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #0

declare void @libxsmm_reset_jump_label_tracker(ptr noundef) #0

declare void @libxsmm_x86_instruction_jump_to_label(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #0

declare void @libxsmm_x86_instruction_register_jump_label(ptr noundef, i32 noundef, ptr noundef) #0

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

declare void @libxsmm_x86_instruction_close_stream_alt(ptr noundef, i32 noundef) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !10, i64 0}
!12 = !{!"libxsmm_gp_reg_mapping_struct", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128}
!13 = !{!12, !10, i64 4}
!14 = !{!12, !10, i64 12}
!15 = !{!12, !10, i64 20}
!16 = !{!12, !10, i64 24}
!17 = !{!12, !10, i64 32}
!18 = !{!12, !10, i64 80}
!19 = !{!20, !10, i64 24}
!20 = !{!"libxsmm_gemm_descriptor", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !7, i64 28, !7, i64 29, !7, i64 32, !21, i64 33, !21, i64 41, !7, i64 49, !10, i64 50, !10, i64 54, !10, i64 58, !22, i64 62, !22, i64 64, !7, i64 66, !7, i64 67, !7, i64 68, !7, i64 69, !22, i64 70, !22, i64 72, !22, i64 74, !22, i64 76, !22, i64 78, !22, i64 80, !10, i64 82, !10, i64 86, !10, i64 90, !7, i64 94}
!21 = !{!"long long", !7, i64 0}
!22 = !{!"short", !7, i64 0}
!23 = !{!12, !10, i64 60}
!24 = !{!12, !10, i64 64}
!25 = !{!12, !10, i64 52}
!26 = !{!12, !10, i64 56}
!27 = !{!12, !10, i64 8}
!28 = !{!12, !10, i64 16}
!29 = !{!12, !10, i64 28}
!30 = !{!12, !10, i64 36}
!31 = !{!12, !10, i64 120}
!32 = !{!12, !10, i64 116}
!33 = !{!12, !10, i64 40}
!34 = !{!12, !10, i64 44}
!35 = !{!12, !10, i64 88}
!36 = !{!12, !10, i64 92}
!37 = !{!12, !10, i64 48}
!38 = !{!12, !10, i64 68}
!39 = !{!12, !10, i64 72}
!40 = !{!12, !10, i64 76}
!41 = !{!42, !10, i64 28}
!42 = !{!"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"

%struct.libxsmm_loop_label_tracker_struct = type { [512 x i32], i32 }
%struct.libxsmm_gp_reg_mapping_struct = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.libxsmm_jump_label_tracker_struct = type { [512 x i32], [512 x %struct.libxsmm_jump_source_struct] }
%struct.libxsmm_jump_source_struct = type { [512 x i32], [512 x i32], i32 }

declare void @libxsmm_x86_instruction_alu_imm(ptr noundef, i32 noundef, i32 noundef, i64 noundef) 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

declare i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef) local_unnamed_addr #0

declare i32 @libxsmm_x86_is_Amxfp4_Bbf16_gemm(ptr noundef) local_unnamed_addr #0

declare i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gemm_amx_kernel_wrapper(ptr noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = alloca %struct.libxsmm_loop_label_tracker_struct, align 4
  %4 = alloca %struct.libxsmm_gp_reg_mapping_struct, align 4
  %5 = alloca %struct.libxsmm_jump_label_tracker_struct, align 4
  %6 = alloca %struct.libxsmm_jump_label_tracker_struct, align 4
  call void @llvm.lifetime.start.p0(i64 2052, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 132, ptr nonnull %4) #3
  %7 = tail call i32 @libxsmm_x86_is_Amxfp4_Bbf16_gemm(ptr noundef %1) #3
  call void @libxsmm_reset_x86_gp_reg_mapping(ptr noundef nonnull %4) #3
  store i32 7, ptr %4, align 4, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %4, i64 4
  store i32 7, ptr %8, align 4, !tbaa !10
  %9 = getelementptr inbounds i8, ptr %4, i64 12
  store i32 6, ptr %9, align 4, !tbaa !11
  %10 = getelementptr inbounds i8, ptr %4, i64 20
  store i32 2, ptr %10, align 4, !tbaa !12
  %11 = getelementptr inbounds i8, ptr %4, i64 24
  store i32 1, ptr %11, align 4, !tbaa !13
  %12 = getelementptr inbounds i8, ptr %4, i64 32
  store i32 8, ptr %12, align 4, !tbaa !14
  %13 = getelementptr inbounds i8, ptr %1, i64 29
  %14 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %13) #3
  %15 = icmp eq i32 %14, 12
  %.sink63.sroa.gep = getelementptr inbounds i8, ptr %4, i64 56
  %.sink63.sroa.gep64 = getelementptr inbounds i8, ptr %4, i64 16
  %.sink63.sroa.gep65 = getelementptr inbounds i8, ptr %4, i64 56
  %.sink63.sroa.gep66 = getelementptr inbounds i8, ptr %4, i64 56
  %.sink63.sroa.gep67 = getelementptr inbounds i8, ptr %4, i64 56
  br i1 %15, label %16, label %21

16:                                               ; preds = %2
  %17 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %13) #3
  %18 = icmp eq i32 %17, 1
  br i1 %18, label %19, label %21

19:                                               ; preds = %16
  %20 = getelementptr inbounds i8, ptr %4, i64 80
  store i32 1, ptr %20, align 4, !tbaa !15
  store i32 8, ptr %11, align 4, !tbaa !13
  store i32 9, ptr %12, align 4, !tbaa !14
  br label %25

21:                                               ; preds = %16, %2
  %.not = icmp eq i32 %7, 0
  %22 = getelementptr inbounds i8, ptr %4, i64 80
  br i1 %.not, label %24, label %23

23:                                               ; preds = %21
  store i32 1, ptr %22, align 4, !tbaa !15
  br label %25

24:                                               ; preds = %21
  store i32 127, ptr %22, align 4, !tbaa !15
  br label %25

25:                                               ; preds = %23, %24, %19
  %26 = getelementptr inbounds i8, ptr %1, i64 24
  %27 = load i32, ptr %26, align 1, !tbaa !16
  %28 = and i32 %27, 65536
  %.not47 = icmp eq i32 %28, 0
  br i1 %.not47, label %47, label %29

29:                                               ; preds = %25
  store i32 0, ptr %8, align 4, !tbaa !10
  %30 = getelementptr inbounds i8, ptr %4, i64 60
  store i32 7, ptr %30, align 4, !tbaa !20
  store i32 3, ptr %9, align 4, !tbaa !11
  %31 = getelementptr inbounds i8, ptr %4, i64 64
  store i32 6, ptr %31, align 4, !tbaa !21
  store i32 2, ptr %10, align 4, !tbaa !12
  %32 = getelementptr inbounds i8, ptr %4, i64 52
  store i32 1, ptr %32, align 4, !tbaa !22
  %33 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %13) #3
  %34 = icmp eq i32 %33, 12
  br i1 %34, label %35, label %40

35:                                               ; preds = %29
  %36 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %13) #3
  %37 = icmp eq i32 %36, 1
  br i1 %37, label %38, label %40

38:                                               ; preds = %35
  %39 = getelementptr inbounds i8, ptr %4, i64 80
  store i32 8, ptr %39, align 4, !tbaa !15
  br label %44

40:                                               ; preds = %35, %29
  %.not52 = icmp eq i32 %7, 0
  %41 = getelementptr inbounds i8, ptr %4, i64 80
  br i1 %.not52, label %43, label %42

42:                                               ; preds = %40
  store i32 14, ptr %41, align 4, !tbaa !15
  br label %44

43:                                               ; preds = %40
  store i32 127, ptr %41, align 4, !tbaa !15
  br label %44

44:                                               ; preds = %42, %43, %38
  %storemerge53 = phi i32 [ 9, %38 ], [ 8, %43 ], [ 8, %42 ]
  %storemerge = phi i32 [ 127, %38 ], [ 9, %43 ], [ 9, %42 ]
  store i32 %storemerge53, ptr %11, align 4, !tbaa !13
  store i32 %storemerge, ptr %12, align 4, !tbaa !14
  %45 = getelementptr inbounds i8, ptr %4, i64 56
  store i32 10, ptr %45, align 4, !tbaa !23
  %46 = getelementptr inbounds i8, ptr %4, i64 8
  store i32 7, ptr %46, align 4, !tbaa !24
  br label %.sink.split

47:                                               ; preds = %25
  %48 = and i32 %27, 131072
  %.not48 = icmp eq i32 %48, 0
  br i1 %.not48, label %67, label %49

49:                                               ; preds = %47
  %50 = getelementptr inbounds i8, ptr %4, i64 8
  store i32 7, ptr %50, align 4, !tbaa !24
  %51 = getelementptr inbounds i8, ptr %4, i64 28
  store i32 8, ptr %51, align 4, !tbaa !25
  store i32 0, ptr %8, align 4, !tbaa !10
  %52 = getelementptr inbounds i8, ptr %4, i64 16
  store i32 6, ptr %52, align 4, !tbaa !26
  %53 = getelementptr inbounds i8, ptr %4, i64 36
  store i32 9, ptr %53, align 4, !tbaa !27
  %54 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %13) #3
  %55 = icmp eq i32 %54, 12
  br i1 %55, label %56, label %61

56:                                               ; preds = %49
  %57 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %13) #3
  %58 = icmp eq i32 %57, 1
  br i1 %58, label %59, label %61

59:                                               ; preds = %56
  %60 = getelementptr inbounds i8, ptr %4, i64 80
  store i32 0, ptr %60, align 4, !tbaa !15
  br label %65

61:                                               ; preds = %56, %49
  %.not51 = icmp eq i32 %7, 0
  %62 = getelementptr inbounds i8, ptr %4, i64 80
  br i1 %.not51, label %64, label %63

63:                                               ; preds = %61
  store i32 14, ptr %62, align 4, !tbaa !15
  br label %65

64:                                               ; preds = %61
  store i32 127, ptr %62, align 4, !tbaa !15
  br label %65

65:                                               ; preds = %63, %64, %59
  store i32 3, ptr %9, align 4, !tbaa !11
  store i32 2, ptr %10, align 4, !tbaa !12
  %66 = getelementptr inbounds i8, ptr %4, i64 52
  store i32 1, ptr %66, align 4, !tbaa !22
  br label %.sink.split

67:                                               ; preds = %47
  %68 = and i32 %27, 262144
  %.not49 = icmp eq i32 %68, 0
  br i1 %.not49, label %82, label %69

69:                                               ; preds = %67
  store <4 x i32> <i32 8, i32 7, i32 3, i32 6>, ptr %8, align 4, !tbaa !28
  store i32 2, ptr %10, align 4, !tbaa !12
  %70 = getelementptr inbounds i8, ptr %4, i64 52
  store i32 1, ptr %70, align 4, !tbaa !22
  %71 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %13) #3
  %72 = icmp eq i32 %71, 12
  br i1 %72, label %73, label %78

73:                                               ; preds = %69
  %74 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %13) #3
  %75 = icmp eq i32 %74, 1
  br i1 %75, label %76, label %78

76:                                               ; preds = %73
  %77 = getelementptr inbounds i8, ptr %4, i64 80
  store i32 8, ptr %77, align 4, !tbaa !15
  br label %.sink.split

78:                                               ; preds = %73, %69
  %.not50 = icmp eq i32 %7, 0
  %79 = getelementptr inbounds i8, ptr %4, i64 80
  br i1 %.not50, label %81, label %80

80:                                               ; preds = %78
  store i32 14, ptr %79, align 4, !tbaa !15
  br label %.sink.split

81:                                               ; preds = %78
  store i32 127, ptr %79, align 4, !tbaa !15
  br label %.sink.split

.sink.split:                                      ; preds = %76, %81, %80, %44, %65
  %.sink63.sroa.phi = phi ptr [ %.sink63.sroa.gep, %65 ], [ %.sink63.sroa.gep64, %44 ], [ %.sink63.sroa.gep65, %80 ], [ %.sink63.sroa.gep66, %81 ], [ %.sink63.sroa.gep67, %76 ]
  %.sink = phi i32 [ 10, %65 ], [ 6, %44 ], [ 10, %80 ], [ 10, %81 ], [ 10, %76 ]
  store i32 %.sink, ptr %.sink63.sroa.phi, align 4, !tbaa !28
  br label %82

82:                                               ; preds = %.sink.split, %67
  %83 = getelementptr inbounds i8, ptr %4, i64 120
  store i32 1, ptr %83, align 4, !tbaa !29
  %84 = getelementptr inbounds i8, ptr %4, i64 116
  store i32 3, ptr %84, align 4, !tbaa !30
  %85 = getelementptr inbounds i8, ptr %4, i64 40
  store i32 12, ptr %85, align 4, !tbaa !31
  %86 = getelementptr inbounds i8, ptr %4, i64 44
  store i32 13, ptr %86, align 4, !tbaa !32
  %87 = getelementptr inbounds i8, ptr %4, i64 88
  store i32 12, ptr %87, align 4, !tbaa !33
  %88 = getelementptr inbounds i8, ptr %4, i64 92
  store i32 13, ptr %88, align 4, !tbaa !34
  %89 = getelementptr inbounds i8, ptr %4, i64 48
  store i32 14, ptr %89, align 4, !tbaa !35
  %90 = getelementptr inbounds i8, ptr %4, i64 68
  store i32 11, ptr %90, align 4, !tbaa !36
  %91 = getelementptr inbounds i8, ptr %4, i64 72
  store i32 15, ptr %91, align 4, !tbaa !37
  %92 = getelementptr inbounds i8, ptr %4, i64 76
  store i32 14, ptr %92, align 4, !tbaa !38
  call void @libxsmm_reset_loop_label_tracker(ptr noundef nonnull %3) #3
  call void @libxsmm_x86_instruction_open_stream_alt(ptr noundef %0, i32 noundef 0, i32 noundef 0) #3
  %93 = load i32, ptr %26, align 1, !tbaa !16
  %94 = trunc i32 %93 to i8
  %trunc = and i8 %94, -64
  switch i8 %trunc, label %103 [
    i8 0, label %95
    i8 64, label %98
  ]

95:                                               ; preds = %82
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30008, i32 noundef 4, i64 noundef 64) #3
  %96 = getelementptr inbounds i8, ptr %0, i64 28
  %97 = load i32, ptr %96, align 4, !tbaa !39
  call void @libxsmm_x86_instruction_tile_control(ptr noundef %0, i32 noundef 1000, i32 noundef %97, i32 noundef 50002, i32 noundef 4, i32 noundef 0, ptr noundef null) #3
  br label %103

98:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 2101248, ptr nonnull %5) #3
  call void @libxsmm_reset_jump_label_tracker(ptr noundef nonnull %5) #3
  %99 = load i32, ptr %4, align 4, !tbaa !5
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30002, i32 noundef %99, i64 noundef 0) #3
  call void @libxsmm_x86_instruction_jump_to_label(ptr noundef %0, i32 noundef 30101, i32 noundef 0, ptr noundef nonnull %5) #3
  %100 = getelementptr inbounds i8, ptr %0, i64 28
  %101 = load i32, ptr %100, align 4, !tbaa !39
  %102 = load i32, ptr %4, align 4, !tbaa !5
  call void @libxsmm_x86_instruction_tile_control(ptr noundef %0, i32 noundef 1000, i32 noundef %101, i32 noundef 50002, i32 noundef %102, i32 noundef 0, ptr noundef null) #3
  call void @libxsmm_x86_instruction_register_jump_label(ptr noundef %0, i32 noundef 0, ptr noundef nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 2101248, ptr nonnull %5) #3
  br label %103

103:                                              ; preds = %82, %98, %95
  %104 = load i32, ptr %26, align 1, !tbaa !16
  %105 = and i32 %104, 192
  %or.cond59.not = icmp eq i32 %105, 128
  br i1 %or.cond59.not, label %106, label %112

106:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 2101248, ptr nonnull %6) #3
  call void @libxsmm_reset_jump_label_tracker(ptr noundef nonnull %6) #3
  %107 = load i32, ptr %4, align 4, !tbaa !5
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30002, i32 noundef %107, i64 noundef 0) #3
  call void @libxsmm_x86_instruction_jump_to_label(ptr noundef %0, i32 noundef 30101, i32 noundef 0, ptr noundef nonnull %6) #3
  %108 = getelementptr inbounds i8, ptr %0, i64 28
  %109 = load i32, ptr %108, align 4, !tbaa !39
  %110 = load i32, ptr %4, align 4, !tbaa !5
  call void @libxsmm_x86_instruction_tile_control(ptr noundef %0, i32 noundef 1001, i32 noundef %109, i32 noundef 50001, i32 noundef %110, i32 noundef 0, ptr noundef null) #3
  call void @libxsmm_x86_instruction_jump_to_label(ptr noundef %0, i32 noundef 30108, i32 noundef 1, ptr noundef nonnull %6) #3
  call void @libxsmm_x86_instruction_register_jump_label(ptr noundef %0, i32 noundef 0, ptr noundef nonnull %6) #3
  %111 = load i32, ptr %108, align 4, !tbaa !39
  call void @libxsmm_x86_instruction_tile_control(ptr noundef %0, i32 noundef 1002, i32 noundef %111, i32 noundef 50003, i32 noundef 127, i32 noundef 0, ptr noundef null) #3
  call void @libxsmm_x86_instruction_register_jump_label(ptr noundef %0, i32 noundef 1, ptr noundef nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 2101248, ptr nonnull %6) #3
  br label %118

112:                                              ; preds = %103
  call void @libxsmm_generator_gemm_amx_kernel(ptr noundef %0, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %1)
  %113 = load i32, ptr %26, align 1, !tbaa !16
  %114 = and i32 %113, 192
  %or.cond61 = icmp eq i32 %114, 0
  br i1 %or.cond61, label %115, label %118

115:                                              ; preds = %112
  %116 = getelementptr inbounds i8, ptr %0, i64 28
  %117 = load i32, ptr %116, align 4, !tbaa !39
  call void @libxsmm_x86_instruction_tile_control(ptr noundef %0, i32 noundef 1001, i32 noundef %117, i32 noundef 50001, i32 noundef 4, i32 noundef 0, ptr noundef null) #3
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30000, i32 noundef 4, i64 noundef 64) #3
  br label %118

118:                                              ; preds = %112, %115, %106
  call void @libxsmm_x86_instruction_close_stream_alt(ptr noundef %0, i32 noundef 0) #3
  call void @llvm.lifetime.end.p0(i64 132, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 2052, ptr nonnull %3) #3
  ret void
}

declare void @libxsmm_reset_x86_gp_reg_mapping(ptr noundef) local_unnamed_addr #0

declare void @libxsmm_reset_loop_label_tracker(ptr noundef) local_unnamed_addr #0

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

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

declare void @libxsmm_reset_jump_label_tracker(ptr noundef) local_unnamed_addr #0

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

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

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

declare void @libxsmm_x86_instruction_close_stream_alt(ptr 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !7, i64 0}
!6 = !{!"libxsmm_gp_reg_mapping_struct", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 124, !7, i64 128}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 4}
!11 = !{!6, !7, i64 12}
!12 = !{!6, !7, i64 20}
!13 = !{!6, !7, i64 24}
!14 = !{!6, !7, i64 32}
!15 = !{!6, !7, i64 80}
!16 = !{!17, !7, i64 24}
!17 = !{!"libxsmm_gemm_descriptor", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !8, i64 28, !8, i64 29, !8, i64 32, !18, i64 33, !18, i64 41, !8, i64 49, !7, i64 50, !7, i64 54, !7, i64 58, !19, i64 62, !19, i64 64, !8, i64 66, !8, i64 67, !8, i64 68, !8, i64 69, !19, i64 70, !19, i64 72, !19, i64 74, !19, i64 76, !19, i64 78, !19, i64 80, !7, i64 82, !7, i64 86, !7, i64 90, !8, i64 94}
!18 = !{!"long long", !8, i64 0}
!19 = !{!"short", !8, i64 0}
!20 = !{!6, !7, i64 60}
!21 = !{!6, !7, i64 64}
!22 = !{!6, !7, i64 52}
!23 = !{!6, !7, i64 56}
!24 = !{!6, !7, i64 8}
!25 = !{!6, !7, i64 28}
!26 = !{!6, !7, i64 16}
!27 = !{!6, !7, i64 36}
!28 = !{!7, !7, i64 0}
!29 = !{!6, !7, i64 120}
!30 = !{!6, !7, i64 116}
!31 = !{!6, !7, i64 40}
!32 = !{!6, !7, i64 44}
!33 = !{!6, !7, i64 88}
!34 = !{!6, !7, i64 92}
!35 = !{!6, !7, i64 48}
!36 = !{!6, !7, i64 68}
!37 = !{!6, !7, i64 72}
!38 = !{!6, !7, i64 76}
!39 = !{!40, !7, i64 28}
!40 = !{!"libxsmm_generated_code", !41, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28}
!41 = !{!"any pointer", !8, i64 0}


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