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

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

@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [86 x i8], align 1
@libxsmm_ninit = external global i32, align 4
@libxsmm_verbosity = external global i32, align 4
@.str.7 = external hidden unnamed_addr constant [96 x i8], align 1
@__func__.libxsmm_aarch64_instruction_asimd_move = external hidden unnamed_addr constant [39 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [107 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [107 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [86 x i8], align 1

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #0

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) #3 {
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %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 ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !9
  store i32 %2, ptr %10, align 4, !tbaa !9
  store i32 %3, ptr %11, align 4, !tbaa !9
  store i32 %4, ptr %12, align 4, !tbaa !9
  store i32 %5, ptr %13, align 4, !tbaa !9
  store i32 %6, ptr %14, align 4, !tbaa !9
  %19 = load ptr, ptr %8, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %19, i32 0, i32 6
  %21 = load i32, ptr %20, align 4, !tbaa !11
  %22 = icmp ult i32 %21, 2001
  br i1 %22, label %23, label %34

23:                                               ; preds = %7
  %24 = load ptr, ptr @stderr, align 8, !tbaa !5
  %25 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef @.str.7) #4
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %28 = icmp ult i32 1, %27
  br i1 %28, label %29, label %31

29:                                               ; preds = %23
  %30 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %32

31:                                               ; preds = %23
  br label %32

32:                                               ; preds = %31, %29
  %33 = phi i32 [ %30, %29 ], [ 1, %31 ]
  call void @libxsmm_handle_error(ptr noundef %26, i32 noundef 90000, ptr noundef @__func__.libxsmm_aarch64_instruction_asimd_move, ptr noundef @.str.1, i32 noundef 334, i32 noundef %33)
  br label %253

34:                                               ; preds = %7
  %35 = load i32, ptr %9, align 4, !tbaa !9
  switch i32 %35, label %37 [
    i32 1012942851, label %36
    i32 1027604486, label %36
    i32 1010828294, label %36
    i32 1010830342, label %36
    i32 1008748547, label %36
    i32 1023410182, label %36
    i32 1006633990, label %36
    i32 1006636038, label %36
  ]

36:                                               ; preds = %34, %34, %34, %34, %34, %34, %34, %34
  br label %49

37:                                               ; preds = %34
  %38 = load ptr, ptr @stderr, align 8, !tbaa !5
  %39 = load i32, ptr %9, align 4, !tbaa !9
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef @.str.8, i32 noundef %39) #4
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %43 = icmp ult i32 1, %42
  br i1 %43, label %44, label %46

44:                                               ; preds = %37
  %45 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %47

46:                                               ; preds = %37
  br label %47

47:                                               ; preds = %46, %44
  %48 = phi i32 [ %45, %44 ], [ 1, %46 ]
  call void @libxsmm_handle_error(ptr noundef %41, i32 noundef 90000, ptr noundef @__func__.libxsmm_aarch64_instruction_asimd_move, ptr noundef @.str.1, i32 noundef 350, i32 noundef %48)
  br label %253

49:                                               ; preds = %36
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %50, i32 0, i32 3
  %52 = load i32, ptr %51, align 8, !tbaa !13
  %53 = icmp ugt i32 %52, 1
  br i1 %53, label %54, label %242

54:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %55, i32 0, i32 2
  %57 = load i32, ptr %56, align 4, !tbaa !14
  %58 = udiv i32 %57, 4
  store i32 %58, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %59, i32 0, i32 0
  %61 = load ptr, ptr %60, align 8, !tbaa !15
  store ptr %61, ptr %16, align 8, !tbaa !5
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %62, i32 0, i32 1
  %64 = load i32, ptr %63, align 8, !tbaa !16
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %65, i32 0, i32 2
  %67 = load i32, ptr %66, align 4, !tbaa !14
  %68 = sub i32 %64, %67
  %69 = icmp ult i32 %68, 4
  br i1 %69, label %70, label %79

70:                                               ; preds = %54
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %73 = icmp ult i32 1, %72
  br i1 %73, label %74, label %76

74:                                               ; preds = %70
  %75 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %77

76:                                               ; preds = %70
  br label %77

77:                                               ; preds = %76, %74
  %78 = phi i32 [ %75, %74 ], [ 1, %76 ]
  call void @libxsmm_handle_error(ptr noundef %71, i32 noundef 90002, ptr noundef @__func__.libxsmm_aarch64_instruction_asimd_move, ptr noundef @.str.1, i32 noundef 360, i32 noundef %78)
  store i32 1, ptr %17, align 4
  br label %239

79:                                               ; preds = %54
  %80 = load i32, ptr %9, align 4, !tbaa !9
  %81 = and i32 -256, %80
  %82 = load ptr, ptr %16, align 8, !tbaa !5
  %83 = load i32, ptr %15, align 4, !tbaa !9
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds i32, ptr %82, i64 %84
  store i32 %81, ptr %85, align 4, !tbaa !9
  %86 = load i32, ptr %13, align 4, !tbaa !9
  %87 = and i32 31, %86
  %88 = load ptr, ptr %16, align 8, !tbaa !5
  %89 = load i32, ptr %15, align 4, !tbaa !9
  %90 = zext i32 %89 to i64
  %91 = getelementptr inbounds i32, ptr %88, i64 %90
  %92 = load i32, ptr %91, align 4, !tbaa !9
  %93 = or i32 %92, %87
  store i32 %93, ptr %91, align 4, !tbaa !9
  %94 = load i32, ptr %10, align 4, !tbaa !9
  %95 = and i32 31, %94
  %96 = shl i32 %95, 5
  %97 = load ptr, ptr %16, align 8, !tbaa !5
  %98 = load i32, ptr %15, align 4, !tbaa !9
  %99 = zext i32 %98 to i64
  %100 = getelementptr inbounds i32, ptr %97, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !9
  %102 = or i32 %101, %96
  store i32 %102, ptr %100, align 4, !tbaa !9
  %103 = load i32, ptr %14, align 4, !tbaa !9
  %104 = and i32 6, %103
  %105 = shl i32 %104, 29
  %106 = load ptr, ptr %16, align 8, !tbaa !5
  %107 = load i32, ptr %15, align 4, !tbaa !9
  %108 = zext i32 %107 to i64
  %109 = getelementptr inbounds i32, ptr %106, i64 %108
  %110 = load i32, ptr %109, align 4, !tbaa !9
  %111 = or i32 %110, %105
  store i32 %111, ptr %109, align 4, !tbaa !9
  %112 = load i32, ptr %14, align 4, !tbaa !9
  %113 = and i32 1, %112
  %114 = shl i32 %113, 23
  %115 = load ptr, ptr %16, align 8, !tbaa !5
  %116 = load i32, ptr %15, align 4, !tbaa !9
  %117 = zext i32 %116 to i64
  %118 = getelementptr inbounds i32, ptr %115, i64 %117
  %119 = load i32, ptr %118, align 4, !tbaa !9
  %120 = or i32 %119, %114
  store i32 %120, ptr %118, align 4, !tbaa !9
  %121 = load i32, ptr %9, align 4, !tbaa !9
  %122 = and i32 %121, 3
  %123 = icmp eq i32 %122, 3
  br i1 %123, label %124, label %147

124:                                              ; preds = %79
  %125 = load i32, ptr %9, align 4, !tbaa !9
  %126 = and i32 %125, 4
  %127 = icmp eq i32 %126, 0
  br i1 %127, label %128, label %147

128:                                              ; preds = %124
  %129 = load i32, ptr %11, align 4, !tbaa !9
  %130 = and i32 31, %129
  %131 = shl i32 %130, 16
  %132 = load ptr, ptr %16, align 8, !tbaa !5
  %133 = load i32, ptr %15, align 4, !tbaa !9
  %134 = zext i32 %133 to i64
  %135 = getelementptr inbounds i32, ptr %132, i64 %134
  %136 = load i32, ptr %135, align 4, !tbaa !9
  %137 = or i32 %136, %131
  store i32 %137, ptr %135, align 4, !tbaa !9
  %138 = load i32, ptr %11, align 4, !tbaa !9
  %139 = and i32 32, %138
  %140 = shl i32 %139, 8
  %141 = load ptr, ptr %16, align 8, !tbaa !5
  %142 = load i32, ptr %15, align 4, !tbaa !9
  %143 = zext i32 %142 to i64
  %144 = getelementptr inbounds i32, ptr %141, i64 %143
  %145 = load i32, ptr %144, align 4, !tbaa !9
  %146 = or i32 %145, %140
  store i32 %146, ptr %144, align 4, !tbaa !9
  br label %147

147:                                              ; preds = %128, %124, %79
  %148 = load i32, ptr %9, align 4, !tbaa !9
  %149 = and i32 %148, 6
  %150 = icmp eq i32 %149, 6
  br i1 %150, label %151, label %234

151:                                              ; preds = %147
  %152 = load i32, ptr %9, align 4, !tbaa !9
  %153 = icmp eq i32 %152, 1027604486
  br i1 %153, label %157, label %154

154:                                              ; preds = %151
  %155 = load i32, ptr %9, align 4, !tbaa !9
  %156 = icmp eq i32 %155, 1023410182
  br i1 %156, label %157, label %205

157:                                              ; preds = %154, %151
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %158 = load i32, ptr %14, align 4, !tbaa !9
  switch i32 %158, label %171 [
    i32 2, label %159
    i32 4, label %162
    i32 6, label %165
    i32 1, label %168
  ]

159:                                              ; preds = %157
  %160 = load i32, ptr %12, align 4, !tbaa !9
  %161 = sdiv i32 %160, 2
  store i32 %161, ptr %18, align 4, !tbaa !9
  br label %173

162:                                              ; preds = %157
  %163 = load i32, ptr %12, align 4, !tbaa !9
  %164 = sdiv i32 %163, 4
  store i32 %164, ptr %18, align 4, !tbaa !9
  br label %173

165:                                              ; preds = %157
  %166 = load i32, ptr %12, align 4, !tbaa !9
  %167 = sdiv i32 %166, 8
  store i32 %167, ptr %18, align 4, !tbaa !9
  br label %173

168:                                              ; preds = %157
  %169 = load i32, ptr %12, align 4, !tbaa !9
  %170 = sdiv i32 %169, 16
  store i32 %170, ptr %18, align 4, !tbaa !9
  br label %173

171:                                              ; preds = %157
  %172 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %172, ptr %18, align 4, !tbaa !9
  br label %173

173:                                              ; preds = %171, %168, %165, %162, %159
  %174 = load i32, ptr %18, align 4, !tbaa !9
  %175 = icmp sgt i32 %174, 4095
  br i1 %175, label %179, label %176

176:                                              ; preds = %173
  %177 = load i32, ptr %12, align 4, !tbaa !9
  %178 = icmp slt i32 %177, 0
  br i1 %178, label %179, label %192

179:                                              ; preds = %176, %173
  %180 = load ptr, ptr @stderr, align 8, !tbaa !5
  %181 = load i32, ptr %18, align 4, !tbaa !9
  %182 = load i32, ptr %12, align 4, !tbaa !9
  %183 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %180, ptr noundef @.str.9, i32 noundef %181, i32 noundef %182) #4
  %184 = load ptr, ptr %8, align 8, !tbaa !5
  %185 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %186 = icmp ult i32 1, %185
  br i1 %186, label %187, label %189

187:                                              ; preds = %179
  %188 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %190

189:                                              ; preds = %179
  br label %190

190:                                              ; preds = %189, %187
  %191 = phi i32 [ %188, %187 ], [ 1, %189 ]
  call void @libxsmm_handle_error(ptr noundef %184, i32 noundef 90000, ptr noundef @__func__.libxsmm_aarch64_instruction_asimd_move, ptr noundef @.str.1, i32 noundef 409, i32 noundef %191)
  store i32 1, ptr %17, align 4
  br label %202

192:                                              ; preds = %176
  %193 = load i32, ptr %18, align 4, !tbaa !9
  %194 = and i32 4095, %193
  %195 = shl i32 %194, 10
  %196 = load ptr, ptr %16, align 8, !tbaa !5
  %197 = load i32, ptr %15, align 4, !tbaa !9
  %198 = zext i32 %197 to i64
  %199 = getelementptr inbounds i32, ptr %196, i64 %198
  %200 = load i32, ptr %199, align 4, !tbaa !9
  %201 = or i32 %200, %195
  store i32 %201, ptr %199, align 4, !tbaa !9
  store i32 0, ptr %17, align 4
  br label %202

202:                                              ; preds = %192, %190
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  %203 = load i32, ptr %17, align 4
  switch i32 %203, label %239 [
    i32 0, label %204
  ]

204:                                              ; preds = %202
  br label %233

205:                                              ; preds = %154
  %206 = load i32, ptr %12, align 4, !tbaa !9
  %207 = icmp slt i32 %206, -256
  br i1 %207, label %211, label %208

208:                                              ; preds = %205
  %209 = load i32, ptr %12, align 4, !tbaa !9
  %210 = icmp sgt i32 %209, 255
  br i1 %210, label %211, label %223

211:                                              ; preds = %208, %205
  %212 = load ptr, ptr @stderr, align 8, !tbaa !5
  %213 = load i32, ptr %12, align 4, !tbaa !9
  %214 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %212, ptr noundef @.str.10, i32 noundef %213) #4
  %215 = load ptr, ptr %8, align 8, !tbaa !5
  %216 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %217 = icmp ult i32 1, %216
  br i1 %217, label %218, label %220

218:                                              ; preds = %211
  %219 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %221

220:                                              ; preds = %211
  br label %221

221:                                              ; preds = %220, %218
  %222 = phi i32 [ %219, %218 ], [ 1, %220 ]
  call void @libxsmm_handle_error(ptr noundef %215, i32 noundef 90000, ptr noundef @__func__.libxsmm_aarch64_instruction_asimd_move, ptr noundef @.str.1, i32 noundef 416, i32 noundef %222)
  store i32 1, ptr %17, align 4
  br label %239

223:                                              ; preds = %208
  %224 = load i32, ptr %12, align 4, !tbaa !9
  %225 = and i32 511, %224
  %226 = shl i32 %225, 12
  %227 = load ptr, ptr %16, align 8, !tbaa !5
  %228 = load i32, ptr %15, align 4, !tbaa !9
  %229 = zext i32 %228 to i64
  %230 = getelementptr inbounds i32, ptr %227, i64 %229
  %231 = load i32, ptr %230, align 4, !tbaa !9
  %232 = or i32 %231, %226
  store i32 %232, ptr %230, align 4, !tbaa !9
  br label %233

233:                                              ; preds = %223, %204
  br label %234

234:                                              ; preds = %233, %147
  %235 = load ptr, ptr %8, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %235, i32 0, i32 2
  %237 = load i32, ptr %236, align 4, !tbaa !14
  %238 = add i32 %237, 4
  store i32 %238, ptr %236, align 4, !tbaa !14
  store i32 0, ptr %17, align 4
  br label %239

239:                                              ; preds = %234, %221, %202, %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  %240 = load i32, ptr %17, align 4
  switch i32 %240, label %254 [
    i32 0, label %241
    i32 1, label %253
  ]

241:                                              ; preds = %239
  br label %253

242:                                              ; preds = %49
  %243 = load ptr, ptr @stderr, align 8, !tbaa !5
  %244 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %243, ptr noundef @.str.11) #4
  %245 = load ptr, ptr %8, align 8, !tbaa !5
  %246 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %247 = icmp ult i32 1, %246
  br i1 %247, label %248, label %250

248:                                              ; preds = %242
  %249 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %251

250:                                              ; preds = %242
  br label %251

251:                                              ; preds = %250, %248
  %252 = phi i32 [ %249, %248 ], [ 1, %250 ]
  call void @libxsmm_handle_error(ptr noundef %245, i32 noundef 90000, ptr noundef @__func__.libxsmm_aarch64_instruction_asimd_move, ptr noundef @.str.1, i32 noundef 428, i32 noundef %252)
  br label %253

253:                                              ; preds = %251, %241, %239, %47, %32
  ret void

254:                                              ; preds = %239
  unreachable
}

attributes #0 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 }

!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 = !{!12, !10, i64 16}
!14 = !{!12, !10, i64 12}
!15 = !{!12, !6, i64 0}
!16 = !{!12, !10, i64 8}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [86 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.7 = external hidden unnamed_addr constant [96 x i8], align 1
@__func__.libxsmm_aarch64_instruction_asimd_move = external hidden unnamed_addr constant [39 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [107 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [107 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [86 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_aarch64_instruction_asimd_move(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) local_unnamed_addr #2 {
  %8 = getelementptr inbounds i8, ptr %0, i64 28
  %9 = load i32, ptr %8, align 4, !tbaa !5
  %10 = icmp ult i32 %9, 2001
  br i1 %10, label %11, label %18

11:                                               ; preds = %7
  %12 = load ptr, ptr @stderr, align 8, !tbaa !11
  %13 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef nonnull @.str.7) #3
  %14 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %15 = icmp ugt i32 %14, 1
  %16 = load i32, ptr @libxsmm_verbosity, align 4
  %17 = select i1 %15, i32 %16, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_aarch64_instruction_asimd_move, ptr noundef nonnull @.str.1, i32 noundef 334, i32 noundef %17) #4
  br label %117

18:                                               ; preds = %7
  switch i32 %1, label %19 [
    i32 1012942851, label %26
    i32 1027604486, label %26
    i32 1010828294, label %26
    i32 1010830342, label %26
    i32 1008748547, label %26
    i32 1023410182, label %26
    i32 1006633990, label %26
    i32 1006636038, label %26
  ]

19:                                               ; preds = %18
  %20 = load ptr, ptr @stderr, align 8, !tbaa !11
  %21 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.8, i32 noundef %1) #3
  %22 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %23 = icmp ugt i32 %22, 1
  %24 = load i32, ptr @libxsmm_verbosity, align 4
  %25 = select i1 %23, i32 %24, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_aarch64_instruction_asimd_move, ptr noundef nonnull @.str.1, i32 noundef 350, i32 noundef %25) #4
  br label %117

26:                                               ; preds = %18, %18, %18, %18, %18, %18, %18, %18
  %27 = getelementptr inbounds i8, ptr %0, i64 16
  %28 = load i32, ptr %27, align 8, !tbaa !13
  %29 = icmp ugt i32 %28, 1
  br i1 %29, label %30, label %110

30:                                               ; preds = %26
  %31 = getelementptr inbounds i8, ptr %0, i64 12
  %32 = load i32, ptr %31, align 4, !tbaa !14
  %33 = getelementptr inbounds i8, ptr %0, i64 8
  %34 = load i32, ptr %33, align 8, !tbaa !15
  %35 = sub i32 %34, %32
  %36 = icmp ult i32 %35, 4
  br i1 %36, label %37, label %42

37:                                               ; preds = %30
  %38 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %39 = icmp ugt i32 %38, 1
  %40 = load i32, ptr @libxsmm_verbosity, align 4
  %41 = select i1 %39, i32 %40, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90002, ptr noundef nonnull @__func__.libxsmm_aarch64_instruction_asimd_move, ptr noundef nonnull @.str.1, i32 noundef 360, i32 noundef %41) #4
  br label %117

42:                                               ; preds = %30
  %43 = load ptr, ptr %0, align 8, !tbaa !16
  %44 = lshr i32 %32, 2
  %45 = and i32 %1, -256
  %46 = zext nneg i32 %44 to i64
  %47 = getelementptr inbounds i32, ptr %43, i64 %46
  %48 = and i32 %5, 31
  %49 = shl i32 %2, 5
  %50 = and i32 %49, 992
  %51 = shl i32 %6, 29
  %52 = and i32 %51, -1073741824
  %53 = shl i32 %6, 23
  %54 = and i32 %53, 8388608
  %55 = or i32 %50, %45
  %56 = or disjoint i32 %55, %48
  %57 = or i32 %56, %52
  %58 = or i32 %57, %54
  %59 = and i32 %1, 7
  %or.cond69 = icmp eq i32 %59, 3
  br i1 %or.cond69, label %60, label %67

60:                                               ; preds = %42
  %61 = shl i32 %3, 16
  %62 = and i32 %61, 2031616
  %63 = shl i32 %3, 8
  %64 = and i32 %63, 8192
  %65 = or disjoint i32 %62, %64
  %66 = or i32 %65, %58
  br label %67

67:                                               ; preds = %60, %42
  %68 = phi i32 [ %66, %60 ], [ %58, %42 ]
  store i32 %68, ptr %47, align 4, !tbaa !12
  %69 = and i32 %1, 6
  %70 = icmp eq i32 %69, 6
  br i1 %70, label %71, label %107

71:                                               ; preds = %67
  %72 = and i32 %1, -4194305
  %or.cond = icmp eq i32 %72, 1023410182
  br i1 %or.cond, label %73, label %94

73:                                               ; preds = %71
  switch i32 %6, label %82 [
    i32 2, label %74
    i32 4, label %76
    i32 6, label %78
    i32 1, label %80
  ]

74:                                               ; preds = %73
  %75 = sdiv i32 %4, 2
  br label %82

76:                                               ; preds = %73
  %77 = sdiv i32 %4, 4
  br label %82

78:                                               ; preds = %73
  %79 = sdiv i32 %4, 8
  br label %82

80:                                               ; preds = %73
  %81 = sdiv i32 %4, 16
  br label %82

82:                                               ; preds = %73, %80, %78, %76, %74
  %.0 = phi i32 [ %81, %80 ], [ %79, %78 ], [ %77, %76 ], [ %75, %74 ], [ %4, %73 ]
  %83 = icmp slt i32 %.0, 4096
  %84 = icmp sgt i32 %4, -1
  %or.cond3.not = and i1 %84, %83
  br i1 %or.cond3.not, label %.thread, label %87

.thread:                                          ; preds = %82
  %85 = shl i32 %.0, 10
  %86 = and i32 %85, 4193280
  br label %.sink.split

87:                                               ; preds = %82
  %88 = load ptr, ptr @stderr, align 8, !tbaa !11
  %89 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %88, ptr noundef nonnull @.str.9, i32 noundef %.0, i32 noundef %4) #3
  %90 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %91 = icmp ugt i32 %90, 1
  %92 = load i32, ptr @libxsmm_verbosity, align 4
  %93 = select i1 %91, i32 %92, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_aarch64_instruction_asimd_move, ptr noundef nonnull @.str.1, i32 noundef 409, i32 noundef %93) #4
  br label %117

94:                                               ; preds = %71
  %95 = add i32 %4, -256
  %or.cond5 = icmp ult i32 %95, -512
  br i1 %or.cond5, label %96, label %103

96:                                               ; preds = %94
  %97 = load ptr, ptr @stderr, align 8, !tbaa !11
  %98 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef nonnull @.str.10, i32 noundef %4) #3
  %99 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %100 = icmp ugt i32 %99, 1
  %101 = load i32, ptr @libxsmm_verbosity, align 4
  %102 = select i1 %100, i32 %101, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_aarch64_instruction_asimd_move, ptr noundef nonnull @.str.1, i32 noundef 416, i32 noundef %102) #4
  br label %117

103:                                              ; preds = %94
  %104 = shl nsw i32 %4, 12
  %105 = and i32 %104, 2093056
  br label %.sink.split

.sink.split:                                      ; preds = %103, %.thread
  %.sink70 = phi i32 [ %86, %.thread ], [ %105, %103 ]
  %106 = or i32 %68, %.sink70
  store i32 %106, ptr %47, align 4, !tbaa !12
  br label %107

107:                                              ; preds = %.sink.split, %67
  %108 = load i32, ptr %31, align 4, !tbaa !14
  %109 = add i32 %108, 4
  store i32 %109, ptr %31, align 4, !tbaa !14
  br label %117

110:                                              ; preds = %26
  %111 = load ptr, ptr @stderr, align 8, !tbaa !11
  %112 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %111, ptr noundef nonnull @.str.11) #3
  %113 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %114 = icmp ugt i32 %113, 1
  %115 = load i32, ptr @libxsmm_verbosity, align 4
  %116 = select i1 %114, i32 %115, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_aarch64_instruction_asimd_move, ptr noundef nonnull @.str.1, i32 noundef 428, i32 noundef %116) #4
  br label %117

117:                                              ; preds = %87, %37, %96, %107, %110, %19, %11
  ret void
}

attributes #0 = { nofree 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 #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 = { cold nounwind }
attributes #4 = { 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 = !{!7, !7, i64 0}
!12 = !{!10, !10, i64 0}
!13 = !{!6, !10, i64 16}
!14 = !{!6, !10, i64 12}
!15 = !{!6, !10, i64 8}
!16 = !{!6, !7, i64 0}


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