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

; 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 }>
%struct.libxsmm_generated_code = type { ptr, i32, i32, i32, i32, i32, i32 }

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

declare i32 @libxsmm_generator_mateltwise_is_binary_cmp_op(ptr 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_aarch64_instruction_asimd_move(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_configure_unary_aarch64_kernel_vregs_masks(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

declare void @libxsmm_aarch64_instruction_alu_compute_imm12(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef zeroext) #1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_configure_aarch64_kernel_vregs_masks(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) #2 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i8, align 1
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store i32 %3, ptr %11, align 4, !tbaa !9
  store i32 %4, ptr %12, align 4, !tbaa !9
  store i32 %5, ptr %13, align 4, !tbaa !9
  store i32 %6, ptr %14, align 4, !tbaa !9
  %16 = load ptr, ptr %9, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %16, i32 0, i32 18
  store i32 0, ptr %17, align 4, !tbaa !11
  %18 = load ptr, ptr %9, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %18, i32 0, i32 19
  store i32 2, ptr %19, align 4, !tbaa !13
  %20 = load ptr, ptr %9, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %20, i32 0, i32 20
  store i32 0, ptr %21, align 4, !tbaa !14
  %22 = load ptr, ptr %10, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %22, i32 0, i32 11
  %24 = load i8, ptr %23, align 1, !tbaa !15
  %25 = zext i8 %24 to i32
  %26 = icmp eq i32 %25, 1
  br i1 %26, label %27, label %42

27:                                               ; preds = %7
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = load ptr, ptr %9, align 8, !tbaa !5
  %30 = load ptr, ptr %10, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %30, i32 0, i32 10
  %32 = load i16, ptr %31, align 1, !tbaa !18
  %33 = zext i16 %32 to i32
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %34, i32 0, i32 9
  %36 = load i16, ptr %35, align 1, !tbaa !19
  %37 = zext i16 %36 to i32
  %38 = load i32, ptr %11, align 4, !tbaa !9
  %39 = load i32, ptr %12, align 4, !tbaa !9
  %40 = load i32, ptr %13, align 4, !tbaa !9
  %41 = load i32, ptr %14, align 4, !tbaa !9
  call void @libxsmm_configure_unary_aarch64_kernel_vregs_masks(ptr noundef %28, ptr noundef %29, i32 noundef %33, i32 noundef %37, i32 noundef %38, i32 noundef %39, i32 noundef %40, i32 noundef %41)
  br label %42

42:                                               ; preds = %27, %7
  %43 = load ptr, ptr %10, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %43, i32 0, i32 11
  %45 = load i8, ptr %44, align 1, !tbaa !15
  %46 = zext i8 %45 to i32
  %47 = icmp eq i32 %46, 2
  br i1 %47, label %54, label %48

48:                                               ; preds = %42
  %49 = load ptr, ptr %10, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %49, i32 0, i32 11
  %51 = load i8, ptr %50, align 1, !tbaa !15
  %52 = zext i8 %51 to i32
  %53 = icmp eq i32 %52, 3
  br i1 %53, label %54, label %200

54:                                               ; preds = %48, %42
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %55, i32 0, i32 18
  %57 = load i32, ptr %56, align 4, !tbaa !11
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %58, i32 0, i32 29
  store i32 %57, ptr %59, align 4, !tbaa !20
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %60, i32 0, i32 18
  %62 = load i32, ptr %61, align 4, !tbaa !11
  %63 = add i32 %62, 1
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %64, i32 0, i32 18
  store i32 %63, ptr %65, align 4, !tbaa !11
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %66, i32 0, i32 11
  %68 = load i8, ptr %67, align 1, !tbaa !15
  %69 = zext i8 %68 to i32
  %70 = icmp eq i32 %69, 3
  br i1 %70, label %71, label %77

71:                                               ; preds = %54
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %72, i32 0, i32 10
  %74 = load i16, ptr %73, align 1, !tbaa !18
  %75 = zext i16 %74 to i32
  %76 = icmp eq i32 %75, 3
  br i1 %76, label %87, label %77

77:                                               ; preds = %71, %54
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %78, i32 0, i32 11
  %80 = load i8, ptr %79, align 1, !tbaa !15
  %81 = zext i8 %80 to i32
  %82 = icmp eq i32 %81, 2
  br i1 %82, label %83, label %175

83:                                               ; preds = %77
  %84 = load ptr, ptr %10, align 8, !tbaa !5
  %85 = call i32 @libxsmm_generator_mateltwise_is_binary_cmp_op(ptr noundef %84)
  %86 = icmp ugt i32 %85, 0
  br i1 %86, label %87, label %175

87:                                               ; preds = %83, %71
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #3
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %88, i32 0, i32 6
  %90 = load i32, ptr %89, align 4, !tbaa !21
  %91 = icmp uge i32 %90, 2201
  br i1 %91, label %92, label %97

92:                                               ; preds = %87
  %93 = load ptr, ptr %8, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %93, i32 0, i32 6
  %95 = load i32, ptr %94, align 4, !tbaa !21
  %96 = icmp ule i32 %95, 2999
  br label %97

97:                                               ; preds = %92, %87
  %98 = phi i1 [ false, %87 ], [ %96, %92 ]
  %99 = zext i1 %98 to i32
  %100 = trunc i32 %99 to i8
  store i8 %100, ptr %15, align 1, !tbaa !23
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %101, i32 0, i32 18
  %103 = load i32, ptr %102, align 4, !tbaa !11
  %104 = load ptr, ptr %9, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %104, i32 0, i32 30
  store i32 %103, ptr %105, align 4, !tbaa !24
  %106 = load ptr, ptr %9, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %106, i32 0, i32 18
  %108 = load i32, ptr %107, align 4, !tbaa !11
  %109 = add i32 %108, 1
  %110 = load ptr, ptr %9, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %110, i32 0, i32 100
  store i32 %109, ptr %111, align 4, !tbaa !25
  %112 = load ptr, ptr %9, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %112, i32 0, i32 18
  %114 = load i32, ptr %113, align 4, !tbaa !11
  %115 = add i32 %114, 2
  %116 = load ptr, ptr %9, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %116, i32 0, i32 101
  store i32 %115, ptr %117, align 4, !tbaa !26
  %118 = load ptr, ptr %9, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %118, i32 0, i32 18
  %120 = load i32, ptr %119, align 4, !tbaa !11
  %121 = add i32 %120, 3
  %122 = load ptr, ptr %9, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %122, i32 0, i32 18
  store i32 %121, ptr %123, align 4, !tbaa !11
  %124 = load ptr, ptr %10, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %124, i32 0, i32 11
  %126 = load i8, ptr %125, align 1, !tbaa !15
  %127 = zext i8 %126 to i32
  %128 = icmp eq i32 %127, 2
  br i1 %128, label %129, label %145

129:                                              ; preds = %97
  %130 = load ptr, ptr %10, align 8, !tbaa !5
  %131 = call i32 @libxsmm_generator_mateltwise_is_binary_cmp_op(ptr noundef %130)
  %132 = icmp ugt i32 %131, 0
  br i1 %132, label %133, label %145

133:                                              ; preds = %129
  %134 = load ptr, ptr %9, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %134, i32 0, i32 18
  %136 = load i32, ptr %135, align 4, !tbaa !11
  %137 = load ptr, ptr %9, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %137, i32 0, i32 31
  store i32 %136, ptr %138, align 4, !tbaa !27
  %139 = load ptr, ptr %9, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %139, i32 0, i32 18
  %141 = load i32, ptr %140, align 4, !tbaa !11
  %142 = add i32 %141, 1
  %143 = load ptr, ptr %9, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %143, i32 0, i32 18
  store i32 %142, ptr %144, align 4, !tbaa !11
  br label %145

145:                                              ; preds = %133, %129, %97
  %146 = load i8, ptr %15, align 1, !tbaa !23
  %147 = zext i8 %146 to i32
  %148 = icmp eq i32 %147, 0
  br i1 %148, label %149, label %174

149:                                              ; preds = %145
  %150 = load ptr, ptr %8, align 8, !tbaa !5
  call void @libxsmm_aarch64_instruction_alu_compute_imm12(ptr noundef %150, i32 noundef 1358954502, i32 noundef 63, i32 noundef 63, i32 noundef 32, i8 noundef zeroext 0)
  %151 = load ptr, ptr %8, align 8, !tbaa !5
  %152 = load i32, ptr %11, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_alu_set_imm64(ptr noundef %151, i32 noundef %152, i64 noundef 8589934593)
  %153 = load ptr, ptr %8, align 8, !tbaa !5
  %154 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_alu_set_imm64(ptr noundef %153, i32 noundef %154, i64 noundef 34359738372)
  %155 = load ptr, ptr %8, align 8, !tbaa !5
  %156 = load i32, ptr %11, align 4, !tbaa !9
  %157 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_alu_pair_move(ptr noundef %155, i32 noundef 687865863, i32 noundef 63, i32 noundef 16, i32 noundef %156, i32 noundef %157)
  %158 = load ptr, ptr %8, align 8, !tbaa !5
  %159 = load ptr, ptr %9, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %159, i32 0, i32 100
  %161 = load i32, ptr %160, align 4, !tbaa !25
  call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %158, i32 noundef 1027604486, i32 noundef 63, i32 noundef 127, i32 noundef 16, i32 noundef %161, i32 noundef 1)
  %162 = load ptr, ptr %8, align 8, !tbaa !5
  %163 = load i32, ptr %11, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_alu_set_imm64(ptr noundef %162, i32 noundef %163, i64 noundef 137438953488)
  %164 = load ptr, ptr %8, align 8, !tbaa !5
  %165 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_alu_set_imm64(ptr noundef %164, i32 noundef %165, i64 noundef 549755813952)
  %166 = load ptr, ptr %8, align 8, !tbaa !5
  %167 = load i32, ptr %11, align 4, !tbaa !9
  %168 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_alu_pair_move(ptr noundef %166, i32 noundef 687865863, i32 noundef 63, i32 noundef 0, i32 noundef %167, i32 noundef %168)
  %169 = load ptr, ptr %8, align 8, !tbaa !5
  %170 = load ptr, ptr %9, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %170, i32 0, i32 101
  %172 = load i32, ptr %171, align 4, !tbaa !26
  call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %169, i32 noundef 1027604486, i32 noundef 63, i32 noundef 127, i32 noundef 0, i32 noundef %172, i32 noundef 1)
  %173 = load ptr, ptr %8, align 8, !tbaa !5
  call void @libxsmm_aarch64_instruction_alu_compute_imm12(ptr noundef %173, i32 noundef 285212678, i32 noundef 63, i32 noundef 63, i32 noundef 32, i8 noundef zeroext 0)
  br label %174

174:                                              ; preds = %149, %145
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #3
  br label %175

175:                                              ; preds = %174, %83, %77
  %176 = load ptr, ptr %10, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %176, i32 0, i32 11
  %178 = load i8, ptr %177, align 1, !tbaa !15
  %179 = zext i8 %178 to i32
  %180 = icmp eq i32 %179, 2
  br i1 %180, label %181, label %199

181:                                              ; preds = %175
  %182 = load ptr, ptr %10, 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, 5
  br i1 %186, label %187, label %199

187:                                              ; preds = %181
  %188 = load ptr, ptr %9, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %188, i32 0, i32 18
  %190 = load i32, ptr %189, align 4, !tbaa !11
  %191 = load ptr, ptr %9, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %191, i32 0, i32 30
  store i32 %190, ptr %192, align 4, !tbaa !24
  %193 = load ptr, ptr %9, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %193, i32 0, i32 18
  %195 = load i32, ptr %194, align 4, !tbaa !11
  %196 = add i32 %195, 1
  %197 = load ptr, ptr %9, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %197, i32 0, i32 18
  store i32 %196, ptr %198, align 4, !tbaa !11
  br label %199

199:                                              ; preds = %187, %181, %175
  br label %200

200:                                              ; preds = %199, %48
  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 72}
!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 = !{!12, !10, i64 76}
!14 = !{!12, !10, i64 80}
!15 = !{!16, !7, i64 31}
!16 = !{!"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, !17, i64 27, !17, i64 29, !7, i64 31}
!17 = !{!"short", !7, i64 0}
!18 = !{!16, !17, i64 29}
!19 = !{!16, !17, i64 27}
!20 = !{!12, !10, i64 116}
!21 = !{!22, !10, i64 28}
!22 = !{!"libxsmm_generated_code", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!23 = !{!7, !7, i64 0}
!24 = !{!12, !10, i64 120}
!25 = !{!12, !10, i64 400}
!26 = !{!12, !10, i64 404}
!27 = !{!12, !10, i64 124}


; 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 i32 @libxsmm_generator_mateltwise_is_binary_cmp_op(ptr 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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_configure_aarch64_kernel_vregs_masks(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) local_unnamed_addr #1 {
  %8 = getelementptr inbounds i8, ptr %1, i64 72
  store i32 0, ptr %8, align 4, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %1, i64 76
  store i32 2, ptr %9, align 4, !tbaa !10
  %10 = getelementptr inbounds i8, ptr %1, i64 80
  store i32 0, ptr %10, align 4, !tbaa !11
  %11 = getelementptr inbounds i8, ptr %2, i64 31
  %12 = load i8, ptr %11, align 1, !tbaa !12
  %13 = icmp eq i8 %12, 1
  br i1 %13, label %14, label %21

14:                                               ; preds = %7
  %15 = getelementptr inbounds i8, ptr %2, i64 29
  %16 = load i16, ptr %15, align 1, !tbaa !15
  %17 = zext i16 %16 to i32
  %18 = getelementptr inbounds i8, ptr %2, i64 27
  %19 = load i16, ptr %18, align 1, !tbaa !16
  %20 = zext i16 %19 to i32
  tail call void @libxsmm_configure_unary_aarch64_kernel_vregs_masks(ptr noundef %0, ptr noundef nonnull %1, i32 noundef %17, i32 noundef %20, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6)
  %.pr = load i8, ptr %11, align 1, !tbaa !12
  br label %21

21:                                               ; preds = %14, %7
  %22 = phi i8 [ %.pr, %14 ], [ %12, %7 ]
  %23 = and i8 %22, -2
  %switch = icmp eq i8 %23, 2
  br i1 %switch, label %24, label %69

24:                                               ; preds = %21
  %25 = load i32, ptr %8, align 4, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %1, i64 116
  store i32 %25, ptr %26, align 4, !tbaa !17
  %27 = add i32 %25, 1
  store i32 %27, ptr %8, align 4, !tbaa !5
  %28 = icmp eq i8 %22, 3
  br i1 %28, label %29, label %33

29:                                               ; preds = %24
  %30 = getelementptr inbounds i8, ptr %2, i64 29
  %31 = load i16, ptr %30, align 1, !tbaa !15
  %32 = icmp eq i16 %31, 3
  br i1 %32, label %36, label %58

33:                                               ; preds = %24
  %34 = tail call i32 @libxsmm_generator_mateltwise_is_binary_cmp_op(ptr noundef nonnull %2) #2
  %.not = icmp eq i32 %34, 0
  br i1 %.not, label %58, label %._crit_edge

._crit_edge:                                      ; preds = %33
  %.pre = load i32, ptr %8, align 4, !tbaa !5
  %.pre66 = load i8, ptr %11, align 1, !tbaa !12
  %35 = icmp eq i8 %.pre66, 2
  br label %36

36:                                               ; preds = %._crit_edge, %29
  %37 = phi i1 [ %35, %._crit_edge ], [ false, %29 ]
  %38 = phi i32 [ %.pre, %._crit_edge ], [ %27, %29 ]
  %39 = getelementptr inbounds i8, ptr %0, i64 28
  %40 = load i32, ptr %39, align 4, !tbaa !18
  %41 = add i32 %40, -3000
  %spec.select = icmp ult i32 %41, -799
  %42 = getelementptr inbounds i8, ptr %1, i64 120
  store i32 %38, ptr %42, align 4, !tbaa !21
  %43 = add i32 %38, 1
  %44 = getelementptr inbounds i8, ptr %1, i64 400
  store i32 %43, ptr %44, align 4, !tbaa !22
  %45 = add i32 %38, 2
  %46 = getelementptr inbounds i8, ptr %1, i64 404
  store i32 %45, ptr %46, align 4, !tbaa !23
  %47 = add i32 %38, 3
  store i32 %47, ptr %8, align 4, !tbaa !5
  br i1 %37, label %48, label %54

48:                                               ; preds = %36
  %49 = tail call i32 @libxsmm_generator_mateltwise_is_binary_cmp_op(ptr noundef nonnull %2) #2
  %.not65 = icmp eq i32 %49, 0
  br i1 %.not65, label %54, label %50

50:                                               ; preds = %48
  %51 = load i32, ptr %8, align 4, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %1, i64 124
  store i32 %51, ptr %52, align 4, !tbaa !24
  %53 = add i32 %51, 1
  store i32 %53, ptr %8, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %50, %48, %36
  br i1 %spec.select, label %55, label %58

55:                                               ; preds = %54
  tail call void @libxsmm_aarch64_instruction_alu_compute_imm12(ptr noundef nonnull %0, i32 noundef 1358954502, i32 noundef 63, i32 noundef 63, i32 noundef 32, i8 noundef zeroext 0) #2
  tail call void @libxsmm_aarch64_instruction_alu_set_imm64(ptr noundef nonnull %0, i32 noundef %3, i64 noundef 8589934593) #2
  tail call void @libxsmm_aarch64_instruction_alu_set_imm64(ptr noundef nonnull %0, i32 noundef %4, i64 noundef 34359738372) #2
  tail call void @libxsmm_aarch64_instruction_alu_pair_move(ptr noundef nonnull %0, i32 noundef 687865863, i32 noundef 63, i32 noundef 16, i32 noundef %3, i32 noundef %4) #2
  %56 = load i32, ptr %44, align 4, !tbaa !22
  tail call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef nonnull %0, i32 noundef 1027604486, i32 noundef 63, i32 noundef 127, i32 noundef 16, i32 noundef %56, i32 noundef 1) #2
  tail call void @libxsmm_aarch64_instruction_alu_set_imm64(ptr noundef nonnull %0, i32 noundef %3, i64 noundef 137438953488) #2
  tail call void @libxsmm_aarch64_instruction_alu_set_imm64(ptr noundef nonnull %0, i32 noundef %4, i64 noundef 549755813952) #2
  tail call void @libxsmm_aarch64_instruction_alu_pair_move(ptr noundef nonnull %0, i32 noundef 687865863, i32 noundef 63, i32 noundef 0, i32 noundef %3, i32 noundef %4) #2
  %57 = load i32, ptr %46, align 4, !tbaa !23
  tail call void @libxsmm_aarch64_instruction_asimd_move(ptr noundef nonnull %0, i32 noundef 1027604486, i32 noundef 63, i32 noundef 127, i32 noundef 0, i32 noundef %57, i32 noundef 1) #2
  tail call void @libxsmm_aarch64_instruction_alu_compute_imm12(ptr noundef nonnull %0, i32 noundef 285212678, i32 noundef 63, i32 noundef 63, i32 noundef 32, i8 noundef zeroext 0) #2
  br label %58

58:                                               ; preds = %29, %54, %55, %33
  %59 = load i8, ptr %11, align 1, !tbaa !12
  %60 = icmp eq i8 %59, 2
  br i1 %60, label %61, label %69

61:                                               ; preds = %58
  %62 = getelementptr inbounds i8, ptr %2, i64 29
  %63 = load i16, ptr %62, align 1, !tbaa !15
  %64 = icmp eq i16 %63, 5
  br i1 %64, label %65, label %69

65:                                               ; preds = %61
  %66 = load i32, ptr %8, align 4, !tbaa !5
  %67 = getelementptr inbounds i8, ptr %1, i64 120
  store i32 %66, ptr %67, align 4, !tbaa !21
  %68 = add i32 %66, 1
  store i32 %68, ptr %8, align 4, !tbaa !5
  br label %69

69:                                               ; preds = %21, %58, %61, %65
  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 72}
!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 = !{!6, !7, i64 76}
!11 = !{!6, !7, i64 80}
!12 = !{!13, !8, i64 31}
!13 = !{!"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, !14, i64 27, !14, i64 29, !8, i64 31}
!14 = !{!"short", !8, i64 0}
!15 = !{!13, !14, i64 29}
!16 = !{!13, !14, i64 27}
!17 = !{!6, !7, i64 116}
!18 = !{!19, !7, i64 28}
!19 = !{!"libxsmm_generated_code", !20, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28}
!20 = !{!"any pointer", !8, i64 0}
!21 = !{!6, !7, i64 120}
!22 = !{!6, !7, i64 400}
!23 = !{!6, !7, i64 404}
!24 = !{!6, !7, i64 124}


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