; 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.12 = external hidden unnamed_addr constant [100 x i8], align 1
@__func__.libxsmm_aarch64_instruction_asimd_gpr_move = external hidden unnamed_addr constant [43 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [90 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_gpr_move(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i16 noundef signext %4, i32 noundef %5) #3 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i16, align 2
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !9
  store i16 %4, ptr %11, align 2, !tbaa !11
  store i32 %5, ptr %12, align 4, !tbaa !9
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %17, i32 0, i32 6
  %19 = load i32, ptr %18, align 4, !tbaa !13
  %20 = icmp ult i32 %19, 2001
  br i1 %20, label %21, label %32

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

27:                                               ; preds = %21
  %28 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %30

29:                                               ; preds = %21
  br label %30

30:                                               ; preds = %29, %27
  %31 = phi i32 [ %28, %27 ], [ 1, %29 ]
  call void @libxsmm_handle_error(ptr noundef %24, i32 noundef 90000, ptr noundef @__func__.libxsmm_aarch64_instruction_asimd_gpr_move, ptr noundef @.str.1, i32 noundef 442, i32 noundef %31)
  br label %217

32:                                               ; preds = %6
  %33 = load i32, ptr %8, align 4, !tbaa !9
  switch i32 %33, label %35 [
    i32 234896406, label %34
    i32 1308630046, label %34
    i32 234884126, label %34
    i32 1308625950, label %34
  ]

34:                                               ; preds = %32, %32, %32, %32
  br label %47

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

42:                                               ; preds = %35
  %43 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %45

44:                                               ; preds = %35
  br label %45

45:                                               ; preds = %44, %42
  %46 = phi i32 [ %43, %42 ], [ 1, %44 ]
  call void @libxsmm_handle_error(ptr noundef %39, i32 noundef 90000, ptr noundef @__func__.libxsmm_aarch64_instruction_asimd_gpr_move, ptr noundef @.str.1, i32 noundef 454, i32 noundef %46)
  br label %217

47:                                               ; preds = %34
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %48, i32 0, i32 3
  %50 = load i32, ptr %49, align 8, !tbaa !15
  %51 = icmp ugt i32 %50, 1
  br i1 %51, label %52, label %206

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

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

72:                                               ; preds = %68
  %73 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %75

74:                                               ; preds = %68
  br label %75

75:                                               ; preds = %74, %72
  %76 = phi i32 [ %73, %72 ], [ 1, %74 ]
  call void @libxsmm_handle_error(ptr noundef %69, i32 noundef 90002, ptr noundef @__func__.libxsmm_aarch64_instruction_asimd_gpr_move, ptr noundef @.str.1, i32 noundef 465, i32 noundef %76)
  store i32 1, ptr %16, align 4
  br label %203

77:                                               ; preds = %52
  %78 = load i32, ptr %8, align 4, !tbaa !9
  %79 = and i32 -256, %78
  %80 = load ptr, ptr %14, align 8, !tbaa !5
  %81 = load i32, ptr %13, align 4, !tbaa !9
  %82 = zext i32 %81 to i64
  %83 = getelementptr inbounds i32, ptr %80, i64 %82
  store i32 %79, ptr %83, align 4, !tbaa !9
  %84 = load i32, ptr %8, align 4, !tbaa !9
  %85 = and i32 %84, 8
  %86 = icmp eq i32 %85, 8
  br i1 %86, label %87, label %90

87:                                               ; preds = %77
  %88 = load i32, ptr %10, align 4, !tbaa !9
  %89 = and i32 31, %88
  br label %93

90:                                               ; preds = %77
  %91 = load i32, ptr %9, align 4, !tbaa !9
  %92 = and i32 31, %91
  br label %93

93:                                               ; preds = %90, %87
  %94 = phi i32 [ %89, %87 ], [ %92, %90 ]
  %95 = load ptr, ptr %14, align 8, !tbaa !5
  %96 = load i32, ptr %13, align 4, !tbaa !9
  %97 = zext i32 %96 to i64
  %98 = getelementptr inbounds i32, ptr %95, i64 %97
  %99 = load i32, ptr %98, align 4, !tbaa !9
  %100 = or i32 %99, %94
  store i32 %100, ptr %98, align 4, !tbaa !9
  %101 = load i32, ptr %8, align 4, !tbaa !9
  %102 = and i32 %101, 8
  %103 = icmp eq i32 %102, 8
  br i1 %103, label %104, label %108

104:                                              ; preds = %93
  %105 = load i32, ptr %9, align 4, !tbaa !9
  %106 = and i32 31, %105
  %107 = shl i32 %106, 5
  br label %112

108:                                              ; preds = %93
  %109 = load i32, ptr %10, align 4, !tbaa !9
  %110 = and i32 31, %109
  %111 = shl i32 %110, 5
  br label %112

112:                                              ; preds = %108, %104
  %113 = phi i32 [ %107, %104 ], [ %111, %108 ]
  %114 = load ptr, ptr %14, align 8, !tbaa !5
  %115 = load i32, ptr %13, align 4, !tbaa !9
  %116 = zext i32 %115 to i64
  %117 = getelementptr inbounds i32, ptr %114, i64 %116
  %118 = load i32, ptr %117, align 4, !tbaa !9
  %119 = or i32 %118, %113
  store i32 %119, ptr %117, align 4, !tbaa !9
  %120 = load i32, ptr %12, align 4, !tbaa !9
  %121 = icmp eq i32 %120, 6
  %122 = zext i1 %121 to i64
  %123 = select i1 %121, i32 1073741824, i32 0
  %124 = load ptr, ptr %14, align 8, !tbaa !5
  %125 = load i32, ptr %13, align 4, !tbaa !9
  %126 = zext i32 %125 to i64
  %127 = getelementptr inbounds i32, ptr %124, i64 %126
  %128 = load i32, ptr %127, align 4, !tbaa !9
  %129 = or i32 %128, %123
  store i32 %129, ptr %127, align 4, !tbaa !9
  %130 = load i32, ptr %8, align 4, !tbaa !9
  %131 = icmp eq i32 %130, 1308625950
  br i1 %131, label %132, label %139

132:                                              ; preds = %112
  %133 = load ptr, ptr %14, align 8, !tbaa !5
  %134 = load i32, ptr %13, align 4, !tbaa !9
  %135 = zext i32 %134 to i64
  %136 = getelementptr inbounds i32, ptr %133, i64 %135
  %137 = load i32, ptr %136, align 4, !tbaa !9
  %138 = or i32 %137, 1073741824
  store i32 %138, ptr %136, align 4, !tbaa !9
  br label %139

139:                                              ; preds = %132, %112
  %140 = load i32, ptr %12, align 4, !tbaa !9
  %141 = icmp eq i32 %140, 0
  br i1 %141, label %142, label %148

142:                                              ; preds = %139
  %143 = load i16, ptr %11, align 2, !tbaa !11
  %144 = sext i16 %143 to i32
  %145 = and i32 %144, 15
  %146 = shl i32 %145, 1
  %147 = or i32 1, %146
  store i32 %147, ptr %15, align 4, !tbaa !9
  br label %190

148:                                              ; preds = %139
  %149 = load i32, ptr %12, align 4, !tbaa !9
  %150 = icmp eq i32 %149, 2
  br i1 %150, label %151, label %157

151:                                              ; preds = %148
  %152 = load i16, ptr %11, align 2, !tbaa !11
  %153 = sext i16 %152 to i32
  %154 = and i32 %153, 7
  %155 = shl i32 %154, 2
  %156 = or i32 2, %155
  store i32 %156, ptr %15, align 4, !tbaa !9
  br label %189

157:                                              ; preds = %148
  %158 = load i32, ptr %12, align 4, !tbaa !9
  %159 = icmp eq i32 %158, 4
  br i1 %159, label %160, label %166

160:                                              ; preds = %157
  %161 = load i16, ptr %11, align 2, !tbaa !11
  %162 = sext i16 %161 to i32
  %163 = and i32 %162, 3
  %164 = shl i32 %163, 3
  %165 = or i32 4, %164
  store i32 %165, ptr %15, align 4, !tbaa !9
  br label %188

166:                                              ; preds = %157
  %167 = load i32, ptr %12, align 4, !tbaa !9
  %168 = icmp eq i32 %167, 6
  br i1 %168, label %169, label %175

169:                                              ; preds = %166
  %170 = load i16, ptr %11, align 2, !tbaa !11
  %171 = sext i16 %170 to i32
  %172 = and i32 %171, 1
  %173 = shl i32 %172, 4
  %174 = or i32 8, %173
  store i32 %174, ptr %15, align 4, !tbaa !9
  br label %187

175:                                              ; preds = %166
  %176 = load ptr, ptr @stderr, align 8, !tbaa !5
  %177 = load i32, ptr %8, align 4, !tbaa !9
  %178 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %176, ptr noundef @.str.14, i32 noundef %177) #4
  %179 = load ptr, ptr %7, align 8, !tbaa !5
  %180 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %181 = icmp ult i32 1, %180
  br i1 %181, label %182, label %184

182:                                              ; preds = %175
  %183 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %185

184:                                              ; preds = %175
  br label %185

185:                                              ; preds = %184, %182
  %186 = phi i32 [ %183, %182 ], [ 1, %184 ]
  call void @libxsmm_handle_error(ptr noundef %179, i32 noundef 90000, ptr noundef @__func__.libxsmm_aarch64_instruction_asimd_gpr_move, ptr noundef @.str.1, i32 noundef 494, i32 noundef %186)
  store i32 1, ptr %16, align 4
  br label %203

187:                                              ; preds = %169
  br label %188

188:                                              ; preds = %187, %160
  br label %189

189:                                              ; preds = %188, %151
  br label %190

190:                                              ; preds = %189, %142
  %191 = load i32, ptr %15, align 4, !tbaa !9
  %192 = shl i32 %191, 16
  %193 = load ptr, ptr %14, align 8, !tbaa !5
  %194 = load i32, ptr %13, align 4, !tbaa !9
  %195 = zext i32 %194 to i64
  %196 = getelementptr inbounds i32, ptr %193, i64 %195
  %197 = load i32, ptr %196, align 4, !tbaa !9
  %198 = or i32 %197, %192
  store i32 %198, ptr %196, align 4, !tbaa !9
  %199 = load ptr, ptr %7, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %199, i32 0, i32 2
  %201 = load i32, ptr %200, align 4, !tbaa !16
  %202 = add i32 %201, 4
  store i32 %202, ptr %200, align 4, !tbaa !16
  store i32 0, ptr %16, align 4
  br label %203

203:                                              ; preds = %190, %185, %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  %204 = load i32, ptr %16, align 4
  switch i32 %204, label %218 [
    i32 0, label %205
    i32 1, label %217
  ]

205:                                              ; preds = %203
  br label %217

206:                                              ; preds = %47
  %207 = load ptr, ptr @stderr, align 8, !tbaa !5
  %208 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %207, ptr noundef @.str.15) #4
  %209 = load ptr, ptr %7, align 8, !tbaa !5
  %210 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %211 = icmp ult i32 1, %210
  br i1 %211, label %212, label %214

212:                                              ; preds = %206
  %213 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %215

214:                                              ; preds = %206
  br label %215

215:                                              ; preds = %214, %212
  %216 = phi i32 [ %213, %212 ], [ 1, %214 ]
  call void @libxsmm_handle_error(ptr noundef %209, i32 noundef 90000, ptr noundef @__func__.libxsmm_aarch64_instruction_asimd_gpr_move, ptr noundef @.str.1, i32 noundef 505, i32 noundef %216)
  br label %217

217:                                              ; preds = %215, %205, %203, %45, %30
  ret void

218:                                              ; preds = %203
  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, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!14, !10, i64 28}
!14 = !{!"libxsmm_generated_code", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!15 = !{!14, !10, i64 16}
!16 = !{!14, !10, i64 12}
!17 = !{!14, !6, i64 0}
!18 = !{!14, !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.12 = external hidden unnamed_addr constant [100 x i8], align 1
@__func__.libxsmm_aarch64_instruction_asimd_gpr_move = external hidden unnamed_addr constant [43 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [90 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_gpr_move(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i16 noundef signext %4, i32 noundef %5) local_unnamed_addr #2 {
  %7 = getelementptr inbounds i8, ptr %0, i64 28
  %8 = load i32, ptr %7, align 4, !tbaa !5
  %9 = icmp ult i32 %8, 2001
  br i1 %9, label %10, label %17

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

17:                                               ; preds = %6
  switch i32 %1, label %18 [
    i32 234896406, label %25
    i32 1308630046, label %25
    i32 234884126, label %25
    i32 1308625950, label %25
  ]

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

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

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

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

41:                                               ; preds = %29
  %42 = load ptr, ptr %0, align 8, !tbaa !16
  %43 = lshr i32 %31, 2
  %44 = and i32 %1, -256
  %45 = zext nneg i32 %43 to i64
  %46 = getelementptr inbounds i32, ptr %42, i64 %45
  %47 = and i32 %1, 8
  %.not = icmp eq i32 %47, 0
  %48 = and i32 %3, 31
  %49 = and i32 %2, 31
  %50 = select i1 %.not, i32 %49, i32 %48
  %51 = or disjoint i32 %50, %44
  %. = select i1 %.not, i32 %48, i32 %49
  %52 = shl nuw nsw i32 %., 5
  %53 = or i32 %51, %52
  %54 = icmp eq i32 %5, 6
  %55 = icmp eq i32 %1, 1308625950
  %56 = or i1 %55, %54
  %storemerge.v = select i1 %56, i32 1073741824, i32 0
  %storemerge = or i32 %53, %storemerge.v
  store i32 %storemerge, ptr %46, align 4, !tbaa !12
  switch i32 %5, label %59 [
    i32 0, label %67
    i32 2, label %57
    i32 4, label %58
  ]

57:                                               ; preds = %41
  br label %67

58:                                               ; preds = %41
  br label %67

59:                                               ; preds = %41
  br i1 %54, label %67, label %60

60:                                               ; preds = %59
  %61 = load ptr, ptr @stderr, align 8, !tbaa !11
  %62 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef nonnull @.str.14, i32 noundef %1) #3
  %63 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %64 = icmp ugt i32 %63, 1
  %65 = load i32, ptr @libxsmm_verbosity, align 4
  %66 = select i1 %64, i32 %65, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_aarch64_instruction_asimd_gpr_move, ptr noundef nonnull @.str.1, i32 noundef 494, i32 noundef %66) #4
  br label %82

67:                                               ; preds = %59, %41, %57, %58
  %.sink = phi i16 [ 2, %57 ], [ 3, %58 ], [ 1, %41 ], [ 4, %59 ]
  %.sink47 = phi i16 [ 28, %57 ], [ 24, %58 ], [ 30, %41 ], [ 16, %59 ]
  %.sink45 = phi i16 [ 2, %57 ], [ 4, %58 ], [ 1, %41 ], [ 8, %59 ]
  %68 = shl i16 %4, %.sink
  %69 = and i16 %68, %.sink47
  %70 = or disjoint i16 %69, %.sink45
  %.0 = zext nneg i16 %70 to i32
  %71 = shl nuw nsw i32 %.0, 16
  %72 = or i32 %71, %storemerge
  store i32 %72, ptr %46, align 4, !tbaa !12
  %73 = load i32, ptr %30, align 4, !tbaa !14
  %74 = add i32 %73, 4
  store i32 %74, ptr %30, align 4, !tbaa !14
  br label %82

75:                                               ; preds = %25
  %76 = load ptr, ptr @stderr, align 8, !tbaa !11
  %77 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef nonnull @.str.15) #3
  %78 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %79 = icmp ugt i32 %78, 1
  %80 = load i32, ptr @libxsmm_verbosity, align 4
  %81 = select i1 %79, i32 %80, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_aarch64_instruction_asimd_gpr_move, ptr noundef nonnull @.str.1, i32 noundef 505, i32 noundef %81) #4
  br label %82

82:                                               ; preds = %36, %60, %67, %75, %18, %10
  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,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass