; LLVM IR from DarrenSweeney/3D-Physics-Engine :: Physics Engine/Imgui/imgui.ll (ZN11ImFontAtlas5BuildEv)

; 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.ImVec2 = type { float, float }
%struct.stbtt_pack_context = type { ptr, ptr, i32, i32, i32, i32, i32, i32, ptr, ptr }
%struct.stbrp_rect = type { i32, i16, i16, i16, i16, i32 }
%struct.ImFontAtlas = type { ptr, ptr, ptr, i32, i32, %struct.ImVec2, %struct.ImVec2, %class.ImVector, %class.ImVector.0 }
%class.ImVector = type { i64, i64, ptr }
%class.ImVector.0 = type { i64, i64, ptr }
%"struct.ImFontAtlas::ImFontAtlasData" = type { ptr, ptr, i64, float, ptr, i32, %struct.stbtt_fontinfo, ptr, ptr, i32 }
%struct.stbtt_fontinfo = type { ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.stbtt_pack_range = type { float, i32, i32, ptr }
%struct.stbtt_packedchar = type { i16, i16, i16, i16, float, float, float, float, float }
%struct.ImFont = type { float, float, %struct.ImVec2, i16, ptr, %class.ImVector.16, ptr, float, %class.ImVector.10, %class.ImVector.17 }
%class.ImVector.16 = type { i64, i64, ptr }
%class.ImVector.10 = type { i64, i64, ptr }
%class.ImVector.17 = type { i64, i64, ptr }
%"struct.ImFont::Glyph" = type { i16, i16, i16, i16, i16, i16, float, float, float, float }

@_ZL14TEX_ATLAS_SIZE = external hidden global %struct.ImVec2, align 4
@.str.10 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.147 = external hidden unnamed_addr constant [21 x i8], align 1
@__PRETTY_FUNCTION__._ZN11ImFontAtlas5BuildEv = external hidden unnamed_addr constant [26 x i8], align 1
@.str.148 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.149 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.150 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.151 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.153 = external hidden unnamed_addr constant [40 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #0 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui7MemFreeEPv(ptr noundef) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6ImFont8IsLoadedEv(ptr noundef nonnull align 8 dereferenceable(120)) #0 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK8ImVectorIPN11ImFontAtlas15ImFontAtlasDataEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIPN11ImFontAtlas15ImFontAtlasDataEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #6 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11ImFontAtlas5BuildEv(ptr noundef nonnull align 8 dereferenceable(96) %0) #4 align 2 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca %struct.ImVec2, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %struct.stbtt_pack_context, align 8
  %14 = alloca i32, align 4
  %15 = alloca %struct.stbrp_rect, align 4
  %16 = alloca %struct.ImVec2, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i64, align 8
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i64, align 8
  %35 = alloca ptr, align 8
  %36 = alloca i64, align 8
  %37 = alloca ptr, align 8
  %38 = alloca float, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca float, align 4
  %43 = alloca float, align 4
  %44 = alloca i32, align 4
  %45 = alloca i32, align 4
  %46 = alloca ptr, align 8
  %47 = alloca i32, align 4
  %48 = alloca i32, align 4
  %49 = alloca ptr, align 8
  %50 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %51 = load ptr, ptr %3, align 8
  %52 = getelementptr inbounds %struct.ImFontAtlas, ptr %51, i32 0, i32 8
  %53 = call noundef i64 @_ZNK8ImVectorIPN11ImFontAtlas15ImFontAtlasDataEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %52)
  %54 = icmp ugt i64 %53, 0
  br i1 %54, label %55, label %56

55:                                               ; preds = %1
  br label %58

56:                                               ; preds = %1
  call void @__assert_fail(ptr noundef @.str.147, ptr noundef @.str.10, i32 noundef 7290, ptr noundef @__PRETTY_FUNCTION__._ZN11ImFontAtlas5BuildEv) #8
  unreachable

57:                                               ; No predecessors!
  br label %58

58:                                               ; preds = %57, %55
  %59 = getelementptr inbounds %struct.ImFontAtlas, ptr %51, i32 0, i32 0
  store ptr null, ptr %59, align 8, !tbaa !9
  %60 = getelementptr inbounds %struct.ImFontAtlas, ptr %51, i32 0, i32 4
  store i32 0, ptr %60, align 4, !tbaa !17
  %61 = getelementptr inbounds %struct.ImFontAtlas, ptr %51, i32 0, i32 3
  store i32 0, ptr %61, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #9
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %4, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %62 = getelementptr inbounds %struct.ImFontAtlas, ptr %51, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %62, ptr align 4 %4, i64 8, i1 false), !tbaa.struct !19
  %63 = getelementptr inbounds %struct.ImFontAtlas, ptr %51, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %63, ptr align 4 %62, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  call void @_ZN11ImFontAtlas12ClearTexDataEv(ptr noundef nonnull align 8 dereferenceable(96) %51)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  store i32 0, ptr %5, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #9
  store i32 0, ptr %6, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  store i64 0, ptr %7, align 8, !tbaa !22
  br label %64

64:                                               ; preds = %161, %58
  %65 = load i64, ptr %7, align 8, !tbaa !22
  %66 = getelementptr inbounds %struct.ImFontAtlas, ptr %51, i32 0, i32 8
  %67 = call noundef i64 @_ZNK8ImVectorIPN11ImFontAtlas15ImFontAtlasDataEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %66)
  %68 = icmp ult i64 %65, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %64
  store i32 2, ptr %8, align 4
  br label %164

70:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  %71 = getelementptr inbounds %struct.ImFontAtlas, ptr %51, i32 0, i32 8
  %72 = load i64, ptr %7, align 8, !tbaa !22
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIPN11ImFontAtlas15ImFontAtlasDataEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %72)
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  store ptr %74, ptr %9, align 8, !tbaa !5
  %75 = load ptr, ptr %9, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %75, i32 0, i32 0
  %77 = load ptr, ptr %76, align 8, !tbaa !23
  %78 = icmp ne ptr %77, null
  br i1 %78, label %79, label %85

79:                                               ; preds = %70
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %80, i32 0, i32 0
  %82 = load ptr, ptr %81, align 8, !tbaa !23
  %83 = call noundef zeroext i1 @_ZNK6ImFont8IsLoadedEv(ptr noundef nonnull align 8 dereferenceable(120) %82)
  %84 = xor i1 %83, true
  br label %85

85:                                               ; preds = %79, %70
  %86 = phi i1 [ false, %70 ], [ %84, %79 ]
  br i1 %86, label %87, label %88

87:                                               ; preds = %85
  br label %90

88:                                               ; preds = %85
  call void @__assert_fail(ptr noundef @.str.148, ptr noundef @.str.10, i32 noundef 7303, ptr noundef @__PRETTY_FUNCTION__._ZN11ImFontAtlas5BuildEv) #8
  unreachable

89:                                               ; No predecessors!
  br label %90

90:                                               ; preds = %89, %87
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  %91 = load ptr, ptr %9, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %91, i32 0, i32 1
  %93 = load ptr, ptr %92, align 8, !tbaa !26
  %94 = load ptr, ptr %9, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %94, i32 0, i32 5
  %96 = load i32, ptr %95, align 8, !tbaa !27
  %97 = call noundef i32 @_ZL27stbtt_GetFontOffsetForIndexPKhi(ptr noundef %93, i32 noundef %96)
  store i32 %97, ptr %10, align 4, !tbaa !21
  %98 = load i32, ptr %10, align 4, !tbaa !21
  %99 = icmp sge i32 %98, 0
  br i1 %99, label %100, label %101

100:                                              ; preds = %90
  br label %103

101:                                              ; preds = %90
  call void @__assert_fail(ptr noundef @.str.149, ptr noundef @.str.10, i32 noundef 7305, ptr noundef @__PRETTY_FUNCTION__._ZN11ImFontAtlas5BuildEv) #8
  unreachable

102:                                              ; No predecessors!
  br label %103

103:                                              ; preds = %102, %100
  %104 = load ptr, ptr %9, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %104, i32 0, i32 6
  %106 = load ptr, ptr %9, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %106, i32 0, i32 1
  %108 = load ptr, ptr %107, align 8, !tbaa !26
  %109 = load i32, ptr %10, align 4, !tbaa !21
  %110 = call noundef i32 @_ZL14stbtt_InitFontP14stbtt_fontinfoPKhi(ptr noundef %105, ptr noundef %108, i32 noundef %109)
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %113, label %112

112:                                              ; preds = %103
  store i1 false, ptr %2, align 1
  store i32 1, ptr %8, align 4
  br label %158

113:                                              ; preds = %103
  %114 = load ptr, ptr %9, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %114, i32 0, i32 4
  %116 = load ptr, ptr %115, align 8, !tbaa !28
  %117 = icmp ne ptr %116, null
  br i1 %117, label %122, label %118

118:                                              ; preds = %113
  %119 = call noundef ptr @_ZN11ImFontAtlas21GetGlyphRangesDefaultEv(ptr noundef nonnull align 8 dereferenceable(96) %51)
  %120 = load ptr, ptr %9, align 8, !tbaa !5
  %121 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %120, i32 0, i32 4
  store ptr %119, ptr %121, align 8, !tbaa !28
  br label %122

122:                                              ; preds = %118, %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  %123 = load ptr, ptr %9, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %123, i32 0, i32 4
  %125 = load ptr, ptr %124, align 8, !tbaa !28
  store ptr %125, ptr %11, align 8, !tbaa !5
  br label %126

126:                                              ; preds = %154, %122
  %127 = load ptr, ptr %11, align 8, !tbaa !5
  %128 = getelementptr inbounds i16, ptr %127, i64 0
  %129 = load i16, ptr %128, align 2, !tbaa !29
  %130 = icmp ne i16 %129, 0
  br i1 %130, label %131, label %136

131:                                              ; preds = %126
  %132 = load ptr, ptr %11, align 8, !tbaa !5
  %133 = getelementptr inbounds i16, ptr %132, i64 1
  %134 = load i16, ptr %133, align 2, !tbaa !29
  %135 = icmp ne i16 %134, 0
  br label %136

136:                                              ; preds = %131, %126
  %137 = phi i1 [ false, %126 ], [ %135, %131 ]
  br i1 %137, label %139, label %138

138:                                              ; preds = %136
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  br label %157

139:                                              ; preds = %136
  %140 = load ptr, ptr %11, align 8, !tbaa !5
  %141 = getelementptr inbounds i16, ptr %140, i64 1
  %142 = load i16, ptr %141, align 2, !tbaa !29
  %143 = zext i16 %142 to i32
  %144 = load ptr, ptr %11, align 8, !tbaa !5
  %145 = getelementptr inbounds i16, ptr %144, i64 0
  %146 = load i16, ptr %145, align 2, !tbaa !29
  %147 = zext i16 %146 to i32
  %148 = sub nsw i32 %143, %147
  %149 = add nsw i32 %148, 1
  %150 = load i32, ptr %5, align 4, !tbaa !21
  %151 = add nsw i32 %150, %149
  store i32 %151, ptr %5, align 4, !tbaa !21
  %152 = load i32, ptr %6, align 4, !tbaa !21
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %6, align 4, !tbaa !21
  br label %154

154:                                              ; preds = %139
  %155 = load ptr, ptr %11, align 8, !tbaa !5
  %156 = getelementptr inbounds i16, ptr %155, i64 2
  store ptr %156, ptr %11, align 8, !tbaa !5
  br label %126, !llvm.loop !31

157:                                              ; preds = %138
  store i32 0, ptr %8, align 4
  br label %158

158:                                              ; preds = %157, %112
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  %159 = load i32, ptr %8, align 4
  switch i32 %159, label %164 [
    i32 0, label %160
  ]

160:                                              ; preds = %158
  br label %161

161:                                              ; preds = %160
  %162 = load i64, ptr %7, align 8, !tbaa !22
  %163 = add i64 %162, 1
  store i64 %163, ptr %7, align 8, !tbaa !22
  br label %64, !llvm.loop !33

164:                                              ; preds = %158, %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  %165 = load i32, ptr %8, align 4
  switch i32 %165, label %723 [
    i32 2, label %166
  ]

166:                                              ; preds = %164
  %167 = load i32, ptr %5, align 4, !tbaa !21
  %168 = icmp sgt i32 %167, 1000
  %169 = zext i1 %168 to i64
  %170 = select i1 %168, i32 1024, i32 512
  %171 = getelementptr inbounds %struct.ImFontAtlas, ptr %51, i32 0, i32 3
  store i32 %170, ptr %171, align 8, !tbaa !18
  %172 = getelementptr inbounds %struct.ImFontAtlas, ptr %51, i32 0, i32 4
  store i32 0, ptr %172, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  store i32 32768, ptr %12, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 56, ptr %13) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  %173 = getelementptr inbounds %struct.ImFontAtlas, ptr %51, i32 0, i32 3
  %174 = load i32, ptr %173, align 8, !tbaa !18
  %175 = call noundef i32 @_ZL15stbtt_PackBeginP18stbtt_pack_contextPhiiiiPv(ptr noundef %13, ptr noundef null, i32 noundef %174, i32 noundef 32768, i32 noundef 0, i32 noundef 1, ptr noundef null)
  store i32 %175, ptr %14, align 4, !tbaa !21
  %176 = load i32, ptr %14, align 4, !tbaa !21
  %177 = icmp ne i32 %176, 0
  br i1 %177, label %178, label %179

178:                                              ; preds = %166
  br label %181

179:                                              ; preds = %166
  call void @__assert_fail(ptr noundef @.str.150, ptr noundef @.str.10, i32 noundef 7324, ptr noundef @__PRETTY_FUNCTION__._ZN11ImFontAtlas5BuildEv) #8
  unreachable

180:                                              ; No predecessors!
  br label %181

181:                                              ; preds = %180, %178
  call void @_ZL25stbtt_PackSetOversamplingP18stbtt_pack_contextjj(ptr noundef %13, i32 noundef 1, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #9
  %182 = load float, ptr @_ZL14TEX_ATLAS_SIZE, align 4, !tbaa !34
  %183 = fptoui float %182 to i16
  %184 = getelementptr inbounds %struct.stbrp_rect, ptr %15, i32 0, i32 1
  store i16 %183, ptr %184, align 4, !tbaa !35
  %185 = load float, ptr getelementptr inbounds (%struct.ImVec2, ptr @_ZL14TEX_ATLAS_SIZE, i32 0, i32 1), align 4, !tbaa !37
  %186 = fptoui float %185 to i16
  %187 = getelementptr inbounds %struct.stbrp_rect, ptr %15, i32 0, i32 2
  store i16 %186, ptr %187, align 2, !tbaa !38
  %188 = getelementptr inbounds %struct.stbtt_pack_context, ptr %13, i32 0, i32 1
  %189 = load ptr, ptr %188, align 8, !tbaa !39
  call void @_ZL16stbrp_pack_rectsP13stbrp_contextP10stbrp_recti(ptr noundef %189, ptr noundef %15, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  %190 = getelementptr inbounds %struct.stbrp_rect, ptr %15, i32 0, i32 3
  %191 = load i16, ptr %190, align 4, !tbaa !41
  %192 = uitofp i16 %191 to float
  %193 = getelementptr inbounds %struct.stbrp_rect, ptr %15, i32 0, i32 4
  %194 = load i16, ptr %193, align 2, !tbaa !42
  %195 = uitofp i16 %194 to float
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %16, float noundef %192, float noundef %195)
  %196 = getelementptr inbounds %struct.ImFontAtlas, ptr %51, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %196, ptr align 4 %16, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  store i32 0, ptr %17, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  store i32 0, ptr %18, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  store i32 0, ptr %19, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  %197 = load i32, ptr %5, align 4, !tbaa !21
  %198 = sext i32 %197 to i64
  %199 = mul i64 %198, 28
  %200 = call noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef %199)
  store ptr %200, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  %201 = load i32, ptr %5, align 4, !tbaa !21
  %202 = sext i32 %201 to i64
  %203 = mul i64 %202, 16
  %204 = call noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef %203)
  store ptr %204, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  %205 = load i32, ptr %6, align 4, !tbaa !21
  %206 = sext i32 %205 to i64
  %207 = mul i64 %206, 24
  %208 = call noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef %207)
  store ptr %208, ptr %22, align 8, !tbaa !5
  %209 = load ptr, ptr %20, align 8, !tbaa !5
  %210 = load i32, ptr %5, align 4, !tbaa !21
  %211 = sext i32 %210 to i64
  %212 = mul i64 %211, 28
  call void @llvm.memset.p0.i64(ptr align 4 %209, i8 0, i64 %212, i1 false)
  %213 = load ptr, ptr %21, align 8, !tbaa !5
  %214 = load i32, ptr %5, align 4, !tbaa !21
  %215 = sext i32 %214 to i64
  %216 = mul i64 %215, 16
  call void @llvm.memset.p0.i64(ptr align 4 %213, i8 0, i64 %216, i1 false)
  %217 = load ptr, ptr %22, align 8, !tbaa !5
  %218 = load i32, ptr %6, align 4, !tbaa !21
  %219 = sext i32 %218 to i64
  %220 = mul i64 %219, 24
  call void @llvm.memset.p0.i64(ptr align 8 %217, i8 0, i64 %220, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #9
  %221 = getelementptr inbounds %struct.stbrp_rect, ptr %15, i32 0, i32 4
  %222 = load i16, ptr %221, align 2, !tbaa !42
  %223 = zext i16 %222 to i32
  %224 = getelementptr inbounds %struct.stbrp_rect, ptr %15, i32 0, i32 2
  %225 = load i16, ptr %224, align 2, !tbaa !38
  %226 = zext i16 %225 to i32
  %227 = add nsw i32 %223, %226
  store i32 %227, ptr %23, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  store i64 0, ptr %24, align 8, !tbaa !22
  br label %228

228:                                              ; preds = %412, %181
  %229 = load i64, ptr %24, align 8, !tbaa !22
  %230 = getelementptr inbounds %struct.ImFontAtlas, ptr %51, i32 0, i32 8
  %231 = call noundef i64 @_ZNK8ImVectorIPN11ImFontAtlas15ImFontAtlasDataEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %230)
  %232 = icmp ult i64 %229, %231
  br i1 %232, label %234, label %233

233:                                              ; preds = %228
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  br label %415

234:                                              ; preds = %228
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  %235 = getelementptr inbounds %struct.ImFontAtlas, ptr %51, i32 0, i32 8
  %236 = load i64, ptr %24, align 8, !tbaa !22
  %237 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIPN11ImFontAtlas15ImFontAtlasDataEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %235, i64 noundef %236)
  %238 = load ptr, ptr %237, align 8, !tbaa !5
  store ptr %238, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  store i32 0, ptr %26, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  store i32 0, ptr %27, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #9
  %239 = load ptr, ptr %25, align 8, !tbaa !5
  %240 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %239, i32 0, i32 4
  %241 = load ptr, ptr %240, align 8, !tbaa !28
  store ptr %241, ptr %28, align 8, !tbaa !5
  br label %242

242:                                              ; preds = %270, %234
  %243 = load ptr, ptr %28, align 8, !tbaa !5
  %244 = getelementptr inbounds i16, ptr %243, i64 0
  %245 = load i16, ptr %244, align 2, !tbaa !29
  %246 = icmp ne i16 %245, 0
  br i1 %246, label %247, label %252

247:                                              ; preds = %242
  %248 = load ptr, ptr %28, align 8, !tbaa !5
  %249 = getelementptr inbounds i16, ptr %248, i64 1
  %250 = load i16, ptr %249, align 2, !tbaa !29
  %251 = icmp ne i16 %250, 0
  br label %252

252:                                              ; preds = %247, %242
  %253 = phi i1 [ false, %242 ], [ %251, %247 ]
  br i1 %253, label %255, label %254

254:                                              ; preds = %252
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  br label %273

255:                                              ; preds = %252
  %256 = load ptr, ptr %28, align 8, !tbaa !5
  %257 = getelementptr inbounds i16, ptr %256, i64 1
  %258 = load i16, ptr %257, align 2, !tbaa !29
  %259 = zext i16 %258 to i32
  %260 = load ptr, ptr %28, align 8, !tbaa !5
  %261 = getelementptr inbounds i16, ptr %260, i64 0
  %262 = load i16, ptr %261, align 2, !tbaa !29
  %263 = zext i16 %262 to i32
  %264 = sub nsw i32 %259, %263
  %265 = add nsw i32 %264, 1
  %266 = load i32, ptr %26, align 4, !tbaa !21
  %267 = add nsw i32 %266, %265
  store i32 %267, ptr %26, align 4, !tbaa !21
  %268 = load i32, ptr %27, align 4, !tbaa !21
  %269 = add nsw i32 %268, 1
  store i32 %269, ptr %27, align 4, !tbaa !21
  br label %270

270:                                              ; preds = %255
  %271 = load ptr, ptr %28, align 8, !tbaa !5
  %272 = getelementptr inbounds i16, ptr %271, i64 2
  store ptr %272, ptr %28, align 8, !tbaa !5
  br label %242, !llvm.loop !43

273:                                              ; preds = %254
  %274 = load ptr, ptr %22, align 8, !tbaa !5
  %275 = load i32, ptr %19, align 4, !tbaa !21
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds %struct.stbtt_pack_range, ptr %274, i64 %276
  %278 = load ptr, ptr %25, align 8, !tbaa !5
  %279 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %278, i32 0, i32 8
  store ptr %277, ptr %279, align 8, !tbaa !44
  %280 = load i32, ptr %27, align 4, !tbaa !21
  %281 = load ptr, ptr %25, align 8, !tbaa !5
  %282 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %281, i32 0, i32 9
  store i32 %280, ptr %282, align 8, !tbaa !45
  %283 = load i32, ptr %27, align 4, !tbaa !21
  %284 = load i32, ptr %19, align 4, !tbaa !21
  %285 = add nsw i32 %284, %283
  store i32 %285, ptr %19, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #9
  store i32 0, ptr %29, align 4, !tbaa !21
  br label %286

286:                                              ; preds = %339, %273
  %287 = load i32, ptr %29, align 4, !tbaa !21
  %288 = load i32, ptr %27, align 4, !tbaa !21
  %289 = icmp slt i32 %287, %288
  br i1 %289, label %291, label %290

290:                                              ; preds = %286
  store i32 14, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  br label %342

291:                                              ; preds = %286
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
  %292 = load ptr, ptr %25, align 8, !tbaa !5
  %293 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %292, i32 0, i32 4
  %294 = load ptr, ptr %293, align 8, !tbaa !28
  %295 = load i32, ptr %29, align 4, !tbaa !21
  %296 = mul nsw i32 %295, 2
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds i16, ptr %294, i64 %297
  store ptr %298, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #9
  %299 = load ptr, ptr %25, align 8, !tbaa !5
  %300 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %299, i32 0, i32 8
  %301 = load ptr, ptr %300, align 8, !tbaa !44
  %302 = load i32, ptr %29, align 4, !tbaa !21
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds %struct.stbtt_pack_range, ptr %301, i64 %303
  store ptr %304, ptr %31, align 8, !tbaa !5
  %305 = load ptr, ptr %25, align 8, !tbaa !5
  %306 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %305, i32 0, i32 3
  %307 = load float, ptr %306, align 8, !tbaa !46
  %308 = load ptr, ptr %31, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.stbtt_pack_range, ptr %308, i32 0, i32 0
  store float %307, ptr %309, align 8, !tbaa !47
  %310 = load ptr, ptr %30, align 8, !tbaa !5
  %311 = getelementptr inbounds i16, ptr %310, i64 0
  %312 = load i16, ptr %311, align 2, !tbaa !29
  %313 = zext i16 %312 to i32
  %314 = load ptr, ptr %31, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.stbtt_pack_range, ptr %314, i32 0, i32 1
  store i32 %313, ptr %315, align 4, !tbaa !49
  %316 = load ptr, ptr %30, align 8, !tbaa !5
  %317 = getelementptr inbounds i16, ptr %316, i64 1
  %318 = load i16, ptr %317, align 2, !tbaa !29
  %319 = zext i16 %318 to i32
  %320 = load ptr, ptr %30, align 8, !tbaa !5
  %321 = getelementptr inbounds i16, ptr %320, i64 0
  %322 = load i16, ptr %321, align 2, !tbaa !29
  %323 = zext i16 %322 to i32
  %324 = sub nsw i32 %319, %323
  %325 = add nsw i32 %324, 1
  %326 = load ptr, ptr %31, align 8, !tbaa !5
  %327 = getelementptr inbounds %struct.stbtt_pack_range, ptr %326, i32 0, i32 2
  store i32 %325, ptr %327, align 8, !tbaa !50
  %328 = load ptr, ptr %20, align 8, !tbaa !5
  %329 = load i32, ptr %17, align 4, !tbaa !21
  %330 = sext i32 %329 to i64
  %331 = getelementptr inbounds %struct.stbtt_packedchar, ptr %328, i64 %330
  %332 = load ptr, ptr %31, align 8, !tbaa !5
  %333 = getelementptr inbounds %struct.stbtt_pack_range, ptr %332, i32 0, i32 3
  store ptr %331, ptr %333, align 8, !tbaa !51
  %334 = load ptr, ptr %31, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.stbtt_pack_range, ptr %334, i32 0, i32 2
  %336 = load i32, ptr %335, align 8, !tbaa !50
  %337 = load i32, ptr %17, align 4, !tbaa !21
  %338 = add nsw i32 %337, %336
  store i32 %338, ptr %17, align 4, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  br label %339

339:                                              ; preds = %291
  %340 = load i32, ptr %29, align 4, !tbaa !21
  %341 = add nsw i32 %340, 1
  store i32 %341, ptr %29, align 4, !tbaa !21
  br label %286, !llvm.loop !52

342:                                              ; preds = %290
  %343 = load ptr, ptr %21, align 8, !tbaa !5
  %344 = load i32, ptr %18, align 4, !tbaa !21
  %345 = sext i32 %344 to i64
  %346 = getelementptr inbounds %struct.stbrp_rect, ptr %343, i64 %345
  %347 = load ptr, ptr %25, align 8, !tbaa !5
  %348 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %347, i32 0, i32 7
  store ptr %346, ptr %348, align 8, !tbaa !53
  %349 = load i32, ptr %26, align 4, !tbaa !21
  %350 = load i32, ptr %18, align 4, !tbaa !21
  %351 = add nsw i32 %350, %349
  store i32 %351, ptr %18, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #9
  %352 = load ptr, ptr %25, align 8, !tbaa !5
  %353 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %352, i32 0, i32 6
  %354 = load ptr, ptr %25, align 8, !tbaa !5
  %355 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %354, i32 0, i32 8
  %356 = load ptr, ptr %355, align 8, !tbaa !44
  %357 = load ptr, ptr %25, align 8, !tbaa !5
  %358 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %357, i32 0, i32 9
  %359 = load i32, ptr %358, align 8, !tbaa !45
  %360 = load ptr, ptr %25, align 8, !tbaa !5
  %361 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %360, i32 0, i32 7
  %362 = load ptr, ptr %361, align 8, !tbaa !53
  %363 = call noundef i32 @_ZL31stbtt_PackFontRangesGatherRectsP18stbtt_pack_contextP14stbtt_fontinfoP16stbtt_pack_rangeiP10stbrp_rect(ptr noundef %13, ptr noundef %353, ptr noundef %356, i32 noundef %359, ptr noundef %362)
  store i32 %363, ptr %32, align 4, !tbaa !21
  %364 = getelementptr inbounds %struct.stbtt_pack_context, ptr %13, i32 0, i32 1
  %365 = load ptr, ptr %364, align 8, !tbaa !39
  %366 = load ptr, ptr %25, align 8, !tbaa !5
  %367 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %366, i32 0, i32 7
  %368 = load ptr, ptr %367, align 8, !tbaa !53
  %369 = load i32, ptr %32, align 4, !tbaa !21
  call void @_ZL16stbrp_pack_rectsP13stbrp_contextP10stbrp_recti(ptr noundef %365, ptr noundef %368, i32 noundef %369)
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #9
  store i32 0, ptr %33, align 4, !tbaa !21
  br label %370

370:                                              ; preds = %408, %342
  %371 = load i32, ptr %33, align 4, !tbaa !21
  %372 = load i32, ptr %32, align 4, !tbaa !21
  %373 = icmp slt i32 %371, %372
  br i1 %373, label %375, label %374

374:                                              ; preds = %370
  store i32 17, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #9
  br label %411

375:                                              ; preds = %370
  %376 = load ptr, ptr %25, align 8, !tbaa !5
  %377 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %376, i32 0, i32 7
  %378 = load ptr, ptr %377, align 8, !tbaa !53
  %379 = load i32, ptr %33, align 4, !tbaa !21
  %380 = sext i32 %379 to i64
  %381 = getelementptr inbounds %struct.stbrp_rect, ptr %378, i64 %380
  %382 = getelementptr inbounds %struct.stbrp_rect, ptr %381, i32 0, i32 5
  %383 = load i32, ptr %382, align 4, !tbaa !54
  %384 = icmp ne i32 %383, 0
  br i1 %384, label %385, label %407

385:                                              ; preds = %375
  %386 = load i32, ptr %23, align 4, !tbaa !21
  %387 = load ptr, ptr %25, align 8, !tbaa !5
  %388 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %387, i32 0, i32 7
  %389 = load ptr, ptr %388, align 8, !tbaa !53
  %390 = load i32, ptr %33, align 4, !tbaa !21
  %391 = sext i32 %390 to i64
  %392 = getelementptr inbounds %struct.stbrp_rect, ptr %389, i64 %391
  %393 = getelementptr inbounds %struct.stbrp_rect, ptr %392, i32 0, i32 4
  %394 = load i16, ptr %393, align 2, !tbaa !42
  %395 = zext i16 %394 to i32
  %396 = load ptr, ptr %25, align 8, !tbaa !5
  %397 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %396, i32 0, i32 7
  %398 = load ptr, ptr %397, align 8, !tbaa !53
  %399 = load i32, ptr %33, align 4, !tbaa !21
  %400 = sext i32 %399 to i64
  %401 = getelementptr inbounds %struct.stbrp_rect, ptr %398, i64 %400
  %402 = getelementptr inbounds %struct.stbrp_rect, ptr %401, i32 0, i32 2
  %403 = load i16, ptr %402, align 2, !tbaa !38
  %404 = zext i16 %403 to i32
  %405 = add nsw i32 %395, %404
  %406 = call noundef i32 @_ZL5ImMaxii(i32 noundef %386, i32 noundef %405)
  store i32 %406, ptr %23, align 4, !tbaa !21
  br label %407

407:                                              ; preds = %385, %375
  br label %408

408:                                              ; preds = %407
  %409 = load i32, ptr %33, align 4, !tbaa !21
  %410 = add nsw i32 %409, 1
  store i32 %410, ptr %33, align 4, !tbaa !21
  br label %370, !llvm.loop !55

411:                                              ; preds = %374
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  br label %412

412:                                              ; preds = %411
  %413 = load i64, ptr %24, align 8, !tbaa !22
  %414 = add i64 %413, 1
  store i64 %414, ptr %24, align 8, !tbaa !22
  br label %228, !llvm.loop !56

415:                                              ; preds = %233
  %416 = load i32, ptr %18, align 4, !tbaa !21
  %417 = load i32, ptr %5, align 4, !tbaa !21
  %418 = icmp eq i32 %416, %417
  br i1 %418, label %419, label %420

419:                                              ; preds = %415
  br label %422

420:                                              ; preds = %415
  call void @__assert_fail(ptr noundef @.str.151, ptr noundef @.str.10, i32 noundef 7382, ptr noundef @__PRETTY_FUNCTION__._ZN11ImFontAtlas5BuildEv) #8
  unreachable

421:                                              ; No predecessors!
  br label %422

422:                                              ; preds = %421, %419
  %423 = load i32, ptr %17, align 4, !tbaa !21
  %424 = load i32, ptr %5, align 4, !tbaa !21
  %425 = icmp eq i32 %423, %424
  br i1 %425, label %426, label %427

426:                                              ; preds = %422
  br label %429

427:                                              ; preds = %422
  call void @__assert_fail(ptr noundef @.str.152, ptr noundef @.str.10, i32 noundef 7383, ptr noundef @__PRETTY_FUNCTION__._ZN11ImFontAtlas5BuildEv) #8
  unreachable

428:                                              ; No predecessors!
  br label %429

429:                                              ; preds = %428, %426
  %430 = load i32, ptr %19, align 4, !tbaa !21
  %431 = load i32, ptr %6, align 4, !tbaa !21
  %432 = icmp eq i32 %430, %431
  br i1 %432, label %433, label %434

433:                                              ; preds = %429
  br label %436

434:                                              ; preds = %429
  call void @__assert_fail(ptr noundef @.str.153, ptr noundef @.str.10, i32 noundef 7384, ptr noundef @__PRETTY_FUNCTION__._ZN11ImFontAtlas5BuildEv) #8
  unreachable

435:                                              ; No predecessors!
  br label %436

436:                                              ; preds = %435, %433
  %437 = load i32, ptr %23, align 4, !tbaa !21
  %438 = call noundef i32 @_ZL17ImUpperPowerOfTwoi(i32 noundef %437)
  %439 = getelementptr inbounds %struct.ImFontAtlas, ptr %51, i32 0, i32 4
  store i32 %438, ptr %439, align 4, !tbaa !17
  %440 = getelementptr inbounds %struct.ImFontAtlas, ptr %51, i32 0, i32 3
  %441 = load i32, ptr %440, align 8, !tbaa !18
  %442 = getelementptr inbounds %struct.ImFontAtlas, ptr %51, i32 0, i32 4
  %443 = load i32, ptr %442, align 4, !tbaa !17
  %444 = mul nsw i32 %441, %443
  %445 = sext i32 %444 to i64
  %446 = call noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef %445)
  %447 = getelementptr inbounds %struct.ImFontAtlas, ptr %51, i32 0, i32 1
  store ptr %446, ptr %447, align 8, !tbaa !57
  %448 = getelementptr inbounds %struct.ImFontAtlas, ptr %51, i32 0, i32 1
  %449 = load ptr, ptr %448, align 8, !tbaa !57
  %450 = getelementptr inbounds %struct.ImFontAtlas, ptr %51, i32 0, i32 3
  %451 = load i32, ptr %450, align 8, !tbaa !18
  %452 = getelementptr inbounds %struct.ImFontAtlas, ptr %51, i32 0, i32 4
  %453 = load i32, ptr %452, align 4, !tbaa !17
  %454 = mul nsw i32 %451, %453
  %455 = sext i32 %454 to i64
  call void @llvm.memset.p0.i64(ptr align 1 %449, i8 0, i64 %455, i1 false)
  %456 = getelementptr inbounds %struct.ImFontAtlas, ptr %51, i32 0, i32 1
  %457 = load ptr, ptr %456, align 8, !tbaa !57
  %458 = getelementptr inbounds %struct.stbtt_pack_context, ptr %13, i32 0, i32 8
  store ptr %457, ptr %458, align 8, !tbaa !58
  %459 = getelementptr inbounds %struct.ImFontAtlas, ptr %51, i32 0, i32 4
  %460 = load i32, ptr %459, align 4, !tbaa !17
  %461 = getelementptr inbounds %struct.stbtt_pack_context, ptr %13, i32 0, i32 3
  store i32 %460, ptr %461, align 4, !tbaa !59
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #9
  store i64 0, ptr %34, align 8, !tbaa !22
  br label %462

462:                                              ; preds = %487, %436
  %463 = load i64, ptr %34, align 8, !tbaa !22
  %464 = getelementptr inbounds %struct.ImFontAtlas, ptr %51, i32 0, i32 8
  %465 = call noundef i64 @_ZNK8ImVectorIPN11ImFontAtlas15ImFontAtlasDataEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %464)
  %466 = icmp ult i64 %463, %465
  br i1 %466, label %468, label %467

467:                                              ; preds = %462
  store i32 20, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
  br label %490

468:                                              ; preds = %462
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #9
  %469 = getelementptr inbounds %struct.ImFontAtlas, ptr %51, i32 0, i32 8
  %470 = load i64, ptr %34, align 8, !tbaa !22
  %471 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIPN11ImFontAtlas15ImFontAtlasDataEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %469, i64 noundef %470)
  %472 = load ptr, ptr %471, align 8, !tbaa !5
  store ptr %472, ptr %35, align 8, !tbaa !5
  %473 = load ptr, ptr %35, align 8, !tbaa !5
  %474 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %473, i32 0, i32 6
  %475 = load ptr, ptr %35, align 8, !tbaa !5
  %476 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %475, i32 0, i32 8
  %477 = load ptr, ptr %476, align 8, !tbaa !44
  %478 = load ptr, ptr %35, align 8, !tbaa !5
  %479 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %478, i32 0, i32 9
  %480 = load i32, ptr %479, align 8, !tbaa !45
  %481 = load ptr, ptr %35, align 8, !tbaa !5
  %482 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %481, i32 0, i32 7
  %483 = load ptr, ptr %482, align 8, !tbaa !53
  %484 = call noundef i32 @_ZL35stbtt_PackFontRangesRenderIntoRectsP18stbtt_pack_contextP14stbtt_fontinfoP16stbtt_pack_rangeiP10stbrp_rect(ptr noundef %13, ptr noundef %474, ptr noundef %477, i32 noundef %480, ptr noundef %483)
  store i32 %484, ptr %14, align 4, !tbaa !21
  %485 = load ptr, ptr %35, align 8, !tbaa !5
  %486 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %485, i32 0, i32 7
  store ptr null, ptr %486, align 8, !tbaa !53
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #9
  br label %487

487:                                              ; preds = %468
  %488 = load i64, ptr %34, align 8, !tbaa !22
  %489 = add i64 %488, 1
  store i64 %489, ptr %34, align 8, !tbaa !22
  br label %462, !llvm.loop !60

490:                                              ; preds = %467
  call void @_ZL13stbtt_PackEndP18stbtt_pack_context(ptr noundef %13)
  %491 = load ptr, ptr %21, align 8, !tbaa !5
  call void @_ZN5ImGui7MemFreeEPv(ptr noundef %491)
  store ptr null, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #9
  store i64 0, ptr %36, align 8, !tbaa !22
  br label %492

492:                                              ; preds = %717, %490
  %493 = load i64, ptr %36, align 8, !tbaa !22
  %494 = getelementptr inbounds %struct.ImFontAtlas, ptr %51, i32 0, i32 8
  %495 = call noundef i64 @_ZNK8ImVectorIPN11ImFontAtlas15ImFontAtlasDataEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %494)
  %496 = icmp ult i64 %493, %495
  br i1 %496, label %498, label %497

497:                                              ; preds = %492
  store i32 23, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  br label %720

498:                                              ; preds = %492
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #9
  %499 = getelementptr inbounds %struct.ImFontAtlas, ptr %51, i32 0, i32 8
  %500 = load i64, ptr %36, align 8, !tbaa !22
  %501 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIPN11ImFontAtlas15ImFontAtlasDataEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %499, i64 noundef %500)
  %502 = load ptr, ptr %501, align 8, !tbaa !5
  store ptr %502, ptr %37, align 8, !tbaa !5
  %503 = load ptr, ptr %37, align 8, !tbaa !5
  %504 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %503, i32 0, i32 0
  %505 = load ptr, ptr %504, align 8, !tbaa !23
  %506 = getelementptr inbounds %struct.ImFont, ptr %505, i32 0, i32 4
  store ptr %51, ptr %506, align 8, !tbaa !61
  %507 = load ptr, ptr %37, align 8, !tbaa !5
  %508 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %507, i32 0, i32 3
  %509 = load float, ptr %508, align 8, !tbaa !46
  %510 = load ptr, ptr %37, align 8, !tbaa !5
  %511 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %510, i32 0, i32 0
  %512 = load ptr, ptr %511, align 8, !tbaa !23
  %513 = getelementptr inbounds %struct.ImFont, ptr %512, i32 0, i32 0
  store float %509, ptr %513, align 8, !tbaa !66
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #9
  %514 = load ptr, ptr %37, align 8, !tbaa !5
  %515 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %514, i32 0, i32 6
  %516 = load ptr, ptr %37, align 8, !tbaa !5
  %517 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %516, i32 0, i32 3
  %518 = load float, ptr %517, align 8, !tbaa !46
  %519 = call noundef float @_ZL25stbtt_ScaleForPixelHeightPK14stbtt_fontinfof(ptr noundef %515, float noundef %518)
  store float %519, ptr %38, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #9
  %520 = load ptr, ptr %37, align 8, !tbaa !5
  %521 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %520, i32 0, i32 6
  call void @_ZL21stbtt_GetFontVMetricsPK14stbtt_fontinfoPiS2_S2_(ptr noundef %521, ptr noundef %39, ptr noundef %40, ptr noundef %41)
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #9
  %522 = getelementptr inbounds %struct.ImFontAtlas, ptr %51, i32 0, i32 3
  %523 = load i32, ptr %522, align 8, !tbaa !18
  %524 = sitofp i32 %523 to float
  %525 = fdiv float 1.000000e+00, %524
  store float %525, ptr %42, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #9
  %526 = getelementptr inbounds %struct.ImFontAtlas, ptr %51, i32 0, i32 4
  %527 = load i32, ptr %526, align 4, !tbaa !17
  %528 = sitofp i32 %527 to float
  %529 = fdiv float 1.000000e+00, %528
  store float %529, ptr %43, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #9
  store i32 1, ptr %44, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #9
  store i32 0, ptr %45, align 4, !tbaa !21
  br label %530

530:                                              ; preds = %710, %498
  %531 = load i32, ptr %45, align 4, !tbaa !21
  %532 = load ptr, ptr %37, align 8, !tbaa !5
  %533 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %532, i32 0, i32 9
  %534 = load i32, ptr %533, align 8, !tbaa !45
  %535 = icmp slt i32 %531, %534
  br i1 %535, label %537, label %536

536:                                              ; preds = %530
  store i32 26, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #9
  br label %713

537:                                              ; preds = %530
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #9
  %538 = load ptr, ptr %37, align 8, !tbaa !5
  %539 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %538, i32 0, i32 8
  %540 = load ptr, ptr %539, align 8, !tbaa !44
  %541 = load i32, ptr %45, align 4, !tbaa !21
  %542 = sext i32 %541 to i64
  %543 = getelementptr inbounds %struct.stbtt_pack_range, ptr %540, i64 %542
  store ptr %543, ptr %46, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #9
  store i32 0, ptr %47, align 4, !tbaa !21
  br label %544

544:                                              ; preds = %706, %537
  %545 = load i32, ptr %47, align 4, !tbaa !21
  %546 = load ptr, ptr %46, align 8, !tbaa !5
  %547 = getelementptr inbounds %struct.stbtt_pack_range, ptr %546, i32 0, i32 2
  %548 = load i32, ptr %547, align 8, !tbaa !50
  %549 = icmp slt i32 %545, %548
  br i1 %549, label %551, label %550

550:                                              ; preds = %544
  store i32 29, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #9
  br label %709

551:                                              ; preds = %544
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #9
  %552 = load ptr, ptr %46, align 8, !tbaa !5
  %553 = getelementptr inbounds %struct.stbtt_pack_range, ptr %552, i32 0, i32 1
  %554 = load i32, ptr %553, align 4, !tbaa !49
  %555 = load i32, ptr %47, align 4, !tbaa !21
  %556 = add nsw i32 %554, %555
  store i32 %556, ptr %48, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #9
  %557 = load ptr, ptr %46, align 8, !tbaa !5
  %558 = getelementptr inbounds %struct.stbtt_pack_range, ptr %557, i32 0, i32 3
  %559 = load ptr, ptr %558, align 8, !tbaa !51
  %560 = load i32, ptr %47, align 4, !tbaa !21
  %561 = sext i32 %560 to i64
  %562 = getelementptr inbounds %struct.stbtt_packedchar, ptr %559, i64 %561
  store ptr %562, ptr %49, align 8, !tbaa !5
  %563 = load ptr, ptr %49, align 8, !tbaa !5
  %564 = getelementptr inbounds %struct.stbtt_packedchar, ptr %563, i32 0, i32 0
  %565 = load i16, ptr %564, align 4, !tbaa !67
  %566 = icmp ne i16 %565, 0
  br i1 %566, label %583, label %567

567:                                              ; preds = %551
  %568 = load ptr, ptr %49, align 8, !tbaa !5
  %569 = getelementptr inbounds %struct.stbtt_packedchar, ptr %568, i32 0, i32 2
  %570 = load i16, ptr %569, align 4, !tbaa !69
  %571 = icmp ne i16 %570, 0
  br i1 %571, label %583, label %572

572:                                              ; preds = %567
  %573 = load ptr, ptr %49, align 8, !tbaa !5
  %574 = getelementptr inbounds %struct.stbtt_packedchar, ptr %573, i32 0, i32 1
  %575 = load i16, ptr %574, align 2, !tbaa !70
  %576 = icmp ne i16 %575, 0
  br i1 %576, label %583, label %577

577:                                              ; preds = %572
  %578 = load ptr, ptr %49, align 8, !tbaa !5
  %579 = getelementptr inbounds %struct.stbtt_packedchar, ptr %578, i32 0, i32 3
  %580 = load i16, ptr %579, align 2, !tbaa !71
  %581 = icmp ne i16 %580, 0
  br i1 %581, label %583, label %582

582:                                              ; preds = %577
  store i32 31, ptr %8, align 4
  br label %703

583:                                              ; preds = %577, %572, %567, %551
  %584 = load ptr, ptr %37, align 8, !tbaa !5
  %585 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %584, i32 0, i32 0
  %586 = load ptr, ptr %585, align 8, !tbaa !23
  %587 = getelementptr inbounds %struct.ImFont, ptr %586, i32 0, i32 5
  %588 = load ptr, ptr %37, align 8, !tbaa !5
  %589 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %588, i32 0, i32 0
  %590 = load ptr, ptr %589, align 8, !tbaa !23
  %591 = getelementptr inbounds %struct.ImFont, ptr %590, i32 0, i32 5
  %592 = call noundef i64 @_ZNK8ImVectorIN6ImFont5GlyphEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %591)
  %593 = add i64 %592, 1
  call void @_ZN8ImVectorIN6ImFont5GlyphEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %587, i64 noundef %593)
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #9
  %594 = load ptr, ptr %37, align 8, !tbaa !5
  %595 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %594, i32 0, i32 0
  %596 = load ptr, ptr %595, align 8, !tbaa !23
  %597 = getelementptr inbounds %struct.ImFont, ptr %596, i32 0, i32 5
  %598 = call noundef nonnull align 4 dereferenceable(28) ptr @_ZN8ImVectorIN6ImFont5GlyphEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %597)
  store ptr %598, ptr %50, align 8, !tbaa !5
  %599 = load i32, ptr %48, align 4, !tbaa !21
  %600 = trunc i32 %599 to i16
  %601 = load ptr, ptr %50, align 8, !tbaa !5
  %602 = getelementptr inbounds %"struct.ImFont::Glyph", ptr %601, i32 0, i32 0
  store i16 %600, ptr %602, align 4, !tbaa !72
  %603 = load ptr, ptr %49, align 8, !tbaa !5
  %604 = getelementptr inbounds %struct.stbtt_packedchar, ptr %603, i32 0, i32 2
  %605 = load i16, ptr %604, align 4, !tbaa !69
  %606 = sext i16 %605 to i32
  %607 = load ptr, ptr %49, align 8, !tbaa !5
  %608 = getelementptr inbounds %struct.stbtt_packedchar, ptr %607, i32 0, i32 0
  %609 = load i16, ptr %608, align 4, !tbaa !67
  %610 = zext i16 %609 to i32
  %611 = sub nsw i32 %606, %610
  %612 = add nsw i32 %611, 1
  %613 = trunc i32 %612 to i16
  %614 = load ptr, ptr %50, align 8, !tbaa !5
  %615 = getelementptr inbounds %"struct.ImFont::Glyph", ptr %614, i32 0, i32 2
  store i16 %613, ptr %615, align 4, !tbaa !74
  %616 = load ptr, ptr %49, align 8, !tbaa !5
  %617 = getelementptr inbounds %struct.stbtt_packedchar, ptr %616, i32 0, i32 3
  %618 = load i16, ptr %617, align 2, !tbaa !71
  %619 = sext i16 %618 to i32
  %620 = load ptr, ptr %49, align 8, !tbaa !5
  %621 = getelementptr inbounds %struct.stbtt_packedchar, ptr %620, i32 0, i32 1
  %622 = load i16, ptr %621, align 2, !tbaa !70
  %623 = zext i16 %622 to i32
  %624 = sub nsw i32 %619, %623
  %625 = add nsw i32 %624, 1
  %626 = trunc i32 %625 to i16
  %627 = load ptr, ptr %50, align 8, !tbaa !5
  %628 = getelementptr inbounds %"struct.ImFont::Glyph", ptr %627, i32 0, i32 3
  store i16 %626, ptr %628, align 2, !tbaa !75
  %629 = load ptr, ptr %49, align 8, !tbaa !5
  %630 = getelementptr inbounds %struct.stbtt_packedchar, ptr %629, i32 0, i32 4
  %631 = load float, ptr %630, align 4, !tbaa !76
  %632 = fptosi float %631 to i16
  %633 = load ptr, ptr %50, align 8, !tbaa !5
  %634 = getelementptr inbounds %"struct.ImFont::Glyph", ptr %633, i32 0, i32 4
  store i16 %632, ptr %634, align 4, !tbaa !77
  %635 = load ptr, ptr %49, align 8, !tbaa !5
  %636 = getelementptr inbounds %struct.stbtt_packedchar, ptr %635, i32 0, i32 5
  %637 = load float, ptr %636, align 4, !tbaa !78
  %638 = load i32, ptr %39, align 4, !tbaa !21
  %639 = sitofp i32 %638 to float
  %640 = load float, ptr %38, align 4, !tbaa !20
  %641 = fmul float %639, %640
  %642 = fptosi float %641 to i32
  %643 = sitofp i32 %642 to float
  %644 = fadd float %637, %643
  %645 = fptosi float %644 to i16
  %646 = load ptr, ptr %50, align 8, !tbaa !5
  %647 = getelementptr inbounds %"struct.ImFont::Glyph", ptr %646, i32 0, i32 5
  store i16 %645, ptr %647, align 2, !tbaa !79
  %648 = load ptr, ptr %49, align 8, !tbaa !5
  %649 = getelementptr inbounds %struct.stbtt_packedchar, ptr %648, i32 0, i32 6
  %650 = load float, ptr %649, align 4, !tbaa !80
  %651 = fadd float %650, 1.000000e+00
  %652 = fptosi float %651 to i16
  %653 = load ptr, ptr %50, align 8, !tbaa !5
  %654 = getelementptr inbounds %"struct.ImFont::Glyph", ptr %653, i32 0, i32 1
  store i16 %652, ptr %654, align 2, !tbaa !81
  %655 = load ptr, ptr %49, align 8, !tbaa !5
  %656 = getelementptr inbounds %struct.stbtt_packedchar, ptr %655, i32 0, i32 0
  %657 = load i16, ptr %656, align 4, !tbaa !67
  %658 = uitofp i16 %657 to float
  %659 = fsub float %658, 5.000000e-01
  %660 = load float, ptr %42, align 4, !tbaa !20
  %661 = fmul float %659, %660
  %662 = load ptr, ptr %50, align 8, !tbaa !5
  %663 = getelementptr inbounds %"struct.ImFont::Glyph", ptr %662, i32 0, i32 6
  store float %661, ptr %663, align 4, !tbaa !82
  %664 = load ptr, ptr %49, align 8, !tbaa !5
  %665 = getelementptr inbounds %struct.stbtt_packedchar, ptr %664, i32 0, i32 1
  %666 = load i16, ptr %665, align 2, !tbaa !70
  %667 = uitofp i16 %666 to float
  %668 = fsub float %667, 5.000000e-01
  %669 = load float, ptr %43, align 4, !tbaa !20
  %670 = fmul float %668, %669
  %671 = load ptr, ptr %50, align 8, !tbaa !5
  %672 = getelementptr inbounds %"struct.ImFont::Glyph", ptr %671, i32 0, i32 7
  store float %670, ptr %672, align 4, !tbaa !83
  %673 = load ptr, ptr %49, align 8, !tbaa !5
  %674 = getelementptr inbounds %struct.stbtt_packedchar, ptr %673, i32 0, i32 0
  %675 = load i16, ptr %674, align 4, !tbaa !67
  %676 = uitofp i16 %675 to float
  %677 = fsub float %676, 5.000000e-01
  %678 = load ptr, ptr %50, align 8, !tbaa !5
  %679 = getelementptr inbounds %"struct.ImFont::Glyph", ptr %678, i32 0, i32 2
  %680 = load i16, ptr %679, align 4, !tbaa !74
  %681 = sext i16 %680 to i32
  %682 = sitofp i32 %681 to float
  %683 = fadd float %677, %682
  %684 = load float, ptr %42, align 4, !tbaa !20
  %685 = fmul float %683, %684
  %686 = load ptr, ptr %50, align 8, !tbaa !5
  %687 = getelementptr inbounds %"struct.ImFont::Glyph", ptr %686, i32 0, i32 8
  store float %685, ptr %687, align 4, !tbaa !84
  %688 = load ptr, ptr %49, align 8, !tbaa !5
  %689 = getelementptr inbounds %struct.stbtt_packedchar, ptr %688, i32 0, i32 1
  %690 = load i16, ptr %689, align 2, !tbaa !70
  %691 = uitofp i16 %690 to float
  %692 = fsub float %691, 5.000000e-01
  %693 = load ptr, ptr %50, align 8, !tbaa !5
  %694 = getelementptr inbounds %"struct.ImFont::Glyph", ptr %693, i32 0, i32 3
  %695 = load i16, ptr %694, align 2, !tbaa !75
  %696 = sext i16 %695 to i32
  %697 = sitofp i32 %696 to float
  %698 = fadd float %692, %697
  %699 = load float, ptr %43, align 4, !tbaa !20
  %700 = fmul float %698, %699
  %701 = load ptr, ptr %50, align 8, !tbaa !5
  %702 = getelementptr inbounds %"struct.ImFont::Glyph", ptr %701, i32 0, i32 9
  store float %700, ptr %702, align 4, !tbaa !85
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #9
  store i32 0, ptr %8, align 4
  br label %703

703:                                              ; preds = %583, %582
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #9
  %704 = load i32, ptr %8, align 4
  switch i32 %704, label %725 [
    i32 0, label %705
    i32 31, label %706
  ]

705:                                              ; preds = %703
  br label %706

706:                                              ; preds = %705, %703
  %707 = load i32, ptr %47, align 4, !tbaa !21
  %708 = add nsw i32 %707, 1
  store i32 %708, ptr %47, align 4, !tbaa !21
  br label %544, !llvm.loop !86

709:                                              ; preds = %550
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #9
  br label %710

710:                                              ; preds = %709
  %711 = load i32, ptr %45, align 4, !tbaa !21
  %712 = add nsw i32 %711, 1
  store i32 %712, ptr %45, align 4, !tbaa !21
  br label %530, !llvm.loop !87

713:                                              ; preds = %536
  %714 = load ptr, ptr %37, align 8, !tbaa !5
  %715 = getelementptr inbounds %"struct.ImFontAtlas::ImFontAtlasData", ptr %714, i32 0, i32 0
  %716 = load ptr, ptr %715, align 8, !tbaa !23
  call void @_ZN6ImFont16BuildLookupTableEv(ptr noundef nonnull align 8 dereferenceable(120) %716)
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #9
  br label %717

717:                                              ; preds = %713
  %718 = load i64, ptr %36, align 8, !tbaa !22
  %719 = add i64 %718, 1
  store i64 %719, ptr %36, align 8, !tbaa !22
  br label %492, !llvm.loop !88

720:                                              ; preds = %497
  %721 = load ptr, ptr %20, align 8, !tbaa !5
  call void @_ZN5ImGui7MemFreeEPv(ptr noundef %721)
  %722 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN5ImGui7MemFreeEPv(ptr noundef %722)
  store ptr null, ptr %20, align 8, !tbaa !5
  store ptr null, ptr %22, align 8, !tbaa !5
  call void @_ZN11ImFontAtlas14ClearInputDataEv(ptr noundef nonnull align 8 dereferenceable(96) %51)
  call void @_ZN11ImFontAtlas19RenderCustomTexDataEv(ptr noundef nonnull align 8 dereferenceable(96) %51)
  store i1 true, ptr %2, align 1
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 56, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  br label %723

723:                                              ; preds = %720, %164
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  %724 = load i1, ptr %2, align 1
  ret i1 %724

725:                                              ; preds = %703
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN11ImFontAtlas21GetGlyphRangesDefaultEv(ptr noundef nonnull align 8 dereferenceable(96)) #0 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL27stbtt_GetFontOffsetForIndexPKhi(ptr noundef, i32 noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL14stbtt_InitFontP14stbtt_fontinfoPKhi(ptr noundef, ptr noundef, i32 noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL15stbtt_PackBeginP18stbtt_pack_contextPhiiiiPv(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #4

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL31stbtt_PackFontRangesGatherRectsP18stbtt_pack_contextP14stbtt_fontinfoP16stbtt_pack_rangeiP10stbrp_rect(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL35stbtt_PackFontRangesRenderIntoRectsP18stbtt_pack_contextP14stbtt_fontinfoP16stbtt_pack_rangeiP10stbrp_rect(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL13stbtt_PackEndP18stbtt_pack_context(ptr noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef float @_ZL25stbtt_ScaleForPixelHeightPK14stbtt_fontinfof(ptr noundef, float noundef) #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorIN6ImFont5GlyphEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK8ImVectorIN6ImFont5GlyphEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(28) ptr @_ZN8ImVectorIN6ImFont5GlyphEE4backEv(ptr noundef nonnull align 8 dereferenceable(24)) #6 align 2

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 = { 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 #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 = { 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 #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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTS11ImFontAtlas", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !12, i64 32, !12, i64 40, !14, i64 48, !16, i64 72}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS6ImVec2", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!"_ZTS8ImVectorIP6ImFontE", !15, i64 0, !15, i64 8, !6, i64 16}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTS8ImVectorIPN11ImFontAtlas15ImFontAtlasDataEE", !15, i64 0, !15, i64 8, !6, i64 16}
!17 = !{!10, !11, i64 28}
!18 = !{!10, !11, i64 24}
!19 = !{i64 0, i64 4, !20, i64 4, i64 4, !20}
!20 = !{!13, !13, i64 0}
!21 = !{!11, !11, i64 0}
!22 = !{!15, !15, i64 0}
!23 = !{!24, !6, i64 0}
!24 = !{!"_ZTSN11ImFontAtlas15ImFontAtlasDataE", !6, i64 0, !6, i64 8, !15, i64 16, !13, i64 24, !6, i64 32, !11, i64 40, !25, i64 48, !6, i64 104, !6, i64 112, !11, i64 120}
!25 = !{!"_ZTS14stbtt_fontinfo", !6, i64 0, !6, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52}
!26 = !{!24, !6, i64 8}
!27 = !{!24, !11, i64 40}
!28 = !{!24, !6, i64 32}
!29 = !{!30, !30, i64 0}
!30 = !{!"short", !7, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = distinct !{!33, !32}
!34 = !{!12, !13, i64 0}
!35 = !{!36, !30, i64 4}
!36 = !{!"_ZTS10stbrp_rect", !11, i64 0, !30, i64 4, !30, i64 6, !30, i64 8, !30, i64 10, !11, i64 12}
!37 = !{!12, !13, i64 4}
!38 = !{!36, !30, i64 6}
!39 = !{!40, !6, i64 8}
!40 = !{!"_ZTS18stbtt_pack_context", !6, i64 0, !6, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !6, i64 40, !6, i64 48}
!41 = !{!36, !30, i64 8}
!42 = !{!36, !30, i64 10}
!43 = distinct !{!43, !32}
!44 = !{!24, !6, i64 112}
!45 = !{!24, !11, i64 120}
!46 = !{!24, !13, i64 24}
!47 = !{!48, !13, i64 0}
!48 = !{!"_ZTS16stbtt_pack_range", !13, i64 0, !11, i64 4, !11, i64 8, !6, i64 16}
!49 = !{!48, !11, i64 4}
!50 = !{!48, !11, i64 8}
!51 = !{!48, !6, i64 16}
!52 = distinct !{!52, !32}
!53 = !{!24, !6, i64 104}
!54 = !{!36, !11, i64 12}
!55 = distinct !{!55, !32}
!56 = distinct !{!56, !32}
!57 = !{!10, !6, i64 8}
!58 = !{!40, !6, i64 40}
!59 = !{!40, !11, i64 20}
!60 = distinct !{!60, !32}
!61 = !{!62, !6, i64 24}
!62 = !{!"_ZTS6ImFont", !13, i64 0, !13, i64 4, !12, i64 8, !30, i64 16, !6, i64 24, !63, i64 32, !6, i64 56, !13, i64 64, !64, i64 72, !65, i64 96}
!63 = !{!"_ZTS8ImVectorIN6ImFont5GlyphEE", !15, i64 0, !15, i64 8, !6, i64 16}
!64 = !{!"_ZTS8ImVectorIfE", !15, i64 0, !15, i64 8, !6, i64 16}
!65 = !{!"_ZTS8ImVectorIiE", !15, i64 0, !15, i64 8, !6, i64 16}
!66 = !{!62, !13, i64 0}
!67 = !{!68, !30, i64 0}
!68 = !{!"_ZTS16stbtt_packedchar", !30, i64 0, !30, i64 2, !30, i64 4, !30, i64 6, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24}
!69 = !{!68, !30, i64 4}
!70 = !{!68, !30, i64 2}
!71 = !{!68, !30, i64 6}
!72 = !{!73, !30, i64 0}
!73 = !{!"_ZTSN6ImFont5GlyphE", !30, i64 0, !30, i64 2, !30, i64 4, !30, i64 6, !30, i64 8, !30, i64 10, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24}
!74 = !{!73, !30, i64 4}
!75 = !{!73, !30, i64 6}
!76 = !{!68, !13, i64 8}
!77 = !{!73, !30, i64 8}
!78 = !{!68, !13, i64 12}
!79 = !{!73, !30, i64 10}
!80 = !{!68, !13, i64 16}
!81 = !{!73, !30, i64 2}
!82 = !{!73, !13, i64 12}
!83 = !{!73, !13, i64 16}
!84 = !{!73, !13, i64 20}
!85 = !{!73, !13, i64 24}
!86 = distinct !{!86, !32}
!87 = distinct !{!87, !32}
!88 = distinct !{!88, !32}


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

%struct.ImVec2 = type { float, float }
%struct.stbtt_pack_context = type { ptr, ptr, i32, i32, i32, i32, i32, i32, ptr, ptr }
%struct.stbrp_rect = type { i32, i16, i16, i16, i16, i32 }
%struct.stbtt_pack_range = type { float, i32, i32, ptr }
%struct.stbtt_packedchar = type { i16, i16, i16, i16, float, float, float, float, float }

@_ZL14TEX_ATLAS_SIZE = external hidden local_unnamed_addr global %struct.ImVec2, align 4
@.str.10 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.147 = external hidden unnamed_addr constant [21 x i8], align 1
@__PRETTY_FUNCTION__._ZN11ImFontAtlas5BuildEv = external hidden unnamed_addr constant [26 x i8], align 1
@.str.148 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.149 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.150 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.151 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.153 = external hidden unnamed_addr constant [40 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui7MemFreeEPv(ptr noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6ImFont8IsLoadedEv(ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK8ImVectorIPN11ImFontAtlas15ImFontAtlasDataEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN11ImFontAtlas5BuildEv(ptr noundef nonnull align 8 dereferenceable(96) %0) local_unnamed_addr #3 align 2 {
  %2 = alloca %struct.ImVec2, align 8
  %3 = alloca %struct.stbtt_pack_context, align 8
  %4 = alloca %struct.stbrp_rect, align 4
  %5 = alloca %struct.ImVec2, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = getelementptr inbounds i8, ptr %0, i64 72
  %10 = tail call noundef i64 @_ZNK8ImVectorIPN11ImFontAtlas15ImFontAtlasDataEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %.not = icmp eq i64 %10, 0
  br i1 %.not, label %11, label %.split

11:                                               ; preds = %1
  tail call void @__assert_fail(ptr noundef nonnull @.str.147, ptr noundef nonnull @.str.10, i32 noundef 7290, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN11ImFontAtlas5BuildEv) #7
  unreachable

.split:                                           ; preds = %1
  store ptr null, ptr %0, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 28
  store i32 0, ptr %12, align 4, !tbaa !16
  %13 = getelementptr inbounds i8, ptr %0, i64 24
  store i32 0, ptr %13, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %2, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %14 = getelementptr inbounds i8, ptr %0, i64 40
  %15 = load i64, ptr %2, align 8
  store i64 %15, ptr %14, align 8
  %16 = getelementptr inbounds i8, ptr %0, i64 32
  store i64 %15, ptr %16, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  call void @_ZN11ImFontAtlas12ClearTexDataEv(ptr noundef nonnull align 8 dereferenceable(96) %0)
  %17 = call noundef i64 @_ZNK8ImVectorIPN11ImFontAtlas15ImFontAtlasDataEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %.not214255 = icmp eq i64 %17, 0
  br i1 %.not214255, label %.thread.thread, label %.lr.ph260

.lr.ph260:                                        ; preds = %.split, %.critedge3
  %.0174258 = phi i32 [ %.1175.lcssa.fr, %.critedge3 ], [ 0, %.split ]
  %.0178257 = phi i32 [ %.1179.lcssa, %.critedge3 ], [ 0, %.split ]
  %.0183256 = phi i64 [ %55, %.critedge3 ], [ 0, %.split ]
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIPN11ImFontAtlas15ImFontAtlasDataEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.0183256)
  %19 = load ptr, ptr %18, align 8, !tbaa !18
  %20 = load ptr, ptr %19, align 8, !tbaa !19
  %.not209 = icmp eq ptr %20, null
  br i1 %.not209, label %.critedge, label %21

21:                                               ; preds = %.lr.ph260
  %22 = call noundef zeroext i1 @_ZNK6ImFont8IsLoadedEv(ptr noundef nonnull align 8 dereferenceable(120) %20)
  br i1 %22, label %.critedge, label %23

.critedge:                                        ; preds = %.lr.ph260, %21
  call void @__assert_fail(ptr noundef nonnull @.str.148, ptr noundef nonnull @.str.10, i32 noundef 7303, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN11ImFontAtlas5BuildEv) #7
  unreachable

23:                                               ; preds = %21
  %24 = getelementptr inbounds i8, ptr %19, i64 8
  %25 = load ptr, ptr %24, align 8, !tbaa !22
  %26 = getelementptr inbounds i8, ptr %19, i64 40
  %27 = load i32, ptr %26, align 8, !tbaa !23
  %28 = call noundef i32 @_ZL27stbtt_GetFontOffsetForIndexPKhi(ptr noundef %25, i32 noundef %27)
  %29 = icmp sgt i32 %28, -1
  br i1 %29, label %31, label %30

30:                                               ; preds = %23
  call void @__assert_fail(ptr noundef nonnull @.str.149, ptr noundef nonnull @.str.10, i32 noundef 7305, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN11ImFontAtlas5BuildEv) #7
  unreachable

31:                                               ; preds = %23
  %32 = getelementptr inbounds i8, ptr %19, i64 48
  %33 = load ptr, ptr %24, align 8, !tbaa !22
  %34 = call noundef i32 @_ZL14stbtt_InitFontP14stbtt_fontinfoPKhi(ptr noundef nonnull %32, ptr noundef %33, i32 noundef %28)
  %.not210.not = icmp eq i32 %34, 0
  br i1 %.not210.not, label %.thread229, label %35

35:                                               ; preds = %31
  %36 = getelementptr inbounds i8, ptr %19, i64 32
  %37 = load ptr, ptr %36, align 8, !tbaa !24
  %.not211 = icmp eq ptr %37, null
  br i1 %.not211, label %38, label %40

38:                                               ; preds = %35
  %39 = call noundef ptr @_ZN11ImFontAtlas21GetGlyphRangesDefaultEv(ptr noundef nonnull align 8 dereferenceable(96) %0)
  store ptr %39, ptr %36, align 8, !tbaa !24
  br label %40

40:                                               ; preds = %38, %35
  %41 = phi ptr [ %39, %38 ], [ %37, %35 ]
  %42 = load i16, ptr %41, align 2, !tbaa !25
  %.not212247 = icmp eq i16 %42, 0
  br i1 %.not212247, label %.critedge3, label %.lr.ph

.lr.ph:                                           ; preds = %40, %46
  %43 = phi i16 [ %54, %46 ], [ %42, %40 ]
  %.1175250 = phi i32 [ %51, %46 ], [ %.0174258, %40 ]
  %.1179249 = phi i32 [ %52, %46 ], [ %.0178257, %40 ]
  %.0187248 = phi ptr [ %53, %46 ], [ %41, %40 ]
  %44 = getelementptr inbounds i8, ptr %.0187248, i64 2
  %45 = load i16, ptr %44, align 2, !tbaa !25
  %.not213 = icmp eq i16 %45, 0
  br i1 %.not213, label %.critedge3, label %46

46:                                               ; preds = %.lr.ph
  %47 = zext i16 %45 to i32
  %48 = zext i16 %43 to i32
  %49 = add i32 %.1175250, 1
  %50 = sub i32 %49, %48
  %51 = add i32 %50, %47
  %52 = add nsw i32 %.1179249, 1
  %53 = getelementptr inbounds i8, ptr %.0187248, i64 4
  %54 = load i16, ptr %53, align 2, !tbaa !25
  %.not212 = icmp eq i16 %54, 0
  br i1 %.not212, label %.critedge3, label %.lr.ph, !llvm.loop !27

.critedge3:                                       ; preds = %46, %.lr.ph, %40
  %.1179.lcssa = phi i32 [ %.0178257, %40 ], [ %.1179249, %.lr.ph ], [ %52, %46 ]
  %.1175.lcssa = phi i32 [ %.0174258, %40 ], [ %.1175250, %.lr.ph ], [ %51, %46 ]
  %.1175.lcssa.fr = freeze i32 %.1175.lcssa
  %55 = add nuw i64 %.0183256, 1
  %56 = call noundef i64 @_ZNK8ImVectorIPN11ImFontAtlas15ImFontAtlasDataEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %.not214.not = icmp ult i64 %55, %56
  br i1 %.not214.not, label %.lr.ph260, label %.thread, !llvm.loop !29

.thread:                                          ; preds = %.critedge3
  %57 = icmp sgt i32 %.1175.lcssa.fr, 1000
  %spec.select = select i1 %57, i32 1024, i32 512
  br label %.thread.thread

.thread.thread:                                   ; preds = %.thread, %.split
  %.0174.lcssa339 = phi i32 [ 0, %.split ], [ %.1175.lcssa.fr, %.thread ]
  %.0178.lcssa338 = phi i32 [ 0, %.split ], [ %.1179.lcssa, %.thread ]
  %58 = phi i32 [ 512, %.split ], [ %spec.select, %.thread ]
  store i32 %58, ptr %13, align 8, !tbaa !17
  store i32 0, ptr %12, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %3) #8
  %59 = call noundef i32 @_ZL15stbtt_PackBeginP18stbtt_pack_contextPhiiiiPv(ptr noundef nonnull %3, ptr noundef null, i32 noundef %58, i32 noundef 32768, i32 noundef 0, i32 noundef 1, ptr noundef null)
  %.not215 = icmp eq i32 %59, 0
  br i1 %.not215, label %60, label %61

60:                                               ; preds = %.thread.thread
  call void @__assert_fail(ptr noundef nonnull @.str.150, ptr noundef nonnull @.str.10, i32 noundef 7324, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN11ImFontAtlas5BuildEv) #7
  unreachable

61:                                               ; preds = %.thread.thread
  call void @_ZL25stbtt_PackSetOversamplingP18stbtt_pack_contextjj(ptr noundef nonnull %3, i32 noundef 1, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #8
  %62 = getelementptr inbounds i8, ptr %4, i64 4
  %63 = getelementptr inbounds i8, ptr %4, i64 6
  %64 = load <2 x float>, ptr @_ZL14TEX_ATLAS_SIZE, align 4, !tbaa !30
  %65 = fptoui <2 x float> %64 to <2 x i16>
  store <2 x i16> %65, ptr %62, align 4, !tbaa !25
  %66 = getelementptr inbounds i8, ptr %3, i64 8
  %67 = load ptr, ptr %66, align 8, !tbaa !31
  call void @_ZL16stbrp_pack_rectsP13stbrp_contextP10stbrp_recti(ptr noundef %67, ptr noundef nonnull %4, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %68 = getelementptr inbounds i8, ptr %4, i64 8
  %69 = load i16, ptr %68, align 4, !tbaa !33
  %70 = uitofp i16 %69 to float
  %71 = getelementptr inbounds i8, ptr %4, i64 10
  %72 = load i16, ptr %71, align 2, !tbaa !35
  %73 = uitofp i16 %72 to float
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %5, float noundef %70, float noundef %73)
  %74 = load i64, ptr %5, align 8
  store i64 %74, ptr %16, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  %75 = sext i32 %.0174.lcssa339 to i64
  %76 = mul nsw i64 %75, 28
  %77 = call noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef %76)
  %78 = shl nsw i64 %75, 4
  %79 = call noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef %78)
  %80 = sext i32 %.0178.lcssa338 to i64
  %81 = mul nsw i64 %80, 24
  %82 = call noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef %81)
  call void @llvm.memset.p0.i64(ptr align 4 %77, i8 0, i64 %76, i1 false)
  call void @llvm.memset.p0.i64(ptr align 4 %79, i8 0, i64 %78, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %82, i8 0, i64 %81, i1 false)
  %83 = load i16, ptr %71, align 2, !tbaa !35
  %84 = zext i16 %83 to i32
  %85 = load i16, ptr %63, align 2, !tbaa !36
  %86 = zext i16 %85 to i32
  %87 = add nuw nsw i32 %86, %84
  %88 = call noundef i64 @_ZNK8ImVectorIPN11ImFontAtlas15ImFontAtlasDataEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %.not312 = icmp eq i64 %88, 0
  br i1 %.not312, label %._crit_edge291, label %.lr.ph290

._crit_edge291:                                   ; preds = %._crit_edge282, %61
  %.0199.lcssa = phi i32 [ %87, %61 ], [ %.1200.lcssa, %._crit_edge282 ]
  %.0192.lcssa = phi i32 [ 0, %61 ], [ %125, %._crit_edge282 ]
  %.0190.lcssa = phi i32 [ 0, %61 ], [ %130, %._crit_edge282 ]
  %.0188.lcssa = phi i32 [ 0, %61 ], [ %.1189.lcssa, %._crit_edge282 ]
  %89 = icmp eq i32 %.0190.lcssa, %.0174.lcssa339
  br i1 %89, label %170, label %169

.lr.ph290:                                        ; preds = %61, %._crit_edge282
  %.0188288 = phi i32 [ %.1189.lcssa, %._crit_edge282 ], [ 0, %61 ]
  %.0190287 = phi i32 [ %130, %._crit_edge282 ], [ 0, %61 ]
  %.0192286 = phi i32 [ %125, %._crit_edge282 ], [ 0, %61 ]
  %.0199285 = phi i32 [ %.1200.lcssa, %._crit_edge282 ], [ %87, %61 ]
  %.0202284 = phi i64 [ %152, %._crit_edge282 ], [ 0, %61 ]
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIPN11ImFontAtlas15ImFontAtlasDataEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.0202284)
  %91 = load ptr, ptr %90, align 8, !tbaa !18
  %92 = getelementptr inbounds i8, ptr %91, i64 32
  %93 = load ptr, ptr %92, align 8, !tbaa !24
  %94 = load i16, ptr %93, align 2, !tbaa !25
  %.not220264 = icmp eq i16 %94, 0
  br i1 %.not220264, label %.critedge5.thread, label %.lr.ph268

.critedge5.thread:                                ; preds = %.lr.ph290
  %95 = zext nneg i32 %.0192286 to i64
  %96 = getelementptr inbounds %struct.stbtt_pack_range, ptr %82, i64 %95
  %97 = getelementptr inbounds i8, ptr %91, i64 112
  store ptr %96, ptr %97, align 8, !tbaa !37
  %98 = getelementptr inbounds i8, ptr %91, i64 120
  store i32 0, ptr %98, align 8, !tbaa !38
  br label %._crit_edge

.lr.ph268:                                        ; preds = %.lr.ph290, %111
  %99 = phi i16 [ %119, %111 ], [ %94, %.lr.ph290 ]
  %.0196267 = phi ptr [ %118, %111 ], [ %93, %.lr.ph290 ]
  %.0197266 = phi i32 [ %117, %111 ], [ 0, %.lr.ph290 ]
  %.0198265 = phi i32 [ %116, %111 ], [ 0, %.lr.ph290 ]
  %100 = getelementptr inbounds i8, ptr %.0196267, i64 2
  %101 = load i16, ptr %100, align 2, !tbaa !25
  %.not221 = icmp eq i16 %101, 0
  br i1 %.not221, label %.critedge5, label %111

.critedge5:                                       ; preds = %.lr.ph268
  %102 = zext nneg i32 %.0192286 to i64
  %103 = getelementptr inbounds %struct.stbtt_pack_range, ptr %82, i64 %102
  %104 = getelementptr inbounds i8, ptr %91, i64 112
  store ptr %103, ptr %104, align 8, !tbaa !37
  %105 = getelementptr inbounds i8, ptr %91, i64 120
  store i32 %.0197266, ptr %105, align 8, !tbaa !38
  %106 = add nuw nsw i32 %.0197266, %.0192286
  %.not313 = icmp eq i32 %.0197266, 0
  br i1 %.not313, label %._crit_edge, label %.lr.ph276

.lr.ph276:                                        ; preds = %.critedge5.thread345, %.critedge5
  %107 = phi i32 [ %124, %.critedge5.thread345 ], [ %106, %.critedge5 ]
  %108 = phi ptr [ %121, %.critedge5.thread345 ], [ %103, %.critedge5 ]
  %.0197.lcssa350 = phi i32 [ %117, %.critedge5.thread345 ], [ %.0197266, %.critedge5 ]
  %.0198.lcssa349 = phi i32 [ %116, %.critedge5.thread345 ], [ %.0198265, %.critedge5 ]
  %109 = getelementptr inbounds i8, ptr %91, i64 24
  %110 = load float, ptr %109, align 8, !tbaa !39
  %wide.trip.count = zext i32 %.0197.lcssa350 to i64
  br label %136

111:                                              ; preds = %.lr.ph268
  %112 = zext i16 %101 to i32
  %113 = zext i16 %99 to i32
  %114 = add i32 %.0198265, 1
  %115 = sub i32 %114, %113
  %116 = add i32 %115, %112
  %117 = add nuw nsw i32 %.0197266, 1
  %118 = getelementptr inbounds i8, ptr %.0196267, i64 4
  %119 = load i16, ptr %118, align 2, !tbaa !25
  %.not220 = icmp eq i16 %119, 0
  br i1 %.not220, label %.critedge5.thread345, label %.lr.ph268, !llvm.loop !40

.critedge5.thread345:                             ; preds = %111
  %120 = zext nneg i32 %.0192286 to i64
  %121 = getelementptr inbounds %struct.stbtt_pack_range, ptr %82, i64 %120
  %122 = getelementptr inbounds i8, ptr %91, i64 112
  store ptr %121, ptr %122, align 8, !tbaa !37
  %123 = getelementptr inbounds i8, ptr %91, i64 120
  store i32 %117, ptr %123, align 8, !tbaa !38
  %124 = add nuw nsw i32 %117, %.0192286
  br label %.lr.ph276

._crit_edge:                                      ; preds = %136, %.critedge5.thread, %.critedge5
  %125 = phi i32 [ %106, %.critedge5 ], [ %.0192286, %.critedge5.thread ], [ %107, %136 ]
  %126 = phi ptr [ %103, %.critedge5 ], [ %96, %.critedge5.thread ], [ %108, %136 ]
  %.0197.lcssa344 = phi i32 [ 0, %.critedge5 ], [ 0, %.critedge5.thread ], [ %.0197.lcssa350, %136 ]
  %.0198.lcssa343 = phi i32 [ %.0198265, %.critedge5 ], [ 0, %.critedge5.thread ], [ %.0198.lcssa349, %136 ]
  %.1189.lcssa = phi i32 [ %.0188288, %.critedge5 ], [ %.0188288, %.critedge5.thread ], [ %151, %136 ]
  %127 = sext i32 %.0190287 to i64
  %128 = getelementptr inbounds %struct.stbrp_rect, ptr %79, i64 %127
  %129 = getelementptr inbounds i8, ptr %91, i64 104
  store ptr %128, ptr %129, align 8, !tbaa !41
  %130 = add nsw i32 %.0198.lcssa343, %.0190287
  %131 = getelementptr inbounds i8, ptr %91, i64 48
  %132 = call noundef i32 @_ZL31stbtt_PackFontRangesGatherRectsP18stbtt_pack_contextP14stbtt_fontinfoP16stbtt_pack_rangeiP10stbrp_rect(ptr noundef nonnull %3, ptr noundef nonnull %131, ptr noundef %126, i32 noundef %.0197.lcssa344, ptr noundef %128)
  %133 = load ptr, ptr %66, align 8, !tbaa !31
  %134 = load ptr, ptr %129, align 8, !tbaa !41
  call void @_ZL16stbrp_pack_rectsP13stbrp_contextP10stbrp_recti(ptr noundef %133, ptr noundef %134, i32 noundef %132)
  %135 = icmp sgt i32 %132, 0
  br i1 %135, label %.lr.ph281.preheader, label %._crit_edge282

.lr.ph281.preheader:                              ; preds = %._crit_edge
  %wide.trip.count326 = zext nneg i32 %132 to i64
  br label %.lr.ph281

136:                                              ; preds = %.lr.ph276, %136
  %indvars.iv = phi i64 [ 0, %.lr.ph276 ], [ %indvars.iv.next, %136 ]
  %.1189275 = phi i32 [ %.0188288, %.lr.ph276 ], [ %151, %136 ]
  %.idx = shl nsw i64 %indvars.iv, 2
  %137 = getelementptr inbounds i8, ptr %93, i64 %.idx
  %138 = getelementptr inbounds %struct.stbtt_pack_range, ptr %108, i64 %indvars.iv
  store float %110, ptr %138, align 8, !tbaa !42
  %139 = load i16, ptr %137, align 2, !tbaa !25
  %140 = zext i16 %139 to i32
  %141 = getelementptr inbounds i8, ptr %138, i64 4
  store i32 %140, ptr %141, align 4, !tbaa !44
  %142 = getelementptr inbounds i8, ptr %137, i64 2
  %143 = load i16, ptr %142, align 2, !tbaa !25
  %144 = zext i16 %143 to i32
  %145 = sub nsw i32 %144, %140
  %146 = add nsw i32 %145, 1
  %147 = getelementptr inbounds i8, ptr %138, i64 8
  store i32 %146, ptr %147, align 8, !tbaa !45
  %148 = sext i32 %.1189275 to i64
  %149 = getelementptr inbounds %struct.stbtt_packedchar, ptr %77, i64 %148
  %150 = getelementptr inbounds i8, ptr %138, i64 16
  store ptr %149, ptr %150, align 8, !tbaa !46
  %151 = add nsw i32 %146, %.1189275
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %136, !llvm.loop !47

._crit_edge282:                                   ; preds = %168, %._crit_edge
  %.1200.lcssa = phi i32 [ %.0199285, %._crit_edge ], [ %.2201, %168 ]
  %152 = add nuw i64 %.0202284, 1
  %153 = call noundef i64 @_ZNK8ImVectorIPN11ImFontAtlas15ImFontAtlasDataEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %154 = icmp ult i64 %152, %153
  br i1 %154, label %.lr.ph290, label %._crit_edge291, !llvm.loop !48

.lr.ph281:                                        ; preds = %.lr.ph281.preheader, %168
  %indvars.iv323 = phi i64 [ 0, %.lr.ph281.preheader ], [ %indvars.iv.next324, %168 ]
  %.1200278 = phi i32 [ %.0199285, %.lr.ph281.preheader ], [ %.2201, %168 ]
  %155 = load ptr, ptr %129, align 8, !tbaa !41
  %156 = getelementptr inbounds %struct.stbrp_rect, ptr %155, i64 %indvars.iv323
  %157 = getelementptr inbounds i8, ptr %156, i64 12
  %158 = load i32, ptr %157, align 4, !tbaa !49
  %.not222 = icmp eq i32 %158, 0
  br i1 %.not222, label %168, label %159

159:                                              ; preds = %.lr.ph281
  %160 = getelementptr inbounds i8, ptr %156, i64 10
  %161 = load i16, ptr %160, align 2, !tbaa !35
  %162 = zext i16 %161 to i32
  %163 = getelementptr inbounds i8, ptr %156, i64 6
  %164 = load i16, ptr %163, align 2, !tbaa !36
  %165 = zext i16 %164 to i32
  %166 = add nuw nsw i32 %165, %162
  %167 = call noundef i32 @_ZL5ImMaxii(i32 noundef %.1200278, i32 noundef %166)
  br label %168

168:                                              ; preds = %.lr.ph281, %159
  %.2201 = phi i32 [ %167, %159 ], [ %.1200278, %.lr.ph281 ]
  %indvars.iv.next324 = add nuw nsw i64 %indvars.iv323, 1
  %exitcond327.not = icmp eq i64 %indvars.iv.next324, %wide.trip.count326
  br i1 %exitcond327.not, label %._crit_edge282, label %.lr.ph281, !llvm.loop !50

169:                                              ; preds = %._crit_edge291
  call void @__assert_fail(ptr noundef nonnull @.str.151, ptr noundef nonnull @.str.10, i32 noundef 7382, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN11ImFontAtlas5BuildEv) #7
  unreachable

170:                                              ; preds = %._crit_edge291
  %171 = icmp eq i32 %.0188.lcssa, %.0174.lcssa339
  br i1 %171, label %173, label %172

172:                                              ; preds = %170
  call void @__assert_fail(ptr noundef nonnull @.str.152, ptr noundef nonnull @.str.10, i32 noundef 7383, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN11ImFontAtlas5BuildEv) #7
  unreachable

173:                                              ; preds = %170
  %174 = icmp eq i32 %.0192.lcssa, %.0178.lcssa338
  br i1 %174, label %176, label %175

175:                                              ; preds = %173
  call void @__assert_fail(ptr noundef nonnull @.str.153, ptr noundef nonnull @.str.10, i32 noundef 7384, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN11ImFontAtlas5BuildEv) #7
  unreachable

176:                                              ; preds = %173
  %177 = call noundef i32 @_ZL17ImUpperPowerOfTwoi(i32 noundef %.0199.lcssa)
  store i32 %177, ptr %12, align 4, !tbaa !16
  %178 = load i32, ptr %13, align 8, !tbaa !17
  %179 = mul nsw i32 %178, %177
  %180 = sext i32 %179 to i64
  %181 = call noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef %180)
  %182 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %181, ptr %182, align 8, !tbaa !51
  %183 = load i32, ptr %13, align 8, !tbaa !17
  %184 = load i32, ptr %12, align 4, !tbaa !16
  %185 = mul nsw i32 %184, %183
  %186 = sext i32 %185 to i64
  call void @llvm.memset.p0.i64(ptr align 1 %181, i8 0, i64 %186, i1 false)
  %187 = load ptr, ptr %182, align 8, !tbaa !51
  %188 = getelementptr inbounds i8, ptr %3, i64 40
  store ptr %187, ptr %188, align 8, !tbaa !52
  %189 = load i32, ptr %12, align 4, !tbaa !16
  %190 = getelementptr inbounds i8, ptr %3, i64 20
  store i32 %189, ptr %190, align 4, !tbaa !53
  %191 = call noundef i64 @_ZNK8ImVectorIPN11ImFontAtlas15ImFontAtlasDataEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %.not314 = icmp eq i64 %191, 0
  br i1 %.not314, label %._crit_edge299, label %.lr.ph298

._crit_edge299:                                   ; preds = %.lr.ph298, %176
  call void @_ZL13stbtt_PackEndP18stbtt_pack_context(ptr noundef nonnull %3)
  call void @_ZN5ImGui7MemFreeEPv(ptr noundef %79)
  %192 = call noundef i64 @_ZNK8ImVectorIPN11ImFontAtlas15ImFontAtlasDataEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %.not315 = icmp eq i64 %192, 0
  br i1 %.not315, label %._crit_edge311, label %.lr.ph310

.lr.ph298:                                        ; preds = %176, %.lr.ph298
  %.0193296 = phi i64 [ %203, %.lr.ph298 ], [ 0, %176 ]
  %193 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIPN11ImFontAtlas15ImFontAtlasDataEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.0193296)
  %194 = load ptr, ptr %193, align 8, !tbaa !18
  %195 = getelementptr inbounds i8, ptr %194, i64 48
  %196 = getelementptr inbounds i8, ptr %194, i64 112
  %197 = load ptr, ptr %196, align 8, !tbaa !37
  %198 = getelementptr inbounds i8, ptr %194, i64 120
  %199 = load i32, ptr %198, align 8, !tbaa !38
  %200 = getelementptr inbounds i8, ptr %194, i64 104
  %201 = load ptr, ptr %200, align 8, !tbaa !41
  %202 = call noundef i32 @_ZL35stbtt_PackFontRangesRenderIntoRectsP18stbtt_pack_contextP14stbtt_fontinfoP16stbtt_pack_rangeiP10stbrp_rect(ptr noundef nonnull %3, ptr noundef nonnull %195, ptr noundef %197, i32 noundef %199, ptr noundef %201)
  store ptr null, ptr %200, align 8, !tbaa !41
  %203 = add nuw i64 %.0193296, 1
  %204 = call noundef i64 @_ZNK8ImVectorIPN11ImFontAtlas15ImFontAtlasDataEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %205 = icmp ult i64 %203, %204
  br i1 %205, label %.lr.ph298, label %._crit_edge299, !llvm.loop !54

._crit_edge311:                                   ; preds = %._crit_edge307, %._crit_edge299
  call void @_ZN5ImGui7MemFreeEPv(ptr noundef %77)
  call void @_ZN5ImGui7MemFreeEPv(ptr noundef %82)
  call void @_ZN11ImFontAtlas14ClearInputDataEv(ptr noundef nonnull align 8 dereferenceable(96) %0)
  call void @_ZN11ImFontAtlas19RenderCustomTexDataEv(ptr noundef nonnull align 8 dereferenceable(96) %0)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #8
  br label %.thread229

.lr.ph310:                                        ; preds = %._crit_edge299, %._crit_edge307
  %.0191308 = phi i64 [ %223, %._crit_edge307 ], [ 0, %._crit_edge299 ]
  %206 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIPN11ImFontAtlas15ImFontAtlasDataEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.0191308)
  %207 = load ptr, ptr %206, align 8, !tbaa !18
  %208 = load ptr, ptr %207, align 8, !tbaa !19
  %209 = getelementptr inbounds i8, ptr %208, i64 24
  store ptr %0, ptr %209, align 8, !tbaa !55
  %210 = getelementptr inbounds i8, ptr %207, i64 24
  %211 = load float, ptr %210, align 8, !tbaa !39
  store float %211, ptr %208, align 8, !tbaa !60
  %212 = getelementptr inbounds i8, ptr %207, i64 48
  %213 = call noundef float @_ZL25stbtt_ScaleForPixelHeightPK14stbtt_fontinfof(ptr noundef nonnull %212, float noundef %211)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #8
  call void @_ZL21stbtt_GetFontVMetricsPK14stbtt_fontinfoPiS2_S2_(ptr noundef nonnull %212, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %214 = load <2 x i32>, ptr %13, align 8, !tbaa !61
  %215 = sitofp <2 x i32> %214 to <2 x float>
  %216 = fdiv <2 x float> <float 1.000000e+00, float 1.000000e+00>, %215
  %217 = shufflevector <2 x float> %216, <2 x float> poison, <4 x i32> <i32 0, i32 1, i32 0, i32 1>
  %218 = getelementptr inbounds i8, ptr %207, i64 120
  %219 = load i32, ptr %218, align 8, !tbaa !38
  %220 = icmp sgt i32 %219, 0
  br i1 %220, label %.lr.ph306, label %._crit_edge307

.lr.ph306:                                        ; preds = %.lr.ph310
  %221 = getelementptr inbounds i8, ptr %207, i64 112
  br label %226

._crit_edge307:                                   ; preds = %._crit_edge303, %.lr.ph310
  %222 = load ptr, ptr %207, align 8, !tbaa !19
  call void @_ZN6ImFont16BuildLookupTableEv(ptr noundef nonnull align 8 dereferenceable(120) %222)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  %223 = add nuw i64 %.0191308, 1
  %224 = call noundef i64 @_ZNK8ImVectorIPN11ImFontAtlas15ImFontAtlasDataEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %225 = icmp ult i64 %223, %224
  br i1 %225, label %.lr.ph310, label %._crit_edge311, !llvm.loop !62

226:                                              ; preds = %.lr.ph306, %._crit_edge303
  %227 = phi i32 [ %219, %.lr.ph306 ], [ %235, %._crit_edge303 ]
  %indvars.iv331 = phi i64 [ 0, %.lr.ph306 ], [ %indvars.iv.next332, %._crit_edge303 ]
  %228 = load ptr, ptr %221, align 8, !tbaa !37
  %229 = getelementptr inbounds %struct.stbtt_pack_range, ptr %228, i64 %indvars.iv331
  %230 = getelementptr inbounds i8, ptr %229, i64 8
  %231 = load i32, ptr %230, align 8, !tbaa !45
  %232 = icmp sgt i32 %231, 0
  br i1 %232, label %.lr.ph302, label %._crit_edge303

.lr.ph302:                                        ; preds = %226
  %233 = getelementptr inbounds i8, ptr %229, i64 4
  %234 = getelementptr inbounds i8, ptr %229, i64 16
  br label %238

._crit_edge303.loopexit:                          ; preds = %296
  %.pre334 = load i32, ptr %218, align 8, !tbaa !38
  br label %._crit_edge303

._crit_edge303:                                   ; preds = %._crit_edge303.loopexit, %226
  %235 = phi i32 [ %.pre334, %._crit_edge303.loopexit ], [ %227, %226 ]
  %indvars.iv.next332 = add nuw nsw i64 %indvars.iv331, 1
  %236 = sext i32 %235 to i64
  %237 = icmp slt i64 %indvars.iv.next332, %236
  br i1 %237, label %226, label %._crit_edge307, !llvm.loop !63

238:                                              ; preds = %.lr.ph302, %296
  %239 = phi i32 [ %231, %.lr.ph302 ], [ %297, %296 ]
  %indvars.iv328 = phi i64 [ 0, %.lr.ph302 ], [ %indvars.iv.next329, %296 ]
  %240 = load i32, ptr %233, align 4, !tbaa !44
  %241 = trunc nuw nsw i64 %indvars.iv328 to i32
  %242 = add nsw i32 %240, %241
  %243 = load ptr, ptr %234, align 8, !tbaa !46
  %244 = getelementptr inbounds %struct.stbtt_packedchar, ptr %243, i64 %indvars.iv328
  %245 = load i16, ptr %244, align 4, !tbaa !64
  %.not216 = icmp eq i16 %245, 0
  br i1 %.not216, label %246, label %255

246:                                              ; preds = %238
  %247 = getelementptr inbounds i8, ptr %244, i64 4
  %248 = load i16, ptr %247, align 4, !tbaa !66
  %.not217 = icmp eq i16 %248, 0
  br i1 %.not217, label %249, label %255

249:                                              ; preds = %246
  %250 = getelementptr inbounds i8, ptr %244, i64 2
  %251 = load i16, ptr %250, align 2, !tbaa !67
  %.not218 = icmp eq i16 %251, 0
  br i1 %.not218, label %252, label %255

252:                                              ; preds = %249
  %253 = getelementptr inbounds i8, ptr %244, i64 6
  %254 = load i16, ptr %253, align 2, !tbaa !68
  %.not219 = icmp eq i16 %254, 0
  br i1 %.not219, label %296, label %255

255:                                              ; preds = %252, %249, %246, %238
  %256 = load ptr, ptr %207, align 8, !tbaa !19
  %257 = getelementptr inbounds i8, ptr %256, i64 32
  %258 = call noundef i64 @_ZNK8ImVectorIN6ImFont5GlyphEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %257)
  %259 = add i64 %258, 1
  call void @_ZN8ImVectorIN6ImFont5GlyphEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %257, i64 noundef %259)
  %260 = load ptr, ptr %207, align 8, !tbaa !19
  %261 = getelementptr inbounds i8, ptr %260, i64 32
  %262 = call noundef nonnull align 4 dereferenceable(28) ptr @_ZN8ImVectorIN6ImFont5GlyphEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %261)
  %263 = trunc i32 %242 to i16
  store i16 %263, ptr %262, align 4, !tbaa !69
  %264 = getelementptr inbounds i8, ptr %244, i64 4
  %265 = getelementptr inbounds i8, ptr %262, i64 4
  %266 = load <2 x i16>, ptr %264, align 4, !tbaa !25
  %267 = load <2 x i16>, ptr %244, align 4, !tbaa !25
  %268 = sub <2 x i16> %266, %267
  %269 = add <2 x i16> %268, <i16 1, i16 1>
  store <2 x i16> %269, ptr %265, align 4, !tbaa !25
  %270 = getelementptr inbounds i8, ptr %244, i64 8
  %271 = load float, ptr %270, align 4, !tbaa !71
  %272 = getelementptr inbounds i8, ptr %262, i64 8
  %273 = getelementptr inbounds i8, ptr %244, i64 12
  %274 = load float, ptr %273, align 4, !tbaa !72
  %275 = load i32, ptr %6, align 4, !tbaa !61
  %276 = sitofp i32 %275 to float
  %277 = fmul float %213, %276
  %278 = fptosi float %277 to i32
  %279 = sitofp i32 %278 to float
  %280 = fadd float %274, %279
  %281 = insertelement <2 x float> poison, float %271, i64 0
  %282 = insertelement <2 x float> %281, float %280, i64 1
  %283 = fptosi <2 x float> %282 to <2 x i16>
  store <2 x i16> %283, ptr %272, align 4, !tbaa !25
  %284 = getelementptr inbounds i8, ptr %244, i64 16
  %285 = load float, ptr %284, align 4, !tbaa !73
  %286 = fadd float %285, 1.000000e+00
  %287 = fptosi float %286 to i16
  %288 = getelementptr inbounds i8, ptr %262, i64 2
  store i16 %287, ptr %288, align 2, !tbaa !74
  %289 = getelementptr inbounds i8, ptr %262, i64 12
  %290 = uitofp <2 x i16> %267 to <2 x float>
  %291 = sitofp <2 x i16> %269 to <2 x float>
  %292 = fadd <2 x float> %290, <float -5.000000e-01, float -5.000000e-01>
  %293 = fadd <2 x float> %292, %291
  %294 = shufflevector <2 x float> %292, <2 x float> %293, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
  %295 = fmul <4 x float> %217, %294
  store <4 x float> %295, ptr %289, align 4, !tbaa !30
  %.pre = load i32, ptr %230, align 8, !tbaa !45
  br label %296

296:                                              ; preds = %252, %255
  %297 = phi i32 [ %239, %252 ], [ %.pre, %255 ]
  %indvars.iv.next329 = add nuw nsw i64 %indvars.iv328, 1
  %298 = sext i32 %297 to i64
  %299 = icmp slt i64 %indvars.iv.next329, %298
  br i1 %299, label %238, label %._crit_edge303.loopexit, !llvm.loop !75

.thread229:                                       ; preds = %31, %._crit_edge311
  %.not214237 = phi i1 [ true, %._crit_edge311 ], [ false, %31 ]
  ret i1 %.not214237
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN11ImFontAtlas21GetGlyphRangesDefaultEv(ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL27stbtt_GetFontOffsetForIndexPKhi(ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL14stbtt_InitFontP14stbtt_fontinfoPKhi(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL15stbtt_PackBeginP18stbtt_pack_contextPhiiiiPv(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL31stbtt_PackFontRangesGatherRectsP18stbtt_pack_contextP14stbtt_fontinfoP16stbtt_pack_rangeiP10stbrp_rect(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL35stbtt_PackFontRangesRenderIntoRectsP18stbtt_pack_contextP14stbtt_fontinfoP16stbtt_pack_rangeiP10stbrp_rect(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL13stbtt_PackEndP18stbtt_pack_context(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef float @_ZL25stbtt_ScaleForPixelHeightPK14stbtt_fontinfof(ptr noundef, float noundef) local_unnamed_addr #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorIN6ImFont5GlyphEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK8ImVectorIN6ImFont5GlyphEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

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

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 = { 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 #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 = { 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 #7 = { noreturn nounwind }
attributes #8 = { 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, !7, i64 0}
!6 = !{!"_ZTS11ImFontAtlas", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !11, i64 32, !11, i64 40, !13, i64 48, !15, i64 72}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTS6ImVec2", !12, i64 0, !12, i64 4}
!12 = !{!"float", !8, i64 0}
!13 = !{!"_ZTS8ImVectorIP6ImFontE", !14, i64 0, !14, i64 8, !7, i64 16}
!14 = !{!"long", !8, i64 0}
!15 = !{!"_ZTS8ImVectorIPN11ImFontAtlas15ImFontAtlasDataEE", !14, i64 0, !14, i64 8, !7, i64 16}
!16 = !{!6, !10, i64 28}
!17 = !{!6, !10, i64 24}
!18 = !{!7, !7, i64 0}
!19 = !{!20, !7, i64 0}
!20 = !{!"_ZTSN11ImFontAtlas15ImFontAtlasDataE", !7, i64 0, !7, i64 8, !14, i64 16, !12, i64 24, !7, i64 32, !10, i64 40, !21, i64 48, !7, i64 104, !7, i64 112, !10, i64 120}
!21 = !{!"_ZTS14stbtt_fontinfo", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52}
!22 = !{!20, !7, i64 8}
!23 = !{!20, !10, i64 40}
!24 = !{!20, !7, i64 32}
!25 = !{!26, !26, i64 0}
!26 = !{!"short", !8, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
!30 = !{!12, !12, i64 0}
!31 = !{!32, !7, i64 8}
!32 = !{!"_ZTS18stbtt_pack_context", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !7, i64 40, !7, i64 48}
!33 = !{!34, !26, i64 8}
!34 = !{!"_ZTS10stbrp_rect", !10, i64 0, !26, i64 4, !26, i64 6, !26, i64 8, !26, i64 10, !10, i64 12}
!35 = !{!34, !26, i64 10}
!36 = !{!34, !26, i64 6}
!37 = !{!20, !7, i64 112}
!38 = !{!20, !10, i64 120}
!39 = !{!20, !12, i64 24}
!40 = distinct !{!40, !28}
!41 = !{!20, !7, i64 104}
!42 = !{!43, !12, i64 0}
!43 = !{!"_ZTS16stbtt_pack_range", !12, i64 0, !10, i64 4, !10, i64 8, !7, i64 16}
!44 = !{!43, !10, i64 4}
!45 = !{!43, !10, i64 8}
!46 = !{!43, !7, i64 16}
!47 = distinct !{!47, !28}
!48 = distinct !{!48, !28}
!49 = !{!34, !10, i64 12}
!50 = distinct !{!50, !28}
!51 = !{!6, !7, i64 8}
!52 = !{!32, !7, i64 40}
!53 = !{!32, !10, i64 20}
!54 = distinct !{!54, !28}
!55 = !{!56, !7, i64 24}
!56 = !{!"_ZTS6ImFont", !12, i64 0, !12, i64 4, !11, i64 8, !26, i64 16, !7, i64 24, !57, i64 32, !7, i64 56, !12, i64 64, !58, i64 72, !59, i64 96}
!57 = !{!"_ZTS8ImVectorIN6ImFont5GlyphEE", !14, i64 0, !14, i64 8, !7, i64 16}
!58 = !{!"_ZTS8ImVectorIfE", !14, i64 0, !14, i64 8, !7, i64 16}
!59 = !{!"_ZTS8ImVectorIiE", !14, i64 0, !14, i64 8, !7, i64 16}
!60 = !{!56, !12, i64 0}
!61 = !{!10, !10, i64 0}
!62 = distinct !{!62, !28}
!63 = distinct !{!63, !28}
!64 = !{!65, !26, i64 0}
!65 = !{!"_ZTS16stbtt_packedchar", !26, i64 0, !26, i64 2, !26, i64 4, !26, i64 6, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24}
!66 = !{!65, !26, i64 4}
!67 = !{!65, !26, i64 2}
!68 = !{!65, !26, i64 6}
!69 = !{!70, !26, i64 0}
!70 = !{!"_ZTSN6ImFont5GlyphE", !26, i64 0, !26, i64 2, !26, i64 4, !26, i64 6, !26, i64 8, !26, i64 10, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24}
!71 = !{!65, !12, i64 8}
!72 = !{!65, !12, i64 12}
!73 = !{!65, !12, i64 16}
!74 = !{!70, !26, i64 2}
!75 = distinct !{!75, !28}


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