; LLVM IR from erwincoumans/tiny-differentiable-simulator :: src/visualizer/opengl (tiny_font_stash)

; 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_pack_context = type { ptr, ptr, i32, i32, i32, i32, i32, i32, ptr, ptr }
%struct.stbtt_pack_range = type { float, i32, i32, ptr }
%struct.stbtt_packedchar = type { i16, i16, i16, i16, float, float, float, float, float }
%struct.stbrp_rect = type { i32, i32, i32, i32, i32, i32 }

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

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

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

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

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #4

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

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

; Function Attrs: mustprogress uwtable
declare dso_local float @stbtt_ScaleForMappingEmToPixels(ptr noundef, float noundef) #0

; 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) #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @stbtt_PackFontRanges(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #0 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %struct.stbtt_fontinfo, align 8
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca float, align 4
  %32 = alloca float, align 4
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store i32 %4, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 56, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.stbtt_pack_context, ptr %43, i32 0, i32 6
  %45 = load i32, ptr %44, align 8, !tbaa !11
  %46 = uitofp i32 %45 to float
  %47 = fdiv float 1.000000e+00, %46
  store float %47, ptr %13, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.stbtt_pack_context, ptr %48, i32 0, i32 7
  %50 = load i32, ptr %49, align 4, !tbaa !15
  %51 = uitofp i32 %50 to float
  %52 = fdiv float 1.000000e+00, %51
  store float %52, ptr %14, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.stbtt_pack_context, ptr %53, i32 0, i32 6
  %55 = load i32, ptr %54, align 8, !tbaa !11
  %56 = call noundef float @_ZL23stbtt__oversample_shifti(i32 noundef %55)
  store float %56, ptr %15, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.stbtt_pack_context, ptr %57, i32 0, i32 7
  %59 = load i32, ptr %58, align 4, !tbaa !15
  %60 = call noundef float @_ZL23stbtt__oversample_shifti(i32 noundef %59)
  store float %60, ptr %16, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 1, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.stbtt_pack_context, ptr %61, i32 0, i32 1
  %63 = load ptr, ptr %62, align 8, !tbaa !16
  store ptr %63, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %64

64:                                               ; preds = %123, %5
  %65 = load i32, ptr %17, align 4, !tbaa !9
  %66 = load i32, ptr %11, align 4, !tbaa !9
  %67 = icmp slt i32 %65, %66
  br i1 %67, label %68, label %126

68:                                               ; preds = %64
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %69

69:                                               ; preds = %119, %68
  %70 = load i32, ptr %18, align 4, !tbaa !9
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  %72 = load i32, ptr %17, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds %struct.stbtt_pack_range, ptr %71, i64 %73
  %75 = getelementptr inbounds %struct.stbtt_pack_range, ptr %74, i32 0, i32 2
  %76 = load i32, ptr %75, align 8, !tbaa !17
  %77 = icmp slt i32 %70, %76
  br i1 %77, label %78, label %122

78:                                               ; preds = %69
  %79 = load ptr, ptr %10, align 8, !tbaa !5
  %80 = load i32, ptr %17, align 4, !tbaa !9
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds %struct.stbtt_pack_range, ptr %79, i64 %81
  %83 = getelementptr inbounds %struct.stbtt_pack_range, ptr %82, i32 0, i32 3
  %84 = load ptr, ptr %83, align 8, !tbaa !19
  %85 = load i32, ptr %18, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds %struct.stbtt_packedchar, ptr %84, i64 %86
  %88 = getelementptr inbounds %struct.stbtt_packedchar, ptr %87, i32 0, i32 3
  store i16 0, ptr %88, align 2, !tbaa !20
  %89 = load ptr, ptr %10, align 8, !tbaa !5
  %90 = load i32, ptr %17, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds %struct.stbtt_pack_range, ptr %89, i64 %91
  %93 = getelementptr inbounds %struct.stbtt_pack_range, ptr %92, i32 0, i32 3
  %94 = load ptr, ptr %93, align 8, !tbaa !19
  %95 = load i32, ptr %18, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds %struct.stbtt_packedchar, ptr %94, i64 %96
  %98 = getelementptr inbounds %struct.stbtt_packedchar, ptr %97, i32 0, i32 2
  store i16 0, ptr %98, align 4, !tbaa !23
  %99 = load ptr, ptr %10, align 8, !tbaa !5
  %100 = load i32, ptr %17, align 4, !tbaa !9
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds %struct.stbtt_pack_range, ptr %99, i64 %101
  %103 = getelementptr inbounds %struct.stbtt_pack_range, ptr %102, i32 0, i32 3
  %104 = load ptr, ptr %103, align 8, !tbaa !19
  %105 = load i32, ptr %18, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds %struct.stbtt_packedchar, ptr %104, i64 %106
  %108 = getelementptr inbounds %struct.stbtt_packedchar, ptr %107, i32 0, i32 1
  store i16 0, ptr %108, align 2, !tbaa !24
  %109 = load ptr, ptr %10, align 8, !tbaa !5
  %110 = load i32, ptr %17, align 4, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds %struct.stbtt_pack_range, ptr %109, i64 %111
  %113 = getelementptr inbounds %struct.stbtt_pack_range, ptr %112, i32 0, i32 3
  %114 = load ptr, ptr %113, align 8, !tbaa !19
  %115 = load i32, ptr %18, align 4, !tbaa !9
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds %struct.stbtt_packedchar, ptr %114, i64 %116
  %118 = getelementptr inbounds %struct.stbtt_packedchar, ptr %117, i32 0, i32 0
  store i16 0, ptr %118, align 4, !tbaa !25
  br label %119

119:                                              ; preds = %78
  %120 = load i32, ptr %18, align 4, !tbaa !9
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %18, align 4, !tbaa !9
  br label %69, !llvm.loop !26

122:                                              ; preds = %69
  br label %123

123:                                              ; preds = %122
  %124 = load i32, ptr %17, align 4, !tbaa !9
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %17, align 4, !tbaa !9
  br label %64, !llvm.loop !28

126:                                              ; preds = %64
  store i32 0, ptr %20, align 4, !tbaa !9
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %127

127:                                              ; preds = %140, %126
  %128 = load i32, ptr %17, align 4, !tbaa !9
  %129 = load i32, ptr %11, align 4, !tbaa !9
  %130 = icmp slt i32 %128, %129
  br i1 %130, label %131, label %143

131:                                              ; preds = %127
  %132 = load ptr, ptr %10, align 8, !tbaa !5
  %133 = load i32, ptr %17, align 4, !tbaa !9
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds %struct.stbtt_pack_range, ptr %132, i64 %134
  %136 = getelementptr inbounds %struct.stbtt_pack_range, ptr %135, i32 0, i32 2
  %137 = load i32, ptr %136, align 8, !tbaa !17
  %138 = load i32, ptr %20, align 4, !tbaa !9
  %139 = add nsw i32 %138, %137
  store i32 %139, ptr %20, align 4, !tbaa !9
  br label %140

140:                                              ; preds = %131
  %141 = load i32, ptr %17, align 4, !tbaa !9
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %17, align 4, !tbaa !9
  br label %127, !llvm.loop !29

143:                                              ; preds = %127
  %144 = load i32, ptr %20, align 4, !tbaa !9
  %145 = sext i32 %144 to i64
  %146 = mul i64 24, %145
  %147 = call noalias ptr @malloc(i64 noundef %146) #7
  store ptr %147, ptr %23, align 8, !tbaa !5
  %148 = load ptr, ptr %23, align 8, !tbaa !5
  %149 = icmp eq ptr %148, null
  br i1 %149, label %150, label %151

150:                                              ; preds = %143
  store i32 0, ptr %6, align 4
  store i32 1, ptr %24, align 4
  br label %559

151:                                              ; preds = %143
  %152 = load ptr, ptr %8, align 8, !tbaa !5
  %153 = load ptr, ptr %8, align 8, !tbaa !5
  %154 = load i32, ptr %9, align 4, !tbaa !9
  %155 = call i32 @stbtt_GetFontOffsetForIndex(ptr noundef %153, i32 noundef %154)
  %156 = call i32 @stbtt_InitFont(ptr noundef %12, ptr noundef %152, i32 noundef %155)
  store i32 0, ptr %19, align 4, !tbaa !9
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %157

157:                                              ; preds = %249, %151
  %158 = load i32, ptr %17, align 4, !tbaa !9
  %159 = load i32, ptr %11, align 4, !tbaa !9
  %160 = icmp slt i32 %158, %159
  br i1 %160, label %161, label %252

161:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %162 = load ptr, ptr %10, align 8, !tbaa !5
  %163 = load i32, ptr %17, align 4, !tbaa !9
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds %struct.stbtt_pack_range, ptr %162, i64 %164
  %166 = getelementptr inbounds %struct.stbtt_pack_range, ptr %165, i32 0, i32 0
  %167 = load float, ptr %166, align 8, !tbaa !30
  store float %167, ptr %25, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %168 = load float, ptr %25, align 4, !tbaa !13
  %169 = fcmp ogt float %168, 0.000000e+00
  br i1 %169, label %170, label %173

170:                                              ; preds = %161
  %171 = load float, ptr %25, align 4, !tbaa !13
  %172 = call float @stbtt_ScaleForPixelHeight(ptr noundef %12, float noundef %171)
  br label %177

173:                                              ; preds = %161
  %174 = load float, ptr %25, align 4, !tbaa !13
  %175 = fneg float %174
  %176 = call float @stbtt_ScaleForMappingEmToPixels(ptr noundef %12, float noundef %175)
  br label %177

177:                                              ; preds = %173, %170
  %178 = phi float [ %172, %170 ], [ %176, %173 ]
  store float %178, ptr %26, align 4, !tbaa !13
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %179

179:                                              ; preds = %245, %177
  %180 = load i32, ptr %18, align 4, !tbaa !9
  %181 = load ptr, ptr %10, align 8, !tbaa !5
  %182 = load i32, ptr %17, align 4, !tbaa !9
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds %struct.stbtt_pack_range, ptr %181, i64 %183
  %185 = getelementptr inbounds %struct.stbtt_pack_range, ptr %184, i32 0, i32 2
  %186 = load i32, ptr %185, align 8, !tbaa !17
  %187 = icmp slt i32 %180, %186
  br i1 %187, label %188, label %248

188:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %189 = load ptr, ptr %10, align 8, !tbaa !5
  %190 = load i32, ptr %17, align 4, !tbaa !9
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds %struct.stbtt_pack_range, ptr %189, i64 %191
  %193 = getelementptr inbounds %struct.stbtt_pack_range, ptr %192, i32 0, i32 1
  %194 = load i32, ptr %193, align 4, !tbaa !31
  %195 = load i32, ptr %18, align 4, !tbaa !9
  %196 = add nsw i32 %194, %195
  %197 = load float, ptr %26, align 4, !tbaa !13
  %198 = load ptr, ptr %7, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.stbtt_pack_context, ptr %198, i32 0, i32 6
  %200 = load i32, ptr %199, align 8, !tbaa !11
  %201 = uitofp i32 %200 to float
  %202 = fmul float %197, %201
  %203 = load float, ptr %26, align 4, !tbaa !13
  %204 = load ptr, ptr %7, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.stbtt_pack_context, ptr %204, i32 0, i32 7
  %206 = load i32, ptr %205, align 4, !tbaa !15
  %207 = uitofp i32 %206 to float
  %208 = fmul float %203, %207
  call void @stbtt_GetCodepointBitmapBoxSubpixel(ptr noundef %12, i32 noundef %196, float noundef %202, float noundef %208, float noundef 0.000000e+00, float noundef 0.000000e+00, ptr noundef %27, ptr noundef %28, ptr noundef %29, ptr noundef %30)
  %209 = load i32, ptr %29, align 4, !tbaa !9
  %210 = load i32, ptr %27, align 4, !tbaa !9
  %211 = sub nsw i32 %209, %210
  %212 = load ptr, ptr %7, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.stbtt_pack_context, ptr %212, i32 0, i32 5
  %214 = load i32, ptr %213, align 4, !tbaa !32
  %215 = add nsw i32 %211, %214
  %216 = load ptr, ptr %7, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.stbtt_pack_context, ptr %216, i32 0, i32 6
  %218 = load i32, ptr %217, align 8, !tbaa !11
  %219 = add i32 %215, %218
  %220 = sub i32 %219, 1
  %221 = load ptr, ptr %23, align 8, !tbaa !5
  %222 = load i32, ptr %19, align 4, !tbaa !9
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds %struct.stbrp_rect, ptr %221, i64 %223
  %225 = getelementptr inbounds %struct.stbrp_rect, ptr %224, i32 0, i32 3
  store i32 %220, ptr %225, align 4, !tbaa !33
  %226 = load i32, ptr %30, align 4, !tbaa !9
  %227 = load i32, ptr %28, align 4, !tbaa !9
  %228 = sub nsw i32 %226, %227
  %229 = load ptr, ptr %7, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.stbtt_pack_context, ptr %229, i32 0, i32 5
  %231 = load i32, ptr %230, align 4, !tbaa !32
  %232 = add nsw i32 %228, %231
  %233 = load ptr, ptr %7, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.stbtt_pack_context, ptr %233, i32 0, i32 7
  %235 = load i32, ptr %234, align 4, !tbaa !15
  %236 = add i32 %232, %235
  %237 = sub i32 %236, 1
  %238 = load ptr, ptr %23, align 8, !tbaa !5
  %239 = load i32, ptr %19, align 4, !tbaa !9
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds %struct.stbrp_rect, ptr %238, i64 %240
  %242 = getelementptr inbounds %struct.stbrp_rect, ptr %241, i32 0, i32 4
  store i32 %237, ptr %242, align 4, !tbaa !35
  %243 = load i32, ptr %19, align 4, !tbaa !9
  %244 = add nsw i32 %243, 1
  store i32 %244, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %245

245:                                              ; preds = %188
  %246 = load i32, ptr %18, align 4, !tbaa !9
  %247 = add nsw i32 %246, 1
  store i32 %247, ptr %18, align 4, !tbaa !9
  br label %179, !llvm.loop !36

248:                                              ; preds = %179
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %249

249:                                              ; preds = %248
  %250 = load i32, ptr %17, align 4, !tbaa !9
  %251 = add nsw i32 %250, 1
  store i32 %251, ptr %17, align 4, !tbaa !9
  br label %157, !llvm.loop !37

252:                                              ; preds = %157
  %253 = load ptr, ptr %22, align 8, !tbaa !5
  %254 = load ptr, ptr %23, align 8, !tbaa !5
  %255 = load i32, ptr %19, align 4, !tbaa !9
  call void @_ZL16stbrp_pack_rectsP13stbrp_contextP10stbrp_recti(ptr noundef %253, ptr noundef %254, i32 noundef %255)
  store i32 0, ptr %19, align 4, !tbaa !9
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %256

256:                                              ; preds = %553, %252
  %257 = load i32, ptr %17, align 4, !tbaa !9
  %258 = load i32, ptr %11, align 4, !tbaa !9
  %259 = icmp slt i32 %257, %258
  br i1 %259, label %260, label %556

260:                                              ; preds = %256
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  %261 = load ptr, ptr %10, align 8, !tbaa !5
  %262 = load i32, ptr %17, align 4, !tbaa !9
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds %struct.stbtt_pack_range, ptr %261, i64 %263
  %265 = getelementptr inbounds %struct.stbtt_pack_range, ptr %264, i32 0, i32 0
  %266 = load float, ptr %265, align 8, !tbaa !30
  store float %266, ptr %31, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  %267 = load float, ptr %31, align 4, !tbaa !13
  %268 = fcmp ogt float %267, 0.000000e+00
  br i1 %268, label %269, label %272

269:                                              ; preds = %260
  %270 = load float, ptr %31, align 4, !tbaa !13
  %271 = call float @stbtt_ScaleForPixelHeight(ptr noundef %12, float noundef %270)
  br label %276

272:                                              ; preds = %260
  %273 = load float, ptr %31, align 4, !tbaa !13
  %274 = fneg float %273
  %275 = call float @stbtt_ScaleForMappingEmToPixels(ptr noundef %12, float noundef %274)
  br label %276

276:                                              ; preds = %272, %269
  %277 = phi float [ %271, %269 ], [ %275, %272 ]
  store float %277, ptr %32, align 4, !tbaa !13
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %278

278:                                              ; preds = %549, %276
  %279 = load i32, ptr %18, align 4, !tbaa !9
  %280 = load ptr, ptr %10, align 8, !tbaa !5
  %281 = load i32, ptr %17, align 4, !tbaa !9
  %282 = sext i32 %281 to i64
  %283 = getelementptr inbounds %struct.stbtt_pack_range, ptr %280, i64 %282
  %284 = getelementptr inbounds %struct.stbtt_pack_range, ptr %283, i32 0, i32 2
  %285 = load i32, ptr %284, align 8, !tbaa !17
  %286 = icmp slt i32 %279, %285
  br i1 %286, label %287, label %552

287:                                              ; preds = %278
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  %288 = load ptr, ptr %23, align 8, !tbaa !5
  %289 = load i32, ptr %19, align 4, !tbaa !9
  %290 = sext i32 %289 to i64
  %291 = getelementptr inbounds %struct.stbrp_rect, ptr %288, i64 %290
  store ptr %291, ptr %33, align 8, !tbaa !5
  %292 = load ptr, ptr %33, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.stbrp_rect, ptr %292, i32 0, i32 5
  %294 = load i32, ptr %293, align 4, !tbaa !38
  %295 = icmp ne i32 %294, 0
  br i1 %295, label %296, label %545

296:                                              ; preds = %287
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  %297 = load ptr, ptr %10, align 8, !tbaa !5
  %298 = load i32, ptr %17, align 4, !tbaa !9
  %299 = sext i32 %298 to i64
  %300 = getelementptr inbounds %struct.stbtt_pack_range, ptr %297, i64 %299
  %301 = getelementptr inbounds %struct.stbtt_pack_range, ptr %300, i32 0, i32 3
  %302 = load ptr, ptr %301, align 8, !tbaa !19
  %303 = load i32, ptr %18, align 4, !tbaa !9
  %304 = sext i32 %303 to i64
  %305 = getelementptr inbounds %struct.stbtt_packedchar, ptr %302, i64 %304
  store ptr %305, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #6
  %306 = load ptr, ptr %10, align 8, !tbaa !5
  %307 = load i32, ptr %17, align 4, !tbaa !9
  %308 = sext i32 %307 to i64
  %309 = getelementptr inbounds %struct.stbtt_pack_range, ptr %306, i64 %308
  %310 = getelementptr inbounds %struct.stbtt_pack_range, ptr %309, i32 0, i32 1
  %311 = load i32, ptr %310, align 4, !tbaa !31
  %312 = load i32, ptr %18, align 4, !tbaa !9
  %313 = add nsw i32 %311, %312
  %314 = call i32 @stbtt_FindGlyphIndex(ptr noundef %12, i32 noundef %313)
  store i32 %314, ptr %41, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #6
  %315 = load ptr, ptr %7, align 8, !tbaa !5
  %316 = getelementptr inbounds %struct.stbtt_pack_context, ptr %315, i32 0, i32 5
  %317 = load i32, ptr %316, align 4, !tbaa !32
  store i32 %317, ptr %42, align 4, !tbaa !9
  %318 = load i32, ptr %42, align 4, !tbaa !9
  %319 = load ptr, ptr %33, align 8, !tbaa !5
  %320 = getelementptr inbounds %struct.stbrp_rect, ptr %319, i32 0, i32 0
  %321 = load i32, ptr %320, align 4, !tbaa !39
  %322 = add nsw i32 %321, %318
  store i32 %322, ptr %320, align 4, !tbaa !39
  %323 = load i32, ptr %42, align 4, !tbaa !9
  %324 = load ptr, ptr %33, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.stbrp_rect, ptr %324, i32 0, i32 1
  %326 = load i32, ptr %325, align 4, !tbaa !40
  %327 = add nsw i32 %326, %323
  store i32 %327, ptr %325, align 4, !tbaa !40
  %328 = load i32, ptr %42, align 4, !tbaa !9
  %329 = load ptr, ptr %33, align 8, !tbaa !5
  %330 = getelementptr inbounds %struct.stbrp_rect, ptr %329, i32 0, i32 3
  %331 = load i32, ptr %330, align 4, !tbaa !33
  %332 = sub nsw i32 %331, %328
  store i32 %332, ptr %330, align 4, !tbaa !33
  %333 = load i32, ptr %42, align 4, !tbaa !9
  %334 = load ptr, ptr %33, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.stbrp_rect, ptr %334, i32 0, i32 4
  %336 = load i32, ptr %335, align 4, !tbaa !35
  %337 = sub nsw i32 %336, %333
  store i32 %337, ptr %335, align 4, !tbaa !35
  %338 = load i32, ptr %41, align 4, !tbaa !9
  call void @stbtt_GetGlyphHMetrics(ptr noundef %12, i32 noundef %338, ptr noundef %35, ptr noundef %36)
  %339 = load i32, ptr %41, align 4, !tbaa !9
  %340 = load float, ptr %32, align 4, !tbaa !13
  %341 = load ptr, ptr %7, align 8, !tbaa !5
  %342 = getelementptr inbounds %struct.stbtt_pack_context, ptr %341, i32 0, i32 6
  %343 = load i32, ptr %342, align 8, !tbaa !11
  %344 = uitofp i32 %343 to float
  %345 = fmul float %340, %344
  %346 = load float, ptr %32, align 4, !tbaa !13
  %347 = load ptr, ptr %7, align 8, !tbaa !5
  %348 = getelementptr inbounds %struct.stbtt_pack_context, ptr %347, i32 0, i32 7
  %349 = load i32, ptr %348, align 4, !tbaa !15
  %350 = uitofp i32 %349 to float
  %351 = fmul float %346, %350
  call void @stbtt_GetGlyphBitmapBox(ptr noundef %12, i32 noundef %339, float noundef %345, float noundef %351, ptr noundef %37, ptr noundef %38, ptr noundef %39, ptr noundef %40)
  %352 = load ptr, ptr %7, align 8, !tbaa !5
  %353 = getelementptr inbounds %struct.stbtt_pack_context, ptr %352, i32 0, i32 8
  %354 = load ptr, ptr %353, align 8, !tbaa !41
  %355 = load ptr, ptr %33, align 8, !tbaa !5
  %356 = getelementptr inbounds %struct.stbrp_rect, ptr %355, i32 0, i32 0
  %357 = load i32, ptr %356, align 4, !tbaa !39
  %358 = sext i32 %357 to i64
  %359 = getelementptr inbounds i8, ptr %354, i64 %358
  %360 = load ptr, ptr %33, align 8, !tbaa !5
  %361 = getelementptr inbounds %struct.stbrp_rect, ptr %360, i32 0, i32 1
  %362 = load i32, ptr %361, align 4, !tbaa !40
  %363 = load ptr, ptr %7, align 8, !tbaa !5
  %364 = getelementptr inbounds %struct.stbtt_pack_context, ptr %363, i32 0, i32 4
  %365 = load i32, ptr %364, align 8, !tbaa !42
  %366 = mul nsw i32 %362, %365
  %367 = sext i32 %366 to i64
  %368 = getelementptr inbounds i8, ptr %359, i64 %367
  %369 = load ptr, ptr %33, align 8, !tbaa !5
  %370 = getelementptr inbounds %struct.stbrp_rect, ptr %369, i32 0, i32 3
  %371 = load i32, ptr %370, align 4, !tbaa !33
  %372 = load ptr, ptr %7, align 8, !tbaa !5
  %373 = getelementptr inbounds %struct.stbtt_pack_context, ptr %372, i32 0, i32 6
  %374 = load i32, ptr %373, align 8, !tbaa !11
  %375 = sub i32 %371, %374
  %376 = add i32 %375, 1
  %377 = load ptr, ptr %33, align 8, !tbaa !5
  %378 = getelementptr inbounds %struct.stbrp_rect, ptr %377, i32 0, i32 4
  %379 = load i32, ptr %378, align 4, !tbaa !35
  %380 = load ptr, ptr %7, align 8, !tbaa !5
  %381 = getelementptr inbounds %struct.stbtt_pack_context, ptr %380, i32 0, i32 7
  %382 = load i32, ptr %381, align 4, !tbaa !15
  %383 = sub i32 %379, %382
  %384 = add i32 %383, 1
  %385 = load ptr, ptr %7, align 8, !tbaa !5
  %386 = getelementptr inbounds %struct.stbtt_pack_context, ptr %385, i32 0, i32 4
  %387 = load i32, ptr %386, align 8, !tbaa !42
  %388 = load float, ptr %32, align 4, !tbaa !13
  %389 = load ptr, ptr %7, align 8, !tbaa !5
  %390 = getelementptr inbounds %struct.stbtt_pack_context, ptr %389, i32 0, i32 6
  %391 = load i32, ptr %390, align 8, !tbaa !11
  %392 = uitofp i32 %391 to float
  %393 = fmul float %388, %392
  %394 = load float, ptr %32, align 4, !tbaa !13
  %395 = load ptr, ptr %7, align 8, !tbaa !5
  %396 = getelementptr inbounds %struct.stbtt_pack_context, ptr %395, i32 0, i32 7
  %397 = load i32, ptr %396, align 4, !tbaa !15
  %398 = uitofp i32 %397 to float
  %399 = fmul float %394, %398
  %400 = load i32, ptr %41, align 4, !tbaa !9
  call void @stbtt_MakeGlyphBitmapSubpixel(ptr noundef %12, ptr noundef %368, i32 noundef %376, i32 noundef %384, i32 noundef %387, float noundef %393, float noundef %399, float noundef 0.000000e+00, float noundef 0.000000e+00, i32 noundef %400)
  %401 = load ptr, ptr %7, align 8, !tbaa !5
  %402 = getelementptr inbounds %struct.stbtt_pack_context, ptr %401, i32 0, i32 6
  %403 = load i32, ptr %402, align 8, !tbaa !11
  %404 = icmp ugt i32 %403, 1
  br i1 %404, label %405, label %435

405:                                              ; preds = %296
  %406 = load ptr, ptr %7, align 8, !tbaa !5
  %407 = getelementptr inbounds %struct.stbtt_pack_context, ptr %406, i32 0, i32 8
  %408 = load ptr, ptr %407, align 8, !tbaa !41
  %409 = load ptr, ptr %33, align 8, !tbaa !5
  %410 = getelementptr inbounds %struct.stbrp_rect, ptr %409, i32 0, i32 0
  %411 = load i32, ptr %410, align 4, !tbaa !39
  %412 = sext i32 %411 to i64
  %413 = getelementptr inbounds i8, ptr %408, i64 %412
  %414 = load ptr, ptr %33, align 8, !tbaa !5
  %415 = getelementptr inbounds %struct.stbrp_rect, ptr %414, i32 0, i32 1
  %416 = load i32, ptr %415, align 4, !tbaa !40
  %417 = load ptr, ptr %7, align 8, !tbaa !5
  %418 = getelementptr inbounds %struct.stbtt_pack_context, ptr %417, i32 0, i32 4
  %419 = load i32, ptr %418, align 8, !tbaa !42
  %420 = mul nsw i32 %416, %419
  %421 = sext i32 %420 to i64
  %422 = getelementptr inbounds i8, ptr %413, i64 %421
  %423 = load ptr, ptr %33, align 8, !tbaa !5
  %424 = getelementptr inbounds %struct.stbrp_rect, ptr %423, i32 0, i32 3
  %425 = load i32, ptr %424, align 4, !tbaa !33
  %426 = load ptr, ptr %33, align 8, !tbaa !5
  %427 = getelementptr inbounds %struct.stbrp_rect, ptr %426, i32 0, i32 4
  %428 = load i32, ptr %427, align 4, !tbaa !35
  %429 = load ptr, ptr %7, align 8, !tbaa !5
  %430 = getelementptr inbounds %struct.stbtt_pack_context, ptr %429, i32 0, i32 4
  %431 = load i32, ptr %430, align 8, !tbaa !42
  %432 = load ptr, ptr %7, align 8, !tbaa !5
  %433 = getelementptr inbounds %struct.stbtt_pack_context, ptr %432, i32 0, i32 6
  %434 = load i32, ptr %433, align 8, !tbaa !11
  call void @_ZL18stbtt__h_prefilterPhiiij(ptr noundef %422, i32 noundef %425, i32 noundef %428, i32 noundef %431, i32 noundef %434)
  br label %435

435:                                              ; preds = %405, %296
  %436 = load ptr, ptr %7, align 8, !tbaa !5
  %437 = getelementptr inbounds %struct.stbtt_pack_context, ptr %436, i32 0, i32 7
  %438 = load i32, ptr %437, align 4, !tbaa !15
  %439 = icmp ugt i32 %438, 1
  br i1 %439, label %440, label %470

440:                                              ; preds = %435
  %441 = load ptr, ptr %7, align 8, !tbaa !5
  %442 = getelementptr inbounds %struct.stbtt_pack_context, ptr %441, i32 0, i32 8
  %443 = load ptr, ptr %442, align 8, !tbaa !41
  %444 = load ptr, ptr %33, align 8, !tbaa !5
  %445 = getelementptr inbounds %struct.stbrp_rect, ptr %444, i32 0, i32 0
  %446 = load i32, ptr %445, align 4, !tbaa !39
  %447 = sext i32 %446 to i64
  %448 = getelementptr inbounds i8, ptr %443, i64 %447
  %449 = load ptr, ptr %33, align 8, !tbaa !5
  %450 = getelementptr inbounds %struct.stbrp_rect, ptr %449, i32 0, i32 1
  %451 = load i32, ptr %450, align 4, !tbaa !40
  %452 = load ptr, ptr %7, align 8, !tbaa !5
  %453 = getelementptr inbounds %struct.stbtt_pack_context, ptr %452, i32 0, i32 4
  %454 = load i32, ptr %453, align 8, !tbaa !42
  %455 = mul nsw i32 %451, %454
  %456 = sext i32 %455 to i64
  %457 = getelementptr inbounds i8, ptr %448, i64 %456
  %458 = load ptr, ptr %33, align 8, !tbaa !5
  %459 = getelementptr inbounds %struct.stbrp_rect, ptr %458, i32 0, i32 3
  %460 = load i32, ptr %459, align 4, !tbaa !33
  %461 = load ptr, ptr %33, align 8, !tbaa !5
  %462 = getelementptr inbounds %struct.stbrp_rect, ptr %461, i32 0, i32 4
  %463 = load i32, ptr %462, align 4, !tbaa !35
  %464 = load ptr, ptr %7, align 8, !tbaa !5
  %465 = getelementptr inbounds %struct.stbtt_pack_context, ptr %464, i32 0, i32 4
  %466 = load i32, ptr %465, align 8, !tbaa !42
  %467 = load ptr, ptr %7, align 8, !tbaa !5
  %468 = getelementptr inbounds %struct.stbtt_pack_context, ptr %467, i32 0, i32 7
  %469 = load i32, ptr %468, align 4, !tbaa !15
  call void @_ZL18stbtt__v_prefilterPhiiij(ptr noundef %457, i32 noundef %460, i32 noundef %463, i32 noundef %466, i32 noundef %469)
  br label %470

470:                                              ; preds = %440, %435
  %471 = load ptr, ptr %33, align 8, !tbaa !5
  %472 = getelementptr inbounds %struct.stbrp_rect, ptr %471, i32 0, i32 0
  %473 = load i32, ptr %472, align 4, !tbaa !39
  %474 = trunc i32 %473 to i16
  %475 = load ptr, ptr %34, align 8, !tbaa !5
  %476 = getelementptr inbounds %struct.stbtt_packedchar, ptr %475, i32 0, i32 0
  store i16 %474, ptr %476, align 4, !tbaa !25
  %477 = load ptr, ptr %33, align 8, !tbaa !5
  %478 = getelementptr inbounds %struct.stbrp_rect, ptr %477, i32 0, i32 1
  %479 = load i32, ptr %478, align 4, !tbaa !40
  %480 = trunc i32 %479 to i16
  %481 = load ptr, ptr %34, align 8, !tbaa !5
  %482 = getelementptr inbounds %struct.stbtt_packedchar, ptr %481, i32 0, i32 1
  store i16 %480, ptr %482, align 2, !tbaa !24
  %483 = load ptr, ptr %33, align 8, !tbaa !5
  %484 = getelementptr inbounds %struct.stbrp_rect, ptr %483, i32 0, i32 0
  %485 = load i32, ptr %484, align 4, !tbaa !39
  %486 = load ptr, ptr %33, align 8, !tbaa !5
  %487 = getelementptr inbounds %struct.stbrp_rect, ptr %486, i32 0, i32 3
  %488 = load i32, ptr %487, align 4, !tbaa !33
  %489 = add nsw i32 %485, %488
  %490 = trunc i32 %489 to i16
  %491 = load ptr, ptr %34, align 8, !tbaa !5
  %492 = getelementptr inbounds %struct.stbtt_packedchar, ptr %491, i32 0, i32 2
  store i16 %490, ptr %492, align 4, !tbaa !23
  %493 = load ptr, ptr %33, align 8, !tbaa !5
  %494 = getelementptr inbounds %struct.stbrp_rect, ptr %493, i32 0, i32 1
  %495 = load i32, ptr %494, align 4, !tbaa !40
  %496 = load ptr, ptr %33, align 8, !tbaa !5
  %497 = getelementptr inbounds %struct.stbrp_rect, ptr %496, i32 0, i32 4
  %498 = load i32, ptr %497, align 4, !tbaa !35
  %499 = add nsw i32 %495, %498
  %500 = trunc i32 %499 to i16
  %501 = load ptr, ptr %34, align 8, !tbaa !5
  %502 = getelementptr inbounds %struct.stbtt_packedchar, ptr %501, i32 0, i32 3
  store i16 %500, ptr %502, align 2, !tbaa !20
  %503 = load float, ptr %32, align 4, !tbaa !13
  %504 = load i32, ptr %35, align 4, !tbaa !9
  %505 = sitofp i32 %504 to float
  %506 = fmul float %503, %505
  %507 = load ptr, ptr %34, align 8, !tbaa !5
  %508 = getelementptr inbounds %struct.stbtt_packedchar, ptr %507, i32 0, i32 6
  store float %506, ptr %508, align 4, !tbaa !43
  %509 = load i32, ptr %37, align 4, !tbaa !9
  %510 = sitofp i32 %509 to float
  %511 = load float, ptr %13, align 4, !tbaa !13
  %512 = load float, ptr %15, align 4, !tbaa !13
  %513 = call float @llvm.fmuladd.f32(float %510, float %511, float %512)
  %514 = load ptr, ptr %34, align 8, !tbaa !5
  %515 = getelementptr inbounds %struct.stbtt_packedchar, ptr %514, i32 0, i32 4
  store float %513, ptr %515, align 4, !tbaa !44
  %516 = load i32, ptr %38, align 4, !tbaa !9
  %517 = sitofp i32 %516 to float
  %518 = load float, ptr %14, align 4, !tbaa !13
  %519 = load float, ptr %16, align 4, !tbaa !13
  %520 = call float @llvm.fmuladd.f32(float %517, float %518, float %519)
  %521 = load ptr, ptr %34, align 8, !tbaa !5
  %522 = getelementptr inbounds %struct.stbtt_packedchar, ptr %521, i32 0, i32 5
  store float %520, ptr %522, align 4, !tbaa !45
  %523 = load i32, ptr %37, align 4, !tbaa !9
  %524 = load ptr, ptr %33, align 8, !tbaa !5
  %525 = getelementptr inbounds %struct.stbrp_rect, ptr %524, i32 0, i32 3
  %526 = load i32, ptr %525, align 4, !tbaa !33
  %527 = add nsw i32 %523, %526
  %528 = sitofp i32 %527 to float
  %529 = load float, ptr %13, align 4, !tbaa !13
  %530 = load float, ptr %15, align 4, !tbaa !13
  %531 = call float @llvm.fmuladd.f32(float %528, float %529, float %530)
  %532 = load ptr, ptr %34, align 8, !tbaa !5
  %533 = getelementptr inbounds %struct.stbtt_packedchar, ptr %532, i32 0, i32 7
  store float %531, ptr %533, align 4, !tbaa !46
  %534 = load i32, ptr %38, align 4, !tbaa !9
  %535 = load ptr, ptr %33, align 8, !tbaa !5
  %536 = getelementptr inbounds %struct.stbrp_rect, ptr %535, i32 0, i32 4
  %537 = load i32, ptr %536, align 4, !tbaa !35
  %538 = add nsw i32 %534, %537
  %539 = sitofp i32 %538 to float
  %540 = load float, ptr %14, align 4, !tbaa !13
  %541 = load float, ptr %16, align 4, !tbaa !13
  %542 = call float @llvm.fmuladd.f32(float %539, float %540, float %541)
  %543 = load ptr, ptr %34, align 8, !tbaa !5
  %544 = getelementptr inbounds %struct.stbtt_packedchar, ptr %543, i32 0, i32 8
  store float %542, ptr %544, align 4, !tbaa !47
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  br label %546

545:                                              ; preds = %287
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %546

546:                                              ; preds = %545, %470
  %547 = load i32, ptr %19, align 4, !tbaa !9
  %548 = add nsw i32 %547, 1
  store i32 %548, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  br label %549

549:                                              ; preds = %546
  %550 = load i32, ptr %18, align 4, !tbaa !9
  %551 = add nsw i32 %550, 1
  store i32 %551, ptr %18, align 4, !tbaa !9
  br label %278, !llvm.loop !48

552:                                              ; preds = %278
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %553

553:                                              ; preds = %552
  %554 = load i32, ptr %17, align 4, !tbaa !9
  %555 = add nsw i32 %554, 1
  store i32 %555, ptr %17, align 4, !tbaa !9
  br label %256, !llvm.loop !49

556:                                              ; preds = %256
  %557 = load ptr, ptr %23, align 8, !tbaa !5
  call void @free(ptr noundef %557) #6
  %558 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %558, ptr %6, align 4
  store i32 1, ptr %24, align 4
  br label %559

559:                                              ; preds = %556, %150
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %12) #6
  %560 = load i32, ptr %6, align 4
  ret i32 %560
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef float @_ZL23stbtt__oversample_shifti(i32 noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL16stbrp_pack_rectsP13stbrp_contextP10stbrp_recti(ptr noundef, ptr noundef, i32 noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL18stbtt__h_prefilterPhiiij(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL18stbtt__v_prefilterPhiiij(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #5

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

!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, !10, i64 32}
!12 = !{!"_ZTS18stbtt_pack_context", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !6, i64 40, !6, i64 48}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!12, !10, i64 36}
!16 = !{!12, !6, i64 8}
!17 = !{!18, !10, i64 8}
!18 = !{!"_ZTS16stbtt_pack_range", !14, i64 0, !10, i64 4, !10, i64 8, !6, i64 16}
!19 = !{!18, !6, i64 16}
!20 = !{!21, !22, i64 6}
!21 = !{!"_ZTS16stbtt_packedchar", !22, i64 0, !22, i64 2, !22, i64 4, !22, i64 6, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !14, i64 24}
!22 = !{!"short", !7, i64 0}
!23 = !{!21, !22, i64 4}
!24 = !{!21, !22, i64 2}
!25 = !{!21, !22, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}
!29 = distinct !{!29, !27}
!30 = !{!18, !14, i64 0}
!31 = !{!18, !10, i64 4}
!32 = !{!12, !10, i64 28}
!33 = !{!34, !10, i64 12}
!34 = !{!"_ZTS10stbrp_rect", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!35 = !{!34, !10, i64 16}
!36 = distinct !{!36, !27}
!37 = distinct !{!37, !27}
!38 = !{!34, !10, i64 20}
!39 = !{!34, !10, i64 0}
!40 = !{!34, !10, i64 4}
!41 = !{!12, !6, i64 40}
!42 = !{!12, !10, i64 24}
!43 = !{!21, !14, i64 16}
!44 = !{!21, !14, i64 8}
!45 = !{!21, !14, i64 12}
!46 = !{!21, !14, i64 20}
!47 = !{!21, !14, i64 24}
!48 = distinct !{!48, !27}
!49 = distinct !{!49, !27}


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

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

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

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local float @stbtt_ScaleForMappingEmToPixels(ptr noundef, float noundef) local_unnamed_addr #0

; 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 #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local range(i32 0, 2) i32 @stbtt_PackFontRanges(ptr nocapture noundef readonly %0, ptr noundef %1, i32 noundef %2, ptr nocapture noundef readonly %3, i32 noundef %4) local_unnamed_addr #0 {
  %6 = alloca %struct.stbtt_fontinfo, 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 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 %6) #6
  %17 = getelementptr inbounds i8, ptr %0, i64 32
  %18 = getelementptr inbounds i8, ptr %0, i64 36
  %19 = load <2 x i32>, ptr %17, align 8, !tbaa !5
  %20 = uitofp <2 x i32> %19 to <2 x float>
  %21 = fdiv <2 x float> <float 1.000000e+00, float 1.000000e+00>, %20
  %22 = extractelement <2 x i32> %19, i64 0
  %23 = tail call noundef float @_ZL23stbtt__oversample_shifti(i32 noundef %22)
  %24 = load i32, ptr %18, align 4, !tbaa !9
  %25 = tail call noundef float @_ZL23stbtt__oversample_shifti(i32 noundef %24)
  %26 = getelementptr inbounds i8, ptr %0, i64 8
  %27 = load ptr, ptr %26, align 8, !tbaa !12
  %28 = icmp sgt i32 %4, 0
  br i1 %28, label %.preheader186.preheader, label %._crit_edge192

.preheader186.preheader:                          ; preds = %5
  %wide.trip.count226 = zext nneg i32 %4 to i64
  br label %.preheader186

.preheader186:                                    ; preds = %.preheader186.preheader, %._crit_edge
  %indvars.iv223 = phi i64 [ 0, %.preheader186.preheader ], [ %indvars.iv.next224, %._crit_edge ]
  %29 = getelementptr inbounds %struct.stbtt_pack_range, ptr %3, i64 %indvars.iv223
  %30 = getelementptr inbounds i8, ptr %29, i64 8
  %31 = load i32, ptr %30, align 8, !tbaa !13
  %32 = icmp sgt i32 %31, 0
  br i1 %32, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader186
  %33 = getelementptr inbounds i8, ptr %29, i64 16
  %34 = load ptr, ptr %33, align 8, !tbaa !16
  %wide.trip.count = zext nneg i32 %31 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %35 = icmp ult i32 %31, 4
  br i1 %35, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %73

.preheader:                                       ; preds = %._crit_edge
  br i1 %28, label %.lr.ph191.preheader, label %._crit_edge192

.lr.ph191.preheader:                              ; preds = %.preheader
  %wide.trip.count231 = zext nneg i32 %4 to i64
  %min.iters.check = icmp ult i32 %4, 9
  br i1 %min.iters.check, label %.lr.ph191.preheader257, label %vector.ph

.lr.ph191.preheader257:                           ; preds = %middle.block, %.lr.ph191.preheader
  %indvars.iv228.ph = phi i64 [ 0, %.lr.ph191.preheader ], [ %n.vec, %middle.block ]
  %.0171189.ph = phi i32 [ 0, %.lr.ph191.preheader ], [ %72, %middle.block ]
  br label %.lr.ph191

vector.ph:                                        ; preds = %.lr.ph191.preheader
  %n.mod.vf = and i64 %wide.trip.count226, 7
  %36 = icmp eq i64 %n.mod.vf, 0
  %37 = select i1 %36, i64 8, i64 %n.mod.vf
  %n.vec = sub nsw i64 %wide.trip.count226, %37
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %69, %vector.body ]
  %vec.phi256 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %70, %vector.body ]
  %38 = or disjoint i64 %index, 1
  %39 = or disjoint i64 %index, 2
  %40 = or disjoint i64 %index, 3
  %41 = or disjoint i64 %index, 4
  %42 = or disjoint i64 %index, 5
  %43 = or disjoint i64 %index, 6
  %44 = or disjoint i64 %index, 7
  %45 = getelementptr inbounds %struct.stbtt_pack_range, ptr %3, i64 %index, i32 2
  %46 = getelementptr inbounds %struct.stbtt_pack_range, ptr %3, i64 %38, i32 2
  %47 = getelementptr inbounds %struct.stbtt_pack_range, ptr %3, i64 %39, i32 2
  %48 = getelementptr inbounds %struct.stbtt_pack_range, ptr %3, i64 %40, i32 2
  %49 = getelementptr inbounds %struct.stbtt_pack_range, ptr %3, i64 %41, i32 2
  %50 = getelementptr inbounds %struct.stbtt_pack_range, ptr %3, i64 %42, i32 2
  %51 = getelementptr inbounds %struct.stbtt_pack_range, ptr %3, i64 %43, i32 2
  %52 = getelementptr inbounds %struct.stbtt_pack_range, ptr %3, i64 %44, i32 2
  %53 = load i32, ptr %45, align 8, !tbaa !13
  %54 = load i32, ptr %46, align 8, !tbaa !13
  %55 = load i32, ptr %47, align 8, !tbaa !13
  %56 = load i32, ptr %48, align 8, !tbaa !13
  %57 = insertelement <4 x i32> poison, i32 %53, i64 0
  %58 = insertelement <4 x i32> %57, i32 %54, i64 1
  %59 = insertelement <4 x i32> %58, i32 %55, i64 2
  %60 = insertelement <4 x i32> %59, i32 %56, i64 3
  %61 = load i32, ptr %49, align 8, !tbaa !13
  %62 = load i32, ptr %50, align 8, !tbaa !13
  %63 = load i32, ptr %51, align 8, !tbaa !13
  %64 = load i32, ptr %52, align 8, !tbaa !13
  %65 = insertelement <4 x i32> poison, i32 %61, i64 0
  %66 = insertelement <4 x i32> %65, i32 %62, i64 1
  %67 = insertelement <4 x i32> %66, i32 %63, i64 2
  %68 = insertelement <4 x i32> %67, i32 %64, i64 3
  %69 = add <4 x i32> %60, %vec.phi
  %70 = add <4 x i32> %68, %vec.phi256
  %index.next = add nuw i64 %index, 8
  %71 = icmp eq i64 %index.next, %n.vec
  br i1 %71, label %middle.block, label %vector.body, !llvm.loop !17

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %70, %69
  %72 = tail call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  br label %.lr.ph191.preheader257

73:                                               ; preds = %73, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.3, %73 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %73 ]
  %74 = getelementptr inbounds %struct.stbtt_packedchar, ptr %34, i64 %indvars.iv
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  store i64 0, ptr %74, align 4
  %75 = getelementptr inbounds %struct.stbtt_packedchar, ptr %34, i64 %indvars.iv.next
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  store i64 0, ptr %75, align 4
  %76 = getelementptr inbounds %struct.stbtt_packedchar, ptr %34, i64 %indvars.iv.next.1
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  store i64 0, ptr %76, align 4
  %77 = getelementptr inbounds %struct.stbtt_packedchar, ptr %34, i64 %indvars.iv.next.2
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  store i64 0, ptr %77, align 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %73, !llvm.loop !21

._crit_edge.loopexit.unr-lcssa:                   ; preds = %73, %.lr.ph
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.3, %73 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %78 = getelementptr inbounds %struct.stbtt_packedchar, ptr %34, i64 %indvars.iv.epil
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  store i64 0, ptr %78, align 4
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.epil.preheader, !llvm.loop !22

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %.preheader186
  %indvars.iv.next224 = add nuw nsw i64 %indvars.iv223, 1
  %exitcond227.not = icmp eq i64 %indvars.iv.next224, %wide.trip.count226
  br i1 %exitcond227.not, label %.preheader, label %.preheader186, !llvm.loop !24

.lr.ph191:                                        ; preds = %.lr.ph191.preheader257, %.lr.ph191
  %indvars.iv228 = phi i64 [ %indvars.iv.next229, %.lr.ph191 ], [ %indvars.iv228.ph, %.lr.ph191.preheader257 ]
  %.0171189 = phi i32 [ %81, %.lr.ph191 ], [ %.0171189.ph, %.lr.ph191.preheader257 ]
  %79 = getelementptr inbounds %struct.stbtt_pack_range, ptr %3, i64 %indvars.iv228, i32 2
  %80 = load i32, ptr %79, align 8, !tbaa !13
  %81 = add nsw i32 %80, %.0171189
  %indvars.iv.next229 = add nuw nsw i64 %indvars.iv228, 1
  %exitcond232.not = icmp eq i64 %indvars.iv.next229, %wide.trip.count231
  br i1 %exitcond232.not, label %._crit_edge192.loopexit, label %.lr.ph191, !llvm.loop !25

._crit_edge192.loopexit:                          ; preds = %.lr.ph191
  %82 = sext i32 %81 to i64
  %83 = mul nsw i64 %82, 24
  br label %._crit_edge192

._crit_edge192:                                   ; preds = %5, %._crit_edge192.loopexit, %.preheader
  %.0171.lcssa = phi i64 [ 0, %.preheader ], [ %83, %._crit_edge192.loopexit ], [ 0, %5 ]
  %84 = tail call noalias ptr @malloc(i64 noundef %.0171.lcssa) #7
  %85 = icmp eq ptr %84, null
  br i1 %85, label %267, label %86

86:                                               ; preds = %._crit_edge192
  %87 = tail call i32 @stbtt_GetFontOffsetForIndex(ptr noundef %1, i32 noundef %2)
  %88 = call i32 @stbtt_InitFont(ptr noundef nonnull %6, ptr noundef %1, i32 noundef %87)
  br i1 %28, label %.lr.ph202, label %._crit_edge203.thread

._crit_edge203.thread:                            ; preds = %86
  call void @_ZL16stbrp_pack_rectsP13stbrp_contextP10stbrp_recti(ptr noundef %27, ptr noundef nonnull %84, i32 noundef 0)
  br label %._crit_edge218

.lr.ph202:                                        ; preds = %86
  %89 = getelementptr inbounds i8, ptr %0, i64 28
  %wide.trip.count239 = zext nneg i32 %4 to i64
  br label %90

90:                                               ; preds = %.lr.ph202, %._crit_edge197
  %indvars.iv236 = phi i64 [ 0, %.lr.ph202 ], [ %indvars.iv.next237, %._crit_edge197 ]
  %.0167199 = phi i32 [ 0, %.lr.ph202 ], [ %.1168.lcssa, %._crit_edge197 ]
  %91 = getelementptr inbounds %struct.stbtt_pack_range, ptr %3, i64 %indvars.iv236
  %92 = load float, ptr %91, align 8, !tbaa !26
  %93 = fcmp ogt float %92, 0.000000e+00
  br i1 %93, label %94, label %96

94:                                               ; preds = %90
  %95 = call float @stbtt_ScaleForPixelHeight(ptr noundef nonnull %6, float noundef %92)
  br label %99

96:                                               ; preds = %90
  %97 = fneg float %92
  %98 = call float @stbtt_ScaleForMappingEmToPixels(ptr noundef nonnull %6, float noundef %97)
  br label %99

99:                                               ; preds = %96, %94
  %100 = phi float [ %95, %94 ], [ %98, %96 ]
  %101 = getelementptr inbounds i8, ptr %91, i64 8
  %102 = load i32, ptr %101, align 8, !tbaa !13
  %103 = icmp sgt i32 %102, 0
  br i1 %103, label %.lr.ph196, label %._crit_edge197

.lr.ph196:                                        ; preds = %99
  %104 = getelementptr inbounds i8, ptr %91, i64 4
  %105 = sext i32 %.0167199 to i64
  %.pre = load i32, ptr %17, align 8, !tbaa !27
  %.pre253 = load i32, ptr %18, align 4, !tbaa !9
  br label %106

106:                                              ; preds = %.lr.ph196, %106
  %107 = phi i32 [ %.pre253, %.lr.ph196 ], [ %127, %106 ]
  %108 = phi i32 [ %.pre, %.lr.ph196 ], [ %118, %106 ]
  %indvars.iv233 = phi i64 [ %105, %.lr.ph196 ], [ %indvars.iv.next234, %106 ]
  %.1165194 = phi i32 [ 0, %.lr.ph196 ], [ %132, %106 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  %109 = load i32, ptr %104, align 4, !tbaa !28
  %110 = add nsw i32 %109, %.1165194
  %111 = uitofp i32 %108 to float
  %112 = fmul float %100, %111
  %113 = uitofp i32 %107 to float
  %114 = fmul float %100, %113
  call void @stbtt_GetCodepointBitmapBoxSubpixel(ptr noundef nonnull %6, i32 noundef %110, float noundef %112, float noundef %114, float noundef 0.000000e+00, float noundef 0.000000e+00, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10)
  %115 = load i32, ptr %9, align 4, !tbaa !5
  %116 = load i32, ptr %7, align 4, !tbaa !5
  %117 = load i32, ptr %89, align 4, !tbaa !29
  %118 = load i32, ptr %17, align 8, !tbaa !27
  %119 = add i32 %117, -1
  %120 = add i32 %119, %115
  %121 = sub i32 %120, %116
  %122 = add i32 %121, %118
  %123 = getelementptr inbounds %struct.stbrp_rect, ptr %84, i64 %indvars.iv233
  %124 = getelementptr inbounds i8, ptr %123, i64 12
  store i32 %122, ptr %124, align 4, !tbaa !30
  %125 = load i32, ptr %10, align 4, !tbaa !5
  %126 = load i32, ptr %8, align 4, !tbaa !5
  %127 = load i32, ptr %18, align 4, !tbaa !9
  %128 = add i32 %119, %125
  %129 = sub i32 %128, %126
  %130 = add i32 %129, %127
  %131 = getelementptr inbounds i8, ptr %123, i64 16
  store i32 %130, ptr %131, align 4, !tbaa !32
  %indvars.iv.next234 = add nsw i64 %indvars.iv233, 1
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  %132 = add nuw nsw i32 %.1165194, 1
  %133 = load i32, ptr %101, align 8, !tbaa !13
  %134 = icmp slt i32 %132, %133
  br i1 %134, label %106, label %._crit_edge197.loopexit, !llvm.loop !33

._crit_edge197.loopexit:                          ; preds = %106
  %135 = trunc nsw i64 %indvars.iv.next234 to i32
  br label %._crit_edge197

._crit_edge197:                                   ; preds = %._crit_edge197.loopexit, %99
  %.1168.lcssa = phi i32 [ %.0167199, %99 ], [ %135, %._crit_edge197.loopexit ]
  %indvars.iv.next237 = add nuw nsw i64 %indvars.iv236, 1
  %exitcond240.not = icmp eq i64 %indvars.iv.next237, %wide.trip.count239
  br i1 %exitcond240.not, label %._crit_edge203, label %90, !llvm.loop !34

._crit_edge203:                                   ; preds = %._crit_edge197
  call void @_ZL16stbrp_pack_rectsP13stbrp_contextP10stbrp_recti(ptr noundef %27, ptr noundef nonnull %84, i32 noundef %.1168.lcssa)
  br i1 %28, label %.lr.ph217, label %._crit_edge218

.lr.ph217:                                        ; preds = %._crit_edge203
  %136 = getelementptr inbounds i8, ptr %0, i64 28
  %137 = getelementptr inbounds i8, ptr %0, i64 40
  %138 = getelementptr inbounds i8, ptr %0, i64 24
  %wide.trip.count251 = zext nneg i32 %4 to i64
  %139 = insertelement <2 x float> poison, float %23, i64 0
  %140 = insertelement <2 x float> %139, float %25, i64 1
  br label %141

141:                                              ; preds = %.lr.ph217, %._crit_edge210
  %indvars.iv248 = phi i64 [ 0, %.lr.ph217 ], [ %indvars.iv.next249, %._crit_edge210 ]
  %.2169214 = phi i32 [ 0, %.lr.ph217 ], [ %.3170.lcssa, %._crit_edge210 ]
  %.0172213 = phi i32 [ 1, %.lr.ph217 ], [ %.1173.lcssa, %._crit_edge210 ]
  %142 = getelementptr inbounds %struct.stbtt_pack_range, ptr %3, i64 %indvars.iv248
  %143 = load float, ptr %142, align 8, !tbaa !26
  %144 = fcmp ogt float %143, 0.000000e+00
  br i1 %144, label %145, label %147

145:                                              ; preds = %141
  %146 = call float @stbtt_ScaleForPixelHeight(ptr noundef nonnull %6, float noundef %143)
  br label %150

147:                                              ; preds = %141
  %148 = fneg float %143
  %149 = call float @stbtt_ScaleForMappingEmToPixels(ptr noundef nonnull %6, float noundef %148)
  br label %150

150:                                              ; preds = %147, %145
  %151 = phi float [ %146, %145 ], [ %149, %147 ]
  %152 = getelementptr inbounds i8, ptr %142, i64 8
  %153 = load i32, ptr %152, align 8, !tbaa !13
  %154 = icmp sgt i32 %153, 0
  br i1 %154, label %.lr.ph209, label %._crit_edge210

.lr.ph209:                                        ; preds = %150
  %155 = getelementptr inbounds i8, ptr %142, i64 16
  %156 = getelementptr inbounds i8, ptr %142, i64 4
  %157 = sext i32 %.2169214 to i64
  br label %158

158:                                              ; preds = %.lr.ph209, %262
  %159 = phi i32 [ %153, %.lr.ph209 ], [ %263, %262 ]
  %indvars.iv243 = phi i64 [ %157, %.lr.ph209 ], [ %indvars.iv.next244, %262 ]
  %indvars.iv241 = phi i64 [ 0, %.lr.ph209 ], [ %indvars.iv.next242, %262 ]
  %.1173205 = phi i32 [ %.0172213, %.lr.ph209 ], [ %.2174, %262 ]
  %160 = getelementptr inbounds %struct.stbrp_rect, ptr %84, i64 %indvars.iv243
  %161 = getelementptr inbounds i8, ptr %160, i64 20
  %162 = load i32, ptr %161, align 4, !tbaa !35
  %.not = icmp eq i32 %162, 0
  br i1 %.not, label %262, label %163

163:                                              ; preds = %158
  %164 = load ptr, ptr %155, align 8, !tbaa !16
  %165 = getelementptr inbounds %struct.stbtt_packedchar, ptr %164, i64 %indvars.iv241
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #6
  %166 = load i32, ptr %156, align 4, !tbaa !28
  %167 = trunc nuw nsw i64 %indvars.iv241 to i32
  %168 = add nsw i32 %166, %167
  %169 = call i32 @stbtt_FindGlyphIndex(ptr noundef nonnull %6, i32 noundef %168)
  %170 = load i32, ptr %136, align 4, !tbaa !29
  %171 = getelementptr inbounds i8, ptr %160, i64 4
  %172 = load <2 x i32>, ptr %160, align 4, !tbaa !5
  %173 = insertelement <2 x i32> poison, i32 %170, i64 0
  %174 = shufflevector <2 x i32> %173, <2 x i32> poison, <2 x i32> zeroinitializer
  %175 = add nsw <2 x i32> %172, %174
  store <2 x i32> %175, ptr %160, align 4, !tbaa !5
  %176 = getelementptr inbounds i8, ptr %160, i64 12
  %177 = getelementptr inbounds i8, ptr %160, i64 16
  %178 = load <2 x i32>, ptr %176, align 4, !tbaa !5
  %179 = sub nsw <2 x i32> %178, %174
  store <2 x i32> %179, ptr %176, align 4, !tbaa !5
  call void @stbtt_GetGlyphHMetrics(ptr noundef nonnull %6, i32 noundef %169, ptr noundef nonnull %11, ptr noundef nonnull %12)
  %180 = load i32, ptr %17, align 8, !tbaa !27
  %181 = uitofp i32 %180 to float
  %182 = fmul float %151, %181
  %183 = load i32, ptr %18, align 4, !tbaa !9
  %184 = uitofp i32 %183 to float
  %185 = fmul float %151, %184
  call void @stbtt_GetGlyphBitmapBox(ptr noundef nonnull %6, i32 noundef %169, float noundef %182, float noundef %185, ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %16)
  %186 = load ptr, ptr %137, align 8, !tbaa !36
  %187 = load i32, ptr %160, align 4, !tbaa !37
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds i8, ptr %186, i64 %188
  %190 = load i32, ptr %171, align 4, !tbaa !38
  %191 = load i32, ptr %138, align 8, !tbaa !39
  %192 = mul nsw i32 %191, %190
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds i8, ptr %189, i64 %193
  %195 = load i32, ptr %176, align 4, !tbaa !30
  %196 = load i32, ptr %17, align 8, !tbaa !27
  %197 = add i32 %195, 1
  %198 = sub i32 %197, %196
  %199 = load i32, ptr %177, align 4, !tbaa !32
  %200 = load i32, ptr %18, align 4, !tbaa !9
  %201 = add i32 %199, 1
  %202 = sub i32 %201, %200
  %203 = uitofp i32 %196 to float
  %204 = fmul float %151, %203
  %205 = uitofp i32 %200 to float
  %206 = fmul float %151, %205
  call void @stbtt_MakeGlyphBitmapSubpixel(ptr noundef nonnull %6, ptr noundef %194, i32 noundef %198, i32 noundef %202, i32 noundef %191, float noundef %204, float noundef %206, float noundef 0.000000e+00, float noundef 0.000000e+00, i32 noundef %169)
  %207 = load i32, ptr %17, align 8, !tbaa !27
  %208 = icmp ugt i32 %207, 1
  br i1 %208, label %209, label %221

209:                                              ; preds = %163
  %210 = load ptr, ptr %137, align 8, !tbaa !36
  %211 = load i32, ptr %160, align 4, !tbaa !37
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds i8, ptr %210, i64 %212
  %214 = load i32, ptr %171, align 4, !tbaa !38
  %215 = load i32, ptr %138, align 8, !tbaa !39
  %216 = mul nsw i32 %215, %214
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds i8, ptr %213, i64 %217
  %219 = load i32, ptr %176, align 4, !tbaa !30
  %220 = load i32, ptr %177, align 4, !tbaa !32
  call void @_ZL18stbtt__h_prefilterPhiiij(ptr noundef %218, i32 noundef %219, i32 noundef %220, i32 noundef %215, i32 noundef %207)
  br label %221

221:                                              ; preds = %209, %163
  %222 = load i32, ptr %18, align 4, !tbaa !9
  %223 = icmp ugt i32 %222, 1
  br i1 %223, label %224, label %236

224:                                              ; preds = %221
  %225 = load ptr, ptr %137, align 8, !tbaa !36
  %226 = load i32, ptr %160, align 4, !tbaa !37
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds i8, ptr %225, i64 %227
  %229 = load i32, ptr %171, align 4, !tbaa !38
  %230 = load i32, ptr %138, align 8, !tbaa !39
  %231 = mul nsw i32 %230, %229
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds i8, ptr %228, i64 %232
  %234 = load i32, ptr %176, align 4, !tbaa !30
  %235 = load i32, ptr %177, align 4, !tbaa !32
  call void @_ZL18stbtt__v_prefilterPhiiij(ptr noundef %233, i32 noundef %234, i32 noundef %235, i32 noundef %230, i32 noundef %222)
  br label %236

236:                                              ; preds = %224, %221
  %237 = getelementptr inbounds i8, ptr %165, i64 2
  %238 = getelementptr inbounds i8, ptr %165, i64 4
  %239 = load i32, ptr %11, align 4, !tbaa !5
  %240 = sitofp i32 %239 to float
  %241 = fmul float %151, %240
  %242 = getelementptr inbounds i8, ptr %165, i64 16
  store float %241, ptr %242, align 4, !tbaa !40
  %243 = load i32, ptr %13, align 4, !tbaa !5
  %244 = getelementptr inbounds i8, ptr %165, i64 8
  %245 = load i32, ptr %14, align 4, !tbaa !5
  %246 = insertelement <2 x i32> poison, i32 %243, i64 0
  %247 = insertelement <2 x i32> %246, i32 %245, i64 1
  %248 = sitofp <2 x i32> %247 to <2 x float>
  %249 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %248, <2 x float> %21, <2 x float> %140)
  store <2 x float> %249, ptr %244, align 4, !tbaa !43
  %250 = getelementptr inbounds i8, ptr %165, i64 20
  %251 = load <2 x i32>, ptr %176, align 4, !tbaa !5
  %252 = load <2 x i32>, ptr %160, align 4, !tbaa !5
  %253 = bitcast <2 x i32> %252 to <4 x i16>
  %254 = extractelement <4 x i16> %253, i64 0
  store i16 %254, ptr %165, align 4, !tbaa !44
  %255 = bitcast <2 x i32> %252 to <4 x i16>
  %256 = extractelement <4 x i16> %255, i64 2
  store i16 %256, ptr %237, align 2, !tbaa !45
  %257 = add nsw <2 x i32> %251, %252
  %258 = trunc <2 x i32> %257 to <2 x i16>
  store <2 x i16> %258, ptr %238, align 4, !tbaa !46
  %259 = add nsw <2 x i32> %247, %251
  %260 = sitofp <2 x i32> %259 to <2 x float>
  %261 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %260, <2 x float> %21, <2 x float> %140)
  store <2 x float> %261, ptr %250, align 4, !tbaa !43
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  %.pre254 = load i32, ptr %152, align 8, !tbaa !13
  br label %262

262:                                              ; preds = %158, %236
  %263 = phi i32 [ %.pre254, %236 ], [ %159, %158 ]
  %.2174 = phi i32 [ %.1173205, %236 ], [ 0, %158 ]
  %indvars.iv.next244 = add nsw i64 %indvars.iv243, 1
  %indvars.iv.next242 = add nuw nsw i64 %indvars.iv241, 1
  %264 = sext i32 %263 to i64
  %265 = icmp slt i64 %indvars.iv.next242, %264
  br i1 %265, label %158, label %._crit_edge210.loopexit, !llvm.loop !47

._crit_edge210.loopexit:                          ; preds = %262
  %266 = trunc nsw i64 %indvars.iv.next244 to i32
  br label %._crit_edge210

._crit_edge210:                                   ; preds = %._crit_edge210.loopexit, %150
  %.1173.lcssa = phi i32 [ %.0172213, %150 ], [ %.2174, %._crit_edge210.loopexit ]
  %.3170.lcssa = phi i32 [ %.2169214, %150 ], [ %266, %._crit_edge210.loopexit ]
  %indvars.iv.next249 = add nuw nsw i64 %indvars.iv248, 1
  %exitcond252.not = icmp eq i64 %indvars.iv.next249, %wide.trip.count251
  br i1 %exitcond252.not, label %._crit_edge218, label %141, !llvm.loop !48

._crit_edge218:                                   ; preds = %._crit_edge210, %._crit_edge203.thread, %._crit_edge203
  %.0172.lcssa = phi i32 [ 1, %._crit_edge203 ], [ 1, %._crit_edge203.thread ], [ %.1173.lcssa, %._crit_edge210 ]
  call void @free(ptr noundef %84) #6
  br label %267

267:                                              ; preds = %._crit_edge192, %._crit_edge218
  %.0 = phi i32 [ %.0172.lcssa, %._crit_edge218 ], [ 0, %._crit_edge192 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %6) #6
  ret i32 %.0
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef float @_ZL23stbtt__oversample_shifti(i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL16stbrp_pack_rectsP13stbrp_contextP10stbrp_recti(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL18stbtt__h_prefilterPhiiij(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL18stbtt__v_prefilterPhiiij(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x float> @llvm.fmuladd.v2f32(<2 x float>, <2 x float>, <2 x float>) #5

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }

!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, !6, i64 36}
!10 = !{!"_ZTS18stbtt_pack_context", !11, i64 0, !11, i64 8, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !11, i64 40, !11, i64 48}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!14, !6, i64 8}
!14 = !{!"_ZTS16stbtt_pack_range", !15, i64 0, !6, i64 4, !6, i64 8, !11, i64 16}
!15 = !{!"float", !7, i64 0}
!16 = !{!14, !11, i64 16}
!17 = distinct !{!17, !18, !19, !20}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!"llvm.loop.isvectorized", i32 1}
!20 = !{!"llvm.loop.unroll.runtime.disable"}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.unroll.disable"}
!24 = distinct !{!24, !18}
!25 = distinct !{!25, !18, !20, !19}
!26 = !{!14, !15, i64 0}
!27 = !{!10, !6, i64 32}
!28 = !{!14, !6, i64 4}
!29 = !{!10, !6, i64 28}
!30 = !{!31, !6, i64 12}
!31 = !{!"_ZTS10stbrp_rect", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20}
!32 = !{!31, !6, i64 16}
!33 = distinct !{!33, !18}
!34 = distinct !{!34, !18}
!35 = !{!31, !6, i64 20}
!36 = !{!10, !11, i64 40}
!37 = !{!31, !6, i64 0}
!38 = !{!31, !6, i64 4}
!39 = !{!10, !6, i64 24}
!40 = !{!41, !15, i64 16}
!41 = !{!"_ZTS16stbtt_packedchar", !42, i64 0, !42, i64 2, !42, i64 4, !42, i64 6, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20, !15, i64 24}
!42 = !{!"short", !7, i64 0}
!43 = !{!15, !15, i64 0}
!44 = !{!41, !42, i64 0}
!45 = !{!41, !42, i64 2}
!46 = !{!42, !42, i64 0}
!47 = distinct !{!47, !18}
!48 = distinct !{!48, !18}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass