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

; 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 }
%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_micro_kernel_config = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, 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, 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, i32, i32, i32, [4 x i32], [4 x i32], [4 x i32], [4 x i32], [4 x i32], [4 x i32], i32, [2 x %struct.libxsmm_blocking_info_t], %struct.libxsmm_tile_config, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i32, i32, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.libxsmm_blocking_info_t = type { i32, [4 x i32], i32, i32 }
%struct.libxsmm_tile_config = type { i8, i16, i8, i16, i8, i16, i8, i16, i8, i16, i8, i16, i8, i16, i8, i16, i8 }
%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 }

@.str.1 = external hidden unnamed_addr constant [85 x i8], align 1
@libxsmm_ninit = external global i32, align 4
@libxsmm_verbosity = external global i32, align 4
@__func__.libxsmm_generator_gemm_aarch64_setup_k_strides = external hidden unnamed_addr constant [47 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

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

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

declare i32 @libxsmm_cpuid_arm_use_bfdot() #1

declare i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gemm_aarch64_setup_k_strides(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5) #2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store i32 %4, ptr %11, align 4, !tbaa !9
  store i32 %5, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  store i32 0, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  %18 = call i32 @libxsmm_cpuid_arm_use_bfdot()
  store i32 %18, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  %19 = call i32 @libxsmm_cpuid_arm_use_i8dot()
  store i32 %19, ptr %16, align 4, !tbaa !9
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %20, i32 0, i32 6
  %22 = load i32, ptr %21, align 4, !tbaa !11
  %23 = icmp eq i32 %22, 2001
  br i1 %23, label %39, label %24

24:                                               ; preds = %6
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %25, i32 0, i32 6
  %27 = load i32, ptr %26, align 4, !tbaa !11
  %28 = icmp eq i32 %27, 2002
  br i1 %28, label %39, label %29

29:                                               ; preds = %24
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %30, i32 0, i32 6
  %32 = load i32, ptr %31, align 4, !tbaa !11
  %33 = icmp eq i32 %32, 2101
  br i1 %33, label %39, label %34

34:                                               ; preds = %29
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %35, i32 0, i32 6
  %37 = load i32, ptr %36, align 4, !tbaa !11
  %38 = icmp eq i32 %37, 2501
  br i1 %38, label %39, label %58

39:                                               ; preds = %34, %29, %24, %6
  %40 = load ptr, ptr %10, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %40, i32 0, i32 6
  %42 = load i32, ptr %41, align 1, !tbaa !13
  %43 = and i32 %42, 2
  %44 = icmp ugt i32 %43, 0
  br i1 %44, label %45, label %53

45:                                               ; preds = %39
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %46, i32 0, i32 4
  %48 = load i32, ptr %47, align 1, !tbaa !17
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %49, i32 0, i32 3
  %51 = load i32, ptr %50, align 4, !tbaa !18
  %52 = mul i32 %48, %51
  store i32 %52, ptr %13, align 4, !tbaa !9
  br label %57

53:                                               ; preds = %39
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %54, i32 0, i32 3
  %56 = load i32, ptr %55, align 4, !tbaa !18
  store i32 %56, ptr %13, align 4, !tbaa !9
  br label %57

57:                                               ; preds = %53, %45
  br label %123

58:                                               ; preds = %34
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %59, i32 0, i32 6
  %61 = load i32, ptr %60, align 4, !tbaa !11
  %62 = icmp uge i32 %61, 2201
  br i1 %62, label %68, label %63

63:                                               ; preds = %58
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %64, i32 0, i32 6
  %66 = load i32, ptr %65, align 4, !tbaa !11
  %67 = icmp ule i32 %66, 2999
  br i1 %67, label %68, label %113

68:                                               ; preds = %63, %58
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %69, i32 0, i32 6
  %71 = load i32, ptr %70, align 1, !tbaa !13
  %72 = and i32 %71, 2
  %73 = icmp ugt i32 %72, 0
  br i1 %73, label %74, label %88

74:                                               ; preds = %68
  %75 = load ptr, ptr %10, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %75, i32 0, i32 4
  %77 = load i32, ptr %76, align 1, !tbaa !17
  %78 = load ptr, ptr %9, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %78, i32 0, i32 3
  %80 = load i32, ptr %79, align 4, !tbaa !18
  %81 = mul i32 %77, %80
  %82 = load ptr, ptr %9, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %82, i32 0, i32 3
  %84 = load i32, ptr %83, align 4, !tbaa !18
  %85 = load i32, ptr %12, align 4, !tbaa !9
  %86 = mul i32 %84, %85
  %87 = sub i32 %81, %86
  store i32 %87, ptr %13, align 4, !tbaa !9
  br label %112

88:                                               ; preds = %68
  %89 = load ptr, ptr %10, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %89, i32 0, i32 4
  %91 = load i32, ptr %90, align 1, !tbaa !17
  %92 = load ptr, ptr %9, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %92, i32 0, i32 3
  %94 = load i32, ptr %93, align 4, !tbaa !18
  %95 = mul i32 %91, %94
  store i32 %95, ptr %13, align 4, !tbaa !9
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %97, i32 0, i32 24
  %99 = load i32, ptr %98, align 4, !tbaa !21
  %100 = load i32, ptr %13, align 4, !tbaa !9
  %101 = sext i32 %100 to i64
  call void @libxsmm_aarch64_instruction_alu_set_imm64(ptr noundef %96, i32 noundef %99, i64 noundef %101)
  %102 = load ptr, ptr %10, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %102, i32 0, i32 4
  %104 = load i32, ptr %103, align 1, !tbaa !17
  %105 = load i32, ptr %12, align 4, !tbaa !9
  %106 = sub i32 %104, %105
  store i32 %106, ptr %13, align 4, !tbaa !9
  %107 = load ptr, ptr %9, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %107, i32 0, i32 3
  %109 = load i32, ptr %108, align 4, !tbaa !18
  %110 = load i32, ptr %13, align 4, !tbaa !9
  %111 = mul i32 %110, %109
  store i32 %111, ptr %13, align 4, !tbaa !9
  br label %112

112:                                              ; preds = %88, %74
  br label %122

113:                                              ; preds = %63
  %114 = load ptr, ptr %7, 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 90005, ptr noundef @__func__.libxsmm_generator_gemm_aarch64_setup_k_strides, ptr noundef @.str.1, i32 noundef 2161, i32 noundef %121)
  store i32 1, ptr %17, align 4
  br label %390

122:                                              ; preds = %112
  br label %123

123:                                              ; preds = %122, %57
  %124 = load ptr, ptr %7, align 8, !tbaa !5
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %125, i32 0, i32 23
  %127 = load i32, ptr %126, align 4, !tbaa !23
  %128 = load i32, ptr %13, align 4, !tbaa !9
  %129 = sext i32 %128 to i64
  call void @libxsmm_aarch64_instruction_alu_set_imm64(ptr noundef %124, i32 noundef %127, i64 noundef %129)
  %130 = load i32, ptr %15, align 4, !tbaa !9
  %131 = icmp ne i32 %130, 0
  br i1 %131, label %132, label %205

132:                                              ; preds = %123
  %133 = load ptr, ptr %10, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %133, i32 0, i32 8
  %135 = getelementptr inbounds [3 x i8], ptr %134, i64 0, i64 0
  %136 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %135)
  %137 = icmp eq i32 2, %136
  br i1 %137, label %138, label %205

138:                                              ; preds = %132
  %139 = load ptr, ptr %10, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %139, i32 0, i32 6
  %141 = load i32, ptr %140, align 1, !tbaa !13
  %142 = and i32 %141, 2048
  %143 = icmp ugt i32 %142, 0
  br i1 %143, label %144, label %162

144:                                              ; preds = %138
  %145 = load ptr, ptr %7, align 8, !tbaa !5
  %146 = load ptr, ptr %8, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %146, i32 0, i32 22
  %148 = load i32, ptr %147, align 4, !tbaa !24
  %149 = load ptr, ptr %10, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %149, i32 0, i32 3
  %151 = load i32, ptr %150, align 1, !tbaa !25
  %152 = zext i32 %151 to i64
  %153 = load i32, ptr %11, align 4, !tbaa !9
  %154 = zext i32 %153 to i64
  %155 = sub nsw i64 %152, %154
  %156 = mul nsw i64 %155, 2
  %157 = load ptr, ptr %9, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %157, i32 0, i32 3
  %159 = load i32, ptr %158, align 4, !tbaa !18
  %160 = zext i32 %159 to i64
  %161 = mul nsw i64 %156, %160
  call void @libxsmm_aarch64_instruction_alu_set_imm64(ptr noundef %145, i32 noundef %148, i64 noundef %161)
  br label %204

162:                                              ; preds = %138
  %163 = load ptr, ptr %10, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %163, i32 0, i32 2
  %165 = load i32, ptr %164, align 1, !tbaa !26
  %166 = urem i32 %165, 2
  %167 = icmp eq i32 %166, 0
  br i1 %167, label %168, label %186

168:                                              ; preds = %162
  %169 = load ptr, ptr %7, align 8, !tbaa !5
  %170 = load ptr, ptr %8, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %170, i32 0, i32 22
  %172 = load i32, ptr %171, align 4, !tbaa !24
  %173 = load ptr, ptr %10, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %173, i32 0, i32 3
  %175 = load i32, ptr %174, align 1, !tbaa !25
  %176 = zext i32 %175 to i64
  %177 = mul nsw i64 2, %176
  %178 = load i32, ptr %11, align 4, !tbaa !9
  %179 = zext i32 %178 to i64
  %180 = sub nsw i64 %177, %179
  %181 = load ptr, ptr %9, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %181, i32 0, i32 3
  %183 = load i32, ptr %182, align 4, !tbaa !18
  %184 = zext i32 %183 to i64
  %185 = mul nsw i64 %180, %184
  call void @libxsmm_aarch64_instruction_alu_set_imm64(ptr noundef %169, i32 noundef %172, i64 noundef %185)
  br label %203

186:                                              ; preds = %162
  %187 = load ptr, ptr %7, align 8, !tbaa !5
  %188 = load ptr, ptr %8, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %188, i32 0, i32 22
  %190 = load i32, ptr %189, align 4, !tbaa !24
  %191 = load ptr, ptr %10, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %191, i32 0, i32 3
  %193 = load i32, ptr %192, align 1, !tbaa !25
  %194 = zext i32 %193 to i64
  %195 = load i32, ptr %11, align 4, !tbaa !9
  %196 = zext i32 %195 to i64
  %197 = sub nsw i64 %194, %196
  %198 = load ptr, ptr %9, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %198, i32 0, i32 3
  %200 = load i32, ptr %199, align 4, !tbaa !18
  %201 = zext i32 %200 to i64
  %202 = mul nsw i64 %197, %201
  call void @libxsmm_aarch64_instruction_alu_set_imm64(ptr noundef %187, i32 noundef %190, i64 noundef %202)
  br label %203

203:                                              ; preds = %186, %168
  br label %204

204:                                              ; preds = %203, %144
  br label %324

205:                                              ; preds = %132, %123
  %206 = load i32, ptr %16, align 4, !tbaa !9
  %207 = icmp ne i32 %206, 0
  br i1 %207, label %208, label %232

208:                                              ; preds = %205
  %209 = load ptr, ptr %10, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %209, i32 0, i32 8
  %211 = getelementptr inbounds [3 x i8], ptr %210, i64 0, i64 0
  %212 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %211)
  %213 = icmp eq i32 12, %212
  br i1 %213, label %214, label %232

214:                                              ; preds = %208
  %215 = load ptr, ptr %7, align 8, !tbaa !5
  %216 = load ptr, ptr %8, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %216, i32 0, i32 22
  %218 = load i32, ptr %217, align 4, !tbaa !24
  %219 = load ptr, ptr %10, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %219, i32 0, i32 3
  %221 = load i32, ptr %220, align 1, !tbaa !25
  %222 = zext i32 %221 to i64
  %223 = load i32, ptr %11, align 4, !tbaa !9
  %224 = zext i32 %223 to i64
  %225 = sub nsw i64 %222, %224
  %226 = mul nsw i64 %225, 4
  %227 = load ptr, ptr %9, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %227, i32 0, i32 3
  %229 = load i32, ptr %228, align 4, !tbaa !18
  %230 = zext i32 %229 to i64
  %231 = mul nsw i64 %226, %230
  call void @libxsmm_aarch64_instruction_alu_set_imm64(ptr noundef %215, i32 noundef %218, i64 noundef %231)
  br label %323

232:                                              ; preds = %208, %205
  %233 = load ptr, ptr %10, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %233, i32 0, i32 8
  %235 = getelementptr inbounds [3 x i8], ptr %234, i64 0, i64 0
  %236 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %235)
  %237 = icmp eq i32 2, %236
  br i1 %237, label %238, label %305

238:                                              ; preds = %232
  %239 = load ptr, ptr %10, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %239, i32 0, i32 2
  %241 = load i32, ptr %240, align 1, !tbaa !26
  %242 = urem i32 %241, 2
  %243 = icmp eq i32 %242, 0
  br i1 %243, label %244, label %287

244:                                              ; preds = %238
  %245 = load ptr, ptr %10, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %245, i32 0, i32 6
  %247 = load i32, ptr %246, align 1, !tbaa !13
  %248 = and i32 %247, 2048
  %249 = icmp eq i32 %248, 0
  br i1 %249, label %250, label %268

250:                                              ; preds = %244
  %251 = load ptr, ptr %7, align 8, !tbaa !5
  %252 = load ptr, ptr %8, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %252, i32 0, i32 22
  %254 = load i32, ptr %253, align 4, !tbaa !24
  %255 = load ptr, ptr %10, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %255, i32 0, i32 3
  %257 = load i32, ptr %256, align 1, !tbaa !25
  %258 = zext i32 %257 to i64
  %259 = mul nsw i64 2, %258
  %260 = load i32, ptr %11, align 4, !tbaa !9
  %261 = zext i32 %260 to i64
  %262 = sub nsw i64 %259, %261
  %263 = load ptr, ptr %9, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %263, i32 0, i32 3
  %265 = load i32, ptr %264, align 4, !tbaa !18
  %266 = zext i32 %265 to i64
  %267 = mul nsw i64 %262, %266
  call void @libxsmm_aarch64_instruction_alu_set_imm64(ptr noundef %251, i32 noundef %254, i64 noundef %267)
  br label %286

268:                                              ; preds = %244
  %269 = load ptr, ptr %7, align 8, !tbaa !5
  %270 = load ptr, ptr %8, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %270, i32 0, i32 22
  %272 = load i32, ptr %271, align 4, !tbaa !24
  %273 = load ptr, ptr %10, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %273, i32 0, i32 3
  %275 = load i32, ptr %274, align 1, !tbaa !25
  %276 = zext i32 %275 to i64
  %277 = load i32, ptr %11, align 4, !tbaa !9
  %278 = zext i32 %277 to i64
  %279 = sub nsw i64 %276, %278
  %280 = mul nsw i64 %279, 2
  %281 = load ptr, ptr %9, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %281, i32 0, i32 3
  %283 = load i32, ptr %282, align 4, !tbaa !18
  %284 = zext i32 %283 to i64
  %285 = mul nsw i64 %280, %284
  call void @libxsmm_aarch64_instruction_alu_set_imm64(ptr noundef %269, i32 noundef %272, i64 noundef %285)
  br label %286

286:                                              ; preds = %268, %250
  br label %304

287:                                              ; preds = %238
  %288 = load ptr, ptr %7, align 8, !tbaa !5
  %289 = load ptr, ptr %8, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %289, i32 0, i32 22
  %291 = load i32, ptr %290, align 4, !tbaa !24
  %292 = load ptr, ptr %10, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %292, i32 0, i32 3
  %294 = load i32, ptr %293, align 1, !tbaa !25
  %295 = zext i32 %294 to i64
  %296 = load i32, ptr %11, align 4, !tbaa !9
  %297 = zext i32 %296 to i64
  %298 = sub nsw i64 %295, %297
  %299 = load ptr, ptr %9, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %299, i32 0, i32 3
  %301 = load i32, ptr %300, align 4, !tbaa !18
  %302 = zext i32 %301 to i64
  %303 = mul nsw i64 %298, %302
  call void @libxsmm_aarch64_instruction_alu_set_imm64(ptr noundef %288, i32 noundef %291, i64 noundef %303)
  br label %304

304:                                              ; preds = %287, %286
  br label %322

305:                                              ; preds = %232
  %306 = load ptr, ptr %7, align 8, !tbaa !5
  %307 = load ptr, ptr %8, align 8, !tbaa !5
  %308 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %307, i32 0, i32 22
  %309 = load i32, ptr %308, align 4, !tbaa !24
  %310 = load ptr, ptr %10, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %310, i32 0, i32 3
  %312 = load i32, ptr %311, align 1, !tbaa !25
  %313 = zext i32 %312 to i64
  %314 = load i32, ptr %11, align 4, !tbaa !9
  %315 = zext i32 %314 to i64
  %316 = sub nsw i64 %313, %315
  %317 = load ptr, ptr %9, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %317, i32 0, i32 3
  %319 = load i32, ptr %318, align 4, !tbaa !18
  %320 = zext i32 %319 to i64
  %321 = mul nsw i64 %316, %320
  call void @libxsmm_aarch64_instruction_alu_set_imm64(ptr noundef %306, i32 noundef %309, i64 noundef %321)
  br label %322

322:                                              ; preds = %305, %304
  br label %323

323:                                              ; preds = %322, %214
  br label %324

324:                                              ; preds = %323, %204
  %325 = load ptr, ptr %7, align 8, !tbaa !5
  %326 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %325, i32 0, i32 6
  %327 = load i32, ptr %326, align 4, !tbaa !11
  %328 = icmp eq i32 %327, 2001
  br i1 %328, label %344, label %329

329:                                              ; preds = %324
  %330 = load ptr, ptr %7, align 8, !tbaa !5
  %331 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %330, i32 0, i32 6
  %332 = load i32, ptr %331, align 4, !tbaa !11
  %333 = icmp eq i32 %332, 2002
  br i1 %333, label %344, label %334

334:                                              ; preds = %329
  %335 = load ptr, ptr %7, align 8, !tbaa !5
  %336 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %335, i32 0, i32 6
  %337 = load i32, ptr %336, align 4, !tbaa !11
  %338 = icmp eq i32 %337, 2101
  br i1 %338, label %344, label %339

339:                                              ; preds = %334
  %340 = load ptr, ptr %7, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %340, i32 0, i32 6
  %342 = load i32, ptr %341, align 4, !tbaa !11
  %343 = icmp eq i32 %342, 2501
  br i1 %343, label %344, label %389

344:                                              ; preds = %339, %334, %329, %324
  %345 = load i32, ptr %12, align 4, !tbaa !9
  %346 = icmp ult i32 %345, 7
  br i1 %346, label %347, label %388

347:                                              ; preds = %344
  store i32 1, ptr %14, align 4, !tbaa !9
  br label %348

348:                                              ; preds = %384, %347
  %349 = load i32, ptr %14, align 4, !tbaa !9
  %350 = load i32, ptr %12, align 4, !tbaa !9
  %351 = icmp ult i32 %349, %350
  br i1 %351, label %352, label %387

352:                                              ; preds = %348
  %353 = load ptr, ptr %10, align 8, !tbaa !5
  %354 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %353, i32 0, i32 6
  %355 = load i32, ptr %354, align 1, !tbaa !13
  %356 = and i32 %355, 2
  %357 = icmp ugt i32 %356, 0
  br i1 %357, label %358, label %364

358:                                              ; preds = %352
  %359 = load i32, ptr %14, align 4, !tbaa !9
  %360 = load ptr, ptr %9, align 8, !tbaa !5
  %361 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %360, i32 0, i32 3
  %362 = load i32, ptr %361, align 4, !tbaa !18
  %363 = mul i32 %359, %362
  store i32 %363, ptr %13, align 4, !tbaa !9
  br label %374

364:                                              ; preds = %352
  %365 = load ptr, ptr %10, align 8, !tbaa !5
  %366 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %365, i32 0, i32 4
  %367 = load i32, ptr %366, align 1, !tbaa !17
  %368 = load i32, ptr %14, align 4, !tbaa !9
  %369 = mul i32 %367, %368
  %370 = load ptr, ptr %9, align 8, !tbaa !5
  %371 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %370, i32 0, i32 3
  %372 = load i32, ptr %371, align 4, !tbaa !18
  %373 = mul i32 %369, %372
  store i32 %373, ptr %13, align 4, !tbaa !9
  br label %374

374:                                              ; preds = %364, %358
  %375 = load ptr, ptr %7, align 8, !tbaa !5
  %376 = load ptr, ptr %8, align 8, !tbaa !5
  %377 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %376, i32 0, i32 24
  %378 = load i32, ptr %377, align 4, !tbaa !21
  %379 = load i32, ptr %14, align 4, !tbaa !9
  %380 = sub i32 %379, 1
  %381 = add i32 %378, %380
  %382 = load i32, ptr %13, align 4, !tbaa !9
  %383 = sext i32 %382 to i64
  call void @libxsmm_aarch64_instruction_alu_set_imm64(ptr noundef %375, i32 noundef %381, i64 noundef %383)
  br label %384

384:                                              ; preds = %374
  %385 = load i32, ptr %14, align 4, !tbaa !9
  %386 = add i32 %385, 1
  store i32 %386, ptr %14, align 4, !tbaa !9
  br label %348, !llvm.loop !27

387:                                              ; preds = %348
  br label %388

388:                                              ; preds = %387, %344
  br label %389

389:                                              ; preds = %388, %339
  store i32 0, ptr %17, align 4
  br label %390

390:                                              ; preds = %389, %120
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  %391 = load i32, ptr %17, align 4
  switch i32 %391, label %393 [
    i32 0, label %392
    i32 1, label %392
  ]

392:                                              ; preds = %390, %390
  ret void

393:                                              ; preds = %390
  unreachable
}

declare i32 @libxsmm_cpuid_arm_use_i8dot() #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, !10, i64 28}
!12 = !{!"libxsmm_generated_code", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!13 = !{!14, !10, i64 24}
!14 = !{!"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, !15, i64 33, !15, i64 41, !7, i64 49, !10, i64 50, !10, i64 54, !10, i64 58, !16, i64 62, !16, i64 64, !7, i64 66, !7, i64 67, !7, i64 68, !7, i64 69, !16, i64 70, !16, i64 72, !16, i64 74, !16, i64 76, !16, i64 78, !16, i64 80, !10, i64 82, !10, i64 86, !10, i64 90, !7, i64 94}
!15 = !{!"long long", !7, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = !{!14, !10, i64 16}
!18 = !{!19, !10, i64 12}
!19 = !{!"libxsmm_micro_kernel_config", !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, !7, 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, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !10, i64 172, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !10, i64 192, !10, i64 196, !10, i64 200, !10, i64 204, !10, i64 208, !10, i64 212, !10, i64 216, !10, i64 220, !10, i64 224, !10, i64 228, !10, i64 232, !10, i64 236, !10, i64 240, !10, i64 244, !10, i64 248, !10, i64 252, !10, i64 256, !10, i64 260, !10, i64 264, !10, i64 268, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !10, i64 288, !10, i64 292, !10, i64 296, !10, i64 300, !10, i64 304, !10, i64 308, !10, i64 312, !10, i64 316, !10, i64 320, !10, i64 324, !10, i64 328, !10, i64 332, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !10, i64 352, !10, i64 356, !10, i64 360, !7, i64 364, !7, i64 380, !7, i64 396, !7, i64 412, !7, i64 428, !7, i64 444, !10, i64 460, !7, i64 464, !20, i64 520, !10, i64 556, !10, i64 560, !10, i64 564, !10, i64 568, !10, i64 572, !10, i64 576, !10, i64 580, !10, i64 584, !6, i64 592, !10, i64 600, !10, i64 604, !10, i64 608, !10, i64 612, !6, i64 616, !10, i64 624, !10, i64 628, !10, i64 632, !10, i64 636, !10, i64 640, !10, i64 644, !10, i64 648, !10, i64 652, !10, i64 656, !10, i64 660, !10, i64 664, !10, i64 668, !10, i64 672, !10, i64 676, !10, i64 680}
!20 = !{!"libxsmm_tile_config", !7, i64 0, !16, i64 2, !7, i64 4, !16, i64 6, !7, i64 8, !16, i64 10, !7, i64 12, !16, i64 14, !7, i64 16, !16, i64 18, !7, i64 20, !16, i64 22, !7, i64 24, !16, i64 26, !7, i64 28, !16, i64 30, !7, i64 32}
!21 = !{!22, !10, i64 96}
!22 = !{!"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}
!23 = !{!22, !10, i64 92}
!24 = !{!22, !10, i64 88}
!25 = !{!14, !10, i64 12}
!26 = !{!14, !10, i64 8}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}


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

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

declare i32 @libxsmm_cpuid_arm_use_bfdot() local_unnamed_addr #0

declare i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gemm_aarch64_setup_k_strides(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #1 {
  %7 = tail call i32 @libxsmm_cpuid_arm_use_bfdot() #2
  %8 = tail call i32 @libxsmm_cpuid_arm_use_i8dot() #2
  %9 = getelementptr inbounds i8, ptr %0, i64 28
  %10 = load i32, ptr %9, align 4, !tbaa !5
  switch i32 %10, label %24 [
    i32 2001, label %11
    i32 2002, label %11
    i32 2101, label %11
    i32 2501, label %11
  ]

11:                                               ; preds = %6, %6, %6, %6
  %12 = getelementptr inbounds i8, ptr %3, i64 24
  %13 = load i32, ptr %12, align 1, !tbaa !11
  %14 = and i32 %13, 2
  %.not99 = icmp eq i32 %14, 0
  br i1 %.not99, label %21, label %15

15:                                               ; preds = %11
  %16 = getelementptr inbounds i8, ptr %3, i64 16
  %17 = load i32, ptr %16, align 1, !tbaa !15
  %18 = getelementptr inbounds i8, ptr %2, i64 12
  %19 = load i32, ptr %18, align 4, !tbaa !16
  %20 = mul i32 %19, %17
  br label %44

21:                                               ; preds = %11
  %22 = getelementptr inbounds i8, ptr %2, i64 12
  %23 = load i32, ptr %22, align 4, !tbaa !16
  br label %44

24:                                               ; preds = %6
  %25 = getelementptr inbounds i8, ptr %3, i64 24
  %26 = load i32, ptr %25, align 1, !tbaa !11
  %27 = and i32 %26, 2
  %.not = icmp eq i32 %27, 0
  %28 = getelementptr inbounds i8, ptr %3, i64 16
  %29 = load i32, ptr %28, align 1, !tbaa !15
  %30 = getelementptr inbounds i8, ptr %2, i64 12
  %31 = load i32, ptr %30, align 4, !tbaa !16
  br i1 %.not, label %35, label %32

32:                                               ; preds = %24
  %33 = sub i32 %29, %5
  %34 = mul i32 %33, %31
  br label %44

35:                                               ; preds = %24
  %36 = mul i32 %31, %29
  %37 = getelementptr inbounds i8, ptr %1, i64 96
  %38 = load i32, ptr %37, align 4, !tbaa !19
  %39 = sext i32 %36 to i64
  tail call void @libxsmm_aarch64_instruction_alu_set_imm64(ptr noundef nonnull %0, i32 noundef %38, i64 noundef %39) #2
  %40 = load i32, ptr %28, align 1, !tbaa !15
  %41 = sub i32 %40, %5
  %42 = load i32, ptr %30, align 4, !tbaa !16
  %43 = mul i32 %41, %42
  br label %44

44:                                               ; preds = %35, %32, %15, %21
  %.0 = phi i32 [ %20, %15 ], [ %23, %21 ], [ %34, %32 ], [ %43, %35 ]
  %45 = getelementptr inbounds i8, ptr %1, i64 92
  %46 = load i32, ptr %45, align 4, !tbaa !21
  %47 = sext i32 %.0 to i64
  tail call void @libxsmm_aarch64_instruction_alu_set_imm64(ptr noundef nonnull %0, i32 noundef %46, i64 noundef %47) #2
  %.not100 = icmp eq i32 %7, 0
  br i1 %.not100, label %94, label %48

48:                                               ; preds = %44
  %49 = getelementptr inbounds i8, ptr %3, i64 29
  %50 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %49) #2
  %51 = icmp eq i32 %50, 2
  br i1 %51, label %52, label %94

52:                                               ; preds = %48
  %53 = getelementptr inbounds i8, ptr %3, i64 24
  %54 = load i32, ptr %53, align 1, !tbaa !11
  %55 = and i32 %54, 2048
  %.not102 = icmp eq i32 %55, 0
  br i1 %.not102, label %69, label %56

56:                                               ; preds = %52
  %57 = getelementptr inbounds i8, ptr %1, i64 88
  %58 = load i32, ptr %57, align 4, !tbaa !22
  %59 = getelementptr inbounds i8, ptr %3, i64 12
  %60 = load i32, ptr %59, align 1, !tbaa !23
  %61 = zext i32 %60 to i64
  %62 = zext i32 %4 to i64
  %63 = sub nsw i64 %61, %62
  %64 = shl nsw i64 %63, 1
  %65 = getelementptr inbounds i8, ptr %2, i64 12
  %66 = load i32, ptr %65, align 4, !tbaa !16
  %67 = zext i32 %66 to i64
  %68 = mul nsw i64 %64, %67
  tail call void @libxsmm_aarch64_instruction_alu_set_imm64(ptr noundef nonnull %0, i32 noundef %58, i64 noundef %68) #2
  br label %168

69:                                               ; preds = %52
  %70 = getelementptr inbounds i8, ptr %3, i64 8
  %71 = load i32, ptr %70, align 1, !tbaa !24
  %72 = and i32 %71, 1
  %73 = icmp eq i32 %72, 0
  %74 = getelementptr inbounds i8, ptr %1, i64 88
  %75 = load i32, ptr %74, align 4, !tbaa !22
  %76 = getelementptr inbounds i8, ptr %3, i64 12
  %77 = load i32, ptr %76, align 1, !tbaa !23
  %78 = zext i32 %77 to i64
  br i1 %73, label %79, label %87

79:                                               ; preds = %69
  %80 = shl nuw nsw i64 %78, 1
  %81 = zext i32 %4 to i64
  %82 = sub nsw i64 %80, %81
  %83 = getelementptr inbounds i8, ptr %2, i64 12
  %84 = load i32, ptr %83, align 4, !tbaa !16
  %85 = zext i32 %84 to i64
  %86 = mul nsw i64 %82, %85
  tail call void @libxsmm_aarch64_instruction_alu_set_imm64(ptr noundef nonnull %0, i32 noundef %75, i64 noundef %86) #2
  br label %168

87:                                               ; preds = %69
  %88 = zext i32 %4 to i64
  %89 = sub nsw i64 %78, %88
  %90 = getelementptr inbounds i8, ptr %2, i64 12
  %91 = load i32, ptr %90, align 4, !tbaa !16
  %92 = zext i32 %91 to i64
  %93 = mul nsw i64 %89, %92
  tail call void @libxsmm_aarch64_instruction_alu_set_imm64(ptr noundef nonnull %0, i32 noundef %75, i64 noundef %93) #2
  br label %168

94:                                               ; preds = %48, %44
  %.not101 = icmp eq i32 %8, 0
  br i1 %.not101, label %112, label %95

95:                                               ; preds = %94
  %96 = getelementptr inbounds i8, ptr %3, i64 29
  %97 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %96) #2
  %98 = icmp eq i32 %97, 12
  br i1 %98, label %99, label %112

99:                                               ; preds = %95
  %100 = getelementptr inbounds i8, ptr %1, i64 88
  %101 = load i32, ptr %100, align 4, !tbaa !22
  %102 = getelementptr inbounds i8, ptr %3, i64 12
  %103 = load i32, ptr %102, align 1, !tbaa !23
  %104 = zext i32 %103 to i64
  %105 = zext i32 %4 to i64
  %106 = sub nsw i64 %104, %105
  %107 = shl nsw i64 %106, 2
  %108 = getelementptr inbounds i8, ptr %2, i64 12
  %109 = load i32, ptr %108, align 4, !tbaa !16
  %110 = zext i32 %109 to i64
  %111 = mul nsw i64 %107, %110
  tail call void @libxsmm_aarch64_instruction_alu_set_imm64(ptr noundef nonnull %0, i32 noundef %101, i64 noundef %111) #2
  br label %168

112:                                              ; preds = %95, %94
  %113 = getelementptr inbounds i8, ptr %3, i64 29
  %114 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %113) #2
  %115 = icmp eq i32 %114, 2
  br i1 %115, label %116, label %156

116:                                              ; preds = %112
  %117 = getelementptr inbounds i8, ptr %3, i64 8
  %118 = load i32, ptr %117, align 1, !tbaa !24
  %119 = and i32 %118, 1
  %120 = icmp eq i32 %119, 0
  br i1 %120, label %121, label %144

121:                                              ; preds = %116
  %122 = getelementptr inbounds i8, ptr %3, i64 24
  %123 = load i32, ptr %122, align 1, !tbaa !11
  %124 = and i32 %123, 2048
  %125 = icmp eq i32 %124, 0
  %126 = getelementptr inbounds i8, ptr %1, i64 88
  %127 = load i32, ptr %126, align 4, !tbaa !22
  %128 = getelementptr inbounds i8, ptr %3, i64 12
  %129 = load i32, ptr %128, align 1, !tbaa !23
  %130 = zext i32 %129 to i64
  %131 = getelementptr inbounds i8, ptr %2, i64 12
  %132 = load i32, ptr %131, align 4, !tbaa !16
  %133 = zext i32 %132 to i64
  br i1 %125, label %134, label %139

134:                                              ; preds = %121
  %135 = shl nuw nsw i64 %130, 1
  %136 = zext i32 %4 to i64
  %137 = sub nsw i64 %135, %136
  %138 = mul nsw i64 %137, %133
  tail call void @libxsmm_aarch64_instruction_alu_set_imm64(ptr noundef nonnull %0, i32 noundef %127, i64 noundef %138) #2
  br label %168

139:                                              ; preds = %121
  %140 = zext i32 %4 to i64
  %141 = sub nsw i64 %130, %140
  %142 = shl nsw i64 %141, 1
  %143 = mul nsw i64 %142, %133
  tail call void @libxsmm_aarch64_instruction_alu_set_imm64(ptr noundef nonnull %0, i32 noundef %127, i64 noundef %143) #2
  br label %168

144:                                              ; preds = %116
  %145 = getelementptr inbounds i8, ptr %1, i64 88
  %146 = load i32, ptr %145, align 4, !tbaa !22
  %147 = getelementptr inbounds i8, ptr %3, i64 12
  %148 = load i32, ptr %147, align 1, !tbaa !23
  %149 = zext i32 %148 to i64
  %150 = zext i32 %4 to i64
  %151 = sub nsw i64 %149, %150
  %152 = getelementptr inbounds i8, ptr %2, i64 12
  %153 = load i32, ptr %152, align 4, !tbaa !16
  %154 = zext i32 %153 to i64
  %155 = mul nsw i64 %151, %154
  tail call void @libxsmm_aarch64_instruction_alu_set_imm64(ptr noundef nonnull %0, i32 noundef %146, i64 noundef %155) #2
  br label %168

156:                                              ; preds = %112
  %157 = getelementptr inbounds i8, ptr %1, i64 88
  %158 = load i32, ptr %157, align 4, !tbaa !22
  %159 = getelementptr inbounds i8, ptr %3, i64 12
  %160 = load i32, ptr %159, align 1, !tbaa !23
  %161 = zext i32 %160 to i64
  %162 = zext i32 %4 to i64
  %163 = sub nsw i64 %161, %162
  %164 = getelementptr inbounds i8, ptr %2, i64 12
  %165 = load i32, ptr %164, align 4, !tbaa !16
  %166 = zext i32 %165 to i64
  %167 = mul nsw i64 %163, %166
  tail call void @libxsmm_aarch64_instruction_alu_set_imm64(ptr noundef nonnull %0, i32 noundef %158, i64 noundef %167) #2
  br label %168

168:                                              ; preds = %99, %144, %139, %134, %156, %56, %87, %79
  %169 = load i32, ptr %9, align 4, !tbaa !5
  switch i32 %169, label %170 [
    i32 2001, label %174
    i32 2002, label %174
    i32 2101, label %174
  ]

170:                                              ; preds = %168
  %171 = icmp eq i32 %169, 2501
  %172 = add i32 %5, -2
  %173 = icmp ult i32 %172, 5
  %or.cond105 = and i1 %173, %171
  br i1 %or.cond105, label %.lr.ph, label %.loopexit

174:                                              ; preds = %168, %168, %168
  %175 = add i32 %5, -2
  %or.cond106 = icmp ult i32 %175, 5
  br i1 %or.cond106, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %174, %170
  %176 = getelementptr inbounds i8, ptr %3, i64 24
  %177 = getelementptr inbounds i8, ptr %2, i64 12
  %178 = getelementptr inbounds i8, ptr %3, i64 16
  %179 = getelementptr inbounds i8, ptr %1, i64 96
  br label %180

180:                                              ; preds = %.lr.ph, %191
  %.096104 = phi i32 [ 1, %.lr.ph ], [ %196, %191 ]
  %181 = load i32, ptr %176, align 1, !tbaa !11
  %182 = and i32 %181, 2
  %.not103 = icmp eq i32 %182, 0
  br i1 %.not103, label %186, label %183

183:                                              ; preds = %180
  %184 = load i32, ptr %177, align 4, !tbaa !16
  %185 = mul i32 %184, %.096104
  br label %191

186:                                              ; preds = %180
  %187 = load i32, ptr %178, align 1, !tbaa !15
  %188 = mul i32 %187, %.096104
  %189 = load i32, ptr %177, align 4, !tbaa !16
  %190 = mul i32 %188, %189
  br label %191

191:                                              ; preds = %186, %183
  %.1 = phi i32 [ %185, %183 ], [ %190, %186 ]
  %192 = load i32, ptr %179, align 4, !tbaa !19
  %193 = add i32 %.096104, -1
  %194 = add i32 %193, %192
  %195 = sext i32 %.1 to i64
  tail call void @libxsmm_aarch64_instruction_alu_set_imm64(ptr noundef %0, i32 noundef %194, i64 noundef %195) #2
  %196 = add nuw i32 %.096104, 1
  %exitcond.not = icmp eq i32 %196, %5
  br i1 %exitcond.not, label %.loopexit, label %180, !llvm.loop !25

.loopexit:                                        ; preds = %191, %170, %174
  ret void
}

declare i32 @libxsmm_cpuid_arm_use_i8dot() 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 = !{!12, !10, i64 24}
!12 = !{!"libxsmm_gemm_descriptor", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !8, i64 28, !8, i64 29, !8, i64 32, !13, i64 33, !13, i64 41, !8, i64 49, !10, i64 50, !10, i64 54, !10, i64 58, !14, i64 62, !14, i64 64, !8, i64 66, !8, i64 67, !8, i64 68, !8, i64 69, !14, i64 70, !14, i64 72, !14, i64 74, !14, i64 76, !14, i64 78, !14, i64 80, !10, i64 82, !10, i64 86, !10, i64 90, !8, i64 94}
!13 = !{!"long long", !8, i64 0}
!14 = !{!"short", !8, i64 0}
!15 = !{!12, !10, i64 16}
!16 = !{!17, !10, i64 12}
!17 = !{!"libxsmm_micro_kernel_config", !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, !8, 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, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !10, i64 172, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !10, i64 192, !10, i64 196, !10, i64 200, !10, i64 204, !10, i64 208, !10, i64 212, !10, i64 216, !10, i64 220, !10, i64 224, !10, i64 228, !10, i64 232, !10, i64 236, !10, i64 240, !10, i64 244, !10, i64 248, !10, i64 252, !10, i64 256, !10, i64 260, !10, i64 264, !10, i64 268, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !10, i64 288, !10, i64 292, !10, i64 296, !10, i64 300, !10, i64 304, !10, i64 308, !10, i64 312, !10, i64 316, !10, i64 320, !10, i64 324, !10, i64 328, !10, i64 332, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !10, i64 352, !10, i64 356, !10, i64 360, !8, i64 364, !8, i64 380, !8, i64 396, !8, i64 412, !8, i64 428, !8, i64 444, !10, i64 460, !8, i64 464, !18, i64 520, !10, i64 556, !10, i64 560, !10, i64 564, !10, i64 568, !10, i64 572, !10, i64 576, !10, i64 580, !10, i64 584, !7, i64 592, !10, i64 600, !10, i64 604, !10, i64 608, !10, i64 612, !7, i64 616, !10, i64 624, !10, i64 628, !10, i64 632, !10, i64 636, !10, i64 640, !10, i64 644, !10, i64 648, !10, i64 652, !10, i64 656, !10, i64 660, !10, i64 664, !10, i64 668, !10, i64 672, !10, i64 676, !10, i64 680}
!18 = !{!"libxsmm_tile_config", !8, i64 0, !14, i64 2, !8, i64 4, !14, i64 6, !8, i64 8, !14, i64 10, !8, i64 12, !14, i64 14, !8, i64 16, !14, i64 18, !8, i64 20, !14, i64 22, !8, i64 24, !14, i64 26, !8, i64 28, !14, i64 30, !8, i64 32}
!19 = !{!20, !10, i64 96}
!20 = !{!"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}
!21 = !{!20, !10, i64 92}
!22 = !{!20, !10, i64 88}
!23 = !{!12, !10, i64 12}
!24 = !{!12, !10, i64 8}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass