; 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_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 }
%struct.libxsmm_meltw_descriptor = type <{ i32, i32, i32, i32, i32, i32, i8, i8, i8, i16, i16, i8 }>

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

declare void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef zeroext, 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_norm_padnm_mod2_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
  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
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  %21 = load ptr, ptr %17, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %21, i32 0, i32 2
  %23 = load i32, ptr %22, align 4, !tbaa !11
  %24 = icmp eq i32 %23, 8
  br i1 %24, label %25, label %26

25:                                               ; preds = %9
  store i32 6, ptr %19, align 4, !tbaa !9
  store i32 6, ptr %20, align 4, !tbaa !9
  br label %48

26:                                               ; preds = %9
  %27 = load ptr, ptr %17, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %27, i32 0, i32 2
  %29 = load i32, ptr %28, align 4, !tbaa !11
  %30 = icmp eq i32 %29, 4
  br i1 %30, label %31, label %32

31:                                               ; preds = %26
  store i32 4, ptr %19, align 4, !tbaa !9
  store i32 4, ptr %20, align 4, !tbaa !9
  br label %47

32:                                               ; preds = %26
  %33 = load ptr, ptr %17, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %33, i32 0, i32 2
  %35 = load i32, ptr %34, align 4, !tbaa !11
  %36 = icmp eq i32 %35, 2
  br i1 %36, label %37, label %38

37:                                               ; preds = %32
  store i32 2, ptr %19, align 4, !tbaa !9
  store i32 2, ptr %20, align 4, !tbaa !9
  br label %46

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

43:                                               ; preds = %38
  store i32 0, ptr %19, align 4, !tbaa !9
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %45

44:                                               ; preds = %38
  store i32 0, ptr %19, align 4, !tbaa !9
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %45

45:                                               ; preds = %44, %43
  br label %46

46:                                               ; preds = %45, %37
  br label %47

47:                                               ; preds = %46, %31
  br label %48

48:                                               ; preds = %47, %25
  %49 = load ptr, ptr %10, align 8, !tbaa !5
  %50 = load ptr, ptr %11, align 8, !tbaa !5
  %51 = load i32, ptr %15, 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 1
  %54 = load i32, ptr %53, align 1, !tbaa !13
  call void @libxsmm_generator_loop_header_aarch64(ptr noundef %49, ptr noundef %50, i32 noundef %51, i32 noundef %54)
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  %57 = load i32, ptr %14, align 4, !tbaa !9
  %58 = load ptr, ptr %18, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %58, i32 0, i32 0
  %60 = load i32, ptr %59, align 1, !tbaa !16
  call void @libxsmm_generator_loop_header_aarch64(ptr noundef %55, ptr noundef %56, i32 noundef %57, i32 noundef %60)
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  %62 = load i32, ptr %12, align 4, !tbaa !9
  %63 = load ptr, ptr %17, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %63, i32 0, i32 2
  %65 = load i32, ptr %64, align 4, !tbaa !11
  %66 = load i32, ptr %19, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %61, i32 noundef 1010828294, i32 noundef %62, i32 noundef 127, i32 noundef %65, i32 noundef 0, i32 noundef %66)
  %67 = load ptr, ptr %10, align 8, !tbaa !5
  %68 = load i32, ptr %13, align 4, !tbaa !9
  %69 = load ptr, ptr %17, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %69, i32 0, i32 5
  %71 = load i32, ptr %70, align 4, !tbaa !17
  %72 = load i32, ptr %20, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %67, i32 noundef 1006633990, i32 noundef %68, i32 noundef 127, i32 noundef %71, i32 noundef 0, i32 noundef %72)
  %73 = load ptr, ptr %10, align 8, !tbaa !5
  %74 = load ptr, ptr %11, align 8, !tbaa !5
  %75 = load i32, ptr %14, align 4, !tbaa !9
  call void @libxsmm_generator_loop_footer_aarch64(ptr noundef %73, ptr noundef %74, i32 noundef %75, i32 noundef 1)
  %76 = load ptr, ptr %18, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %76, i32 0, i32 10
  %78 = load i16, ptr %77, align 1, !tbaa !18
  %79 = zext i16 %78 to i32
  %80 = icmp eq i32 %79, 39
  br i1 %80, label %87, label %81

81:                                               ; preds = %48
  %82 = load ptr, ptr %18, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %82, i32 0, i32 10
  %84 = load i16, ptr %83, align 1, !tbaa !18
  %85 = zext i16 %84 to i32
  %86 = icmp eq i32 %85, 41
  br i1 %86, label %87, label %98

87:                                               ; preds = %81, %48
  %88 = load ptr, ptr %18, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %88, i32 0, i32 0
  %90 = load i32, ptr %89, align 1, !tbaa !16
  %91 = urem i32 %90, 2
  %92 = icmp eq i32 %91, 1
  br i1 %92, label %93, label %98

93:                                               ; preds = %87
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %94, i32 noundef 773856275, i32 noundef 1, i32 noundef 1, i8 noundef zeroext 0, i32 noundef 1, i32 noundef 1)
  %95 = load ptr, ptr %10, align 8, !tbaa !5
  %96 = load i32, ptr %13, align 4, !tbaa !9
  %97 = load i32, ptr %20, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %95, i32 noundef 1023410182, i32 noundef %96, i32 noundef 127, i32 noundef 0, i32 noundef 1, i32 noundef %97)
  br label %98

98:                                               ; preds = %93, %87, %81
  %99 = load ptr, ptr %10, align 8, !tbaa !5
  %100 = load i32, ptr %12, align 4, !tbaa !9
  %101 = load i32, ptr %16, align 4, !tbaa !9
  %102 = load i32, ptr %12, align 4, !tbaa !9
  %103 = load ptr, ptr %18, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %103, i32 0, i32 2
  %105 = load i32, ptr %104, align 1, !tbaa !19
  %106 = zext i32 %105 to i64
  %107 = load ptr, ptr %17, 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 !11
  %110 = zext i32 %109 to i64
  %111 = mul nsw i64 %106, %110
  %112 = load ptr, ptr %17, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %112, i32 0, i32 2
  %114 = load i32, ptr %113, align 4, !tbaa !11
  %115 = zext i32 %114 to i64
  %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 !16
  %119 = zext i32 %118 to i64
  %120 = mul nsw i64 %115, %119
  %121 = sub nsw i64 %111, %120
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %99, i32 noundef 4096, i32 noundef %100, i32 noundef %101, i32 noundef %102, 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 3
  %128 = load i32, ptr %127, align 1, !tbaa !20
  %129 = zext i32 %128 to i64
  %130 = load ptr, ptr %17, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %130, i32 0, i32 5
  %132 = load i32, ptr %131, align 4, !tbaa !17
  %133 = zext i32 %132 to i64
  %134 = mul 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 5
  %137 = load i32, ptr %136, align 4, !tbaa !17
  %138 = zext i32 %137 to i64
  %139 = load ptr, ptr %18, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %139, i32 0, i32 0
  %141 = load i32, ptr %140, align 1, !tbaa !16
  %142 = zext i32 %141 to i64
  %143 = mul nsw i64 %138, %142
  %144 = sub nsw i64 %134, %143
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %122, i32 noundef 4096, i32 noundef %123, i32 noundef %124, i32 noundef %125, i64 noundef %144)
  %145 = load ptr, ptr %10, align 8, !tbaa !5
  %146 = load ptr, ptr %11, align 8, !tbaa !5
  %147 = load i32, ptr %15, align 4, !tbaa !9
  call void @libxsmm_generator_loop_footer_aarch64(ptr noundef %145, ptr noundef %146, i32 noundef %147, i32 noundef 1)
  %148 = load ptr, ptr %18, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %148, i32 0, i32 10
  %150 = load i16, ptr %149, align 1, !tbaa !18
  %151 = zext i16 %150 to i32
  %152 = icmp eq i32 %151, 40
  br i1 %152, label %159, label %153

153:                                              ; preds = %98
  %154 = load ptr, ptr %18, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %154, i32 0, i32 10
  %156 = load i16, ptr %155, align 1, !tbaa !18
  %157 = zext i16 %156 to i32
  %158 = icmp eq i32 %157, 41
  br i1 %158, label %159, label %198

159:                                              ; preds = %153, %98
  %160 = load ptr, ptr %18, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %160, i32 0, i32 1
  %162 = load i32, ptr %161, align 1, !tbaa !13
  %163 = urem i32 %162, 2
  %164 = icmp eq i32 %163, 1
  br i1 %164, label %165, label %198

165:                                              ; preds = %159
  %166 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %166, i32 noundef 773856275, i32 noundef 1, i32 noundef 1, i8 noundef zeroext 0, i32 noundef 1, i32 noundef 1)
  %167 = load ptr, ptr %10, align 8, !tbaa !5
  %168 = load ptr, ptr %11, align 8, !tbaa !5
  %169 = load i32, ptr %14, align 4, !tbaa !9
  %170 = load ptr, ptr %18, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %170, i32 0, i32 0
  %172 = load i32, ptr %171, align 1, !tbaa !16
  call void @libxsmm_generator_loop_header_aarch64(ptr noundef %167, ptr noundef %168, i32 noundef %169, i32 noundef %172)
  %173 = load ptr, ptr %10, align 8, !tbaa !5
  %174 = load i32, ptr %13, align 4, !tbaa !9
  %175 = load ptr, ptr %17, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %175, i32 0, i32 5
  %177 = load i32, ptr %176, align 4, !tbaa !17
  %178 = load i32, ptr %20, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %173, i32 noundef 1006633990, i32 noundef %174, i32 noundef 127, i32 noundef %177, i32 noundef 1, i32 noundef %178)
  %179 = load ptr, ptr %10, align 8, !tbaa !5
  %180 = load ptr, ptr %11, align 8, !tbaa !5
  %181 = load i32, ptr %14, align 4, !tbaa !9
  call void @libxsmm_generator_loop_footer_aarch64(ptr noundef %179, ptr noundef %180, i32 noundef %181, i32 noundef 1)
  %182 = load ptr, ptr %18, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %182, i32 0, i32 10
  %184 = load i16, ptr %183, align 1, !tbaa !18
  %185 = zext i16 %184 to i32
  %186 = icmp eq i32 %185, 41
  br i1 %186, label %187, label %197

187:                                              ; preds = %165
  %188 = load ptr, ptr %18, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %188, i32 0, i32 0
  %190 = load i32, ptr %189, align 1, !tbaa !16
  %191 = urem i32 %190, 2
  %192 = icmp eq i32 %191, 1
  br i1 %192, label %193, label %197

193:                                              ; preds = %187
  %194 = load ptr, ptr %10, align 8, !tbaa !5
  %195 = load i32, ptr %13, align 4, !tbaa !9
  %196 = load i32, ptr %20, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %194, i32 noundef 1023410182, i32 noundef %195, i32 noundef 127, i32 noundef 0, i32 noundef 1, i32 noundef %196)
  br label %197

197:                                              ; preds = %193, %187, %165
  br label %198

198:                                              ; preds = %197, %159, %153
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  ret void
}

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_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}
!13 = !{!14, !10, i64 4}
!14 = !{!"libxsmm_meltw_descriptor", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !7, i64 24, !7, i64 25, !7, i64 26, !15, i64 27, !15, i64 29, !7, i64 31}
!15 = !{!"short", !7, i64 0}
!16 = !{!14, !10, i64 0}
!17 = !{!12, !10, i64 20}
!18 = !{!14, !15, i64 29}
!19 = !{!14, !10, i64 8}
!20 = !{!14, !10, i64 12}


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

@switch.table.libxsmm_generator_transform_norm_padnm_mod2_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_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_padnm_mod2_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 %7, i64 8
  %11 = load i32, ptr %10, align 4, !tbaa !5
  %switch.tableidx = add i32 %11, -1
  %12 = icmp ult i32 %switch.tableidx, 8
  br i1 %12, label %switch.lookup, label %14

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

14:                                               ; preds = %9, %switch.lookup
  %.0 = phi i32 [ %switch.load, %switch.lookup ], [ 0, %9 ]
  %15 = getelementptr inbounds i8, ptr %8, i64 4
  %16 = load i32, ptr %15, align 1, !tbaa !10
  tail call void @libxsmm_generator_loop_header_aarch64(ptr noundef %0, ptr noundef %1, i32 noundef %5, i32 noundef %16) #2
  %17 = 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 %17) #2
  %18 = load i32, ptr %10, align 4, !tbaa !5
  tail call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %0, i32 noundef 1010828294, i32 noundef %2, i32 noundef 127, i32 noundef %18, i32 noundef 0, i32 noundef %.0) #2
  %19 = getelementptr inbounds i8, ptr %7, i64 20
  %20 = load i32, ptr %19, align 4, !tbaa !14
  tail call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %0, i32 noundef 1006633990, i32 noundef %3, i32 noundef 127, i32 noundef %20, i32 noundef 0, i32 noundef %.0) #2
  tail call void @libxsmm_generator_loop_footer_aarch64(ptr noundef %0, ptr noundef %1, i32 noundef %4, i32 noundef 1) #2
  %21 = getelementptr inbounds i8, ptr %8, i64 29
  %22 = load i16, ptr %21, align 1, !tbaa !15
  switch i16 %22, label %27 [
    i16 39, label %23
    i16 41, label %23
  ]

23:                                               ; preds = %14, %14
  %24 = load i32, ptr %8, align 1, !tbaa !13
  %25 = and i32 %24, 1
  %.not = icmp eq i32 %25, 0
  br i1 %.not, label %27, label %26

26:                                               ; preds = %23
  tail call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %0, i32 noundef 773856275, i32 noundef 1, i32 noundef 1, i8 noundef zeroext 0, i32 noundef 1, i32 noundef 1) #2
  tail call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %0, i32 noundef 1023410182, i32 noundef %3, i32 noundef 127, i32 noundef 0, i32 noundef 1, i32 noundef %.0) #2
  br label %27

27:                                               ; preds = %14, %26, %23
  %28 = getelementptr inbounds i8, ptr %8, i64 8
  %29 = load i32, ptr %28, align 1, !tbaa !16
  %30 = zext i32 %29 to i64
  %31 = load i32, ptr %10, align 4, !tbaa !5
  %32 = zext i32 %31 to i64
  %33 = load i32, ptr %8, align 1, !tbaa !13
  %34 = zext i32 %33 to i64
  %35 = sub nsw i64 %30, %34
  %36 = mul i64 %35, %32
  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 %36) #2
  %37 = getelementptr inbounds i8, ptr %8, i64 12
  %38 = load i32, ptr %37, align 1, !tbaa !17
  %39 = zext i32 %38 to i64
  %40 = load i32, ptr %19, align 4, !tbaa !14
  %41 = zext i32 %40 to i64
  %42 = load i32, ptr %8, align 1, !tbaa !13
  %43 = zext i32 %42 to i64
  %44 = sub nsw i64 %39, %43
  %45 = mul i64 %44, %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 %45) #2
  tail call void @libxsmm_generator_loop_footer_aarch64(ptr noundef %0, ptr noundef %1, i32 noundef %5, i32 noundef 1) #2
  %46 = load i16, ptr %21, align 1, !tbaa !15
  %47 = and i16 %46, -2
  %switch = icmp eq i16 %47, 40
  br i1 %switch, label %48, label %60

48:                                               ; preds = %27
  %49 = load i32, ptr %15, align 1, !tbaa !10
  %50 = and i32 %49, 1
  %.not72 = icmp eq i32 %50, 0
  br i1 %.not72, label %60, label %51

51:                                               ; preds = %48
  tail call void @libxsmm_aarch64_instruction_asimd_compute(ptr noundef %0, i32 noundef 773856275, i32 noundef 1, i32 noundef 1, i8 noundef zeroext 0, i32 noundef 1, i32 noundef 1) #2
  %52 = 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 %52) #2
  %53 = load i32, ptr %19, align 4, !tbaa !14
  tail call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %0, i32 noundef 1006633990, i32 noundef %3, i32 noundef 127, i32 noundef %53, i32 noundef 1, i32 noundef %.0) #2
  tail call void @libxsmm_generator_loop_footer_aarch64(ptr noundef %0, ptr noundef %1, i32 noundef %4, i32 noundef 1) #2
  %54 = load i16, ptr %21, align 1, !tbaa !15
  %55 = icmp eq i16 %54, 41
  br i1 %55, label %56, label %60

56:                                               ; preds = %51
  %57 = load i32, ptr %8, align 1, !tbaa !13
  %58 = and i32 %57, 1
  %.not73 = icmp eq i32 %58, 0
  br i1 %.not73, label %60, label %59

59:                                               ; preds = %56
  tail call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %0, i32 noundef 1023410182, i32 noundef %3, i32 noundef 127, i32 noundef 0, i32 noundef 1, i32 noundef %.0) #2
  br label %60

60:                                               ; preds = %27, %51, %56, %59, %48
  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_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}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 4}
!11 = !{!"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, !12, i64 27, !12, i64 29, !8, i64 31}
!12 = !{!"short", !8, i64 0}
!13 = !{!11, !7, i64 0}
!14 = !{!6, !7, i64 20}
!15 = !{!11, !12, i64 29}
!16 = !{!11, !7, i64 8}
!17 = !{!11, !7, i64 12}


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