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

; 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 [100 x i8], align 1
@libxsmm_ninit = external global i32, align 4
@libxsmm_verbosity = external global i32, align 4
@__func__.libxsmm_generator_transform_vnni2_to_vnni2t_mbit_scalar_aarch64_asimd_microkernel = external hidden unnamed_addr constant [82 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

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

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

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

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

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

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

36:                                               ; preds = %9
  store i32 6, ptr %21, align 4, !tbaa !9
  store i32 6, ptr %22, align 4, !tbaa !9
  br label %59

37:                                               ; preds = %9
  %38 = load ptr, ptr %17, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %38, i32 0, i32 2
  %40 = load i32, ptr %39, align 4, !tbaa !15
  %41 = icmp eq i32 %40, 4
  br i1 %41, label %42, label %43

42:                                               ; preds = %37
  store i32 4, ptr %21, align 4, !tbaa !9
  store i32 4, ptr %22, align 4, !tbaa !9
  br label %58

43:                                               ; preds = %37
  %44 = load ptr, ptr %17, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %44, i32 0, i32 2
  %46 = load i32, ptr %45, align 4, !tbaa !15
  %47 = icmp eq i32 %46, 2
  br i1 %47, label %48, label %49

48:                                               ; preds = %43
  store i32 2, ptr %21, align 4, !tbaa !9
  store i32 2, ptr %22, align 4, !tbaa !9
  br label %57

49:                                               ; preds = %43
  %50 = load ptr, ptr %17, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %50, i32 0, i32 2
  %52 = load i32, ptr %51, align 4, !tbaa !15
  %53 = icmp eq i32 %52, 1
  br i1 %53, label %54, label %55

54:                                               ; preds = %49
  store i32 0, ptr %21, align 4, !tbaa !9
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %56

55:                                               ; preds = %49
  store i32 0, ptr %21, align 4, !tbaa !9
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %56

56:                                               ; preds = %55, %54
  br label %57

57:                                               ; preds = %56, %48
  br label %58

58:                                               ; preds = %57, %42
  br label %59

59:                                               ; preds = %58, %36
  %60 = load ptr, ptr %18, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %60, i32 0, i32 0
  %62 = load i32, ptr %61, align 1, !tbaa !17
  %63 = urem i32 %62, 2
  %64 = icmp eq i32 %63, 0
  br i1 %64, label %65, label %200

65:                                               ; preds = %59
  %66 = load ptr, ptr %18, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %66, i32 0, i32 1
  %68 = load i32, ptr %67, align 1, !tbaa !18
  %69 = urem i32 %68, 2
  %70 = icmp eq i32 %69, 0
  br i1 %70, label %71, label %200

71:                                               ; preds = %65
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  %73 = load ptr, ptr %11, align 8, !tbaa !5
  %74 = load i32, ptr %15, align 4, !tbaa !9
  %75 = load ptr, ptr %18, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %75, i32 0, i32 1
  %77 = load i32, ptr %76, align 1, !tbaa !18
  call void @libxsmm_generator_loop_header_aarch64(ptr noundef %72, ptr noundef %73, i32 noundef %74, i32 noundef %77)
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  %80 = load i32, ptr %14, align 4, !tbaa !9
  %81 = load ptr, ptr %18, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %81, i32 0, i32 0
  %83 = load i32, ptr %82, align 1, !tbaa !17
  call void @libxsmm_generator_loop_header_aarch64(ptr noundef %78, ptr noundef %79, i32 noundef %80, i32 noundef %83)
  %84 = load ptr, ptr %10, align 8, !tbaa !5
  %85 = load i32, ptr %12, align 4, !tbaa !9
  %86 = load ptr, ptr %17, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %86, i32 0, i32 2
  %88 = load i32, ptr %87, align 4, !tbaa !15
  %89 = load i32, ptr %21, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %84, i32 noundef 1010828294, i32 noundef %85, i32 noundef 127, i32 noundef %88, i32 noundef 0, i32 noundef %89)
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  %91 = load i32, ptr %12, align 4, !tbaa !9
  %92 = load ptr, ptr %17, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %92, i32 0, i32 2
  %94 = load i32, ptr %93, align 4, !tbaa !15
  %95 = load i32, ptr %21, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %90, i32 noundef 1010828294, i32 noundef %91, i32 noundef 127, i32 noundef %94, i32 noundef 1, i32 noundef %95)
  %96 = load ptr, ptr %10, align 8, !tbaa !5
  %97 = load i32, ptr %12, align 4, !tbaa !9
  %98 = load ptr, ptr %17, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %98, i32 0, i32 2
  %100 = load i32, ptr %99, align 4, !tbaa !15
  %101 = load i32, ptr %21, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %96, i32 noundef 1010828294, i32 noundef %97, i32 noundef 127, i32 noundef %100, i32 noundef 2, i32 noundef %101)
  %102 = load ptr, ptr %10, align 8, !tbaa !5
  %103 = load i32, ptr %12, align 4, !tbaa !9
  %104 = load ptr, ptr %17, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %104, i32 0, i32 2
  %106 = load i32, ptr %105, align 4, !tbaa !15
  %107 = load i32, ptr %21, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %102, i32 noundef 1010828294, i32 noundef %103, i32 noundef 127, i32 noundef %106, i32 noundef 3, i32 noundef %107)
  %108 = load ptr, ptr %10, align 8, !tbaa !5
  %109 = load i32, ptr %13, align 4, !tbaa !9
  %110 = load ptr, ptr %17, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %110, i32 0, i32 5
  %112 = load i32, ptr %111, align 4, !tbaa !19
  %113 = load i32, ptr %22, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %108, i32 noundef 1006633990, i32 noundef %109, i32 noundef 127, i32 noundef %112, i32 noundef 0, i32 noundef %113)
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  %115 = load i32, ptr %13, align 4, !tbaa !9
  %116 = load ptr, ptr %17, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %116, i32 0, i32 5
  %118 = load i32, ptr %117, align 4, !tbaa !19
  %119 = load i32, ptr %22, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %114, i32 noundef 1006633990, i32 noundef %115, i32 noundef 127, i32 noundef %118, i32 noundef 2, i32 noundef %119)
  %120 = load ptr, ptr %10, align 8, !tbaa !5
  %121 = load i32, ptr %13, align 4, !tbaa !9
  %122 = load ptr, ptr %17, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %122, i32 0, i32 5
  %124 = load i32, ptr %123, align 4, !tbaa !19
  %125 = load i32, ptr %22, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %120, i32 noundef 1006633990, i32 noundef %121, i32 noundef 127, i32 noundef %124, i32 noundef 1, i32 noundef %125)
  %126 = load ptr, ptr %10, align 8, !tbaa !5
  %127 = load i32, ptr %13, align 4, !tbaa !9
  %128 = load ptr, ptr %17, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %128, i32 0, i32 5
  %130 = load i32, ptr %129, align 4, !tbaa !19
  %131 = load i32, ptr %22, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %126, i32 noundef 1006633990, i32 noundef %127, i32 noundef 127, i32 noundef %130, i32 noundef 3, i32 noundef %131)
  %132 = load ptr, ptr %10, align 8, !tbaa !5
  %133 = load i32, ptr %13, align 4, !tbaa !9
  %134 = load i32, ptr %16, align 4, !tbaa !9
  %135 = load i32, ptr %13, align 4, !tbaa !9
  %136 = load ptr, ptr %17, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %136, i32 0, i32 5
  %138 = load i32, ptr %137, align 4, !tbaa !19
  %139 = zext i32 %138 to i64
  %140 = load i32, ptr %20, align 4, !tbaa !9
  %141 = zext i32 %140 to i64
  %142 = mul nsw i64 %139, %141
  %143 = load ptr, ptr %17, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %143, i32 0, i32 5
  %145 = load i32, ptr %144, align 4, !tbaa !19
  %146 = zext i32 %145 to i64
  %147 = mul nsw i64 %146, 4
  %148 = sub nsw i64 %142, %147
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %132, i32 noundef 4096, i32 noundef %133, i32 noundef %134, i32 noundef %135, i64 noundef %148)
  %149 = load ptr, ptr %10, align 8, !tbaa !5
  %150 = load ptr, ptr %11, align 8, !tbaa !5
  %151 = load i32, ptr %14, align 4, !tbaa !9
  call void @libxsmm_generator_loop_footer_aarch64(ptr noundef %149, ptr noundef %150, i32 noundef %151, i32 noundef 2)
  %152 = load ptr, ptr %10, align 8, !tbaa !5
  %153 = load i32, ptr %12, align 4, !tbaa !9
  %154 = load i32, ptr %16, align 4, !tbaa !9
  %155 = load i32, ptr %12, align 4, !tbaa !9
  %156 = load i32, ptr %19, align 4, !tbaa !9
  %157 = zext i32 %156 to i64
  %158 = load ptr, ptr %17, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %158, i32 0, i32 2
  %160 = load i32, ptr %159, align 4, !tbaa !15
  %161 = zext i32 %160 to i64
  %162 = mul nsw i64 %157, %161
  %163 = load ptr, ptr %17, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %163, i32 0, i32 2
  %165 = load i32, ptr %164, align 4, !tbaa !15
  %166 = zext i32 %165 to i64
  %167 = load ptr, ptr %18, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %167, i32 0, i32 0
  %169 = load i32, ptr %168, align 1, !tbaa !17
  %170 = zext i32 %169 to i64
  %171 = mul nsw i64 %166, %170
  %172 = mul nsw i64 %171, 2
  %173 = sub nsw i64 %162, %172
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %152, i32 noundef 4096, i32 noundef %153, i32 noundef %154, i32 noundef %155, i64 noundef %173)
  %174 = load ptr, ptr %10, align 8, !tbaa !5
  %175 = load i32, ptr %13, align 4, !tbaa !9
  %176 = load i32, ptr %16, align 4, !tbaa !9
  %177 = load i32, ptr %13, align 4, !tbaa !9
  %178 = load ptr, ptr %17, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %178, i32 0, i32 5
  %180 = load i32, ptr %179, align 4, !tbaa !19
  %181 = zext i32 %180 to i64
  %182 = load i32, ptr %20, align 4, !tbaa !9
  %183 = zext i32 %182 to i64
  %184 = mul nsw i64 %181, %183
  %185 = load ptr, ptr %18, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %185, i32 0, i32 0
  %187 = load i32, ptr %186, align 1, !tbaa !17
  %188 = zext i32 %187 to i64
  %189 = mul nsw i64 %184, %188
  %190 = sdiv i64 %189, 2
  %191 = load ptr, ptr %17, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %191, i32 0, i32 5
  %193 = load i32, ptr %192, align 4, !tbaa !19
  %194 = zext i32 %193 to i64
  %195 = mul nsw i64 %194, 4
  %196 = sub nsw i64 %190, %195
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %174, i32 noundef 4097, i32 noundef %175, i32 noundef %176, i32 noundef %177, i64 noundef %196)
  %197 = load ptr, ptr %10, align 8, !tbaa !5
  %198 = load ptr, ptr %11, align 8, !tbaa !5
  %199 = load i32, ptr %15, align 4, !tbaa !9
  call void @libxsmm_generator_loop_footer_aarch64(ptr noundef %197, ptr noundef %198, i32 noundef %199, i32 noundef 2)
  br label %209

200:                                              ; preds = %65, %59
  %201 = load ptr, ptr %10, align 8, !tbaa !5
  %202 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %203 = icmp ult i32 1, %202
  br i1 %203, label %204, label %206

204:                                              ; preds = %200
  %205 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %207

206:                                              ; preds = %200
  br label %207

207:                                              ; preds = %206, %204
  %208 = phi i32 [ %205, %204 ], [ 1, %206 ]
  call void @libxsmm_handle_error(ptr noundef %201, i32 noundef 90000, ptr noundef @__func__.libxsmm_generator_transform_vnni2_to_vnni2t_mbit_scalar_aarch64_asimd_microkernel, ptr noundef @.str, i32 noundef 634, i32 noundef %208)
  store i32 1, ptr %23, align 4
  br label %210

209:                                              ; preds = %71
  store i32 0, ptr %23, align 4
  br label %210

210:                                              ; preds = %209, %207
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  %211 = load i32, ptr %23, align 4
  switch i32 %211, label %213 [
    i32 0, label %212
    i32 1, label %212
  ]

212:                                              ; preds = %210, %210
  ret void

213:                                              ; preds = %210
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 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 20}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [100 x i8], align 1
@libxsmm_ninit = external local_unnamed_addr global i32, align 4
@libxsmm_verbosity = external local_unnamed_addr global i32, align 4
@__func__.libxsmm_generator_transform_vnni2_to_vnni2t_mbit_scalar_aarch64_asimd_microkernel = external hidden unnamed_addr constant [82 x i8], align 1
@switch.table.libxsmm_generator_transform_vnni2_to_vnni2t_mbit_scalar_aarch64_asimd_microkernel = private unnamed_addr constant [8 x i32] [i32 0, i32 2, i32 0, i32 4, i32 0, i32 0, i32 0, i32 6], 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_generator_loop_header_aarch64(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_transform_vnni2_to_vnni2t_mbit_scalar_aarch64_asimd_microkernel(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, ptr nocapture noundef readonly %7, ptr nocapture noundef readonly %8) local_unnamed_addr #1 {
  %10 = getelementptr inbounds i8, ptr %8, i64 8
  %11 = load i32, ptr %10, align 1, !tbaa !5
  %12 = shl i32 %11, 1
  %13 = getelementptr inbounds i8, ptr %8, i64 12
  %14 = load i32, ptr %13, align 1, !tbaa !11
  %15 = shl i32 %14, 1
  %16 = getelementptr inbounds i8, ptr %7, i64 8
  %17 = load i32, ptr %16, align 4, !tbaa !12
  %switch.tableidx = add i32 %17, -1
  %18 = icmp ult i32 %switch.tableidx, 8
  br i1 %18, label %switch.lookup, label %20

switch.lookup:                                    ; preds = %9
  %19 = zext nneg i32 %switch.tableidx to i64
  %switch.gep = getelementptr inbounds [8 x i32], ptr @switch.table.libxsmm_generator_transform_vnni2_to_vnni2t_mbit_scalar_aarch64_asimd_microkernel, i64 0, i64 %19
  %switch.load = load i32, ptr %switch.gep, align 4
  br label %20

20:                                               ; preds = %9, %switch.lookup
  %.0 = phi i32 [ %switch.load, %switch.lookup ], [ 0, %9 ]
  %21 = load i32, ptr %8, align 1, !tbaa !14
  %22 = and i32 %21, 1
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %24, label %63

24:                                               ; preds = %20
  %25 = getelementptr inbounds i8, ptr %8, i64 4
  %26 = load i32, ptr %25, align 1, !tbaa !15
  %27 = and i32 %26, 1
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %29, label %63

29:                                               ; preds = %24
  tail call void @libxsmm_generator_loop_header_aarch64(ptr noundef %0, ptr noundef %1, i32 noundef %5, i32 noundef %26) #2
  %30 = load i32, ptr %8, align 1, !tbaa !14
  tail call void @libxsmm_generator_loop_header_aarch64(ptr noundef %0, ptr noundef %1, i32 noundef %4, i32 noundef %30) #2
  %31 = load i32, ptr %16, align 4, !tbaa !12
  tail call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %0, i32 noundef 1010828294, i32 noundef %2, i32 noundef 127, i32 noundef %31, i32 noundef 0, i32 noundef %.0) #2
  %32 = load i32, ptr %16, align 4, !tbaa !12
  tail call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %0, i32 noundef 1010828294, i32 noundef %2, i32 noundef 127, i32 noundef %32, i32 noundef 1, i32 noundef %.0) #2
  %33 = load i32, ptr %16, align 4, !tbaa !12
  tail call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %0, i32 noundef 1010828294, i32 noundef %2, i32 noundef 127, i32 noundef %33, i32 noundef 2, i32 noundef %.0) #2
  %34 = load i32, ptr %16, align 4, !tbaa !12
  tail call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %0, i32 noundef 1010828294, i32 noundef %2, i32 noundef 127, i32 noundef %34, i32 noundef 3, i32 noundef %.0) #2
  %35 = getelementptr inbounds i8, ptr %7, i64 20
  %36 = load i32, ptr %35, align 4, !tbaa !16
  tail call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %0, i32 noundef 1006633990, i32 noundef %3, i32 noundef 127, i32 noundef %36, i32 noundef 0, i32 noundef %.0) #2
  %37 = load i32, ptr %35, align 4, !tbaa !16
  tail call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %0, i32 noundef 1006633990, i32 noundef %3, i32 noundef 127, i32 noundef %37, i32 noundef 2, i32 noundef %.0) #2
  %38 = load i32, ptr %35, align 4, !tbaa !16
  tail call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %0, i32 noundef 1006633990, i32 noundef %3, i32 noundef 127, i32 noundef %38, i32 noundef 1, i32 noundef %.0) #2
  %39 = load i32, ptr %35, align 4, !tbaa !16
  tail call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %0, i32 noundef 1006633990, i32 noundef %3, i32 noundef 127, i32 noundef %39, i32 noundef 3, i32 noundef %.0) #2
  %40 = load i32, ptr %35, align 4, !tbaa !16
  %41 = zext i32 %40 to i64
  %42 = zext i32 %15 to i64
  %43 = add nsw i64 %42, -4
  %44 = mul i64 %43, %41
  tail call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef 4096, i32 noundef %3, i32 noundef %6, i32 noundef %3, i64 noundef %44) #2
  tail call void @libxsmm_generator_loop_footer_aarch64(ptr noundef %0, ptr noundef %1, i32 noundef %4, i32 noundef 2) #2
  %45 = zext i32 %12 to i64
  %46 = load i32, ptr %16, align 4, !tbaa !12
  %47 = zext i32 %46 to i64
  %48 = mul nuw nsw i64 %47, %45
  %49 = load i32, ptr %8, align 1, !tbaa !14
  %50 = zext i32 %49 to i64
  %51 = shl nuw nsw i64 %47, 1
  %52 = mul i64 %51, %50
  %53 = sub nsw i64 %48, %52
  tail call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef 4096, i32 noundef %2, i32 noundef %6, i32 noundef %2, i64 noundef %53) #2
  %54 = load i32, ptr %35, align 4, !tbaa !16
  %55 = zext i32 %54 to i64
  %56 = mul nuw nsw i64 %55, %42
  %57 = load i32, ptr %8, align 1, !tbaa !14
  %58 = zext i32 %57 to i64
  %59 = mul nuw nsw i64 %56, %58
  %60 = lshr exact i64 %59, 1
  %61 = shl nuw nsw i64 %55, 2
  %62 = sub nsw i64 %60, %61
  tail call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef 4097, i32 noundef %3, i32 noundef %6, i32 noundef %3, i64 noundef %62) #2
  tail call void @libxsmm_generator_loop_footer_aarch64(ptr noundef %0, ptr noundef %1, i32 noundef %5, i32 noundef 2) #2
  br label %68

63:                                               ; preds = %24, %20
  %64 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !17
  %65 = icmp ugt i32 %64, 1
  %66 = load i32, ptr @libxsmm_verbosity, align 4
  %67 = select i1 %65, i32 %66, i32 1
  tail call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_generator_transform_vnni2_to_vnni2t_mbit_scalar_aarch64_asimd_microkernel, ptr noundef nonnull @.str, i32 noundef 634, i32 noundef %67) #2
  br label %68

68:                                               ; preds = %29, %63
  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 = !{!13, !7, i64 8}
!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 0}
!15 = !{!6, !7, i64 4}
!16 = !{!13, !7, i64 20}
!17 = !{!7, !7, i64 0}


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