; LLVM IR from libxsmm/libxsmm :: src (generator_rv64_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 [83 x i8], align 1
@libxsmm_ninit = external global i32, align 4
@libxsmm_verbosity = external global i32, align 4
@db_bpos = external hidden constant [32 x i32], align 16
@.str.58 = external hidden unnamed_addr constant [89 x i8], align 1
@__func__.libxsmm_rv64_instruction_cond_jump = external hidden unnamed_addr constant [35 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [81 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_rv64_instruction_cond_jump(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #3 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !9
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %18, i32 0, i32 6
  %20 = load i32, ptr %19, align 4, !tbaa !11
  %21 = icmp ult i32 %20, 3001
  br i1 %21, label %22, label %33

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

28:                                               ; preds = %22
  %29 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %31

30:                                               ; preds = %22
  br label %31

31:                                               ; preds = %30, %28
  %32 = phi i32 [ %29, %28 ], [ 1, %30 ]
  call void @libxsmm_handle_error(ptr noundef %25, i32 noundef 90000, ptr noundef @__func__.libxsmm_rv64_instruction_cond_jump, ptr noundef @.str.1, i32 noundef 1348, i32 noundef %32)
  br label %204

33:                                               ; preds = %5
  %34 = load i32, ptr %8, align 4, !tbaa !9
  %35 = icmp ule i32 %34, 31
  br i1 %35, label %36, label %39

36:                                               ; preds = %33
  %37 = load i32, ptr %9, align 4, !tbaa !9
  %38 = icmp ule i32 %37, 31
  br i1 %38, label %50, label %39

39:                                               ; preds = %36, %33
  %40 = load ptr, ptr @stderr, align 8, !tbaa !5
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef @.str.59) #5
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %44 = icmp ult i32 1, %43
  br i1 %44, label %45, label %47

45:                                               ; preds = %39
  %46 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %48

47:                                               ; preds = %39
  br label %48

48:                                               ; preds = %47, %45
  %49 = phi i32 [ %46, %45 ], [ 1, %47 ]
  call void @libxsmm_handle_error(ptr noundef %42, i32 noundef 90000, ptr noundef @__func__.libxsmm_rv64_instruction_cond_jump, ptr noundef @.str.1, i32 noundef 1354, i32 noundef %49)
  br label %204

50:                                               ; preds = %36
  %51 = load i32, ptr %10, align 4, !tbaa !9
  %52 = icmp sgt i32 %51, 2047
  br i1 %52, label %53, label %66

53:                                               ; preds = %50
  %54 = load ptr, ptr @stderr, align 8, !tbaa !5
  %55 = load i32, ptr %7, align 4, !tbaa !9
  %56 = load i32, ptr %10, align 4, !tbaa !9
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef @.str.60, i32 noundef %55, i32 noundef %56) #5
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %60 = icmp ult i32 1, %59
  br i1 %60, label %61, label %63

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

63:                                               ; preds = %53
  br label %64

64:                                               ; preds = %63, %61
  %65 = phi i32 [ %62, %61 ], [ 1, %63 ]
  call void @libxsmm_handle_error(ptr noundef %58, i32 noundef 90000, ptr noundef @__func__.libxsmm_rv64_instruction_cond_jump, ptr noundef @.str.1, i32 noundef 1360, i32 noundef %65)
  br label %204

66:                                               ; preds = %50
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %67, i32 0, i32 3
  %69 = load i32, ptr %68, align 8, !tbaa !13
  %70 = icmp ugt i32 %69, 1
  br i1 %70, label %71, label %204

71:                                               ; preds = %66
  %72 = load i32, ptr %7, align 4, !tbaa !9
  switch i32 %72, label %74 [
    i32 99, label %73
    i32 20579, label %73
    i32 28771, label %73
    i32 16483, label %73
    i32 24675, label %73
    i32 4195, label %73
  ]

73:                                               ; preds = %71, %71, %71, %71, %71, %71
  br label %86

74:                                               ; preds = %71
  %75 = load ptr, ptr @stderr, align 8, !tbaa !5
  %76 = load i32, ptr %7, align 4, !tbaa !9
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef @.str.61, i32 noundef %76) #5
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %80 = icmp ult i32 1, %79
  br i1 %80, label %81, label %83

81:                                               ; preds = %74
  %82 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %84

83:                                               ; preds = %74
  br label %84

84:                                               ; preds = %83, %81
  %85 = phi i32 [ %82, %81 ], [ 1, %83 ]
  call void @libxsmm_handle_error(ptr noundef %78, i32 noundef 90000, ptr noundef @__func__.libxsmm_rv64_instruction_cond_jump, ptr noundef @.str.1, i32 noundef 1375, i32 noundef %85)
  br label %204

86:                                               ; preds = %73
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %87, i32 0, i32 3
  %89 = load i32, ptr %88, align 8, !tbaa !13
  %90 = icmp ugt i32 %89, 1
  br i1 %90, label %91, label %192

91:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %92, i32 0, i32 2
  %94 = load i32, ptr %93, align 4, !tbaa !14
  %95 = udiv i32 %94, 4
  store i32 %95, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %96, i32 0, i32 0
  %98 = load ptr, ptr %97, align 8, !tbaa !15
  store ptr %98, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %99 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %99, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %100, i32 0, i32 1
  %102 = load i32, ptr %101, align 8, !tbaa !16
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %103, i32 0, i32 2
  %105 = load i32, ptr %104, align 4, !tbaa !14
  %106 = sub i32 %102, %105
  %107 = icmp ult i32 %106, 4
  br i1 %107, label %108, label %117

108:                                              ; preds = %91
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %111 = icmp ult i32 1, %110
  br i1 %111, label %112, label %114

112:                                              ; preds = %108
  %113 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %115

114:                                              ; preds = %108
  br label %115

115:                                              ; preds = %114, %112
  %116 = phi i32 [ %113, %112 ], [ 1, %114 ]
  call void @libxsmm_handle_error(ptr noundef %109, i32 noundef 90002, ptr noundef @__func__.libxsmm_rv64_instruction_cond_jump, ptr noundef @.str.1, i32 noundef 1391, i32 noundef %116)
  store i32 1, ptr %17, align 4
  br label %189

117:                                              ; preds = %91
  %118 = load i32, ptr %10, align 4, !tbaa !9
  %119 = icmp slt i32 %118, 0
  br i1 %119, label %120, label %126

120:                                              ; preds = %117
  store i32 1, ptr %13, align 4, !tbaa !9
  %121 = load i32, ptr %10, align 4, !tbaa !9
  %122 = call i32 @llvm.abs.i32(i32 %121, i1 true)
  %123 = xor i32 %122, -1
  %124 = add nsw i32 %123, 1
  %125 = and i32 %124, 2047
  store i32 %125, ptr %14, align 4, !tbaa !9
  br label %126

126:                                              ; preds = %120, %117
  %127 = load i32, ptr %14, align 4, !tbaa !9
  %128 = lshr i32 %127, 10
  %129 = and i32 %128, 1
  %130 = load i32, ptr %14, align 4, !tbaa !9
  %131 = and i32 %130, 15
  %132 = shl i32 %131, 1
  %133 = or i32 %129, %132
  store i32 %133, ptr %15, align 4, !tbaa !9
  %134 = load i32, ptr %14, align 4, !tbaa !9
  %135 = and i32 %134, 1008
  %136 = lshr i32 %135, 4
  %137 = load i32, ptr %13, align 4, !tbaa !9
  %138 = shl i32 %137, 6
  %139 = or i32 %136, %138
  store i32 %139, ptr %16, align 4, !tbaa !9
  %140 = load i32, ptr %7, align 4, !tbaa !9
  %141 = load ptr, ptr %12, align 8, !tbaa !5
  %142 = load i32, ptr %11, align 4, !tbaa !9
  %143 = zext i32 %142 to i64
  %144 = getelementptr inbounds i32, ptr %141, i64 %143
  store i32 %140, ptr %144, align 4, !tbaa !9
  %145 = load i32, ptr %8, align 4, !tbaa !9
  %146 = load i32, ptr getelementptr inbounds ([32 x i32], ptr @db_bpos, i64 0, i64 11), align 4, !tbaa !9
  %147 = shl i32 %145, %146
  %148 = and i32 1015808, %147
  %149 = load ptr, ptr %12, align 8, !tbaa !5
  %150 = load i32, ptr %11, align 4, !tbaa !9
  %151 = zext i32 %150 to i64
  %152 = getelementptr inbounds i32, ptr %149, i64 %151
  %153 = load i32, ptr %152, align 4, !tbaa !9
  %154 = or i32 %153, %148
  store i32 %154, ptr %152, align 4, !tbaa !9
  %155 = load i32, ptr %9, align 4, !tbaa !9
  %156 = load i32, ptr getelementptr inbounds ([32 x i32], ptr @db_bpos, i64 0, i64 10), align 8, !tbaa !9
  %157 = shl i32 %155, %156
  %158 = and i32 32505856, %157
  %159 = load ptr, ptr %12, align 8, !tbaa !5
  %160 = load i32, ptr %11, align 4, !tbaa !9
  %161 = zext i32 %160 to i64
  %162 = getelementptr inbounds i32, ptr %159, i64 %161
  %163 = load i32, ptr %162, align 4, !tbaa !9
  %164 = or i32 %163, %158
  store i32 %164, ptr %162, align 4, !tbaa !9
  %165 = load i32, ptr %16, align 4, !tbaa !9
  %166 = load i32, ptr getelementptr inbounds ([32 x i32], ptr @db_bpos, i64 0, i64 12), align 16, !tbaa !9
  %167 = shl i32 %165, %166
  %168 = and i32 -33554432, %167
  %169 = load ptr, ptr %12, align 8, !tbaa !5
  %170 = load i32, ptr %11, align 4, !tbaa !9
  %171 = zext i32 %170 to i64
  %172 = getelementptr inbounds i32, ptr %169, i64 %171
  %173 = load i32, ptr %172, align 4, !tbaa !9
  %174 = or i32 %173, %168
  store i32 %174, ptr %172, align 4, !tbaa !9
  %175 = load i32, ptr %15, align 4, !tbaa !9
  %176 = load i32, ptr getelementptr inbounds ([32 x i32], ptr @db_bpos, i64 0, i64 23), align 4, !tbaa !9
  %177 = shl i32 %175, %176
  %178 = and i32 3968, %177
  %179 = load ptr, ptr %12, align 8, !tbaa !5
  %180 = load i32, ptr %11, align 4, !tbaa !9
  %181 = zext i32 %180 to i64
  %182 = getelementptr inbounds i32, ptr %179, i64 %181
  %183 = load i32, ptr %182, align 4, !tbaa !9
  %184 = or i32 %183, %178
  store i32 %184, ptr %182, align 4, !tbaa !9
  %185 = load ptr, ptr %6, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %185, i32 0, i32 2
  %187 = load i32, ptr %186, align 4, !tbaa !14
  %188 = add i32 %187, 4
  store i32 %188, ptr %186, align 4, !tbaa !14
  store i32 0, ptr %17, align 4
  br label %189

189:                                              ; preds = %126, %115
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  %190 = load i32, ptr %17, align 4
  switch i32 %190, label %205 [
    i32 0, label %191
    i32 1, label %204
  ]

191:                                              ; preds = %189
  br label %203

192:                                              ; preds = %86
  %193 = load ptr, ptr @stderr, align 8, !tbaa !5
  %194 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %193, ptr noundef @.str.62) #5
  %195 = load ptr, ptr %6, align 8, !tbaa !5
  %196 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %197 = icmp ult i32 1, %196
  br i1 %197, label %198, label %200

198:                                              ; preds = %192
  %199 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %201

200:                                              ; preds = %192
  br label %201

201:                                              ; preds = %200, %198
  %202 = phi i32 [ %199, %198 ], [ 1, %200 ]
  call void @libxsmm_handle_error(ptr noundef %195, i32 noundef 90000, ptr noundef @__func__.libxsmm_rv64_instruction_cond_jump, ptr noundef @.str.1, i32 noundef 1420, i32 noundef %202)
  br label %204

203:                                              ; preds = %191
  br label %204

204:                                              ; preds = %203, %201, %189, %84, %66, %64, %48, %31
  ret void

205:                                              ; preds = %189
  unreachable
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #4

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 [83 x i8], align 1
@libxsmm_ninit = external local_unnamed_addr global i32, align 4
@libxsmm_verbosity = external local_unnamed_addr global i32, align 4
@db_bpos = external hidden local_unnamed_addr constant [32 x i32], align 16
@.str.58 = external hidden unnamed_addr constant [89 x i8], align 1
@__func__.libxsmm_rv64_instruction_cond_jump = external hidden unnamed_addr constant [35 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [71 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_rv64_instruction_cond_jump(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #2 {
  %6 = getelementptr inbounds i8, ptr %0, i64 28
  %7 = load i32, ptr %6, align 4, !tbaa !5
  %8 = icmp ult i32 %7, 3001
  br i1 %8, label %9, label %16

9:                                                ; preds = %5
  %10 = load ptr, ptr @stderr, align 8, !tbaa !11
  %11 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef nonnull @.str.58) #4
  %12 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %13 = icmp ugt i32 %12, 1
  %14 = load i32, ptr @libxsmm_verbosity, align 4
  %15 = select i1 %13, i32 %14, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_rv64_instruction_cond_jump, ptr noundef nonnull @.str.1, i32 noundef 1348, i32 noundef %15) #5
  br label %93

16:                                               ; preds = %5
  %17 = or i32 %3, %2
  %or.cond = icmp ult i32 %17, 32
  br i1 %or.cond, label %25, label %18

18:                                               ; preds = %16
  %19 = load ptr, ptr @stderr, align 8, !tbaa !11
  %20 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef nonnull @.str.59) #4
  %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_rv64_instruction_cond_jump, ptr noundef nonnull @.str.1, i32 noundef 1354, i32 noundef %24) #5
  br label %93

25:                                               ; preds = %16
  %26 = icmp sgt i32 %4, 2047
  br i1 %26, label %27, label %34

27:                                               ; preds = %25
  %28 = load ptr, ptr @stderr, align 8, !tbaa !11
  %29 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef nonnull @.str.60, i32 noundef %1, i32 noundef %4) #4
  %30 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %31 = icmp ugt i32 %30, 1
  %32 = load i32, ptr @libxsmm_verbosity, align 4
  %33 = select i1 %31, i32 %32, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_rv64_instruction_cond_jump, ptr noundef nonnull @.str.1, i32 noundef 1360, i32 noundef %33) #5
  br label %93

34:                                               ; preds = %25
  %35 = getelementptr inbounds i8, ptr %0, i64 16
  %36 = load i32, ptr %35, align 8, !tbaa !13
  %37 = icmp ugt i32 %36, 1
  br i1 %37, label %38, label %93

38:                                               ; preds = %34
  %39 = add i32 %1, -99
  %40 = tail call i32 @llvm.fshl.i32(i32 %39, i32 %39, i32 20)
  switch i32 %40, label %41 [
    i32 0, label %48
    i32 5, label %48
    i32 7, label %48
    i32 4, label %48
    i32 6, label %48
    i32 1, label %48
  ]

41:                                               ; preds = %38
  %42 = load ptr, ptr @stderr, align 8, !tbaa !11
  %43 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.61, i32 noundef %1) #4
  %44 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %45 = icmp ugt i32 %44, 1
  %46 = load i32, ptr @libxsmm_verbosity, align 4
  %47 = select i1 %45, i32 %46, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_rv64_instruction_cond_jump, ptr noundef nonnull @.str.1, i32 noundef 1375, i32 noundef %47) #5
  br label %93

48:                                               ; preds = %38, %38, %38, %38, %38, %38
  %49 = getelementptr inbounds i8, ptr %0, i64 12
  %50 = load i32, ptr %49, align 4, !tbaa !14
  %51 = getelementptr inbounds i8, ptr %0, i64 8
  %52 = load i32, ptr %51, align 8, !tbaa !15
  %53 = sub i32 %52, %50
  %54 = icmp ult i32 %53, 4
  br i1 %54, label %55, label %60

55:                                               ; preds = %48
  %56 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !12
  %57 = icmp ugt i32 %56, 1
  %58 = load i32, ptr @libxsmm_verbosity, align 4
  %59 = select i1 %57, i32 %58, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90002, ptr noundef nonnull @__func__.libxsmm_rv64_instruction_cond_jump, ptr noundef nonnull @.str.1, i32 noundef 1391, i32 noundef %59) #5
  br label %93

60:                                               ; preds = %48
  %61 = load ptr, ptr %0, align 8, !tbaa !16
  %62 = lshr i32 %50, 2
  %63 = icmp slt i32 %4, 0
  %64 = and i32 %4, 2047
  %spec.select = select i1 %63, i32 %64, i32 %4
  %65 = lshr i32 %4, 25
  %spec.select47 = and i32 %65, 64
  %66 = lshr i32 %spec.select, 10
  %67 = shl nuw nsw i32 %spec.select, 1
  %68 = and i32 %67, 30
  %69 = add nuw nsw i32 %68, %66
  %70 = lshr i32 %spec.select, 4
  %71 = and i32 %70, 63
  %72 = or disjoint i32 %71, %spec.select47
  %73 = zext nneg i32 %62 to i64
  %74 = getelementptr inbounds i32, ptr %61, i64 %73
  %75 = load i32, ptr getelementptr inbounds (i8, ptr @db_bpos, i64 44), align 4, !tbaa !12
  %76 = shl i32 %2, %75
  %77 = and i32 %76, 1015808
  %78 = load i32, ptr getelementptr inbounds (i8, ptr @db_bpos, i64 40), align 8, !tbaa !12
  %79 = shl i32 %3, %78
  %80 = and i32 %79, 32505856
  %81 = or disjoint i32 %77, %80
  %82 = load i32, ptr getelementptr inbounds (i8, ptr @db_bpos, i64 48), align 16, !tbaa !12
  %83 = shl i32 %72, %82
  %84 = and i32 %83, -33554432
  %85 = or disjoint i32 %81, %84
  %86 = load i32, ptr getelementptr inbounds (i8, ptr @db_bpos, i64 92), align 4, !tbaa !12
  %87 = shl i32 %69, %86
  %88 = and i32 %87, 3968
  %89 = or disjoint i32 %85, %88
  %90 = or i32 %89, %1
  store i32 %90, ptr %74, align 4, !tbaa !12
  %91 = load i32, ptr %49, align 4, !tbaa !14
  %92 = add i32 %91, 4
  store i32 %92, ptr %49, align 4, !tbaa !14
  br label %93

93:                                               ; preds = %55, %60, %41, %34, %27, %18, %9
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.fshl.i32(i32, i32, i32) #3

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { cold nounwind }
attributes #5 = { 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,DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass