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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_transform_norm_to_vnni4_aarch64_asimd_Nmod4_Mmod8_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) #1 {
  %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
  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
  %19 = load ptr, ptr %10, align 8, !tbaa !5
  %20 = load ptr, ptr %11, align 8, !tbaa !5
  %21 = load i32, ptr %15, align 4, !tbaa !9
  %22 = load ptr, ptr %18, 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 !11
  call void @libxsmm_generator_loop_header_aarch64(ptr noundef %19, ptr noundef %20, i32 noundef %21, i32 noundef %24)
  %25 = load ptr, ptr %10, align 8, !tbaa !5
  %26 = load ptr, ptr %11, align 8, !tbaa !5
  %27 = load i32, ptr %14, align 4, !tbaa !9
  %28 = load ptr, ptr %18, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %28, i32 0, i32 0
  %30 = load i32, ptr %29, align 1, !tbaa !14
  call void @libxsmm_generator_loop_header_aarch64(ptr noundef %25, ptr noundef %26, i32 noundef %27, i32 noundef %30)
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  %32 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %31, i32 noundef 1027604486, i32 noundef %32, i32 noundef 127, i32 noundef 0, i32 noundef 0, i32 noundef 1)
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = load i32, ptr %12, align 4, !tbaa !9
  %35 = load i32, ptr %16, align 4, !tbaa !9
  %36 = load i32, ptr %12, align 4, !tbaa !9
  %37 = load ptr, ptr %18, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %37, i32 0, i32 2
  %39 = load i32, ptr %38, align 1, !tbaa !15
  %40 = zext i32 %39 to i64
  %41 = load ptr, ptr %17, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %41, i32 0, i32 2
  %43 = load i32, ptr %42, align 4, !tbaa !16
  %44 = zext i32 %43 to i64
  %45 = mul nsw i64 %40, %44
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %33, i32 noundef 4096, i32 noundef %34, i32 noundef %35, i32 noundef %36, i64 noundef %45)
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  %47 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %46, i32 noundef 1027604486, i32 noundef %47, i32 noundef 127, i32 noundef 0, i32 noundef 1, i32 noundef 1)
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  %49 = load i32, ptr %12, align 4, !tbaa !9
  %50 = load i32, ptr %16, align 4, !tbaa !9
  %51 = load i32, ptr %12, align 4, !tbaa !9
  %52 = load ptr, ptr %18, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %52, i32 0, i32 2
  %54 = load i32, ptr %53, align 1, !tbaa !15
  %55 = zext i32 %54 to i64
  %56 = load ptr, ptr %17, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %56, i32 0, i32 2
  %58 = load i32, ptr %57, align 4, !tbaa !16
  %59 = zext i32 %58 to i64
  %60 = mul nsw i64 %55, %59
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %48, i32 noundef 4096, i32 noundef %49, i32 noundef %50, i32 noundef %51, i64 noundef %60)
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  %62 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %61, i32 noundef 1027604486, i32 noundef %62, i32 noundef 127, i32 noundef 0, i32 noundef 2, i32 noundef 1)
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  %64 = load i32, ptr %12, align 4, !tbaa !9
  %65 = load i32, ptr %16, align 4, !tbaa !9
  %66 = load i32, ptr %12, align 4, !tbaa !9
  %67 = load ptr, ptr %18, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %67, i32 0, i32 2
  %69 = load i32, ptr %68, align 1, !tbaa !15
  %70 = zext i32 %69 to i64
  %71 = load ptr, ptr %17, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %71, i32 0, i32 2
  %73 = load i32, ptr %72, align 4, !tbaa !16
  %74 = zext i32 %73 to i64
  %75 = mul nsw i64 %70, %74
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %63, i32 noundef 4096, i32 noundef %64, i32 noundef %65, i32 noundef %66, i64 noundef %75)
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  %77 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %76, i32 noundef 1027604486, i32 noundef %77, i32 noundef 127, i32 noundef 0, i32 noundef 3, i32 noundef 1)
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %78, i32 noundef 234895363, i32 noundef 0, i32 noundef 1, i8 noundef zeroext 0, i32 noundef 4, i32 noundef 3)
  %79 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %79, i32 noundef 234895363, i32 noundef 2, i32 noundef 3, i8 noundef zeroext 0, i32 noundef 5, i32 noundef 3)
  %80 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %80, i32 noundef 234911747, i32 noundef 0, i32 noundef 1, i8 noundef zeroext 0, i32 noundef 6, i32 noundef 3)
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %81, i32 noundef 234911747, i32 noundef 2, i32 noundef 3, i8 noundef zeroext 0, i32 noundef 7, i32 noundef 3)
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %82, i32 noundef 234895363, i32 noundef 4, i32 noundef 5, i8 noundef zeroext 0, i32 noundef 8, i32 noundef 5)
  %83 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %83, i32 noundef 234911747, i32 noundef 4, i32 noundef 5, i8 noundef zeroext 0, i32 noundef 9, i32 noundef 5)
  %84 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %84, i32 noundef 234895363, i32 noundef 6, i32 noundef 7, i8 noundef zeroext 0, i32 noundef 10, i32 noundef 5)
  %85 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %85, i32 noundef 234911747, i32 noundef 6, i32 noundef 7, i8 noundef zeroext 0, i32 noundef 11, i32 noundef 5)
  %86 = load ptr, ptr %10, align 8, !tbaa !5
  %87 = load i32, ptr %13, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %86, i32 noundef 1006633990, i32 noundef %87, i32 noundef 127, i32 noundef 16, i32 noundef 8, i32 noundef 1)
  %88 = load ptr, ptr %10, align 8, !tbaa !5
  %89 = load i32, ptr %13, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %88, i32 noundef 1006633990, i32 noundef %89, i32 noundef 127, i32 noundef 16, i32 noundef 9, i32 noundef 1)
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  %91 = load i32, ptr %13, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %90, i32 noundef 1006633990, i32 noundef %91, i32 noundef 127, i32 noundef 16, i32 noundef 10, i32 noundef 1)
  %92 = load ptr, ptr %10, align 8, !tbaa !5
  %93 = load i32, ptr %13, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %92, i32 noundef 1006633990, i32 noundef %93, i32 noundef 127, i32 noundef 16, i32 noundef 11, i32 noundef 1)
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = load i32, ptr %12, align 4, !tbaa !9
  %96 = load i32, ptr %16, align 4, !tbaa !9
  %97 = load i32, ptr %12, align 4, !tbaa !9
  %98 = load ptr, ptr %18, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %98, i32 0, i32 2
  %100 = load i32, ptr %99, align 1, !tbaa !15
  %101 = zext i32 %100 to i64
  %102 = mul nsw i64 3, %101
  %103 = sub nsw i64 %102, 8
  %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 !16
  %107 = zext i32 %106 to i64
  %108 = mul nsw i64 %103, %107
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %94, i32 noundef 4097, i32 noundef %95, i32 noundef %96, i32 noundef %97, i64 noundef %108)
  %109 = load ptr, ptr %10, align 8, !tbaa !5
  %110 = load ptr, ptr %11, align 8, !tbaa !5
  %111 = load i32, ptr %14, align 4, !tbaa !9
  call void @libxsmm_generator_loop_footer_aarch64(ptr noundef %109, ptr noundef %110, i32 noundef %111, i32 noundef 8)
  %112 = load ptr, ptr %18, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %112, i32 0, i32 2
  %114 = load i32, ptr %113, align 1, !tbaa !15
  %115 = mul i32 4, %114
  %116 = load ptr, ptr %18, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %116, i32 0, i32 0
  %118 = load i32, ptr %117, align 1, !tbaa !14
  %119 = icmp ugt i32 %115, %118
  br i1 %119, label %120, label %140

120:                                              ; preds = %9
  %121 = load ptr, ptr %10, align 8, !tbaa !5
  %122 = load i32, ptr %12, align 4, !tbaa !9
  %123 = load i32, ptr %16, align 4, !tbaa !9
  %124 = load i32, ptr %12, align 4, !tbaa !9
  %125 = load ptr, ptr %18, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %125, i32 0, i32 2
  %127 = load i32, ptr %126, align 1, !tbaa !15
  %128 = zext i32 %127 to i64
  %129 = mul nsw i64 4, %128
  %130 = load ptr, ptr %18, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %130, i32 0, i32 0
  %132 = load i32, ptr %131, align 1, !tbaa !14
  %133 = zext i32 %132 to i64
  %134 = sub nsw i64 %129, %133
  %135 = load ptr, ptr %17, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %135, i32 0, i32 2
  %137 = load i32, ptr %136, align 4, !tbaa !16
  %138 = zext i32 %137 to i64
  %139 = mul nsw i64 %134, %138
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %121, i32 noundef 4096, i32 noundef %122, i32 noundef %123, i32 noundef %124, i64 noundef %139)
  br label %140

140:                                              ; preds = %120, %9
  %141 = load ptr, ptr %18, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %141, i32 0, i32 3
  %143 = load i32, ptr %142, align 1, !tbaa !18
  %144 = load ptr, ptr %18, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %144, i32 0, i32 0
  %146 = load i32, ptr %145, align 1, !tbaa !14
  %147 = icmp ugt i32 %143, %146
  br i1 %147, label %148, label %168

148:                                              ; preds = %140
  %149 = load ptr, ptr %10, align 8, !tbaa !5
  %150 = load i32, ptr %13, align 4, !tbaa !9
  %151 = load i32, ptr %16, align 4, !tbaa !9
  %152 = load i32, ptr %13, align 4, !tbaa !9
  %153 = load ptr, ptr %18, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %153, i32 0, i32 3
  %155 = load i32, ptr %154, align 1, !tbaa !18
  %156 = zext i32 %155 to i64
  %157 = load ptr, ptr %18, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %157, i32 0, i32 0
  %159 = load i32, ptr %158, align 1, !tbaa !14
  %160 = zext i32 %159 to i64
  %161 = sub nsw i64 %156, %160
  %162 = mul nsw i64 4, %161
  %163 = load ptr, ptr %17, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %163, i32 0, i32 5
  %165 = load i32, ptr %164, align 4, !tbaa !19
  %166 = zext i32 %165 to i64
  %167 = mul nsw i64 %162, %166
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %149, i32 noundef 4096, i32 noundef %150, i32 noundef %151, i32 noundef %152, i64 noundef %167)
  br label %168

168:                                              ; preds = %148, %140
  %169 = load ptr, ptr %10, align 8, !tbaa !5
  %170 = load ptr, ptr %11, align 8, !tbaa !5
  %171 = load i32, ptr %15, align 4, !tbaa !9
  call void @libxsmm_generator_loop_footer_aarch64(ptr noundef %169, ptr noundef %170, i32 noundef %171, i32 noundef 4)
  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" }

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

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 #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_norm_to_vnni4_aarch64_asimd_Nmod4_Mmod8_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 4
  %11 = load i32, ptr %10, align 1, !tbaa !5
  tail call void @libxsmm_generator_loop_header_aarch64(ptr noundef %0, ptr noundef %1, i32 noundef %5, i32 noundef %11) #2
  %12 = load i32, ptr %8, align 1, !tbaa !11
  tail call void @libxsmm_generator_loop_header_aarch64(ptr noundef %0, ptr noundef %1, i32 noundef %4, i32 noundef %12) #2
  tail call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %0, i32 noundef 1027604486, i32 noundef %2, i32 noundef 127, i32 noundef 0, i32 noundef 0, i32 noundef 1) #2
  %13 = getelementptr inbounds i8, ptr %8, i64 8
  %14 = load i32, ptr %13, align 1, !tbaa !12
  %15 = zext i32 %14 to i64
  %16 = getelementptr inbounds i8, ptr %7, i64 8
  %17 = load i32, ptr %16, align 4, !tbaa !13
  %18 = zext i32 %17 to i64
  %19 = mul nuw nsw i64 %18, %15
  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 %19) #2
  tail call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %0, i32 noundef 1027604486, i32 noundef %2, i32 noundef 127, i32 noundef 0, i32 noundef 1, i32 noundef 1) #2
  %20 = load i32, ptr %13, align 1, !tbaa !12
  %21 = zext i32 %20 to i64
  %22 = load i32, ptr %16, align 4, !tbaa !13
  %23 = zext i32 %22 to i64
  %24 = mul nuw nsw i64 %23, %21
  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 %24) #2
  tail call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %0, i32 noundef 1027604486, i32 noundef %2, i32 noundef 127, i32 noundef 0, i32 noundef 2, i32 noundef 1) #2
  %25 = load i32, ptr %13, align 1, !tbaa !12
  %26 = zext i32 %25 to i64
  %27 = load i32, ptr %16, align 4, !tbaa !13
  %28 = zext i32 %27 to i64
  %29 = mul nuw nsw i64 %28, %26
  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 %29) #2
  tail call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %0, i32 noundef 1027604486, i32 noundef %2, i32 noundef 127, i32 noundef 0, i32 noundef 3, i32 noundef 1) #2
  tail 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 4, i32 noundef 3) #2
  tail call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %0, i32 noundef 234895363, i32 noundef 2, i32 noundef 3, i8 noundef zeroext 0, i32 noundef 5, i32 noundef 3) #2
  tail 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 6, i32 noundef 3) #2
  tail call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %0, i32 noundef 234911747, i32 noundef 2, i32 noundef 3, i8 noundef zeroext 0, i32 noundef 7, i32 noundef 3) #2
  tail call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %0, i32 noundef 234895363, i32 noundef 4, i32 noundef 5, i8 noundef zeroext 0, i32 noundef 8, i32 noundef 5) #2
  tail call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %0, i32 noundef 234911747, i32 noundef 4, i32 noundef 5, i8 noundef zeroext 0, i32 noundef 9, i32 noundef 5) #2
  tail call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %0, i32 noundef 234895363, i32 noundef 6, i32 noundef 7, i8 noundef zeroext 0, i32 noundef 10, i32 noundef 5) #2
  tail call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %0, i32 noundef 234911747, i32 noundef 6, i32 noundef 7, i8 noundef zeroext 0, i32 noundef 11, i32 noundef 5) #2
  tail call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %0, i32 noundef 1006633990, i32 noundef %3, i32 noundef 127, i32 noundef 16, i32 noundef 8, i32 noundef 1) #2
  tail call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %0, i32 noundef 1006633990, i32 noundef %3, i32 noundef 127, i32 noundef 16, i32 noundef 9, i32 noundef 1) #2
  tail call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %0, i32 noundef 1006633990, i32 noundef %3, i32 noundef 127, i32 noundef 16, i32 noundef 10, i32 noundef 1) #2
  tail call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %0, i32 noundef 1006633990, i32 noundef %3, i32 noundef 127, i32 noundef 16, i32 noundef 11, i32 noundef 1) #2
  %30 = load i32, ptr %13, align 1, !tbaa !12
  %31 = zext i32 %30 to i64
  %32 = mul nuw nsw i64 %31, 3
  %33 = add nsw i64 %32, -8
  %34 = load i32, ptr %16, align 4, !tbaa !13
  %35 = zext i32 %34 to i64
  %36 = mul nsw i64 %33, %35
  tail call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef 4097, i32 noundef %2, i32 noundef %6, i32 noundef %2, i64 noundef %36) #2
  tail call void @libxsmm_generator_loop_footer_aarch64(ptr noundef %0, ptr noundef %1, i32 noundef %4, i32 noundef 8) #2
  %37 = load i32, ptr %13, align 1, !tbaa !12
  %38 = shl i32 %37, 2
  %39 = load i32, ptr %8, align 1, !tbaa !11
  %40 = icmp ugt i32 %38, %39
  br i1 %40, label %41, label %49

41:                                               ; preds = %9
  %42 = zext i32 %37 to i64
  %43 = shl nuw nsw i64 %42, 2
  %44 = zext i32 %39 to i64
  %45 = sub nsw i64 %43, %44
  %46 = load i32, ptr %16, align 4, !tbaa !13
  %47 = zext i32 %46 to i64
  %48 = mul nsw i64 %45, %47
  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 %48) #2
  %.pre = load i32, ptr %8, align 1, !tbaa !11
  br label %49

49:                                               ; preds = %41, %9
  %50 = phi i32 [ %.pre, %41 ], [ %39, %9 ]
  %51 = getelementptr inbounds i8, ptr %8, i64 12
  %52 = load i32, ptr %51, align 1, !tbaa !15
  %53 = icmp ugt i32 %52, %50
  br i1 %53, label %54, label %63

54:                                               ; preds = %49
  %55 = zext i32 %52 to i64
  %56 = zext i32 %50 to i64
  %57 = sub nsw i64 %55, %56
  %58 = shl nsw i64 %57, 2
  %59 = getelementptr inbounds i8, ptr %7, i64 20
  %60 = load i32, ptr %59, align 4, !tbaa !16
  %61 = zext i32 %60 to i64
  %62 = mul nsw i64 %58, %61
  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 %62) #2
  br label %63

63:                                               ; preds = %54, %49
  tail call void @libxsmm_generator_loop_footer_aarch64(ptr noundef %0, ptr noundef %1, i32 noundef %5, i32 noundef 4) #2
  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 4}
!6 = !{!"libxsmm_meltw_descriptor", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !8, i64 24, !8, i64 25, !8, i64 26, !10, i64 27, !10, i64 29, !8, i64 31}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"short", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!6, !7, i64 8}
!13 = !{!14, !7, i64 8}
!14 = !{!"libxsmm_mateltwise_kernel_config_struct", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !7, i64 148, !7, i64 152, !7, i64 156, !7, i64 160, !7, i64 164, !7, i64 168, !7, i64 172, !7, i64 176, !7, i64 180, !7, i64 184, !7, i64 188, !7, i64 192, !7, i64 196, !7, i64 200, !7, i64 204, !7, i64 208, !7, i64 212, !7, i64 216, !7, i64 220, !7, i64 224, !7, i64 228, !7, i64 232, !7, i64 236, !7, i64 240, !7, i64 244, !7, i64 248, !7, i64 252, !7, i64 256, !7, i64 260, !7, i64 264, !7, i64 268, !7, i64 272, !7, i64 276, !7, i64 280, !7, i64 284, !7, i64 288, !7, i64 292, !7, i64 296, !7, i64 300, !7, i64 304, !7, i64 308, !7, i64 312, !7, i64 316, !7, i64 320, !7, i64 324, !7, i64 328, !7, i64 332, !7, i64 336, !7, i64 340, !7, i64 344, !7, i64 348, !7, i64 352, !7, i64 356, !7, i64 360, !7, i64 364, !7, i64 368, !7, i64 372, !7, i64 376, !7, i64 380, !7, i64 384, !7, i64 388, !7, i64 392, !7, i64 396, !7, i64 400, !7, i64 404, !7, i64 408, !7, i64 412, !7, i64 416, !7, i64 420, !7, i64 424, !7, i64 428, !7, i64 432, !7, i64 436, !7, i64 440, !7, i64 444, !7, i64 448, !7, i64 452, !7, i64 456, !7, i64 460, !7, i64 464, !7, i64 468, !7, i64 472, !7, i64 476, !7, i64 480, !7, i64 484, !7, i64 488, !7, i64 492, !7, i64 496, !7, i64 500, !7, i64 504, !7, i64 508, !8, i64 512}
!15 = !{!6, !7, i64 12}
!16 = !{!14, !7, i64 20}


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