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

; 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: nounwind uwtable
declare dso_local void @libxsmm_generator_transform_norm_to_normt_mbit_scalar_avx_microkernel(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #0

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_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_to_normt_64bit_4x8_shufflenetwork_avx(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_transform_norm_to_normt_64bit_avx_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) #0 {
  %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
  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
  %17 = load ptr, ptr %16, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %17, i32 0, i32 0
  %19 = load i32, ptr %18, align 1, !tbaa !11
  %20 = icmp ult i32 %19, 2
  br i1 %20, label %21, label %35

21:                                               ; preds = %8
  %22 = load ptr, ptr %16, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %22, i32 0, i32 1
  %24 = load i32, ptr %23, align 1, !tbaa !14
  %25 = icmp ult i32 %24, 4
  br i1 %25, label %26, label %35

26:                                               ; preds = %21
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  %29 = load i32, ptr %11, align 4, !tbaa !9
  %30 = load i32, ptr %12, align 4, !tbaa !9
  %31 = load i32, ptr %13, align 4, !tbaa !9
  %32 = load i32, ptr %14, align 4, !tbaa !9
  %33 = load ptr, ptr %15, align 8, !tbaa !5
  %34 = load ptr, ptr %16, align 8, !tbaa !5
  call void @libxsmm_generator_transform_norm_to_normt_mbit_scalar_avx_microkernel(ptr noundef %27, ptr noundef %28, i32 noundef %29, i32 noundef %30, i32 noundef %31, i32 noundef %32, ptr noundef %33, ptr noundef %34)
  br label %209

35:                                               ; preds = %21, %8
  %36 = load ptr, ptr %16, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %36, i32 0, i32 0
  %38 = load i32, ptr %37, align 1, !tbaa !11
  %39 = icmp uge i32 %38, 4
  br i1 %39, label %40, label %148

40:                                               ; preds = %35
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = load ptr, ptr %15, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %42, i32 0, i32 14
  %44 = load i32, ptr %43, align 4, !tbaa !15
  %45 = load i32, ptr %13, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %41, i32 noundef %44, i32 noundef %45, i64 noundef 0)
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_register_jump_back_label(ptr noundef %46, ptr noundef %47)
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = load i32, ptr %13, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %48, i32 noundef 30000, i32 noundef %49, i64 noundef 4)
  %50 = load ptr, ptr %16, 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 !14
  %53 = icmp uge i32 %52, 8
  br i1 %53, label %54, label %78

54:                                               ; preds = %40
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = load ptr, ptr %15, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %56, i32 0, i32 14
  %58 = load i32, ptr %57, align 4, !tbaa !15
  %59 = load i32, ptr %14, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %55, i32 noundef %58, i32 noundef %59, i64 noundef 0)
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_register_jump_back_label(ptr noundef %60, ptr noundef %61)
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  %63 = load i32, ptr %14, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %62, i32 noundef 30000, i32 noundef %63, i64 noundef 8)
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  %65 = load i32, ptr %11, align 4, !tbaa !9
  %66 = load i32, ptr %12, align 4, !tbaa !9
  %67 = load ptr, ptr %15, align 8, !tbaa !5
  %68 = load ptr, ptr %16, align 8, !tbaa !5
  call void @libxsmm_generator_transform_norm_to_normt_64bit_4x8_shufflenetwork_avx(ptr noundef %64, i32 noundef %65, i32 noundef %66, i32 noundef 4, i32 noundef 8, ptr noundef %67, ptr noundef %68)
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  %71 = load ptr, ptr %15, align 8, !tbaa !5
  %72 = load i32, ptr %14, align 4, !tbaa !9
  %73 = load ptr, ptr %16, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %73, i32 0, i32 1
  %75 = load i32, ptr %74, align 1, !tbaa !14
  %76 = udiv i32 %75, 8
  %77 = mul i32 %76, 8
  call void @libxsmm_generator_mateltwise_footer_n_loop(ptr noundef %69, ptr noundef %70, ptr noundef %71, i32 noundef %72, i32 noundef %77)
  br label %78

78:                                               ; preds = %54, %40
  %79 = load ptr, ptr %16, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %79, i32 0, i32 1
  %81 = load i32, ptr %80, align 1, !tbaa !14
  %82 = urem i32 %81, 8
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %84, label %94

84:                                               ; preds = %78
  %85 = load ptr, ptr %9, align 8, !tbaa !5
  %86 = load i32, ptr %11, align 4, !tbaa !9
  %87 = load i32, ptr %12, align 4, !tbaa !9
  %88 = load ptr, ptr %16, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %88, i32 0, i32 1
  %90 = load i32, ptr %89, align 1, !tbaa !14
  %91 = urem i32 %90, 8
  %92 = load ptr, ptr %15, align 8, !tbaa !5
  %93 = load ptr, ptr %16, align 8, !tbaa !5
  call void @libxsmm_generator_transform_norm_to_normt_64bit_4x8_shufflenetwork_avx(ptr noundef %85, i32 noundef %86, i32 noundef %87, i32 noundef 4, i32 noundef %91, ptr noundef %92, ptr noundef %93)
  br label %94

94:                                               ; preds = %84, %78
  %95 = load ptr, ptr %9, align 8, !tbaa !5
  %96 = load i32, ptr %12, align 4, !tbaa !9
  %97 = load ptr, ptr %16, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %97, i32 0, i32 3
  %99 = load i32, ptr %98, align 1, !tbaa !17
  %100 = zext i32 %99 to i64
  %101 = mul nsw i64 4, %100
  %102 = load ptr, ptr %15, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %102, i32 0, i32 5
  %104 = load i32, ptr %103, align 4, !tbaa !18
  %105 = zext i32 %104 to i64
  %106 = mul nsw i64 %101, %105
  %107 = load ptr, ptr %15, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %107, i32 0, i32 2
  %109 = load i32, ptr %108, align 4, !tbaa !19
  %110 = zext i32 %109 to i64
  %111 = load ptr, ptr %16, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %111, i32 0, i32 1
  %113 = load i32, ptr %112, align 1, !tbaa !14
  %114 = zext i32 %113 to i64
  %115 = mul nsw i64 %110, %114
  %116 = sub nsw i64 %106, %115
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %95, i32 noundef 30000, i32 noundef %96, i64 noundef %116)
  %117 = load ptr, ptr %9, align 8, !tbaa !5
  %118 = load i32, ptr %11, align 4, !tbaa !9
  %119 = load ptr, ptr %16, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %119, i32 0, i32 2
  %121 = load i32, ptr %120, align 1, !tbaa !20
  %122 = zext i32 %121 to i64
  %123 = load ptr, ptr %15, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %123, i32 0, i32 2
  %125 = load i32, ptr %124, align 4, !tbaa !19
  %126 = zext i32 %125 to i64
  %127 = mul nsw i64 %122, %126
  %128 = load ptr, ptr %16, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %128, i32 0, i32 1
  %130 = load i32, ptr %129, align 1, !tbaa !14
  %131 = zext i32 %130 to i64
  %132 = mul nsw i64 %127, %131
  %133 = load ptr, ptr %15, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %133, i32 0, i32 2
  %135 = load i32, ptr %134, align 4, !tbaa !19
  %136 = zext i32 %135 to i64
  %137 = mul nsw i64 4, %136
  %138 = sub nsw i64 %132, %137
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %117, i32 noundef 30008, i32 noundef %118, i64 noundef %138)
  %139 = load ptr, ptr %9, align 8, !tbaa !5
  %140 = load ptr, ptr %10, align 8, !tbaa !5
  %141 = load ptr, ptr %15, align 8, !tbaa !5
  %142 = load i32, ptr %13, align 4, !tbaa !9
  %143 = load ptr, ptr %16, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %143, i32 0, i32 0
  %145 = load i32, ptr %144, align 1, !tbaa !11
  %146 = udiv i32 %145, 4
  %147 = mul i32 %146, 4
  call void @libxsmm_generator_mateltwise_footer_m_loop(ptr noundef %139, ptr noundef %140, ptr noundef %141, i32 noundef %142, i32 noundef %147)
  br label %148

148:                                              ; preds = %94, %35
  %149 = load ptr, ptr %16, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %149, i32 0, i32 0
  %151 = load i32, ptr %150, align 1, !tbaa !11
  %152 = urem i32 %151, 4
  %153 = icmp ne i32 %152, 0
  br i1 %153, label %154, label %208

154:                                              ; preds = %148
  %155 = load ptr, ptr %16, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %155, i32 0, i32 1
  %157 = load i32, ptr %156, align 1, !tbaa !14
  %158 = icmp uge i32 %157, 8
  br i1 %158, label %159, label %187

159:                                              ; preds = %154
  %160 = load ptr, ptr %9, align 8, !tbaa !5
  %161 = load ptr, ptr %15, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %161, i32 0, i32 14
  %163 = load i32, ptr %162, align 4, !tbaa !15
  %164 = load i32, ptr %14, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %160, i32 noundef %163, i32 noundef %164, i64 noundef 0)
  %165 = load ptr, ptr %9, align 8, !tbaa !5
  %166 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_register_jump_back_label(ptr noundef %165, ptr noundef %166)
  %167 = load ptr, ptr %9, align 8, !tbaa !5
  %168 = load i32, ptr %14, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %167, i32 noundef 30000, i32 noundef %168, i64 noundef 8)
  %169 = load ptr, ptr %9, align 8, !tbaa !5
  %170 = load i32, ptr %11, align 4, !tbaa !9
  %171 = load i32, ptr %12, align 4, !tbaa !9
  %172 = load ptr, ptr %16, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %172, i32 0, i32 0
  %174 = load i32, ptr %173, align 1, !tbaa !11
  %175 = urem i32 %174, 4
  %176 = load ptr, ptr %15, align 8, !tbaa !5
  %177 = load ptr, ptr %16, align 8, !tbaa !5
  call void @libxsmm_generator_transform_norm_to_normt_64bit_4x8_shufflenetwork_avx(ptr noundef %169, i32 noundef %170, i32 noundef %171, i32 noundef %175, i32 noundef 8, ptr noundef %176, ptr noundef %177)
  %178 = load ptr, ptr %9, align 8, !tbaa !5
  %179 = load ptr, ptr %10, align 8, !tbaa !5
  %180 = load ptr, ptr %15, align 8, !tbaa !5
  %181 = load i32, ptr %14, align 4, !tbaa !9
  %182 = load ptr, ptr %16, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %182, i32 0, i32 1
  %184 = load i32, ptr %183, align 1, !tbaa !14
  %185 = udiv i32 %184, 8
  %186 = mul i32 %185, 8
  call void @libxsmm_generator_mateltwise_footer_n_loop(ptr noundef %178, ptr noundef %179, ptr noundef %180, i32 noundef %181, i32 noundef %186)
  br label %187

187:                                              ; preds = %159, %154
  %188 = load ptr, ptr %16, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %188, i32 0, i32 1
  %190 = load i32, ptr %189, align 1, !tbaa !14
  %191 = urem i32 %190, 8
  %192 = icmp ne i32 %191, 0
  br i1 %192, label %193, label %207

193:                                              ; preds = %187
  %194 = load ptr, ptr %9, align 8, !tbaa !5
  %195 = load i32, ptr %11, align 4, !tbaa !9
  %196 = load i32, ptr %12, align 4, !tbaa !9
  %197 = load ptr, ptr %16, 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 = urem i32 %199, 4
  %201 = load ptr, ptr %16, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %201, i32 0, i32 1
  %203 = load i32, ptr %202, align 1, !tbaa !14
  %204 = urem i32 %203, 8
  %205 = load ptr, ptr %15, align 8, !tbaa !5
  %206 = load ptr, ptr %16, align 8, !tbaa !5
  call void @libxsmm_generator_transform_norm_to_normt_64bit_4x8_shufflenetwork_avx(ptr noundef %194, i32 noundef %195, i32 noundef %196, i32 noundef %200, i32 noundef %204, ptr noundef %205, ptr noundef %206)
  br label %207

207:                                              ; preds = %193, %187
  br label %208

208:                                              ; preds = %207, %148
  br label %209

209:                                              ; preds = %208, %26
  ret void
}

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 = { "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" }

!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, !10, i64 4}
!15 = !{!16, !10, i64 56}
!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 12}
!18 = !{!16, !10, i64 20}
!19 = !{!16, !10, i64 8}
!20 = !{!12, !10, i64 8}


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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_transform_norm_to_normt_64bit_avx_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) local_unnamed_addr #0 {
  %9 = load i32, ptr %7, align 1, !tbaa !5
  %10 = icmp ult i32 %9, 2
  br i1 %10, label %11, label %16

11:                                               ; preds = %8
  %12 = getelementptr inbounds i8, ptr %7, i64 4
  %13 = load i32, ptr %12, align 1, !tbaa !11
  %14 = icmp ult i32 %13, 4
  br i1 %14, label %15, label %.thread

15:                                               ; preds = %11
  tail call void @libxsmm_generator_transform_norm_to_normt_mbit_scalar_avx_microkernel(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6, ptr noundef nonnull %7)
  br label %80

16:                                               ; preds = %8
  %17 = icmp ugt i32 %9, 3
  br i1 %17, label %18, label %.thread

18:                                               ; preds = %16
  %19 = getelementptr inbounds i8, ptr %6, i64 56
  %20 = load i32, ptr %19, align 4, !tbaa !12
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %20, 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
  %21 = getelementptr inbounds i8, ptr %7, i64 4
  %22 = load i32, ptr %21, align 1, !tbaa !11
  %23 = icmp ugt i32 %22, 7
  br i1 %23, label %24, label %28

24:                                               ; preds = %18
  %25 = load i32, ptr %19, align 4, !tbaa !12
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %25, 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 8) #2
  tail call void @libxsmm_generator_transform_norm_to_normt_64bit_4x8_shufflenetwork_avx(ptr noundef %0, i32 noundef %2, i32 noundef %3, i32 noundef 4, i32 noundef 8, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %26 = load i32, ptr %21, align 1, !tbaa !11
  %27 = and i32 %26, -8
  tail call void @libxsmm_generator_mateltwise_footer_n_loop(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %6, i32 noundef %5, i32 noundef %27) #2
  %.pre = load i32, ptr %21, align 1, !tbaa !11
  br label %28

28:                                               ; preds = %24, %18
  %29 = phi i32 [ %.pre, %24 ], [ %22, %18 ]
  %30 = and i32 %29, 7
  %.not = icmp eq i32 %30, 0
  br i1 %.not, label %32, label %31

31:                                               ; preds = %28
  tail call void @libxsmm_generator_transform_norm_to_normt_64bit_4x8_shufflenetwork_avx(ptr noundef %0, i32 noundef %2, i32 noundef %3, i32 noundef 4, i32 noundef %30, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %.pre90 = load i32, ptr %21, align 1, !tbaa !11
  br label %32

32:                                               ; preds = %31, %28
  %33 = phi i32 [ %.pre90, %31 ], [ %29, %28 ]
  %34 = getelementptr inbounds i8, ptr %7, i64 12
  %35 = load i32, ptr %34, align 1, !tbaa !14
  %36 = zext i32 %35 to i64
  %37 = shl nuw nsw i64 %36, 2
  %38 = getelementptr inbounds i8, ptr %6, i64 20
  %39 = load i32, ptr %38, align 4, !tbaa !15
  %40 = zext i32 %39 to i64
  %41 = mul nuw nsw i64 %37, %40
  %42 = getelementptr inbounds i8, ptr %6, i64 8
  %43 = load i32, ptr %42, align 4, !tbaa !16
  %44 = zext i32 %43 to i64
  %45 = zext i32 %33 to i64
  %46 = mul nuw nsw i64 %45, %44
  %47 = sub nsw i64 %41, %46
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30000, i32 noundef %3, i64 noundef %47) #2
  %48 = getelementptr inbounds i8, ptr %7, i64 8
  %49 = load i32, ptr %48, align 1, !tbaa !17
  %50 = zext i32 %49 to i64
  %51 = load i32, ptr %42, align 4, !tbaa !16
  %52 = zext i32 %51 to i64
  %53 = mul nuw nsw i64 %52, %50
  %54 = load i32, ptr %21, align 1, !tbaa !11
  %55 = zext i32 %54 to i64
  %56 = mul nuw nsw i64 %53, %55
  %57 = shl nuw nsw i64 %52, 2
  %58 = sub nsw i64 %56, %57
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30008, i32 noundef %2, i64 noundef %58) #2
  %59 = load i32, ptr %7, align 1, !tbaa !5
  %60 = and i32 %59, -4
  tail call void @libxsmm_generator_mateltwise_footer_m_loop(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %6, i32 noundef %4, i32 noundef %60) #2
  %.pre91 = load i32, ptr %7, align 1, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %11, %32, %16
  %61 = phi i32 [ %9, %11 ], [ %.pre91, %32 ], [ %9, %16 ]
  %62 = and i32 %61, 3
  %.not88 = icmp eq i32 %62, 0
  br i1 %.not88, label %80, label %63

63:                                               ; preds = %.thread
  %64 = getelementptr inbounds i8, ptr %7, i64 4
  %65 = load i32, ptr %64, align 1, !tbaa !11
  %66 = icmp ugt i32 %65, 7
  br i1 %66, label %67, label %74

67:                                               ; preds = %63
  %68 = getelementptr inbounds i8, ptr %6, i64 56
  %69 = load i32, ptr %68, align 4, !tbaa !12
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %69, 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 8) #2
  %70 = load i32, ptr %7, align 1, !tbaa !5
  %71 = and i32 %70, 3
  tail call void @libxsmm_generator_transform_norm_to_normt_64bit_4x8_shufflenetwork_avx(ptr noundef %0, i32 noundef %2, i32 noundef %3, i32 noundef %71, i32 noundef 8, ptr noundef %6, ptr noundef nonnull %7)
  %72 = load i32, ptr %64, align 1, !tbaa !11
  %73 = and i32 %72, -8
  tail call void @libxsmm_generator_mateltwise_footer_n_loop(ptr noundef %0, ptr noundef %1, ptr noundef %6, i32 noundef %5, i32 noundef %73) #2
  %.pre92 = load i32, ptr %64, align 1, !tbaa !11
  br label %74

74:                                               ; preds = %67, %63
  %75 = phi i32 [ %.pre92, %67 ], [ %65, %63 ]
  %76 = and i32 %75, 7
  %.not89 = icmp eq i32 %76, 0
  br i1 %.not89, label %80, label %77

77:                                               ; preds = %74
  %78 = load i32, ptr %7, align 1, !tbaa !5
  %79 = and i32 %78, 3
  tail call void @libxsmm_generator_transform_norm_to_normt_64bit_4x8_shufflenetwork_avx(ptr noundef %0, i32 noundef %2, i32 noundef %3, i32 noundef %79, i32 noundef %76, ptr noundef %6, ptr noundef nonnull %7)
  br label %80

80:                                               ; preds = %.thread, %77, %74, %15
  ret void
}

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 = { "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, !7, i64 4}
!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 = !{!6, !7, i64 12}
!15 = !{!13, !7, i64 20}
!16 = !{!13, !7, i64 8}
!17 = !{!6, !7, i64 8}


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