; 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.69 = external hidden unnamed_addr constant [103 x i8], align 1
@__func__.libxsmm_aarch64_instruction_alu_compute_imm12 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [93 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: nounwind uwtable
define dso_local void @libxsmm_aarch64_instruction_alu_compute_imm12(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i8 noundef zeroext %5) #2 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i8, align 1
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = 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 i32 %4, ptr %11, align 4, !tbaa !9
  store i8 %5, ptr %12, align 1, !tbaa !11
  %16 = load ptr, ptr %7, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %16, i32 0, i32 6
  %18 = load i32, ptr %17, align 4, !tbaa !12
  %19 = icmp ult i32 %18, 2001
  br i1 %19, label %20, label %31

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

26:                                               ; preds = %20
  %27 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %29

28:                                               ; preds = %20
  br label %29

29:                                               ; preds = %28, %26
  %30 = phi i32 [ %27, %26 ], [ 1, %28 ]
  call void @libxsmm_handle_error(ptr noundef %23, i32 noundef 90000, ptr noundef @__func__.libxsmm_aarch64_instruction_alu_compute_imm12, ptr noundef @.str.1, i32 noundef 1743, i32 noundef %30)
  br label %194

31:                                               ; preds = %6
  %32 = load i32, ptr %8, align 4, !tbaa !9
  switch i32 %32, label %34 [
    i32 285212678, label %33
    i32 1358954502, label %33
  ]

33:                                               ; preds = %31, %31
  br label %46

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

41:                                               ; preds = %34
  %42 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %44

43:                                               ; preds = %34
  br label %44

44:                                               ; preds = %43, %41
  %45 = phi i32 [ %42, %41 ], [ 1, %43 ]
  call void @libxsmm_handle_error(ptr noundef %38, i32 noundef 90000, ptr noundef @__func__.libxsmm_aarch64_instruction_alu_compute_imm12, ptr noundef @.str.1, i32 noundef 1761, i32 noundef %45)
  br label %194

46:                                               ; preds = %33
  %47 = load i32, ptr %11, align 4, !tbaa !9
  %48 = icmp ugt i32 %47, 4095
  br i1 %48, label %53, label %49

49:                                               ; preds = %46
  %50 = load i8, ptr %12, align 1, !tbaa !11
  %51 = zext i8 %50 to i32
  %52 = icmp sgt i32 %51, 1
  br i1 %52, label %53, label %68

53:                                               ; preds = %49, %46
  %54 = load ptr, ptr @stderr, align 8, !tbaa !5
  %55 = load i32, ptr %8, align 4, !tbaa !9
  %56 = load i32, ptr %11, align 4, !tbaa !9
  %57 = load i8, ptr %12, align 1, !tbaa !11
  %58 = zext i8 %57 to i32
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef @.str.71, i32 noundef %55, i32 noundef %56, i32 noundef %58) #4
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %62 = icmp ult i32 1, %61
  br i1 %62, label %63, label %65

63:                                               ; preds = %53
  %64 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %66

65:                                               ; preds = %53
  br label %66

66:                                               ; preds = %65, %63
  %67 = phi i32 [ %64, %63 ], [ 1, %65 ]
  call void @libxsmm_handle_error(ptr noundef %60, i32 noundef 90000, ptr noundef @__func__.libxsmm_aarch64_instruction_alu_compute_imm12, ptr noundef @.str.1, i32 noundef 1768, i32 noundef %67)
  br label %194

68:                                               ; preds = %49
  %69 = load i32, ptr %9, align 4, !tbaa !9
  %70 = icmp ugt i32 %69, 31
  br i1 %70, label %71, label %75

71:                                               ; preds = %68
  %72 = load i32, ptr %10, align 4, !tbaa !9
  %73 = icmp ugt i32 %72, 31
  br i1 %73, label %74, label %75

74:                                               ; preds = %71
  br label %95

75:                                               ; preds = %71, %68
  %76 = load i32, ptr %9, align 4, !tbaa !9
  %77 = icmp ult i32 %76, 32
  br i1 %77, label %78, label %82

78:                                               ; preds = %75
  %79 = load i32, ptr %10, align 4, !tbaa !9
  %80 = icmp ult i32 %79, 32
  br i1 %80, label %81, label %82

81:                                               ; preds = %78
  br label %94

82:                                               ; preds = %78, %75
  %83 = load ptr, ptr @stderr, align 8, !tbaa !5
  %84 = load i32, ptr %8, align 4, !tbaa !9
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %83, ptr noundef @.str.72, i32 noundef %84) #4
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %88 = icmp ult i32 1, %87
  br i1 %88, label %89, label %91

89:                                               ; preds = %82
  %90 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %92

91:                                               ; preds = %82
  br label %92

92:                                               ; preds = %91, %89
  %93 = phi i32 [ %90, %89 ], [ 1, %91 ]
  call void @libxsmm_handle_error(ptr noundef %86, i32 noundef 90000, ptr noundef @__func__.libxsmm_aarch64_instruction_alu_compute_imm12, ptr noundef @.str.1, i32 noundef 1779, i32 noundef %93)
  br label %194

94:                                               ; preds = %81
  br label %95

95:                                               ; preds = %94, %74
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %96, i32 0, i32 3
  %98 = load i32, ptr %97, align 8, !tbaa !14
  %99 = icmp ugt i32 %98, 1
  br i1 %99, label %100, label %183

100:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %101, i32 0, i32 2
  %103 = load i32, ptr %102, align 4, !tbaa !15
  %104 = udiv i32 %103, 4
  store i32 %104, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %105, i32 0, i32 0
  %107 = load ptr, ptr %106, align 8, !tbaa !16
  store ptr %107, ptr %14, align 8, !tbaa !5
  %108 = load ptr, ptr %7, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %108, i32 0, i32 1
  %110 = load i32, ptr %109, align 8, !tbaa !17
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %111, i32 0, i32 2
  %113 = load i32, ptr %112, align 4, !tbaa !15
  %114 = sub i32 %110, %113
  %115 = icmp ult i32 %114, 4
  br i1 %115, label %116, label %125

116:                                              ; preds = %100
  %117 = load ptr, ptr %7, align 8, !tbaa !5
  %118 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %119 = icmp ult i32 1, %118
  br i1 %119, label %120, label %122

120:                                              ; preds = %116
  %121 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %123

122:                                              ; preds = %116
  br label %123

123:                                              ; preds = %122, %120
  %124 = phi i32 [ %121, %120 ], [ 1, %122 ]
  call void @libxsmm_handle_error(ptr noundef %117, i32 noundef 90002, ptr noundef @__func__.libxsmm_aarch64_instruction_alu_compute_imm12, ptr noundef @.str.1, i32 noundef 1789, i32 noundef %124)
  store i32 1, ptr %15, align 4
  br label %180

125:                                              ; preds = %100
  %126 = load i32, ptr %8, align 4, !tbaa !9
  %127 = and i32 -4194304, %126
  %128 = load ptr, ptr %14, align 8, !tbaa !5
  %129 = load i32, ptr %13, align 4, !tbaa !9
  %130 = zext i32 %129 to i64
  %131 = getelementptr inbounds i32, ptr %128, i64 %130
  store i32 %127, ptr %131, align 4, !tbaa !9
  %132 = load i32, ptr %10, align 4, !tbaa !9
  %133 = and i32 31, %132
  %134 = load ptr, ptr %14, align 8, !tbaa !5
  %135 = load i32, ptr %13, align 4, !tbaa !9
  %136 = zext i32 %135 to i64
  %137 = getelementptr inbounds i32, ptr %134, i64 %136
  %138 = load i32, ptr %137, align 4, !tbaa !9
  %139 = or i32 %138, %133
  store i32 %139, ptr %137, align 4, !tbaa !9
  %140 = load i32, ptr %9, align 4, !tbaa !9
  %141 = and i32 31, %140
  %142 = shl i32 %141, 5
  %143 = load ptr, ptr %14, align 8, !tbaa !5
  %144 = load i32, ptr %13, align 4, !tbaa !9
  %145 = zext i32 %144 to i64
  %146 = getelementptr inbounds i32, ptr %143, i64 %145
  %147 = load i32, ptr %146, align 4, !tbaa !9
  %148 = or i32 %147, %142
  store i32 %148, ptr %146, align 4, !tbaa !9
  %149 = load i32, ptr %10, align 4, !tbaa !9
  %150 = and i32 32, %149
  %151 = shl i32 %150, 26
  %152 = load ptr, ptr %14, align 8, !tbaa !5
  %153 = load i32, ptr %13, align 4, !tbaa !9
  %154 = zext i32 %153 to i64
  %155 = getelementptr inbounds i32, ptr %152, i64 %154
  %156 = load i32, ptr %155, align 4, !tbaa !9
  %157 = or i32 %156, %151
  store i32 %157, ptr %155, align 4, !tbaa !9
  %158 = load i32, ptr %11, align 4, !tbaa !9
  %159 = and i32 4095, %158
  %160 = shl i32 %159, 10
  %161 = load ptr, ptr %14, align 8, !tbaa !5
  %162 = load i32, ptr %13, align 4, !tbaa !9
  %163 = zext i32 %162 to i64
  %164 = getelementptr inbounds i32, ptr %161, i64 %163
  %165 = load i32, ptr %164, align 4, !tbaa !9
  %166 = or i32 %165, %160
  store i32 %166, ptr %164, align 4, !tbaa !9
  %167 = load i8, ptr %12, align 1, !tbaa !11
  %168 = zext i8 %167 to i32
  %169 = shl i32 %168, 22
  %170 = load ptr, ptr %14, align 8, !tbaa !5
  %171 = load i32, ptr %13, align 4, !tbaa !9
  %172 = zext i32 %171 to i64
  %173 = getelementptr inbounds i32, ptr %170, i64 %172
  %174 = load i32, ptr %173, align 4, !tbaa !9
  %175 = or i32 %174, %169
  store i32 %175, ptr %173, align 4, !tbaa !9
  %176 = load ptr, ptr %7, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %176, i32 0, i32 2
  %178 = load i32, ptr %177, align 4, !tbaa !15
  %179 = add i32 %178, 4
  store i32 %179, ptr %177, align 4, !tbaa !15
  store i32 0, ptr %15, align 4
  br label %180

180:                                              ; preds = %125, %123
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  %181 = load i32, ptr %15, align 4
  switch i32 %181, label %195 [
    i32 0, label %182
    i32 1, label %194
  ]

182:                                              ; preds = %180
  br label %194

183:                                              ; preds = %95
  %184 = load ptr, ptr @stderr, align 8, !tbaa !5
  %185 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %184, ptr noundef @.str.73) #4
  %186 = load ptr, ptr %7, align 8, !tbaa !5
  %187 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %188 = icmp ult i32 1, %187
  br i1 %188, label %189, label %191

189:                                              ; preds = %183
  %190 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %192

191:                                              ; preds = %183
  br label %192

192:                                              ; preds = %191, %189
  %193 = phi i32 [ %190, %189 ], [ 1, %191 ]
  call void @libxsmm_handle_error(ptr noundef %186, i32 noundef 90000, ptr noundef @__func__.libxsmm_aarch64_instruction_alu_compute_imm12, ptr noundef @.str.1, i32 noundef 1811, i32 noundef %193)
  br label %194

194:                                              ; preds = %192, %182, %180, %92, %66, %44, %29
  ret void

195:                                              ; preds = %180
  unreachable
}

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

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

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 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!7, !7, i64 0}
!12 = !{!13, !10, i64 28}
!13 = !{!"libxsmm_generated_code", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!14 = !{!13, !10, i64 16}
!15 = !{!13, !10, i64 12}
!16 = !{!13, !6, i64 0}
!17 = !{!13, !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.69 = external hidden unnamed_addr constant [103 x i8], align 1
@__func__.libxsmm_aarch64_instruction_alu_compute_imm12 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [103 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [93 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_alu_compute_imm12(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i8 noundef zeroext %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.69) #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_alu_compute_imm12, ptr noundef nonnull @.str.1, i32 noundef 1743, i32 noundef %16) #4
  br label %90

17:                                               ; preds = %6
  switch i32 %1, label %18 [
    i32 285212678, label %25
    i32 1358954502, 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.70, 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_alu_compute_imm12, ptr noundef nonnull @.str.1, i32 noundef 1761, i32 noundef %24) #4
  br label %90

25:                                               ; preds = %17, %17
  %26 = icmp ugt i32 %4, 4095
  %27 = zext i8 %5 to i32
  %28 = icmp ugt i8 %5, 1
  %or.cond = or i1 %26, %28
  br i1 %or.cond, label %29, label %36

29:                                               ; preds = %25
  %30 = load ptr, ptr @stderr, align 8, !tbaa !11
  %31 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef nonnull @.str.71, i32 noundef %1, i32 noundef %4, i32 noundef %27) #3
  %32 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %33 = icmp ugt i32 %32, 1
  %34 = load i32, ptr @libxsmm_verbosity, align 4
  %35 = select i1 %33, i32 %34, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_aarch64_instruction_alu_compute_imm12, ptr noundef nonnull @.str.1, i32 noundef 1768, i32 noundef %35) #4
  br label %90

36:                                               ; preds = %25
  %37 = icmp ugt i32 %2, 31
  %38 = icmp ugt i32 %3, 31
  %or.cond4 = and i1 %37, %38
  %39 = or i32 %3, %2
  %or.cond6 = icmp ult i32 %39, 32
  %or.cond49 = or i1 %or.cond4, %or.cond6
  br i1 %or.cond49, label %47, label %40

40:                                               ; preds = %36
  %41 = load ptr, ptr @stderr, align 8, !tbaa !11
  %42 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef nonnull @.str.72, i32 noundef %1) #3
  %43 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %44 = icmp ugt i32 %43, 1
  %45 = load i32, ptr @libxsmm_verbosity, align 4
  %46 = select i1 %44, i32 %45, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_aarch64_instruction_alu_compute_imm12, ptr noundef nonnull @.str.1, i32 noundef 1779, i32 noundef %46) #4
  br label %90

47:                                               ; preds = %36
  %48 = getelementptr inbounds i8, ptr %0, i64 16
  %49 = load i32, ptr %48, align 8, !tbaa !13
  %50 = icmp ugt i32 %49, 1
  br i1 %50, label %51, label %83

51:                                               ; preds = %47
  %52 = getelementptr inbounds i8, ptr %0, i64 12
  %53 = load i32, ptr %52, align 4, !tbaa !14
  %54 = getelementptr inbounds i8, ptr %0, i64 8
  %55 = load i32, ptr %54, align 8, !tbaa !15
  %56 = sub i32 %55, %53
  %57 = icmp ult i32 %56, 4
  br i1 %57, label %58, label %63

58:                                               ; preds = %51
  %59 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %60 = icmp ugt i32 %59, 1
  %61 = load i32, ptr @libxsmm_verbosity, align 4
  %62 = select i1 %60, i32 %61, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90002, ptr noundef nonnull @__func__.libxsmm_aarch64_instruction_alu_compute_imm12, ptr noundef nonnull @.str.1, i32 noundef 1789, i32 noundef %62) #4
  br label %90

63:                                               ; preds = %51
  %64 = load ptr, ptr %0, align 8, !tbaa !16
  %65 = lshr i32 %53, 2
  %66 = and i32 %1, -4194304
  %67 = zext nneg i32 %65 to i64
  %68 = getelementptr inbounds i32, ptr %64, i64 %67
  %69 = and i32 %3, 31
  %70 = or disjoint i32 %69, %66
  %71 = shl i32 %2, 5
  %72 = and i32 %71, 992
  %73 = or disjoint i32 %70, %72
  %74 = shl i32 %3, 26
  %75 = and i32 %74, -2147483648
  %76 = or i32 %73, %75
  %77 = shl nuw nsw i32 %4, 10
  %78 = or disjoint i32 %76, %77
  %79 = shl nuw nsw i32 %27, 22
  %80 = or i32 %78, %79
  store i32 %80, ptr %68, align 4, !tbaa !12
  %81 = load i32, ptr %52, align 4, !tbaa !14
  %82 = add i32 %81, 4
  store i32 %82, ptr %52, align 4, !tbaa !14
  br label %90

83:                                               ; preds = %47
  %84 = load ptr, ptr @stderr, align 8, !tbaa !11
  %85 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %84, ptr noundef nonnull @.str.73) #3
  %86 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %87 = icmp ugt i32 %86, 1
  %88 = load i32, ptr @libxsmm_verbosity, align 4
  %89 = select i1 %87, i32 %88, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_aarch64_instruction_alu_compute_imm12, ptr noundef nonnull @.str.1, i32 noundef 1811, i32 noundef %89) #4
  br label %90

90:                                               ; preds = %58, %63, %83, %40, %29, %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