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

@__const.libxsmm_generator_transform_norm_to_normt_128bit_avx512_microkernel.ld_idx = external hidden unnamed_addr constant [4 x i32], align 16
@__const.libxsmm_generator_transform_norm_to_normt_128bit_avx512_microkernel.l_in_idx = external hidden unnamed_addr constant <{ i8, i8, i8, i8, [12 x i8] }>, align 16
@__const.libxsmm_generator_transform_norm_to_normt_128bit_avx512_microkernel.l_shuf_imm = external hidden unnamed_addr constant <{ i8, i8, i8, i8, [12 x i8] }>, align 16

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_generator_transform_Xway_shuffle_network_avx512(ptr noundef, i8 noundef signext, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_generator_transform_Xway_half_load_blend_avx512(ptr noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #0

; 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) #2

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_transform_norm_to_normt_128bit_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, i32 noundef %9, i32 noundef %10, i32 noundef %11, i32 noundef %12, ptr noundef %13, ptr noundef %14) #0 {
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %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 i32, align 4
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca i64, align 8
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca [4 x i32], align 16
  %39 = alloca [2 x i32], align 4
  %40 = alloca [16 x i8], align 16
  %41 = alloca [16 x i8], align 16
  store ptr %0, ptr %16, align 8, !tbaa !5
  store ptr %1, ptr %17, align 8, !tbaa !5
  store i32 %2, ptr %18, align 4, !tbaa !9
  store i32 %3, ptr %19, align 4, !tbaa !9
  store i32 %4, ptr %20, align 4, !tbaa !9
  store i32 %5, ptr %21, align 4, !tbaa !9
  store i32 %6, ptr %22, align 4, !tbaa !9
  store i32 %7, ptr %23, align 4, !tbaa !9
  store i32 %8, ptr %24, align 4, !tbaa !9
  store i32 %9, ptr %25, align 4, !tbaa !9
  store i32 %10, ptr %26, align 4, !tbaa !9
  store i32 %11, ptr %27, align 4, !tbaa !9
  store i32 %12, ptr %28, align 4, !tbaa !9
  store ptr %13, ptr %29, align 8, !tbaa !5
  store ptr %14, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  store i64 0, ptr %31, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #5
  %42 = load ptr, ptr %30, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %42, i32 0, i32 1
  %44 = load i32, ptr %43, align 1, !tbaa !13
  %45 = urem i32 %44, 4
  store i32 %45, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #5
  %46 = load ptr, ptr %30, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %46, i32 0, i32 0
  %48 = load i32, ptr %47, align 1, !tbaa !16
  %49 = urem i32 %48, 4
  store i32 %49, ptr %33, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #5
  %50 = load ptr, ptr %30, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %50, i32 0, i32 1
  %52 = load i32, ptr %51, align 1, !tbaa !13
  %53 = load i32, ptr %32, align 4, !tbaa !9
  %54 = sub i32 %52, %53
  store i32 %54, ptr %34, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #5
  %55 = load ptr, ptr %30, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %55, i32 0, i32 0
  %57 = load i32, ptr %56, align 1, !tbaa !16
  %58 = load i32, ptr %33, align 4, !tbaa !9
  %59 = sub i32 %57, %58
  store i32 %59, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #5
  store i32 16, ptr %36, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #5
  store i32 16, ptr %37, align 4, !tbaa !9
  store i64 240, ptr %31, align 8, !tbaa !11
  %60 = load ptr, ptr %16, align 8, !tbaa !5
  %61 = load i32, ptr %22, align 4, !tbaa !9
  %62 = load i64, ptr %31, align 8, !tbaa !11
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %60, i32 noundef -1568407413, i32 noundef %61, i64 noundef %62)
  %63 = load ptr, ptr %16, align 8, !tbaa !5
  %64 = load i32, ptr %22, align 4, !tbaa !9
  %65 = load i32, ptr %23, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_mask_move(ptr noundef %63, i32 noundef -1610280558, i32 noundef %64, i32 noundef %65)
  %66 = load i32, ptr %24, align 4, !tbaa !9
  %67 = load i32, ptr %25, align 4, !tbaa !9
  %68 = load i32, ptr %26, align 4, !tbaa !9
  %69 = load i32, ptr %27, align 4, !tbaa !9
  %70 = load i32, ptr %28, align 4, !tbaa !9
  %71 = load i32, ptr %33, align 4, !tbaa !9
  %72 = icmp ne i32 %71, 0
  br i1 %72, label %76, label %73

73:                                               ; preds = %15
  %74 = load i32, ptr %32, align 4, !tbaa !9
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %76, label %85

76:                                               ; preds = %73, %15
  %77 = load ptr, ptr %16, align 8, !tbaa !5
  %78 = load ptr, ptr %17, align 8, !tbaa !5
  %79 = load i32, ptr %18, align 4, !tbaa !9
  %80 = load i32, ptr %19, align 4, !tbaa !9
  %81 = load i32, ptr %20, align 4, !tbaa !9
  %82 = load i32, ptr %21, align 4, !tbaa !9
  %83 = load ptr, ptr %29, align 8, !tbaa !5
  %84 = load ptr, ptr %30, align 8, !tbaa !5
  call void @libxsmm_generator_transform_norm_to_normt_128bit_avx_microkernel(ptr noundef %77, ptr noundef %78, i32 noundef %79, i32 noundef %80, i32 noundef %81, i32 noundef %82, ptr noundef %83, ptr noundef %84)
  br label %187

85:                                               ; preds = %73
  %86 = load i32, ptr %35, align 4, !tbaa !9
  %87 = icmp ugt i32 %86, 0
  br i1 %87, label %88, label %186

88:                                               ; preds = %85
  %89 = load ptr, ptr %16, align 8, !tbaa !5
  %90 = load ptr, ptr %29, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %90, i32 0, i32 14
  %92 = load i32, ptr %91, align 4, !tbaa !17
  %93 = load i32, ptr %20, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %89, i32 noundef %92, i32 noundef %93, i64 noundef 0)
  %94 = load ptr, ptr %16, align 8, !tbaa !5
  %95 = load ptr, ptr %17, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_register_jump_back_label(ptr noundef %94, ptr noundef %95)
  %96 = load ptr, ptr %16, align 8, !tbaa !5
  %97 = load i32, ptr %20, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %96, i32 noundef 30000, i32 noundef %97, i64 noundef 4)
  %98 = load i32, ptr %34, align 4, !tbaa !9
  %99 = icmp ugt i32 %98, 0
  br i1 %99, label %100, label %157

100:                                              ; preds = %88
  %101 = load ptr, ptr %16, align 8, !tbaa !5
  %102 = load ptr, ptr %29, 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 !17
  %105 = load i32, ptr %21, 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 %16, align 8, !tbaa !5
  %107 = load ptr, ptr %17, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_register_jump_back_label(ptr noundef %106, ptr noundef %107)
  %108 = load ptr, ptr %16, align 8, !tbaa !5
  %109 = load i32, ptr %21, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %108, i32 noundef 30000, i32 noundef %109, i64 noundef 4)
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %38, ptr align 16 @__const.libxsmm_generator_transform_norm_to_normt_128bit_avx512_microkernel.ld_idx, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #5
  call void @llvm.memset.p0.i64(ptr align 4 %39, i8 0, i64 8, i1 false)
  %110 = getelementptr inbounds [2 x i32], ptr %39, i64 0, i64 0
  store i32 0, ptr %110, align 4, !tbaa !9
  %111 = load i32, ptr %23, align 4, !tbaa !9
  %112 = getelementptr inbounds [2 x i32], ptr %39, i64 0, i64 1
  store i32 %111, ptr %112, align 4, !tbaa !9
  %113 = load ptr, ptr %16, align 8, !tbaa !5
  %114 = load ptr, ptr %29, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %114, i32 0, i32 128
  %116 = load i8, ptr %115, align 4, !tbaa !19
  %117 = load i32, ptr %18, align 4, !tbaa !9
  %118 = load ptr, ptr %30, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %118, i32 0, i32 2
  %120 = load i32, ptr %119, align 1, !tbaa !20
  %121 = mul i32 %120, 16
  %122 = getelementptr inbounds [4 x i32], ptr %38, i64 0, i64 0
  %123 = getelementptr inbounds [2 x i32], ptr %39, i64 0, i64 0
  call void @libxsmm_generator_transform_Xway_half_load_blend_avx512(ptr noundef %113, i8 noundef signext %116, i32 noundef %117, i32 noundef 0, i32 noundef %121, ptr noundef %122, i32 noundef 1, i32 noundef -528143013, i32 noundef 4, ptr noundef %123, i32 noundef 8)
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #5
  %124 = load ptr, ptr %16, align 8, !tbaa !5
  %125 = load i32, ptr %18, align 4, !tbaa !9
  %126 = load ptr, ptr %30, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %126, i32 0, i32 2
  %128 = load i32, ptr %127, align 1, !tbaa !20
  %129 = zext i32 %128 to i64
  %130 = mul nsw i64 %129, 16
  %131 = mul nsw i64 %130, 4
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %124, i32 noundef 30000, i32 noundef %125, i64 noundef %131)
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %40, ptr align 16 @__const.libxsmm_generator_transform_norm_to_normt_128bit_avx512_microkernel.l_in_idx, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %41, ptr align 16 @__const.libxsmm_generator_transform_norm_to_normt_128bit_avx512_microkernel.l_shuf_imm, i64 16, i1 false)
  %132 = load ptr, ptr %16, align 8, !tbaa !5
  %133 = load ptr, ptr %29, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %133, i32 0, i32 128
  %135 = load i8, ptr %134, align 4, !tbaa !19
  %136 = getelementptr inbounds [16 x i8], ptr %40, i64 0, i64 0
  %137 = getelementptr inbounds [16 x i8], ptr %41, i64 0, i64 0
  call void @libxsmm_generator_transform_Xway_shuffle_network_avx512(ptr noundef %132, i8 noundef signext %135, ptr noundef %136, ptr noundef %137, i32 noundef 0, i32 noundef 4, i32 noundef 2, i32 noundef -259180989, i32 noundef 4)
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #5
  %138 = load ptr, ptr %16, align 8, !tbaa !5
  %139 = load ptr, ptr %29, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %139, i32 0, i32 128
  %141 = load i8, ptr %140, align 4, !tbaa !19
  %142 = load i32, ptr %19, align 4, !tbaa !9
  %143 = load ptr, ptr %30, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %143, i32 0, i32 3
  %145 = load i32, ptr %144, align 1, !tbaa !21
  %146 = mul i32 %145, 16
  %147 = load ptr, ptr %29, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %147, i32 0, i32 9
  %149 = load i32, ptr %148, align 4, !tbaa !22
  call void @libxsmm_generator_transform_Xway_full_store_avx_avx512(ptr noundef %138, i8 noundef signext %141, i32 noundef %142, i32 noundef 4, i32 noundef %146, i32 noundef %149, i32 noundef 0, i32 noundef 0, i32 noundef 4)
  %150 = load ptr, ptr %16, align 8, !tbaa !5
  %151 = load i32, ptr %19, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %150, i32 noundef 30000, i32 noundef %151, i64 noundef 64)
  %152 = load ptr, ptr %16, align 8, !tbaa !5
  %153 = load ptr, ptr %17, align 8, !tbaa !5
  %154 = load ptr, ptr %29, align 8, !tbaa !5
  %155 = load i32, ptr %21, align 4, !tbaa !9
  %156 = load i32, ptr %34, align 4, !tbaa !9
  call void @libxsmm_generator_mateltwise_footer_n_loop(ptr noundef %152, ptr noundef %153, ptr noundef %154, i32 noundef %155, i32 noundef %156)
  br label %157

157:                                              ; preds = %100, %88
  %158 = load ptr, ptr %16, align 8, !tbaa !5
  %159 = load i32, ptr %19, align 4, !tbaa !9
  %160 = load ptr, ptr %30, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %160, i32 0, i32 3
  %162 = load i32, ptr %161, align 1, !tbaa !21
  %163 = zext i32 %162 to i64
  %164 = mul nsw i64 4, %163
  %165 = mul nsw i64 %164, 16
  %166 = load i32, ptr %34, align 4, !tbaa !9
  %167 = zext i32 %166 to i64
  %168 = mul nsw i64 16, %167
  %169 = sub nsw i64 %165, %168
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %158, i32 noundef 30000, i32 noundef %159, i64 noundef %169)
  %170 = load ptr, ptr %16, align 8, !tbaa !5
  %171 = load i32, ptr %18, align 4, !tbaa !9
  %172 = load ptr, ptr %30, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %172, i32 0, i32 2
  %174 = load i32, ptr %173, align 1, !tbaa !20
  %175 = zext i32 %174 to i64
  %176 = mul nsw i64 %175, 16
  %177 = load i32, ptr %34, align 4, !tbaa !9
  %178 = zext i32 %177 to i64
  %179 = mul nsw i64 %176, %178
  %180 = sub nsw i64 %179, 64
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %170, i32 noundef 30008, i32 noundef %171, i64 noundef %180)
  %181 = load ptr, ptr %16, align 8, !tbaa !5
  %182 = load ptr, ptr %17, align 8, !tbaa !5
  %183 = load ptr, ptr %29, align 8, !tbaa !5
  %184 = load i32, ptr %20, align 4, !tbaa !9
  %185 = load i32, ptr %35, align 4, !tbaa !9
  call void @libxsmm_generator_mateltwise_footer_m_loop(ptr noundef %181, ptr noundef %182, ptr noundef %183, i32 noundef %184, i32 noundef %185)
  br label %186

186:                                              ; preds = %157, %85
  br label %187

187:                                              ; preds = %186, %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  ret void
}

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

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

declare void @libxsmm_generator_transform_norm_to_normt_128bit_avx_microkernel(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #3

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

declare void @libxsmm_generator_transform_Xway_full_store_avx_avx512(ptr noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #3

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = !{!14, !10, i64 4}
!14 = !{!"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, !15, i64 27, !15, i64 29, !7, i64 31}
!15 = !{!"short", !7, i64 0}
!16 = !{!14, !10, i64 0}
!17 = !{!18, !10, i64 56}
!18 = !{!"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}
!19 = !{!18, !7, i64 512}
!20 = !{!14, !10, i64 8}
!21 = !{!14, !10, i64 12}
!22 = !{!18, !10, i64 36}


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

@__const.libxsmm_generator_transform_norm_to_normt_128bit_avx512_microkernel.ld_idx = external hidden unnamed_addr constant [4 x i32], align 16
@__const.libxsmm_generator_transform_norm_to_normt_128bit_avx512_microkernel.l_in_idx = external hidden unnamed_addr constant <{ i8, i8, i8, i8, [12 x i8] }>, align 16
@__const.libxsmm_generator_transform_norm_to_normt_128bit_avx512_microkernel.l_shuf_imm = external hidden unnamed_addr constant <{ i8, i8, i8, i8, [12 x i8] }>, align 16

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_generator_transform_Xway_shuffle_network_avx512(ptr noundef, i8 noundef signext, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_generator_transform_Xway_half_load_blend_avx512(ptr noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress 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) #2

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_transform_norm_to_normt_128bit_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, i32 noundef %9, i32 noundef %10, i32 noundef %11, i32 noundef %12, ptr noundef %13, ptr noundef %14) local_unnamed_addr #0 {
  %16 = alloca [4 x i32], align 16
  %17 = alloca [2 x i32], align 8
  %18 = alloca [16 x i8], align 16
  %19 = alloca [16 x i8], align 16
  %20 = getelementptr inbounds i8, ptr %14, i64 4
  %21 = load i32, ptr %20, align 1, !tbaa !5
  %22 = and i32 %21, 3
  %23 = load i32, ptr %14, align 1, !tbaa !11
  %24 = and i32 %23, 3
  %25 = and i32 %21, -4
  %26 = and i32 %23, -4
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef -1568407413, i32 noundef %6, i64 noundef 240) #4
  tail call void @libxsmm_x86_instruction_mask_move(ptr noundef %0, i32 noundef -1610280558, i32 noundef %6, i32 noundef %7) #4
  %27 = icmp ne i32 %24, 0
  %28 = icmp ne i32 %22, 0
  %or.cond = select i1 %27, i1 true, i1 %28
  br i1 %or.cond, label %29, label %30

29:                                               ; preds = %15
  tail call void @libxsmm_generator_transform_norm_to_normt_128bit_avx_microkernel(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %13, ptr noundef nonnull %14) #4
  br label %65

30:                                               ; preds = %15
  %.not = icmp eq i32 %26, 0
  br i1 %.not, label %65, label %31

31:                                               ; preds = %30
  %32 = getelementptr inbounds i8, ptr %13, i64 56
  %33 = load i32, ptr %32, align 4, !tbaa !12
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %33, i32 noundef %4, i64 noundef 0) #4
  tail call void @libxsmm_x86_instruction_register_jump_back_label(ptr noundef %0, ptr noundef %1) #4
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30000, i32 noundef %4, i64 noundef 4) #4
  %.not79 = icmp eq i32 %25, 0
  br i1 %.not79, label %52, label %34

34:                                               ; preds = %31
  %35 = load i32, ptr %32, align 4, !tbaa !12
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %35, i32 noundef %5, i64 noundef 0) #4
  tail call void @libxsmm_x86_instruction_register_jump_back_label(ptr noundef %0, ptr noundef %1) #4
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30000, i32 noundef %5, i64 noundef 4) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %16, ptr noundef nonnull align 16 dereferenceable(16) @__const.libxsmm_generator_transform_norm_to_normt_128bit_avx512_microkernel.ld_idx, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #4
  store i64 0, ptr %17, align 8
  %36 = getelementptr inbounds i8, ptr %17, i64 4
  store i32 %7, ptr %36, align 4, !tbaa !14
  %37 = getelementptr inbounds i8, ptr %13, i64 512
  %38 = load i8, ptr %37, align 4, !tbaa !15
  %39 = getelementptr inbounds i8, ptr %14, i64 8
  %40 = load i32, ptr %39, align 1, !tbaa !16
  %41 = shl i32 %40, 4
  call void @libxsmm_generator_transform_Xway_half_load_blend_avx512(ptr noundef %0, i8 noundef signext %38, i32 noundef %2, i32 noundef 0, i32 noundef %41, ptr noundef nonnull %16, i32 noundef 1, i32 noundef -528143013, i32 noundef 4, ptr noundef nonnull %17, i32 noundef 8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #4
  %42 = load i32, ptr %39, align 1, !tbaa !16
  %43 = zext i32 %42 to i64
  %44 = shl nuw nsw i64 %43, 6
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30000, i32 noundef %2, i64 noundef %44) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %18, ptr noundef nonnull align 16 dereferenceable(16) @__const.libxsmm_generator_transform_norm_to_normt_128bit_avx512_microkernel.l_in_idx, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %19, ptr noundef nonnull align 16 dereferenceable(16) @__const.libxsmm_generator_transform_norm_to_normt_128bit_avx512_microkernel.l_shuf_imm, i64 16, i1 false)
  %45 = load i8, ptr %37, align 4, !tbaa !15
  call void @libxsmm_generator_transform_Xway_shuffle_network_avx512(ptr noundef %0, i8 noundef signext %45, ptr noundef nonnull %18, ptr noundef nonnull %19, i32 noundef 0, i32 noundef 4, i32 noundef 2, i32 noundef -259180989, i32 noundef 4)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #4
  %46 = load i8, ptr %37, align 4, !tbaa !15
  %47 = getelementptr inbounds i8, ptr %14, i64 12
  %48 = load i32, ptr %47, align 1, !tbaa !17
  %49 = shl i32 %48, 4
  %50 = getelementptr inbounds i8, ptr %13, i64 36
  %51 = load i32, ptr %50, align 4, !tbaa !18
  call void @libxsmm_generator_transform_Xway_full_store_avx_avx512(ptr noundef %0, i8 noundef signext %46, i32 noundef %3, i32 noundef 4, i32 noundef %49, i32 noundef %51, i32 noundef 0, i32 noundef 0, i32 noundef 4) #4
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30000, i32 noundef %3, i64 noundef 64) #4
  call void @libxsmm_generator_mateltwise_footer_n_loop(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %13, i32 noundef %5, i32 noundef %25) #4
  br label %52

52:                                               ; preds = %34, %31
  %53 = getelementptr inbounds i8, ptr %14, i64 12
  %54 = load i32, ptr %53, align 1, !tbaa !17
  %55 = zext i32 %54 to i64
  %56 = shl nuw nsw i64 %55, 6
  %57 = zext i32 %21 to i64
  %58 = shl nuw nsw i64 %57, 4
  %59 = sub nsw i64 %56, %58
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30000, i32 noundef %3, i64 noundef %59) #4
  %60 = getelementptr inbounds i8, ptr %14, i64 8
  %61 = load i32, ptr %60, align 1, !tbaa !16
  %62 = zext i32 %61 to i64
  %63 = mul i64 %58, %62
  %64 = add nsw i64 %63, -64
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30008, i32 noundef %2, i64 noundef %64) #4
  call void @libxsmm_generator_mateltwise_footer_m_loop(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %13, i32 noundef %4, i32 noundef %26) #4
  br label %65

65:                                               ; preds = %30, %52, %29
  ret void
}

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

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

declare void @libxsmm_generator_transform_norm_to_normt_128bit_avx_microkernel(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

declare void @libxsmm_generator_transform_Xway_full_store_avx_avx512(ptr noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 #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, !7, i64 4}
!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 0}
!12 = !{!13, !7, i64 56}
!13 = !{!"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}
!14 = !{!7, !7, i64 0}
!15 = !{!13, !8, i64 512}
!16 = !{!6, !7, i64 8}
!17 = !{!6, !7, i64 12}
!18 = !{!13, !7, i64 36}


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