; LLVM IR from JawherBenjeddou/GraphicsRenderer :: Graphics/vendor/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 [103 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [21 x i8], align 1
@__PRETTY_FUNCTION__._ZN6ImFont16BuildLookupTableEv = external hidden unnamed_addr constant [32 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 slt i32 %37, 65535
  br i1 %38, label %39, label %40

39:                                               ; preds = %34
  br label %42

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

41:                                               ; No predecessors!
  br label %42

42:                                               ; preds = %41, %39
  %43 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 0
  call void @_ZN8ImVectorIfE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %43)
  %44 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 3
  call void @_ZN8ImVectorItE5clearEv(ptr noundef nonnull align 8 dereferenceable(16) %44)
  %45 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 14
  store i8 0, ptr %45, align 8, !tbaa !21
  %46 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 20
  %47 = getelementptr inbounds [2 x i8], ptr %46, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 4 %47, i8 0, i64 2, i1 false)
  %48 = load i32, ptr %3, align 4, !tbaa !9
  %49 = add nsw i32 %48, 1
  call void @_ZN6ImFont9GrowIndexEi(ptr noundef nonnull align 8 dereferenceable(118) %15, i32 noundef %49)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %50

50:                                               ; preds = %90, %42
  %51 = load i32, ptr %5, align 4, !tbaa !9
  %52 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 4
  %53 = getelementptr inbounds %struct.ImVector.7, ptr %52, i32 0, i32 0
  %54 = load i32, ptr %53, align 8, !tbaa !11
  %55 = icmp slt i32 %51, %54
  br i1 %55, label %57, label %56

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

57:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #9
  %58 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 4
  %59 = load i32, ptr %5, align 4, !tbaa !9
  %60 = call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphEixEi(ptr noundef nonnull align 8 dereferenceable(16) %58, i32 noundef %59)
  %61 = load i32, ptr %60, align 4
  %62 = lshr i32 %61, 2
  store i32 %62, ptr %6, align 4, !tbaa !9
  %63 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 4
  %64 = load i32, ptr %5, align 4, !tbaa !9
  %65 = call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphEixEi(ptr noundef nonnull align 8 dereferenceable(16) %63, i32 noundef %64)
  %66 = getelementptr inbounds %struct.ImFontGlyph, ptr %65, i32 0, i32 1
  %67 = load float, ptr %66, align 4, !tbaa !22
  %68 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 0
  %69 = load i32, ptr %6, align 4, !tbaa !9
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorIfEixEi(ptr noundef nonnull align 8 dereferenceable(16) %68, i32 noundef %69)
  store float %67, ptr %70, align 4, !tbaa !24
  %71 = load i32, ptr %5, align 4, !tbaa !9
  %72 = trunc i32 %71 to i16
  %73 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 3
  %74 = load i32, ptr %6, align 4, !tbaa !9
  %75 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZN8ImVectorItEixEi(ptr noundef nonnull align 8 dereferenceable(16) %73, i32 noundef %74)
  store i16 %72, ptr %75, align 2, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  %76 = load i32, ptr %6, align 4, !tbaa !9
  %77 = sdiv i32 %76, 4096
  store i32 %77, ptr %7, align 4, !tbaa !9
  %78 = load i32, ptr %7, align 4, !tbaa !9
  %79 = and i32 %78, 7
  %80 = shl i32 1, %79
  %81 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 20
  %82 = load i32, ptr %7, align 4, !tbaa !9
  %83 = ashr i32 %82, 3
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [2 x i8], ptr %81, i64 0, i64 %84
  %86 = load i8, ptr %85, align 1, !tbaa !26
  %87 = zext i8 %86 to i32
  %88 = or i32 %87, %80
  %89 = trunc i32 %88 to i8
  store i8 %89, ptr %85, 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 %90

90:                                               ; preds = %57
  %91 = load i32, ptr %5, align 4, !tbaa !9
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %5, align 4, !tbaa !9
  br label %50, !llvm.loop !27

93:                                               ; preds = %56
  %94 = call noundef ptr @_ZNK6ImFont9FindGlyphEt(ptr noundef nonnull align 8 dereferenceable(118) %15, i16 noundef zeroext 32)
  %95 = icmp ne ptr %94, null
  br i1 %95, label %96, label %139

96:                                               ; preds = %93
  %97 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 4
  %98 = call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %97)
  %99 = load i32, ptr %98, align 4
  %100 = lshr i32 %99, 2
  %101 = icmp ne i32 %100, 9
  br i1 %101, label %102, label %108

102:                                              ; preds = %96
  %103 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 4
  %104 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 4
  %105 = getelementptr inbounds %struct.ImVector.7, ptr %104, i32 0, i32 0
  %106 = load i32, ptr %105, align 8, !tbaa !11
  %107 = add nsw i32 %106, 1
  call void @_ZN8ImVectorI11ImFontGlyphE6resizeEi(ptr noundef nonnull align 8 dereferenceable(16) %103, i32 noundef %107)
  br label %108

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

139:                                              ; preds = %108, %93
  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)
  %140 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 9
  %141 = load i16, ptr %140, align 2, !tbaa !29
  %142 = call noundef ptr @_ZNK6ImFont19FindGlyphNoFallbackEt(ptr noundef nonnull align 8 dereferenceable(118) %15, i16 noundef zeroext %141)
  %143 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 5
  store ptr %142, ptr %143, align 8, !tbaa !30
  %144 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 5
  %145 = load ptr, ptr %144, align 8, !tbaa !30
  %146 = icmp eq ptr %145, null
  br i1 %146, label %147, label %169

147:                                              ; preds = %139
  %148 = getelementptr inbounds [3 x i16], ptr %9, i64 0, i64 0
  %149 = call noundef zeroext i16 @_ZL22FindFirstExistingGlyphP6ImFontPKti(ptr noundef %15, ptr noundef %148, i32 noundef 3)
  %150 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 9
  store i16 %149, ptr %150, align 2, !tbaa !29
  %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 %168

158:                                              ; preds = %147
  %159 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 4
  %160 = call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %159)
  %161 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 5
  store ptr %160, ptr %161, align 8, !tbaa !30
  %162 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 5
  %163 = load ptr, ptr %162, align 8, !tbaa !30
  %164 = load i32, ptr %163, align 4
  %165 = lshr i32 %164, 2
  %166 = trunc i32 %165 to i16
  %167 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 9
  store i16 %166, ptr %167, align 2, !tbaa !29
  br label %168

168:                                              ; preds = %158, %147
  br label %169

169:                                              ; preds = %168, %139
  %170 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 5
  %171 = load ptr, ptr %170, align 8, !tbaa !30
  %172 = getelementptr inbounds %struct.ImFontGlyph, ptr %171, i32 0, i32 1
  %173 = load float, ptr %172, align 4, !tbaa !22
  %174 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 1
  store float %173, ptr %174, 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 %175

175:                                              ; preds = %194, %169
  %176 = load i32, ptr %10, align 4, !tbaa !9
  %177 = load i32, ptr %3, align 4, !tbaa !9
  %178 = add nsw i32 %177, 1
  %179 = icmp slt i32 %176, %178
  br i1 %179, label %181, label %180

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

181:                                              ; preds = %175
  %182 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 0
  %183 = load i32, ptr %10, align 4, !tbaa !9
  %184 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorIfEixEi(ptr noundef nonnull align 8 dereferenceable(16) %182, i32 noundef %183)
  %185 = load float, ptr %184, align 4, !tbaa !24
  %186 = fcmp olt float %185, 0.000000e+00
  br i1 %186, label %187, label %193

187:                                              ; preds = %181
  %188 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 1
  %189 = load float, ptr %188, align 8, !tbaa !31
  %190 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 0
  %191 = load i32, ptr %10, align 4, !tbaa !9
  %192 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorIfEixEi(ptr noundef nonnull align 8 dereferenceable(16) %190, i32 noundef %191)
  store float %189, ptr %192, align 4, !tbaa !24
  br label %193

193:                                              ; preds = %187, %181
  br label %194

194:                                              ; preds = %193
  %195 = load i32, ptr %10, align 4, !tbaa !9
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %10, align 4, !tbaa !9
  br label %175, !llvm.loop !32

197:                                              ; preds = %180
  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)
  %198 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 10
  %199 = load i16, ptr %198, align 4, !tbaa !33
  %200 = zext i16 %199 to i32
  %201 = icmp eq i32 %200, 65535
  br i1 %201, label %202, label %206

202:                                              ; preds = %197
  %203 = getelementptr inbounds [2 x i16], ptr %11, i64 0, i64 0
  %204 = call noundef zeroext i16 @_ZL22FindFirstExistingGlyphP6ImFontPKti(ptr noundef %15, ptr noundef %203, i32 noundef 2)
  %205 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 10
  store i16 %204, ptr %205, align 4, !tbaa !33
  br label %206

206:                                              ; preds = %202, %197
  call void @llvm.lifetime.start.p0(i64 2, ptr %13) #9
  %207 = getelementptr inbounds [2 x i16], ptr %12, i64 0, i64 0
  %208 = call noundef zeroext i16 @_ZL22FindFirstExistingGlyphP6ImFontPKti(ptr noundef %15, ptr noundef %207, i32 noundef 2)
  store i16 %208, ptr %13, align 2, !tbaa !25
  %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 ne i32 %211, 65535
  br i1 %212, label %213, label %222

213:                                              ; preds = %206
  %214 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 11
  store i16 1, ptr %214, align 2, !tbaa !34
  %215 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 10
  %216 = load i16, ptr %215, align 4, !tbaa !33
  %217 = call noundef ptr @_ZNK6ImFont9FindGlyphEt(ptr noundef nonnull align 8 dereferenceable(118) %15, i16 noundef zeroext %216)
  %218 = getelementptr inbounds %struct.ImFontGlyph, ptr %217, i32 0, i32 4
  %219 = load float, ptr %218, align 4, !tbaa !35
  %220 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 13
  store float %219, ptr %220, align 4, !tbaa !36
  %221 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 12
  store float %219, ptr %221, align 8, !tbaa !37
  br label %246

222:                                              ; preds = %206
  %223 = load i16, ptr %13, align 2, !tbaa !25
  %224 = zext i16 %223 to i32
  %225 = icmp ne i32 %224, 65535
  br i1 %225, label %226, label %245

226:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  %227 = load i16, ptr %13, align 2, !tbaa !25
  %228 = call noundef ptr @_ZNK6ImFont9FindGlyphEt(ptr noundef nonnull align 8 dereferenceable(118) %15, i16 noundef zeroext %227)
  store ptr %228, ptr %14, align 8, !tbaa !5
  %229 = load i16, ptr %13, align 2, !tbaa !25
  %230 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 10
  store i16 %229, ptr %230, align 4, !tbaa !33
  %231 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 11
  store i16 3, ptr %231, align 2, !tbaa !34
  %232 = load ptr, ptr %14, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.ImFontGlyph, ptr %232, i32 0, i32 4
  %234 = load float, ptr %233, align 4, !tbaa !35
  %235 = load ptr, ptr %14, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.ImFontGlyph, ptr %235, i32 0, i32 2
  %237 = load float, ptr %236, align 4, !tbaa !38
  %238 = fsub float %234, %237
  %239 = fadd float %238, 1.000000e+00
  %240 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 13
  store float %239, ptr %240, align 4, !tbaa !36
  %241 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 13
  %242 = load float, ptr %241, align 4, !tbaa !36
  %243 = call float @llvm.fmuladd.f32(float %242, float 3.000000e+00, float -1.000000e+00)
  %244 = getelementptr inbounds %struct.ImFont, ptr %15, i32 0, i32 12
  store float %243, ptr %244, align 8, !tbaa !37
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  br label %245

245:                                              ; preds = %226, %222
  br label %246

246:                                              ; preds = %245, %213
  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 [103 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [21 x i8], align 1
@__PRETTY_FUNCTION__._ZN6ImFont16BuildLookupTableEv = external hidden unnamed_addr constant [32 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.thread, label %.lr.ph

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

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

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

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

._crit_edge49:                                    ; preds = %.lr.ph48, %._crit_edge.thread
  %21 = tail call noundef ptr @_ZNK6ImFont9FindGlyphEt(ptr noundef nonnull align 8 dereferenceable(118) %0, i16 noundef zeroext 32)
  %.not35 = icmp eq ptr %21, null
  br i1 %.not35, label %65, label %43

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

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

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

49:                                               ; preds = %46, %43
  %50 = tail call noundef nonnull align 4 dereferenceable(40) ptr @_ZN8ImVectorI11ImFontGlyphE4backEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %51 = 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) %50, ptr noundef nonnull align 4 dereferenceable(40) %51, i64 40, i1 false), !tbaa.struct !26
  %52 = load i32, ptr %50, align 4
  %53 = and i32 %52, 3
  %54 = or disjoint i32 %53, 36
  store i32 %54, ptr %50, align 4
  %55 = getelementptr inbounds i8, ptr %50, i64 4
  %56 = load float, ptr %55, align 4, !tbaa !20
  %57 = fmul float %56, 4.000000e+00
  store float %57, ptr %55, align 4, !tbaa !20
  %58 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN8ImVectorIfEixEi(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef 9)
  store float %57, ptr %58, align 4, !tbaa !22
  %59 = load i32, ptr %5, align 8, !tbaa !5
  %60 = trunc i32 %59 to i16
  %61 = add i16 %60, -1
  %62 = load i32, ptr %50, align 4
  %63 = lshr i32 %62, 2
  %64 = tail call noundef nonnull align 2 dereferenceable(2) ptr @_ZN8ImVectorItEixEi(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef %63)
  store i16 %61, ptr %64, align 2, !tbaa !23
  br label %65

65:                                               ; preds = %49, %._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)
  %66 = getelementptr inbounds i8, ptr %0, i64 82
  %67 = load i16, ptr %66, align 2, !tbaa !27
  %68 = tail call noundef ptr @_ZNK6ImFont19FindGlyphNoFallbackEt(ptr noundef nonnull align 8 dereferenceable(118) %0, i16 noundef zeroext %67)
  %69 = getelementptr inbounds i8, ptr %0, i64 56
  store ptr %68, ptr %69, align 8, !tbaa !28
  %70 = icmp eq ptr %68, null
  br i1 %70, label %71, label %80

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

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

80:                                               ; preds = %71, %75, %65
  %81 = phi ptr [ %73, %71 ], [ %76, %75 ], [ %68, %65 ]
  %82 = getelementptr inbounds i8, ptr %81, i64 4
  %83 = load float, ptr %82, align 4, !tbaa !20
  %84 = getelementptr inbounds i8, ptr %0, i64 16
  store float %83, ptr %84, align 8, !tbaa !29
  %.not3750 = icmp slt i32 %.0.lcssa59, 0
  br i1 %.not3750, label %._crit_edge54, label %.lr.ph53

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

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

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

96:                                               ; preds = %.lr.ph53, %93
  %97 = add nuw i32 %.03251, 1
  %exitcond.not = icmp eq i32 %.03251, %.0.lcssa59
  br i1 %exitcond.not, label %._crit_edge54, label %.lr.ph53, !llvm.loop !31

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

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

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

109:                                              ; preds = %100
  %.not39 = icmp eq i16 %101, -1
  br i1 %.not39, label %122, label %110

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

.sink.split:                                      ; preds = %103, %110
  %.sink = phi float [ %120, %110 ], [ %107, %103 ]
  %121 = getelementptr inbounds i8, ptr %0, i64 88
  store float %.sink, ptr %121, align 8, !tbaa !36
  br label %122

122:                                              ; preds = %.sink.split, %109
  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: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass