; LLVM IR from mackorone/mms :: old/v2/src/lib/stb (stb_truetype)

; 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.stbtt_fontinfo = type { ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.stbtt_bakedchar = type { i16, i16, i16, i16, float, float, float }

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @stbtt_InitFont(ptr noundef, ptr noundef, i32 noundef) #1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local float @stbtt_ScaleForPixelHeight(ptr noundef, float noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @stbtt_GetGlyphBitmapBox(ptr noundef, i32 noundef, float noundef, float noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @stbtt_MakeGlyphBitmap(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local i32 @stbtt_BakeFontBitmap(ptr noundef %0, i32 noundef %1, float noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, ptr noundef %8) #1 {
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca float, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca float, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca %struct.stbtt_fontinfo, align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store i32 %1, ptr %12, align 4, !tbaa !9
  store float %2, ptr %13, align 4, !tbaa !11
  store ptr %3, ptr %14, align 8, !tbaa !5
  store i32 %4, ptr %15, align 4, !tbaa !9
  store i32 %5, ptr %16, align 4, !tbaa !9
  store i32 %6, ptr %17, align 4, !tbaa !9
  store i32 %7, ptr %18, align 4, !tbaa !9
  store ptr %8, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 56, ptr %25) #4
  %36 = load ptr, ptr %11, align 8, !tbaa !5
  %37 = load i32, ptr %12, align 4, !tbaa !9
  %38 = call i32 @stbtt_InitFont(ptr noundef %25, ptr noundef %36, i32 noundef %37)
  %39 = load ptr, ptr %14, align 8, !tbaa !5
  %40 = load i32, ptr %15, align 4, !tbaa !9
  %41 = load i32, ptr %16, align 4, !tbaa !9
  %42 = mul nsw i32 %40, %41
  %43 = sext i32 %42 to i64
  call void @llvm.memset.p0.i64(ptr align 1 %39, i8 0, i64 %43, i1 false)
  store i32 1, ptr %22, align 4, !tbaa !9
  store i32 1, ptr %21, align 4, !tbaa !9
  store i32 1, ptr %23, align 4, !tbaa !9
  %44 = load float, ptr %13, align 4, !tbaa !11
  %45 = call float @stbtt_ScaleForPixelHeight(ptr noundef %25, float noundef %44)
  store float %45, ptr %20, align 4, !tbaa !11
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %46

46:                                               ; preds = %179, %9
  %47 = load i32, ptr %24, align 4, !tbaa !9
  %48 = load i32, ptr %18, align 4, !tbaa !9
  %49 = icmp slt i32 %47, %48
  br i1 %49, label %50, label %182

50:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #4
  %51 = load i32, ptr %17, align 4, !tbaa !9
  %52 = load i32, ptr %24, align 4, !tbaa !9
  %53 = add nsw i32 %51, %52
  %54 = call i32 @stbtt_FindGlyphIndex(ptr noundef %25, i32 noundef %53)
  store i32 %54, ptr %34, align 4, !tbaa !9
  %55 = load i32, ptr %34, align 4, !tbaa !9
  call void @stbtt_GetGlyphHMetrics(ptr noundef %25, i32 noundef %55, ptr noundef %26, ptr noundef %27)
  %56 = load i32, ptr %34, align 4, !tbaa !9
  %57 = load float, ptr %20, align 4, !tbaa !11
  %58 = load float, ptr %20, align 4, !tbaa !11
  call void @stbtt_GetGlyphBitmapBox(ptr noundef %25, i32 noundef %56, float noundef %57, float noundef %58, ptr noundef %28, ptr noundef %29, ptr noundef %30, ptr noundef %31)
  %59 = load i32, ptr %30, align 4, !tbaa !9
  %60 = load i32, ptr %28, align 4, !tbaa !9
  %61 = sub nsw i32 %59, %60
  store i32 %61, ptr %32, align 4, !tbaa !9
  %62 = load i32, ptr %31, align 4, !tbaa !9
  %63 = load i32, ptr %29, align 4, !tbaa !9
  %64 = sub nsw i32 %62, %63
  store i32 %64, ptr %33, align 4, !tbaa !9
  %65 = load i32, ptr %21, align 4, !tbaa !9
  %66 = load i32, ptr %32, align 4, !tbaa !9
  %67 = add nsw i32 %65, %66
  %68 = add nsw i32 %67, 1
  %69 = load i32, ptr %15, align 4, !tbaa !9
  %70 = icmp sge i32 %68, %69
  br i1 %70, label %71, label %73

71:                                               ; preds = %50
  %72 = load i32, ptr %23, align 4, !tbaa !9
  store i32 %72, ptr %22, align 4, !tbaa !9
  store i32 1, ptr %21, align 4, !tbaa !9
  br label %73

73:                                               ; preds = %71, %50
  %74 = load i32, ptr %22, align 4, !tbaa !9
  %75 = load i32, ptr %33, align 4, !tbaa !9
  %76 = add nsw i32 %74, %75
  %77 = add nsw i32 %76, 1
  %78 = load i32, ptr %16, align 4, !tbaa !9
  %79 = icmp sge i32 %77, %78
  br i1 %79, label %80, label %83

80:                                               ; preds = %73
  %81 = load i32, ptr %24, align 4, !tbaa !9
  %82 = sub nsw i32 0, %81
  store i32 %82, ptr %10, align 4
  store i32 1, ptr %35, align 4
  br label %176

83:                                               ; preds = %73
  br label %84

84:                                               ; preds = %83
  br label %85

85:                                               ; preds = %84
  br label %86

86:                                               ; preds = %85
  br label %87

87:                                               ; preds = %86
  br label %88

88:                                               ; preds = %87
  br label %89

89:                                               ; preds = %88
  %90 = load ptr, ptr %14, align 8, !tbaa !5
  %91 = load i32, ptr %21, align 4, !tbaa !9
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds i8, ptr %90, i64 %92
  %94 = load i32, ptr %22, align 4, !tbaa !9
  %95 = load i32, ptr %15, align 4, !tbaa !9
  %96 = mul nsw i32 %94, %95
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds i8, ptr %93, i64 %97
  %99 = load i32, ptr %32, align 4, !tbaa !9
  %100 = load i32, ptr %33, align 4, !tbaa !9
  %101 = load i32, ptr %15, align 4, !tbaa !9
  %102 = load float, ptr %20, align 4, !tbaa !11
  %103 = load float, ptr %20, align 4, !tbaa !11
  %104 = load i32, ptr %34, align 4, !tbaa !9
  call void @stbtt_MakeGlyphBitmap(ptr noundef %25, ptr noundef %98, i32 noundef %99, i32 noundef %100, i32 noundef %101, float noundef %102, float noundef %103, i32 noundef %104)
  %105 = load i32, ptr %21, align 4, !tbaa !9
  %106 = trunc i32 %105 to i16
  %107 = load ptr, ptr %19, align 8, !tbaa !5
  %108 = load i32, ptr %24, align 4, !tbaa !9
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds %struct.stbtt_bakedchar, ptr %107, i64 %109
  %111 = getelementptr inbounds %struct.stbtt_bakedchar, ptr %110, i32 0, i32 0
  store i16 %106, ptr %111, align 4, !tbaa !13
  %112 = load i32, ptr %22, align 4, !tbaa !9
  %113 = trunc i32 %112 to i16
  %114 = load ptr, ptr %19, align 8, !tbaa !5
  %115 = load i32, ptr %24, align 4, !tbaa !9
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds %struct.stbtt_bakedchar, ptr %114, i64 %116
  %118 = getelementptr inbounds %struct.stbtt_bakedchar, ptr %117, i32 0, i32 1
  store i16 %113, ptr %118, align 2, !tbaa !16
  %119 = load i32, ptr %21, align 4, !tbaa !9
  %120 = load i32, ptr %32, align 4, !tbaa !9
  %121 = add nsw i32 %119, %120
  %122 = trunc i32 %121 to i16
  %123 = load ptr, ptr %19, align 8, !tbaa !5
  %124 = load i32, ptr %24, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds %struct.stbtt_bakedchar, ptr %123, i64 %125
  %127 = getelementptr inbounds %struct.stbtt_bakedchar, ptr %126, i32 0, i32 2
  store i16 %122, ptr %127, align 4, !tbaa !17
  %128 = load i32, ptr %22, align 4, !tbaa !9
  %129 = load i32, ptr %33, align 4, !tbaa !9
  %130 = add nsw i32 %128, %129
  %131 = trunc i32 %130 to i16
  %132 = load ptr, ptr %19, align 8, !tbaa !5
  %133 = load i32, ptr %24, align 4, !tbaa !9
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds %struct.stbtt_bakedchar, ptr %132, i64 %134
  %136 = getelementptr inbounds %struct.stbtt_bakedchar, ptr %135, i32 0, i32 3
  store i16 %131, ptr %136, align 2, !tbaa !18
  %137 = load float, ptr %20, align 4, !tbaa !11
  %138 = load i32, ptr %26, align 4, !tbaa !9
  %139 = sitofp i32 %138 to float
  %140 = fmul float %137, %139
  %141 = load ptr, ptr %19, align 8, !tbaa !5
  %142 = load i32, ptr %24, align 4, !tbaa !9
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds %struct.stbtt_bakedchar, ptr %141, i64 %143
  %145 = getelementptr inbounds %struct.stbtt_bakedchar, ptr %144, i32 0, i32 6
  store float %140, ptr %145, align 4, !tbaa !19
  %146 = load i32, ptr %28, align 4, !tbaa !9
  %147 = sitofp i32 %146 to float
  %148 = load ptr, ptr %19, align 8, !tbaa !5
  %149 = load i32, ptr %24, align 4, !tbaa !9
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds %struct.stbtt_bakedchar, ptr %148, i64 %150
  %152 = getelementptr inbounds %struct.stbtt_bakedchar, ptr %151, i32 0, i32 4
  store float %147, ptr %152, align 4, !tbaa !20
  %153 = load i32, ptr %29, align 4, !tbaa !9
  %154 = sitofp i32 %153 to float
  %155 = load ptr, ptr %19, align 8, !tbaa !5
  %156 = load i32, ptr %24, align 4, !tbaa !9
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds %struct.stbtt_bakedchar, ptr %155, i64 %157
  %159 = getelementptr inbounds %struct.stbtt_bakedchar, ptr %158, i32 0, i32 5
  store float %154, ptr %159, align 4, !tbaa !21
  %160 = load i32, ptr %21, align 4, !tbaa !9
  %161 = load i32, ptr %32, align 4, !tbaa !9
  %162 = add nsw i32 %160, %161
  %163 = add nsw i32 %162, 2
  store i32 %163, ptr %21, align 4, !tbaa !9
  %164 = load i32, ptr %22, align 4, !tbaa !9
  %165 = load i32, ptr %33, align 4, !tbaa !9
  %166 = add nsw i32 %164, %165
  %167 = add nsw i32 %166, 2
  %168 = load i32, ptr %23, align 4, !tbaa !9
  %169 = icmp sgt i32 %167, %168
  br i1 %169, label %170, label %175

170:                                              ; preds = %89
  %171 = load i32, ptr %22, align 4, !tbaa !9
  %172 = load i32, ptr %33, align 4, !tbaa !9
  %173 = add nsw i32 %171, %172
  %174 = add nsw i32 %173, 2
  store i32 %174, ptr %23, align 4, !tbaa !9
  br label %175

175:                                              ; preds = %170, %89
  store i32 0, ptr %35, align 4
  br label %176

176:                                              ; preds = %175, %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  %177 = load i32, ptr %35, align 4
  switch i32 %177, label %184 [
    i32 0, label %178
  ]

178:                                              ; preds = %176
  br label %179

179:                                              ; preds = %178
  %180 = load i32, ptr %24, align 4, !tbaa !9
  %181 = add nsw i32 %180, 1
  store i32 %181, ptr %24, align 4, !tbaa !9
  br label %46, !llvm.loop !22

182:                                              ; preds = %46
  %183 = load i32, ptr %23, align 4, !tbaa !9
  store i32 %183, ptr %10, align 4
  store i32 1, ptr %35, align 4
  br label %184

184:                                              ; preds = %182, %176
  call void @llvm.lifetime.end.p0(i64 56, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  %185 = load i32, ptr %10, align 4
  ret i32 %185
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 nounwind willreturn memory(argmem: write) }
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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTS15stbtt_bakedchar", !15, i64 0, !15, i64 2, !15, i64 4, !15, i64 6, !12, i64 8, !12, i64 12, !12, i64 16}
!15 = !{!"short", !7, i64 0}
!16 = !{!14, !15, i64 2}
!17 = !{!14, !15, i64 4}
!18 = !{!14, !15, i64 6}
!19 = !{!14, !12, i64 16}
!20 = !{!14, !12, i64 8}
!21 = !{!14, !12, i64 12}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


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

%struct.stbtt_fontinfo = type { ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.stbtt_bakedchar = type { i16, i16, i16, i16, float, float, float }

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @stbtt_InitFont(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i32 @stbtt_FindGlyphIndex(ptr noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local float @stbtt_ScaleForPixelHeight(ptr noundef, float noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @stbtt_GetGlyphBitmapBox(ptr noundef, i32 noundef, float noundef, float noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @stbtt_MakeGlyphBitmap(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local i32 @stbtt_BakeFontBitmap(ptr noundef %0, i32 noundef %1, float noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, ptr nocapture noundef writeonly %8) local_unnamed_addr #1 {
  %10 = alloca %struct.stbtt_fontinfo, align 8
  %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 i32, align 4
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %10) #5
  %17 = call i32 @stbtt_InitFont(ptr noundef nonnull %10, ptr noundef %0, i32 noundef %1)
  %18 = mul nsw i32 %5, %4
  %19 = sext i32 %18 to i64
  call void @llvm.memset.p0.i64(ptr align 1 %3, i8 0, i64 %19, i1 false)
  %20 = call float @stbtt_ScaleForPixelHeight(ptr noundef nonnull %10, float noundef %2)
  %21 = icmp sgt i32 %7, 0
  br i1 %21, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %9
  %wide.trip.count = zext nneg i32 %7 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %38
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %38 ]
  %.06488 = phi i32 [ 1, %.lr.ph.preheader ], [ %63, %38 ]
  %.06787 = phi i32 [ 1, %.lr.ph.preheader ], [ %spec.select, %38 ]
  %.07085 = phi i32 [ 1, %.lr.ph.preheader ], [ %spec.select76, %38 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #5
  %22 = trunc i64 %indvars.iv to i32
  %23 = add i32 %22, %6
  %24 = call i32 @stbtt_FindGlyphIndex(ptr noundef nonnull %10, i32 noundef %23)
  call void @stbtt_GetGlyphHMetrics(ptr noundef nonnull %10, i32 noundef %24, ptr noundef nonnull %11, ptr noundef nonnull %12)
  call void @stbtt_GetGlyphBitmapBox(ptr noundef nonnull %10, i32 noundef %24, float noundef %20, float noundef %20, ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %16)
  %25 = load i32, ptr %15, align 4, !tbaa !5
  %26 = load i32, ptr %13, align 4, !tbaa !5
  %27 = sub nsw i32 %25, %26
  %28 = load i32, ptr %16, align 4, !tbaa !5
  %29 = load i32, ptr %14, align 4, !tbaa !5
  %30 = sub nsw i32 %28, %29
  %31 = add i32 %.06488, 1
  %32 = add i32 %31, %27
  %.not = icmp slt i32 %32, %4
  %spec.select = select i1 %.not, i32 %.06787, i32 %.07085
  %33 = add nsw i32 %spec.select, %30
  %34 = add nsw i32 %33, 1
  %.not74 = icmp slt i32 %34, %5
  br i1 %.not74, label %38, label %35

35:                                               ; preds = %.lr.ph
  %36 = trunc nuw nsw i64 %indvars.iv to i32
  %37 = sub nsw i32 0, %36
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  br label %.loopexit

38:                                               ; preds = %.lr.ph
  %spec.select75 = select i1 %.not, i32 %.06488, i32 1
  %39 = sext i32 %spec.select75 to i64
  %40 = getelementptr inbounds i8, ptr %3, i64 %39
  %41 = mul nsw i32 %spec.select, %4
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds i8, ptr %40, i64 %42
  call void @stbtt_MakeGlyphBitmap(ptr noundef nonnull %10, ptr noundef %43, i32 noundef %27, i32 noundef %30, i32 noundef %4, float noundef %20, float noundef %20, i32 noundef %24)
  %44 = trunc i32 %spec.select75 to i16
  %45 = getelementptr inbounds %struct.stbtt_bakedchar, ptr %8, i64 %indvars.iv
  store i16 %44, ptr %45, align 4, !tbaa !9
  %46 = trunc i32 %spec.select to i16
  %47 = getelementptr inbounds i8, ptr %45, i64 2
  store i16 %46, ptr %47, align 2, !tbaa !13
  %48 = add nsw i32 %spec.select75, %27
  %49 = trunc i32 %48 to i16
  %50 = getelementptr inbounds i8, ptr %45, i64 4
  store i16 %49, ptr %50, align 4, !tbaa !14
  %51 = trunc i32 %33 to i16
  %52 = getelementptr inbounds i8, ptr %45, i64 6
  store i16 %51, ptr %52, align 2, !tbaa !15
  %53 = load i32, ptr %11, align 4, !tbaa !5
  %54 = sitofp i32 %53 to float
  %55 = fmul float %20, %54
  %56 = getelementptr inbounds i8, ptr %45, i64 16
  store float %55, ptr %56, align 4, !tbaa !16
  %57 = load i32, ptr %13, align 4, !tbaa !5
  %58 = getelementptr inbounds i8, ptr %45, i64 8
  %59 = load i32, ptr %14, align 4, !tbaa !5
  %60 = insertelement <2 x i32> poison, i32 %57, i64 0
  %61 = insertelement <2 x i32> %60, i32 %59, i64 1
  %62 = sitofp <2 x i32> %61 to <2 x float>
  store <2 x float> %62, ptr %58, align 4, !tbaa !17
  %63 = add nsw i32 %48, 2
  %64 = add nsw i32 %33, 2
  %spec.select76 = call i32 @llvm.smax.i32(i32 %64, i32 %.07085)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph, !llvm.loop !18

.loopexit:                                        ; preds = %38, %9, %35
  %.2 = phi i32 [ %37, %35 ], [ 1, %9 ], [ %spec.select76, %38 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %10) #5
  ret i32 %.2
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTS15stbtt_bakedchar", !11, i64 0, !11, i64 2, !11, i64 4, !11, i64 6, !12, i64 8, !12, i64 12, !12, i64 16}
!11 = !{!"short", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!10, !11, i64 2}
!14 = !{!10, !11, i64 4}
!15 = !{!10, !11, i64 6}
!16 = !{!10, !12, i64 16}
!17 = !{!12, !12, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass