; LLVM IR from libxsmm/libxsmm :: src (generator_mateltwise_gather_scatter_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_jump_label_tracker_struct = type { [512 x i32], [512 x %struct.libxsmm_jump_source_struct] }
%struct.libxsmm_jump_source_struct = type { [512 x i32], [512 x i32], i32 }
%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 }
%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_mateltwise_gp_reg_mapping_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 }

@.str = external hidden unnamed_addr constant [99 x i8], align 1
@libxsmm_ninit = external global i32, align 4
@libxsmm_verbosity = external global i32, align 4
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@__PRETTY_FUNCTION__.libxsmm_generator_gather_scatter_offs_aarch64_microkernel = external hidden unnamed_addr constant [232 x i8], align 1
@__func__.libxsmm_generator_gather_scatter_offs_aarch64_microkernel = external hidden unnamed_addr constant [58 x i8], align 1

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

declare i32 @libxsmm_cpuid_vlen32(i32 noundef) #1

declare void @libxsmm_reset_jump_label_tracker(ptr noundef) #1

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

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

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

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gather_scatter_offs_aarch64_microkernel(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #3 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %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 i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i8, align 1
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca %struct.libxsmm_jump_label_tracker_struct, align 4
  %39 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 4, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 1, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 4, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 0, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  store i32 0, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %40 = load ptr, ptr %10, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %40, i32 0, i32 9
  %42 = load i16, ptr %41, align 1, !tbaa !11
  %43 = zext i16 %42 to i32
  %44 = and i32 %43, 256
  %45 = icmp sgt i32 %44, 0
  %46 = zext i1 %45 to i64
  %47 = select i1 %45, i32 8, i32 4
  store i32 %47, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  store i32 0, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  store i32 0, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  store i32 1, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  store i32 2, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  store i32 3, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #4
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %48, i32 0, i32 6
  %50 = load i32, ptr %49, align 4, !tbaa !14
  %51 = icmp uge i32 %50, 2201
  br i1 %51, label %52, label %57

52:                                               ; preds = %5
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %53, i32 0, i32 6
  %55 = load i32, ptr %54, align 4, !tbaa !14
  %56 = icmp ult i32 %55, 2501
  br label %57

57:                                               ; preds = %52, %5
  %58 = phi i1 [ false, %5 ], [ %56, %52 ]
  %59 = zext i1 %58 to i32
  %60 = trunc i32 %59 to i8
  store i8 %60, ptr %26, align 1, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %61, i32 0, i32 6
  %63 = load i32, ptr %62, align 4, !tbaa !14
  %64 = icmp ne i32 %63, 2501
  br i1 %64, label %65, label %71

65:                                               ; preds = %57
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %66, i32 0, i32 6
  %68 = load i32, ptr %67, align 4, !tbaa !14
  %69 = call i32 @libxsmm_cpuid_vlen32(i32 noundef %68)
  %70 = mul nsw i32 4, %69
  br label %72

71:                                               ; preds = %57
  br label %72

72:                                               ; preds = %71, %65
  %73 = phi i32 [ %70, %65 ], [ 16, %71 ]
  store i32 %73, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  %74 = load i32, ptr %27, align 4, !tbaa !9
  %75 = load i32, ptr %20, align 4, !tbaa !9
  %76 = udiv i32 %74, %75
  store i32 %76, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #4
  %77 = load i32, ptr %27, align 4, !tbaa !9
  %78 = load i32, ptr %20, align 4, !tbaa !9
  %79 = udiv i32 %77, %78
  store i32 %79, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #4
  store i32 1, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #4
  store i32 0, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #4
  store i32 0, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #4
  store i32 0, ptr %33, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #4
  store i32 0, ptr %34, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #4
  store i32 0, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #4
  store i32 32, ptr %36, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #4
  store i32 80, ptr %37, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2101248, ptr %38) #4
  call void @libxsmm_reset_jump_label_tracker(ptr noundef %38)
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %80, i32 0, i32 2
  %82 = load i32, ptr %81, align 4, !tbaa !17
  %83 = icmp eq i32 %82, 4
  br i1 %83, label %84, label %89

84:                                               ; preds = %72
  %85 = load i32, ptr %20, align 4, !tbaa !9
  %86 = icmp eq i32 %85, 4
  %87 = zext i1 %86 to i64
  %88 = select i1 %86, i32 -2061483901, i32 -983515005
  br label %94

89:                                               ; preds = %72
  %90 = load i32, ptr %20, align 4, !tbaa !9
  %91 = icmp eq i32 %90, 4
  %92 = zext i1 %91 to i64
  %93 = select i1 %91, i32 -2069872509, i32 -991903613
  br label %94

94:                                               ; preds = %89, %84
  %95 = phi i32 [ %88, %84 ], [ %93, %89 ]
  store i32 %95, ptr %21, align 4, !tbaa !9
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %96, i32 0, i32 2
  %98 = load i32, ptr %97, align 4, !tbaa !17
  %99 = icmp eq i32 %98, 4
  br i1 %99, label %100, label %105

100:                                              ; preds = %94
  %101 = load i32, ptr %20, align 4, !tbaa !9
  %102 = icmp eq i32 %101, 4
  %103 = zext i1 %102 to i64
  %104 = select i1 %102, i32 -446660477, i32 -450838397
  br label %110

105:                                              ; preds = %94
  %106 = load i32, ptr %20, align 4, !tbaa !9
  %107 = icmp eq i32 %106, 4
  %108 = zext i1 %107 to i64
  %109 = select i1 %107, i32 -455049085, i32 -459235197
  br label %110

110:                                              ; preds = %105, %100
  %111 = phi i32 [ %104, %100 ], [ %109, %105 ]
  store i32 %111, ptr %22, align 4, !tbaa !9
  %112 = load ptr, ptr %10, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %112, i32 0, i32 10
  %114 = load i16, ptr %113, align 1, !tbaa !19
  %115 = zext i16 %114 to i32
  %116 = icmp eq i32 %115, 51
  %117 = zext i1 %116 to i64
  %118 = select i1 %116, i32 1, i32 0
  store i32 %118, ptr %30, align 4, !tbaa !9
  %119 = load ptr, ptr %8, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %119, i32 0, i32 26
  store i32 40, ptr %120, align 4, !tbaa !20
  %121 = load ptr, ptr %8, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %121, i32 0, i32 27
  store i32 41, ptr %122, align 4, !tbaa !22
  %123 = load ptr, ptr %8, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %123, i32 0, i32 24
  store i32 42, ptr %124, align 4, !tbaa !23
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %125, i32 0, i32 25
  store i32 43, ptr %126, align 4, !tbaa !24
  %127 = load ptr, ptr %8, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %127, i32 0, i32 35
  store i32 48, ptr %128, align 4, !tbaa !25
  %129 = load ptr, ptr %8, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %129, i32 0, i32 36
  store i32 49, ptr %130, align 4, !tbaa !26
  store i32 44, ptr %35, align 4, !tbaa !9
  store i32 45, ptr %34, align 4, !tbaa !9
  store i32 44, ptr %33, align 4, !tbaa !9
  %131 = load i32, ptr %30, align 4, !tbaa !9
  %132 = icmp eq i32 %131, 1
  br i1 %132, label %133, label %161

133:                                              ; preds = %110
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = load ptr, ptr %8, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %135, i32 0, i32 0
  %137 = load i32, ptr %136, align 4, !tbaa !27
  %138 = load i32, ptr %36, align 4, !tbaa !9
  %139 = load i32, ptr %35, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_alu_move(ptr noundef %134, i32 noundef -1186988026, i32 noundef %137, i32 noundef 127, i32 noundef %138, i32 noundef %139)
  %140 = load ptr, ptr %6, align 8, !tbaa !5
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %141, i32 0, i32 0
  %143 = load i32, ptr %142, align 4, !tbaa !27
  %144 = load i32, ptr %36, align 4, !tbaa !9
  %145 = add nsw i32 %144, 8
  %146 = load ptr, ptr %8, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %146, i32 0, i32 27
  %148 = load i32, ptr %147, align 4, !tbaa !22
  call void @libxsmm_aarch64_instruction_alu_move(ptr noundef %140, i32 noundef -1186988026, i32 noundef %143, i32 noundef 127, i32 noundef %145, i32 noundef %148)
  %149 = load ptr, ptr %6, align 8, !tbaa !5
  %150 = load ptr, ptr %8, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %150, i32 0, i32 0
  %152 = load i32, ptr %151, align 4, !tbaa !27
  %153 = load i32, ptr %37, align 4, !tbaa !9
  %154 = load i32, ptr %34, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_alu_move(ptr noundef %149, i32 noundef -1186988026, i32 noundef %152, i32 noundef 127, i32 noundef %153, i32 noundef %154)
  %155 = load ptr, ptr %10, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %155, i32 0, i32 3
  %157 = load i32, ptr %156, align 1, !tbaa !28
  store i32 %157, ptr %31, align 4, !tbaa !9
  %158 = load ptr, ptr %9, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %158, i32 0, i32 5
  %160 = load i32, ptr %159, align 4, !tbaa !29
  store i32 %160, ptr %32, align 4, !tbaa !9
  br label %189

161:                                              ; preds = %110
  %162 = load ptr, ptr %6, align 8, !tbaa !5
  %163 = load ptr, ptr %8, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %163, i32 0, i32 0
  %165 = load i32, ptr %164, align 4, !tbaa !27
  %166 = load i32, ptr %36, align 4, !tbaa !9
  %167 = load i32, ptr %34, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_alu_move(ptr noundef %162, i32 noundef -1186988026, i32 noundef %165, i32 noundef 127, i32 noundef %166, i32 noundef %167)
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  %169 = load ptr, ptr %8, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %169, i32 0, i32 0
  %171 = load i32, ptr %170, align 4, !tbaa !27
  %172 = load i32, ptr %37, align 4, !tbaa !9
  %173 = load i32, ptr %35, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_alu_move(ptr noundef %168, i32 noundef -1186988026, i32 noundef %171, i32 noundef 127, i32 noundef %172, i32 noundef %173)
  %174 = load ptr, ptr %6, align 8, !tbaa !5
  %175 = load ptr, ptr %8, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %175, i32 0, i32 0
  %177 = load i32, ptr %176, align 4, !tbaa !27
  %178 = load i32, ptr %37, align 4, !tbaa !9
  %179 = add nsw i32 %178, 8
  %180 = load ptr, ptr %8, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %180, i32 0, i32 27
  %182 = load i32, ptr %181, align 4, !tbaa !22
  call void @libxsmm_aarch64_instruction_alu_move(ptr noundef %174, i32 noundef -1186988026, i32 noundef %177, i32 noundef 127, i32 noundef %179, i32 noundef %182)
  %183 = load ptr, ptr %10, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %183, i32 0, i32 2
  %185 = load i32, ptr %184, align 1, !tbaa !30
  store i32 %185, ptr %31, align 4, !tbaa !9
  %186 = load ptr, ptr %9, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %186, i32 0, i32 2
  %188 = load i32, ptr %187, align 4, !tbaa !17
  store i32 %188, ptr %32, align 4, !tbaa !9
  br label %189

189:                                              ; preds = %161, %133
  %190 = load ptr, ptr %10, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %190, i32 0, i32 0
  %192 = load i32, ptr %191, align 1, !tbaa !31
  store i32 %192, ptr %11, align 4, !tbaa !9
  %193 = load ptr, ptr %10, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %193, i32 0, i32 1
  %195 = load i32, ptr %194, align 1, !tbaa !32
  store i32 %195, ptr %12, align 4, !tbaa !9
  %196 = load i32, ptr %29, align 4, !tbaa !9
  %197 = icmp ne i32 0, %196
  br i1 %197, label %198, label %199

198:                                              ; preds = %189
  br label %200

199:                                              ; preds = %189
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str, i32 noundef 669, ptr noundef @__PRETTY_FUNCTION__.libxsmm_generator_gather_scatter_offs_aarch64_microkernel) #5
  unreachable

200:                                              ; preds = %198
  %201 = load i32, ptr %11, align 4, !tbaa !9
  %202 = load i32, ptr %29, align 4, !tbaa !9
  %203 = urem i32 %201, %202
  store i32 %203, ptr %13, align 4, !tbaa !9
  %204 = load i32, ptr %11, align 4, !tbaa !9
  %205 = load i32, ptr %29, align 4, !tbaa !9
  %206 = add i32 %204, %205
  %207 = sub i32 %206, 1
  %208 = load i32, ptr %29, align 4, !tbaa !9
  %209 = udiv i32 %207, %208
  store i32 %209, ptr %14, align 4, !tbaa !9
  %210 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %210, ptr %16, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %211

211:                                              ; preds = %216, %200
  %212 = load i32, ptr %12, align 4, !tbaa !9
  %213 = load i32, ptr %17, align 4, !tbaa !9
  %214 = urem i32 %212, %213
  %215 = icmp ugt i32 %214, 0
  br i1 %215, label %216, label %219

216:                                              ; preds = %211
  %217 = load i32, ptr %17, align 4, !tbaa !9
  %218 = add i32 %217, -1
  store i32 %218, ptr %17, align 4, !tbaa !9
  br label %211, !llvm.loop !33

219:                                              ; preds = %211
  %220 = load i8, ptr %26, align 1, !tbaa !16
  %221 = zext i8 %220 to i32
  %222 = icmp sgt i32 %221, 0
  br i1 %222, label %223, label %247

223:                                              ; preds = %219
  %224 = load ptr, ptr %6, align 8, !tbaa !5
  %225 = load ptr, ptr %8, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %225, i32 0, i32 35
  %227 = load i32, ptr %226, align 4, !tbaa !25
  call void @libxsmm_generator_set_p_register_aarch64_sve(ptr noundef %224, i32 noundef 0, i32 noundef -1, i32 noundef %227)
  %228 = load ptr, ptr %9, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %228, i32 0, i32 2
  %230 = load i32, ptr %229, align 4, !tbaa !17
  %231 = icmp eq i32 %230, 2
  br i1 %231, label %235, label %232

232:                                              ; preds = %223
  %233 = load i32, ptr %20, align 4, !tbaa !9
  %234 = icmp eq i32 %233, 8
  br i1 %234, label %235, label %246

235:                                              ; preds = %232, %223
  %236 = load ptr, ptr %6, align 8, !tbaa !5
  %237 = load i32, ptr %25, align 4, !tbaa !9
  %238 = load i32, ptr %29, align 4, !tbaa !9
  %239 = load ptr, ptr %9, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %239, i32 0, i32 2
  %241 = load i32, ptr %240, align 4, !tbaa !17
  %242 = mul i32 %238, %241
  %243 = load ptr, ptr %8, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %243, i32 0, i32 35
  %245 = load i32, ptr %244, align 4, !tbaa !25
  call void @libxsmm_generator_set_p_register_aarch64_sve(ptr noundef %236, i32 noundef %237, i32 noundef %242, i32 noundef %245)
  br label %246

246:                                              ; preds = %235, %232
  br label %247

247:                                              ; preds = %246, %219
  %248 = load i32, ptr %13, align 4, !tbaa !9
  %249 = icmp ugt i32 %248, 0
  br i1 %249, label %250, label %297

250:                                              ; preds = %247
  %251 = load i8, ptr %26, align 1, !tbaa !16
  %252 = zext i8 %251 to i32
  %253 = icmp sgt i32 %252, 0
  br i1 %253, label %254, label %293

254:                                              ; preds = %250
  %255 = load ptr, ptr %9, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %255, i32 0, i32 2
  %257 = load i32, ptr %256, align 4, !tbaa !17
  %258 = icmp eq i32 %257, 4
  br i1 %258, label %264, label %259

259:                                              ; preds = %254
  %260 = load ptr, ptr %9, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %260, i32 0, i32 2
  %262 = load i32, ptr %261, align 4, !tbaa !17
  %263 = icmp eq i32 %262, 2
  br i1 %263, label %264, label %283

264:                                              ; preds = %259, %254
  %265 = load ptr, ptr %6, align 8, !tbaa !5
  %266 = load i32, ptr %23, align 4, !tbaa !9
  %267 = load i32, ptr %13, align 4, !tbaa !9
  %268 = load ptr, ptr %9, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %268, i32 0, i32 2
  %270 = load i32, ptr %269, align 4, !tbaa !17
  %271 = mul i32 %267, %270
  %272 = load ptr, ptr %8, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %272, i32 0, i32 35
  %274 = load i32, ptr %273, align 4, !tbaa !25
  call void @libxsmm_generator_set_p_register_aarch64_sve(ptr noundef %265, i32 noundef %266, i32 noundef %271, i32 noundef %274)
  %275 = load ptr, ptr %6, align 8, !tbaa !5
  %276 = load i32, ptr %24, align 4, !tbaa !9
  %277 = load i32, ptr %13, align 4, !tbaa !9
  %278 = load i32, ptr %20, align 4, !tbaa !9
  %279 = mul i32 %277, %278
  %280 = load ptr, ptr %8, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %280, i32 0, i32 35
  %282 = load i32, ptr %281, align 4, !tbaa !25
  call void @libxsmm_generator_set_p_register_aarch64_sve(ptr noundef %275, i32 noundef %276, i32 noundef %279, i32 noundef %282)
  br label %292

283:                                              ; preds = %259
  %284 = load ptr, ptr %6, align 8, !tbaa !5
  %285 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %286 = icmp ult i32 1, %285
  br i1 %286, label %287, label %289

287:                                              ; preds = %283
  %288 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %290

289:                                              ; preds = %283
  br label %290

290:                                              ; preds = %289, %287
  %291 = phi i32 [ %288, %287 ], [ 1, %289 ]
  call void @libxsmm_handle_error(ptr noundef %284, i32 noundef 90033, ptr noundef @__func__.libxsmm_generator_gather_scatter_offs_aarch64_microkernel, ptr noundef @.str, i32 noundef 695, i32 noundef %291)
  store i32 1, ptr %39, align 4
  br label %597

292:                                              ; preds = %264
  br label %296

293:                                              ; preds = %250
  %294 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %294, ptr %23, align 4, !tbaa !9
  %295 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %295, ptr %24, align 4, !tbaa !9
  br label %296

296:                                              ; preds = %293, %292
  br label %297

297:                                              ; preds = %296, %247
  %298 = load i32, ptr %16, align 4, !tbaa !9
  %299 = load i32, ptr %15, align 4, !tbaa !9
  %300 = icmp ugt i32 %298, %299
  br i1 %300, label %301, label %325

301:                                              ; preds = %297
  %302 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %302, ptr %16, align 4, !tbaa !9
  %303 = load i32, ptr %14, align 4, !tbaa !9
  %304 = load i32, ptr %16, align 4, !tbaa !9
  %305 = udiv i32 %303, %304
  store i32 %305, ptr %18, align 4, !tbaa !9
  %306 = load i32, ptr %14, align 4, !tbaa !9
  %307 = load i32, ptr %16, align 4, !tbaa !9
  %308 = load i32, ptr %18, align 4, !tbaa !9
  %309 = mul i32 %307, %308
  %310 = sub i32 %306, %309
  store i32 %310, ptr %19, align 4, !tbaa !9
  %311 = load i32, ptr %13, align 4, !tbaa !9
  %312 = icmp ugt i32 %311, 0
  br i1 %312, label %313, label %324

313:                                              ; preds = %301
  %314 = load i32, ptr %19, align 4, !tbaa !9
  %315 = icmp eq i32 %314, 0
  br i1 %315, label %316, label %324

316:                                              ; preds = %313
  %317 = load i32, ptr %18, align 4, !tbaa !9
  %318 = add i32 %317, -1
  store i32 %318, ptr %18, align 4, !tbaa !9
  %319 = load i32, ptr %14, align 4, !tbaa !9
  %320 = load i32, ptr %16, align 4, !tbaa !9
  %321 = load i32, ptr %18, align 4, !tbaa !9
  %322 = mul i32 %320, %321
  %323 = sub i32 %319, %322
  store i32 %323, ptr %19, align 4, !tbaa !9
  br label %324

324:                                              ; preds = %316, %313, %301
  br label %340

325:                                              ; preds = %297
  %326 = load i32, ptr %13, align 4, !tbaa !9
  %327 = icmp ugt i32 %326, 0
  br i1 %327, label %328, label %339

328:                                              ; preds = %325
  %329 = load i32, ptr %19, align 4, !tbaa !9
  %330 = icmp eq i32 %329, 0
  br i1 %330, label %331, label %339

331:                                              ; preds = %328
  %332 = load i32, ptr %18, align 4, !tbaa !9
  %333 = add i32 %332, -1
  store i32 %333, ptr %18, align 4, !tbaa !9
  %334 = load i32, ptr %14, align 4, !tbaa !9
  %335 = load i32, ptr %16, align 4, !tbaa !9
  %336 = load i32, ptr %18, align 4, !tbaa !9
  %337 = mul i32 %335, %336
  %338 = sub i32 %334, %337
  store i32 %338, ptr %19, align 4, !tbaa !9
  br label %339

339:                                              ; preds = %331, %328, %325
  br label %340

340:                                              ; preds = %339, %324
  %341 = load i32, ptr %18, align 4, !tbaa !9
  %342 = icmp uge i32 %341, 1
  br i1 %342, label %343, label %526

343:                                              ; preds = %340
  %344 = load ptr, ptr %6, align 8, !tbaa !5
  %345 = load ptr, ptr %7, align 8, !tbaa !5
  %346 = load ptr, ptr %8, align 8, !tbaa !5
  %347 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %346, i32 0, i32 25
  %348 = load i32, ptr %347, align 4, !tbaa !24
  %349 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_generator_loop_header_aarch64(ptr noundef %344, ptr noundef %345, i32 noundef %348, i32 noundef %349)
  %350 = load ptr, ptr %6, align 8, !tbaa !5
  %351 = load ptr, ptr %7, align 8, !tbaa !5
  %352 = load ptr, ptr %8, align 8, !tbaa !5
  %353 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %352, i32 0, i32 24
  %354 = load i32, ptr %353, align 4, !tbaa !23
  %355 = load i32, ptr %18, align 4, !tbaa !9
  call void @libxsmm_generator_loop_header_aarch64(ptr noundef %350, ptr noundef %351, i32 noundef %354, i32 noundef %355)
  %356 = load ptr, ptr %6, align 8, !tbaa !5
  %357 = load ptr, ptr %8, align 8, !tbaa !5
  %358 = load i32, ptr %16, align 4, !tbaa !9
  %359 = load i32, ptr %17, align 4, !tbaa !9
  %360 = load ptr, ptr %8, align 8, !tbaa !5
  %361 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %360, i32 0, i32 27
  %362 = load i32, ptr %361, align 4, !tbaa !22
  %363 = load i32, ptr %28, align 4, !tbaa !9
  %364 = load i32, ptr %20, align 4, !tbaa !9
  %365 = load i32, ptr %24, align 4, !tbaa !9
  %366 = load i32, ptr %11, align 4, !tbaa !9
  %367 = load i32, ptr %21, align 4, !tbaa !9
  %368 = load i32, ptr %22, align 4, !tbaa !9
  %369 = load i32, ptr %29, align 4, !tbaa !9
  %370 = load i32, ptr %23, align 4, !tbaa !9
  %371 = load i32, ptr %25, align 4, !tbaa !9
  %372 = load i32, ptr %30, align 4, !tbaa !9
  %373 = load i32, ptr %33, align 4, !tbaa !9
  %374 = load i32, ptr %34, align 4, !tbaa !9
  %375 = load i32, ptr %32, align 4, !tbaa !9
  %376 = load i32, ptr %31, align 4, !tbaa !9
  call void @libxsmm_generator_gather_scatter_offs_aarch64_mn_loop_unrolled(ptr noundef %356, ptr noundef %357, i32 noundef %358, i32 noundef %359, i32 noundef %362, i32 noundef %363, i32 noundef %364, i32 noundef %365, i32 noundef %366, i32 noundef %367, i32 noundef %368, i32 noundef %369, i32 noundef 0, i32 noundef %370, i32 noundef %371, i32 noundef %372, i32 noundef %373, i32 noundef %374, i32 noundef %375, i32 noundef %376)
  %377 = load ptr, ptr %6, align 8, !tbaa !5
  %378 = load i32, ptr %34, align 4, !tbaa !9
  %379 = load ptr, ptr %8, align 8, !tbaa !5
  %380 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %379, i32 0, i32 35
  %381 = load i32, ptr %380, align 4, !tbaa !25
  %382 = load i32, ptr %34, align 4, !tbaa !9
  %383 = load i32, ptr %16, align 4, !tbaa !9
  %384 = zext i32 %383 to i64
  %385 = load i32, ptr %29, align 4, !tbaa !9
  %386 = zext i32 %385 to i64
  %387 = mul nsw i64 %384, %386
  %388 = load i32, ptr %32, align 4, !tbaa !9
  %389 = zext i32 %388 to i64
  %390 = mul nsw i64 %387, %389
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %377, i32 noundef 4096, i32 noundef %378, i32 noundef %381, i32 noundef %382, i64 noundef %390)
  %391 = load ptr, ptr %6, align 8, !tbaa !5
  %392 = load ptr, ptr %8, align 8, !tbaa !5
  %393 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %392, i32 0, i32 27
  %394 = load i32, ptr %393, align 4, !tbaa !22
  %395 = load ptr, ptr %8, align 8, !tbaa !5
  %396 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %395, i32 0, i32 35
  %397 = load i32, ptr %396, align 4, !tbaa !25
  %398 = load ptr, ptr %8, align 8, !tbaa !5
  %399 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %398, i32 0, i32 27
  %400 = load i32, ptr %399, align 4, !tbaa !22
  %401 = load i32, ptr %16, align 4, !tbaa !9
  %402 = zext i32 %401 to i64
  %403 = load i32, ptr %20, align 4, !tbaa !9
  %404 = zext i32 %403 to i64
  %405 = mul nsw i64 %402, %404
  %406 = load i32, ptr %28, align 4, !tbaa !9
  %407 = zext i32 %406 to i64
  %408 = mul nsw i64 %405, %407
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %391, i32 noundef 4096, i32 noundef %394, i32 noundef %397, i32 noundef %400, i64 noundef %408)
  %409 = load ptr, ptr %6, align 8, !tbaa !5
  %410 = load ptr, ptr %7, align 8, !tbaa !5
  %411 = load ptr, ptr %8, align 8, !tbaa !5
  %412 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %411, i32 0, i32 24
  %413 = load i32, ptr %412, align 4, !tbaa !23
  call void @libxsmm_generator_loop_footer_aarch64(ptr noundef %409, ptr noundef %410, i32 noundef %413, i32 noundef 1)
  %414 = load ptr, ptr %6, align 8, !tbaa !5
  %415 = load i32, ptr %34, align 4, !tbaa !9
  %416 = load ptr, ptr %8, align 8, !tbaa !5
  %417 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %416, i32 0, i32 35
  %418 = load i32, ptr %417, align 4, !tbaa !25
  %419 = load i32, ptr %34, align 4, !tbaa !9
  %420 = load i32, ptr %17, align 4, !tbaa !9
  %421 = zext i32 %420 to i64
  %422 = load i32, ptr %31, align 4, !tbaa !9
  %423 = zext i32 %422 to i64
  %424 = mul nsw i64 %421, %423
  %425 = load i32, ptr %18, align 4, !tbaa !9
  %426 = zext i32 %425 to i64
  %427 = load i32, ptr %16, align 4, !tbaa !9
  %428 = zext i32 %427 to i64
  %429 = mul nsw i64 %426, %428
  %430 = load i32, ptr %29, align 4, !tbaa !9
  %431 = zext i32 %430 to i64
  %432 = mul nsw i64 %429, %431
  %433 = sub nsw i64 %424, %432
  %434 = load i32, ptr %32, align 4, !tbaa !9
  %435 = zext i32 %434 to i64
  %436 = mul nsw i64 %433, %435
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %414, i32 noundef 4096, i32 noundef %415, i32 noundef %418, i32 noundef %419, i64 noundef %436)
  %437 = load ptr, ptr %6, align 8, !tbaa !5
  %438 = load ptr, ptr %8, align 8, !tbaa !5
  %439 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %438, i32 0, i32 27
  %440 = load i32, ptr %439, align 4, !tbaa !22
  %441 = load ptr, ptr %8, align 8, !tbaa !5
  %442 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %441, i32 0, i32 35
  %443 = load i32, ptr %442, align 4, !tbaa !25
  %444 = load ptr, ptr %8, align 8, !tbaa !5
  %445 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %444, i32 0, i32 27
  %446 = load i32, ptr %445, align 4, !tbaa !22
  %447 = load i32, ptr %17, align 4, !tbaa !9
  %448 = zext i32 %447 to i64
  %449 = load i32, ptr %11, align 4, !tbaa !9
  %450 = zext i32 %449 to i64
  %451 = mul nsw i64 %448, %450
  %452 = load i32, ptr %18, align 4, !tbaa !9
  %453 = zext i32 %452 to i64
  %454 = load i32, ptr %16, align 4, !tbaa !9
  %455 = zext i32 %454 to i64
  %456 = mul nsw i64 %453, %455
  %457 = load i32, ptr %28, align 4, !tbaa !9
  %458 = zext i32 %457 to i64
  %459 = mul nsw i64 %456, %458
  %460 = sub nsw i64 %451, %459
  %461 = load i32, ptr %20, align 4, !tbaa !9
  %462 = zext i32 %461 to i64
  %463 = mul nsw i64 %460, %462
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %437, i32 noundef 4096, i32 noundef %440, i32 noundef %443, i32 noundef %446, i64 noundef %463)
  %464 = load ptr, ptr %6, align 8, !tbaa !5
  %465 = load ptr, ptr %7, align 8, !tbaa !5
  %466 = load ptr, ptr %8, align 8, !tbaa !5
  %467 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %466, i32 0, i32 25
  %468 = load i32, ptr %467, align 4, !tbaa !24
  %469 = load i32, ptr %17, align 4, !tbaa !9
  call void @libxsmm_generator_loop_footer_aarch64(ptr noundef %464, ptr noundef %465, i32 noundef %468, i32 noundef %469)
  %470 = load ptr, ptr %6, align 8, !tbaa !5
  %471 = load i32, ptr %34, align 4, !tbaa !9
  %472 = load ptr, ptr %8, align 8, !tbaa !5
  %473 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %472, i32 0, i32 35
  %474 = load i32, ptr %473, align 4, !tbaa !25
  %475 = load i32, ptr %34, align 4, !tbaa !9
  %476 = load i32, ptr %31, align 4, !tbaa !9
  %477 = zext i32 %476 to i64
  %478 = load i32, ptr %32, align 4, !tbaa !9
  %479 = zext i32 %478 to i64
  %480 = mul nsw i64 %477, %479
  %481 = load i32, ptr %12, align 4, !tbaa !9
  %482 = zext i32 %481 to i64
  %483 = mul nsw i64 %480, %482
  %484 = load i32, ptr %18, align 4, !tbaa !9
  %485 = zext i32 %484 to i64
  %486 = load i32, ptr %16, align 4, !tbaa !9
  %487 = zext i32 %486 to i64
  %488 = mul nsw i64 %485, %487
  %489 = load i32, ptr %29, align 4, !tbaa !9
  %490 = zext i32 %489 to i64
  %491 = mul nsw i64 %488, %490
  %492 = load i32, ptr %32, align 4, !tbaa !9
  %493 = zext i32 %492 to i64
  %494 = mul nsw i64 %491, %493
  %495 = sub nsw i64 %483, %494
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %470, i32 noundef 4097, i32 noundef %471, i32 noundef %474, i32 noundef %475, i64 noundef %495)
  %496 = load ptr, ptr %6, align 8, !tbaa !5
  %497 = load ptr, ptr %8, align 8, !tbaa !5
  %498 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %497, i32 0, i32 27
  %499 = load i32, ptr %498, align 4, !tbaa !22
  %500 = load ptr, ptr %8, align 8, !tbaa !5
  %501 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %500, i32 0, i32 35
  %502 = load i32, ptr %501, align 4, !tbaa !25
  %503 = load ptr, ptr %8, align 8, !tbaa !5
  %504 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %503, i32 0, i32 27
  %505 = load i32, ptr %504, align 4, !tbaa !22
  %506 = load i32, ptr %11, align 4, !tbaa !9
  %507 = zext i32 %506 to i64
  %508 = load i32, ptr %20, align 4, !tbaa !9
  %509 = zext i32 %508 to i64
  %510 = mul nsw i64 %507, %509
  %511 = load i32, ptr %12, align 4, !tbaa !9
  %512 = zext i32 %511 to i64
  %513 = mul nsw i64 %510, %512
  %514 = load i32, ptr %18, align 4, !tbaa !9
  %515 = zext i32 %514 to i64
  %516 = load i32, ptr %16, align 4, !tbaa !9
  %517 = zext i32 %516 to i64
  %518 = mul nsw i64 %515, %517
  %519 = load i32, ptr %28, align 4, !tbaa !9
  %520 = zext i32 %519 to i64
  %521 = mul nsw i64 %518, %520
  %522 = load i32, ptr %20, align 4, !tbaa !9
  %523 = zext i32 %522 to i64
  %524 = mul nsw i64 %521, %523
  %525 = sub nsw i64 %513, %524
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %496, i32 noundef 4097, i32 noundef %499, i32 noundef %502, i32 noundef %505, i64 noundef %525)
  br label %526

526:                                              ; preds = %343, %340
  %527 = load i32, ptr %19, align 4, !tbaa !9
  %528 = icmp ugt i32 %527, 0
  br i1 %528, label %529, label %596

529:                                              ; preds = %526
  %530 = load ptr, ptr %6, align 8, !tbaa !5
  %531 = load ptr, ptr %7, align 8, !tbaa !5
  %532 = load ptr, ptr %8, align 8, !tbaa !5
  %533 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %532, i32 0, i32 25
  %534 = load i32, ptr %533, align 4, !tbaa !24
  %535 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_generator_loop_header_aarch64(ptr noundef %530, ptr noundef %531, i32 noundef %534, i32 noundef %535)
  %536 = load ptr, ptr %6, align 8, !tbaa !5
  %537 = load ptr, ptr %8, align 8, !tbaa !5
  %538 = load i32, ptr %19, align 4, !tbaa !9
  %539 = load i32, ptr %17, align 4, !tbaa !9
  %540 = load ptr, ptr %8, align 8, !tbaa !5
  %541 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %540, i32 0, i32 27
  %542 = load i32, ptr %541, align 4, !tbaa !22
  %543 = load i32, ptr %28, align 4, !tbaa !9
  %544 = load i32, ptr %20, align 4, !tbaa !9
  %545 = load i32, ptr %24, align 4, !tbaa !9
  %546 = load i32, ptr %11, align 4, !tbaa !9
  %547 = load i32, ptr %21, align 4, !tbaa !9
  %548 = load i32, ptr %22, align 4, !tbaa !9
  %549 = load i32, ptr %29, align 4, !tbaa !9
  %550 = load i32, ptr %13, align 4, !tbaa !9
  %551 = load i32, ptr %23, align 4, !tbaa !9
  %552 = load i32, ptr %25, align 4, !tbaa !9
  %553 = load i32, ptr %30, align 4, !tbaa !9
  %554 = load i32, ptr %33, align 4, !tbaa !9
  %555 = load i32, ptr %34, align 4, !tbaa !9
  %556 = load i32, ptr %32, align 4, !tbaa !9
  %557 = load i32, ptr %31, align 4, !tbaa !9
  call void @libxsmm_generator_gather_scatter_offs_aarch64_mn_loop_unrolled(ptr noundef %536, ptr noundef %537, i32 noundef %538, i32 noundef %539, i32 noundef %542, i32 noundef %543, i32 noundef %544, i32 noundef %545, i32 noundef %546, i32 noundef %547, i32 noundef %548, i32 noundef %549, i32 noundef %550, i32 noundef %551, i32 noundef %552, i32 noundef %553, i32 noundef %554, i32 noundef %555, i32 noundef %556, i32 noundef %557)
  %558 = load ptr, ptr %6, align 8, !tbaa !5
  %559 = load i32, ptr %34, align 4, !tbaa !9
  %560 = load ptr, ptr %8, align 8, !tbaa !5
  %561 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %560, i32 0, i32 35
  %562 = load i32, ptr %561, align 4, !tbaa !25
  %563 = load i32, ptr %34, align 4, !tbaa !9
  %564 = load i32, ptr %17, align 4, !tbaa !9
  %565 = zext i32 %564 to i64
  %566 = load i32, ptr %31, align 4, !tbaa !9
  %567 = zext i32 %566 to i64
  %568 = mul nsw i64 %565, %567
  %569 = load i32, ptr %32, align 4, !tbaa !9
  %570 = zext i32 %569 to i64
  %571 = mul nsw i64 %568, %570
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %558, i32 noundef 4096, i32 noundef %559, i32 noundef %562, i32 noundef %563, i64 noundef %571)
  %572 = load ptr, ptr %6, align 8, !tbaa !5
  %573 = load ptr, ptr %8, align 8, !tbaa !5
  %574 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %573, i32 0, i32 27
  %575 = load i32, ptr %574, align 4, !tbaa !22
  %576 = load ptr, ptr %8, align 8, !tbaa !5
  %577 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %576, i32 0, i32 35
  %578 = load i32, ptr %577, align 4, !tbaa !25
  %579 = load ptr, ptr %8, align 8, !tbaa !5
  %580 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %579, i32 0, i32 27
  %581 = load i32, ptr %580, align 4, !tbaa !22
  %582 = load i32, ptr %17, align 4, !tbaa !9
  %583 = zext i32 %582 to i64
  %584 = load i32, ptr %11, align 4, !tbaa !9
  %585 = zext i32 %584 to i64
  %586 = mul nsw i64 %583, %585
  %587 = load i32, ptr %20, align 4, !tbaa !9
  %588 = zext i32 %587 to i64
  %589 = mul nsw i64 %586, %588
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %572, i32 noundef 4096, i32 noundef %575, i32 noundef %578, i32 noundef %581, i64 noundef %589)
  %590 = load ptr, ptr %6, align 8, !tbaa !5
  %591 = load ptr, ptr %7, align 8, !tbaa !5
  %592 = load ptr, ptr %8, align 8, !tbaa !5
  %593 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %592, i32 0, i32 25
  %594 = load i32, ptr %593, align 4, !tbaa !24
  %595 = load i32, ptr %17, align 4, !tbaa !9
  call void @libxsmm_generator_loop_footer_aarch64(ptr noundef %590, ptr noundef %591, i32 noundef %594, i32 noundef %595)
  br label %596

596:                                              ; preds = %529, %526
  store i32 0, ptr %39, align 4
  br label %597

597:                                              ; preds = %596, %290
  call void @llvm.lifetime.end.p0(i64 2101248, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  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 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  %598 = load i32, ptr %39, align 4
  switch i32 %598, label %600 [
    i32 0, label %599
    i32 1, label %599
  ]

599:                                              ; preds = %597, %597
  ret void

600:                                              ; preds = %597
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn nounwind "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 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 #4 = { nounwind }
attributes #5 = { noreturn 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, !13, i64 27}
!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 = !{!15, !10, i64 28}
!15 = !{!"libxsmm_generated_code", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!16 = !{!7, !7, 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 = !{!12, !13, i64 29}
!20 = !{!21, !10, i64 104}
!21 = !{!"libxsmm_mateltwise_gp_reg_mapping_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}
!22 = !{!21, !10, i64 108}
!23 = !{!21, !10, i64 96}
!24 = !{!21, !10, i64 100}
!25 = !{!21, !10, i64 140}
!26 = !{!21, !10, i64 144}
!27 = !{!21, !10, i64 0}
!28 = !{!12, !10, i64 12}
!29 = !{!18, !10, i64 20}
!30 = !{!12, !10, i64 8}
!31 = !{!12, !10, i64 0}
!32 = !{!12, !10, i64 4}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}


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

%struct.libxsmm_jump_label_tracker_struct = type { [512 x i32], [512 x %struct.libxsmm_jump_source_struct] }
%struct.libxsmm_jump_source_struct = type { [512 x i32], [512 x i32], i32 }

@.str = external hidden unnamed_addr constant [99 x i8], align 1
@libxsmm_ninit = external local_unnamed_addr global i32, align 4
@libxsmm_verbosity = external local_unnamed_addr global i32, align 4
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@__PRETTY_FUNCTION__.libxsmm_generator_gather_scatter_offs_aarch64_microkernel = external hidden unnamed_addr constant [232 x i8], align 1
@__func__.libxsmm_generator_gather_scatter_offs_aarch64_microkernel = external hidden unnamed_addr constant [58 x i8], align 1

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

declare i32 @libxsmm_cpuid_vlen32(i32 noundef) local_unnamed_addr #1

declare void @libxsmm_reset_jump_label_tracker(ptr noundef) local_unnamed_addr #1

declare void @libxsmm_aarch64_instruction_alu_move(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare void @libxsmm_generator_set_p_register_aarch64_sve(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare void @libxsmm_handle_error(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr 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 #1

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gather_scatter_offs_aarch64_microkernel(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef readonly %3, ptr nocapture noundef readonly %4) local_unnamed_addr #3 {
  %6 = alloca %struct.libxsmm_jump_label_tracker_struct, align 4
  %7 = getelementptr inbounds i8, ptr %4, i64 27
  %8 = load i16, ptr %7, align 1, !tbaa !5
  %9 = and i16 %8, 256
  %10 = icmp ne i16 %9, 0
  %11 = select i1 %10, i32 8, i32 4
  %12 = getelementptr inbounds i8, ptr %0, i64 28
  %13 = load i32, ptr %12, align 4, !tbaa !11
  %14 = icmp ult i32 %13, 2501
  %15 = add i32 %13, -2201
  %spec.select = icmp ult i32 %15, 300
  %.not = icmp eq i32 %13, 2501
  br i1 %.not, label %19, label %16

16:                                               ; preds = %5
  %17 = tail call i32 @libxsmm_cpuid_vlen32(i32 noundef %13) #4
  %18 = shl nsw i32 %17, 2
  br label %19

19:                                               ; preds = %5, %16
  %20 = phi i32 [ %18, %16 ], [ 16, %5 ]
  %21 = select i1 %10, i32 3, i32 2
  %22 = lshr i32 %20, %21
  call void @llvm.lifetime.start.p0(i64 2101248, ptr nonnull %6) #4
  call void @libxsmm_reset_jump_label_tracker(ptr noundef nonnull %6) #4
  %23 = getelementptr inbounds i8, ptr %3, i64 8
  %24 = load i32, ptr %23, align 4, !tbaa !14
  %25 = icmp eq i32 %24, 4
  %26 = select i1 %10, i32 -983515005, i32 -2061483901
  %27 = select i1 %10, i32 -991903613, i32 -2069872509
  %28 = select i1 %25, i32 %26, i32 %27
  %29 = select i1 %10, i32 -450838397, i32 -446660477
  %30 = select i1 %10, i32 -459235197, i32 -455049085
  %31 = select i1 %25, i32 %29, i32 %30
  %32 = getelementptr inbounds i8, ptr %4, i64 29
  %33 = load i16, ptr %32, align 1, !tbaa !16
  %34 = icmp eq i16 %33, 51
  %35 = zext i1 %34 to i32
  %36 = getelementptr inbounds i8, ptr %2, i64 108
  %37 = getelementptr inbounds i8, ptr %2, i64 96
  %38 = getelementptr inbounds i8, ptr %2, i64 100
  store <4 x i32> <i32 42, i32 43, i32 40, i32 41>, ptr %37, align 4, !tbaa !17
  %39 = getelementptr inbounds i8, ptr %2, i64 140
  store i32 48, ptr %39, align 4, !tbaa !18
  %40 = getelementptr inbounds i8, ptr %2, i64 144
  store i32 49, ptr %40, align 4, !tbaa !20
  %41 = load i32, ptr %2, align 4, !tbaa !21
  br i1 %34, label %42, label %48

42:                                               ; preds = %19
  call void @libxsmm_aarch64_instruction_alu_move(ptr noundef nonnull %0, i32 noundef -1186988026, i32 noundef %41, i32 noundef 127, i32 noundef 32, i32 noundef 44) #4
  %43 = load i32, ptr %2, align 4, !tbaa !21
  %44 = load i32, ptr %36, align 4, !tbaa !22
  call void @libxsmm_aarch64_instruction_alu_move(ptr noundef nonnull %0, i32 noundef -1186988026, i32 noundef %43, i32 noundef 127, i32 noundef 40, i32 noundef %44) #4
  %45 = load i32, ptr %2, align 4, !tbaa !21
  call void @libxsmm_aarch64_instruction_alu_move(ptr noundef nonnull %0, i32 noundef -1186988026, i32 noundef %45, i32 noundef 127, i32 noundef 80, i32 noundef 45) #4
  %46 = getelementptr inbounds i8, ptr %4, i64 12
  %47 = getelementptr inbounds i8, ptr %3, i64 20
  br label %53

48:                                               ; preds = %19
  call void @libxsmm_aarch64_instruction_alu_move(ptr noundef nonnull %0, i32 noundef -1186988026, i32 noundef %41, i32 noundef 127, i32 noundef 32, i32 noundef 45) #4
  %49 = load i32, ptr %2, align 4, !tbaa !21
  call void @libxsmm_aarch64_instruction_alu_move(ptr noundef nonnull %0, i32 noundef -1186988026, i32 noundef %49, i32 noundef 127, i32 noundef 80, i32 noundef 44) #4
  %50 = load i32, ptr %2, align 4, !tbaa !21
  %51 = load i32, ptr %36, align 4, !tbaa !22
  call void @libxsmm_aarch64_instruction_alu_move(ptr noundef nonnull %0, i32 noundef -1186988026, i32 noundef %50, i32 noundef 127, i32 noundef 88, i32 noundef %51) #4
  %52 = getelementptr inbounds i8, ptr %4, i64 8
  br label %53

53:                                               ; preds = %48, %42
  %.0250.in = phi ptr [ %46, %42 ], [ %52, %48 ]
  %.0249.in = phi ptr [ %47, %42 ], [ %23, %48 ]
  %.0249 = load i32, ptr %.0249.in, align 4, !tbaa !17
  %.0250 = load i32, ptr %.0250.in, align 1, !tbaa !17
  %54 = load i32, ptr %4, align 1, !tbaa !23
  %55 = getelementptr inbounds i8, ptr %4, i64 4
  %56 = load i32, ptr %55, align 1, !tbaa !24
  %.not261 = icmp eq i32 %22, 0
  br i1 %.not261, label %57, label %58

57:                                               ; preds = %53
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str, i32 noundef 669, ptr noundef nonnull @__PRETTY_FUNCTION__.libxsmm_generator_gather_scatter_offs_aarch64_microkernel) #5
  unreachable

58:                                               ; preds = %53
  %59 = add nsw i32 %22, -1
  %60 = add i32 %59, %54
  br label %61

61:                                               ; preds = %61, %58
  %.0248 = phi i32 [ 4, %58 ], [ %63, %61 ]
  %62 = urem i32 %56, %.0248
  %.not262 = icmp eq i32 %62, 0
  %63 = add i32 %.0248, -1
  br i1 %.not262, label %64, label %61, !llvm.loop !25

64:                                               ; preds = %61
  %65 = urem i32 %54, %22
  %66 = udiv i32 %60, %22
  br i1 %spec.select, label %68, label %.thread

.thread:                                          ; preds = %64
  %67 = icmp ne i32 %65, 0
  %.mux272 = select i1 %67, i32 %65, i32 2
  %.mux268273 = select i1 %67, i32 %65, i32 1
  br label %84

68:                                               ; preds = %64
  %69 = load i32, ptr %39, align 4, !tbaa !18
  call void @libxsmm_generator_set_p_register_aarch64_sve(ptr noundef %0, i32 noundef 0, i32 noundef -1, i32 noundef %69) #4
  %70 = load i32, ptr %23, align 4, !tbaa !14
  %71 = icmp eq i32 %70, 2
  %or.cond = select i1 %71, i1 true, i1 %10
  br i1 %or.cond, label %72, label %75

72:                                               ; preds = %68
  %73 = mul i32 %70, %22
  %74 = load i32, ptr %39, align 4, !tbaa !18
  call void @libxsmm_generator_set_p_register_aarch64_sve(ptr noundef %0, i32 noundef 3, i32 noundef %73, i32 noundef %74) #4
  br label %75

75:                                               ; preds = %72, %68
  %76 = icmp ne i32 %65, 0
  %brmerge.not = and i1 %14, %76
  %.mux = select i1 %76, i32 %65, i32 2
  %.mux268 = select i1 %76, i32 %65, i32 1
  br i1 %brmerge.not, label %77, label %84

77:                                               ; preds = %75
  %78 = load i32, ptr %23, align 4, !tbaa !14
  switch i32 %78, label %79 [
    i32 4, label %.thread289
    i32 2, label %.thread289
  ]

79:                                               ; preds = %77
  %80 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !17
  %81 = icmp ugt i32 %80, 1
  %82 = load i32, ptr @libxsmm_verbosity, align 4
  %83 = select i1 %81, i32 %82, i32 1
  call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90033, ptr noundef nonnull @__func__.libxsmm_generator_gather_scatter_offs_aarch64_microkernel, ptr noundef nonnull @.str, i32 noundef 695, i32 noundef %83) #4
  br label %160

84:                                               ; preds = %.thread, %75
  %85 = phi i1 [ %76, %75 ], [ %67, %.thread ]
  %.0254 = phi i32 [ %.mux, %75 ], [ %.mux272, %.thread ]
  %.0253 = phi i32 [ %.mux268, %75 ], [ %.mux268273, %.thread ]
  %86 = icmp ugt i32 %66, 4
  br i1 %86, label %92, label %97

.thread289:                                       ; preds = %77, %77
  %87 = mul i32 %78, %65
  %88 = load i32, ptr %39, align 4, !tbaa !18
  call void @libxsmm_generator_set_p_register_aarch64_sve(ptr noundef %0, i32 noundef 1, i32 noundef %87, i32 noundef %88) #4
  %89 = shl i32 %65, %21
  %90 = load i32, ptr %39, align 4, !tbaa !18
  call void @libxsmm_generator_set_p_register_aarch64_sve(ptr noundef %0, i32 noundef 2, i32 noundef %89, i32 noundef %90) #4
  %91 = icmp ugt i32 %66, 4
  br i1 %91, label %92, label %.thread283

92:                                               ; preds = %.thread289, %84
  %.0253298 = phi i32 [ 1, %.thread289 ], [ %.0253, %84 ]
  %.0254294 = phi i32 [ 2, %.thread289 ], [ %.0254, %84 ]
  %93 = phi i1 [ true, %.thread289 ], [ %85, %84 ]
  %94 = lshr i32 %66, 2
  %95 = and i32 %66, 3
  %96 = icmp eq i32 %95, 0
  %or.cond3 = select i1 %93, i1 %96, i1 false
  br i1 %or.cond3, label %98, label %.thread274

97:                                               ; preds = %84
  br i1 %85, label %.thread283, label %.thread274

98:                                               ; preds = %92
  %99 = add nsw i32 %94, -1
  %100 = shl nuw i32 %99, 2
  %101 = sub i32 %66, %100
  %.not263 = icmp eq i32 %99, 0
  br i1 %.not263, label %.thread283, label %.thread274

.thread274:                                       ; preds = %97, %92, %98
  %.0253296 = phi i32 [ %.0253298, %98 ], [ %.0253, %97 ], [ %.0253298, %92 ]
  %.0254292 = phi i32 [ %.0254294, %98 ], [ %.0254, %97 ], [ %.0254294, %92 ]
  %.0282 = phi i32 [ 4, %98 ], [ %66, %97 ], [ 4, %92 ]
  %.0251281 = phi i32 [ %99, %98 ], [ 1, %97 ], [ %94, %92 ]
  %.0252279 = phi i32 [ %101, %98 ], [ 0, %97 ], [ %95, %92 ]
  %102 = load i32, ptr %38, align 4, !tbaa !27
  call void @libxsmm_generator_loop_header_aarch64(ptr noundef %0, ptr noundef %1, i32 noundef %102, i32 noundef %56) #4
  %103 = load i32, ptr %37, align 4, !tbaa !28
  call void @libxsmm_generator_loop_header_aarch64(ptr noundef %0, ptr noundef %1, i32 noundef %103, i32 noundef %.0251281) #4
  %104 = load i32, ptr %36, align 4, !tbaa !22
  call void @libxsmm_generator_gather_scatter_offs_aarch64_mn_loop_unrolled(ptr noundef %0, ptr noundef nonnull %2, i32 noundef %.0282, i32 noundef %.0248, i32 noundef %104, i32 noundef %22, i32 noundef %11, i32 noundef %.0254292, i32 noundef %54, i32 noundef %28, i32 noundef %31, i32 noundef %22, i32 noundef 0, i32 noundef %.0253296, i32 noundef 3, i32 noundef %35, i32 noundef 44, i32 noundef 45, i32 noundef %.0249, i32 noundef %.0250)
  %105 = load i32, ptr %39, align 4, !tbaa !18
  %106 = zext nneg i32 %.0282 to i64
  %107 = zext nneg i32 %22 to i64
  %108 = mul nuw nsw i64 %106, %107
  %109 = zext i32 %.0249 to i64
  %110 = mul nuw nsw i64 %108, %109
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef 4096, i32 noundef 45, i32 noundef %105, i32 noundef 45, i64 noundef %110) #4
  %111 = load i32, ptr %36, align 4, !tbaa !22
  %112 = load i32, ptr %39, align 4, !tbaa !18
  %113 = select i1 %10, i64 3, i64 2
  %114 = shl nuw nsw i64 %106, %113
  %115 = mul nuw nsw i64 %114, %107
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef 4096, i32 noundef %111, i32 noundef %112, i32 noundef %111, i64 noundef %115) #4
  %116 = load i32, ptr %37, align 4, !tbaa !28
  call void @libxsmm_generator_loop_footer_aarch64(ptr noundef %0, ptr noundef %1, i32 noundef %116, i32 noundef 1) #4
  %117 = load i32, ptr %39, align 4, !tbaa !18
  %118 = zext i32 %.0248 to i64
  %119 = zext i32 %.0250 to i64
  %120 = mul nuw nsw i64 %118, %119
  %121 = zext nneg i32 %.0251281 to i64
  %122 = mul nuw i64 %108, %121
  %123 = sub nsw i64 %120, %122
  %124 = mul nsw i64 %123, %109
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef 4096, i32 noundef 45, i32 noundef %117, i32 noundef 45, i64 noundef %124) #4
  %125 = load i32, ptr %36, align 4, !tbaa !22
  %126 = load i32, ptr %39, align 4, !tbaa !18
  %127 = zext i32 %54 to i64
  %128 = mul nuw nsw i64 %118, %127
  %129 = sub nsw i64 %128, %122
  %130 = shl i64 %129, %113
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef 4096, i32 noundef %125, i32 noundef %126, i32 noundef %125, i64 noundef %130) #4
  %131 = load i32, ptr %38, align 4, !tbaa !27
  call void @libxsmm_generator_loop_footer_aarch64(ptr noundef %0, ptr noundef %1, i32 noundef %131, i32 noundef %.0248) #4
  %132 = load i32, ptr %39, align 4, !tbaa !18
  %133 = mul nuw nsw i64 %119, %109
  %134 = zext i32 %56 to i64
  %135 = mul nuw nsw i64 %133, %134
  %136 = mul nuw nsw i64 %122, %109
  %137 = sub nsw i64 %135, %136
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef 4097, i32 noundef 45, i32 noundef %132, i32 noundef 45, i64 noundef %137) #4
  %138 = load i32, ptr %36, align 4, !tbaa !22
  %139 = load i32, ptr %39, align 4, !tbaa !18
  %140 = shl nuw nsw i64 %127, %113
  %141 = mul nuw nsw i64 %140, %134
  %142 = shl i64 %122, %113
  %143 = sub nsw i64 %141, %142
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef 4097, i32 noundef %138, i32 noundef %139, i32 noundef %138, i64 noundef %143) #4
  br label %.thread283

.thread283:                                       ; preds = %.thread289, %97, %.thread274, %98
  %.0253299 = phi i32 [ %.0253296, %.thread274 ], [ %.0253298, %98 ], [ %.0253, %97 ], [ 1, %.thread289 ]
  %.0254295 = phi i32 [ %.0254292, %.thread274 ], [ %.0254294, %98 ], [ %.0254, %97 ], [ 2, %.thread289 ]
  %.0252280 = phi i32 [ %.0252279, %.thread274 ], [ %101, %98 ], [ %66, %97 ], [ %66, %.thread289 ]
  %.not264 = icmp eq i32 %.0252280, 0
  br i1 %.not264, label %160, label %144

144:                                              ; preds = %.thread283
  %145 = load i32, ptr %38, align 4, !tbaa !27
  call void @libxsmm_generator_loop_header_aarch64(ptr noundef %0, ptr noundef %1, i32 noundef %145, i32 noundef %56) #4
  %146 = load i32, ptr %36, align 4, !tbaa !22
  call void @libxsmm_generator_gather_scatter_offs_aarch64_mn_loop_unrolled(ptr noundef %0, ptr noundef nonnull %2, i32 noundef %.0252280, i32 noundef %.0248, i32 noundef %146, i32 noundef %22, i32 noundef %11, i32 noundef %.0254295, i32 noundef %54, i32 noundef %28, i32 noundef %31, i32 noundef %22, i32 noundef %65, i32 noundef %.0253299, i32 noundef 3, i32 noundef %35, i32 noundef 44, i32 noundef 45, i32 noundef %.0249, i32 noundef %.0250)
  %147 = load i32, ptr %39, align 4, !tbaa !18
  %148 = zext i32 %.0248 to i64
  %149 = zext i32 %.0250 to i64
  %150 = zext i32 %.0249 to i64
  %151 = mul nuw i64 %149, %150
  %152 = mul i64 %151, %148
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef 4096, i32 noundef 45, i32 noundef %147, i32 noundef 45, i64 noundef %152) #4
  %153 = load i32, ptr %36, align 4, !tbaa !22
  %154 = load i32, ptr %39, align 4, !tbaa !18
  %155 = zext i32 %54 to i64
  %156 = mul nuw nsw i64 %148, %155
  %157 = select i1 %10, i64 3, i64 2
  %158 = shl i64 %156, %157
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef 4096, i32 noundef %153, i32 noundef %154, i32 noundef %153, i64 noundef %158) #4
  %159 = load i32, ptr %38, align 4, !tbaa !27
  call void @libxsmm_generator_loop_footer_aarch64(ptr noundef %0, ptr noundef %1, i32 noundef %159, i32 noundef %.0248) #4
  br label %160

160:                                              ; preds = %.thread283, %144, %79
  call void @llvm.lifetime.end.p0(i64 2101248, ptr nonnull %6) #4
  ret void
}

attributes #0 = { mustprogress 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 = { noreturn nounwind "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 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 #4 = { nounwind }
attributes #5 = { noreturn 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, !10, i64 27}
!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 = !{!12, !7, i64 28}
!12 = !{!"libxsmm_generated_code", !13, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28}
!13 = !{!"any pointer", !8, 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 = !{!6, !10, i64 29}
!17 = !{!7, !7, i64 0}
!18 = !{!19, !7, i64 140}
!19 = !{!"libxsmm_mateltwise_gp_reg_mapping_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}
!20 = !{!19, !7, i64 144}
!21 = !{!19, !7, i64 0}
!22 = !{!19, !7, i64 108}
!23 = !{!6, !7, i64 0}
!24 = !{!6, !7, i64 4}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!19, !7, i64 100}
!28 = !{!19, !7, i64 96}


; Effective O3 passes: ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass