; LLVM IR from godofecht/GANN-Object-Avoidance :: Box2D/Testbed/Framework/RenderGL3.ll (Z13sRenderStringffPKc9TextAlignj)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.stbtt_bakedchar = type { i16, i16, i16, i16, float, float, float }
%struct.stbtt_aligned_quad = type { float, float, float, float, float, float, float, float }

@_ZL7g_cdata = external hidden global [96 x %struct.stbtt_bakedchar], align 16
@_ZL6g_ftex = external hidden global i32, align 4
@_ZL5g_vao = external hidden global i32, align 4
@_ZL6g_vbos = external hidden global [3 x i32], align 4
@__glewBindVertexArray = external global ptr, align 8
@__glewBindBuffer = external global ptr, align 8
@__glewBufferData = external global ptr, align 8
@_ZL10g_tabStops = external hidden constant [4 x float], align 16

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare void @glBindTexture(i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13sRenderStringffPKc9TextAlignj(float noundef %0, float noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) #2 {
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %struct.stbtt_aligned_quad, align 4
  %20 = alloca [12 x float], align 16
  %21 = alloca [12 x float], align 16
  %22 = alloca [24 x float], align 16
  store float %0, ptr %6, align 4, !tbaa !5
  store float %1, ptr %7, align 4, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !11
  store i32 %4, ptr %10, align 4, !tbaa !13
  %23 = load i32, ptr @_ZL6g_ftex, align 4, !tbaa !13
  %24 = icmp ne i32 %23, 0
  br i1 %24, label %26, label %25

25:                                               ; preds = %5
  br label %252

26:                                               ; preds = %5
  %27 = load ptr, ptr %8, align 8, !tbaa !9
  %28 = icmp ne ptr %27, null
  br i1 %28, label %30, label %29

29:                                               ; preds = %26
  br label %252

30:                                               ; preds = %26
  %31 = load i32, ptr %9, align 4, !tbaa !11
  %32 = icmp eq i32 %31, 1
  br i1 %32, label %33, label %39

33:                                               ; preds = %30
  %34 = load ptr, ptr %8, align 8, !tbaa !9
  %35 = call noundef float @_ZL14sGetTextLengthP15stbtt_bakedcharPKc(ptr noundef @_ZL7g_cdata, ptr noundef %34)
  %36 = fdiv float %35, 2.000000e+00
  %37 = load float, ptr %6, align 4, !tbaa !5
  %38 = fsub float %37, %36
  store float %38, ptr %6, align 4, !tbaa !5
  br label %48

39:                                               ; preds = %30
  %40 = load i32, ptr %9, align 4, !tbaa !11
  %41 = icmp eq i32 %40, 2
  br i1 %41, label %42, label %47

42:                                               ; preds = %39
  %43 = load ptr, ptr %8, align 8, !tbaa !9
  %44 = call noundef float @_ZL14sGetTextLengthP15stbtt_bakedcharPKc(ptr noundef @_ZL7g_cdata, ptr noundef %43)
  %45 = load float, ptr %6, align 4, !tbaa !5
  %46 = fsub float %45, %44
  store float %46, ptr %6, align 4, !tbaa !5
  br label %47

47:                                               ; preds = %42, %39
  br label %48

48:                                               ; preds = %47, %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %49 = load i32, ptr %10, align 4, !tbaa !13
  %50 = and i32 %49, 255
  %51 = uitofp i32 %50 to float
  %52 = fdiv float %51, 2.550000e+02
  store float %52, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %53 = load i32, ptr %10, align 4, !tbaa !13
  %54 = lshr i32 %53, 8
  %55 = and i32 %54, 255
  %56 = uitofp i32 %55 to float
  %57 = fdiv float %56, 2.550000e+02
  store float %57, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %58 = load i32, ptr %10, align 4, !tbaa !13
  %59 = lshr i32 %58, 16
  %60 = and i32 %59, 255
  %61 = uitofp i32 %60 to float
  %62 = fdiv float %61, 2.550000e+02
  store float %62, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %63 = load i32, ptr %10, align 4, !tbaa !13
  %64 = lshr i32 %63, 24
  %65 = and i32 %64, 255
  %66 = uitofp i32 %65 to float
  %67 = fdiv float %66, 2.550000e+02
  store float %67, ptr %14, align 4, !tbaa !5
  %68 = load i32, ptr @_ZL6g_ftex, align 4, !tbaa !13
  call void @glBindTexture(i32 noundef 3553, i32 noundef %68)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %69 = load float, ptr %6, align 4, !tbaa !5
  store float %69, ptr %15, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %248, %48
  %71 = load ptr, ptr %8, align 8, !tbaa !9
  %72 = load i8, ptr %71, align 1, !tbaa !15
  %73 = icmp ne i8 %72, 0
  br i1 %73, label %74, label %251

74:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %75 = load ptr, ptr %8, align 8, !tbaa !9
  %76 = load i8, ptr %75, align 1, !tbaa !15
  %77 = zext i8 %76 to i32
  store i32 %77, ptr %16, align 4, !tbaa !13
  %78 = load i32, ptr %16, align 4, !tbaa !13
  %79 = icmp eq i32 %78, 9
  br i1 %79, label %80, label %107

80:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 0, ptr %17, align 4, !tbaa !13
  br label %81

81:                                               ; preds = %102, %80
  %82 = load i32, ptr %17, align 4, !tbaa !13
  %83 = icmp slt i32 %82, 4
  br i1 %83, label %85, label %84

84:                                               ; preds = %81
  store i32 4, ptr %18, align 4
  br label %105

85:                                               ; preds = %81
  %86 = load float, ptr %6, align 4, !tbaa !5
  %87 = load i32, ptr %17, align 4, !tbaa !13
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [4 x float], ptr @_ZL10g_tabStops, i64 0, i64 %88
  %90 = load float, ptr %89, align 4, !tbaa !5
  %91 = load float, ptr %15, align 4, !tbaa !5
  %92 = fadd float %90, %91
  %93 = fcmp olt float %86, %92
  br i1 %93, label %94, label %101

94:                                               ; preds = %85
  %95 = load i32, ptr %17, align 4, !tbaa !13
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [4 x float], ptr @_ZL10g_tabStops, i64 0, i64 %96
  %98 = load float, ptr %97, align 4, !tbaa !5
  %99 = load float, ptr %15, align 4, !tbaa !5
  %100 = fadd float %98, %99
  store float %100, ptr %6, align 4, !tbaa !5
  store i32 4, ptr %18, align 4
  br label %105

101:                                              ; preds = %85
  br label %102

102:                                              ; preds = %101
  %103 = load i32, ptr %17, align 4, !tbaa !13
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %17, align 4, !tbaa !13
  br label %81, !llvm.loop !16

105:                                              ; preds = %94, %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %106

106:                                              ; preds = %105
  br label %248

107:                                              ; preds = %74
  %108 = load i32, ptr %16, align 4, !tbaa !13
  %109 = icmp sge i32 %108, 32
  br i1 %109, label %110, label %247

110:                                              ; preds = %107
  %111 = load i32, ptr %16, align 4, !tbaa !13
  %112 = icmp slt i32 %111, 128
  br i1 %112, label %113, label %247

113:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #4
  %114 = load i32, ptr %16, align 4, !tbaa !13
  %115 = sub nsw i32 %114, 32
  call void @_ZL13sGetBakedQuadP15stbtt_bakedchariiiPfS1_P18stbtt_aligned_quad(ptr noundef @_ZL7g_cdata, i32 noundef 512, i32 noundef 512, i32 noundef %115, ptr noundef %6, ptr noundef %7, ptr noundef %19)
  call void @llvm.lifetime.start.p0(i64 48, ptr %20) #4
  %116 = getelementptr inbounds %struct.stbtt_aligned_quad, ptr %19, i32 0, i32 0
  %117 = load float, ptr %116, align 4, !tbaa !18
  store float %117, ptr %20, align 4, !tbaa !5
  %118 = getelementptr inbounds float, ptr %20, i64 1
  %119 = getelementptr inbounds %struct.stbtt_aligned_quad, ptr %19, i32 0, i32 1
  %120 = load float, ptr %119, align 4, !tbaa !20
  store float %120, ptr %118, align 4, !tbaa !5
  %121 = getelementptr inbounds float, ptr %20, i64 2
  %122 = getelementptr inbounds %struct.stbtt_aligned_quad, ptr %19, i32 0, i32 4
  %123 = load float, ptr %122, align 4, !tbaa !21
  store float %123, ptr %121, align 4, !tbaa !5
  %124 = getelementptr inbounds float, ptr %20, i64 3
  %125 = getelementptr inbounds %struct.stbtt_aligned_quad, ptr %19, i32 0, i32 5
  %126 = load float, ptr %125, align 4, !tbaa !22
  store float %126, ptr %124, align 4, !tbaa !5
  %127 = getelementptr inbounds float, ptr %20, i64 4
  %128 = getelementptr inbounds %struct.stbtt_aligned_quad, ptr %19, i32 0, i32 4
  %129 = load float, ptr %128, align 4, !tbaa !21
  store float %129, ptr %127, align 4, !tbaa !5
  %130 = getelementptr inbounds float, ptr %20, i64 5
  %131 = getelementptr inbounds %struct.stbtt_aligned_quad, ptr %19, i32 0, i32 1
  %132 = load float, ptr %131, align 4, !tbaa !20
  store float %132, ptr %130, align 4, !tbaa !5
  %133 = getelementptr inbounds float, ptr %20, i64 6
  %134 = getelementptr inbounds %struct.stbtt_aligned_quad, ptr %19, i32 0, i32 0
  %135 = load float, ptr %134, align 4, !tbaa !18
  store float %135, ptr %133, align 4, !tbaa !5
  %136 = getelementptr inbounds float, ptr %20, i64 7
  %137 = getelementptr inbounds %struct.stbtt_aligned_quad, ptr %19, i32 0, i32 1
  %138 = load float, ptr %137, align 4, !tbaa !20
  store float %138, ptr %136, align 4, !tbaa !5
  %139 = getelementptr inbounds float, ptr %20, i64 8
  %140 = getelementptr inbounds %struct.stbtt_aligned_quad, ptr %19, i32 0, i32 0
  %141 = load float, ptr %140, align 4, !tbaa !18
  store float %141, ptr %139, align 4, !tbaa !5
  %142 = getelementptr inbounds float, ptr %20, i64 9
  %143 = getelementptr inbounds %struct.stbtt_aligned_quad, ptr %19, i32 0, i32 5
  %144 = load float, ptr %143, align 4, !tbaa !22
  store float %144, ptr %142, align 4, !tbaa !5
  %145 = getelementptr inbounds float, ptr %20, i64 10
  %146 = getelementptr inbounds %struct.stbtt_aligned_quad, ptr %19, i32 0, i32 4
  %147 = load float, ptr %146, align 4, !tbaa !21
  store float %147, ptr %145, align 4, !tbaa !5
  %148 = getelementptr inbounds float, ptr %20, i64 11
  %149 = getelementptr inbounds %struct.stbtt_aligned_quad, ptr %19, i32 0, i32 5
  %150 = load float, ptr %149, align 4, !tbaa !22
  store float %150, ptr %148, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %21) #4
  %151 = getelementptr inbounds %struct.stbtt_aligned_quad, ptr %19, i32 0, i32 2
  %152 = load float, ptr %151, align 4, !tbaa !23
  store float %152, ptr %21, align 4, !tbaa !5
  %153 = getelementptr inbounds float, ptr %21, i64 1
  %154 = getelementptr inbounds %struct.stbtt_aligned_quad, ptr %19, i32 0, i32 3
  %155 = load float, ptr %154, align 4, !tbaa !24
  store float %155, ptr %153, align 4, !tbaa !5
  %156 = getelementptr inbounds float, ptr %21, i64 2
  %157 = getelementptr inbounds %struct.stbtt_aligned_quad, ptr %19, i32 0, i32 6
  %158 = load float, ptr %157, align 4, !tbaa !25
  store float %158, ptr %156, align 4, !tbaa !5
  %159 = getelementptr inbounds float, ptr %21, i64 3
  %160 = getelementptr inbounds %struct.stbtt_aligned_quad, ptr %19, i32 0, i32 7
  %161 = load float, ptr %160, align 4, !tbaa !26
  store float %161, ptr %159, align 4, !tbaa !5
  %162 = getelementptr inbounds float, ptr %21, i64 4
  %163 = getelementptr inbounds %struct.stbtt_aligned_quad, ptr %19, i32 0, i32 6
  %164 = load float, ptr %163, align 4, !tbaa !25
  store float %164, ptr %162, align 4, !tbaa !5
  %165 = getelementptr inbounds float, ptr %21, i64 5
  %166 = getelementptr inbounds %struct.stbtt_aligned_quad, ptr %19, i32 0, i32 3
  %167 = load float, ptr %166, align 4, !tbaa !24
  store float %167, ptr %165, align 4, !tbaa !5
  %168 = getelementptr inbounds float, ptr %21, i64 6
  %169 = getelementptr inbounds %struct.stbtt_aligned_quad, ptr %19, i32 0, i32 2
  %170 = load float, ptr %169, align 4, !tbaa !23
  store float %170, ptr %168, align 4, !tbaa !5
  %171 = getelementptr inbounds float, ptr %21, i64 7
  %172 = getelementptr inbounds %struct.stbtt_aligned_quad, ptr %19, i32 0, i32 3
  %173 = load float, ptr %172, align 4, !tbaa !24
  store float %173, ptr %171, align 4, !tbaa !5
  %174 = getelementptr inbounds float, ptr %21, i64 8
  %175 = getelementptr inbounds %struct.stbtt_aligned_quad, ptr %19, i32 0, i32 2
  %176 = load float, ptr %175, align 4, !tbaa !23
  store float %176, ptr %174, align 4, !tbaa !5
  %177 = getelementptr inbounds float, ptr %21, i64 9
  %178 = getelementptr inbounds %struct.stbtt_aligned_quad, ptr %19, i32 0, i32 7
  %179 = load float, ptr %178, align 4, !tbaa !26
  store float %179, ptr %177, align 4, !tbaa !5
  %180 = getelementptr inbounds float, ptr %21, i64 10
  %181 = getelementptr inbounds %struct.stbtt_aligned_quad, ptr %19, i32 0, i32 6
  %182 = load float, ptr %181, align 4, !tbaa !25
  store float %182, ptr %180, align 4, !tbaa !5
  %183 = getelementptr inbounds float, ptr %21, i64 11
  %184 = getelementptr inbounds %struct.stbtt_aligned_quad, ptr %19, i32 0, i32 7
  %185 = load float, ptr %184, align 4, !tbaa !26
  store float %185, ptr %183, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 96, ptr %22) #4
  %186 = load float, ptr %11, align 4, !tbaa !5
  store float %186, ptr %22, align 4, !tbaa !5
  %187 = getelementptr inbounds float, ptr %22, i64 1
  %188 = load float, ptr %12, align 4, !tbaa !5
  store float %188, ptr %187, align 4, !tbaa !5
  %189 = getelementptr inbounds float, ptr %22, i64 2
  %190 = load float, ptr %13, align 4, !tbaa !5
  store float %190, ptr %189, align 4, !tbaa !5
  %191 = getelementptr inbounds float, ptr %22, i64 3
  %192 = load float, ptr %14, align 4, !tbaa !5
  store float %192, ptr %191, align 4, !tbaa !5
  %193 = getelementptr inbounds float, ptr %22, i64 4
  %194 = load float, ptr %11, align 4, !tbaa !5
  store float %194, ptr %193, align 4, !tbaa !5
  %195 = getelementptr inbounds float, ptr %22, i64 5
  %196 = load float, ptr %12, align 4, !tbaa !5
  store float %196, ptr %195, align 4, !tbaa !5
  %197 = getelementptr inbounds float, ptr %22, i64 6
  %198 = load float, ptr %13, align 4, !tbaa !5
  store float %198, ptr %197, align 4, !tbaa !5
  %199 = getelementptr inbounds float, ptr %22, i64 7
  %200 = load float, ptr %14, align 4, !tbaa !5
  store float %200, ptr %199, align 4, !tbaa !5
  %201 = getelementptr inbounds float, ptr %22, i64 8
  %202 = load float, ptr %11, align 4, !tbaa !5
  store float %202, ptr %201, align 4, !tbaa !5
  %203 = getelementptr inbounds float, ptr %22, i64 9
  %204 = load float, ptr %12, align 4, !tbaa !5
  store float %204, ptr %203, align 4, !tbaa !5
  %205 = getelementptr inbounds float, ptr %22, i64 10
  %206 = load float, ptr %13, align 4, !tbaa !5
  store float %206, ptr %205, align 4, !tbaa !5
  %207 = getelementptr inbounds float, ptr %22, i64 11
  %208 = load float, ptr %14, align 4, !tbaa !5
  store float %208, ptr %207, align 4, !tbaa !5
  %209 = getelementptr inbounds float, ptr %22, i64 12
  %210 = load float, ptr %11, align 4, !tbaa !5
  store float %210, ptr %209, align 4, !tbaa !5
  %211 = getelementptr inbounds float, ptr %22, i64 13
  %212 = load float, ptr %12, align 4, !tbaa !5
  store float %212, ptr %211, align 4, !tbaa !5
  %213 = getelementptr inbounds float, ptr %22, i64 14
  %214 = load float, ptr %13, align 4, !tbaa !5
  store float %214, ptr %213, align 4, !tbaa !5
  %215 = getelementptr inbounds float, ptr %22, i64 15
  %216 = load float, ptr %14, align 4, !tbaa !5
  store float %216, ptr %215, align 4, !tbaa !5
  %217 = getelementptr inbounds float, ptr %22, i64 16
  %218 = load float, ptr %11, align 4, !tbaa !5
  store float %218, ptr %217, align 4, !tbaa !5
  %219 = getelementptr inbounds float, ptr %22, i64 17
  %220 = load float, ptr %12, align 4, !tbaa !5
  store float %220, ptr %219, align 4, !tbaa !5
  %221 = getelementptr inbounds float, ptr %22, i64 18
  %222 = load float, ptr %13, align 4, !tbaa !5
  store float %222, ptr %221, align 4, !tbaa !5
  %223 = getelementptr inbounds float, ptr %22, i64 19
  %224 = load float, ptr %14, align 4, !tbaa !5
  store float %224, ptr %223, align 4, !tbaa !5
  %225 = getelementptr inbounds float, ptr %22, i64 20
  %226 = load float, ptr %11, align 4, !tbaa !5
  store float %226, ptr %225, align 4, !tbaa !5
  %227 = getelementptr inbounds float, ptr %22, i64 21
  %228 = load float, ptr %12, align 4, !tbaa !5
  store float %228, ptr %227, align 4, !tbaa !5
  %229 = getelementptr inbounds float, ptr %22, i64 22
  %230 = load float, ptr %13, align 4, !tbaa !5
  store float %230, ptr %229, align 4, !tbaa !5
  %231 = getelementptr inbounds float, ptr %22, i64 23
  %232 = load float, ptr %14, align 4, !tbaa !5
  store float %232, ptr %231, align 4, !tbaa !5
  %233 = load ptr, ptr @__glewBindVertexArray, align 8, !tbaa !9
  %234 = load i32, ptr @_ZL5g_vao, align 4, !tbaa !13
  call void %233(i32 noundef %234)
  %235 = load ptr, ptr @__glewBindBuffer, align 8, !tbaa !9
  %236 = load i32, ptr @_ZL6g_vbos, align 4, !tbaa !13
  call void %235(i32 noundef 34962, i32 noundef %236)
  %237 = load ptr, ptr @__glewBufferData, align 8, !tbaa !9
  %238 = getelementptr inbounds [12 x float], ptr %20, i64 0, i64 0
  call void %237(i32 noundef 34962, i64 noundef 48, ptr noundef %238, i32 noundef 35044)
  %239 = load ptr, ptr @__glewBindBuffer, align 8, !tbaa !9
  %240 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @_ZL6g_vbos, i64 0, i64 1), align 4, !tbaa !13
  call void %239(i32 noundef 34962, i32 noundef %240)
  %241 = load ptr, ptr @__glewBufferData, align 8, !tbaa !9
  %242 = getelementptr inbounds [12 x float], ptr %21, i64 0, i64 0
  call void %241(i32 noundef 34962, i64 noundef 48, ptr noundef %242, i32 noundef 35044)
  %243 = load ptr, ptr @__glewBindBuffer, align 8, !tbaa !9
  %244 = load i32, ptr getelementptr inbounds ([3 x i32], ptr @_ZL6g_vbos, i64 0, i64 2), align 4, !tbaa !13
  call void %243(i32 noundef 34962, i32 noundef %244)
  %245 = load ptr, ptr @__glewBufferData, align 8, !tbaa !9
  %246 = getelementptr inbounds [24 x float], ptr %22, i64 0, i64 0
  call void %245(i32 noundef 34962, i64 noundef 96, ptr noundef %246, i32 noundef 35044)
  call void @glDrawArrays(i32 noundef 4, i32 noundef 0, i32 noundef 6)
  call void @llvm.lifetime.end.p0(i64 96, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #4
  br label %247

247:                                              ; preds = %113, %110, %107
  br label %248

248:                                              ; preds = %247, %106
  %249 = load ptr, ptr %8, align 8, !tbaa !9
  %250 = getelementptr inbounds i8, ptr %249, i32 1
  store ptr %250, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %70, !llvm.loop !27

251:                                              ; preds = %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %252

252:                                              ; preds = %251, %29, %25
  ret void
}

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

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

declare void @glDrawArrays(i32 noundef, i32 noundef, i32 noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 #2 = { 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 #3 = { 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 #4 = { 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS9TextAlign", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !6, i64 0}
!19 = !{!"_ZTS18stbtt_aligned_quad", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28}
!20 = !{!19, !6, i64 4}
!21 = !{!19, !6, i64 16}
!22 = !{!19, !6, i64 20}
!23 = !{!19, !6, i64 8}
!24 = !{!19, !6, i64 12}
!25 = !{!19, !6, i64 24}
!26 = !{!19, !6, i64 28}
!27 = distinct !{!27, !17}


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

%struct.stbtt_bakedchar = type { i16, i16, i16, i16, float, float, float }
%struct.stbtt_aligned_quad = type { float, float, float, float, float, float, float, float }

@_ZL7g_cdata = external hidden global [96 x %struct.stbtt_bakedchar], align 16
@_ZL6g_ftex = external hidden local_unnamed_addr global i32, align 4
@_ZL5g_vao = external hidden local_unnamed_addr global i32, align 4
@_ZL6g_vbos = external hidden local_unnamed_addr global [3 x i32], align 4
@__glewBindVertexArray = external local_unnamed_addr global ptr, align 8
@__glewBindBuffer = external local_unnamed_addr global ptr, align 8
@__glewBufferData = external local_unnamed_addr global ptr, align 8
@_ZL10g_tabStops = external hidden local_unnamed_addr constant [4 x float], align 16

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare void @glBindTexture(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13sRenderStringffPKc9TextAlignj(float noundef %0, float noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #2 {
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca %struct.stbtt_aligned_quad, align 8
  %9 = alloca [12 x float], align 16
  %10 = alloca [12 x float], align 16
  %11 = alloca [24 x float], align 16
  store float %0, ptr %6, align 4, !tbaa !5
  store float %1, ptr %7, align 4, !tbaa !5
  %12 = load i32, ptr @_ZL6g_ftex, align 4, !tbaa !9
  %13 = icmp ne i32 %12, 0
  %14 = icmp ne ptr %2, null
  %or.cond3 = and i1 %14, %13
  br i1 %or.cond3, label %15, label %.loopexit54

15:                                               ; preds = %5
  switch i32 %3, label %23 [
    i32 1, label %16
    i32 2, label %20
  ]

16:                                               ; preds = %15
  %17 = tail call noundef float @_ZL14sGetTextLengthP15stbtt_bakedcharPKc(ptr noundef nonnull @_ZL7g_cdata, ptr noundef nonnull %2)
  %18 = fmul float %17, 5.000000e-01
  %19 = fsub float %0, %18
  store float %19, ptr %6, align 4, !tbaa !5
  br label %23

20:                                               ; preds = %15
  %21 = tail call noundef float @_ZL14sGetTextLengthP15stbtt_bakedcharPKc(ptr noundef nonnull @_ZL7g_cdata, ptr noundef nonnull %2)
  %22 = fsub float %0, %21
  store float %22, ptr %6, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %15, %20, %16
  %24 = phi float [ %0, %15 ], [ %22, %20 ], [ %19, %16 ]
  %25 = lshr i32 %4, 8
  %26 = lshr i32 %4, 16
  %27 = insertelement <4 x i32> poison, i32 %4, i64 0
  %28 = insertelement <4 x i32> %27, i32 %25, i64 1
  %29 = insertelement <4 x i32> %28, i32 %26, i64 2
  %30 = shufflevector <4 x i32> %29, <4 x i32> poison, <4 x i32> <i32 0, i32 1, i32 2, i32 0>
  %31 = and <4 x i32> %30, <i32 255, i32 255, i32 255, i32 poison>
  %32 = lshr <4 x i32> %30, <i32 255, i32 255, i32 255, i32 24>
  %33 = shufflevector <4 x i32> %31, <4 x i32> %32, <4 x i32> <i32 0, i32 1, i32 2, i32 7>
  %34 = uitofp nneg <4 x i32> %33 to <4 x float>
  %35 = fdiv <4 x float> %34, <float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02>
  %36 = load i32, ptr @_ZL6g_ftex, align 4, !tbaa !9
  tail call void @glBindTexture(i32 noundef 3553, i32 noundef %36)
  %37 = load i8, ptr %2, align 1, !tbaa !11
  %.not56 = icmp eq i8 %37, 0
  br i1 %.not56, label %.loopexit54, label %.lr.ph

.lr.ph:                                           ; preds = %23
  %38 = getelementptr inbounds i8, ptr %8, i64 16
  %39 = getelementptr inbounds i8, ptr %9, i64 16
  %40 = getelementptr inbounds i8, ptr %9, i64 20
  %41 = getelementptr inbounds i8, ptr %9, i64 36
  %42 = getelementptr inbounds i8, ptr %9, i64 44
  %43 = getelementptr inbounds i8, ptr %8, i64 8
  %44 = getelementptr inbounds i8, ptr %8, i64 24
  %45 = getelementptr inbounds i8, ptr %10, i64 16
  %46 = getelementptr inbounds i8, ptr %10, i64 20
  %47 = getelementptr inbounds i8, ptr %10, i64 36
  %48 = getelementptr inbounds i8, ptr %10, i64 44
  %49 = getelementptr inbounds i8, ptr %11, i64 16
  %50 = getelementptr inbounds i8, ptr %11, i64 32
  %51 = getelementptr inbounds i8, ptr %11, i64 48
  %52 = getelementptr inbounds i8, ptr %11, i64 64
  %53 = getelementptr inbounds i8, ptr %11, i64 80
  %54 = load float, ptr @_ZL10g_tabStops, align 16
  %55 = fadd float %24, %54
  %56 = load float, ptr getelementptr inbounds (i8, ptr @_ZL10g_tabStops, i64 4), align 4
  %57 = fadd float %24, %56
  %58 = load float, ptr getelementptr inbounds (i8, ptr @_ZL10g_tabStops, i64 8), align 8
  %59 = fadd float %24, %58
  %60 = load float, ptr getelementptr inbounds (i8, ptr @_ZL10g_tabStops, i64 12), align 4
  %61 = fadd float %24, %60
  br label %62

62:                                               ; preds = %.lr.ph, %.loopexit
  %63 = phi i8 [ %37, %.lr.ph ], [ %104, %.loopexit ]
  %.04857 = phi ptr [ %2, %.lr.ph ], [ %103, %.loopexit ]
  %64 = zext i8 %63 to i32
  %65 = icmp eq i8 %63, 9
  br i1 %65, label %.preheader, label %75

.preheader:                                       ; preds = %62
  %66 = load float, ptr %6, align 4, !tbaa !5
  %67 = fcmp olt float %66, %55
  br i1 %67, label %74, label %68

68:                                               ; preds = %.preheader
  %69 = fcmp olt float %66, %57
  br i1 %69, label %74, label %70

70:                                               ; preds = %68
  %71 = fcmp olt float %66, %59
  br i1 %71, label %74, label %72

72:                                               ; preds = %70
  %73 = fcmp olt float %66, %61
  br i1 %73, label %74, label %.loopexit

74:                                               ; preds = %72, %70, %68, %.preheader
  %.lcssa = phi float [ %55, %.preheader ], [ %57, %68 ], [ %59, %70 ], [ %61, %72 ]
  store float %.lcssa, ptr %6, align 4, !tbaa !5
  br label %.loopexit

75:                                               ; preds = %62
  %or.cond = icmp sgt i8 %63, 31
  br i1 %or.cond, label %76, label %.loopexit

76:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #4
  %77 = add nsw i32 %64, -32
  call void @_ZL13sGetBakedQuadP15stbtt_bakedchariiiPfS1_P18stbtt_aligned_quad(ptr noundef nonnull @_ZL7g_cdata, i32 noundef 512, i32 noundef 512, i32 noundef %77, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %9) #4
  %78 = load <2 x float>, ptr %8, align 8, !tbaa !5
  %79 = shufflevector <2 x float> %78, <2 x float> poison, <4 x i32> <i32 1, i32 0, i32 1, i32 0>
  store <4 x float> %79, ptr %40, align 4, !tbaa !5
  %80 = load <2 x float>, ptr %38, align 8, !tbaa !5
  %81 = extractelement <2 x float> %80, i64 0
  store float %81, ptr %39, align 16, !tbaa !5
  %82 = shufflevector <2 x float> %78, <2 x float> %80, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
  store <4 x float> %82, ptr %9, align 16, !tbaa !5
  %83 = shufflevector <2 x float> %80, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  store <2 x float> %83, ptr %41, align 4, !tbaa !5
  %84 = extractelement <2 x float> %80, i64 1
  store float %84, ptr %42, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %10) #4
  %85 = load <2 x float>, ptr %43, align 8, !tbaa !5
  %86 = shufflevector <2 x float> %85, <2 x float> poison, <4 x i32> <i32 1, i32 0, i32 1, i32 0>
  store <4 x float> %86, ptr %46, align 4, !tbaa !5
  %87 = load <2 x float>, ptr %44, align 8, !tbaa !5
  %88 = extractelement <2 x float> %87, i64 0
  store float %88, ptr %45, align 16, !tbaa !5
  %89 = shufflevector <2 x float> %85, <2 x float> %87, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
  store <4 x float> %89, ptr %10, align 16, !tbaa !5
  %90 = shufflevector <2 x float> %87, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  store <2 x float> %90, ptr %47, align 4, !tbaa !5
  %91 = extractelement <2 x float> %87, i64 1
  store float %91, ptr %48, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %11) #4
  store <4 x float> %35, ptr %11, align 16, !tbaa !5
  store <4 x float> %35, ptr %49, align 16, !tbaa !5
  store <4 x float> %35, ptr %50, align 16, !tbaa !5
  store <4 x float> %35, ptr %51, align 16, !tbaa !5
  store <4 x float> %35, ptr %52, align 16, !tbaa !5
  store <4 x float> %35, ptr %53, align 16, !tbaa !5
  %92 = load ptr, ptr @__glewBindVertexArray, align 8, !tbaa !12
  %93 = load i32, ptr @_ZL5g_vao, align 4, !tbaa !9
  call void %92(i32 noundef %93)
  %94 = load ptr, ptr @__glewBindBuffer, align 8, !tbaa !12
  %95 = load i32, ptr @_ZL6g_vbos, align 4, !tbaa !9
  call void %94(i32 noundef 34962, i32 noundef %95)
  %96 = load ptr, ptr @__glewBufferData, align 8, !tbaa !12
  call void %96(i32 noundef 34962, i64 noundef 48, ptr noundef nonnull %9, i32 noundef 35044)
  %97 = load ptr, ptr @__glewBindBuffer, align 8, !tbaa !12
  %98 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL6g_vbos, i64 4), align 4, !tbaa !9
  call void %97(i32 noundef 34962, i32 noundef %98)
  %99 = load ptr, ptr @__glewBufferData, align 8, !tbaa !12
  call void %99(i32 noundef 34962, i64 noundef 48, ptr noundef nonnull %10, i32 noundef 35044)
  %100 = load ptr, ptr @__glewBindBuffer, align 8, !tbaa !12
  %101 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL6g_vbos, i64 8), align 4, !tbaa !9
  call void %100(i32 noundef 34962, i32 noundef %101)
  %102 = load ptr, ptr @__glewBufferData, align 8, !tbaa !12
  call void %102(i32 noundef 34962, i64 noundef 96, ptr noundef nonnull %11, i32 noundef 35044)
  call void @glDrawArrays(i32 noundef 4, i32 noundef 0, i32 noundef 6)
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #4
  br label %.loopexit

.loopexit:                                        ; preds = %72, %74, %75, %76
  %103 = getelementptr inbounds i8, ptr %.04857, i64 1
  %104 = load i8, ptr %103, align 1, !tbaa !11
  %.not = icmp eq i8 %104, 0
  br i1 %.not, label %.loopexit54, label %62, !llvm.loop !14

.loopexit54:                                      ; preds = %.loopexit, %23, %5
  ret void
}

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

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

declare void @glDrawArrays(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 #2 = { 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 #3 = { 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 #4 = { 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


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