; LLVM IR from jrouwe/JoltPhysics :: TestFramework/Renderer (Font)

; 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_pack_context = type { ptr, ptr, i32, i32, i32, i32, i32, i32, i32, ptr, ptr }
%struct.stbtt_pack_range = type { float, i32, ptr, i32, ptr, i8, i8 }
%struct.stbrp_rect = type { i32, i32, i32, i32, i32, i32 }
%struct.stbtt_packedchar = type { i16, i16, i16, i16, float, float, 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_FindGlyphIndex(ptr noundef, i32 noundef) #1

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #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_MakeGlyphBitmapSubpixel(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef, float noundef, float noundef, i32 noundef) #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @stbtt_PackFontRangesRenderIntoRects(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #1 {
  %6 = alloca ptr, align 8
  %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 i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca ptr, align 8
  %25 = alloca ptr, 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
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !9
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 -1, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 1, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.stbtt_pack_context, ptr %35, i32 0, i32 7
  %37 = load i32, ptr %36, align 4, !tbaa !11
  store i32 %37, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.stbtt_pack_context, ptr %38, i32 0, i32 8
  %40 = load i32, ptr %39, align 8, !tbaa !13
  store i32 %40, ptr %17, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %41

41:                                               ; preds = %462, %5
  %42 = load i32, ptr %11, align 4, !tbaa !9
  %43 = load i32, ptr %9, align 4, !tbaa !9
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %45, label %465

45:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  %47 = load i32, ptr %11, align 4, !tbaa !9
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds %struct.stbtt_pack_range, ptr %46, i64 %48
  %50 = getelementptr inbounds %struct.stbtt_pack_range, ptr %49, i32 0, i32 0
  %51 = load float, ptr %50, align 8, !tbaa !14
  store float %51, ptr %18, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %52 = load float, ptr %18, align 4, !tbaa !17
  %53 = fcmp ogt float %52, 0.000000e+00
  br i1 %53, label %54, label %58

54:                                               ; preds = %45
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = load float, ptr %18, align 4, !tbaa !17
  %57 = call float @stbtt_ScaleForPixelHeight(ptr noundef %55, float noundef %56)
  br label %63

58:                                               ; preds = %45
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = load float, ptr %18, align 4, !tbaa !17
  %61 = fneg float %60
  %62 = call float @stbtt_ScaleForMappingEmToPixels(ptr noundef %59, float noundef %61)
  br label %63

63:                                               ; preds = %58, %54
  %64 = phi float [ %57, %54 ], [ %62, %58 ]
  store float %64, ptr %19, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = load i32, ptr %11, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds %struct.stbtt_pack_range, ptr %65, i64 %67
  %69 = getelementptr inbounds %struct.stbtt_pack_range, ptr %68, i32 0, i32 5
  %70 = load i8, ptr %69, align 8, !tbaa !18
  %71 = zext i8 %70 to i32
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.stbtt_pack_context, ptr %72, i32 0, i32 7
  store i32 %71, ptr %73, align 4, !tbaa !11
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  %75 = load i32, ptr %11, align 4, !tbaa !9
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds %struct.stbtt_pack_range, ptr %74, i64 %76
  %78 = getelementptr inbounds %struct.stbtt_pack_range, ptr %77, i32 0, i32 6
  %79 = load i8, ptr %78, align 1, !tbaa !19
  %80 = zext i8 %79 to i32
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.stbtt_pack_context, ptr %81, i32 0, i32 8
  store i32 %80, ptr %82, align 8, !tbaa !13
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.stbtt_pack_context, ptr %83, i32 0, i32 7
  %85 = load i32, ptr %84, align 4, !tbaa !11
  %86 = uitofp i32 %85 to float
  %87 = fdiv float 1.000000e+00, %86
  store float %87, ptr %20, align 4, !tbaa !17
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.stbtt_pack_context, ptr %88, i32 0, i32 8
  %90 = load i32, ptr %89, align 8, !tbaa !13
  %91 = uitofp i32 %90 to float
  %92 = fdiv float 1.000000e+00, %91
  store float %92, ptr %21, align 4, !tbaa !17
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.stbtt_pack_context, ptr %93, i32 0, i32 7
  %95 = load i32, ptr %94, align 4, !tbaa !11
  %96 = call noundef float @_ZL23stbtt__oversample_shifti(i32 noundef %95)
  store float %96, ptr %22, align 4, !tbaa !17
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.stbtt_pack_context, ptr %97, i32 0, i32 8
  %99 = load i32, ptr %98, align 8, !tbaa !13
  %100 = call noundef float @_ZL23stbtt__oversample_shifti(i32 noundef %99)
  store float %100, ptr %23, align 4, !tbaa !17
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %101

101:                                              ; preds = %458, %63
  %102 = load i32, ptr %12, align 4, !tbaa !9
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = load i32, ptr %11, align 4, !tbaa !9
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds %struct.stbtt_pack_range, ptr %103, i64 %105
  %107 = getelementptr inbounds %struct.stbtt_pack_range, ptr %106, i32 0, i32 3
  %108 = load i32, ptr %107, align 8, !tbaa !20
  %109 = icmp slt i32 %102, %108
  br i1 %109, label %110, label %461

110:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %111 = load ptr, ptr %10, align 8, !tbaa !5
  %112 = load i32, ptr %13, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds %struct.stbrp_rect, ptr %111, i64 %113
  store ptr %114, ptr %24, align 8, !tbaa !5
  %115 = load ptr, ptr %24, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.stbrp_rect, ptr %115, i32 0, i32 5
  %117 = load i32, ptr %116, align 4, !tbaa !21
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %119, label %409

119:                                              ; preds = %110
  %120 = load ptr, ptr %24, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.stbrp_rect, ptr %120, i32 0, i32 3
  %122 = load i32, ptr %121, align 4, !tbaa !23
  %123 = icmp ne i32 %122, 0
  br i1 %123, label %124, label %409

124:                                              ; preds = %119
  %125 = load ptr, ptr %24, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.stbrp_rect, ptr %125, i32 0, i32 4
  %127 = load i32, ptr %126, align 4, !tbaa !24
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %129, label %409

129:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %130 = load ptr, ptr %8, align 8, !tbaa !5
  %131 = load i32, ptr %11, align 4, !tbaa !9
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds %struct.stbtt_pack_range, ptr %130, i64 %132
  %134 = getelementptr inbounds %struct.stbtt_pack_range, ptr %133, i32 0, i32 4
  %135 = load ptr, ptr %134, align 8, !tbaa !25
  %136 = load i32, ptr %12, align 4, !tbaa !9
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds %struct.stbtt_packedchar, ptr %135, i64 %137
  store ptr %138, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #5
  %139 = load ptr, ptr %8, align 8, !tbaa !5
  %140 = load i32, ptr %11, align 4, !tbaa !9
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds %struct.stbtt_pack_range, ptr %139, i64 %141
  %143 = getelementptr inbounds %struct.stbtt_pack_range, ptr %142, i32 0, i32 2
  %144 = load ptr, ptr %143, align 8, !tbaa !26
  %145 = icmp eq ptr %144, null
  br i1 %145, label %146, label %155

146:                                              ; preds = %129
  %147 = load ptr, ptr %8, align 8, !tbaa !5
  %148 = load i32, ptr %11, align 4, !tbaa !9
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds %struct.stbtt_pack_range, ptr %147, i64 %149
  %151 = getelementptr inbounds %struct.stbtt_pack_range, ptr %150, i32 0, i32 1
  %152 = load i32, ptr %151, align 4, !tbaa !27
  %153 = load i32, ptr %12, align 4, !tbaa !9
  %154 = add nsw i32 %152, %153
  br label %166

155:                                              ; preds = %129
  %156 = load ptr, ptr %8, align 8, !tbaa !5
  %157 = load i32, ptr %11, align 4, !tbaa !9
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds %struct.stbtt_pack_range, ptr %156, i64 %158
  %160 = getelementptr inbounds %struct.stbtt_pack_range, ptr %159, i32 0, i32 2
  %161 = load ptr, ptr %160, align 8, !tbaa !26
  %162 = load i32, ptr %12, align 4, !tbaa !9
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds i32, ptr %161, i64 %163
  %165 = load i32, ptr %164, align 4, !tbaa !9
  br label %166

166:                                              ; preds = %155, %146
  %167 = phi i32 [ %154, %146 ], [ %165, %155 ]
  store i32 %167, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #5
  %168 = load ptr, ptr %7, align 8, !tbaa !5
  %169 = load i32, ptr %32, align 4, !tbaa !9
  %170 = call i32 @stbtt_FindGlyphIndex(ptr noundef %168, i32 noundef %169)
  store i32 %170, ptr %33, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #5
  %171 = load ptr, ptr %6, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.stbtt_pack_context, ptr %171, i32 0, i32 5
  %173 = load i32, ptr %172, align 4, !tbaa !28
  store i32 %173, ptr %34, align 4, !tbaa !9
  %174 = load i32, ptr %34, align 4, !tbaa !9
  %175 = load ptr, ptr %24, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.stbrp_rect, ptr %175, i32 0, i32 0
  %177 = load i32, ptr %176, align 4, !tbaa !29
  %178 = add nsw i32 %177, %174
  store i32 %178, ptr %176, align 4, !tbaa !29
  %179 = load i32, ptr %34, align 4, !tbaa !9
  %180 = load ptr, ptr %24, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.stbrp_rect, ptr %180, i32 0, i32 1
  %182 = load i32, ptr %181, align 4, !tbaa !30
  %183 = add nsw i32 %182, %179
  store i32 %183, ptr %181, align 4, !tbaa !30
  %184 = load i32, ptr %34, align 4, !tbaa !9
  %185 = load ptr, ptr %24, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.stbrp_rect, ptr %185, i32 0, i32 3
  %187 = load i32, ptr %186, align 4, !tbaa !23
  %188 = sub nsw i32 %187, %184
  store i32 %188, ptr %186, align 4, !tbaa !23
  %189 = load i32, ptr %34, align 4, !tbaa !9
  %190 = load ptr, ptr %24, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.stbrp_rect, ptr %190, i32 0, i32 4
  %192 = load i32, ptr %191, align 4, !tbaa !24
  %193 = sub nsw i32 %192, %189
  store i32 %193, ptr %191, align 4, !tbaa !24
  %194 = load ptr, ptr %7, align 8, !tbaa !5
  %195 = load i32, ptr %33, align 4, !tbaa !9
  call void @stbtt_GetGlyphHMetrics(ptr noundef %194, i32 noundef %195, ptr noundef %26, ptr noundef %27)
  %196 = load ptr, ptr %7, align 8, !tbaa !5
  %197 = load i32, ptr %33, align 4, !tbaa !9
  %198 = load float, ptr %19, align 4, !tbaa !17
  %199 = load ptr, ptr %6, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.stbtt_pack_context, ptr %199, i32 0, i32 7
  %201 = load i32, ptr %200, align 4, !tbaa !11
  %202 = uitofp i32 %201 to float
  %203 = fmul float %198, %202
  %204 = load float, ptr %19, align 4, !tbaa !17
  %205 = load ptr, ptr %6, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.stbtt_pack_context, ptr %205, i32 0, i32 8
  %207 = load i32, ptr %206, align 8, !tbaa !13
  %208 = uitofp i32 %207 to float
  %209 = fmul float %204, %208
  call void @stbtt_GetGlyphBitmapBox(ptr noundef %196, i32 noundef %197, float noundef %203, float noundef %209, ptr noundef %28, ptr noundef %29, ptr noundef %30, ptr noundef %31)
  %210 = load ptr, ptr %7, align 8, !tbaa !5
  %211 = load ptr, ptr %6, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.stbtt_pack_context, ptr %211, i32 0, i32 9
  %213 = load ptr, ptr %212, align 8, !tbaa !31
  %214 = load ptr, ptr %24, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.stbrp_rect, ptr %214, i32 0, i32 0
  %216 = load i32, ptr %215, align 4, !tbaa !29
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds i8, ptr %213, i64 %217
  %219 = load ptr, ptr %24, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.stbrp_rect, ptr %219, i32 0, i32 1
  %221 = load i32, ptr %220, align 4, !tbaa !30
  %222 = load ptr, ptr %6, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.stbtt_pack_context, ptr %222, i32 0, i32 4
  %224 = load i32, ptr %223, align 8, !tbaa !32
  %225 = mul nsw i32 %221, %224
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds i8, ptr %218, i64 %226
  %228 = load ptr, ptr %24, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.stbrp_rect, ptr %228, i32 0, i32 3
  %230 = load i32, ptr %229, align 4, !tbaa !23
  %231 = load ptr, ptr %6, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.stbtt_pack_context, ptr %231, i32 0, i32 7
  %233 = load i32, ptr %232, align 4, !tbaa !11
  %234 = sub i32 %230, %233
  %235 = add i32 %234, 1
  %236 = load ptr, ptr %24, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.stbrp_rect, ptr %236, i32 0, i32 4
  %238 = load i32, ptr %237, align 4, !tbaa !24
  %239 = load ptr, ptr %6, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.stbtt_pack_context, ptr %239, i32 0, i32 8
  %241 = load i32, ptr %240, align 8, !tbaa !13
  %242 = sub i32 %238, %241
  %243 = add i32 %242, 1
  %244 = load ptr, ptr %6, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.stbtt_pack_context, ptr %244, i32 0, i32 4
  %246 = load i32, ptr %245, align 8, !tbaa !32
  %247 = load float, ptr %19, align 4, !tbaa !17
  %248 = load ptr, ptr %6, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.stbtt_pack_context, ptr %248, i32 0, i32 7
  %250 = load i32, ptr %249, align 4, !tbaa !11
  %251 = uitofp i32 %250 to float
  %252 = fmul float %247, %251
  %253 = load float, ptr %19, align 4, !tbaa !17
  %254 = load ptr, ptr %6, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.stbtt_pack_context, ptr %254, i32 0, i32 8
  %256 = load i32, ptr %255, align 8, !tbaa !13
  %257 = uitofp i32 %256 to float
  %258 = fmul float %253, %257
  %259 = load i32, ptr %33, align 4, !tbaa !9
  call void @stbtt_MakeGlyphBitmapSubpixel(ptr noundef %210, ptr noundef %227, i32 noundef %235, i32 noundef %243, i32 noundef %246, float noundef %252, float noundef %258, float noundef 0.000000e+00, float noundef 0.000000e+00, i32 noundef %259)
  %260 = load ptr, ptr %6, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.stbtt_pack_context, ptr %260, i32 0, i32 7
  %262 = load i32, ptr %261, align 4, !tbaa !11
  %263 = icmp ugt i32 %262, 1
  br i1 %263, label %264, label %294

264:                                              ; preds = %166
  %265 = load ptr, ptr %6, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.stbtt_pack_context, ptr %265, i32 0, i32 9
  %267 = load ptr, ptr %266, align 8, !tbaa !31
  %268 = load ptr, ptr %24, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.stbrp_rect, ptr %268, i32 0, i32 0
  %270 = load i32, ptr %269, align 4, !tbaa !29
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds i8, ptr %267, i64 %271
  %273 = load ptr, ptr %24, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.stbrp_rect, ptr %273, i32 0, i32 1
  %275 = load i32, ptr %274, align 4, !tbaa !30
  %276 = load ptr, ptr %6, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.stbtt_pack_context, ptr %276, i32 0, i32 4
  %278 = load i32, ptr %277, align 8, !tbaa !32
  %279 = mul nsw i32 %275, %278
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds i8, ptr %272, i64 %280
  %282 = load ptr, ptr %24, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.stbrp_rect, ptr %282, i32 0, i32 3
  %284 = load i32, ptr %283, align 4, !tbaa !23
  %285 = load ptr, ptr %24, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.stbrp_rect, ptr %285, i32 0, i32 4
  %287 = load i32, ptr %286, align 4, !tbaa !24
  %288 = load ptr, ptr %6, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct.stbtt_pack_context, ptr %288, i32 0, i32 4
  %290 = load i32, ptr %289, align 8, !tbaa !32
  %291 = load ptr, ptr %6, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct.stbtt_pack_context, ptr %291, i32 0, i32 7
  %293 = load i32, ptr %292, align 4, !tbaa !11
  call void @_ZL18stbtt__h_prefilterPhiiij(ptr noundef %281, i32 noundef %284, i32 noundef %287, i32 noundef %290, i32 noundef %293)
  br label %294

294:                                              ; preds = %264, %166
  %295 = load ptr, ptr %6, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.stbtt_pack_context, ptr %295, i32 0, i32 8
  %297 = load i32, ptr %296, align 8, !tbaa !13
  %298 = icmp ugt i32 %297, 1
  br i1 %298, label %299, label %329

299:                                              ; preds = %294
  %300 = load ptr, ptr %6, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.stbtt_pack_context, ptr %300, i32 0, i32 9
  %302 = load ptr, ptr %301, align 8, !tbaa !31
  %303 = load ptr, ptr %24, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.stbrp_rect, ptr %303, i32 0, i32 0
  %305 = load i32, ptr %304, align 4, !tbaa !29
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds i8, ptr %302, i64 %306
  %308 = load ptr, ptr %24, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.stbrp_rect, ptr %308, i32 0, i32 1
  %310 = load i32, ptr %309, align 4, !tbaa !30
  %311 = load ptr, ptr %6, align 8, !tbaa !5
  %312 = getelementptr inbounds %struct.stbtt_pack_context, ptr %311, i32 0, i32 4
  %313 = load i32, ptr %312, align 8, !tbaa !32
  %314 = mul nsw i32 %310, %313
  %315 = sext i32 %314 to i64
  %316 = getelementptr inbounds i8, ptr %307, i64 %315
  %317 = load ptr, ptr %24, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct.stbrp_rect, ptr %317, i32 0, i32 3
  %319 = load i32, ptr %318, align 4, !tbaa !23
  %320 = load ptr, ptr %24, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.stbrp_rect, ptr %320, i32 0, i32 4
  %322 = load i32, ptr %321, align 4, !tbaa !24
  %323 = load ptr, ptr %6, align 8, !tbaa !5
  %324 = getelementptr inbounds %struct.stbtt_pack_context, ptr %323, i32 0, i32 4
  %325 = load i32, ptr %324, align 8, !tbaa !32
  %326 = load ptr, ptr %6, align 8, !tbaa !5
  %327 = getelementptr inbounds %struct.stbtt_pack_context, ptr %326, i32 0, i32 8
  %328 = load i32, ptr %327, align 8, !tbaa !13
  call void @_ZL18stbtt__v_prefilterPhiiij(ptr noundef %316, i32 noundef %319, i32 noundef %322, i32 noundef %325, i32 noundef %328)
  br label %329

329:                                              ; preds = %299, %294
  %330 = load ptr, ptr %24, align 8, !tbaa !5
  %331 = getelementptr inbounds %struct.stbrp_rect, ptr %330, i32 0, i32 0
  %332 = load i32, ptr %331, align 4, !tbaa !29
  %333 = trunc i32 %332 to i16
  %334 = load ptr, ptr %25, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.stbtt_packedchar, ptr %334, i32 0, i32 0
  store i16 %333, ptr %335, align 4, !tbaa !33
  %336 = load ptr, ptr %24, align 8, !tbaa !5
  %337 = getelementptr inbounds %struct.stbrp_rect, ptr %336, i32 0, i32 1
  %338 = load i32, ptr %337, align 4, !tbaa !30
  %339 = trunc i32 %338 to i16
  %340 = load ptr, ptr %25, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.stbtt_packedchar, ptr %340, i32 0, i32 1
  store i16 %339, ptr %341, align 2, !tbaa !36
  %342 = load ptr, ptr %24, align 8, !tbaa !5
  %343 = getelementptr inbounds %struct.stbrp_rect, ptr %342, i32 0, i32 0
  %344 = load i32, ptr %343, align 4, !tbaa !29
  %345 = load ptr, ptr %24, align 8, !tbaa !5
  %346 = getelementptr inbounds %struct.stbrp_rect, ptr %345, i32 0, i32 3
  %347 = load i32, ptr %346, align 4, !tbaa !23
  %348 = add nsw i32 %344, %347
  %349 = trunc i32 %348 to i16
  %350 = load ptr, ptr %25, align 8, !tbaa !5
  %351 = getelementptr inbounds %struct.stbtt_packedchar, ptr %350, i32 0, i32 2
  store i16 %349, ptr %351, align 4, !tbaa !37
  %352 = load ptr, ptr %24, align 8, !tbaa !5
  %353 = getelementptr inbounds %struct.stbrp_rect, ptr %352, i32 0, i32 1
  %354 = load i32, ptr %353, align 4, !tbaa !30
  %355 = load ptr, ptr %24, align 8, !tbaa !5
  %356 = getelementptr inbounds %struct.stbrp_rect, ptr %355, i32 0, i32 4
  %357 = load i32, ptr %356, align 4, !tbaa !24
  %358 = add nsw i32 %354, %357
  %359 = trunc i32 %358 to i16
  %360 = load ptr, ptr %25, align 8, !tbaa !5
  %361 = getelementptr inbounds %struct.stbtt_packedchar, ptr %360, i32 0, i32 3
  store i16 %359, ptr %361, align 2, !tbaa !38
  %362 = load float, ptr %19, align 4, !tbaa !17
  %363 = load i32, ptr %26, align 4, !tbaa !9
  %364 = sitofp i32 %363 to float
  %365 = fmul float %362, %364
  %366 = load ptr, ptr %25, align 8, !tbaa !5
  %367 = getelementptr inbounds %struct.stbtt_packedchar, ptr %366, i32 0, i32 6
  store float %365, ptr %367, align 4, !tbaa !39
  %368 = load i32, ptr %28, align 4, !tbaa !9
  %369 = sitofp i32 %368 to float
  %370 = load float, ptr %20, align 4, !tbaa !17
  %371 = load float, ptr %22, align 4, !tbaa !17
  %372 = call float @llvm.fmuladd.f32(float %369, float %370, float %371)
  %373 = load ptr, ptr %25, align 8, !tbaa !5
  %374 = getelementptr inbounds %struct.stbtt_packedchar, ptr %373, i32 0, i32 4
  store float %372, ptr %374, align 4, !tbaa !40
  %375 = load i32, ptr %29, align 4, !tbaa !9
  %376 = sitofp i32 %375 to float
  %377 = load float, ptr %21, align 4, !tbaa !17
  %378 = load float, ptr %23, align 4, !tbaa !17
  %379 = call float @llvm.fmuladd.f32(float %376, float %377, float %378)
  %380 = load ptr, ptr %25, align 8, !tbaa !5
  %381 = getelementptr inbounds %struct.stbtt_packedchar, ptr %380, i32 0, i32 5
  store float %379, ptr %381, align 4, !tbaa !41
  %382 = load i32, ptr %28, align 4, !tbaa !9
  %383 = load ptr, ptr %24, align 8, !tbaa !5
  %384 = getelementptr inbounds %struct.stbrp_rect, ptr %383, i32 0, i32 3
  %385 = load i32, ptr %384, align 4, !tbaa !23
  %386 = add nsw i32 %382, %385
  %387 = sitofp i32 %386 to float
  %388 = load float, ptr %20, align 4, !tbaa !17
  %389 = load float, ptr %22, align 4, !tbaa !17
  %390 = call float @llvm.fmuladd.f32(float %387, float %388, float %389)
  %391 = load ptr, ptr %25, align 8, !tbaa !5
  %392 = getelementptr inbounds %struct.stbtt_packedchar, ptr %391, i32 0, i32 7
  store float %390, ptr %392, align 4, !tbaa !42
  %393 = load i32, ptr %29, align 4, !tbaa !9
  %394 = load ptr, ptr %24, align 8, !tbaa !5
  %395 = getelementptr inbounds %struct.stbrp_rect, ptr %394, i32 0, i32 4
  %396 = load i32, ptr %395, align 4, !tbaa !24
  %397 = add nsw i32 %393, %396
  %398 = sitofp i32 %397 to float
  %399 = load float, ptr %21, align 4, !tbaa !17
  %400 = load float, ptr %23, align 4, !tbaa !17
  %401 = call float @llvm.fmuladd.f32(float %398, float %399, float %400)
  %402 = load ptr, ptr %25, align 8, !tbaa !5
  %403 = getelementptr inbounds %struct.stbtt_packedchar, ptr %402, i32 0, i32 8
  store float %401, ptr %403, align 4, !tbaa !43
  %404 = load i32, ptr %33, align 4, !tbaa !9
  %405 = icmp eq i32 %404, 0
  br i1 %405, label %406, label %408

406:                                              ; preds = %329
  %407 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %407, ptr %14, align 4, !tbaa !9
  br label %408

408:                                              ; preds = %406, %329
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  br label %455

409:                                              ; preds = %124, %119, %110
  %410 = load ptr, ptr %6, align 8, !tbaa !5
  %411 = getelementptr inbounds %struct.stbtt_pack_context, ptr %410, i32 0, i32 6
  %412 = load i32, ptr %411, align 8, !tbaa !44
  %413 = icmp ne i32 %412, 0
  br i1 %413, label %414, label %415

414:                                              ; preds = %409
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %454

415:                                              ; preds = %409
  %416 = load ptr, ptr %24, align 8, !tbaa !5
  %417 = getelementptr inbounds %struct.stbrp_rect, ptr %416, i32 0, i32 5
  %418 = load i32, ptr %417, align 4, !tbaa !21
  %419 = icmp ne i32 %418, 0
  br i1 %419, label %420, label %452

420:                                              ; preds = %415
  %421 = load ptr, ptr %24, align 8, !tbaa !5
  %422 = getelementptr inbounds %struct.stbrp_rect, ptr %421, i32 0, i32 3
  %423 = load i32, ptr %422, align 4, !tbaa !23
  %424 = icmp eq i32 %423, 0
  br i1 %424, label %425, label %452

425:                                              ; preds = %420
  %426 = load ptr, ptr %24, align 8, !tbaa !5
  %427 = getelementptr inbounds %struct.stbrp_rect, ptr %426, i32 0, i32 4
  %428 = load i32, ptr %427, align 4, !tbaa !24
  %429 = icmp eq i32 %428, 0
  br i1 %429, label %430, label %452

430:                                              ; preds = %425
  %431 = load i32, ptr %14, align 4, !tbaa !9
  %432 = icmp sge i32 %431, 0
  br i1 %432, label %433, label %452

433:                                              ; preds = %430
  %434 = load ptr, ptr %8, align 8, !tbaa !5
  %435 = load i32, ptr %11, align 4, !tbaa !9
  %436 = sext i32 %435 to i64
  %437 = getelementptr inbounds %struct.stbtt_pack_range, ptr %434, i64 %436
  %438 = getelementptr inbounds %struct.stbtt_pack_range, ptr %437, i32 0, i32 4
  %439 = load ptr, ptr %438, align 8, !tbaa !25
  %440 = load i32, ptr %14, align 4, !tbaa !9
  %441 = sext i32 %440 to i64
  %442 = getelementptr inbounds %struct.stbtt_packedchar, ptr %439, i64 %441
  %443 = load ptr, ptr %8, align 8, !tbaa !5
  %444 = load i32, ptr %11, align 4, !tbaa !9
  %445 = sext i32 %444 to i64
  %446 = getelementptr inbounds %struct.stbtt_pack_range, ptr %443, i64 %445
  %447 = getelementptr inbounds %struct.stbtt_pack_range, ptr %446, i32 0, i32 4
  %448 = load ptr, ptr %447, align 8, !tbaa !25
  %449 = load i32, ptr %12, align 4, !tbaa !9
  %450 = sext i32 %449 to i64
  %451 = getelementptr inbounds %struct.stbtt_packedchar, ptr %448, i64 %450
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %451, ptr align 4 %442, i64 28, i1 false), !tbaa.struct !45
  br label %453

452:                                              ; preds = %430, %425, %420, %415
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %453

453:                                              ; preds = %452, %433
  br label %454

454:                                              ; preds = %453, %414
  br label %455

455:                                              ; preds = %454, %408
  %456 = load i32, ptr %13, align 4, !tbaa !9
  %457 = add nsw i32 %456, 1
  store i32 %457, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %458

458:                                              ; preds = %455
  %459 = load i32, ptr %12, align 4, !tbaa !9
  %460 = add nsw i32 %459, 1
  store i32 %460, ptr %12, align 4, !tbaa !9
  br label %101, !llvm.loop !47

461:                                              ; preds = %101
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %462

462:                                              ; preds = %461
  %463 = load i32, ptr %11, align 4, !tbaa !9
  %464 = add nsw i32 %463, 1
  store i32 %464, ptr %11, align 4, !tbaa !9
  br label %41, !llvm.loop !49

465:                                              ; preds = %41
  %466 = load i32, ptr %16, align 4, !tbaa !9
  %467 = load ptr, ptr %6, align 8, !tbaa !5
  %468 = getelementptr inbounds %struct.stbtt_pack_context, ptr %467, i32 0, i32 7
  store i32 %466, ptr %468, align 4, !tbaa !11
  %469 = load i32, ptr %17, align 4, !tbaa !9
  %470 = load ptr, ptr %6, align 8, !tbaa !5
  %471 = getelementptr inbounds %struct.stbtt_pack_context, ptr %470, i32 0, i32 8
  store i32 %469, ptr %471, align 8, !tbaa !13
  %472 = load i32, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  ret i32 %472
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 36}
!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, !10, i64 40, !6, i64 48, !6, i64 56}
!13 = !{!12, !10, i64 40}
!14 = !{!15, !16, i64 0}
!15 = !{!"_ZTS16stbtt_pack_range", !16, i64 0, !10, i64 4, !6, i64 8, !10, i64 16, !6, i64 24, !7, i64 32, !7, i64 33}
!16 = !{!"float", !7, i64 0}
!17 = !{!16, !16, i64 0}
!18 = !{!15, !7, i64 32}
!19 = !{!15, !7, i64 33}
!20 = !{!15, !10, i64 16}
!21 = !{!22, !10, i64 20}
!22 = !{!"_ZTS10stbrp_rect", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!23 = !{!22, !10, i64 12}
!24 = !{!22, !10, i64 16}
!25 = !{!15, !6, i64 24}
!26 = !{!15, !6, i64 8}
!27 = !{!15, !10, i64 4}
!28 = !{!12, !10, i64 28}
!29 = !{!22, !10, i64 0}
!30 = !{!22, !10, i64 4}
!31 = !{!12, !6, i64 48}
!32 = !{!12, !10, i64 24}
!33 = !{!34, !35, i64 0}
!34 = !{!"_ZTS16stbtt_packedchar", !35, i64 0, !35, i64 2, !35, i64 4, !35, i64 6, !16, i64 8, !16, i64 12, !16, i64 16, !16, i64 20, !16, i64 24}
!35 = !{!"short", !7, i64 0}
!36 = !{!34, !35, i64 2}
!37 = !{!34, !35, i64 4}
!38 = !{!34, !35, i64 6}
!39 = !{!34, !16, i64 16}
!40 = !{!34, !16, i64 8}
!41 = !{!34, !16, i64 12}
!42 = !{!34, !16, i64 20}
!43 = !{!34, !16, i64 24}
!44 = !{!12, !10, i64 32}
!45 = !{i64 0, i64 2, !46, i64 2, i64 2, !46, i64 4, i64 2, !46, i64 6, i64 2, !46, i64 8, i64 4, !17, i64 12, i64 4, !17, i64 16, i64 4, !17, i64 20, i64 4, !17, i64 24, i64 4, !17}
!46 = !{!35, !35, i64 0}
!47 = distinct !{!47, !48}
!48 = !{!"llvm.loop.mustprogress"}
!49 = distinct !{!49, !48}


; 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_pack_range = type { float, i32, ptr, i32, ptr, i8, i8 }
%struct.stbrp_rect = type { i32, i32, i32, i32, i32, i32 }
%struct.stbtt_packedchar = type { i16, i16, i16, i16, float, float, 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_FindGlyphIndex(ptr noundef, i32 noundef) local_unnamed_addr #1

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

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

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

; 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_MakeGlyphBitmapSubpixel(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, float noundef, float noundef, float noundef, float noundef, i32 noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local range(i32 0, 2) i32 @stbtt_PackFontRangesRenderIntoRects(ptr nocapture noundef %0, ptr noundef %1, ptr nocapture noundef readonly %2, i32 noundef %3, ptr nocapture noundef %4) local_unnamed_addr #1 {
  %6 = alloca i32, align 4
  %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 = getelementptr inbounds i8, ptr %0, i64 36
  %13 = getelementptr inbounds i8, ptr %0, i64 40
  %14 = load <2 x i32>, ptr %12, align 4, !tbaa !5
  %15 = icmp sgt i32 %3, 0
  br i1 %15, label %.lr.ph169, label %._crit_edge170

.lr.ph169:                                        ; preds = %5
  %16 = getelementptr inbounds i8, ptr %0, i64 28
  %17 = getelementptr inbounds i8, ptr %0, i64 48
  %18 = getelementptr inbounds i8, ptr %0, i64 24
  %19 = getelementptr inbounds i8, ptr %0, i64 32
  %wide.trip.count = zext nneg i32 %3 to i64
  br label %20

20:                                               ; preds = %.lr.ph169, %._crit_edge
  %indvars.iv177 = phi i64 [ 0, %.lr.ph169 ], [ %indvars.iv.next178, %._crit_edge ]
  %.0140166 = phi i32 [ 0, %.lr.ph169 ], [ %.1.lcssa, %._crit_edge ]
  %.0141165 = phi i32 [ -1, %.lr.ph169 ], [ %.1142.lcssa, %._crit_edge ]
  %.0143164 = phi i32 [ 1, %.lr.ph169 ], [ %.1144.lcssa, %._crit_edge ]
  %21 = getelementptr inbounds %struct.stbtt_pack_range, ptr %2, i64 %indvars.iv177
  %22 = load float, ptr %21, align 8, !tbaa !9
  %23 = fcmp ogt float %22, 0.000000e+00
  br i1 %23, label %24, label %26

24:                                               ; preds = %20
  %25 = call float @stbtt_ScaleForPixelHeight(ptr noundef %1, float noundef %22)
  br label %29

26:                                               ; preds = %20
  %27 = fneg float %22
  %28 = call float @stbtt_ScaleForMappingEmToPixels(ptr noundef %1, float noundef %27)
  br label %29

29:                                               ; preds = %26, %24
  %30 = phi float [ %25, %24 ], [ %28, %26 ]
  %31 = getelementptr inbounds i8, ptr %21, i64 32
  %32 = load <2 x i8>, ptr %31, align 8, !tbaa !13
  %33 = zext <2 x i8> %32 to <2 x i32>
  store <2 x i32> %33, ptr %12, align 4, !tbaa !5
  %34 = uitofp <2 x i8> %32 to <2 x float>
  %35 = fdiv <2 x float> <float 1.000000e+00, float 1.000000e+00>, %34
  %36 = extractelement <2 x i8> %32, i64 0
  %37 = zext i8 %36 to i32
  %38 = call noundef float @_ZL23stbtt__oversample_shifti(i32 noundef %37)
  %39 = load i32, ptr %13, align 8, !tbaa !14
  %40 = call noundef float @_ZL23stbtt__oversample_shifti(i32 noundef %39)
  %41 = getelementptr inbounds i8, ptr %21, i64 16
  %42 = load i32, ptr %41, align 8, !tbaa !16
  %43 = icmp sgt i32 %42, 0
  br i1 %43, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %29
  %44 = getelementptr inbounds i8, ptr %21, i64 24
  %45 = getelementptr inbounds i8, ptr %21, i64 8
  %46 = getelementptr inbounds i8, ptr %21, i64 4
  %47 = sext i32 %.0140166 to i64
  %48 = insertelement <2 x float> poison, float %38, i64 0
  %49 = insertelement <2 x float> %48, float %40, i64 1
  br label %50

50:                                               ; preds = %.lr.ph, %.thread156
  %indvars.iv172 = phi i64 [ %47, %.lr.ph ], [ %indvars.iv.next173, %.thread156 ]
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %.thread156 ]
  %.1142159 = phi i32 [ %.0141165, %.lr.ph ], [ %.3, %.thread156 ]
  %.1144158 = phi i32 [ %.0143164, %.lr.ph ], [ %.2145, %.thread156 ]
  %51 = getelementptr inbounds %struct.stbrp_rect, ptr %4, i64 %indvars.iv172
  %52 = getelementptr inbounds i8, ptr %51, i64 20
  %53 = load i32, ptr %52, align 4, !tbaa !17
  %.not = icmp eq i32 %53, 0
  br i1 %.not, label %.thread156, label %54

54:                                               ; preds = %50
  %55 = getelementptr inbounds i8, ptr %51, i64 12
  %56 = load i32, ptr %55, align 4, !tbaa !19
  %.not151 = icmp eq i32 %56, 0
  br i1 %.not151, label %167, label %57

57:                                               ; preds = %54
  %58 = getelementptr inbounds i8, ptr %51, i64 16
  %59 = load i32, ptr %58, align 4, !tbaa !20
  %.not152 = icmp eq i32 %59, 0
  br i1 %.not152, label %.thread156, label %60

60:                                               ; preds = %57
  %61 = load ptr, ptr %44, align 8, !tbaa !21
  %62 = getelementptr inbounds %struct.stbtt_packedchar, ptr %61, i64 %indvars.iv
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  %63 = load ptr, ptr %45, align 8, !tbaa !22
  %64 = icmp eq ptr %63, null
  br i1 %64, label %65, label %69

65:                                               ; preds = %60
  %66 = load i32, ptr %46, align 4, !tbaa !23
  %67 = trunc nuw nsw i64 %indvars.iv to i32
  %68 = add nsw i32 %66, %67
  br label %72

69:                                               ; preds = %60
  %70 = getelementptr inbounds i32, ptr %63, i64 %indvars.iv
  %71 = load i32, ptr %70, align 4, !tbaa !5
  br label %72

72:                                               ; preds = %69, %65
  %73 = phi i32 [ %68, %65 ], [ %71, %69 ]
  %74 = call i32 @stbtt_FindGlyphIndex(ptr noundef %1, i32 noundef %73)
  %75 = load i32, ptr %16, align 4, !tbaa !24
  %76 = getelementptr inbounds i8, ptr %51, i64 4
  %77 = load <2 x i32>, ptr %51, align 4, !tbaa !5
  %78 = insertelement <2 x i32> poison, i32 %75, i64 0
  %79 = shufflevector <2 x i32> %78, <2 x i32> poison, <2 x i32> zeroinitializer
  %80 = add nsw <2 x i32> %77, %79
  store <2 x i32> %80, ptr %51, align 4, !tbaa !5
  %81 = load <2 x i32>, ptr %55, align 4, !tbaa !5
  %82 = sub nsw <2 x i32> %81, %79
  store <2 x i32> %82, ptr %55, align 4, !tbaa !5
  call void @stbtt_GetGlyphHMetrics(ptr noundef %1, i32 noundef %74, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %83 = load i32, ptr %12, align 4, !tbaa !25
  %84 = uitofp i32 %83 to float
  %85 = fmul float %30, %84
  %86 = load i32, ptr %13, align 8, !tbaa !14
  %87 = uitofp i32 %86 to float
  %88 = fmul float %30, %87
  call void @stbtt_GetGlyphBitmapBox(ptr noundef %1, i32 noundef %74, float noundef %85, float noundef %88, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11)
  %89 = load ptr, ptr %17, align 8, !tbaa !26
  %90 = load i32, ptr %51, align 4, !tbaa !27
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds i8, ptr %89, i64 %91
  %93 = load i32, ptr %76, align 4, !tbaa !28
  %94 = load i32, ptr %18, align 8, !tbaa !29
  %95 = mul nsw i32 %94, %93
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds i8, ptr %92, i64 %96
  %98 = load i32, ptr %55, align 4, !tbaa !19
  %99 = load i32, ptr %12, align 4, !tbaa !25
  %100 = add i32 %98, 1
  %101 = sub i32 %100, %99
  %102 = load i32, ptr %58, align 4, !tbaa !20
  %103 = load i32, ptr %13, align 8, !tbaa !14
  %104 = add i32 %102, 1
  %105 = sub i32 %104, %103
  %106 = uitofp i32 %99 to float
  %107 = fmul float %30, %106
  %108 = uitofp i32 %103 to float
  %109 = fmul float %30, %108
  call void @stbtt_MakeGlyphBitmapSubpixel(ptr noundef %1, ptr noundef %97, i32 noundef %101, i32 noundef %105, i32 noundef %94, float noundef %107, float noundef %109, float noundef 0.000000e+00, float noundef 0.000000e+00, i32 noundef %74)
  %110 = load i32, ptr %12, align 4, !tbaa !25
  %111 = icmp ugt i32 %110, 1
  br i1 %111, label %112, label %124

112:                                              ; preds = %72
  %113 = load ptr, ptr %17, align 8, !tbaa !26
  %114 = load i32, ptr %51, align 4, !tbaa !27
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds i8, ptr %113, i64 %115
  %117 = load i32, ptr %76, align 4, !tbaa !28
  %118 = load i32, ptr %18, align 8, !tbaa !29
  %119 = mul nsw i32 %118, %117
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds i8, ptr %116, i64 %120
  %122 = load i32, ptr %55, align 4, !tbaa !19
  %123 = load i32, ptr %58, align 4, !tbaa !20
  call void @_ZL18stbtt__h_prefilterPhiiij(ptr noundef %121, i32 noundef %122, i32 noundef %123, i32 noundef %118, i32 noundef %110)
  br label %124

124:                                              ; preds = %112, %72
  %125 = load i32, ptr %13, align 8, !tbaa !14
  %126 = icmp ugt i32 %125, 1
  br i1 %126, label %127, label %139

127:                                              ; preds = %124
  %128 = load ptr, ptr %17, align 8, !tbaa !26
  %129 = load i32, ptr %51, align 4, !tbaa !27
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds i8, ptr %128, i64 %130
  %132 = load i32, ptr %76, align 4, !tbaa !28
  %133 = load i32, ptr %18, align 8, !tbaa !29
  %134 = mul nsw i32 %133, %132
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds i8, ptr %131, i64 %135
  %137 = load i32, ptr %55, align 4, !tbaa !19
  %138 = load i32, ptr %58, align 4, !tbaa !20
  call void @_ZL18stbtt__v_prefilterPhiiij(ptr noundef %136, i32 noundef %137, i32 noundef %138, i32 noundef %133, i32 noundef %125)
  br label %139

139:                                              ; preds = %127, %124
  %140 = getelementptr inbounds i8, ptr %62, i64 2
  %141 = getelementptr inbounds i8, ptr %62, i64 4
  %142 = load i32, ptr %6, align 4, !tbaa !5
  %143 = sitofp i32 %142 to float
  %144 = fmul float %30, %143
  %145 = getelementptr inbounds i8, ptr %62, i64 16
  store float %144, ptr %145, align 4, !tbaa !30
  %146 = load i32, ptr %8, align 4, !tbaa !5
  %147 = getelementptr inbounds i8, ptr %62, i64 8
  %148 = load i32, ptr %9, align 4, !tbaa !5
  %149 = insertelement <2 x i32> poison, i32 %146, i64 0
  %150 = insertelement <2 x i32> %149, i32 %148, i64 1
  %151 = sitofp <2 x i32> %150 to <2 x float>
  %152 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %151, <2 x float> %35, <2 x float> %49)
  store <2 x float> %152, ptr %147, align 4, !tbaa !33
  %153 = getelementptr inbounds i8, ptr %62, i64 20
  %154 = load <2 x i32>, ptr %55, align 4, !tbaa !5
  %155 = load <2 x i32>, ptr %51, align 4, !tbaa !5
  %156 = bitcast <2 x i32> %155 to <4 x i16>
  %157 = extractelement <4 x i16> %156, i64 0
  store i16 %157, ptr %62, align 4, !tbaa !34
  %158 = bitcast <2 x i32> %155 to <4 x i16>
  %159 = extractelement <4 x i16> %158, i64 2
  store i16 %159, ptr %140, align 2, !tbaa !35
  %160 = add nsw <2 x i32> %154, %155
  %161 = trunc <2 x i32> %160 to <2 x i16>
  store <2 x i16> %161, ptr %141, align 4, !tbaa !36
  %162 = add nsw <2 x i32> %150, %154
  %163 = sitofp <2 x i32> %162 to <2 x float>
  %164 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %163, <2 x float> %35, <2 x float> %49)
  store <2 x float> %164, ptr %153, align 4, !tbaa !33
  %165 = icmp eq i32 %74, 0
  %166 = trunc nuw nsw i64 %indvars.iv to i32
  %spec.select = select i1 %165, i32 %166, i32 %.1142159
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  br label %.thread156

167:                                              ; preds = %54
  %168 = load i32, ptr %19, align 8, !tbaa !37
  %.not153.not = icmp eq i32 %168, 0
  br i1 %.not153.not, label %169, label %.thread156

169:                                              ; preds = %167
  %170 = getelementptr inbounds i8, ptr %51, i64 16
  %171 = load i32, ptr %170, align 4, !tbaa !20
  %172 = icmp eq i32 %171, 0
  %173 = icmp sgt i32 %.1142159, -1
  %or.cond = select i1 %172, i1 %173, i1 false
  br i1 %or.cond, label %174, label %.thread156

174:                                              ; preds = %169
  %175 = load ptr, ptr %44, align 8, !tbaa !21
  %176 = zext nneg i32 %.1142159 to i64
  %177 = getelementptr inbounds %struct.stbtt_packedchar, ptr %175, i64 %176
  %178 = getelementptr inbounds %struct.stbtt_packedchar, ptr %175, i64 %indvars.iv
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(28) %178, ptr noundef nonnull align 4 dereferenceable(28) %177, i64 28, i1 false), !tbaa.struct !38
  br label %.thread156

.thread156:                                       ; preds = %57, %167, %50, %169, %174, %139
  %.2145 = phi i32 [ %.1144158, %139 ], [ %.1144158, %174 ], [ 0, %167 ], [ 0, %169 ], [ 0, %50 ], [ 0, %57 ]
  %.3 = phi i32 [ %spec.select, %139 ], [ %.1142159, %174 ], [ %.1142159, %167 ], [ %.1142159, %169 ], [ %.1142159, %50 ], [ %.1142159, %57 ]
  %indvars.iv.next173 = add nsw i64 %indvars.iv172, 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %179 = load i32, ptr %41, align 8, !tbaa !16
  %180 = sext i32 %179 to i64
  %181 = icmp slt i64 %indvars.iv.next, %180
  br i1 %181, label %50, label %._crit_edge.loopexit, !llvm.loop !39

._crit_edge.loopexit:                             ; preds = %.thread156
  %182 = trunc nsw i64 %indvars.iv.next173 to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %29
  %.1144.lcssa = phi i32 [ %.0143164, %29 ], [ %.2145, %._crit_edge.loopexit ]
  %.1142.lcssa = phi i32 [ %.0141165, %29 ], [ %.3, %._crit_edge.loopexit ]
  %.1.lcssa = phi i32 [ %.0140166, %29 ], [ %182, %._crit_edge.loopexit ]
  %indvars.iv.next178 = add nuw nsw i64 %indvars.iv177, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next178, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge170, label %20, !llvm.loop !41

._crit_edge170:                                   ; preds = %._crit_edge, %5
  %.0143.lcssa = phi i32 [ 1, %5 ], [ %.1144.lcssa, %._crit_edge ]
  store <2 x i32> %14, ptr %12, align 4, !tbaa !5
  ret i32 %.0143.lcssa
}

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

; 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>) #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: readwrite) }
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 = !{!"_ZTS16stbtt_pack_range", !11, i64 0, !6, i64 4, !12, i64 8, !6, i64 16, !12, i64 24, !7, i64 32, !7, i64 33}
!11 = !{!"float", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !6, i64 40}
!15 = !{!"_ZTS18stbtt_pack_context", !12, i64 0, !12, i64 8, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !12, i64 48, !12, i64 56}
!16 = !{!10, !6, i64 16}
!17 = !{!18, !6, i64 20}
!18 = !{!"_ZTS10stbrp_rect", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20}
!19 = !{!18, !6, i64 12}
!20 = !{!18, !6, i64 16}
!21 = !{!10, !12, i64 24}
!22 = !{!10, !12, i64 8}
!23 = !{!10, !6, i64 4}
!24 = !{!15, !6, i64 28}
!25 = !{!15, !6, i64 36}
!26 = !{!15, !12, i64 48}
!27 = !{!18, !6, i64 0}
!28 = !{!18, !6, i64 4}
!29 = !{!15, !6, i64 24}
!30 = !{!31, !11, i64 16}
!31 = !{!"_ZTS16stbtt_packedchar", !32, i64 0, !32, i64 2, !32, i64 4, !32, i64 6, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24}
!32 = !{!"short", !7, i64 0}
!33 = !{!11, !11, i64 0}
!34 = !{!31, !32, i64 0}
!35 = !{!31, !32, i64 2}
!36 = !{!32, !32, i64 0}
!37 = !{!15, !6, i64 32}
!38 = !{i64 0, i64 2, !36, i64 2, i64 2, !36, i64 4, i64 2, !36, i64 6, i64 2, !36, i64 8, i64 4, !33, i64 12, i64 4, !33, i64 16, i64 4, !33, i64 20, i64 4, !33, i64 24, i64 4, !33}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = distinct !{!41, !40}


; Effective O3 passes: ADCEPass,ConstraintEliminationPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass