; LLVM IR from libxsmm/libxsmm :: src (generator_packed_spgemm_csr_asparse_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_generated_code = type { ptr, i32, i32, i32, i32, i32, i32 }
%struct.libxsmm_gemm_descriptor = type <{ i32, i32, i32, i32, i32, i32, i32, i8, [3 x i8], i8, i64, i64, i8, i32, i32, i32, i16, i16, i8, i8, i8, i8, i16, i16, i16, i16, i16, i16, i32, i32, i32, i8 }>
%struct.libxsmm_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 }
%struct.libxsmm_micro_kernel_config = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x i32], [4 x i32], [4 x i32], [4 x i32], [4 x i32], [4 x i32], i32, [2 x %struct.libxsmm_blocking_info_t], %struct.libxsmm_tile_config, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i32, i32, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.libxsmm_blocking_info_t = type { i32, [4 x i32], i32, i32 }
%struct.libxsmm_tile_config = type { i8, i16, i8, i16, i8, i16, i8, i16, i8, i16, i8, i16, i8, i16, i8, i16, i8 }

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_packed_spgemm_csr_asparse_aarch64_n_loop(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, i32 noundef %8, i32 noundef %9, i32 noundef %10) #2 {
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %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 i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca ptr, align 8
  store ptr %0, ptr %12, align 8, !tbaa !5
  store ptr %1, ptr %13, align 8, !tbaa !5
  store ptr %2, ptr %14, align 8, !tbaa !5
  store ptr %3, ptr %15, align 8, !tbaa !5
  store ptr %4, ptr %16, align 8, !tbaa !5
  store ptr %5, ptr %17, align 8, !tbaa !5
  store ptr %6, ptr %18, align 8, !tbaa !5
  store ptr %7, ptr %19, align 8, !tbaa !5
  store i32 %8, ptr %20, align 4, !tbaa !9
  store i32 %9, ptr %21, align 4, !tbaa !9
  store i32 %10, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  store i32 0, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  store i32 0, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  store i32 0, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  store i32 0, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  store i32 0, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #3
  store i32 0, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #3
  %30 = load ptr, ptr %12, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %30, i32 0, i32 6
  %32 = load i32, ptr %31, align 4, !tbaa !11
  %33 = icmp uge i32 %32, 2201
  br i1 %33, label %34, label %40

34:                                               ; preds = %11
  %35 = load ptr, ptr %12, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %35, i32 0, i32 6
  %37 = load i32, ptr %36, align 4, !tbaa !11
  %38 = icmp ule i32 %37, 2999
  br i1 %38, label %39, label %40

39:                                               ; preds = %34
  store ptr @libxsmm_generator_packed_spgemm_csr_asparse_aarch64_m_loop_sve, ptr %29, align 8, !tbaa !5
  br label %41

40:                                               ; preds = %34, %11
  store ptr @libxsmm_generator_packed_spgemm_csr_asparse_aarch64_m_loop_asimd, ptr %29, align 8, !tbaa !5
  br label %41

41:                                               ; preds = %40, %39
  %42 = load ptr, ptr %17, align 8, !tbaa !5
  %43 = load ptr, ptr %13, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %43, i32 0, i32 0
  %45 = load i32, ptr %44, align 1, !tbaa !13
  %46 = zext i32 %45 to i64
  %47 = getelementptr inbounds i32, ptr %42, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !9
  %49 = load ptr, ptr %13, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %49, i32 0, i32 0
  %51 = load i32, ptr %50, align 1, !tbaa !13
  %52 = load ptr, ptr %13, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %52, i32 0, i32 2
  %54 = load i32, ptr %53, align 1, !tbaa !17
  %55 = mul i32 %51, %54
  %56 = icmp eq i32 %48, %55
  br i1 %56, label %57, label %58

57:                                               ; preds = %41
  store i32 1, ptr %23, align 4, !tbaa !9
  store i32 1, ptr %24, align 4, !tbaa !9
  br label %62

58:                                               ; preds = %41
  %59 = load ptr, ptr %13, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %59, i32 0, i32 0
  %61 = load i32, ptr %60, align 1, !tbaa !13
  store i32 %61, ptr %23, align 4, !tbaa !9
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %62

62:                                               ; preds = %58, %57
  %63 = load ptr, ptr %13, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %63, i32 0, i32 1
  %65 = load i32, ptr %64, align 1, !tbaa !18
  %66 = load i32, ptr %20, align 4, !tbaa !9
  %67 = urem i32 %65, %66
  %68 = icmp eq i32 %67, 0
  br i1 %68, label %69, label %75

69:                                               ; preds = %62
  %70 = load ptr, ptr %13, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %70, i32 0, i32 1
  %72 = load i32, ptr %71, align 1, !tbaa !18
  %73 = load i32, ptr %20, align 4, !tbaa !9
  %74 = udiv i32 %72, %73
  br label %82

75:                                               ; preds = %62
  %76 = load ptr, ptr %13, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %76, i32 0, i32 1
  %78 = load i32, ptr %77, align 1, !tbaa !18
  %79 = load i32, ptr %20, align 4, !tbaa !9
  %80 = udiv i32 %78, %79
  %81 = add i32 %80, 1
  br label %82

82:                                               ; preds = %75, %69
  %83 = phi i32 [ %74, %69 ], [ %81, %75 ]
  store i32 %83, ptr %25, align 4, !tbaa !9
  %84 = load ptr, ptr %13, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %84, i32 0, i32 1
  %86 = load i32, ptr %85, align 1, !tbaa !18
  %87 = load i32, ptr %25, align 4, !tbaa !9
  %88 = urem i32 %86, %87
  %89 = icmp eq i32 %88, 0
  br i1 %89, label %90, label %96

90:                                               ; preds = %82
  %91 = load ptr, ptr %13, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %91, i32 0, i32 1
  %93 = load i32, ptr %92, align 1, !tbaa !18
  %94 = load i32, ptr %25, align 4, !tbaa !9
  %95 = udiv i32 %93, %94
  br label %103

96:                                               ; preds = %82
  %97 = load ptr, ptr %13, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %97, i32 0, i32 1
  %99 = load i32, ptr %98, align 1, !tbaa !18
  %100 = load i32, ptr %25, align 4, !tbaa !9
  %101 = udiv i32 %99, %100
  %102 = add i32 %101, 1
  br label %103

103:                                              ; preds = %96, %90
  %104 = phi i32 [ %95, %90 ], [ %102, %96 ]
  store i32 %104, ptr %26, align 4, !tbaa !9
  %105 = load ptr, ptr %13, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %105, i32 0, i32 1
  %107 = load i32, ptr %106, align 1, !tbaa !18
  %108 = load i32, ptr %26, align 4, !tbaa !9
  %109 = urem i32 %107, %108
  %110 = icmp eq i32 %109, 0
  br i1 %110, label %117, label %111

111:                                              ; preds = %103
  %112 = load ptr, ptr %13, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %112, i32 0, i32 1
  %114 = load i32, ptr %113, align 1, !tbaa !18
  %115 = load i32, ptr %20, align 4, !tbaa !9
  %116 = icmp ule i32 %114, %115
  br label %117

117:                                              ; preds = %111, %103
  %118 = phi i1 [ true, %103 ], [ %116, %111 ]
  %119 = zext i1 %118 to i64
  %120 = select i1 %118, i32 0, i32 1
  store i32 %120, ptr %27, align 4, !tbaa !9
  %121 = load i32, ptr %27, align 4, !tbaa !9
  %122 = icmp eq i32 %121, 0
  br i1 %122, label %123, label %127

123:                                              ; preds = %117
  %124 = load i32, ptr %25, align 4, !tbaa !9
  %125 = load i32, ptr %26, align 4, !tbaa !9
  %126 = mul i32 %124, %125
  br label %132

127:                                              ; preds = %117
  %128 = load i32, ptr %25, align 4, !tbaa !9
  %129 = sub i32 %128, 1
  %130 = load i32, ptr %26, align 4, !tbaa !9
  %131 = mul i32 %129, %130
  br label %132

132:                                              ; preds = %127, %123
  %133 = phi i32 [ %126, %123 ], [ %131, %127 ]
  store i32 %133, ptr %28, align 4, !tbaa !9
  %134 = load ptr, ptr %12, align 8, !tbaa !5
  %135 = load ptr, ptr %14, align 8, !tbaa !5
  %136 = load ptr, ptr %16, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %136, i32 0, i32 11
  %138 = load i32, ptr %137, align 4, !tbaa !19
  %139 = load i32, ptr %28, align 4, !tbaa !9
  call void @libxsmm_generator_loop_header_aarch64(ptr noundef %134, ptr noundef %135, i32 noundef %138, i32 noundef %139)
  %140 = load ptr, ptr %29, align 8, !tbaa !5
  %141 = load ptr, ptr %12, align 8, !tbaa !5
  %142 = load ptr, ptr %13, align 8, !tbaa !5
  %143 = load ptr, ptr %14, align 8, !tbaa !5
  %144 = load ptr, ptr %15, align 8, !tbaa !5
  %145 = load ptr, ptr %16, align 8, !tbaa !5
  %146 = load ptr, ptr %17, align 8, !tbaa !5
  %147 = load ptr, ptr %18, align 8, !tbaa !5
  %148 = load ptr, ptr %19, align 8, !tbaa !5
  %149 = load i32, ptr %23, align 4, !tbaa !9
  %150 = load i32, ptr %24, align 4, !tbaa !9
  %151 = load i32, ptr %26, align 4, !tbaa !9
  %152 = load i32, ptr %21, align 4, !tbaa !9
  %153 = load i32, ptr %22, align 4, !tbaa !9
  call void %140(ptr noundef %141, ptr noundef %142, ptr noundef %143, ptr noundef %144, ptr noundef %145, ptr noundef %146, ptr noundef %147, ptr noundef %148, i32 noundef %149, i32 noundef %150, i32 noundef %151, i32 noundef %152, i32 noundef %153)
  %154 = load ptr, ptr %12, align 8, !tbaa !5
  %155 = load ptr, ptr %16, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %155, i32 0, i32 3
  %157 = load i32, ptr %156, align 4, !tbaa !21
  %158 = load ptr, ptr %16, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %158, i32 0, i32 23
  %160 = load i32, ptr %159, align 4, !tbaa !22
  %161 = load ptr, ptr %16, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %161, i32 0, i32 3
  %163 = load i32, ptr %162, align 4, !tbaa !21
  %164 = load ptr, ptr %15, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %164, i32 0, i32 3
  %166 = load i32, ptr %165, align 4, !tbaa !23
  %167 = zext i32 %166 to i64
  %168 = load i32, ptr %21, align 4, !tbaa !9
  %169 = zext i32 %168 to i64
  %170 = mul nsw i64 %167, %169
  %171 = load i32, ptr %26, align 4, !tbaa !9
  %172 = zext i32 %171 to i64
  %173 = mul nsw i64 %170, %172
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %154, i32 noundef 4096, i32 noundef %157, i32 noundef %160, i32 noundef %163, i64 noundef %173)
  %174 = load ptr, ptr %12, align 8, !tbaa !5
  %175 = load ptr, ptr %16, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %175, i32 0, i32 5
  %177 = load i32, ptr %176, align 4, !tbaa !26
  %178 = load ptr, ptr %16, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %178, i32 0, i32 24
  %180 = load i32, ptr %179, align 4, !tbaa !27
  %181 = load ptr, ptr %16, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %181, i32 0, i32 5
  %183 = load i32, ptr %182, align 4, !tbaa !26
  %184 = load ptr, ptr %15, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %184, i32 0, i32 5
  %186 = load i32, ptr %185, align 4, !tbaa !28
  %187 = zext i32 %186 to i64
  %188 = load i32, ptr %21, align 4, !tbaa !9
  %189 = zext i32 %188 to i64
  %190 = mul nsw i64 %187, %189
  %191 = load ptr, ptr %13, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %191, i32 0, i32 5
  %193 = load i32, ptr %192, align 1, !tbaa !29
  %194 = zext i32 %193 to i64
  %195 = mul nsw i64 %190, %194
  %196 = load ptr, ptr %13, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %196, i32 0, i32 0
  %198 = load i32, ptr %197, align 1, !tbaa !13
  %199 = zext i32 %198 to i64
  %200 = mul nsw i64 %195, %199
  %201 = load ptr, ptr %15, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %201, i32 0, i32 5
  %203 = load i32, ptr %202, align 4, !tbaa !28
  %204 = zext i32 %203 to i64
  %205 = load i32, ptr %21, align 4, !tbaa !9
  %206 = zext i32 %205 to i64
  %207 = mul nsw i64 %204, %206
  %208 = load i32, ptr %26, align 4, !tbaa !9
  %209 = zext i32 %208 to i64
  %210 = mul nsw i64 %207, %209
  %211 = sub nsw i64 %200, %210
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %174, i32 noundef 4097, i32 noundef %177, i32 noundef %180, i32 noundef %183, i64 noundef %211)
  %212 = load ptr, ptr %12, align 8, !tbaa !5
  %213 = load ptr, ptr %14, align 8, !tbaa !5
  %214 = load ptr, ptr %16, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %214, i32 0, i32 11
  %216 = load i32, ptr %215, align 4, !tbaa !19
  %217 = load i32, ptr %26, align 4, !tbaa !9
  call void @libxsmm_generator_loop_footer_aarch64(ptr noundef %212, ptr noundef %213, i32 noundef %216, i32 noundef %217)
  %218 = load i32, ptr %27, align 4, !tbaa !9
  %219 = icmp ne i32 %218, 0
  br i1 %219, label %220, label %242

220:                                              ; preds = %132
  %221 = load ptr, ptr %29, align 8, !tbaa !5
  %222 = load ptr, ptr %12, align 8, !tbaa !5
  %223 = load ptr, ptr %13, align 8, !tbaa !5
  %224 = load ptr, ptr %14, align 8, !tbaa !5
  %225 = load ptr, ptr %15, align 8, !tbaa !5
  %226 = load ptr, ptr %16, align 8, !tbaa !5
  %227 = load ptr, ptr %17, align 8, !tbaa !5
  %228 = load ptr, ptr %18, align 8, !tbaa !5
  %229 = load ptr, ptr %19, align 8, !tbaa !5
  %230 = load i32, ptr %23, align 4, !tbaa !9
  %231 = load i32, ptr %24, align 4, !tbaa !9
  %232 = load ptr, ptr %13, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %232, i32 0, i32 1
  %234 = load i32, ptr %233, align 1, !tbaa !18
  %235 = load i32, ptr %26, align 4, !tbaa !9
  %236 = load i32, ptr %25, align 4, !tbaa !9
  %237 = sub i32 %236, 1
  %238 = mul i32 %235, %237
  %239 = sub i32 %234, %238
  %240 = load i32, ptr %21, align 4, !tbaa !9
  %241 = load i32, ptr %22, align 4, !tbaa !9
  call void %221(ptr noundef %222, ptr noundef %223, ptr noundef %224, ptr noundef %225, ptr noundef %226, ptr noundef %227, ptr noundef %228, ptr noundef %229, i32 noundef %230, i32 noundef %231, i32 noundef %239, i32 noundef %240, i32 noundef %241)
  br label %242

242:                                              ; preds = %220, %132
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  ret void
}

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

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

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

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

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 28}
!12 = !{!"libxsmm_generated_code", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!13 = !{!14, !10, i64 0}
!14 = !{!"libxsmm_gemm_descriptor", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !7, i64 28, !7, i64 29, !7, i64 32, !15, i64 33, !15, i64 41, !7, i64 49, !10, i64 50, !10, i64 54, !10, i64 58, !16, i64 62, !16, i64 64, !7, i64 66, !7, i64 67, !7, i64 68, !7, i64 69, !16, i64 70, !16, i64 72, !16, i64 74, !16, i64 76, !16, i64 78, !16, i64 80, !10, i64 82, !10, i64 86, !10, i64 90, !7, i64 94}
!15 = !{!"long long", !7, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = !{!14, !10, i64 8}
!18 = !{!14, !10, i64 4}
!19 = !{!20, !10, i64 44}
!20 = !{!"libxsmm_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}
!21 = !{!20, !10, i64 12}
!22 = !{!20, !10, i64 92}
!23 = !{!24, !10, i64 12}
!24 = !{!"libxsmm_micro_kernel_config", !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, !7, 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, !7, i64 364, !7, i64 380, !7, i64 396, !7, i64 412, !7, i64 428, !7, i64 444, !10, i64 460, !7, i64 464, !25, i64 520, !10, i64 556, !10, i64 560, !10, i64 564, !10, i64 568, !10, i64 572, !10, i64 576, !10, i64 580, !10, i64 584, !6, i64 592, !10, i64 600, !10, i64 604, !10, i64 608, !10, i64 612, !6, i64 616, !10, i64 624, !10, i64 628, !10, i64 632, !10, i64 636, !10, i64 640, !10, i64 644, !10, i64 648, !10, i64 652, !10, i64 656, !10, i64 660, !10, i64 664, !10, i64 668, !10, i64 672, !10, i64 676, !10, i64 680}
!25 = !{!"libxsmm_tile_config", !7, i64 0, !16, i64 2, !7, i64 4, !16, i64 6, !7, i64 8, !16, i64 10, !7, i64 12, !16, i64 14, !7, i64 16, !16, i64 18, !7, i64 20, !16, i64 22, !7, i64 24, !16, i64 26, !7, i64 28, !16, i64 30, !7, i64 32}
!26 = !{!20, !10, i64 20}
!27 = !{!20, !10, i64 96}
!28 = !{!24, !10, i64 20}
!29 = !{!14, !10, i64 20}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_packed_spgemm_csr_asparse_aarch64_n_loop(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, i32 noundef %8, i32 noundef %9, i32 noundef %10) local_unnamed_addr #1 {
  %12 = getelementptr inbounds i8, ptr %0, i64 28
  %13 = load i32, ptr %12, align 4, !tbaa !5
  %14 = add i32 %13, -2201
  %or.cond = icmp ult i32 %14, 799
  %.0 = select i1 %or.cond, ptr @libxsmm_generator_packed_spgemm_csr_asparse_aarch64_m_loop_sve, ptr @libxsmm_generator_packed_spgemm_csr_asparse_aarch64_m_loop_asimd
  %15 = load i32, ptr %1, align 1, !tbaa !11
  %16 = zext i32 %15 to i64
  %17 = getelementptr inbounds i32, ptr %5, i64 %16
  %18 = load i32, ptr %17, align 4, !tbaa !15
  %19 = getelementptr inbounds i8, ptr %1, i64 8
  %20 = load i32, ptr %19, align 1, !tbaa !16
  %21 = mul i32 %20, %15
  %22 = icmp eq i32 %18, %21
  %.085 = select i1 %22, i32 1, i32 %15
  %.084 = zext i1 %22 to i32
  %23 = getelementptr inbounds i8, ptr %1, i64 4
  %24 = load i32, ptr %23, align 1, !tbaa !17
  %25 = urem i32 %24, %8
  %26 = icmp ne i32 %25, 0
  %27 = udiv i32 %24, %8
  %28 = zext i1 %26 to i32
  %29 = add i32 %27, %28
  %30 = urem i32 %24, %29
  %31 = icmp ne i32 %30, 0
  %32 = udiv i32 %24, %29
  %33 = zext i1 %31 to i32
  %34 = add i32 %32, %33
  %35 = urem i32 %24, %34
  %36 = icmp eq i32 %35, 0
  %37 = icmp ule i32 %24, %8
  %spec.select = or i1 %37, %36
  %38 = add i32 %29, -1
  %.pn = select i1 %spec.select, i32 %29, i32 %38
  %39 = mul i32 %.pn, %34
  %40 = getelementptr inbounds i8, ptr %4, i64 44
  %41 = load i32, ptr %40, align 4, !tbaa !18
  tail call void @libxsmm_generator_loop_header_aarch64(ptr noundef nonnull %0, ptr noundef %2, i32 noundef %41, i32 noundef %39) #2
  tail call void %.0(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef nonnull %5, ptr noundef %6, ptr noundef %7, i32 noundef %.085, i32 noundef %.084, i32 noundef %34, i32 noundef %9, i32 noundef %10) #2, !callees !20
  %42 = getelementptr inbounds i8, ptr %4, i64 12
  %43 = load i32, ptr %42, align 4, !tbaa !21
  %44 = getelementptr inbounds i8, ptr %4, i64 92
  %45 = load i32, ptr %44, align 4, !tbaa !22
  %46 = getelementptr inbounds i8, ptr %3, i64 12
  %47 = load i32, ptr %46, align 4, !tbaa !23
  %48 = zext i32 %47 to i64
  %49 = zext i32 %9 to i64
  %50 = zext i32 %34 to i64
  %51 = mul nuw i64 %50, %49
  %52 = mul i64 %51, %48
  tail call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef nonnull %0, i32 noundef 4096, i32 noundef %43, i32 noundef %45, i32 noundef %43, i64 noundef %52) #2
  %53 = getelementptr inbounds i8, ptr %4, i64 20
  %54 = load i32, ptr %53, align 4, !tbaa !26
  %55 = getelementptr inbounds i8, ptr %4, i64 96
  %56 = load i32, ptr %55, align 4, !tbaa !27
  %57 = getelementptr inbounds i8, ptr %3, i64 20
  %58 = load i32, ptr %57, align 4, !tbaa !28
  %59 = zext i32 %58 to i64
  %60 = mul nuw nsw i64 %59, %49
  %61 = getelementptr inbounds i8, ptr %1, i64 20
  %62 = load i32, ptr %61, align 1, !tbaa !29
  %63 = zext i32 %62 to i64
  %64 = mul nuw nsw i64 %60, %63
  %65 = load i32, ptr %1, align 1, !tbaa !11
  %66 = zext i32 %65 to i64
  %67 = mul nuw nsw i64 %64, %66
  %68 = mul nuw nsw i64 %60, %50
  %69 = sub nsw i64 %67, %68
  tail call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef nonnull %0, i32 noundef 4097, i32 noundef %54, i32 noundef %56, i32 noundef %54, i64 noundef %69) #2
  %70 = load i32, ptr %40, align 4, !tbaa !18
  tail call void @libxsmm_generator_loop_footer_aarch64(ptr noundef nonnull %0, ptr noundef %2, i32 noundef %70, i32 noundef %34) #2
  br i1 %spec.select, label %75, label %71

71:                                               ; preds = %11
  %72 = load i32, ptr %23, align 1, !tbaa !17
  %73 = mul i32 %34, %38
  %74 = sub i32 %72, %73
  tail call void %.0(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef %6, ptr noundef %7, i32 noundef %.085, i32 noundef %.084, i32 noundef %74, i32 noundef %9, i32 noundef %10) #2, !callees !20
  br label %75

75:                                               ; preds = %71, %11
  ret void
}

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

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

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

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

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, !10, i64 28}
!6 = !{!"libxsmm_generated_code", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"libxsmm_gemm_descriptor", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !8, i64 28, !8, i64 29, !8, i64 32, !13, i64 33, !13, i64 41, !8, i64 49, !10, i64 50, !10, i64 54, !10, i64 58, !14, i64 62, !14, i64 64, !8, i64 66, !8, i64 67, !8, i64 68, !8, i64 69, !14, i64 70, !14, i64 72, !14, i64 74, !14, i64 76, !14, i64 78, !14, i64 80, !10, i64 82, !10, i64 86, !10, i64 90, !8, i64 94}
!13 = !{!"long long", !8, i64 0}
!14 = !{!"short", !8, i64 0}
!15 = !{!10, !10, i64 0}
!16 = !{!12, !10, i64 8}
!17 = !{!12, !10, i64 4}
!18 = !{!19, !10, i64 44}
!19 = !{!"libxsmm_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}
!20 = !{ptr @libxsmm_generator_packed_spgemm_csr_asparse_aarch64_m_loop_asimd, ptr @libxsmm_generator_packed_spgemm_csr_asparse_aarch64_m_loop_sve}
!21 = !{!19, !10, i64 12}
!22 = !{!19, !10, i64 92}
!23 = !{!24, !10, i64 12}
!24 = !{!"libxsmm_micro_kernel_config", !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, !8, 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, !8, i64 364, !8, i64 380, !8, i64 396, !8, i64 412, !8, i64 428, !8, i64 444, !10, i64 460, !8, i64 464, !25, i64 520, !10, i64 556, !10, i64 560, !10, i64 564, !10, i64 568, !10, i64 572, !10, i64 576, !10, i64 580, !10, i64 584, !7, i64 592, !10, i64 600, !10, i64 604, !10, i64 608, !10, i64 612, !7, i64 616, !10, i64 624, !10, i64 628, !10, i64 632, !10, i64 636, !10, i64 640, !10, i64 644, !10, i64 648, !10, i64 652, !10, i64 656, !10, i64 660, !10, i64 664, !10, i64 668, !10, i64 672, !10, i64 676, !10, i64 680}
!25 = !{!"libxsmm_tile_config", !8, i64 0, !14, i64 2, !8, i64 4, !14, i64 6, !8, i64 8, !14, i64 10, !8, i64 12, !14, i64 14, !8, i64 16, !14, i64 18, !8, i64 20, !14, i64 22, !8, i64 24, !14, i64 26, !8, i64 28, !14, i64 30, !8, i64 32}
!26 = !{!19, !10, i64 20}
!27 = !{!19, !10, i64 96}
!28 = !{!24, !10, i64 20}
!29 = !{!12, !10, i64 20}


; Effective O3 passes: CalledValuePropagationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass