; LLVM IR from hadryansalles/Luz :: deps/imgui/imgui_draw.ll (ZN6ImFont16BuildLookupTableEv)

; 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.ImFont = type <{ %struct.ImVector.6, float, float, %struct.ImVector.1, %struct.ImVector.7, ptr, ptr, ptr, i16, i16, i16, i16, float, float, i8, [3 x i8], float, float, float, i32, [2 x i8], [2 x i8] }>
%struct.ImVector.6 = type { i32, i32, ptr }
%struct.ImVector.1 = type { i32, i32, ptr }
%struct.ImVector.7 = type { i32, i32, ptr }
%struct.ImFontGlyph = type { i32, float, float, float, float, float, float, float, float, float }

@.str.1 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [48 x i8], align 1
@__PRETTY_FUNCTION__._ZN6ImFont16BuildLookupTableEv = external hidden unnamed_addr constant [32 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [21 x i8], align 1
@__const._ZN6ImFont16BuildLookupTableEv.fallback_chars = external hidden unnamed_addr constant [3 x i16], align 2
@__const._ZN6ImFont16BuildLookupTableEv.ellipsis_chars = external hidden unnamed_addr constant [2 x i16], align 2
@__const._ZN6ImFont16BuildLookupTableEv.dots_chars = external hidden unnamed_addr constant [2 x i16], align 2

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorItE5clearEv(ptr noundef nonnull align 8 dereferenceable(16)) #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL5ImMaxIiET_S0_S0_(i32 noundef, i32 noundef) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 2 dereferenceable(2) ptr @_ZN8ImVectorItEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6ImFont16BuildLookupTableEv(ptr noundef nonnull align 8 dereferenceable(118) %0) #7 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca [3 x i16], align 2
  %10 = alloca i32, align 4
  %11 = alloca [2 x i16], align 2
  %12 = alloca [2 x i16], align 2
  %13 = alloca i16, align 2
  %14 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %15 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #9
  store i32 0, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #9
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %16

16:                                               ; preds = %31, %1
  %17 = load i32, ptr %4, align 4, !tbaa !9
  %18 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 4
  %19 = getelementptr inbounds %struct.ImVector.7, ptr %18, i32 0, i32 0
  %20 = load i32, ptr %19, align 8, !tbaa !11
  %21 = icmp ne i32 %17, %20
  br i1 %21, label %23, label %22

22:                                               ; preds = %16
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #9
  br label %34

23:                                               ; preds = %16
  %24 = load i32, ptr %3, align 4, !tbaa !9
  %25 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 4
  %26 = load i32, ptr %4, align 4, !tbaa !9
  %27 = call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphEixEi(ptr noundef nonnull align 8 dereferenceable(16) %25, i32 noundef %26)
  %28 = load i32, ptr %27, align 4
  %29 = lshr i32 %28, 2
  %30 = call noundef i32 @_ZL5ImMaxIiET_S0_S0_(i32 noundef %24, i32 noundef %29)
  store i32 %30, ptr %3, align 4, !tbaa !9
  br label %31

31:                                               ; preds = %23
  %32 = load i32, ptr %4, align 4, !tbaa !9
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr %4, align 4, !tbaa !9
  br label %16, !llvm.loop !19

34:                                               ; preds = %22
  %35 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 4
  %36 = getelementptr inbounds %struct.ImVector.7, ptr %35, i32 0, i32 0
  %37 = load i32, ptr %36, align 8, !tbaa !11
  %38 = icmp sgt i32 %37, 0
  br i1 %38, label %39, label %40

39:                                               ; preds = %34
  br label %40

40:                                               ; preds = %39, %34
  %41 = phi i1 [ false, %34 ], [ true, %39 ]
  br i1 %41, label %42, label %43

42:                                               ; preds = %40
  br label %45

43:                                               ; preds = %40
  call void @__assert_fail(ptr noundef @.str.43, ptr noundef @.str.1, i32 noundef 3307, ptr noundef @__PRETTY_FUNCTION__._ZN6ImFont16BuildLookupTableEv) #10
  unreachable

44:                                               ; No predecessors!
  br label %45

45:                                               ; preds = %44, %42
  %46 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 4
  %47 = getelementptr inbounds %struct.ImVector.7, ptr %46, i32 0, i32 0
  %48 = load i32, ptr %47, align 8, !tbaa !11
  %49 = icmp slt i32 %48, 65535
  br i1 %49, label %50, label %51

50:                                               ; preds = %45
  br label %53

51:                                               ; preds = %45
  call void @__assert_fail(ptr noundef @.str.44, ptr noundef @.str.1, i32 noundef 3308, ptr noundef @__PRETTY_FUNCTION__._ZN6ImFont16BuildLookupTableEv) #10
  unreachable

52:                                               ; No predecessors!
  br label %53

53:                                               ; preds = %52, %50
  %54 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 0
  call void @_ZN8ImVectorIfE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %54)
  %55 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 3
  call void @_ZN8ImVectorItE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %55)
  %56 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 14
  store i8 0, ptr %56, align 8, !tbaa !21
  %57 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 20
  %58 = getelementptr inbounds [2 x i8], ptr %57, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 4 %58, i8 0, i64 2, i1 false)
  %59 = load i32, ptr %3, align 4, !tbaa !9
  %60 = add nsw i32 %59, 1
  call void @_ZN6ImFont9GrowIndexEi(ptr noundef nonnull align 8 dereferenceable(118) %15, i32 noundef %60)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %61

61:                                               ; preds = %101, %53
  %62 = load i32, ptr %5, align 4, !tbaa !9
  %63 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 4
  %64 = getelementptr inbounds %struct.ImVector.7, ptr %63, i32 0, i32 0
  %65 = load i32, ptr %64, align 8, !tbaa !11
  %66 = icmp slt i32 %62, %65
  br i1 %66, label %68, label %67

67:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  br label %104

68:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #9
  %69 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 4
  %70 = load i32, ptr %5, align 4, !tbaa !9
  %71 = call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphEixEi(ptr noundef nonnull align 8 dereferenceable(16) %69, i32 noundef %70)
  %72 = load i32, ptr %71, align 4
  %73 = lshr i32 %72, 2
  store i32 %73, ptr %6, align 4, !tbaa !9
  %74 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 4
  %75 = load i32, ptr %5, align 4, !tbaa !9
  %76 = call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphEixEi(ptr noundef nonnull align 8 dereferenceable(16) %74, i32 noundef %75)
  %77 = getelementptr inbounds %struct.ImFontGlyph, ptr %76, i32 0, i32 1
  %78 = load float, ptr %77, align 4, !tbaa !22
  %79 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 0
  %80 = load i32, ptr %6, align 4, !tbaa !9
  %81 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorIfEixEi(ptr noundef nonnull align 8 dereferenceable(16) %79, i32 noundef %80)
  store float %78, ptr %81, align 4, !tbaa !24
  %82 = load i32, ptr %5, align 4, !tbaa !9
  %83 = trunc i32 %82 to i16
  %84 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 3
  %85 = load i32, ptr %6, align 4, !tbaa !9
  %86 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZN8ImVectorItEixEi(ptr noundef nonnull align 8 dereferenceable(16) %84, i32 noundef %85)
  store i16 %83, ptr %86, align 2, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  %87 = load i32, ptr %6, align 4, !tbaa !9
  %88 = sdiv i32 %87, 4096
  store i32 %88, ptr %7, align 4, !tbaa !9
  %89 = load i32, ptr %7, align 4, !tbaa !9
  %90 = and i32 %89, 7
  %91 = shl i32 1, %90
  %92 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 20
  %93 = load i32, ptr %7, align 4, !tbaa !9
  %94 = ashr i32 %93, 3
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [2 x i8], ptr %92, i64 0, i64 %95
  %97 = load i8, ptr %96, align 1, !tbaa !26
  %98 = zext i8 %97 to i32
  %99 = or i32 %98, %91
  %100 = trunc i32 %99 to i8
  store i8 %100, ptr %96, align 1, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  br label %101

101:                                              ; preds = %68
  %102 = load i32, ptr %5, align 4, !tbaa !9
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %5, align 4, !tbaa !9
  br label %61, !llvm.loop !27

104:                                              ; preds = %67
  %105 = call noundef ptr @_ZNK6ImFont9FindGlyphEt(ptr noundef nonnull align 8 dereferenceable(118) %15, i16 noundef zeroext 32)
  %106 = icmp ne ptr %105, null
  br i1 %106, label %107, label %150

107:                                              ; preds = %104
  %108 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 4
  %109 = call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %108)
  %110 = load i32, ptr %109, align 4
  %111 = lshr i32 %110, 2
  %112 = icmp ne i32 %111, 9
  br i1 %112, label %113, label %119

113:                                              ; preds = %107
  %114 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 4
  %115 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 4
  %116 = getelementptr inbounds %struct.ImVector.7, ptr %115, i32 0, i32 0
  %117 = load i32, ptr %116, align 8, !tbaa !11
  %118 = add nsw i32 %117, 1
  call void @_ZN8ImVectorI11ImFontGlyphE6resizeEi(ptr noundef nonnull align 8 dereferenceable(16) %114, i32 noundef %118)
  br label %119

119:                                              ; preds = %113, %107
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  %120 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 4
  %121 = call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %120)
  store ptr %121, ptr %8, align 8, !tbaa !5
  %122 = call noundef ptr @_ZNK6ImFont9FindGlyphEt(ptr noundef nonnull align 8 dereferenceable(118) %15, i16 noundef zeroext 32)
  %123 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %123, ptr align 4 %122, i64 40, i1 false), !tbaa.struct !28
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  %125 = load i32, ptr %124, align 4
  %126 = and i32 %125, 3
  %127 = or i32 %126, 36
  store i32 %127, ptr %124, align 4
  %128 = load ptr, ptr %8, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.ImFontGlyph, ptr %128, i32 0, i32 1
  %130 = load float, ptr %129, align 4, !tbaa !22
  %131 = fmul float %130, 4.000000e+00
  store float %131, ptr %129, align 4, !tbaa !22
  %132 = load ptr, ptr %8, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.ImFontGlyph, ptr %132, i32 0, i32 1
  %134 = load float, ptr %133, align 4, !tbaa !22
  %135 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 0
  %136 = load ptr, ptr %8, align 8, !tbaa !5
  %137 = load i32, ptr %136, align 4
  %138 = lshr i32 %137, 2
  %139 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorIfEixEi(ptr noundef nonnull align 8 dereferenceable(16) %135, i32 noundef %138)
  store float %134, ptr %139, align 4, !tbaa !24
  %140 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 4
  %141 = getelementptr inbounds %struct.ImVector.7, ptr %140, i32 0, i32 0
  %142 = load i32, ptr %141, align 8, !tbaa !11
  %143 = sub nsw i32 %142, 1
  %144 = trunc i32 %143 to i16
  %145 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 3
  %146 = load ptr, ptr %8, align 8, !tbaa !5
  %147 = load i32, ptr %146, align 4
  %148 = lshr i32 %147, 2
  %149 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZN8ImVectorItEixEi(ptr noundef nonnull align 8 dereferenceable(16) %145, i32 noundef %148)
  store i16 %144, ptr %149, align 2, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  br label %150

150:                                              ; preds = %119, %104
  call void @_ZN6ImFont15SetGlyphVisibleEtb(ptr noundef nonnull align 8 dereferenceable(118) %15, i16 noundef zeroext 32, i1 noundef zeroext false)
  call void @_ZN6ImFont15SetGlyphVisibleEtb(ptr noundef nonnull align 8 dereferenceable(118) %15, i16 noundef zeroext 9, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 6, ptr %9) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %9, ptr align 2 @__const._ZN6ImFont16BuildLookupTableEv.fallback_chars, i64 6, i1 false)
  %151 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 9
  %152 = load i16, ptr %151, align 2, !tbaa !29
  %153 = call noundef ptr @_ZNK6ImFont19FindGlyphNoFallbackEt(ptr noundef nonnull align 8 dereferenceable(118) %15, i16 noundef zeroext %152)
  %154 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 5
  store ptr %153, ptr %154, align 8, !tbaa !30
  %155 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 5
  %156 = load ptr, ptr %155, align 8, !tbaa !30
  %157 = icmp eq ptr %156, null
  br i1 %157, label %158, label %180

158:                                              ; preds = %150
  %159 = getelementptr inbounds [3 x i16], ptr %9, i64 0, i64 0
  %160 = call noundef zeroext i16 @_ZL22FindFirstExistingGlyphP6ImFontPKti(ptr noundef %15, ptr noundef %159, i32 noundef 3)
  %161 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 9
  store i16 %160, ptr %161, align 2, !tbaa !29
  %162 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 9
  %163 = load i16, ptr %162, align 2, !tbaa !29
  %164 = call noundef ptr @_ZNK6ImFont19FindGlyphNoFallbackEt(ptr noundef nonnull align 8 dereferenceable(118) %15, i16 noundef zeroext %163)
  %165 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 5
  store ptr %164, ptr %165, align 8, !tbaa !30
  %166 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 5
  %167 = load ptr, ptr %166, align 8, !tbaa !30
  %168 = icmp eq ptr %167, null
  br i1 %168, label %169, label %179

169:                                              ; preds = %158
  %170 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 4
  %171 = call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %170)
  %172 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 5
  store ptr %171, ptr %172, align 8, !tbaa !30
  %173 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 5
  %174 = load ptr, ptr %173, align 8, !tbaa !30
  %175 = load i32, ptr %174, align 4
  %176 = lshr i32 %175, 2
  %177 = trunc i32 %176 to i16
  %178 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 9
  store i16 %177, ptr %178, align 2, !tbaa !29
  br label %179

179:                                              ; preds = %169, %158
  br label %180

180:                                              ; preds = %179, %150
  %181 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 5
  %182 = load ptr, ptr %181, align 8, !tbaa !30
  %183 = getelementptr inbounds %struct.ImFontGlyph, ptr %182, i32 0, i32 1
  %184 = load float, ptr %183, align 4, !tbaa !22
  %185 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 1
  store float %184, ptr %185, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %186

186:                                              ; preds = %205, %180
  %187 = load i32, ptr %10, align 4, !tbaa !9
  %188 = load i32, ptr %3, align 4, !tbaa !9
  %189 = add nsw i32 %188, 1
  %190 = icmp slt i32 %187, %189
  br i1 %190, label %192, label %191

191:                                              ; preds = %186
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  br label %208

192:                                              ; preds = %186
  %193 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 0
  %194 = load i32, ptr %10, align 4, !tbaa !9
  %195 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorIfEixEi(ptr noundef nonnull align 8 dereferenceable(16) %193, i32 noundef %194)
  %196 = load float, ptr %195, align 4, !tbaa !24
  %197 = fcmp olt float %196, 0.000000e+00
  br i1 %197, label %198, label %204

198:                                              ; preds = %192
  %199 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 1
  %200 = load float, ptr %199, align 8, !tbaa !31
  %201 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 0
  %202 = load i32, ptr %10, align 4, !tbaa !9
  %203 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorIfEixEi(ptr noundef nonnull align 8 dereferenceable(16) %201, i32 noundef %202)
  store float %200, ptr %203, align 4, !tbaa !24
  br label %204

204:                                              ; preds = %198, %192
  br label %205

205:                                              ; preds = %204
  %206 = load i32, ptr %10, align 4, !tbaa !9
  %207 = add nsw i32 %206, 1
  store i32 %207, ptr %10, align 4, !tbaa !9
  br label %186, !llvm.loop !32

208:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %11, ptr align 2 @__const._ZN6ImFont16BuildLookupTableEv.ellipsis_chars, i64 4, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %12, ptr align 2 @__const._ZN6ImFont16BuildLookupTableEv.dots_chars, i64 4, i1 false)
  %209 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 10
  %210 = load i16, ptr %209, align 4, !tbaa !33
  %211 = zext i16 %210 to i32
  %212 = icmp eq i32 %211, 65535
  br i1 %212, label %213, label %217

213:                                              ; preds = %208
  %214 = getelementptr inbounds [2 x i16], ptr %11, i64 0, i64 0
  %215 = call noundef zeroext i16 @_ZL22FindFirstExistingGlyphP6ImFontPKti(ptr noundef %15, ptr noundef %214, i32 noundef 2)
  %216 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 10
  store i16 %215, ptr %216, align 4, !tbaa !33
  br label %217

217:                                              ; preds = %213, %208
  call void @llvm.lifetime.start.p0(i64 2, ptr %13) #9
  %218 = getelementptr inbounds [2 x i16], ptr %12, i64 0, i64 0
  %219 = call noundef zeroext i16 @_ZL22FindFirstExistingGlyphP6ImFontPKti(ptr noundef %15, ptr noundef %218, i32 noundef 2)
  store i16 %219, ptr %13, align 2, !tbaa !25
  %220 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 10
  %221 = load i16, ptr %220, align 4, !tbaa !33
  %222 = zext i16 %221 to i32
  %223 = icmp ne i32 %222, 65535
  br i1 %223, label %224, label %233

224:                                              ; preds = %217
  %225 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 11
  store i16 1, ptr %225, align 2, !tbaa !34
  %226 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 10
  %227 = load i16, ptr %226, align 4, !tbaa !33
  %228 = call noundef ptr @_ZNK6ImFont9FindGlyphEt(ptr noundef nonnull align 8 dereferenceable(118) %15, i16 noundef zeroext %227)
  %229 = getelementptr inbounds %struct.ImFontGlyph, ptr %228, i32 0, i32 4
  %230 = load float, ptr %229, align 4, !tbaa !35
  %231 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 13
  store float %230, ptr %231, align 4, !tbaa !36
  %232 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 12
  store float %230, ptr %232, align 8, !tbaa !37
  br label %257

233:                                              ; preds = %217
  %234 = load i16, ptr %13, align 2, !tbaa !25
  %235 = zext i16 %234 to i32
  %236 = icmp ne i32 %235, 65535
  br i1 %236, label %237, label %256

237:                                              ; preds = %233
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  %238 = load i16, ptr %13, align 2, !tbaa !25
  %239 = call noundef ptr @_ZNK6ImFont9FindGlyphEt(ptr noundef nonnull align 8 dereferenceable(118) %15, i16 noundef zeroext %238)
  store ptr %239, ptr %14, align 8, !tbaa !5
  %240 = load i16, ptr %13, align 2, !tbaa !25
  %241 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 10
  store i16 %240, ptr %241, align 4, !tbaa !33
  %242 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 11
  store i16 3, ptr %242, align 2, !tbaa !34
  %243 = load ptr, ptr %14, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.ImFontGlyph, ptr %243, i32 0, i32 4
  %245 = load float, ptr %244, align 4, !tbaa !35
  %246 = load ptr, ptr %14, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.ImFontGlyph, ptr %246, i32 0, i32 2
  %248 = load float, ptr %247, align 4, !tbaa !38
  %249 = fsub float %245, %248
  %250 = fadd float %249, 1.000000e+00
  %251 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 13
  store float %250, ptr %251, align 4, !tbaa !36
  %252 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 13
  %253 = load float, ptr %252, align 4, !tbaa !36
  %254 = call float @llvm.fmuladd.f32(float %253, float 3.000000e+00, float -1.000000e+00)
  %255 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 12
  store float %254, ptr %255, align 8, !tbaa !37
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  br label %256

256:                                              ; preds = %237, %233
  br label %257

257:                                              ; preds = %256, %224
  call void @llvm.lifetime.end.p0(i64 2, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 6, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #9
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorIfE5clearEv(ptr noundef nonnull align 8 dereferenceable(16)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImFont9GrowIndexEi(ptr noundef nonnull align 8 dereferenceable(118), i32 noundef) #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorIfEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6ImFont9FindGlyphEt(ptr noundef nonnull align 8 dereferenceable(118), i16 noundef zeroext) #8 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphE4backEv(ptr noundef nonnull align 8 dereferenceable(16)) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorI11ImFontGlyphE6resizeEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImFont15SetGlyphVisibleEtb(ptr noundef nonnull align 8 dereferenceable(118), i16 noundef zeroext, i1 noundef zeroext) #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6ImFont19FindGlyphNoFallbackEt(ptr noundef nonnull align 8 dereferenceable(118), i16 noundef zeroext) #8 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i16 @_ZL22FindFirstExistingGlyphP6ImFontPKti(ptr noundef, ptr noundef, i32 noundef) #8

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { inlinehint 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 #7 = { 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 #8 = { 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 #9 = { nounwind }
attributes #10 = { noreturn 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 40}
!12 = !{!"_ZTS6ImFont", !13, i64 0, !14, i64 16, !14, i64 20, !15, i64 24, !16, i64 40, !6, i64 56, !6, i64 64, !6, i64 72, !17, i64 80, !17, i64 82, !17, i64 84, !17, i64 86, !14, i64 88, !14, i64 92, !18, i64 96, !14, i64 100, !14, i64 104, !14, i64 108, !10, i64 112, !7, i64 116}
!13 = !{!"_ZTS8ImVectorIfE", !10, i64 0, !10, i64 4, !6, i64 8}
!14 = !{!"float", !7, i64 0}
!15 = !{!"_ZTS8ImVectorItE", !10, i64 0, !10, i64 4, !6, i64 8}
!16 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !10, i64 0, !10, i64 4, !6, i64 8}
!17 = !{!"short", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!12, !18, i64 96}
!22 = !{!23, !14, i64 4}
!23 = !{!"_ZTS11ImFontGlyph", !10, i64 0, !10, i64 0, !10, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28, !14, i64 32, !14, i64 36}
!24 = !{!14, !14, i64 0}
!25 = !{!17, !17, i64 0}
!26 = !{!7, !7, i64 0}
!27 = distinct !{!27, !20}
!28 = !{i64 0, i64 4, !26, i64 4, i64 4, !24, i64 8, i64 4, !24, i64 12, i64 4, !24, i64 16, i64 4, !24, i64 20, i64 4, !24, i64 24, i64 4, !24, i64 28, i64 4, !24, i64 32, i64 4, !24, i64 36, i64 4, !24}
!29 = !{!12, !17, i64 82}
!30 = !{!12, !6, i64 56}
!31 = !{!12, !14, i64 16}
!32 = distinct !{!32, !20}
!33 = !{!12, !17, i64 84}
!34 = !{!12, !17, i64 86}
!35 = !{!23, !14, i64 16}
!36 = !{!12, !14, i64 92}
!37 = !{!12, !14, i64 88}
!38 = !{!23, !14, i64 8}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str.1 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [48 x i8], align 1
@__PRETTY_FUNCTION__._ZN6ImFont16BuildLookupTableEv = external hidden unnamed_addr constant [32 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [21 x i8], align 1
@__const._ZN6ImFont16BuildLookupTableEv.fallback_chars = external hidden unnamed_addr constant [3 x i16], align 2
@__const._ZN6ImFont16BuildLookupTableEv.ellipsis_chars = external hidden unnamed_addr constant [2 x i16], align 2
@__const._ZN6ImFont16BuildLookupTableEv.dots_chars = external hidden unnamed_addr constant [2 x i16], align 2

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorItE5clearEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL5ImMaxIiET_S0_S0_(i32 noundef, i32 noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 2 dereferenceable(2) ptr @_ZN8ImVectorItEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6ImFont16BuildLookupTableEv(ptr noundef nonnull align 8 dereferenceable(118) %0) local_unnamed_addr #6 align 2 {
  %2 = alloca [3 x i16], align 2
  %3 = alloca [2 x i16], align 4
  %4 = alloca [2 x i16], align 4
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %.not41 = icmp eq i32 %6, 0
  br i1 %.not41, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %1, %.lr.ph
  %.043 = phi i32 [ %10, %.lr.ph ], [ 0, %1 ]
  %.03142 = phi i32 [ %11, %.lr.ph ], [ 0, %1 ]
  %7 = tail call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphEixEi(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %.03142)
  %8 = load i32, ptr %7, align 4
  %9 = lshr i32 %8, 2
  %10 = tail call noundef i32 @_ZL5ImMaxIiET_S0_S0_(i32 noundef %.043, i32 noundef %9)
  %11 = add nuw nsw i32 %.03142, 1
  %12 = load i32, ptr %5, align 8, !tbaa !5
  %.not = icmp eq i32 %11, %12
  br i1 %.not, label %._crit_edge.thread, label %.lr.ph, !llvm.loop !17

._crit_edge:                                      ; preds = %1
  tail call void @__assert_fail(ptr noundef nonnull @.str.43, ptr noundef nonnull @.str.1, i32 noundef 3307, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6ImFont16BuildLookupTableEv) #8
  unreachable

._crit_edge.thread:                               ; preds = %.lr.ph
  %13 = icmp ult i32 %.03142, 65534
  br i1 %13, label %15, label %14

14:                                               ; preds = %._crit_edge.thread
  tail call void @__assert_fail(ptr noundef nonnull @.str.44, ptr noundef nonnull @.str.1, i32 noundef 3308, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6ImFont16BuildLookupTableEv) #8
  unreachable

15:                                               ; preds = %._crit_edge.thread
  tail call void @_ZN8ImVectorIfE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %16 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @_ZN8ImVectorItE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
  %17 = getelementptr inbounds i8, ptr %0, i64 96
  store i8 0, ptr %17, align 8, !tbaa !19
  %18 = getelementptr inbounds i8, ptr %0, i64 116
  store i16 0, ptr %18, align 4
  %19 = add i32 %10, 1
  tail call void @_ZN6ImFont9GrowIndexEi(ptr noundef nonnull align 8 dereferenceable(118) %0, i32 noundef %19)
  %20 = load i32, ptr %5, align 8, !tbaa !5
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %.lr.ph48, label %._crit_edge49

._crit_edge49:                                    ; preds = %.lr.ph48, %15
  %22 = tail call noundef ptr @_ZNK6ImFont9FindGlyphEt(ptr noundef nonnull align 8 dereferenceable(118) %0, i16 noundef zeroext 32)
  %.not35 = icmp eq ptr %22, null
  br i1 %.not35, label %66, label %44

.lr.ph48:                                         ; preds = %15, %.lr.ph48
  %.03346 = phi i32 [ %41, %.lr.ph48 ], [ 0, %15 ]
  %23 = tail call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphEixEi(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %.03346)
  %24 = load i32, ptr %23, align 4
  %25 = lshr i32 %24, 2
  %26 = tail call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphEixEi(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %.03346)
  %27 = getelementptr inbounds i8, ptr %26, i64 4
  %28 = load float, ptr %27, align 4, !tbaa !20
  %29 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorIfEixEi(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %25)
  store float %28, ptr %29, align 4, !tbaa !22
  %30 = trunc i32 %.03346 to i16
  %31 = tail call noundef nonnull align 2 dereferenceable(2) ptr @_ZN8ImVectorItEixEi(ptr noundef nonnull align 8 dereferenceable(16) %16, i32 noundef %25)
  store i16 %30, ptr %31, align 2, !tbaa !23
  %32 = lshr i32 %24, 14
  %33 = and i32 %32, 7
  %34 = shl nuw nsw i32 1, %33
  %35 = lshr i32 %24, 17
  %36 = zext nneg i32 %35 to i64
  %37 = getelementptr inbounds [2 x i8], ptr %18, i64 0, i64 %36
  %38 = load i8, ptr %37, align 1, !tbaa !24
  %39 = trunc nuw i32 %34 to i8
  %40 = or i8 %38, %39
  store i8 %40, ptr %37, align 1, !tbaa !24
  %41 = add nuw nsw i32 %.03346, 1
  %42 = load i32, ptr %5, align 8, !tbaa !5
  %43 = icmp slt i32 %41, %42
  br i1 %43, label %.lr.ph48, label %._crit_edge49, !llvm.loop !25

44:                                               ; preds = %._crit_edge49
  %45 = tail call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %46 = load i32, ptr %45, align 4
  %.mask = and i32 %46, -4
  %.not36 = icmp eq i32 %.mask, 36
  br i1 %.not36, label %50, label %47

47:                                               ; preds = %44
  %48 = load i32, ptr %5, align 8, !tbaa !5
  %49 = add nsw i32 %48, 1
  tail call void @_ZN8ImVectorI11ImFontGlyphE6resizeEi(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %49)
  br label %50

50:                                               ; preds = %47, %44
  %51 = tail call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %52 = tail call noundef ptr @_ZNK6ImFont9FindGlyphEt(ptr noundef nonnull align 8 dereferenceable(118) %0, i16 noundef zeroext 32)
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(40) %51, ptr noundef nonnull align 4 dereferenceable(40) %52, i64 40, i1 false), !tbaa.struct !26
  %53 = load i32, ptr %51, align 4
  %54 = and i32 %53, 3
  %55 = or disjoint i32 %54, 36
  store i32 %55, ptr %51, align 4
  %56 = getelementptr inbounds i8, ptr %51, i64 4
  %57 = load float, ptr %56, align 4, !tbaa !20
  %58 = fmul float %57, 4.000000e+00
  store float %58, ptr %56, align 4, !tbaa !20
  %59 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorIfEixEi(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 9)
  store float %58, ptr %59, align 4, !tbaa !22
  %60 = load i32, ptr %5, align 8, !tbaa !5
  %61 = trunc i32 %60 to i16
  %62 = add i16 %61, -1
  %63 = load i32, ptr %51, align 4
  %64 = lshr i32 %63, 2
  %65 = tail call noundef nonnull align 2 dereferenceable(2) ptr @_ZN8ImVectorItEixEi(ptr noundef nonnull align 8 dereferenceable(16) %16, i32 noundef %64)
  store i16 %62, ptr %65, align 2, !tbaa !23
  br label %66

66:                                               ; preds = %50, %._crit_edge49
  tail call void @_ZN6ImFont15SetGlyphVisibleEtb(ptr noundef nonnull align 8 dereferenceable(118) %0, i16 noundef zeroext 32, i1 noundef zeroext false)
  tail call void @_ZN6ImFont15SetGlyphVisibleEtb(ptr noundef nonnull align 8 dereferenceable(118) %0, i16 noundef zeroext 9, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %2) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 2 dereferenceable(6) %2, ptr noundef nonnull align 2 dereferenceable(6) @__const._ZN6ImFont16BuildLookupTableEv.fallback_chars, i64 6, i1 false)
  %67 = getelementptr inbounds i8, ptr %0, i64 82
  %68 = load i16, ptr %67, align 2, !tbaa !27
  %69 = tail call noundef ptr @_ZNK6ImFont19FindGlyphNoFallbackEt(ptr noundef nonnull align 8 dereferenceable(118) %0, i16 noundef zeroext %68)
  %70 = getelementptr inbounds i8, ptr %0, i64 56
  store ptr %69, ptr %70, align 8, !tbaa !28
  %71 = icmp eq ptr %69, null
  br i1 %71, label %72, label %81

72:                                               ; preds = %66
  %73 = call noundef zeroext i16 @_ZL22FindFirstExistingGlyphP6ImFontPKti(ptr noundef nonnull %0, ptr noundef nonnull %2, i32 noundef 3)
  store i16 %73, ptr %67, align 2, !tbaa !27
  %74 = call noundef ptr @_ZNK6ImFont19FindGlyphNoFallbackEt(ptr noundef nonnull align 8 dereferenceable(118) %0, i16 noundef zeroext %73)
  store ptr %74, ptr %70, align 8, !tbaa !28
  %75 = icmp eq ptr %74, null
  br i1 %75, label %76, label %81

76:                                               ; preds = %72
  %77 = call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  store ptr %77, ptr %70, align 8, !tbaa !28
  %78 = load i32, ptr %77, align 4
  %79 = lshr i32 %78, 2
  %80 = trunc i32 %79 to i16
  store i16 %80, ptr %67, align 2, !tbaa !27
  br label %81

81:                                               ; preds = %72, %76, %66
  %82 = phi ptr [ %74, %72 ], [ %77, %76 ], [ %69, %66 ]
  %83 = getelementptr inbounds i8, ptr %82, i64 4
  %84 = load float, ptr %83, align 4, !tbaa !20
  %85 = getelementptr inbounds i8, ptr %0, i64 16
  store float %84, ptr %85, align 8, !tbaa !29
  %.not3750 = icmp slt i32 %10, 0
  br i1 %.not3750, label %._crit_edge54, label %.lr.ph53

._crit_edge54:                                    ; preds = %97, %81
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #9
  %86 = load i32, ptr @__const._ZN6ImFont16BuildLookupTableEv.ellipsis_chars, align 2
  store i32 %86, ptr %3, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %87 = load i32, ptr @__const._ZN6ImFont16BuildLookupTableEv.dots_chars, align 2
  store i32 %87, ptr %4, align 4
  %88 = getelementptr inbounds i8, ptr %0, i64 84
  %89 = load i16, ptr %88, align 4, !tbaa !30
  %90 = icmp eq i16 %89, -1
  br i1 %90, label %99, label %101

.lr.ph53:                                         ; preds = %81, %97
  %.03251 = phi i32 [ %98, %97 ], [ 0, %81 ]
  %91 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorIfEixEi(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %.03251)
  %92 = load float, ptr %91, align 4, !tbaa !22
  %93 = fcmp olt float %92, 0.000000e+00
  br i1 %93, label %94, label %97

94:                                               ; preds = %.lr.ph53
  %95 = load float, ptr %85, align 8, !tbaa !29
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorIfEixEi(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %.03251)
  store float %95, ptr %96, align 4, !tbaa !22
  br label %97

97:                                               ; preds = %.lr.ph53, %94
  %98 = add nuw i32 %.03251, 1
  %exitcond.not = icmp eq i32 %.03251, %10
  br i1 %exitcond.not, label %._crit_edge54, label %.lr.ph53, !llvm.loop !31

99:                                               ; preds = %._crit_edge54
  %100 = call noundef zeroext i16 @_ZL22FindFirstExistingGlyphP6ImFontPKti(ptr noundef nonnull %0, ptr noundef nonnull %3, i32 noundef 2)
  store i16 %100, ptr %88, align 4, !tbaa !30
  br label %101

101:                                              ; preds = %99, %._crit_edge54
  %102 = call noundef zeroext i16 @_ZL22FindFirstExistingGlyphP6ImFontPKti(ptr noundef nonnull %0, ptr noundef nonnull %4, i32 noundef 2)
  %103 = load i16, ptr %88, align 4, !tbaa !30
  %.not38 = icmp eq i16 %103, -1
  br i1 %.not38, label %110, label %104

104:                                              ; preds = %101
  %105 = getelementptr inbounds i8, ptr %0, i64 86
  store i16 1, ptr %105, align 2, !tbaa !32
  %106 = call noundef ptr @_ZNK6ImFont9FindGlyphEt(ptr noundef nonnull align 8 dereferenceable(118) %0, i16 noundef zeroext %103)
  %107 = getelementptr inbounds i8, ptr %106, i64 16
  %108 = load float, ptr %107, align 4, !tbaa !33
  %109 = getelementptr inbounds i8, ptr %0, i64 92
  store float %108, ptr %109, align 4, !tbaa !34
  br label %.sink.split

110:                                              ; preds = %101
  %.not39 = icmp eq i16 %102, -1
  br i1 %.not39, label %123, label %111

111:                                              ; preds = %110
  %112 = call noundef ptr @_ZNK6ImFont9FindGlyphEt(ptr noundef nonnull align 8 dereferenceable(118) %0, i16 noundef zeroext %102)
  store i16 %102, ptr %88, align 4, !tbaa !30
  %113 = getelementptr inbounds i8, ptr %0, i64 86
  store i16 3, ptr %113, align 2, !tbaa !32
  %114 = getelementptr inbounds i8, ptr %112, i64 16
  %115 = load float, ptr %114, align 4, !tbaa !33
  %116 = getelementptr inbounds i8, ptr %112, i64 8
  %117 = load float, ptr %116, align 4, !tbaa !35
  %118 = fsub float %115, %117
  %119 = fadd float %118, 1.000000e+00
  %120 = getelementptr inbounds i8, ptr %0, i64 92
  store float %119, ptr %120, align 4, !tbaa !34
  %121 = call float @llvm.fmuladd.f32(float %119, float 3.000000e+00, float -1.000000e+00)
  br label %.sink.split

.sink.split:                                      ; preds = %104, %111
  %.sink = phi float [ %121, %111 ], [ %108, %104 ]
  %122 = getelementptr inbounds i8, ptr %0, i64 88
  store float %.sink, ptr %122, align 8, !tbaa !36
  br label %123

123:                                              ; preds = %.sink.split, %110
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %2) #9
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorIfE5clearEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImFont9GrowIndexEi(ptr noundef nonnull align 8 dereferenceable(118), i32 noundef) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorIfEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6ImFont9FindGlyphEt(ptr noundef nonnull align 8 dereferenceable(118), i16 noundef zeroext) local_unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphE4backEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorI11ImFontGlyphE6resizeEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImFont15SetGlyphVisibleEtb(ptr noundef nonnull align 8 dereferenceable(118), i16 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6ImFont19FindGlyphNoFallbackEt(ptr noundef nonnull align 8 dereferenceable(118), i16 noundef zeroext) local_unnamed_addr #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i16 @_ZL22FindFirstExistingGlyphP6ImFontPKti(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #7

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint 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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { 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 #8 = { noreturn nounwind }
attributes #9 = { 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, !8, i64 40}
!6 = !{!"_ZTS6ImFont", !7, i64 0, !12, i64 16, !12, i64 20, !13, i64 24, !14, i64 40, !11, i64 56, !11, i64 64, !11, i64 72, !15, i64 80, !15, i64 82, !15, i64 84, !15, i64 86, !12, i64 88, !12, i64 92, !16, i64 96, !12, i64 100, !12, i64 104, !12, i64 108, !8, i64 112, !9, i64 116}
!7 = !{!"_ZTS8ImVectorIfE", !8, i64 0, !8, i64 4, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"float", !9, i64 0}
!13 = !{!"_ZTS8ImVectorItE", !8, i64 0, !8, i64 4, !11, i64 8}
!14 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !8, i64 0, !8, i64 4, !11, i64 8}
!15 = !{!"short", !9, i64 0}
!16 = !{!"bool", !9, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!6, !16, i64 96}
!20 = !{!21, !12, i64 4}
!21 = !{!"_ZTS11ImFontGlyph", !8, i64 0, !8, i64 0, !8, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36}
!22 = !{!12, !12, i64 0}
!23 = !{!15, !15, i64 0}
!24 = !{!9, !9, i64 0}
!25 = distinct !{!25, !18}
!26 = !{i64 0, i64 4, !24, i64 4, i64 4, !22, i64 8, i64 4, !22, i64 12, i64 4, !22, i64 16, i64 4, !22, i64 20, i64 4, !22, i64 24, i64 4, !22, i64 28, i64 4, !22, i64 32, i64 4, !22, i64 36, i64 4, !22}
!27 = !{!6, !15, i64 82}
!28 = !{!6, !11, i64 56}
!29 = !{!6, !12, i64 16}
!30 = !{!6, !15, i64 84}
!31 = distinct !{!31, !18}
!32 = !{!6, !15, i64 86}
!33 = !{!21, !12, i64 16}
!34 = !{!6, !12, i64 92}
!35 = !{!21, !12, i64 8}
!36 = !{!6, !12, i64 88}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass