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

@__const.libxsmm_generator_transform_vnni4_to_vnni4t_Nmod16_16bit_aarch64_asimd_microkernel.l_in_idx = external hidden unnamed_addr constant <{ [8 x i8], [8 x i8] }>, align 16
@__const.libxsmm_generator_transform_vnni4_to_vnni4t_Nmod16_16bit_aarch64_asimd_microkernel.l_out_idx = external hidden unnamed_addr constant <{ [8 x i8], [8 x i8] }>, align 16

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_generator_transform_Xway_unpack_network_aarch64_asimd(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 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

declare void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef zeroext, i32 noundef, i32 noundef) #2

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

declare void @libxsmm_generator_load_2dregblock_aarch64_asimd(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

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

declare void @libxsmm_generator_store_2dregblock_aarch64_asimd(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_transform_vnni4_to_vnni4t_Nmod16_16bit_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) #0 {
  %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 [16 x i8], align 16
  %22 = alloca [16 x i8], align 16
  %23 = alloca i32, align 4
  %24 = 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) #4
  %25 = load ptr, ptr %18, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %25, i32 0, i32 2
  %27 = load i32, ptr %26, align 1, !tbaa !11
  %28 = mul i32 %27, 4
  store i32 %28, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %29 = load ptr, ptr %18, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %29, i32 0, i32 3
  %31 = load i32, ptr %30, align 1, !tbaa !14
  %32 = mul i32 %31, 4
  store i32 %32, ptr %20, align 4, !tbaa !9
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = load ptr, ptr %11, align 8, !tbaa !5
  %35 = load i32, ptr %15, align 4, !tbaa !9
  %36 = load ptr, ptr %18, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %36, i32 0, i32 1
  %38 = load i32, ptr %37, align 1, !tbaa !15
  call void @libxsmm_generator_loop_header_aarch64(ptr noundef %33, ptr noundef %34, i32 noundef %35, i32 noundef %38)
  %39 = load ptr, ptr %10, align 8, !tbaa !5
  %40 = load ptr, ptr %11, align 8, !tbaa !5
  %41 = load i32, ptr %14, align 4, !tbaa !9
  %42 = load ptr, ptr %18, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %42, i32 0, i32 0
  %44 = load i32, ptr %43, align 1, !tbaa !16
  call void @libxsmm_generator_loop_header_aarch64(ptr noundef %39, ptr noundef %40, i32 noundef %41, i32 noundef %44)
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  %46 = load i32, ptr %12, align 4, !tbaa !9
  %47 = load i32, ptr %16, align 4, !tbaa !9
  %48 = load i32, ptr %19, align 4, !tbaa !9
  %49 = load ptr, ptr %17, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %49, i32 0, i32 2
  %51 = load i32, ptr %50, align 4, !tbaa !17
  %52 = mul i32 %48, %51
  call void @libxsmm_generator_load_2dregblock_aarch64_asimd(ptr noundef %45, i32 noundef %46, i32 noundef %47, i32 noundef 2, i32 noundef 32, i32 noundef 4, i32 noundef 4, i32 noundef %52, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %21, ptr align 16 @__const.libxsmm_generator_transform_vnni4_to_vnni4t_Nmod16_16bit_aarch64_asimd_microkernel.l_in_idx, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %22, ptr align 16 @__const.libxsmm_generator_transform_vnni4_to_vnni4t_Nmod16_16bit_aarch64_asimd_microkernel.l_out_idx, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  store i32 24, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  store i32 16, ptr %24, align 4, !tbaa !9
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  %54 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  %55 = getelementptr inbounds [16 x i8], ptr %22, i64 0, i64 0
  %56 = load i32, ptr %23, align 4, !tbaa !9
  %57 = load i32, ptr %24, align 4, !tbaa !9
  call void @libxsmm_generator_transform_Xway_unpack_network_aarch64_asimd(ptr noundef %53, ptr noundef %54, ptr noundef %55, i32 noundef %56, i32 noundef %57, i32 noundef 2, i32 noundef 234891267, i32 noundef 234907651, i32 noundef 8, i32 noundef 7)
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #4
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %58, i32 noundef 234895363, i32 noundef 16, i32 noundef 18, i8 noundef zeroext 0, i32 noundef 0, i32 noundef 3)
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %59, i32 noundef 234895363, i32 noundef 20, i32 noundef 22, i8 noundef zeroext 0, i32 noundef 1, i32 noundef 3)
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %60, i32 noundef 234895363, i32 noundef 0, i32 noundef 1, i8 noundef zeroext 0, i32 noundef 2, i32 noundef 5)
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %61, i32 noundef 234911747, i32 noundef 0, i32 noundef 1, i8 noundef zeroext 0, i32 noundef 3, i32 noundef 5)
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %62, i32 noundef 234911747, i32 noundef 16, i32 noundef 18, i8 noundef zeroext 0, i32 noundef 10, i32 noundef 3)
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %63, i32 noundef 234911747, i32 noundef 20, i32 noundef 22, i8 noundef zeroext 0, i32 noundef 11, i32 noundef 3)
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %64, i32 noundef 234895363, i32 noundef 10, i32 noundef 11, i8 noundef zeroext 0, i32 noundef 4, i32 noundef 5)
  %65 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %65, i32 noundef 234911747, i32 noundef 10, i32 noundef 11, i8 noundef zeroext 0, i32 noundef 5, i32 noundef 5)
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %66, i32 noundef 234895363, i32 noundef 17, i32 noundef 19, i8 noundef zeroext 0, i32 noundef 12, i32 noundef 3)
  %67 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %67, i32 noundef 234895363, i32 noundef 21, i32 noundef 23, i8 noundef zeroext 0, i32 noundef 13, i32 noundef 3)
  %68 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %68, i32 noundef 234895363, i32 noundef 12, i32 noundef 13, i8 noundef zeroext 0, i32 noundef 6, i32 noundef 5)
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %69, i32 noundef 234911747, i32 noundef 12, i32 noundef 13, i8 noundef zeroext 0, i32 noundef 7, i32 noundef 5)
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %70, i32 noundef 234911747, i32 noundef 17, i32 noundef 19, i8 noundef zeroext 0, i32 noundef 14, i32 noundef 3)
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %71, i32 noundef 234911747, i32 noundef 21, i32 noundef 23, i8 noundef zeroext 0, i32 noundef 15, i32 noundef 3)
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %72, i32 noundef 234895363, i32 noundef 14, i32 noundef 15, i8 noundef zeroext 0, i32 noundef 8, i32 noundef 5)
  %73 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %73, i32 noundef 234911747, i32 noundef 14, i32 noundef 15, i8 noundef zeroext 0, i32 noundef 9, i32 noundef 5)
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  %75 = load i32, ptr %13, align 4, !tbaa !9
  %76 = load i32, ptr %16, align 4, !tbaa !9
  %77 = load ptr, ptr %17, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %77, i32 0, i32 5
  %79 = load i32, ptr %78, align 4, !tbaa !19
  %80 = mul i32 16, %79
  call void @libxsmm_generator_store_2dregblock_aarch64_asimd(ptr noundef %74, i32 noundef %75, i32 noundef %76, i32 noundef 2, i32 noundef 10, i32 noundef 4, i32 noundef 4, i32 noundef %80)
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  %82 = load i32, ptr %12, align 4, !tbaa !9
  %83 = load i32, ptr %16, align 4, !tbaa !9
  %84 = load i32, ptr %12, align 4, !tbaa !9
  %85 = load ptr, ptr %17, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %85, i32 0, i32 2
  %87 = load i32, ptr %86, align 4, !tbaa !17
  %88 = zext i32 %87 to i64
  %89 = mul nsw i64 16, %88
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %81, i32 noundef 4096, i32 noundef %82, i32 noundef %83, i32 noundef %84, i64 noundef %89)
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  %91 = load i32, ptr %13, align 4, !tbaa !9
  %92 = load i32, ptr %16, align 4, !tbaa !9
  %93 = load i32, ptr %13, align 4, !tbaa !9
  %94 = load i32, ptr %20, align 4, !tbaa !9
  %95 = zext i32 %94 to i64
  %96 = load ptr, ptr %17, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %96, i32 0, i32 5
  %98 = load i32, ptr %97, align 4, !tbaa !19
  %99 = zext i32 %98 to i64
  %100 = mul nsw i64 %95, %99
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %90, i32 noundef 4096, i32 noundef %91, i32 noundef %92, i32 noundef %93, i64 noundef %100)
  %101 = load ptr, ptr %10, align 8, !tbaa !5
  %102 = load ptr, ptr %11, align 8, !tbaa !5
  %103 = load i32, ptr %14, align 4, !tbaa !9
  call void @libxsmm_generator_loop_footer_aarch64(ptr noundef %101, ptr noundef %102, i32 noundef %103, i32 noundef 4)
  %104 = load ptr, ptr %10, align 8, !tbaa !5
  %105 = load i32, ptr %12, align 4, !tbaa !9
  %106 = load i32, ptr %16, align 4, !tbaa !9
  %107 = load i32, ptr %12, align 4, !tbaa !9
  %108 = load i32, ptr %19, align 4, !tbaa !9
  %109 = zext i32 %108 to i64
  %110 = mul nsw i64 4, %109
  %111 = load ptr, ptr %18, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %111, i32 0, i32 0
  %113 = load i32, ptr %112, align 1, !tbaa !16
  %114 = zext i32 %113 to i64
  %115 = mul nsw i64 4, %114
  %116 = sub nsw i64 %110, %115
  %117 = load ptr, ptr %17, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %117, i32 0, i32 2
  %119 = load i32, ptr %118, align 4, !tbaa !17
  %120 = zext i32 %119 to i64
  %121 = mul nsw i64 %116, %120
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %104, i32 noundef 4096, i32 noundef %105, i32 noundef %106, i32 noundef %107, i64 noundef %121)
  %122 = load ptr, ptr %10, align 8, !tbaa !5
  %123 = load i32, ptr %13, align 4, !tbaa !9
  %124 = load i32, ptr %16, align 4, !tbaa !9
  %125 = load i32, ptr %13, align 4, !tbaa !9
  %126 = load ptr, ptr %18, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %126, i32 0, i32 0
  %128 = load i32, ptr %127, align 1, !tbaa !16
  %129 = zext i32 %128 to i64
  %130 = sdiv i64 %129, 4
  %131 = load i32, ptr %20, align 4, !tbaa !9
  %132 = zext i32 %131 to i64
  %133 = mul nsw i64 %130, %132
  %134 = sub nsw i64 %133, 64
  %135 = load ptr, ptr %17, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %135, i32 0, i32 5
  %137 = load i32, ptr %136, align 4, !tbaa !19
  %138 = zext i32 %137 to i64
  %139 = mul nsw i64 %134, %138
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %122, i32 noundef 4097, i32 noundef %123, i32 noundef %124, i32 noundef %125, i64 noundef %139)
  %140 = load ptr, ptr %10, align 8, !tbaa !5
  %141 = load ptr, ptr %11, align 8, !tbaa !5
  %142 = load i32, ptr %15, align 4, !tbaa !9
  call void @libxsmm_generator_loop_footer_aarch64(ptr noundef %140, ptr noundef %141, i32 noundef %142, i32 noundef 16)
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind }

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

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

@__const.libxsmm_generator_transform_vnni4_to_vnni4t_Nmod16_16bit_aarch64_asimd_microkernel.l_in_idx = external hidden unnamed_addr constant <{ [8 x i8], [8 x i8] }>, align 16
@__const.libxsmm_generator_transform_vnni4_to_vnni4t_Nmod16_16bit_aarch64_asimd_microkernel.l_out_idx = external hidden unnamed_addr constant <{ [8 x i8], [8 x i8] }>, align 16

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_generator_transform_Xway_unpack_network_aarch64_asimd(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 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

declare void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef zeroext, i32 noundef, i32 noundef) local_unnamed_addr #2

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

declare void @libxsmm_generator_load_2dregblock_aarch64_asimd(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

declare void @libxsmm_generator_store_2dregblock_aarch64_asimd(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare void @libxsmm_generator_loop_header_aarch64(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_transform_vnni4_to_vnni4t_Nmod16_16bit_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 #0 {
  %10 = alloca [16 x i8], align 16
  %11 = alloca [16 x i8], align 16
  %12 = getelementptr inbounds i8, ptr %8, i64 8
  %13 = load i32, ptr %12, align 1, !tbaa !5
  %14 = shl i32 %13, 2
  %15 = getelementptr inbounds i8, ptr %8, i64 12
  %16 = load i32, ptr %15, align 1, !tbaa !11
  %17 = shl i32 %16, 2
  %18 = getelementptr inbounds i8, ptr %8, i64 4
  %19 = load i32, ptr %18, align 1, !tbaa !12
  tail call void @libxsmm_generator_loop_header_aarch64(ptr noundef %0, ptr noundef %1, i32 noundef %5, i32 noundef %19) #4
  %20 = load i32, ptr %8, align 1, !tbaa !13
  tail call void @libxsmm_generator_loop_header_aarch64(ptr noundef %0, ptr noundef %1, i32 noundef %4, i32 noundef %20) #4
  %21 = getelementptr inbounds i8, ptr %7, i64 8
  %22 = load i32, ptr %21, align 4, !tbaa !14
  %23 = mul i32 %22, %14
  tail call void @libxsmm_generator_load_2dregblock_aarch64_asimd(ptr noundef %0, i32 noundef %2, i32 noundef %6, i32 noundef 2, i32 noundef 32, i32 noundef 4, i32 noundef 4, i32 noundef %23, i32 noundef 0) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %10, ptr noundef nonnull align 16 dereferenceable(16) @__const.libxsmm_generator_transform_vnni4_to_vnni4t_Nmod16_16bit_aarch64_asimd_microkernel.l_in_idx, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %11, ptr noundef nonnull align 16 dereferenceable(16) @__const.libxsmm_generator_transform_vnni4_to_vnni4t_Nmod16_16bit_aarch64_asimd_microkernel.l_out_idx, i64 16, i1 false)
  call void @libxsmm_generator_transform_Xway_unpack_network_aarch64_asimd(ptr noundef %0, ptr noundef nonnull %10, ptr noundef nonnull %11, i32 noundef 24, i32 noundef 16, i32 noundef 2, i32 noundef 234891267, i32 noundef 234907651, i32 noundef 8, i32 noundef 7)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #4
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %0, i32 noundef 234895363, i32 noundef 16, i32 noundef 18, i8 noundef zeroext 0, i32 noundef 0, i32 noundef 3) #4
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %0, i32 noundef 234895363, i32 noundef 20, i32 noundef 22, i8 noundef zeroext 0, i32 noundef 1, i32 noundef 3) #4
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %0, i32 noundef 234895363, i32 noundef 0, i32 noundef 1, i8 noundef zeroext 0, i32 noundef 2, i32 noundef 5) #4
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %0, i32 noundef 234911747, i32 noundef 0, i32 noundef 1, i8 noundef zeroext 0, i32 noundef 3, i32 noundef 5) #4
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %0, i32 noundef 234911747, i32 noundef 16, i32 noundef 18, i8 noundef zeroext 0, i32 noundef 10, i32 noundef 3) #4
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %0, i32 noundef 234911747, i32 noundef 20, i32 noundef 22, i8 noundef zeroext 0, i32 noundef 11, i32 noundef 3) #4
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %0, i32 noundef 234895363, i32 noundef 10, i32 noundef 11, i8 noundef zeroext 0, i32 noundef 4, i32 noundef 5) #4
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %0, i32 noundef 234911747, i32 noundef 10, i32 noundef 11, i8 noundef zeroext 0, i32 noundef 5, i32 noundef 5) #4
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %0, i32 noundef 234895363, i32 noundef 17, i32 noundef 19, i8 noundef zeroext 0, i32 noundef 12, i32 noundef 3) #4
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %0, i32 noundef 234895363, i32 noundef 21, i32 noundef 23, i8 noundef zeroext 0, i32 noundef 13, i32 noundef 3) #4
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %0, i32 noundef 234895363, i32 noundef 12, i32 noundef 13, i8 noundef zeroext 0, i32 noundef 6, i32 noundef 5) #4
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %0, i32 noundef 234911747, i32 noundef 12, i32 noundef 13, i8 noundef zeroext 0, i32 noundef 7, i32 noundef 5) #4
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %0, i32 noundef 234911747, i32 noundef 17, i32 noundef 19, i8 noundef zeroext 0, i32 noundef 14, i32 noundef 3) #4
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %0, i32 noundef 234911747, i32 noundef 21, i32 noundef 23, i8 noundef zeroext 0, i32 noundef 15, i32 noundef 3) #4
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %0, i32 noundef 234895363, i32 noundef 14, i32 noundef 15, i8 noundef zeroext 0, i32 noundef 8, i32 noundef 5) #4
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %0, i32 noundef 234911747, i32 noundef 14, i32 noundef 15, i8 noundef zeroext 0, i32 noundef 9, i32 noundef 5) #4
  %24 = getelementptr inbounds i8, ptr %7, i64 20
  %25 = load i32, ptr %24, align 4, !tbaa !16
  %26 = shl i32 %25, 4
  call void @libxsmm_generator_store_2dregblock_aarch64_asimd(ptr noundef %0, i32 noundef %3, i32 noundef %6, i32 noundef 2, i32 noundef 10, i32 noundef 4, i32 noundef 4, i32 noundef %26) #4
  %27 = load i32, ptr %21, align 4, !tbaa !14
  %28 = zext i32 %27 to i64
  %29 = shl nuw nsw i64 %28, 4
  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 %29) #4
  %30 = zext i32 %17 to i64
  %31 = load i32, ptr %24, align 4, !tbaa !16
  %32 = zext i32 %31 to i64
  %33 = mul nuw nsw i64 %32, %30
  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 %33) #4
  call void @libxsmm_generator_loop_footer_aarch64(ptr noundef %0, ptr noundef %1, i32 noundef %4, i32 noundef 4) #4
  %34 = zext i32 %14 to i64
  %35 = load i32, ptr %8, align 1, !tbaa !13
  %36 = zext i32 %35 to i64
  %37 = sub nsw i64 %34, %36
  %38 = shl nsw i64 %37, 2
  %39 = load i32, ptr %21, align 4, !tbaa !14
  %40 = zext i32 %39 to i64
  %41 = mul nsw i64 %38, %40
  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 %41) #4
  %42 = load i32, ptr %8, align 1, !tbaa !13
  %43 = lshr i32 %42, 2
  %44 = zext nneg i32 %43 to i64
  %45 = mul nuw nsw i64 %44, %30
  %46 = add nsw i64 %45, -64
  %47 = load i32, ptr %24, align 4, !tbaa !16
  %48 = zext i32 %47 to i64
  %49 = mul nsw i64 %46, %48
  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 %49) #4
  call void @libxsmm_generator_loop_footer_aarch64(ptr noundef %0, ptr noundef %1, i32 noundef %5, i32 noundef 16) #4
  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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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 = !{!6, !7, i64 4}
!13 = !{!6, !7, i64 0}
!14 = !{!15, !7, i64 8}
!15 = !{!"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}
!16 = !{!15, !7, i64 20}


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