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

; 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_meltw_descriptor = type <{ i32, i32, i32, i32, i32, i32, i8, i8, i8, i16, i16, i8 }>
%struct.libxsmm_mateltwise_kernel_config_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, 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, 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, i8 }

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

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

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

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

declare void @libxsmm_x86_instruction_register_jump_back_label(ptr noundef, ptr noundef) #1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_transform_norm_padnm_mod2_16bit_avx512_microkernel(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, ptr noundef %9, ptr noundef %10) #2 {
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  store ptr %0, ptr %12, align 8, !tbaa !5
  store ptr %1, ptr %13, align 8, !tbaa !5
  store i32 %2, ptr %14, align 4, !tbaa !9
  store i32 %3, ptr %15, align 4, !tbaa !9
  store i32 %4, ptr %16, align 4, !tbaa !9
  store i32 %5, ptr %17, align 4, !tbaa !9
  store i32 %6, ptr %18, align 4, !tbaa !9
  store i32 %7, ptr %19, align 4, !tbaa !9
  store i32 %8, ptr %20, align 4, !tbaa !9
  store ptr %9, ptr %21, align 8, !tbaa !5
  store ptr %10, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  %30 = load ptr, ptr %22, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %30, i32 0, i32 0
  %32 = load i32, ptr %31, align 1, !tbaa !11
  %33 = urem i32 %32, 32
  store i32 %33, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  %34 = load ptr, ptr %22, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %34, i32 0, i32 10
  %36 = load i16, ptr %35, align 1, !tbaa !14
  %37 = zext i16 %36 to i32
  %38 = icmp eq i32 %37, 40
  br i1 %38, label %43, label %39

39:                                               ; preds = %11
  %40 = load i32, ptr %23, align 4, !tbaa !9
  %41 = urem i32 %40, 2
  %42 = icmp eq i32 %41, 0
  br i1 %42, label %43, label %45

43:                                               ; preds = %39, %11
  %44 = load i32, ptr %23, align 4, !tbaa !9
  br label %48

45:                                               ; preds = %39
  %46 = load i32, ptr %23, align 4, !tbaa !9
  %47 = add i32 %46, 1
  br label %48

48:                                               ; preds = %45, %43
  %49 = phi i32 [ %44, %43 ], [ %47, %45 ]
  store i32 %49, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  %50 = load ptr, ptr %22, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %50, i32 0, i32 0
  %52 = load i32, ptr %51, align 1, !tbaa !11
  %53 = udiv i32 %52, 32
  store i32 %53, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  %54 = load ptr, ptr %22, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %54, i32 0, i32 1
  %56 = load i32, ptr %55, align 1, !tbaa !15
  %57 = urem i32 %56, 16
  store i32 %57, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  %58 = load ptr, ptr %22, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %58, i32 0, i32 1
  %60 = load i32, ptr %59, align 1, !tbaa !15
  %61 = udiv i32 %60, 16
  store i32 %61, ptr %27, align 4, !tbaa !9
  %62 = load i32, ptr %23, align 4, !tbaa !9
  %63 = icmp ugt i32 %62, 0
  br i1 %63, label %64, label %91

64:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #3
  %65 = load i32, ptr %23, align 4, !tbaa !9
  %66 = zext i32 %65 to i64
  %67 = shl i64 1, %66
  %68 = sub i64 %67, 1
  store i64 %68, ptr %28, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #3
  %69 = load i32, ptr %24, align 4, !tbaa !9
  %70 = icmp eq i32 %69, 32
  br i1 %70, label %71, label %72

71:                                               ; preds = %64
  br label %77

72:                                               ; preds = %64
  %73 = load i32, ptr %24, align 4, !tbaa !9
  %74 = zext i32 %73 to i64
  %75 = shl i64 1, %74
  %76 = sub i64 %75, 1
  br label %77

77:                                               ; preds = %72, %71
  %78 = phi i64 [ 4294967295, %71 ], [ %76, %72 ]
  store i64 %78, ptr %29, align 8, !tbaa !16
  %79 = load ptr, ptr %12, align 8, !tbaa !5
  %80 = load i32, ptr %18, align 4, !tbaa !9
  %81 = load i64, ptr %28, align 8, !tbaa !16
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %79, i32 noundef -1568407413, i32 noundef %80, i64 noundef %81)
  %82 = load ptr, ptr %12, align 8, !tbaa !5
  %83 = load i32, ptr %18, align 4, !tbaa !9
  %84 = load i32, ptr %19, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_mask_move(ptr noundef %82, i32 noundef -1610149486, i32 noundef %83, i32 noundef %84)
  %85 = load ptr, ptr %12, align 8, !tbaa !5
  %86 = load i32, ptr %18, align 4, !tbaa !9
  %87 = load i64, ptr %29, align 8, !tbaa !16
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %85, i32 noundef -1568407413, i32 noundef %86, i64 noundef %87)
  %88 = load ptr, ptr %12, align 8, !tbaa !5
  %89 = load i32, ptr %18, align 4, !tbaa !9
  %90 = load i32, ptr %20, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_mask_move(ptr noundef %88, i32 noundef -1610149486, i32 noundef %89, i32 noundef %90)
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  br label %91

91:                                               ; preds = %77, %48
  %92 = load i32, ptr %27, align 4, !tbaa !9
  %93 = icmp ugt i32 %92, 0
  br i1 %93, label %94, label %247

94:                                               ; preds = %91
  %95 = load i32, ptr %27, align 4, !tbaa !9
  %96 = icmp ugt i32 %95, 1
  br i1 %96, label %97, label %107

97:                                               ; preds = %94
  %98 = load ptr, ptr %12, align 8, !tbaa !5
  %99 = load ptr, ptr %21, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %99, i32 0, i32 14
  %101 = load i32, ptr %100, align 4, !tbaa !18
  %102 = load i32, ptr %17, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %98, i32 noundef %101, i32 noundef %102, i64 noundef 0)
  %103 = load ptr, ptr %12, align 8, !tbaa !5
  %104 = load ptr, ptr %13, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_register_jump_back_label(ptr noundef %103, ptr noundef %104)
  %105 = load ptr, ptr %12, align 8, !tbaa !5
  %106 = load i32, ptr %17, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %105, i32 noundef 30000, i32 noundef %106, i64 noundef 16)
  br label %107

107:                                              ; preds = %97, %94
  %108 = load i32, ptr %25, align 4, !tbaa !9
  %109 = icmp ugt i32 %108, 0
  br i1 %109, label %110, label %139

110:                                              ; preds = %107
  %111 = load i32, ptr %25, align 4, !tbaa !9
  %112 = icmp ugt i32 %111, 1
  br i1 %112, label %113, label %123

113:                                              ; preds = %110
  %114 = load ptr, ptr %12, align 8, !tbaa !5
  %115 = load ptr, ptr %21, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %115, i32 0, i32 14
  %117 = load i32, ptr %116, align 4, !tbaa !18
  %118 = load i32, ptr %16, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %114, i32 noundef %117, i32 noundef %118, i64 noundef 0)
  %119 = load ptr, ptr %12, align 8, !tbaa !5
  %120 = load ptr, ptr %13, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_register_jump_back_label(ptr noundef %119, ptr noundef %120)
  %121 = load ptr, ptr %12, align 8, !tbaa !5
  %122 = load i32, ptr %16, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %121, i32 noundef 30000, i32 noundef %122, i64 noundef 32)
  br label %123

123:                                              ; preds = %113, %110
  %124 = load ptr, ptr %12, align 8, !tbaa !5
  %125 = load i32, ptr %14, align 4, !tbaa !9
  %126 = load i32, ptr %15, align 4, !tbaa !9
  %127 = load ptr, ptr %21, align 8, !tbaa !5
  %128 = load ptr, ptr %22, align 8, !tbaa !5
  call void @libxsmm_generator_transform_norm_padnm_mod2_16bit_avx512_mnblock_micro_kernel(ptr noundef %124, i32 noundef %125, i32 noundef %126, i32 noundef 0, i32 noundef 0, i32 noundef 32, i32 noundef 32, i32 noundef 16, ptr noundef %127, ptr noundef %128)
  %129 = load i32, ptr %25, align 4, !tbaa !9
  %130 = icmp ugt i32 %129, 1
  br i1 %130, label %131, label %138

131:                                              ; preds = %123
  %132 = load ptr, ptr %12, align 8, !tbaa !5
  %133 = load ptr, ptr %13, align 8, !tbaa !5
  %134 = load ptr, ptr %21, align 8, !tbaa !5
  %135 = load i32, ptr %16, align 4, !tbaa !9
  %136 = load i32, ptr %25, align 4, !tbaa !9
  %137 = mul i32 %136, 32
  call void @libxsmm_generator_mateltwise_footer_m_loop(ptr noundef %132, ptr noundef %133, ptr noundef %134, i32 noundef %135, i32 noundef %137)
  br label %138

138:                                              ; preds = %131, %123
  br label %139

139:                                              ; preds = %138, %107
  %140 = load i32, ptr %23, align 4, !tbaa !9
  %141 = icmp ugt i32 %140, 0
  br i1 %141, label %142, label %152

142:                                              ; preds = %139
  %143 = load ptr, ptr %12, align 8, !tbaa !5
  %144 = load i32, ptr %14, align 4, !tbaa !9
  %145 = load i32, ptr %15, align 4, !tbaa !9
  %146 = load i32, ptr %19, align 4, !tbaa !9
  %147 = load i32, ptr %20, align 4, !tbaa !9
  %148 = load i32, ptr %23, align 4, !tbaa !9
  %149 = load i32, ptr %24, align 4, !tbaa !9
  %150 = load ptr, ptr %21, align 8, !tbaa !5
  %151 = load ptr, ptr %22, align 8, !tbaa !5
  call void @libxsmm_generator_transform_norm_padnm_mod2_16bit_avx512_mnblock_micro_kernel(ptr noundef %143, i32 noundef %144, i32 noundef %145, i32 noundef %146, i32 noundef %147, i32 noundef %148, i32 noundef %149, i32 noundef 16, ptr noundef %150, ptr noundef %151)
  br label %152

152:                                              ; preds = %142, %139
  %153 = load ptr, ptr %12, align 8, !tbaa !5
  %154 = load i32, ptr %14, align 4, !tbaa !9
  %155 = load ptr, ptr %22, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %155, i32 0, i32 2
  %157 = load i32, ptr %156, align 1, !tbaa !20
  %158 = zext i32 %157 to i64
  %159 = mul nsw i64 16, %158
  %160 = load ptr, ptr %21, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %160, i32 0, i32 2
  %162 = load i32, ptr %161, align 4, !tbaa !21
  %163 = zext i32 %162 to i64
  %164 = mul nsw i64 %159, %163
  %165 = load ptr, ptr %21, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %165, i32 0, i32 2
  %167 = load i32, ptr %166, align 4, !tbaa !21
  %168 = zext i32 %167 to i64
  %169 = load ptr, ptr %22, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %169, i32 0, i32 0
  %171 = load i32, ptr %170, align 1, !tbaa !11
  %172 = zext i32 %171 to i64
  %173 = mul nsw i64 %168, %172
  %174 = sub nsw i64 %164, %173
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %153, i32 noundef 30000, i32 noundef %154, i64 noundef %174)
  %175 = load ptr, ptr %22, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %175, i32 0, i32 10
  %177 = load i16, ptr %176, align 1, !tbaa !14
  %178 = zext i16 %177 to i32
  %179 = icmp eq i32 %178, 40
  br i1 %179, label %180, label %203

180:                                              ; preds = %152
  %181 = load ptr, ptr %12, align 8, !tbaa !5
  %182 = load i32, ptr %15, align 4, !tbaa !9
  %183 = load ptr, ptr %22, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %183, i32 0, i32 3
  %185 = load i32, ptr %184, align 1, !tbaa !22
  %186 = zext i32 %185 to i64
  %187 = mul nsw i64 16, %186
  %188 = load ptr, ptr %21, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %188, i32 0, i32 5
  %190 = load i32, ptr %189, align 4, !tbaa !23
  %191 = zext i32 %190 to i64
  %192 = mul nsw i64 %187, %191
  %193 = load ptr, ptr %21, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %193, i32 0, i32 5
  %195 = load i32, ptr %194, align 4, !tbaa !23
  %196 = zext i32 %195 to i64
  %197 = load ptr, ptr %22, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %197, i32 0, i32 0
  %199 = load i32, ptr %198, align 1, !tbaa !11
  %200 = zext i32 %199 to i64
  %201 = mul nsw i64 %196, %200
  %202 = sub nsw i64 %192, %201
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %181, i32 noundef 30000, i32 noundef %182, i64 noundef %202)
  br label %236

203:                                              ; preds = %152
  %204 = load ptr, ptr %12, align 8, !tbaa !5
  %205 = load i32, ptr %15, align 4, !tbaa !9
  %206 = load ptr, ptr %22, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %206, i32 0, i32 3
  %208 = load i32, ptr %207, align 1, !tbaa !22
  %209 = zext i32 %208 to i64
  %210 = mul nsw i64 16, %209
  %211 = load ptr, ptr %21, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %211, i32 0, i32 5
  %213 = load i32, ptr %212, align 4, !tbaa !23
  %214 = zext i32 %213 to i64
  %215 = mul nsw i64 %210, %214
  %216 = load ptr, ptr %21, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %216, i32 0, i32 5
  %218 = load i32, ptr %217, align 4, !tbaa !23
  %219 = zext i32 %218 to i64
  %220 = load ptr, ptr %22, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %220, i32 0, i32 0
  %222 = load i32, ptr %221, align 1, !tbaa !11
  %223 = zext i32 %222 to i64
  %224 = mul nsw i64 %219, %223
  %225 = load ptr, ptr %21, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %225, i32 0, i32 5
  %227 = load i32, ptr %226, align 4, !tbaa !23
  %228 = load ptr, ptr %22, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %228, i32 0, i32 0
  %230 = load i32, ptr %229, align 1, !tbaa !11
  %231 = urem i32 %230, 2
  %232 = mul i32 %227, %231
  %233 = zext i32 %232 to i64
  %234 = add nsw i64 %224, %233
  %235 = sub nsw i64 %215, %234
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %204, i32 noundef 30000, i32 noundef %205, i64 noundef %235)
  br label %236

236:                                              ; preds = %203, %180
  %237 = load i32, ptr %27, align 4, !tbaa !9
  %238 = icmp ugt i32 %237, 1
  br i1 %238, label %239, label %246

239:                                              ; preds = %236
  %240 = load ptr, ptr %12, align 8, !tbaa !5
  %241 = load ptr, ptr %13, align 8, !tbaa !5
  %242 = load ptr, ptr %21, align 8, !tbaa !5
  %243 = load i32, ptr %17, align 4, !tbaa !9
  %244 = load i32, ptr %27, align 4, !tbaa !9
  %245 = mul i32 %244, 16
  call void @libxsmm_generator_mateltwise_footer_n_loop(ptr noundef %240, ptr noundef %241, ptr noundef %242, i32 noundef %243, i32 noundef %245)
  br label %246

246:                                              ; preds = %239, %236
  br label %247

247:                                              ; preds = %246, %91
  %248 = load i32, ptr %26, align 4, !tbaa !9
  %249 = icmp ugt i32 %248, 0
  br i1 %249, label %250, label %298

250:                                              ; preds = %247
  %251 = load i32, ptr %25, align 4, !tbaa !9
  %252 = icmp ugt i32 %251, 0
  br i1 %252, label %253, label %283

253:                                              ; preds = %250
  %254 = load i32, ptr %25, align 4, !tbaa !9
  %255 = icmp ugt i32 %254, 1
  br i1 %255, label %256, label %266

256:                                              ; preds = %253
  %257 = load ptr, ptr %12, align 8, !tbaa !5
  %258 = load ptr, ptr %21, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %258, i32 0, i32 14
  %260 = load i32, ptr %259, align 4, !tbaa !18
  %261 = load i32, ptr %16, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %257, i32 noundef %260, i32 noundef %261, i64 noundef 0)
  %262 = load ptr, ptr %12, align 8, !tbaa !5
  %263 = load ptr, ptr %13, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_register_jump_back_label(ptr noundef %262, ptr noundef %263)
  %264 = load ptr, ptr %12, align 8, !tbaa !5
  %265 = load i32, ptr %16, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %264, i32 noundef 30000, i32 noundef %265, i64 noundef 32)
  br label %266

266:                                              ; preds = %256, %253
  %267 = load ptr, ptr %12, align 8, !tbaa !5
  %268 = load i32, ptr %14, align 4, !tbaa !9
  %269 = load i32, ptr %15, align 4, !tbaa !9
  %270 = load i32, ptr %26, align 4, !tbaa !9
  %271 = load ptr, ptr %21, align 8, !tbaa !5
  %272 = load ptr, ptr %22, align 8, !tbaa !5
  call void @libxsmm_generator_transform_norm_padnm_mod2_16bit_avx512_mnblock_micro_kernel(ptr noundef %267, i32 noundef %268, i32 noundef %269, i32 noundef 0, i32 noundef 0, i32 noundef 32, i32 noundef 32, i32 noundef %270, ptr noundef %271, ptr noundef %272)
  %273 = load i32, ptr %25, align 4, !tbaa !9
  %274 = icmp ugt i32 %273, 1
  br i1 %274, label %275, label %282

275:                                              ; preds = %266
  %276 = load ptr, ptr %12, align 8, !tbaa !5
  %277 = load ptr, ptr %13, align 8, !tbaa !5
  %278 = load ptr, ptr %21, align 8, !tbaa !5
  %279 = load i32, ptr %16, align 4, !tbaa !9
  %280 = load i32, ptr %25, align 4, !tbaa !9
  %281 = mul i32 %280, 32
  call void @libxsmm_generator_mateltwise_footer_m_loop(ptr noundef %276, ptr noundef %277, ptr noundef %278, i32 noundef %279, i32 noundef %281)
  br label %282

282:                                              ; preds = %275, %266
  br label %283

283:                                              ; preds = %282, %250
  %284 = load i32, ptr %23, align 4, !tbaa !9
  %285 = icmp ugt i32 %284, 0
  br i1 %285, label %286, label %297

286:                                              ; preds = %283
  %287 = load ptr, ptr %12, align 8, !tbaa !5
  %288 = load i32, ptr %14, align 4, !tbaa !9
  %289 = load i32, ptr %15, align 4, !tbaa !9
  %290 = load i32, ptr %19, align 4, !tbaa !9
  %291 = load i32, ptr %20, align 4, !tbaa !9
  %292 = load i32, ptr %23, align 4, !tbaa !9
  %293 = load i32, ptr %24, align 4, !tbaa !9
  %294 = load i32, ptr %26, align 4, !tbaa !9
  %295 = load ptr, ptr %21, align 8, !tbaa !5
  %296 = load ptr, ptr %22, align 8, !tbaa !5
  call void @libxsmm_generator_transform_norm_padnm_mod2_16bit_avx512_mnblock_micro_kernel(ptr noundef %287, i32 noundef %288, i32 noundef %289, i32 noundef %290, i32 noundef %291, i32 noundef %292, i32 noundef %293, i32 noundef %294, ptr noundef %295, ptr noundef %296)
  br label %297

297:                                              ; preds = %286, %283
  br label %298

298:                                              ; preds = %297, %247
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  ret void
}

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 0}
!12 = !{!"libxsmm_meltw_descriptor", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !7, i64 24, !7, i64 25, !7, i64 26, !13, i64 27, !13, i64 29, !7, i64 31}
!13 = !{!"short", !7, i64 0}
!14 = !{!12, !13, i64 29}
!15 = !{!12, !10, i64 4}
!16 = !{!17, !17, i64 0}
!17 = !{!"long long", !7, i64 0}
!18 = !{!19, !10, i64 56}
!19 = !{!"libxsmm_mateltwise_kernel_config_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, !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, !10, i64 364, !10, i64 368, !10, i64 372, !10, i64 376, !10, i64 380, !10, i64 384, !10, i64 388, !10, i64 392, !10, i64 396, !10, i64 400, !10, i64 404, !10, i64 408, !10, i64 412, !10, i64 416, !10, i64 420, !10, i64 424, !10, i64 428, !10, i64 432, !10, i64 436, !10, i64 440, !10, i64 444, !10, i64 448, !10, i64 452, !10, i64 456, !10, i64 460, !10, i64 464, !10, i64 468, !10, i64 472, !10, i64 476, !10, i64 480, !10, i64 484, !10, i64 488, !10, i64 492, !10, i64 496, !10, i64 500, !10, i64 504, !10, i64 508, !7, i64 512}
!20 = !{!12, !10, i64 8}
!21 = !{!19, !10, i64 8}
!22 = !{!12, !10, i64 12}
!23 = !{!19, !10, i64 20}


; 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_x86_instruction_alu_imm(ptr noundef, i32 noundef, i32 noundef, i64 noundef) local_unnamed_addr #0

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

declare void @libxsmm_x86_instruction_register_jump_back_label(ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_generator_transform_norm_padnm_mod2_16bit_avx512_mnblock_micro_kernel(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_transform_norm_padnm_mod2_16bit_avx512_microkernel(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, ptr noundef %9, ptr noundef %10) local_unnamed_addr #1 {
  %12 = load i32, ptr %10, align 1, !tbaa !5
  %13 = and i32 %12, 31
  %14 = getelementptr inbounds i8, ptr %10, i64 29
  %15 = load i16, ptr %14, align 1, !tbaa !11
  %16 = icmp ne i16 %15, 40
  %17 = and i32 %12, 1
  %18 = icmp ne i32 %17, 0
  %or.cond.not = and i1 %16, %18
  %19 = zext i1 %or.cond.not to i32
  %20 = add nuw nsw i32 %13, %19
  %21 = and i32 %12, -32
  %22 = getelementptr inbounds i8, ptr %10, i64 4
  %23 = load i32, ptr %22, align 1, !tbaa !12
  %24 = and i32 %23, 15
  %25 = and i32 %23, -16
  %.not = icmp eq i32 %13, 0
  br i1 %.not, label %33, label %26

26:                                               ; preds = %11
  %27 = zext nneg i32 %13 to i64
  %notmask = shl nsw i64 -1, %27
  %28 = xor i64 %notmask, -1
  %29 = icmp eq i32 %20, 32
  %30 = zext nneg i32 %20 to i64
  %notmask126 = shl nsw i64 -1, %30
  %31 = xor i64 %notmask126, -1
  %32 = select i1 %29, i64 4294967295, i64 %31
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef -1568407413, i32 noundef %6, i64 noundef %28) #2
  tail call void @libxsmm_x86_instruction_mask_move(ptr noundef %0, i32 noundef -1610149486, i32 noundef %6, i32 noundef %7) #2
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef -1568407413, i32 noundef %6, i64 noundef %32) #2
  tail call void @libxsmm_x86_instruction_mask_move(ptr noundef %0, i32 noundef -1610149486, i32 noundef %6, i32 noundef %8) #2
  br label %33

33:                                               ; preds = %26, %11
  %.not127 = icmp ult i32 %23, 16
  br i1 %.not127, label %83, label %34

34:                                               ; preds = %33
  %35 = icmp ugt i32 %23, 31
  br i1 %35, label %36, label %39

36:                                               ; preds = %34
  %37 = getelementptr inbounds i8, ptr %9, i64 56
  %38 = load i32, ptr %37, align 4, !tbaa !13
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %38, i32 noundef %5, i64 noundef 0) #2
  tail call void @libxsmm_x86_instruction_register_jump_back_label(ptr noundef %0, ptr noundef %1) #2
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30000, i32 noundef %5, i64 noundef 16) #2
  br label %39

39:                                               ; preds = %36, %34
  %.not128 = icmp ult i32 %12, 32
  br i1 %.not128, label %45, label %40

40:                                               ; preds = %39
  %41 = icmp ugt i32 %12, 63
  br i1 %41, label %42, label %.critedge

42:                                               ; preds = %40
  %43 = getelementptr inbounds i8, ptr %9, i64 56
  %44 = load i32, ptr %43, align 4, !tbaa !13
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %44, i32 noundef %4, i64 noundef 0) #2
  tail call void @libxsmm_x86_instruction_register_jump_back_label(ptr noundef %0, ptr noundef %1) #2
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30000, i32 noundef %4, i64 noundef 32) #2
  tail call void @libxsmm_generator_transform_norm_padnm_mod2_16bit_avx512_mnblock_micro_kernel(ptr noundef %0, i32 noundef %2, i32 noundef %3, i32 noundef 0, i32 noundef 0, i32 noundef 32, i32 noundef 32, i32 noundef 16, ptr noundef %9, ptr noundef nonnull %10)
  tail call void @libxsmm_generator_mateltwise_footer_m_loop(ptr noundef %0, ptr noundef %1, ptr noundef %9, i32 noundef %4, i32 noundef %21) #2
  br label %45

.critedge:                                        ; preds = %40
  tail call void @libxsmm_generator_transform_norm_padnm_mod2_16bit_avx512_mnblock_micro_kernel(ptr noundef %0, i32 noundef %2, i32 noundef %3, i32 noundef 0, i32 noundef 0, i32 noundef 32, i32 noundef 32, i32 noundef 16, ptr noundef %9, ptr noundef nonnull %10)
  br label %45

45:                                               ; preds = %.critedge, %42, %39
  br i1 %.not, label %47, label %46

46:                                               ; preds = %45
  tail call void @libxsmm_generator_transform_norm_padnm_mod2_16bit_avx512_mnblock_micro_kernel(ptr noundef %0, i32 noundef %2, i32 noundef %3, i32 noundef %7, i32 noundef %8, i32 noundef %13, i32 noundef %20, i32 noundef 16, ptr noundef %9, ptr noundef nonnull %10)
  br label %47

47:                                               ; preds = %46, %45
  %48 = getelementptr inbounds i8, ptr %10, i64 8
  %49 = load i32, ptr %48, align 1, !tbaa !15
  %50 = zext i32 %49 to i64
  %51 = shl nuw nsw i64 %50, 4
  %52 = getelementptr inbounds i8, ptr %9, i64 8
  %53 = load i32, ptr %52, align 4, !tbaa !16
  %54 = zext i32 %53 to i64
  %55 = load i32, ptr %10, align 1, !tbaa !5
  %56 = zext i32 %55 to i64
  %57 = sub nsw i64 %51, %56
  %58 = mul i64 %57, %54
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30000, i32 noundef %2, i64 noundef %58) #2
  %59 = load i16, ptr %14, align 1, !tbaa !11
  %60 = icmp eq i16 %59, 40
  %61 = getelementptr inbounds i8, ptr %10, i64 12
  %62 = load i32, ptr %61, align 1, !tbaa !17
  %63 = zext i32 %62 to i64
  %64 = load i32, ptr %10, align 1, !tbaa !5
  %65 = zext i32 %64 to i64
  br i1 %60, label %66, label %73

66:                                               ; preds = %47
  %67 = shl nuw nsw i64 %63, 4
  %68 = getelementptr inbounds i8, ptr %9, i64 20
  %69 = load i32, ptr %68, align 4, !tbaa !18
  %70 = zext i32 %69 to i64
  %71 = sub nsw i64 %67, %65
  %72 = mul i64 %71, %70
  br label %81

73:                                               ; preds = %47
  %74 = getelementptr inbounds i8, ptr %9, i64 20
  %75 = load i32, ptr %74, align 4, !tbaa !18
  %76 = zext i32 %75 to i64
  %77 = shl nuw nsw i64 %63, 4
  %78 = trunc i32 %64 to i1
  %79 = select i1 %78, i64 %76, i64 0
  %reass.add = sub nsw i64 %77, %65
  %reass.mul = mul i64 %reass.add, %76
  %80 = sub i64 %reass.mul, %79
  br label %81

81:                                               ; preds = %73, %66
  %.sink = phi i64 [ %80, %73 ], [ %72, %66 ]
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30000, i32 noundef %3, i64 noundef %.sink) #2
  br i1 %35, label %82, label %83

82:                                               ; preds = %81
  tail call void @libxsmm_generator_mateltwise_footer_n_loop(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %9, i32 noundef %5, i32 noundef %25) #2
  br label %83

83:                                               ; preds = %81, %82, %33
  %.not129 = icmp eq i32 %24, 0
  br i1 %.not129, label %92, label %84

84:                                               ; preds = %83
  %.not130 = icmp ult i32 %12, 32
  br i1 %.not130, label %90, label %85

85:                                               ; preds = %84
  %86 = icmp ugt i32 %12, 63
  br i1 %86, label %87, label %.critedge133

87:                                               ; preds = %85
  %88 = getelementptr inbounds i8, ptr %9, i64 56
  %89 = load i32, ptr %88, align 4, !tbaa !13
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %89, i32 noundef %4, i64 noundef 0) #2
  tail call void @libxsmm_x86_instruction_register_jump_back_label(ptr noundef %0, ptr noundef %1) #2
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30000, i32 noundef %4, i64 noundef 32) #2
  tail call void @libxsmm_generator_transform_norm_padnm_mod2_16bit_avx512_mnblock_micro_kernel(ptr noundef %0, i32 noundef %2, i32 noundef %3, i32 noundef 0, i32 noundef 0, i32 noundef 32, i32 noundef 32, i32 noundef %24, ptr noundef %9, ptr noundef nonnull %10)
  tail call void @libxsmm_generator_mateltwise_footer_m_loop(ptr noundef %0, ptr noundef %1, ptr noundef %9, i32 noundef %4, i32 noundef %21) #2
  br label %90

.critedge133:                                     ; preds = %85
  tail call void @libxsmm_generator_transform_norm_padnm_mod2_16bit_avx512_mnblock_micro_kernel(ptr noundef %0, i32 noundef %2, i32 noundef %3, i32 noundef 0, i32 noundef 0, i32 noundef 32, i32 noundef 32, i32 noundef %24, ptr noundef %9, ptr noundef nonnull %10)
  br label %90

90:                                               ; preds = %.critedge133, %87, %84
  br i1 %.not, label %92, label %91

91:                                               ; preds = %90
  tail call void @libxsmm_generator_transform_norm_padnm_mod2_16bit_avx512_mnblock_micro_kernel(ptr noundef %0, i32 noundef %2, i32 noundef %3, i32 noundef %7, i32 noundef %8, i32 noundef %13, i32 noundef %20, i32 noundef %24, ptr noundef %9, ptr noundef nonnull %10)
  br label %92

92:                                               ; preds = %90, %91, %83
  ret void
}

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, !7, i64 0}
!6 = !{!"libxsmm_meltw_descriptor", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !8, i64 24, !8, i64 25, !8, i64 26, !10, i64 27, !10, i64 29, !8, i64 31}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"short", !8, i64 0}
!11 = !{!6, !10, i64 29}
!12 = !{!6, !7, i64 4}
!13 = !{!14, !7, i64 56}
!14 = !{!"libxsmm_mateltwise_kernel_config_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, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !7, i64 148, !7, i64 152, !7, i64 156, !7, i64 160, !7, i64 164, !7, i64 168, !7, i64 172, !7, i64 176, !7, i64 180, !7, i64 184, !7, i64 188, !7, i64 192, !7, i64 196, !7, i64 200, !7, i64 204, !7, i64 208, !7, i64 212, !7, i64 216, !7, i64 220, !7, i64 224, !7, i64 228, !7, i64 232, !7, i64 236, !7, i64 240, !7, i64 244, !7, i64 248, !7, i64 252, !7, i64 256, !7, i64 260, !7, i64 264, !7, i64 268, !7, i64 272, !7, i64 276, !7, i64 280, !7, i64 284, !7, i64 288, !7, i64 292, !7, i64 296, !7, i64 300, !7, i64 304, !7, i64 308, !7, i64 312, !7, i64 316, !7, i64 320, !7, i64 324, !7, i64 328, !7, i64 332, !7, i64 336, !7, i64 340, !7, i64 344, !7, i64 348, !7, i64 352, !7, i64 356, !7, i64 360, !7, i64 364, !7, i64 368, !7, i64 372, !7, i64 376, !7, i64 380, !7, i64 384, !7, i64 388, !7, i64 392, !7, i64 396, !7, i64 400, !7, i64 404, !7, i64 408, !7, i64 412, !7, i64 416, !7, i64 420, !7, i64 424, !7, i64 428, !7, i64 432, !7, i64 436, !7, i64 440, !7, i64 444, !7, i64 448, !7, i64 452, !7, i64 456, !7, i64 460, !7, i64 464, !7, i64 468, !7, i64 472, !7, i64 476, !7, i64 480, !7, i64 484, !7, i64 488, !7, i64 492, !7, i64 496, !7, i64 500, !7, i64 504, !7, i64 508, !8, i64 512}
!15 = !{!6, !7, i64 8}
!16 = !{!14, !7, i64 8}
!17 = !{!6, !7, i64 12}
!18 = !{!14, !7, i64 20}


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