; LLVM IR from Dragons-Lake/REI :: sources/REI_Integration/3rdParty/nanovg (nanovg)

; 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.FONStextIter = type { float, float, float, float, float, float, i32, i16, i16, ptr, i32, ptr, ptr, ptr, i32 }
%struct.FONSquad = type { float, float, float, float, float, float, float, float }
%struct.NVGcontext = type { %struct.NVGparams, ptr, i32, i32, float, float, [32 x %struct.NVGstate], i32, ptr, float, float, float, float, ptr, [4 x i32], i32, i32, i32, i32, i32 }
%struct.NVGparams = type { ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.NVGstate = type { %struct.NVGcompositeOperationState, %struct.NVGpaint, %struct.NVGpaint, float, float, i32, i32, float, [6 x float], %struct.NVGscissor, float, float, float, float, i32, i32 }
%struct.NVGcompositeOperationState = type { i32, i32, i32, i32 }
%struct.NVGpaint = type { [6 x float], [2 x float], float, float, %struct.NVGcolor, %struct.NVGcolor, i32 }
%struct.NVGcolor = type { %union.anon }
%union.anon = type { [4 x float] }
%struct.NVGscissor = type { [6 x float], [2 x float] }
%struct.NVGvertex = type { float, float, float, float }

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

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

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

; Function Attrs: nounwind uwtable
declare hidden ptr @nvg__getState(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @nvgTransformPoint(ptr noundef, ptr noundef, ptr noundef, float noundef, float noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @nvg__maxi(i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local float @nvgText(ptr noundef %0, float noundef %1, float noundef %2, ptr noundef %3, ptr noundef %4) #2 {
  %6 = alloca float, align 4
  %7 = alloca ptr, align 8
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %struct.FONStextIter, align 8
  %14 = alloca %struct.FONStextIter, align 8
  %15 = alloca %struct.FONSquad, align 4
  %16 = alloca ptr, align 8
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca [8 x float], align 16
  store ptr %0, ptr %7, align 8, !tbaa !5
  store float %1, ptr %8, align 4, !tbaa !9
  store float %2, ptr %9, align 4, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = call ptr @nvg__getState(ptr noundef %23)
  store ptr %24, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 80, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %25 = load ptr, ptr %12, align 8, !tbaa !5
  %26 = call float @nvg__getFontScale(ptr noundef %25)
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.NVGcontext, ptr %27, i32 0, i32 12
  %29 = load float, ptr %28, align 4, !tbaa !11
  %30 = fmul float %26, %29
  store float %30, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %31 = load float, ptr %17, align 4, !tbaa !9
  %32 = fdiv float 1.000000e+00, %31
  store float %32, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 0, ptr %20, align 4, !tbaa !15
  %33 = load ptr, ptr %11, align 8, !tbaa !5
  %34 = icmp eq ptr %33, null
  br i1 %34, label %35, label %40

35:                                               ; preds = %5
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  %38 = call i64 @strlen(ptr noundef %37) #6
  %39 = getelementptr inbounds i8, ptr %36, i64 %38
  store ptr %39, ptr %11, align 8, !tbaa !5
  br label %40

40:                                               ; preds = %35, %5
  %41 = load ptr, ptr %12, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.NVGstate, ptr %41, i32 0, i32 15
  %43 = load i32, ptr %42, align 4, !tbaa !16
  %44 = icmp eq i32 %43, -1
  br i1 %44, label %45, label %47

45:                                               ; preds = %40
  %46 = load float, ptr %8, align 4, !tbaa !9
  store float %46, ptr %6, align 4
  store i32 1, ptr %21, align 4
  br label %297

47:                                               ; preds = %40
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.NVGcontext, ptr %48, i32 0, i32 13
  %50 = load ptr, ptr %49, align 8, !tbaa !22
  %51 = load ptr, ptr %12, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.NVGstate, ptr %51, i32 0, i32 10
  %53 = load float, ptr %52, align 4, !tbaa !23
  %54 = load float, ptr %17, align 4, !tbaa !9
  %55 = fmul float %53, %54
  call void @fonsSetSize(ptr noundef %50, float noundef %55)
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.NVGcontext, ptr %56, i32 0, i32 13
  %58 = load ptr, ptr %57, align 8, !tbaa !22
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.NVGstate, ptr %59, i32 0, i32 11
  %61 = load float, ptr %60, align 4, !tbaa !24
  %62 = load float, ptr %17, align 4, !tbaa !9
  %63 = fmul float %61, %62
  call void @fonsSetSpacing(ptr noundef %58, float noundef %63)
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.NVGcontext, ptr %64, i32 0, i32 13
  %66 = load ptr, ptr %65, align 8, !tbaa !22
  %67 = load ptr, ptr %12, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.NVGstate, ptr %67, i32 0, i32 13
  %69 = load float, ptr %68, align 4, !tbaa !25
  %70 = load float, ptr %17, align 4, !tbaa !9
  %71 = fmul float %69, %70
  call void @fonsSetBlur(ptr noundef %66, float noundef %71)
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.NVGcontext, ptr %72, i32 0, i32 13
  %74 = load ptr, ptr %73, align 8, !tbaa !22
  %75 = load ptr, ptr %12, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.NVGstate, ptr %75, i32 0, i32 14
  %77 = load i32, ptr %76, align 4, !tbaa !26
  call void @fonsSetAlign(ptr noundef %74, i32 noundef %77)
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.NVGcontext, ptr %78, i32 0, i32 13
  %80 = load ptr, ptr %79, align 8, !tbaa !22
  %81 = load ptr, ptr %12, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.NVGstate, ptr %81, i32 0, i32 15
  %83 = load i32, ptr %82, align 4, !tbaa !16
  call void @fonsSetFont(ptr noundef %80, i32 noundef %83)
  %84 = load ptr, ptr %11, align 8, !tbaa !5
  %85 = load ptr, ptr %10, align 8, !tbaa !5
  %86 = ptrtoint ptr %84 to i64
  %87 = ptrtoint ptr %85 to i64
  %88 = sub i64 %86, %87
  %89 = trunc i64 %88 to i32
  %90 = call i32 @nvg__maxi(i32 noundef 2, i32 noundef %89)
  %91 = mul nsw i32 %90, 6
  store i32 %91, ptr %19, align 4, !tbaa !15
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = load i32, ptr %19, align 4, !tbaa !15
  %94 = call ptr @nvg__allocTempVerts(ptr noundef %92, i32 noundef %93)
  store ptr %94, ptr %16, align 8, !tbaa !5
  %95 = load ptr, ptr %16, align 8, !tbaa !5
  %96 = icmp eq ptr %95, null
  br i1 %96, label %97, label %99

97:                                               ; preds = %47
  %98 = load float, ptr %8, align 4, !tbaa !9
  store float %98, ptr %6, align 4
  store i32 1, ptr %21, align 4
  br label %297

99:                                               ; preds = %47
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.NVGcontext, ptr %100, i32 0, i32 13
  %102 = load ptr, ptr %101, align 8, !tbaa !22
  %103 = load float, ptr %8, align 4, !tbaa !9
  %104 = load float, ptr %17, align 4, !tbaa !9
  %105 = fmul float %103, %104
  %106 = load float, ptr %9, align 4, !tbaa !9
  %107 = load float, ptr %17, align 4, !tbaa !9
  %108 = fmul float %106, %107
  %109 = load ptr, ptr %10, align 8, !tbaa !5
  %110 = load ptr, ptr %11, align 8, !tbaa !5
  %111 = call i32 @fonsTextIterInit(ptr noundef %102, ptr noundef %13, float noundef %105, float noundef %108, ptr noundef %109, ptr noundef %110)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %13, i64 80, i1 false), !tbaa.struct !27
  br label %112

112:                                              ; preds = %289, %99
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.NVGcontext, ptr %113, i32 0, i32 13
  %115 = load ptr, ptr %114, align 8, !tbaa !22
  %116 = call i32 @fonsTextIterNext(ptr noundef %115, ptr noundef %13, ptr noundef %15)
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %118, label %290

118:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #5
  %119 = getelementptr inbounds %struct.FONStextIter, ptr %13, i32 0, i32 10
  %120 = load i32, ptr %119, align 8, !tbaa !30
  %121 = icmp eq i32 %120, -1
  br i1 %121, label %122, label %144

122:                                              ; preds = %118
  %123 = load ptr, ptr %7, align 8, !tbaa !5
  %124 = call i32 @nvg__allocTextAtlas(ptr noundef %123)
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %127, label %126

126:                                              ; preds = %122
  store i32 3, ptr %21, align 4
  br label %287

127:                                              ; preds = %122
  %128 = load i32, ptr %20, align 4, !tbaa !15
  %129 = icmp ne i32 %128, 0
  br i1 %129, label %130, label %134

130:                                              ; preds = %127
  %131 = load ptr, ptr %7, align 8, !tbaa !5
  %132 = load ptr, ptr %16, align 8, !tbaa !5
  %133 = load i32, ptr %20, align 4, !tbaa !15
  call void @nvg__renderText(ptr noundef %131, ptr noundef %132, i32 noundef %133)
  store i32 0, ptr %20, align 4, !tbaa !15
  br label %134

134:                                              ; preds = %130, %127
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %14, i64 80, i1 false), !tbaa.struct !27
  %135 = load ptr, ptr %7, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.NVGcontext, ptr %135, i32 0, i32 13
  %137 = load ptr, ptr %136, align 8, !tbaa !22
  %138 = call i32 @fonsTextIterNext(ptr noundef %137, ptr noundef %13, ptr noundef %15)
  %139 = getelementptr inbounds %struct.FONStextIter, ptr %13, i32 0, i32 10
  %140 = load i32, ptr %139, align 8, !tbaa !30
  %141 = icmp eq i32 %140, -1
  br i1 %141, label %142, label %143

142:                                              ; preds = %134
  store i32 3, ptr %21, align 4
  br label %287

143:                                              ; preds = %134
  br label %144

144:                                              ; preds = %143, %118
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %13, i64 80, i1 false), !tbaa.struct !27
  %145 = getelementptr inbounds [8 x float], ptr %22, i64 0, i64 0
  %146 = getelementptr inbounds [8 x float], ptr %22, i64 0, i64 1
  %147 = load ptr, ptr %12, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.NVGstate, ptr %147, i32 0, i32 8
  %149 = getelementptr inbounds [6 x float], ptr %148, i64 0, i64 0
  %150 = getelementptr inbounds %struct.FONSquad, ptr %15, i32 0, i32 0
  %151 = load float, ptr %150, align 4, !tbaa !32
  %152 = load float, ptr %18, align 4, !tbaa !9
  %153 = fmul float %151, %152
  %154 = getelementptr inbounds %struct.FONSquad, ptr %15, i32 0, i32 1
  %155 = load float, ptr %154, align 4, !tbaa !34
  %156 = load float, ptr %18, align 4, !tbaa !9
  %157 = fmul float %155, %156
  call void @nvgTransformPoint(ptr noundef %145, ptr noundef %146, ptr noundef %149, float noundef %153, float noundef %157)
  %158 = getelementptr inbounds [8 x float], ptr %22, i64 0, i64 2
  %159 = getelementptr inbounds [8 x float], ptr %22, i64 0, i64 3
  %160 = load ptr, ptr %12, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.NVGstate, ptr %160, i32 0, i32 8
  %162 = getelementptr inbounds [6 x float], ptr %161, i64 0, i64 0
  %163 = getelementptr inbounds %struct.FONSquad, ptr %15, i32 0, i32 4
  %164 = load float, ptr %163, align 4, !tbaa !35
  %165 = load float, ptr %18, align 4, !tbaa !9
  %166 = fmul float %164, %165
  %167 = getelementptr inbounds %struct.FONSquad, ptr %15, i32 0, i32 1
  %168 = load float, ptr %167, align 4, !tbaa !34
  %169 = load float, ptr %18, align 4, !tbaa !9
  %170 = fmul float %168, %169
  call void @nvgTransformPoint(ptr noundef %158, ptr noundef %159, ptr noundef %162, float noundef %166, float noundef %170)
  %171 = getelementptr inbounds [8 x float], ptr %22, i64 0, i64 4
  %172 = getelementptr inbounds [8 x float], ptr %22, i64 0, i64 5
  %173 = load ptr, ptr %12, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.NVGstate, ptr %173, i32 0, i32 8
  %175 = getelementptr inbounds [6 x float], ptr %174, i64 0, i64 0
  %176 = getelementptr inbounds %struct.FONSquad, ptr %15, i32 0, i32 4
  %177 = load float, ptr %176, align 4, !tbaa !35
  %178 = load float, ptr %18, align 4, !tbaa !9
  %179 = fmul float %177, %178
  %180 = getelementptr inbounds %struct.FONSquad, ptr %15, i32 0, i32 5
  %181 = load float, ptr %180, align 4, !tbaa !36
  %182 = load float, ptr %18, align 4, !tbaa !9
  %183 = fmul float %181, %182
  call void @nvgTransformPoint(ptr noundef %171, ptr noundef %172, ptr noundef %175, float noundef %179, float noundef %183)
  %184 = getelementptr inbounds [8 x float], ptr %22, i64 0, i64 6
  %185 = getelementptr inbounds [8 x float], ptr %22, i64 0, i64 7
  %186 = load ptr, ptr %12, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.NVGstate, ptr %186, i32 0, i32 8
  %188 = getelementptr inbounds [6 x float], ptr %187, i64 0, i64 0
  %189 = getelementptr inbounds %struct.FONSquad, ptr %15, i32 0, i32 0
  %190 = load float, ptr %189, align 4, !tbaa !32
  %191 = load float, ptr %18, align 4, !tbaa !9
  %192 = fmul float %190, %191
  %193 = getelementptr inbounds %struct.FONSquad, ptr %15, i32 0, i32 5
  %194 = load float, ptr %193, align 4, !tbaa !36
  %195 = load float, ptr %18, align 4, !tbaa !9
  %196 = fmul float %194, %195
  call void @nvgTransformPoint(ptr noundef %184, ptr noundef %185, ptr noundef %188, float noundef %192, float noundef %196)
  %197 = load i32, ptr %20, align 4, !tbaa !15
  %198 = add nsw i32 %197, 6
  %199 = load i32, ptr %19, align 4, !tbaa !15
  %200 = icmp sle i32 %198, %199
  br i1 %200, label %201, label %286

201:                                              ; preds = %144
  %202 = load ptr, ptr %16, align 8, !tbaa !5
  %203 = load i32, ptr %20, align 4, !tbaa !15
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds %struct.NVGvertex, ptr %202, i64 %204
  %206 = getelementptr inbounds [8 x float], ptr %22, i64 0, i64 0
  %207 = load float, ptr %206, align 16, !tbaa !9
  %208 = getelementptr inbounds [8 x float], ptr %22, i64 0, i64 1
  %209 = load float, ptr %208, align 4, !tbaa !9
  %210 = getelementptr inbounds %struct.FONSquad, ptr %15, i32 0, i32 2
  %211 = load float, ptr %210, align 4, !tbaa !37
  %212 = getelementptr inbounds %struct.FONSquad, ptr %15, i32 0, i32 3
  %213 = load float, ptr %212, align 4, !tbaa !38
  call void @nvg__vset(ptr noundef %205, float noundef %207, float noundef %209, float noundef %211, float noundef %213)
  %214 = load i32, ptr %20, align 4, !tbaa !15
  %215 = add nsw i32 %214, 1
  store i32 %215, ptr %20, align 4, !tbaa !15
  %216 = load ptr, ptr %16, align 8, !tbaa !5
  %217 = load i32, ptr %20, align 4, !tbaa !15
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds %struct.NVGvertex, ptr %216, i64 %218
  %220 = getelementptr inbounds [8 x float], ptr %22, i64 0, i64 4
  %221 = load float, ptr %220, align 16, !tbaa !9
  %222 = getelementptr inbounds [8 x float], ptr %22, i64 0, i64 5
  %223 = load float, ptr %222, align 4, !tbaa !9
  %224 = getelementptr inbounds %struct.FONSquad, ptr %15, i32 0, i32 6
  %225 = load float, ptr %224, align 4, !tbaa !39
  %226 = getelementptr inbounds %struct.FONSquad, ptr %15, i32 0, i32 7
  %227 = load float, ptr %226, align 4, !tbaa !40
  call void @nvg__vset(ptr noundef %219, float noundef %221, float noundef %223, float noundef %225, float noundef %227)
  %228 = load i32, ptr %20, align 4, !tbaa !15
  %229 = add nsw i32 %228, 1
  store i32 %229, ptr %20, align 4, !tbaa !15
  %230 = load ptr, ptr %16, align 8, !tbaa !5
  %231 = load i32, ptr %20, align 4, !tbaa !15
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds %struct.NVGvertex, ptr %230, i64 %232
  %234 = getelementptr inbounds [8 x float], ptr %22, i64 0, i64 2
  %235 = load float, ptr %234, align 8, !tbaa !9
  %236 = getelementptr inbounds [8 x float], ptr %22, i64 0, i64 3
  %237 = load float, ptr %236, align 4, !tbaa !9
  %238 = getelementptr inbounds %struct.FONSquad, ptr %15, i32 0, i32 6
  %239 = load float, ptr %238, align 4, !tbaa !39
  %240 = getelementptr inbounds %struct.FONSquad, ptr %15, i32 0, i32 3
  %241 = load float, ptr %240, align 4, !tbaa !38
  call void @nvg__vset(ptr noundef %233, float noundef %235, float noundef %237, float noundef %239, float noundef %241)
  %242 = load i32, ptr %20, align 4, !tbaa !15
  %243 = add nsw i32 %242, 1
  store i32 %243, ptr %20, align 4, !tbaa !15
  %244 = load ptr, ptr %16, align 8, !tbaa !5
  %245 = load i32, ptr %20, align 4, !tbaa !15
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds %struct.NVGvertex, ptr %244, i64 %246
  %248 = getelementptr inbounds [8 x float], ptr %22, i64 0, i64 0
  %249 = load float, ptr %248, align 16, !tbaa !9
  %250 = getelementptr inbounds [8 x float], ptr %22, i64 0, i64 1
  %251 = load float, ptr %250, align 4, !tbaa !9
  %252 = getelementptr inbounds %struct.FONSquad, ptr %15, i32 0, i32 2
  %253 = load float, ptr %252, align 4, !tbaa !37
  %254 = getelementptr inbounds %struct.FONSquad, ptr %15, i32 0, i32 3
  %255 = load float, ptr %254, align 4, !tbaa !38
  call void @nvg__vset(ptr noundef %247, float noundef %249, float noundef %251, float noundef %253, float noundef %255)
  %256 = load i32, ptr %20, align 4, !tbaa !15
  %257 = add nsw i32 %256, 1
  store i32 %257, ptr %20, align 4, !tbaa !15
  %258 = load ptr, ptr %16, align 8, !tbaa !5
  %259 = load i32, ptr %20, align 4, !tbaa !15
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds %struct.NVGvertex, ptr %258, i64 %260
  %262 = getelementptr inbounds [8 x float], ptr %22, i64 0, i64 6
  %263 = load float, ptr %262, align 8, !tbaa !9
  %264 = getelementptr inbounds [8 x float], ptr %22, i64 0, i64 7
  %265 = load float, ptr %264, align 4, !tbaa !9
  %266 = getelementptr inbounds %struct.FONSquad, ptr %15, i32 0, i32 2
  %267 = load float, ptr %266, align 4, !tbaa !37
  %268 = getelementptr inbounds %struct.FONSquad, ptr %15, i32 0, i32 7
  %269 = load float, ptr %268, align 4, !tbaa !40
  call void @nvg__vset(ptr noundef %261, float noundef %263, float noundef %265, float noundef %267, float noundef %269)
  %270 = load i32, ptr %20, align 4, !tbaa !15
  %271 = add nsw i32 %270, 1
  store i32 %271, ptr %20, align 4, !tbaa !15
  %272 = load ptr, ptr %16, align 8, !tbaa !5
  %273 = load i32, ptr %20, align 4, !tbaa !15
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds %struct.NVGvertex, ptr %272, i64 %274
  %276 = getelementptr inbounds [8 x float], ptr %22, i64 0, i64 4
  %277 = load float, ptr %276, align 16, !tbaa !9
  %278 = getelementptr inbounds [8 x float], ptr %22, i64 0, i64 5
  %279 = load float, ptr %278, align 4, !tbaa !9
  %280 = getelementptr inbounds %struct.FONSquad, ptr %15, i32 0, i32 6
  %281 = load float, ptr %280, align 4, !tbaa !39
  %282 = getelementptr inbounds %struct.FONSquad, ptr %15, i32 0, i32 7
  %283 = load float, ptr %282, align 4, !tbaa !40
  call void @nvg__vset(ptr noundef %275, float noundef %277, float noundef %279, float noundef %281, float noundef %283)
  %284 = load i32, ptr %20, align 4, !tbaa !15
  %285 = add nsw i32 %284, 1
  store i32 %285, ptr %20, align 4, !tbaa !15
  br label %286

286:                                              ; preds = %201, %144
  store i32 0, ptr %21, align 4
  br label %287

287:                                              ; preds = %286, %142, %126
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #5
  %288 = load i32, ptr %21, align 4
  switch i32 %288, label %299 [
    i32 0, label %289
    i32 3, label %290
  ]

289:                                              ; preds = %287
  br label %112, !llvm.loop !41

290:                                              ; preds = %287, %112
  %291 = load ptr, ptr %7, align 8, !tbaa !5
  call void @nvg__flushTextTexture(ptr noundef %291)
  %292 = load ptr, ptr %7, align 8, !tbaa !5
  %293 = load ptr, ptr %16, align 8, !tbaa !5
  %294 = load i32, ptr %20, align 4, !tbaa !15
  call void @nvg__renderText(ptr noundef %292, ptr noundef %293, i32 noundef %294)
  %295 = getelementptr inbounds %struct.FONStextIter, ptr %13, i32 0, i32 0
  %296 = load float, ptr %295, align 8, !tbaa !43
  store float %296, ptr %6, align 4
  store i32 1, ptr %21, align 4
  br label %297

297:                                              ; preds = %290, %97, %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  %298 = load float, ptr %6, align 4
  ret float %298

299:                                              ; preds = %287
  unreachable
}

; Function Attrs: nounwind uwtable
declare hidden float @nvg__getFontScale(ptr noundef) #2

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #3

declare void @fonsSetSize(ptr noundef, float noundef) #4

declare void @fonsSetSpacing(ptr noundef, float noundef) #4

declare void @fonsSetBlur(ptr noundef, float noundef) #4

declare void @fonsSetAlign(ptr noundef, i32 noundef) #4

declare void @fonsSetFont(ptr noundef, i32 noundef) #4

; Function Attrs: nounwind uwtable
declare hidden ptr @nvg__allocTempVerts(ptr noundef, i32 noundef) #2

declare i32 @fonsTextIterInit(ptr noundef, ptr noundef, float noundef, float noundef, ptr noundef, ptr noundef) #4

declare i32 @fonsTextIterNext(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden i32 @nvg__allocTextAtlas(ptr noundef) #2

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

; Function Attrs: nounwind uwtable
declare hidden void @nvg__vset(ptr noundef, float noundef, float noundef, float noundef, float noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @nvg__flushTextTexture(ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) "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 = { "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 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !10, i64 8740}
!12 = !{!"NVGcontext", !13, i64 0, !6, i64 112, !14, i64 120, !14, i64 124, !10, i64 128, !10, i64 132, !7, i64 136, !14, i64 8712, !6, i64 8720, !10, i64 8728, !10, i64 8732, !10, i64 8736, !10, i64 8740, !6, i64 8744, !7, i64 8752, !14, i64 8768, !14, i64 8772, !14, i64 8776, !14, i64 8780, !14, i64 8784}
!13 = !{!"NVGparams", !6, i64 0, !14, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104}
!14 = !{!"int", !7, i64 0}
!15 = !{!14, !14, i64 0}
!16 = !{!17, !14, i64 264}
!17 = !{!"NVGstate", !18, i64 0, !19, i64 16, !19, i64 92, !10, i64 168, !10, i64 172, !14, i64 176, !14, i64 180, !10, i64 184, !7, i64 188, !21, i64 212, !10, i64 244, !10, i64 248, !10, i64 252, !10, i64 256, !14, i64 260, !14, i64 264}
!18 = !{!"NVGcompositeOperationState", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12}
!19 = !{!"NVGpaint", !7, i64 0, !7, i64 24, !10, i64 32, !10, i64 36, !20, i64 40, !20, i64 56, !14, i64 72}
!20 = !{!"NVGcolor", !7, i64 0}
!21 = !{!"NVGscissor", !7, i64 0, !7, i64 24}
!22 = !{!12, !6, i64 8744}
!23 = !{!17, !10, i64 244}
!24 = !{!17, !10, i64 248}
!25 = !{!17, !10, i64 256}
!26 = !{!17, !14, i64 260}
!27 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 12, i64 4, !9, i64 16, i64 4, !9, i64 20, i64 4, !9, i64 24, i64 4, !15, i64 28, i64 2, !28, i64 30, i64 2, !28, i64 32, i64 8, !5, i64 40, i64 4, !15, i64 48, i64 8, !5, i64 56, i64 8, !5, i64 64, i64 8, !5, i64 72, i64 4, !15}
!28 = !{!29, !29, i64 0}
!29 = !{!"short", !7, i64 0}
!30 = !{!31, !14, i64 40}
!31 = !{!"FONStextIter", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !14, i64 24, !29, i64 28, !29, i64 30, !6, i64 32, !14, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !14, i64 72}
!32 = !{!33, !10, i64 0}
!33 = !{!"FONSquad", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!34 = !{!33, !10, i64 4}
!35 = !{!33, !10, i64 16}
!36 = !{!33, !10, i64 20}
!37 = !{!33, !10, i64 8}
!38 = !{!33, !10, i64 12}
!39 = !{!33, !10, i64 24}
!40 = !{!33, !10, i64 28}
!41 = distinct !{!41, !42}
!42 = !{!"llvm.loop.mustprogress"}
!43 = !{!31, !10, i64 0}


; 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.FONStextIter = type { float, float, float, float, float, float, i32, i16, i16, ptr, i32, ptr, ptr, ptr, i32 }
%struct.FONSquad = type { float, float, float, float, float, float, float, float }
%struct.NVGvertex = type { float, float, float, float }

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

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

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

; Function Attrs: nounwind uwtable
declare hidden ptr @nvg__getState(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @nvgTransformPoint(ptr noundef, ptr noundef, ptr noundef, float noundef, float noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden i32 @nvg__maxi(i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local float @nvgText(ptr noundef %0, float noundef %1, float noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #2 {
  %6 = alloca %struct.FONStextIter, align 8
  %7 = alloca %struct.FONStextIter, align 8
  %8 = alloca %struct.FONSquad, align 4
  %9 = alloca [8 x float], align 16
  %10 = tail call ptr @nvg__getState(ptr noundef %0)
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %7)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #5
  %11 = tail call float @nvg__getFontScale(ptr noundef %10)
  %12 = getelementptr inbounds i8, ptr %0, i64 8740
  %13 = load float, ptr %12, align 4, !tbaa !5
  %14 = fmul float %11, %13
  %15 = fdiv float 1.000000e+00, %14
  %16 = icmp eq ptr %4, null
  br i1 %16, label %17, label %20

17:                                               ; preds = %5
  %18 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %3) #6
  %19 = getelementptr inbounds i8, ptr %3, i64 %18
  br label %20

20:                                               ; preds = %17, %5
  %.081 = phi ptr [ %19, %17 ], [ %4, %5 ]
  %21 = getelementptr inbounds i8, ptr %10, i64 264
  %22 = load i32, ptr %21, align 4, !tbaa !13
  %23 = icmp eq i32 %22, -1
  br i1 %23, label %135, label %24

24:                                               ; preds = %20
  %25 = getelementptr inbounds i8, ptr %0, i64 8744
  %26 = load ptr, ptr %25, align 8, !tbaa !19
  %27 = getelementptr inbounds i8, ptr %10, i64 244
  %28 = load float, ptr %27, align 4, !tbaa !20
  %29 = fmul float %14, %28
  tail call void @fonsSetSize(ptr noundef %26, float noundef %29) #5
  %30 = load ptr, ptr %25, align 8, !tbaa !19
  %31 = getelementptr inbounds i8, ptr %10, i64 248
  %32 = load float, ptr %31, align 4, !tbaa !21
  %33 = fmul float %14, %32
  tail call void @fonsSetSpacing(ptr noundef %30, float noundef %33) #5
  %34 = load ptr, ptr %25, align 8, !tbaa !19
  %35 = getelementptr inbounds i8, ptr %10, i64 256
  %36 = load float, ptr %35, align 4, !tbaa !22
  %37 = fmul float %14, %36
  tail call void @fonsSetBlur(ptr noundef %34, float noundef %37) #5
  %38 = load ptr, ptr %25, align 8, !tbaa !19
  %39 = getelementptr inbounds i8, ptr %10, i64 260
  %40 = load i32, ptr %39, align 4, !tbaa !23
  tail call void @fonsSetAlign(ptr noundef %38, i32 noundef %40) #5
  %41 = load ptr, ptr %25, align 8, !tbaa !19
  %42 = load i32, ptr %21, align 4, !tbaa !13
  tail call void @fonsSetFont(ptr noundef %41, i32 noundef %42) #5
  %43 = ptrtoint ptr %.081 to i64
  %44 = ptrtoint ptr %3 to i64
  %45 = sub i64 %43, %44
  %46 = trunc i64 %45 to i32
  %47 = tail call i32 @nvg__maxi(i32 noundef 2, i32 noundef %46)
  %48 = mul nsw i32 %47, 6
  %49 = tail call ptr @nvg__allocTempVerts(ptr noundef nonnull %0, i32 noundef %48)
  %50 = icmp eq ptr %49, null
  br i1 %50, label %135, label %51

51:                                               ; preds = %24
  %52 = load ptr, ptr %25, align 8, !tbaa !19
  %53 = fmul float %14, %1
  %54 = fmul float %14, %2
  %55 = call i32 @fonsTextIterInit(ptr noundef %52, ptr noundef nonnull %6, float noundef %53, float noundef %54, ptr noundef %3, ptr noundef %.081) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %7, ptr noundef nonnull align 8 dereferenceable(80) %6, i64 80, i1 false), !tbaa.struct !24
  %invariant.gep = getelementptr i8, ptr %49, i64 16
  %invariant.gep91 = getelementptr i8, ptr %49, i64 32
  %invariant.gep93 = getelementptr i8, ptr %49, i64 48
  %invariant.gep95 = getelementptr i8, ptr %49, i64 64
  %invariant.gep97 = getelementptr i8, ptr %49, i64 80
  %56 = load ptr, ptr %25, align 8, !tbaa !19
  %57 = call i32 @fonsTextIterNext(ptr noundef %56, ptr noundef nonnull %6, ptr noundef nonnull %8) #5
  %.not99 = icmp eq i32 %57, 0
  br i1 %.not99, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %51
  %58 = getelementptr inbounds i8, ptr %6, i64 40
  %59 = getelementptr inbounds i8, ptr %9, i64 4
  %60 = getelementptr inbounds i8, ptr %10, i64 188
  %61 = getelementptr inbounds i8, ptr %8, i64 4
  %62 = getelementptr inbounds i8, ptr %9, i64 8
  %63 = getelementptr inbounds i8, ptr %9, i64 12
  %64 = getelementptr inbounds i8, ptr %8, i64 16
  %65 = getelementptr inbounds i8, ptr %9, i64 16
  %66 = getelementptr inbounds i8, ptr %9, i64 20
  %67 = getelementptr inbounds i8, ptr %8, i64 20
  %68 = getelementptr inbounds i8, ptr %9, i64 24
  %69 = getelementptr inbounds i8, ptr %9, i64 28
  %70 = getelementptr inbounds i8, ptr %8, i64 8
  %71 = getelementptr inbounds i8, ptr %8, i64 12
  %72 = getelementptr inbounds i8, ptr %8, i64 24
  %73 = getelementptr inbounds i8, ptr %8, i64 28
  br label %74

74:                                               ; preds = %.lr.ph, %131
  %.079100 = phi i32 [ 0, %.lr.ph ], [ %.4, %131 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #5
  %75 = load i32, ptr %58, align 8, !tbaa !30
  %76 = icmp eq i32 %75, -1
  br i1 %76, label %77, label %86

77:                                               ; preds = %74
  %78 = call i32 @nvg__allocTextAtlas(ptr noundef nonnull %0)
  %.not84 = icmp eq i32 %78, 0
  br i1 %.not84, label %.thread, label %79

79:                                               ; preds = %77
  %.not85 = icmp eq i32 %.079100, 0
  br i1 %.not85, label %81, label %80

80:                                               ; preds = %79
  call void @nvg__renderText(ptr noundef nonnull %0, ptr noundef nonnull %49, i32 noundef %.079100)
  br label %81

81:                                               ; preds = %80, %79
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %6, ptr noundef nonnull align 8 dereferenceable(80) %7, i64 80, i1 false), !tbaa.struct !24
  %82 = load ptr, ptr %25, align 8, !tbaa !19
  %83 = call i32 @fonsTextIterNext(ptr noundef %82, ptr noundef nonnull %6, ptr noundef nonnull %8) #5
  %84 = load i32, ptr %58, align 8, !tbaa !30
  %85 = icmp eq i32 %84, -1
  br i1 %85, label %.thread, label %86

86:                                               ; preds = %81, %74
  %.2 = phi i32 [ 0, %81 ], [ %.079100, %74 ]
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %7, ptr noundef nonnull align 8 dereferenceable(80) %6, i64 80, i1 false), !tbaa.struct !24
  %87 = load float, ptr %8, align 4, !tbaa !32
  %88 = fmul float %15, %87
  %89 = load float, ptr %61, align 4, !tbaa !34
  %90 = fmul float %15, %89
  call void @nvgTransformPoint(ptr noundef nonnull %9, ptr noundef nonnull %59, ptr noundef nonnull %60, float noundef %88, float noundef %90)
  %91 = load float, ptr %64, align 4, !tbaa !35
  %92 = fmul float %15, %91
  %93 = load float, ptr %61, align 4, !tbaa !34
  %94 = fmul float %15, %93
  call void @nvgTransformPoint(ptr noundef nonnull %62, ptr noundef nonnull %63, ptr noundef nonnull %60, float noundef %92, float noundef %94)
  %95 = load float, ptr %64, align 4, !tbaa !35
  %96 = fmul float %15, %95
  %97 = load float, ptr %67, align 4, !tbaa !36
  %98 = fmul float %15, %97
  call void @nvgTransformPoint(ptr noundef nonnull %65, ptr noundef nonnull %66, ptr noundef nonnull %60, float noundef %96, float noundef %98)
  %99 = load float, ptr %8, align 4, !tbaa !32
  %100 = fmul float %15, %99
  %101 = load float, ptr %67, align 4, !tbaa !36
  %102 = fmul float %15, %101
  call void @nvgTransformPoint(ptr noundef nonnull %68, ptr noundef nonnull %69, ptr noundef nonnull %60, float noundef %100, float noundef %102)
  %103 = add nsw i32 %.2, 6
  %.not86 = icmp sgt i32 %103, %48
  br i1 %.not86, label %131, label %104

104:                                              ; preds = %86
  %105 = sext i32 %.2 to i64
  %106 = getelementptr inbounds %struct.NVGvertex, ptr %49, i64 %105
  %107 = load float, ptr %9, align 16, !tbaa !25
  %108 = load float, ptr %59, align 4, !tbaa !25
  %109 = load float, ptr %70, align 4, !tbaa !37
  %110 = load float, ptr %71, align 4, !tbaa !38
  call void @nvg__vset(ptr noundef nonnull %106, float noundef %107, float noundef %108, float noundef %109, float noundef %110)
  %gep = getelementptr %struct.NVGvertex, ptr %invariant.gep, i64 %105
  %111 = load float, ptr %65, align 16, !tbaa !25
  %112 = load float, ptr %66, align 4, !tbaa !25
  %113 = load float, ptr %72, align 4, !tbaa !39
  %114 = load float, ptr %73, align 4, !tbaa !40
  call void @nvg__vset(ptr noundef nonnull %gep, float noundef %111, float noundef %112, float noundef %113, float noundef %114)
  %gep92 = getelementptr %struct.NVGvertex, ptr %invariant.gep91, i64 %105
  %115 = load float, ptr %62, align 8, !tbaa !25
  %116 = load float, ptr %63, align 4, !tbaa !25
  %117 = load float, ptr %72, align 4, !tbaa !39
  %118 = load float, ptr %71, align 4, !tbaa !38
  call void @nvg__vset(ptr noundef nonnull %gep92, float noundef %115, float noundef %116, float noundef %117, float noundef %118)
  %gep94 = getelementptr %struct.NVGvertex, ptr %invariant.gep93, i64 %105
  %119 = load float, ptr %9, align 16, !tbaa !25
  %120 = load float, ptr %59, align 4, !tbaa !25
  %121 = load float, ptr %70, align 4, !tbaa !37
  %122 = load float, ptr %71, align 4, !tbaa !38
  call void @nvg__vset(ptr noundef nonnull %gep94, float noundef %119, float noundef %120, float noundef %121, float noundef %122)
  %gep96 = getelementptr %struct.NVGvertex, ptr %invariant.gep95, i64 %105
  %123 = load float, ptr %68, align 8, !tbaa !25
  %124 = load float, ptr %69, align 4, !tbaa !25
  %125 = load float, ptr %70, align 4, !tbaa !37
  %126 = load float, ptr %73, align 4, !tbaa !40
  call void @nvg__vset(ptr noundef nonnull %gep96, float noundef %123, float noundef %124, float noundef %125, float noundef %126)
  %gep98 = getelementptr %struct.NVGvertex, ptr %invariant.gep97, i64 %105
  %127 = load float, ptr %65, align 16, !tbaa !25
  %128 = load float, ptr %66, align 4, !tbaa !25
  %129 = load float, ptr %72, align 4, !tbaa !39
  %130 = load float, ptr %73, align 4, !tbaa !40
  call void @nvg__vset(ptr noundef nonnull %gep98, float noundef %127, float noundef %128, float noundef %129, float noundef %130)
  br label %131

.thread:                                          ; preds = %77, %81
  %.4.ph = phi i32 [ 0, %81 ], [ %.079100, %77 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  br label %.loopexit

131:                                              ; preds = %86, %104
  %.4 = phi i32 [ %103, %104 ], [ %.2, %86 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #5
  %132 = load ptr, ptr %25, align 8, !tbaa !19
  %133 = call i32 @fonsTextIterNext(ptr noundef %132, ptr noundef nonnull %6, ptr noundef nonnull %8) #5
  %.not = icmp eq i32 %133, 0
  br i1 %.not, label %.loopexit, label %74

.loopexit:                                        ; preds = %131, %51, %.thread
  %.5 = phi i32 [ %.4.ph, %.thread ], [ 0, %51 ], [ %.4, %131 ]
  call void @nvg__flushTextTexture(ptr noundef nonnull %0)
  call void @nvg__renderText(ptr noundef nonnull %0, ptr noundef nonnull %49, i32 noundef %.5)
  %134 = load float, ptr %6, align 8, !tbaa !41
  br label %135

135:                                              ; preds = %24, %20, %.loopexit
  %.080 = phi float [ %134, %.loopexit ], [ %1, %20 ], [ %1, %24 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %7)
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %6) #5
  ret float %.080
}

; Function Attrs: nounwind uwtable
declare hidden float @nvg__getFontScale(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #3

declare void @fonsSetSize(ptr noundef, float noundef) local_unnamed_addr #4

declare void @fonsSetSpacing(ptr noundef, float noundef) local_unnamed_addr #4

declare void @fonsSetBlur(ptr noundef, float noundef) local_unnamed_addr #4

declare void @fonsSetAlign(ptr noundef, i32 noundef) local_unnamed_addr #4

declare void @fonsSetFont(ptr noundef, i32 noundef) local_unnamed_addr #4

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

declare i32 @fonsTextIterInit(ptr noundef, ptr noundef, float noundef, float noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare i32 @fonsTextIterNext(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden i32 @nvg__allocTextAtlas(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare hidden void @nvg__vset(ptr noundef, float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden void @nvg__flushTextTexture(ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { "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 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }

!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, !12, i64 8740}
!6 = !{!"NVGcontext", !7, i64 0, !8, i64 112, !11, i64 120, !11, i64 124, !12, i64 128, !12, i64 132, !9, i64 136, !11, i64 8712, !8, i64 8720, !12, i64 8728, !12, i64 8732, !12, i64 8736, !12, i64 8740, !8, i64 8744, !9, i64 8752, !11, i64 8768, !11, i64 8772, !11, i64 8776, !11, i64 8780, !11, i64 8784}
!7 = !{!"NVGparams", !8, i64 0, !11, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !8, i64 48, !8, i64 56, !8, i64 64, !8, i64 72, !8, i64 80, !8, i64 88, !8, i64 96, !8, i64 104}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"float", !9, i64 0}
!13 = !{!14, !11, i64 264}
!14 = !{!"NVGstate", !15, i64 0, !16, i64 16, !16, i64 92, !12, i64 168, !12, i64 172, !11, i64 176, !11, i64 180, !12, i64 184, !9, i64 188, !18, i64 212, !12, i64 244, !12, i64 248, !12, i64 252, !12, i64 256, !11, i64 260, !11, i64 264}
!15 = !{!"NVGcompositeOperationState", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12}
!16 = !{!"NVGpaint", !9, i64 0, !9, i64 24, !12, i64 32, !12, i64 36, !17, i64 40, !17, i64 56, !11, i64 72}
!17 = !{!"NVGcolor", !9, i64 0}
!18 = !{!"NVGscissor", !9, i64 0, !9, i64 24}
!19 = !{!6, !8, i64 8744}
!20 = !{!14, !12, i64 244}
!21 = !{!14, !12, i64 248}
!22 = !{!14, !12, i64 256}
!23 = !{!14, !11, i64 260}
!24 = !{i64 0, i64 4, !25, i64 4, i64 4, !25, i64 8, i64 4, !25, i64 12, i64 4, !25, i64 16, i64 4, !25, i64 20, i64 4, !25, i64 24, i64 4, !26, i64 28, i64 2, !27, i64 30, i64 2, !27, i64 32, i64 8, !29, i64 40, i64 4, !26, i64 48, i64 8, !29, i64 56, i64 8, !29, i64 64, i64 8, !29, i64 72, i64 4, !26}
!25 = !{!12, !12, i64 0}
!26 = !{!11, !11, i64 0}
!27 = !{!28, !28, i64 0}
!28 = !{!"short", !9, i64 0}
!29 = !{!8, !8, i64 0}
!30 = !{!31, !11, i64 40}
!31 = !{!"FONStextIter", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !11, i64 24, !28, i64 28, !28, i64 30, !8, i64 32, !11, i64 40, !8, i64 48, !8, i64 56, !8, i64 64, !11, i64 72}
!32 = !{!33, !12, i64 0}
!33 = !{!"FONSquad", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28}
!34 = !{!33, !12, i64 4}
!35 = !{!33, !12, i64 16}
!36 = !{!33, !12, i64 20}
!37 = !{!33, !12, i64 8}
!38 = !{!33, !12, i64 12}
!39 = !{!33, !12, i64 24}
!40 = !{!33, !12, i64 28}
!41 = !{!31, !12, i64 0}


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