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

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

@.str = external hidden unnamed_addr constant [90 x i8], align 1
@libxsmm_ninit = external global i32, align 4
@libxsmm_verbosity = external global i32, align 4
@__const.libxsmm_generator_transform_vnni4_to_vnni4t_mbit_scalar_sse_microkernel.l_in_index = external hidden unnamed_addr constant [16 x i32], align 16
@__const.libxsmm_generator_transform_vnni4_to_vnni4t_mbit_scalar_sse_microkernel.l_out_index = external hidden unnamed_addr constant [16 x i32], align 16
@__func__.libxsmm_generator_transform_vnni4_to_vnni4t_mbit_scalar_sse_microkernel = external hidden unnamed_addr constant [72 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_handle_error(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_transform_vnni4_to_vnni4t_mbit_scalar_sse_microkernel(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6, ptr noundef %7) #2 {
  %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 ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca [16 x i32], align 16
  %23 = alloca [16 x i32], align 16
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store i32 %2, ptr %11, align 4, !tbaa !9
  store i32 %3, ptr %12, align 4, !tbaa !9
  store i32 %4, ptr %13, align 4, !tbaa !9
  store i32 %5, ptr %14, align 4, !tbaa !9
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 9999, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 9999, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  store i32 15, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %26 = load ptr, ptr %16, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %26, i32 0, i32 2
  %28 = load i32, ptr %27, align 1, !tbaa !11
  %29 = mul i32 %28, 4
  store i32 %29, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  %30 = load ptr, ptr %16, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %30, i32 0, i32 3
  %32 = load i32, ptr %31, align 1, !tbaa !14
  %33 = mul i32 %32, 4
  store i32 %33, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 64, ptr %22) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %22, ptr align 16 @__const.libxsmm_generator_transform_vnni4_to_vnni4t_mbit_scalar_sse_microkernel.l_in_index, i64 64, i1 false)
  call void @llvm.lifetime.start.p0(i64 64, ptr %23) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %23, ptr align 16 @__const.libxsmm_generator_transform_vnni4_to_vnni4t_mbit_scalar_sse_microkernel.l_out_index, i64 64, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  store i32 0, ptr %24, align 4, !tbaa !9
  %34 = load i32, ptr %19, align 4, !tbaa !9
  %35 = load i32, ptr %13, align 4, !tbaa !9
  %36 = icmp eq i32 %34, %35
  br i1 %36, label %49, label %37

37:                                               ; preds = %8
  %38 = load i32, ptr %19, align 4, !tbaa !9
  %39 = load i32, ptr %14, align 4, !tbaa !9
  %40 = icmp eq i32 %38, %39
  br i1 %40, label %49, label %41

41:                                               ; preds = %37
  %42 = load i32, ptr %19, align 4, !tbaa !9
  %43 = load i32, ptr %11, align 4, !tbaa !9
  %44 = icmp eq i32 %42, %43
  br i1 %44, label %49, label %45

45:                                               ; preds = %41
  %46 = load i32, ptr %19, align 4, !tbaa !9
  %47 = load i32, ptr %12, align 4, !tbaa !9
  %48 = icmp eq i32 %46, %47
  br i1 %48, label %49, label %58

49:                                               ; preds = %45, %41, %37, %8
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %52 = icmp ult i32 1, %51
  br i1 %52, label %53, label %55

53:                                               ; preds = %49
  %54 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %56

55:                                               ; preds = %49
  br label %56

56:                                               ; preds = %55, %53
  %57 = phi i32 [ %54, %53 ], [ 1, %55 ]
  call void @libxsmm_handle_error(ptr noundef %50, i32 noundef 90044, ptr noundef @__func__.libxsmm_generator_transform_vnni4_to_vnni4t_mbit_scalar_sse_microkernel, ptr noundef @.str, i32 noundef 941, i32 noundef %57)
  store i32 1, ptr %25, align 4
  br label %234

58:                                               ; preds = %45
  %59 = load ptr, ptr %15, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %59, i32 0, i32 2
  %61 = load i32, ptr %60, align 4, !tbaa !15
  %62 = icmp eq i32 %61, 8
  br i1 %62, label %63, label %64

63:                                               ; preds = %58
  store i32 -1568407413, ptr %17, align 4, !tbaa !9
  store i32 -1568407413, ptr %18, align 4, !tbaa !9
  br label %86

64:                                               ; preds = %58
  %65 = load ptr, ptr %15, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %65, i32 0, i32 2
  %67 = load i32, ptr %66, align 4, !tbaa !15
  %68 = icmp eq i32 %67, 4
  br i1 %68, label %69, label %70

69:                                               ; preds = %64
  store i32 -1610350453, ptr %17, align 4, !tbaa !9
  store i32 -1610350453, ptr %18, align 4, !tbaa !9
  br label %85

70:                                               ; preds = %64
  %71 = load ptr, ptr %15, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %71, i32 0, i32 2
  %73 = load i32, ptr %72, align 4, !tbaa !15
  %74 = icmp eq i32 %73, 2
  br i1 %74, label %75, label %76

75:                                               ; preds = %70
  store i32 -1610334069, ptr %17, align 4, !tbaa !9
  store i32 -1610334069, ptr %18, align 4, !tbaa !9
  br label %84

76:                                               ; preds = %70
  %77 = load ptr, ptr %15, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %77, i32 0, i32 2
  %79 = load i32, ptr %78, align 4, !tbaa !15
  %80 = icmp eq i32 %79, 1
  br i1 %80, label %81, label %82

81:                                               ; preds = %76
  store i32 -1610350454, ptr %17, align 4, !tbaa !9
  store i32 -1610350454, ptr %18, align 4, !tbaa !9
  br label %83

82:                                               ; preds = %76
  br label %83

83:                                               ; preds = %82, %81
  br label %84

84:                                               ; preds = %83, %75
  br label %85

85:                                               ; preds = %84, %69
  br label %86

86:                                               ; preds = %85, %63
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = load i32, ptr %19, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_push_reg(ptr noundef %87, i32 noundef %88)
  %89 = load ptr, ptr %16, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %89, i32 0, i32 0
  %91 = load i32, ptr %90, align 1, !tbaa !17
  %92 = urem i32 %91, 4
  %93 = icmp eq i32 %92, 0
  br i1 %93, label %94, label %222

94:                                               ; preds = %86
  %95 = load ptr, ptr %16, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %95, i32 0, i32 1
  %97 = load i32, ptr %96, align 1, !tbaa !18
  %98 = urem i32 %97, 4
  %99 = icmp eq i32 %98, 0
  br i1 %99, label %100, label %222

100:                                              ; preds = %94
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  %102 = load ptr, ptr %15, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %102, i32 0, i32 14
  %104 = load i32, ptr %103, align 4, !tbaa !19
  %105 = load i32, ptr %14, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %101, i32 noundef %104, i32 noundef %105, i64 noundef 0)
  %106 = load ptr, ptr %9, align 8, !tbaa !5
  %107 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_register_jump_back_label(ptr noundef %106, ptr noundef %107)
  %108 = load ptr, ptr %9, align 8, !tbaa !5
  %109 = load i32, ptr %14, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %108, i32 noundef 30000, i32 noundef %109, i64 noundef 4)
  %110 = load ptr, ptr %9, align 8, !tbaa !5
  %111 = load ptr, ptr %15, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %111, i32 0, i32 14
  %113 = load i32, ptr %112, align 4, !tbaa !19
  %114 = load i32, ptr %13, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %110, i32 noundef %113, i32 noundef %114, i64 noundef 0)
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  %116 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_register_jump_back_label(ptr noundef %115, ptr noundef %116)
  %117 = load ptr, ptr %9, align 8, !tbaa !5
  %118 = load i32, ptr %13, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %117, i32 noundef 30000, i32 noundef %118, i64 noundef 4)
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %119

119:                                              ; preds = %147, %100
  %120 = load i32, ptr %24, align 4, !tbaa !9
  %121 = icmp ult i32 %120, 16
  br i1 %121, label %122, label %150

122:                                              ; preds = %119
  %123 = load ptr, ptr %9, align 8, !tbaa !5
  %124 = load i32, ptr %17, align 4, !tbaa !9
  %125 = load i32, ptr %11, align 4, !tbaa !9
  %126 = load ptr, ptr %15, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %126, i32 0, i32 2
  %128 = load i32, ptr %127, align 4, !tbaa !15
  %129 = load i32, ptr %24, align 4, !tbaa !9
  %130 = zext i32 %129 to i64
  %131 = getelementptr inbounds [16 x i32], ptr %22, i64 0, i64 %130
  %132 = load i32, ptr %131, align 4, !tbaa !9
  %133 = mul i32 %128, %132
  %134 = load i32, ptr %19, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_mem(ptr noundef %123, i32 noundef %124, i32 noundef %125, i32 noundef 127, i32 noundef 0, i32 noundef %133, i32 noundef %134, i32 noundef 0)
  %135 = load ptr, ptr %9, align 8, !tbaa !5
  %136 = load i32, ptr %18, align 4, !tbaa !9
  %137 = load i32, ptr %12, align 4, !tbaa !9
  %138 = load ptr, ptr %15, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %138, i32 0, i32 5
  %140 = load i32, ptr %139, align 4, !tbaa !20
  %141 = load i32, ptr %24, align 4, !tbaa !9
  %142 = zext i32 %141 to i64
  %143 = getelementptr inbounds [16 x i32], ptr %23, i64 0, i64 %142
  %144 = load i32, ptr %143, align 4, !tbaa !9
  %145 = mul i32 %140, %144
  %146 = load i32, ptr %19, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_mem(ptr noundef %135, i32 noundef %136, i32 noundef %137, i32 noundef 127, i32 noundef 0, i32 noundef %145, i32 noundef %146, i32 noundef 1)
  br label %147

147:                                              ; preds = %122
  %148 = load i32, ptr %24, align 4, !tbaa !9
  %149 = add i32 %148, 1
  store i32 %149, ptr %24, align 4, !tbaa !9
  br label %119, !llvm.loop !21

150:                                              ; preds = %119
  %151 = load ptr, ptr %9, align 8, !tbaa !5
  %152 = load i32, ptr %11, align 4, !tbaa !9
  %153 = load ptr, ptr %15, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %153, i32 0, i32 2
  %155 = load i32, ptr %154, align 4, !tbaa !15
  %156 = zext i32 %155 to i64
  %157 = mul nsw i64 %156, 16
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %151, i32 noundef 30000, i32 noundef %152, i64 noundef %157)
  %158 = load ptr, ptr %9, align 8, !tbaa !5
  %159 = load i32, ptr %12, align 4, !tbaa !9
  %160 = load ptr, ptr %15, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %160, i32 0, i32 5
  %162 = load i32, ptr %161, align 4, !tbaa !20
  %163 = zext i32 %162 to i64
  %164 = load i32, ptr %21, align 4, !tbaa !9
  %165 = zext i32 %164 to i64
  %166 = mul nsw i64 %163, %165
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %158, i32 noundef 30000, i32 noundef %159, i64 noundef %166)
  %167 = load ptr, ptr %9, align 8, !tbaa !5
  %168 = load ptr, ptr %10, align 8, !tbaa !5
  %169 = load ptr, ptr %15, align 8, !tbaa !5
  %170 = load i32, ptr %13, align 4, !tbaa !9
  %171 = load ptr, ptr %16, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %171, i32 0, i32 0
  %173 = load i32, ptr %172, align 1, !tbaa !17
  call void @libxsmm_generator_mateltwise_footer_m_loop(ptr noundef %167, ptr noundef %168, ptr noundef %169, i32 noundef %170, i32 noundef %173)
  %174 = load ptr, ptr %9, align 8, !tbaa !5
  %175 = load i32, ptr %11, align 4, !tbaa !9
  %176 = load i32, ptr %20, align 4, !tbaa !9
  %177 = zext i32 %176 to i64
  %178 = load ptr, ptr %15, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %178, i32 0, i32 2
  %180 = load i32, ptr %179, align 4, !tbaa !15
  %181 = zext i32 %180 to i64
  %182 = mul nsw i64 %177, %181
  %183 = load ptr, ptr %15, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %183, i32 0, i32 2
  %185 = load i32, ptr %184, align 4, !tbaa !15
  %186 = zext i32 %185 to i64
  %187 = load ptr, ptr %16, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %187, i32 0, i32 0
  %189 = load i32, ptr %188, align 1, !tbaa !17
  %190 = zext i32 %189 to i64
  %191 = mul nsw i64 %186, %190
  %192 = mul nsw i64 %191, 4
  %193 = sub nsw i64 %182, %192
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %174, i32 noundef 30000, i32 noundef %175, i64 noundef %193)
  %194 = load ptr, ptr %9, align 8, !tbaa !5
  %195 = load i32, ptr %12, align 4, !tbaa !9
  %196 = load ptr, ptr %15, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %196, i32 0, i32 5
  %198 = load i32, ptr %197, align 4, !tbaa !20
  %199 = zext i32 %198 to i64
  %200 = load i32, ptr %21, align 4, !tbaa !9
  %201 = zext i32 %200 to i64
  %202 = mul nsw i64 %199, %201
  %203 = load ptr, ptr %16, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %203, i32 0, i32 0
  %205 = load i32, ptr %204, align 1, !tbaa !17
  %206 = zext i32 %205 to i64
  %207 = mul nsw i64 %202, %206
  %208 = sdiv i64 %207, 4
  %209 = load ptr, ptr %15, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %209, i32 0, i32 5
  %211 = load i32, ptr %210, align 4, !tbaa !20
  %212 = zext i32 %211 to i64
  %213 = mul nsw i64 %212, 16
  %214 = sub nsw i64 %208, %213
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %194, i32 noundef 30008, i32 noundef %195, i64 noundef %214)
  %215 = load ptr, ptr %9, align 8, !tbaa !5
  %216 = load ptr, ptr %10, align 8, !tbaa !5
  %217 = load ptr, ptr %15, align 8, !tbaa !5
  %218 = load i32, ptr %14, align 4, !tbaa !9
  %219 = load ptr, ptr %16, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %219, i32 0, i32 1
  %221 = load i32, ptr %220, align 1, !tbaa !18
  call void @libxsmm_generator_mateltwise_footer_n_loop(ptr noundef %215, ptr noundef %216, ptr noundef %217, i32 noundef %218, i32 noundef %221)
  br label %231

222:                                              ; preds = %94, %86
  %223 = load ptr, ptr %9, align 8, !tbaa !5
  %224 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %225 = icmp ult i32 1, %224
  br i1 %225, label %226, label %228

226:                                              ; preds = %222
  %227 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %229

228:                                              ; preds = %222
  br label %229

229:                                              ; preds = %228, %226
  %230 = phi i32 [ %227, %226 ], [ 1, %228 ]
  call void @libxsmm_handle_error(ptr noundef %223, i32 noundef 90000, ptr noundef @__func__.libxsmm_generator_transform_vnni4_to_vnni4t_mbit_scalar_sse_microkernel, ptr noundef @.str, i32 noundef 1011, i32 noundef %230)
  store i32 1, ptr %25, align 4
  br label %234

231:                                              ; preds = %150
  %232 = load ptr, ptr %9, align 8, !tbaa !5
  %233 = load i32, ptr %19, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_pop_reg(ptr noundef %232, i32 noundef %233)
  store i32 0, ptr %25, align 4
  br label %234

234:                                              ; preds = %231, %229, %56
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  %235 = load i32, ptr %25, align 4
  switch i32 %235, label %237 [
    i32 0, label %236
    i32 1, label %236
  ]

236:                                              ; preds = %234, %234
  ret void

237:                                              ; preds = %234
  unreachable
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 8}
!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, !10, i64 12}
!15 = !{!16, !10, i64 8}
!16 = !{!"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}
!17 = !{!12, !10, i64 0}
!18 = !{!12, !10, i64 4}
!19 = !{!16, !10, i64 56}
!20 = !{!16, !10, i64 20}
!21 = distinct !{!21, !22}
!22 = !{!"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"

@.str = external hidden unnamed_addr constant [90 x i8], align 1
@libxsmm_ninit = external local_unnamed_addr global i32, align 4
@libxsmm_verbosity = external local_unnamed_addr global i32, align 4
@__const.libxsmm_generator_transform_vnni4_to_vnni4t_mbit_scalar_sse_microkernel.l_in_index = external hidden unnamed_addr constant [16 x i32], align 16
@__const.libxsmm_generator_transform_vnni4_to_vnni4t_mbit_scalar_sse_microkernel.l_out_index = external hidden unnamed_addr constant [16 x i32], align 16
@__func__.libxsmm_generator_transform_vnni4_to_vnni4t_mbit_scalar_sse_microkernel = external hidden unnamed_addr constant [72 x i8], align 1
@switch.table.libxsmm_generator_transform_vnni4_to_vnni4t_mbit_scalar_sse_microkernel = private unnamed_addr constant [8 x i32] [i32 -1610350454, i32 -1610334069, i32 9999, i32 -1610350453, i32 9999, i32 9999, i32 9999, i32 -1568407413], align 4

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_transform_vnni4_to_vnni4t_mbit_scalar_sse_microkernel(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6, ptr nocapture noundef readonly %7) local_unnamed_addr #1 {
  %9 = getelementptr inbounds i8, ptr %7, i64 8
  %10 = load i32, ptr %9, align 1, !tbaa !5
  %11 = shl i32 %10, 2
  %12 = getelementptr inbounds i8, ptr %7, i64 12
  %13 = load i32, ptr %12, align 1, !tbaa !11
  %14 = shl i32 %13, 2
  %15 = icmp eq i32 %4, 15
  %16 = icmp eq i32 %5, 15
  %or.cond = or i1 %15, %16
  %17 = icmp eq i32 %2, 15
  %or.cond85 = or i1 %17, %or.cond
  %18 = icmp eq i32 %3, 15
  %or.cond86 = or i1 %18, %or.cond85
  br i1 %or.cond86, label %19, label %24

19:                                               ; preds = %8
  %20 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %21 = icmp ugt i32 %20, 1
  %22 = load i32, ptr @libxsmm_verbosity, align 4
  %23 = select i1 %21, i32 %22, i32 1
  tail call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90044, ptr noundef nonnull @__func__.libxsmm_generator_transform_vnni4_to_vnni4t_mbit_scalar_sse_microkernel, ptr noundef nonnull @.str, i32 noundef 941, i32 noundef %23) #2
  br label %84

24:                                               ; preds = %8
  %25 = getelementptr inbounds i8, ptr %6, i64 8
  %26 = load i32, ptr %25, align 4, !tbaa !13
  %switch.tableidx = add i32 %26, -1
  %27 = icmp ult i32 %switch.tableidx, 8
  br i1 %27, label %switch.lookup, label %.fold.split

switch.lookup:                                    ; preds = %24
  %28 = zext nneg i32 %switch.tableidx to i64
  %switch.gep = getelementptr inbounds [8 x i32], ptr @switch.table.libxsmm_generator_transform_vnni4_to_vnni4t_mbit_scalar_sse_microkernel, i64 0, i64 %28
  %switch.load = load i32, ptr %switch.gep, align 4
  br label %.fold.split

.fold.split:                                      ; preds = %24, %switch.lookup
  %.078 = phi i32 [ %switch.load, %switch.lookup ], [ 9999, %24 ]
  tail call void @libxsmm_x86_instruction_push_reg(ptr noundef %0, i32 noundef 15) #2
  %29 = load i32, ptr %7, align 1, !tbaa !15
  %30 = and i32 %29, 3
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %32, label %79

32:                                               ; preds = %.fold.split
  %33 = getelementptr inbounds i8, ptr %7, i64 4
  %34 = load i32, ptr %33, align 1, !tbaa !16
  %35 = and i32 %34, 3
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %79

37:                                               ; preds = %32
  %38 = getelementptr inbounds i8, ptr %6, i64 56
  %39 = load i32, ptr %38, align 4, !tbaa !17
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %39, 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 4) #2
  %40 = load i32, ptr %38, align 4, !tbaa !17
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %40, 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 4) #2
  %41 = getelementptr inbounds i8, ptr %6, i64 20
  br label %42

42:                                               ; preds = %37, %42
  %indvars.iv = phi i64 [ 0, %37 ], [ %indvars.iv.next, %42 ]
  %43 = load i32, ptr %25, align 4, !tbaa !13
  %44 = getelementptr inbounds [16 x i32], ptr @__const.libxsmm_generator_transform_vnni4_to_vnni4t_mbit_scalar_sse_microkernel.l_in_index, i64 0, i64 %indvars.iv
  %45 = load i32, ptr %44, align 4, !tbaa !12
  %46 = mul i32 %45, %43
  tail call void @libxsmm_x86_instruction_alu_mem(ptr noundef %0, i32 noundef %.078, i32 noundef %2, i32 noundef 127, i32 noundef 0, i32 noundef %46, i32 noundef 15, i32 noundef 0) #2
  %47 = load i32, ptr %41, align 4, !tbaa !18
  %48 = getelementptr inbounds [16 x i32], ptr @__const.libxsmm_generator_transform_vnni4_to_vnni4t_mbit_scalar_sse_microkernel.l_out_index, i64 0, i64 %indvars.iv
  %49 = load i32, ptr %48, align 4, !tbaa !12
  %50 = mul i32 %49, %47
  tail call void @libxsmm_x86_instruction_alu_mem(ptr noundef %0, i32 noundef %.078, i32 noundef %3, i32 noundef 127, i32 noundef 0, i32 noundef %50, i32 noundef 15, i32 noundef 1) #2
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 16
  br i1 %exitcond.not, label %51, label %42, !llvm.loop !19

51:                                               ; preds = %42
  %52 = load i32, ptr %25, align 4, !tbaa !13
  %53 = zext i32 %52 to i64
  %54 = shl nuw nsw i64 %53, 4
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30000, i32 noundef %2, i64 noundef %54) #2
  %55 = load i32, ptr %41, align 4, !tbaa !18
  %56 = zext i32 %55 to i64
  %57 = zext i32 %14 to i64
  %58 = mul nuw nsw i64 %56, %57
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30000, i32 noundef %3, i64 noundef %58) #2
  %59 = load i32, ptr %7, align 1, !tbaa !15
  tail call void @libxsmm_generator_mateltwise_footer_m_loop(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %6, i32 noundef %4, i32 noundef %59) #2
  %60 = zext i32 %11 to i64
  %61 = load i32, ptr %25, align 4, !tbaa !13
  %62 = zext i32 %61 to i64
  %63 = mul nuw nsw i64 %62, %60
  %64 = load i32, ptr %7, align 1, !tbaa !15
  %65 = zext i32 %64 to i64
  %66 = shl nuw nsw i64 %62, 2
  %67 = mul i64 %66, %65
  %68 = sub nsw i64 %63, %67
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30000, i32 noundef %2, i64 noundef %68) #2
  %69 = load i32, ptr %41, align 4, !tbaa !18
  %70 = zext i32 %69 to i64
  %71 = mul nuw nsw i64 %70, %57
  %72 = load i32, ptr %7, align 1, !tbaa !15
  %73 = zext i32 %72 to i64
  %74 = mul nuw nsw i64 %71, %73
  %75 = lshr exact i64 %74, 2
  %76 = shl nuw nsw i64 %70, 4
  %77 = sub nsw i64 %75, %76
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30008, i32 noundef %3, i64 noundef %77) #2
  %78 = load i32, ptr %33, align 1, !tbaa !16
  tail call void @libxsmm_generator_mateltwise_footer_n_loop(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %6, i32 noundef %5, i32 noundef %78) #2
  tail call void @libxsmm_x86_instruction_pop_reg(ptr noundef %0, i32 noundef 15) #2
  br label %84

79:                                               ; preds = %32, %.fold.split
  %80 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %81 = icmp ugt i32 %80, 1
  %82 = load i32, ptr @libxsmm_verbosity, align 4
  %83 = select i1 %81, i32 %82, i32 1
  tail call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_generator_transform_vnni4_to_vnni4t_mbit_scalar_sse_microkernel, ptr noundef nonnull @.str, i32 noundef 1011, i32 noundef %83) #2
  br label %84

84:                                               ; preds = %51, %79, %19
  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 8}
!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, !7, i64 12}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !7, i64 8}
!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 0}
!16 = !{!6, !7, i64 4}
!17 = !{!14, !7, i64 56}
!18 = !{!14, !7, i64 20}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}


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