; LLVM IR from libtcod/libtcod :: src/vendor (stb)

; 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: nounwind uwtable
declare dso_local i32 @stbtt_FindGlyphIndex(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: nounwind uwtable
declare dso_local void @stbtt_GetGlyphHMetrics(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #0

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

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

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

; Function Attrs: nounwind 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: nounwind 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: nounwind uwtable
declare hidden void @stbtt__h_prefilter(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @stbtt__v_prefilter(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden float @stbtt__oversample_shift(i32 noundef) #0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

403:                                              ; preds = %123, %118, %109
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %404

404:                                              ; preds = %403, %328
  %405 = load i32, ptr %13, align 4, !tbaa !9
  %406 = add nsw i32 %405, 1
  store i32 %406, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  br label %407

407:                                              ; preds = %404
  %408 = load i32, ptr %12, align 4, !tbaa !9
  %409 = add nsw i32 %408, 1
  store i32 %409, ptr %12, align 4, !tbaa !9
  br label %100, !llvm.loop !44

410:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  br label %411

411:                                              ; preds = %410
  %412 = load i32, ptr %11, align 4, !tbaa !9
  %413 = add nsw i32 %412, 1
  store i32 %413, ptr %11, align 4, !tbaa !9
  br label %40, !llvm.loop !46

414:                                              ; preds = %40
  %415 = load i32, ptr %15, align 4, !tbaa !9
  %416 = load ptr, ptr %6, align 8, !tbaa !5
  %417 = getelementptr inbounds %struct.stbtt_pack_context, ptr %416, i32 0, i32 7
  store i32 %415, ptr %417, align 4, !tbaa !11
  %418 = load i32, ptr %16, align 4, !tbaa !9
  %419 = load ptr, ptr %6, align 8, !tbaa !5
  %420 = getelementptr inbounds %struct.stbtt_pack_context, ptr %419, i32 0, i32 8
  store i32 %418, ptr %420, align 8, !tbaa !13
  %421 = load i32, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  ret i32 %421
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 36}
!12 = !{!"stbtt_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 = !{!"", !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 = !{!"stbrp_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 = !{!"", !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 = distinct !{!44, !45}
!45 = !{!"llvm.loop.mustprogress"}
!46 = distinct !{!46, !45}


; 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: nounwind uwtable
declare dso_local i32 @stbtt_FindGlyphIndex(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: nounwind uwtable
declare dso_local void @stbtt_GetGlyphHMetrics(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind 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: nounwind 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: nounwind uwtable
declare hidden void @stbtt__h_prefilter(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @stbtt__v_prefilter(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden float @stbtt__oversample_shift(i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind 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 #0 {
  %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.ph146, label %._crit_edge147

.lr.ph146:                                        ; 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
  %wide.trip.count = zext nneg i32 %3 to i64
  br label %19

19:                                               ; preds = %.lr.ph146, %._crit_edge
  %indvars.iv154 = phi i64 [ 0, %.lr.ph146 ], [ %indvars.iv.next155, %._crit_edge ]
  %.0126143 = phi i32 [ 0, %.lr.ph146 ], [ %.1.lcssa, %._crit_edge ]
  %.0127142 = phi i32 [ 1, %.lr.ph146 ], [ %.1128.lcssa, %._crit_edge ]
  %20 = getelementptr inbounds %struct.stbtt_pack_range, ptr %2, i64 %indvars.iv154
  %21 = load float, ptr %20, align 8, !tbaa !9
  %22 = fcmp ogt float %21, 0.000000e+00
  br i1 %22, label %23, label %25

23:                                               ; preds = %19
  %24 = call float @stbtt_ScaleForPixelHeight(ptr noundef %1, float noundef %21)
  br label %28

25:                                               ; preds = %19
  %26 = fneg float %21
  %27 = call float @stbtt_ScaleForMappingEmToPixels(ptr noundef %1, float noundef %26)
  br label %28

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

.lr.ph:                                           ; preds = %28
  %43 = getelementptr inbounds i8, ptr %20, i64 24
  %44 = getelementptr inbounds i8, ptr %20, i64 8
  %45 = getelementptr inbounds i8, ptr %20, i64 4
  %46 = sext i32 %.0126143 to i64
  %47 = insertelement <2 x float> poison, float %37, i64 0
  %48 = insertelement <2 x float> %47, float %39, i64 1
  br label %49

49:                                               ; preds = %.lr.ph, %165
  %50 = phi i32 [ %41, %.lr.ph ], [ %166, %165 ]
  %indvars.iv149 = phi i64 [ %46, %.lr.ph ], [ %indvars.iv.next150, %165 ]
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %165 ]
  %.1128137 = phi i32 [ %.0127142, %.lr.ph ], [ %.2, %165 ]
  %51 = getelementptr inbounds %struct.stbrp_rect, ptr %4, i64 %indvars.iv149
  %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 %165, label %54

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

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

60:                                               ; preds = %57
  %61 = load ptr, ptr %43, 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) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #3
  %63 = load ptr, ptr %44, align 8, !tbaa !22
  %64 = icmp eq ptr %63, null
  br i1 %64, label %65, label %69

65:                                               ; preds = %60
  %66 = load i32, ptr %45, 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 %29, %84
  %86 = load i32, ptr %13, align 8, !tbaa !14
  %87 = uitofp i32 %86 to float
  %88 = fmul float %29, %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 %29, %106
  %108 = uitofp i32 %103 to float
  %109 = fmul float %29, %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 @stbtt__h_prefilter(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 @stbtt__v_prefilter(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 %29, %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> %34, <2 x float> %48)
  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> %34, <2 x float> %48)
  store <2 x float> %164, ptr %153, align 4, !tbaa !33
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
  %.pre = load i32, ptr %40, align 8, !tbaa !16
  br label %165

165:                                              ; preds = %49, %54, %57, %139
  %166 = phi i32 [ %.pre, %139 ], [ %50, %57 ], [ %50, %54 ], [ %50, %49 ]
  %.2 = phi i32 [ %.1128137, %139 ], [ 0, %57 ], [ 0, %54 ], [ 0, %49 ]
  %indvars.iv.next150 = add nsw i64 %indvars.iv149, 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %167 = sext i32 %166 to i64
  %168 = icmp slt i64 %indvars.iv.next, %167
  br i1 %168, label %49, label %._crit_edge.loopexit, !llvm.loop !37

._crit_edge.loopexit:                             ; preds = %165
  %169 = trunc nsw i64 %indvars.iv.next150 to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %28
  %.1128.lcssa = phi i32 [ %.0127142, %28 ], [ %.2, %._crit_edge.loopexit ]
  %.1.lcssa = phi i32 [ %.0126143, %28 ], [ %169, %._crit_edge.loopexit ]
  %indvars.iv.next155 = add nuw nsw i64 %indvars.iv154, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next155, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge147, label %19, !llvm.loop !39

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"", !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 = !{!"stbtt_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 = !{!"stbrp_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 = !{!"", !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 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"}
!39 = distinct !{!39, !38}


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