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

; 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.GfxCmd = type { i8, i8, [2 x i8], i32, %union.anon }
%union.anon = type { %struct.GfxText }
%struct.GfxText = type { float, float, i32, ptr }
%struct.GfxRect = type { i16, i16, i16, i16, i16 }
%struct.GfxLine = type { i16, i16, i16, i16, i16 }

@_ZL17g_gfxCmdQueueSize = external hidden global i32, align 4
@_ZL13g_gfxCmdQueue = external hidden global [5000 x %struct.GfxCmd], align 16
@_ZL9g_program = external hidden global i32, align 4
@__glewUseProgram = external global ptr, align 8
@_ZL25g_programViewportLocation = external hidden global i32, align 4
@_ZL24g_programTextureLocation = external hidden global i32, align 4
@__glewUniform2f = external global ptr, align 8
@__glewUniform1i = external global ptr, align 8

; 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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11sRenderLineffffffj(float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL12sDrawPolygonPKfjfj(ptr noundef, i32 noundef, float noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z13sRenderStringffPKc9TextAlignj(float noundef, float noundef, ptr noundef, i32 noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13RenderGLFlushii(i32 noundef %0, i32 noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca float, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca [6 x float], align 16
  %11 = alloca [6 x float], align 16
  store i32 %0, ptr %3, align 4, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  store ptr @_ZL13g_gfxCmdQueue, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %12 = load i32, ptr @_ZL17g_gfxCmdQueueSize, align 4, !tbaa !5
  store i32 %12, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store float 1.250000e-01, ptr %7, align 4, !tbaa !11
  %13 = load i32, ptr %3, align 4, !tbaa !5
  %14 = load i32, ptr %4, align 4, !tbaa !5
  call void @glViewport(i32 noundef 0, i32 noundef 0, i32 noundef %13, i32 noundef %14)
  %15 = load ptr, ptr @__glewUseProgram, align 8, !tbaa !9
  %16 = load i32, ptr @_ZL9g_program, align 4, !tbaa !5
  call void %15(i32 noundef %16)
  %17 = load ptr, ptr @__glewUniform2f, align 8, !tbaa !9
  %18 = load i32, ptr @_ZL25g_programViewportLocation, align 4, !tbaa !5
  %19 = load i32, ptr %3, align 4, !tbaa !5
  %20 = sitofp i32 %19 to float
  %21 = load i32, ptr %4, align 4, !tbaa !5
  %22 = sitofp i32 %21 to float
  call void %17(i32 noundef %18, float noundef %20, float noundef %22)
  %23 = load ptr, ptr @__glewUniform1i, align 8, !tbaa !9
  %24 = load i32, ptr @_ZL24g_programTextureLocation, align 4, !tbaa !5
  call void %23(i32 noundef %24, i32 noundef 0)
  call void @glDisable(i32 noundef 3089)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %25

25:                                               ; preds = %384, %2
  %26 = load i32, ptr %8, align 4, !tbaa !5
  %27 = load i32, ptr %6, align 4, !tbaa !5
  %28 = icmp slt i32 %26, %27
  br i1 %28, label %30, label %29

29:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %387

30:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %31 = load ptr, ptr %5, align 8, !tbaa !9
  %32 = load i32, ptr %8, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds %struct.GfxCmd, ptr %31, i64 %33
  store ptr %34, ptr %9, align 8, !tbaa !9
  %35 = load ptr, ptr %9, align 8, !tbaa !9
  %36 = getelementptr inbounds %struct.GfxCmd, ptr %35, i32 0, i32 0
  %37 = load i8, ptr %36, align 8, !tbaa !13
  %38 = sext i8 %37 to i32
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %40, label %110

40:                                               ; preds = %30
  %41 = load ptr, ptr %9, align 8, !tbaa !9
  %42 = getelementptr inbounds %struct.GfxCmd, ptr %41, i32 0, i32 4
  %43 = getelementptr inbounds %struct.GfxRect, ptr %42, i32 0, i32 4
  %44 = load i16, ptr %43, align 8, !tbaa !15
  %45 = sext i16 %44 to i32
  %46 = icmp eq i32 %45, 0
  br i1 %46, label %47, label %75

47:                                               ; preds = %40
  %48 = load ptr, ptr %9, align 8, !tbaa !9
  %49 = getelementptr inbounds %struct.GfxCmd, ptr %48, i32 0, i32 4
  %50 = getelementptr inbounds %struct.GfxRect, ptr %49, i32 0, i32 0
  %51 = load i16, ptr %50, align 8, !tbaa !15
  %52 = sitofp i16 %51 to float
  %53 = call float @llvm.fmuladd.f32(float %52, float 1.250000e-01, float 5.000000e-01)
  %54 = load ptr, ptr %9, align 8, !tbaa !9
  %55 = getelementptr inbounds %struct.GfxCmd, ptr %54, i32 0, i32 4
  %56 = getelementptr inbounds %struct.GfxRect, ptr %55, i32 0, i32 1
  %57 = load i16, ptr %56, align 2, !tbaa !15
  %58 = sitofp i16 %57 to float
  %59 = call float @llvm.fmuladd.f32(float %58, float 1.250000e-01, float 5.000000e-01)
  %60 = load ptr, ptr %9, align 8, !tbaa !9
  %61 = getelementptr inbounds %struct.GfxCmd, ptr %60, i32 0, i32 4
  %62 = getelementptr inbounds %struct.GfxRect, ptr %61, i32 0, i32 2
  %63 = load i16, ptr %62, align 4, !tbaa !15
  %64 = sitofp i16 %63 to float
  %65 = call float @llvm.fmuladd.f32(float %64, float 1.250000e-01, float -1.000000e+00)
  %66 = load ptr, ptr %9, align 8, !tbaa !9
  %67 = getelementptr inbounds %struct.GfxCmd, ptr %66, i32 0, i32 4
  %68 = getelementptr inbounds %struct.GfxRect, ptr %67, i32 0, i32 3
  %69 = load i16, ptr %68, align 2, !tbaa !15
  %70 = sitofp i16 %69 to float
  %71 = call float @llvm.fmuladd.f32(float %70, float 1.250000e-01, float -1.000000e+00)
  %72 = load ptr, ptr %9, align 8, !tbaa !9
  %73 = getelementptr inbounds %struct.GfxCmd, ptr %72, i32 0, i32 3
  %74 = load i32, ptr %73, align 4, !tbaa !16
  call void @_ZL9sDrawRectfffffj(float noundef %53, float noundef %59, float noundef %65, float noundef %71, float noundef 1.000000e+00, i32 noundef %74)
  br label %109

75:                                               ; preds = %40
  %76 = load ptr, ptr %9, align 8, !tbaa !9
  %77 = getelementptr inbounds %struct.GfxCmd, ptr %76, i32 0, i32 4
  %78 = getelementptr inbounds %struct.GfxRect, ptr %77, i32 0, i32 0
  %79 = load i16, ptr %78, align 8, !tbaa !15
  %80 = sitofp i16 %79 to float
  %81 = call float @llvm.fmuladd.f32(float %80, float 1.250000e-01, float 5.000000e-01)
  %82 = load ptr, ptr %9, align 8, !tbaa !9
  %83 = getelementptr inbounds %struct.GfxCmd, ptr %82, i32 0, i32 4
  %84 = getelementptr inbounds %struct.GfxRect, ptr %83, i32 0, i32 1
  %85 = load i16, ptr %84, align 2, !tbaa !15
  %86 = sitofp i16 %85 to float
  %87 = call float @llvm.fmuladd.f32(float %86, float 1.250000e-01, float 5.000000e-01)
  %88 = load ptr, ptr %9, align 8, !tbaa !9
  %89 = getelementptr inbounds %struct.GfxCmd, ptr %88, i32 0, i32 4
  %90 = getelementptr inbounds %struct.GfxRect, ptr %89, i32 0, i32 2
  %91 = load i16, ptr %90, align 4, !tbaa !15
  %92 = sitofp i16 %91 to float
  %93 = call float @llvm.fmuladd.f32(float %92, float 1.250000e-01, float -1.000000e+00)
  %94 = load ptr, ptr %9, align 8, !tbaa !9
  %95 = getelementptr inbounds %struct.GfxCmd, ptr %94, i32 0, i32 4
  %96 = getelementptr inbounds %struct.GfxRect, ptr %95, i32 0, i32 3
  %97 = load i16, ptr %96, align 2, !tbaa !15
  %98 = sitofp i16 %97 to float
  %99 = call float @llvm.fmuladd.f32(float %98, float 1.250000e-01, float -1.000000e+00)
  %100 = load ptr, ptr %9, align 8, !tbaa !9
  %101 = getelementptr inbounds %struct.GfxCmd, ptr %100, i32 0, i32 4
  %102 = getelementptr inbounds %struct.GfxRect, ptr %101, i32 0, i32 4
  %103 = load i16, ptr %102, align 8, !tbaa !15
  %104 = sitofp i16 %103 to float
  %105 = fmul float %104, 1.250000e-01
  %106 = load ptr, ptr %9, align 8, !tbaa !9
  %107 = getelementptr inbounds %struct.GfxCmd, ptr %106, i32 0, i32 3
  %108 = load i32, ptr %107, align 4, !tbaa !16
  call void @_ZL16sDrawRoundedRectffffffj(float noundef %81, float noundef %87, float noundef %93, float noundef %99, float noundef %105, float noundef 1.000000e+00, i32 noundef %108)
  br label %109

109:                                              ; preds = %75, %47
  br label %383

110:                                              ; preds = %30
  %111 = load ptr, ptr %9, align 8, !tbaa !9
  %112 = getelementptr inbounds %struct.GfxCmd, ptr %111, i32 0, i32 0
  %113 = load i8, ptr %112, align 8, !tbaa !13
  %114 = sext i8 %113 to i32
  %115 = icmp eq i32 %114, 2
  br i1 %115, label %116, label %155

116:                                              ; preds = %110
  %117 = load ptr, ptr %9, align 8, !tbaa !9
  %118 = getelementptr inbounds %struct.GfxCmd, ptr %117, i32 0, i32 4
  %119 = getelementptr inbounds %struct.GfxLine, ptr %118, i32 0, i32 0
  %120 = load i16, ptr %119, align 8, !tbaa !15
  %121 = sext i16 %120 to i32
  %122 = sitofp i32 %121 to float
  %123 = fmul float %122, 1.250000e-01
  %124 = load ptr, ptr %9, align 8, !tbaa !9
  %125 = getelementptr inbounds %struct.GfxCmd, ptr %124, i32 0, i32 4
  %126 = getelementptr inbounds %struct.GfxLine, ptr %125, i32 0, i32 1
  %127 = load i16, ptr %126, align 2, !tbaa !15
  %128 = sext i16 %127 to i32
  %129 = sitofp i32 %128 to float
  %130 = fmul float %129, 1.250000e-01
  %131 = load ptr, ptr %9, align 8, !tbaa !9
  %132 = getelementptr inbounds %struct.GfxCmd, ptr %131, i32 0, i32 4
  %133 = getelementptr inbounds %struct.GfxLine, ptr %132, i32 0, i32 2
  %134 = load i16, ptr %133, align 4, !tbaa !15
  %135 = sext i16 %134 to i32
  %136 = sitofp i32 %135 to float
  %137 = fmul float %136, 1.250000e-01
  %138 = load ptr, ptr %9, align 8, !tbaa !9
  %139 = getelementptr inbounds %struct.GfxCmd, ptr %138, i32 0, i32 4
  %140 = getelementptr inbounds %struct.GfxLine, ptr %139, i32 0, i32 3
  %141 = load i16, ptr %140, align 2, !tbaa !15
  %142 = sext i16 %141 to i32
  %143 = sitofp i32 %142 to float
  %144 = fmul float %143, 1.250000e-01
  %145 = load ptr, ptr %9, align 8, !tbaa !9
  %146 = getelementptr inbounds %struct.GfxCmd, ptr %145, i32 0, i32 4
  %147 = getelementptr inbounds %struct.GfxLine, ptr %146, i32 0, i32 4
  %148 = load i16, ptr %147, align 8, !tbaa !15
  %149 = sext i16 %148 to i32
  %150 = sitofp i32 %149 to float
  %151 = fmul float %150, 1.250000e-01
  %152 = load ptr, ptr %9, align 8, !tbaa !9
  %153 = getelementptr inbounds %struct.GfxCmd, ptr %152, i32 0, i32 3
  %154 = load i32, ptr %153, align 4, !tbaa !16
  call void @_Z11sRenderLineffffffj(float noundef %123, float noundef %130, float noundef %137, float noundef %144, float noundef %151, float noundef 1.000000e+00, i32 noundef %154)
  br label %382

155:                                              ; preds = %110
  %156 = load ptr, ptr %9, align 8, !tbaa !9
  %157 = getelementptr inbounds %struct.GfxCmd, ptr %156, i32 0, i32 0
  %158 = load i8, ptr %157, align 8, !tbaa !13
  %159 = sext i8 %158 to i32
  %160 = icmp eq i32 %159, 1
  br i1 %160, label %161, label %319

161:                                              ; preds = %155
  %162 = load ptr, ptr %9, align 8, !tbaa !9
  %163 = getelementptr inbounds %struct.GfxCmd, ptr %162, i32 0, i32 1
  %164 = load i8, ptr %163, align 1, !tbaa !17
  %165 = sext i8 %164 to i32
  %166 = icmp eq i32 %165, 1
  br i1 %166, label %167, label %236

167:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #5
  %168 = load ptr, ptr %9, align 8, !tbaa !9
  %169 = getelementptr inbounds %struct.GfxCmd, ptr %168, i32 0, i32 4
  %170 = getelementptr inbounds %struct.GfxRect, ptr %169, i32 0, i32 0
  %171 = load i16, ptr %170, align 8, !tbaa !15
  %172 = sitofp i16 %171 to float
  %173 = call float @llvm.fmuladd.f32(float %172, float 1.250000e-01, float 5.000000e-01)
  store float %173, ptr %10, align 4, !tbaa !11
  %174 = getelementptr inbounds float, ptr %10, i64 1
  %175 = load ptr, ptr %9, align 8, !tbaa !9
  %176 = getelementptr inbounds %struct.GfxCmd, ptr %175, i32 0, i32 4
  %177 = getelementptr inbounds %struct.GfxRect, ptr %176, i32 0, i32 1
  %178 = load i16, ptr %177, align 2, !tbaa !15
  %179 = sitofp i16 %178 to float
  %180 = call float @llvm.fmuladd.f32(float %179, float 1.250000e-01, float 5.000000e-01)
  store float %180, ptr %174, align 4, !tbaa !11
  %181 = getelementptr inbounds float, ptr %10, i64 2
  %182 = load ptr, ptr %9, align 8, !tbaa !9
  %183 = getelementptr inbounds %struct.GfxCmd, ptr %182, i32 0, i32 4
  %184 = getelementptr inbounds %struct.GfxRect, ptr %183, i32 0, i32 0
  %185 = load i16, ptr %184, align 8, !tbaa !15
  %186 = sitofp i16 %185 to float
  %187 = call float @llvm.fmuladd.f32(float %186, float 1.250000e-01, float 5.000000e-01)
  %188 = load ptr, ptr %9, align 8, !tbaa !9
  %189 = getelementptr inbounds %struct.GfxCmd, ptr %188, i32 0, i32 4
  %190 = getelementptr inbounds %struct.GfxRect, ptr %189, i32 0, i32 2
  %191 = load i16, ptr %190, align 4, !tbaa !15
  %192 = sitofp i16 %191 to float
  %193 = call float @llvm.fmuladd.f32(float %192, float 1.250000e-01, float %187)
  %194 = fsub float %193, 1.000000e+00
  store float %194, ptr %181, align 4, !tbaa !11
  %195 = getelementptr inbounds float, ptr %10, i64 3
  %196 = load ptr, ptr %9, align 8, !tbaa !9
  %197 = getelementptr inbounds %struct.GfxCmd, ptr %196, i32 0, i32 4
  %198 = getelementptr inbounds %struct.GfxRect, ptr %197, i32 0, i32 1
  %199 = load i16, ptr %198, align 2, !tbaa !15
  %200 = sitofp i16 %199 to float
  %201 = call float @llvm.fmuladd.f32(float %200, float 1.250000e-01, float 5.000000e-01)
  %202 = load ptr, ptr %9, align 8, !tbaa !9
  %203 = getelementptr inbounds %struct.GfxCmd, ptr %202, i32 0, i32 4
  %204 = getelementptr inbounds %struct.GfxRect, ptr %203, i32 0, i32 3
  %205 = load i16, ptr %204, align 2, !tbaa !15
  %206 = sitofp i16 %205 to float
  %207 = fmul float %206, 1.250000e-01
  %208 = fdiv float %207, 2.000000e+00
  %209 = fadd float %201, %208
  %210 = fsub float %209, 5.000000e-01
  store float %210, ptr %195, align 4, !tbaa !11
  %211 = getelementptr inbounds float, ptr %10, i64 4
  %212 = load ptr, ptr %9, align 8, !tbaa !9
  %213 = getelementptr inbounds %struct.GfxCmd, ptr %212, i32 0, i32 4
  %214 = getelementptr inbounds %struct.GfxRect, ptr %213, i32 0, i32 0
  %215 = load i16, ptr %214, align 8, !tbaa !15
  %216 = sitofp i16 %215 to float
  %217 = call float @llvm.fmuladd.f32(float %216, float 1.250000e-01, float 5.000000e-01)
  store float %217, ptr %211, align 4, !tbaa !11
  %218 = getelementptr inbounds float, ptr %10, i64 5
  %219 = load ptr, ptr %9, align 8, !tbaa !9
  %220 = getelementptr inbounds %struct.GfxCmd, ptr %219, i32 0, i32 4
  %221 = getelementptr inbounds %struct.GfxRect, ptr %220, i32 0, i32 1
  %222 = load i16, ptr %221, align 2, !tbaa !15
  %223 = sitofp i16 %222 to float
  %224 = call float @llvm.fmuladd.f32(float %223, float 1.250000e-01, float 5.000000e-01)
  %225 = load ptr, ptr %9, align 8, !tbaa !9
  %226 = getelementptr inbounds %struct.GfxCmd, ptr %225, i32 0, i32 4
  %227 = getelementptr inbounds %struct.GfxRect, ptr %226, i32 0, i32 3
  %228 = load i16, ptr %227, align 2, !tbaa !15
  %229 = sitofp i16 %228 to float
  %230 = call float @llvm.fmuladd.f32(float %229, float 1.250000e-01, float %224)
  %231 = fsub float %230, 1.000000e+00
  store float %231, ptr %218, align 4, !tbaa !11
  %232 = getelementptr inbounds [6 x float], ptr %10, i64 0, i64 0
  %233 = load ptr, ptr %9, align 8, !tbaa !9
  %234 = getelementptr inbounds %struct.GfxCmd, ptr %233, i32 0, i32 3
  %235 = load i32, ptr %234, align 4, !tbaa !16
  call void @_ZL12sDrawPolygonPKfjfj(ptr noundef %232, i32 noundef 3, float noundef 1.000000e+00, i32 noundef %235)
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #5
  br label %236

236:                                              ; preds = %167, %161
  %237 = load ptr, ptr %9, align 8, !tbaa !9
  %238 = getelementptr inbounds %struct.GfxCmd, ptr %237, i32 0, i32 1
  %239 = load i8, ptr %238, align 1, !tbaa !17
  %240 = sext i8 %239 to i32
  %241 = icmp eq i32 %240, 2
  br i1 %241, label %242, label %318

242:                                              ; preds = %236
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #5
  %243 = load ptr, ptr %9, align 8, !tbaa !9
  %244 = getelementptr inbounds %struct.GfxCmd, ptr %243, i32 0, i32 4
  %245 = getelementptr inbounds %struct.GfxRect, ptr %244, i32 0, i32 0
  %246 = load i16, ptr %245, align 8, !tbaa !15
  %247 = sitofp i16 %246 to float
  %248 = call float @llvm.fmuladd.f32(float %247, float 1.250000e-01, float 5.000000e-01)
  store float %248, ptr %11, align 4, !tbaa !11
  %249 = getelementptr inbounds float, ptr %11, i64 1
  %250 = load ptr, ptr %9, align 8, !tbaa !9
  %251 = getelementptr inbounds %struct.GfxCmd, ptr %250, i32 0, i32 4
  %252 = getelementptr inbounds %struct.GfxRect, ptr %251, i32 0, i32 1
  %253 = load i16, ptr %252, align 2, !tbaa !15
  %254 = sitofp i16 %253 to float
  %255 = call float @llvm.fmuladd.f32(float %254, float 1.250000e-01, float 5.000000e-01)
  %256 = load ptr, ptr %9, align 8, !tbaa !9
  %257 = getelementptr inbounds %struct.GfxCmd, ptr %256, i32 0, i32 4
  %258 = getelementptr inbounds %struct.GfxRect, ptr %257, i32 0, i32 3
  %259 = load i16, ptr %258, align 2, !tbaa !15
  %260 = sitofp i16 %259 to float
  %261 = call float @llvm.fmuladd.f32(float %260, float 1.250000e-01, float %255)
  %262 = fsub float %261, 1.000000e+00
  store float %262, ptr %249, align 4, !tbaa !11
  %263 = getelementptr inbounds float, ptr %11, i64 2
  %264 = load ptr, ptr %9, align 8, !tbaa !9
  %265 = getelementptr inbounds %struct.GfxCmd, ptr %264, i32 0, i32 4
  %266 = getelementptr inbounds %struct.GfxRect, ptr %265, i32 0, i32 0
  %267 = load i16, ptr %266, align 8, !tbaa !15
  %268 = sitofp i16 %267 to float
  %269 = call float @llvm.fmuladd.f32(float %268, float 1.250000e-01, float 5.000000e-01)
  %270 = load ptr, ptr %9, align 8, !tbaa !9
  %271 = getelementptr inbounds %struct.GfxCmd, ptr %270, i32 0, i32 4
  %272 = getelementptr inbounds %struct.GfxRect, ptr %271, i32 0, i32 2
  %273 = load i16, ptr %272, align 4, !tbaa !15
  %274 = sitofp i16 %273 to float
  %275 = fmul float %274, 1.250000e-01
  %276 = fdiv float %275, 2.000000e+00
  %277 = fadd float %269, %276
  %278 = fsub float %277, 5.000000e-01
  store float %278, ptr %263, align 4, !tbaa !11
  %279 = getelementptr inbounds float, ptr %11, i64 3
  %280 = load ptr, ptr %9, align 8, !tbaa !9
  %281 = getelementptr inbounds %struct.GfxCmd, ptr %280, i32 0, i32 4
  %282 = getelementptr inbounds %struct.GfxRect, ptr %281, i32 0, i32 1
  %283 = load i16, ptr %282, align 2, !tbaa !15
  %284 = sitofp i16 %283 to float
  %285 = call float @llvm.fmuladd.f32(float %284, float 1.250000e-01, float 5.000000e-01)
  store float %285, ptr %279, align 4, !tbaa !11
  %286 = getelementptr inbounds float, ptr %11, i64 4
  %287 = load ptr, ptr %9, align 8, !tbaa !9
  %288 = getelementptr inbounds %struct.GfxCmd, ptr %287, i32 0, i32 4
  %289 = getelementptr inbounds %struct.GfxRect, ptr %288, i32 0, i32 0
  %290 = load i16, ptr %289, align 8, !tbaa !15
  %291 = sitofp i16 %290 to float
  %292 = call float @llvm.fmuladd.f32(float %291, float 1.250000e-01, float 5.000000e-01)
  %293 = load ptr, ptr %9, align 8, !tbaa !9
  %294 = getelementptr inbounds %struct.GfxCmd, ptr %293, i32 0, i32 4
  %295 = getelementptr inbounds %struct.GfxRect, ptr %294, i32 0, i32 2
  %296 = load i16, ptr %295, align 4, !tbaa !15
  %297 = sitofp i16 %296 to float
  %298 = call float @llvm.fmuladd.f32(float %297, float 1.250000e-01, float %292)
  %299 = fsub float %298, 1.000000e+00
  store float %299, ptr %286, align 4, !tbaa !11
  %300 = getelementptr inbounds float, ptr %11, i64 5
  %301 = load ptr, ptr %9, align 8, !tbaa !9
  %302 = getelementptr inbounds %struct.GfxCmd, ptr %301, i32 0, i32 4
  %303 = getelementptr inbounds %struct.GfxRect, ptr %302, i32 0, i32 1
  %304 = load i16, ptr %303, align 2, !tbaa !15
  %305 = sitofp i16 %304 to float
  %306 = call float @llvm.fmuladd.f32(float %305, float 1.250000e-01, float 5.000000e-01)
  %307 = load ptr, ptr %9, align 8, !tbaa !9
  %308 = getelementptr inbounds %struct.GfxCmd, ptr %307, i32 0, i32 4
  %309 = getelementptr inbounds %struct.GfxRect, ptr %308, i32 0, i32 3
  %310 = load i16, ptr %309, align 2, !tbaa !15
  %311 = sitofp i16 %310 to float
  %312 = call float @llvm.fmuladd.f32(float %311, float 1.250000e-01, float %306)
  %313 = fsub float %312, 1.000000e+00
  store float %313, ptr %300, align 4, !tbaa !11
  %314 = getelementptr inbounds [6 x float], ptr %11, i64 0, i64 0
  %315 = load ptr, ptr %9, align 8, !tbaa !9
  %316 = getelementptr inbounds %struct.GfxCmd, ptr %315, i32 0, i32 3
  %317 = load i32, ptr %316, align 4, !tbaa !16
  call void @_ZL12sDrawPolygonPKfjfj(ptr noundef %314, i32 noundef 3, float noundef 1.000000e+00, i32 noundef %317)
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #5
  br label %318

318:                                              ; preds = %242, %236
  br label %381

319:                                              ; preds = %155
  %320 = load ptr, ptr %9, align 8, !tbaa !9
  %321 = getelementptr inbounds %struct.GfxCmd, ptr %320, i32 0, i32 0
  %322 = load i8, ptr %321, align 8, !tbaa !13
  %323 = sext i8 %322 to i32
  %324 = icmp eq i32 %323, 3
  br i1 %324, label %325, label %345

325:                                              ; preds = %319
  %326 = load ptr, ptr %9, align 8, !tbaa !9
  %327 = getelementptr inbounds %struct.GfxCmd, ptr %326, i32 0, i32 4
  %328 = getelementptr inbounds %struct.GfxText, ptr %327, i32 0, i32 0
  %329 = load float, ptr %328, align 8, !tbaa !15
  %330 = load ptr, ptr %9, align 8, !tbaa !9
  %331 = getelementptr inbounds %struct.GfxCmd, ptr %330, i32 0, i32 4
  %332 = getelementptr inbounds %struct.GfxText, ptr %331, i32 0, i32 1
  %333 = load float, ptr %332, align 4, !tbaa !15
  %334 = load ptr, ptr %9, align 8, !tbaa !9
  %335 = getelementptr inbounds %struct.GfxCmd, ptr %334, i32 0, i32 4
  %336 = getelementptr inbounds %struct.GfxText, ptr %335, i32 0, i32 3
  %337 = load ptr, ptr %336, align 8, !tbaa !15
  %338 = load ptr, ptr %9, align 8, !tbaa !9
  %339 = getelementptr inbounds %struct.GfxCmd, ptr %338, i32 0, i32 4
  %340 = getelementptr inbounds %struct.GfxText, ptr %339, i32 0, i32 2
  %341 = load i32, ptr %340, align 8, !tbaa !15
  %342 = load ptr, ptr %9, align 8, !tbaa !9
  %343 = getelementptr inbounds %struct.GfxCmd, ptr %342, i32 0, i32 3
  %344 = load i32, ptr %343, align 4, !tbaa !16
  call void @_Z13sRenderStringffPKc9TextAlignj(float noundef %329, float noundef %333, ptr noundef %337, i32 noundef %341, i32 noundef %344)
  br label %380

345:                                              ; preds = %319
  %346 = load ptr, ptr %9, align 8, !tbaa !9
  %347 = getelementptr inbounds %struct.GfxCmd, ptr %346, i32 0, i32 0
  %348 = load i8, ptr %347, align 8, !tbaa !13
  %349 = sext i8 %348 to i32
  %350 = icmp eq i32 %349, 4
  br i1 %350, label %351, label %379

351:                                              ; preds = %345
  %352 = load ptr, ptr %9, align 8, !tbaa !9
  %353 = getelementptr inbounds %struct.GfxCmd, ptr %352, i32 0, i32 1
  %354 = load i8, ptr %353, align 1, !tbaa !17
  %355 = icmp ne i8 %354, 0
  br i1 %355, label %356, label %377

356:                                              ; preds = %351
  call void @glEnable(i32 noundef 3089)
  %357 = load ptr, ptr %9, align 8, !tbaa !9
  %358 = getelementptr inbounds %struct.GfxCmd, ptr %357, i32 0, i32 4
  %359 = getelementptr inbounds %struct.GfxRect, ptr %358, i32 0, i32 0
  %360 = load i16, ptr %359, align 8, !tbaa !15
  %361 = sext i16 %360 to i32
  %362 = load ptr, ptr %9, align 8, !tbaa !9
  %363 = getelementptr inbounds %struct.GfxCmd, ptr %362, i32 0, i32 4
  %364 = getelementptr inbounds %struct.GfxRect, ptr %363, i32 0, i32 1
  %365 = load i16, ptr %364, align 2, !tbaa !15
  %366 = sext i16 %365 to i32
  %367 = load ptr, ptr %9, align 8, !tbaa !9
  %368 = getelementptr inbounds %struct.GfxCmd, ptr %367, i32 0, i32 4
  %369 = getelementptr inbounds %struct.GfxRect, ptr %368, i32 0, i32 2
  %370 = load i16, ptr %369, align 4, !tbaa !15
  %371 = sext i16 %370 to i32
  %372 = load ptr, ptr %9, align 8, !tbaa !9
  %373 = getelementptr inbounds %struct.GfxCmd, ptr %372, i32 0, i32 4
  %374 = getelementptr inbounds %struct.GfxRect, ptr %373, i32 0, i32 3
  %375 = load i16, ptr %374, align 2, !tbaa !15
  %376 = sext i16 %375 to i32
  call void @glScissor(i32 noundef %361, i32 noundef %366, i32 noundef %371, i32 noundef %376)
  br label %378

377:                                              ; preds = %351
  call void @glDisable(i32 noundef 3089)
  br label %378

378:                                              ; preds = %377, %356
  br label %379

379:                                              ; preds = %378, %345
  br label %380

380:                                              ; preds = %379, %325
  br label %381

381:                                              ; preds = %380, %318
  br label %382

382:                                              ; preds = %381, %116
  br label %383

383:                                              ; preds = %382, %109
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %384

384:                                              ; preds = %383
  %385 = load i32, ptr %8, align 4, !tbaa !5
  %386 = add nsw i32 %385, 1
  store i32 %386, ptr %8, align 4, !tbaa !5
  br label %25, !llvm.loop !18

387:                                              ; preds = %29
  call void @glDisable(i32 noundef 3089)
  %388 = load ptr, ptr @__glewUseProgram, align 8, !tbaa !9
  call void %388(i32 noundef 0)
  call void @_ZL16ResetGfxCmdQueuev()
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret void
}

declare void @glViewport(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #3

declare void @glDisable(i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL9sDrawRectfffffj(float noundef, float noundef, float noundef, float noundef, float noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL16sDrawRoundedRectffffffj(float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, i32 noundef) #2

declare void @glEnable(i32 noundef) #3

declare void @glScissor(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL16ResetGfxCmdQueuev() #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress 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 #5 = { 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 = !{!"int", !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 = !{!"float", !7, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"_ZTS6GfxCmd", !7, i64 0, !7, i64 1, !7, i64 2, !6, i64 4, !7, i64 8}
!15 = !{!7, !7, i64 0}
!16 = !{!14, !6, i64 4}
!17 = !{!14, !7, i64 1}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


; 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.GfxCmd = type { i8, i8, [2 x i8], i32, %union.anon }
%union.anon = type { %struct.GfxText }
%struct.GfxText = type { float, float, i32, ptr }

@_ZL17g_gfxCmdQueueSize = external hidden local_unnamed_addr global i32, align 4
@_ZL13g_gfxCmdQueue = external hidden local_unnamed_addr global [5000 x %struct.GfxCmd], align 16
@_ZL9g_program = external hidden local_unnamed_addr global i32, align 4
@__glewUseProgram = external local_unnamed_addr global ptr, align 8
@_ZL25g_programViewportLocation = external hidden local_unnamed_addr global i32, align 4
@_ZL24g_programTextureLocation = external hidden local_unnamed_addr global i32, align 4
@__glewUniform2f = external local_unnamed_addr global ptr, align 8
@__glewUniform1i = external local_unnamed_addr global ptr, align 8

; 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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11sRenderLineffffffj(float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL12sDrawPolygonPKfjfj(ptr noundef, i32 noundef, float noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z13sRenderStringffPKc9TextAlignj(float noundef, float noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13RenderGLFlushii(i32 noundef %0, i32 noundef %1) local_unnamed_addr #2 {
  %3 = alloca [6 x float], align 16
  %4 = alloca [6 x float], align 16
  %5 = load i32, ptr @_ZL17g_gfxCmdQueueSize, align 4, !tbaa !5
  tail call void @glViewport(i32 noundef 0, i32 noundef 0, i32 noundef %0, i32 noundef %1)
  %6 = load ptr, ptr @__glewUseProgram, align 8, !tbaa !9
  %7 = load i32, ptr @_ZL9g_program, align 4, !tbaa !5
  tail call void %6(i32 noundef %7)
  %8 = load ptr, ptr @__glewUniform2f, align 8, !tbaa !9
  %9 = load i32, ptr @_ZL25g_programViewportLocation, align 4, !tbaa !5
  %10 = sitofp i32 %0 to float
  %11 = sitofp i32 %1 to float
  tail call void %8(i32 noundef %9, float noundef %10, float noundef %11)
  %12 = load ptr, ptr @__glewUniform1i, align 8, !tbaa !9
  %13 = load i32, ptr @_ZL24g_programTextureLocation, align 4, !tbaa !5
  tail call void %12(i32 noundef %13, i32 noundef 0)
  tail call void @glDisable(i32 noundef 3089)
  %14 = icmp sgt i32 %5, 0
  br i1 %14, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %15 = getelementptr inbounds i8, ptr %3, i64 8
  %16 = getelementptr inbounds i8, ptr %3, i64 16
  %17 = getelementptr inbounds i8, ptr %3, i64 20
  %18 = getelementptr inbounds i8, ptr %4, i64 4
  %19 = getelementptr inbounds i8, ptr %4, i64 12
  %20 = getelementptr inbounds i8, ptr %4, i64 16
  %21 = getelementptr inbounds i8, ptr %4, i64 20
  %wide.trip.count = zext nneg i32 %5 to i64
  br label %23

._crit_edge:                                      ; preds = %163, %2
  call void @glDisable(i32 noundef 3089)
  %22 = load ptr, ptr @__glewUseProgram, align 8, !tbaa !9
  call void %22(i32 noundef 0)
  call void @_ZL16ResetGfxCmdQueuev()
  ret void

23:                                               ; preds = %.lr.ph, %163
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %163 ]
  %24 = getelementptr inbounds %struct.GfxCmd, ptr @_ZL13g_gfxCmdQueue, i64 %indvars.iv
  %25 = load i8, ptr %24, align 16, !tbaa !11
  switch i8 %25, label %163 [
    i8 0, label %26
    i8 2, label %54
    i8 1, label %77
    i8 3, label %135
    i8 4, label %146
  ]

26:                                               ; preds = %23
  %27 = getelementptr inbounds i8, ptr %24, i64 8
  %28 = getelementptr inbounds i8, ptr %24, i64 16
  %29 = load i16, ptr %28, align 16, !tbaa !13
  %30 = icmp eq i16 %29, 0
  %31 = load i16, ptr %27, align 8, !tbaa !13
  %32 = sitofp i16 %31 to float
  %33 = call float @llvm.fmuladd.f32(float %32, float 1.250000e-01, float 5.000000e-01)
  %34 = getelementptr inbounds i8, ptr %24, i64 10
  %35 = load i16, ptr %34, align 2, !tbaa !13
  %36 = sitofp i16 %35 to float
  %37 = call float @llvm.fmuladd.f32(float %36, float 1.250000e-01, float 5.000000e-01)
  %38 = getelementptr inbounds i8, ptr %24, i64 12
  %39 = load i16, ptr %38, align 4, !tbaa !13
  %40 = sitofp i16 %39 to float
  %41 = call float @llvm.fmuladd.f32(float %40, float 1.250000e-01, float -1.000000e+00)
  %42 = getelementptr inbounds i8, ptr %24, i64 14
  %43 = load i16, ptr %42, align 2, !tbaa !13
  %44 = sitofp i16 %43 to float
  %45 = call float @llvm.fmuladd.f32(float %44, float 1.250000e-01, float -1.000000e+00)
  br i1 %30, label %46, label %49

46:                                               ; preds = %26
  %47 = getelementptr inbounds i8, ptr %24, i64 4
  %48 = load i32, ptr %47, align 4, !tbaa !14
  call void @_ZL9sDrawRectfffffj(float noundef %33, float noundef %37, float noundef %41, float noundef %45, float noundef 1.000000e+00, i32 noundef %48)
  br label %163

49:                                               ; preds = %26
  %50 = sitofp i16 %29 to float
  %51 = fmul float %50, 1.250000e-01
  %52 = getelementptr inbounds i8, ptr %24, i64 4
  %53 = load i32, ptr %52, align 4, !tbaa !14
  call void @_ZL16sDrawRoundedRectffffffj(float noundef %33, float noundef %37, float noundef %41, float noundef %45, float noundef %51, float noundef 1.000000e+00, i32 noundef %53)
  br label %163

54:                                               ; preds = %23
  %55 = getelementptr inbounds i8, ptr %24, i64 8
  %56 = load i16, ptr %55, align 8, !tbaa !13
  %57 = sitofp i16 %56 to float
  %58 = fmul float %57, 1.250000e-01
  %59 = getelementptr inbounds i8, ptr %24, i64 10
  %60 = load i16, ptr %59, align 2, !tbaa !13
  %61 = sitofp i16 %60 to float
  %62 = fmul float %61, 1.250000e-01
  %63 = getelementptr inbounds i8, ptr %24, i64 12
  %64 = load i16, ptr %63, align 4, !tbaa !13
  %65 = sitofp i16 %64 to float
  %66 = fmul float %65, 1.250000e-01
  %67 = getelementptr inbounds i8, ptr %24, i64 14
  %68 = load i16, ptr %67, align 2, !tbaa !13
  %69 = sitofp i16 %68 to float
  %70 = fmul float %69, 1.250000e-01
  %71 = getelementptr inbounds i8, ptr %24, i64 16
  %72 = load i16, ptr %71, align 16, !tbaa !13
  %73 = sitofp i16 %72 to float
  %74 = fmul float %73, 1.250000e-01
  %75 = getelementptr inbounds i8, ptr %24, i64 4
  %76 = load i32, ptr %75, align 4, !tbaa !14
  call void @_Z11sRenderLineffffffj(float noundef %58, float noundef %62, float noundef %66, float noundef %70, float noundef %74, float noundef 1.000000e+00, i32 noundef %76)
  br label %163

77:                                               ; preds = %23
  %78 = getelementptr inbounds i8, ptr %24, i64 1
  %79 = load i8, ptr %78, align 1, !tbaa !15
  %80 = icmp eq i8 %79, 1
  br i1 %80, label %81, label %105

81:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  %82 = getelementptr inbounds i8, ptr %24, i64 8
  %83 = load <2 x i16>, ptr %82, align 8, !tbaa !13
  %84 = sitofp <2 x i16> %83 to <2 x float>
  %85 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %84, <2 x float> <float 1.250000e-01, float 1.250000e-01>, <2 x float> <float 5.000000e-01, float 5.000000e-01>)
  store <2 x float> %85, ptr %3, align 16, !tbaa !16
  %86 = getelementptr inbounds i8, ptr %24, i64 12
  %87 = load i16, ptr %86, align 4, !tbaa !13
  %88 = sitofp i16 %87 to float
  %89 = extractelement <2 x float> %85, i64 0
  %90 = call float @llvm.fmuladd.f32(float %88, float 1.250000e-01, float %89)
  %91 = getelementptr inbounds i8, ptr %24, i64 14
  %92 = load i16, ptr %91, align 2, !tbaa !13
  %93 = sitofp i16 %92 to float
  %94 = fmul float %93, 1.250000e-01
  %95 = fmul float %94, 5.000000e-01
  %96 = extractelement <2 x float> %85, i64 1
  %97 = fadd float %96, %95
  %98 = insertelement <2 x float> poison, float %90, i64 0
  %99 = insertelement <2 x float> %98, float %97, i64 1
  %100 = fadd <2 x float> %99, <float -1.000000e+00, float -5.000000e-01>
  store <2 x float> %100, ptr %15, align 8, !tbaa !16
  store float %89, ptr %16, align 16, !tbaa !16
  %101 = call float @llvm.fmuladd.f32(float %93, float 1.250000e-01, float %96)
  %102 = fadd float %101, -1.000000e+00
  store float %102, ptr %17, align 4, !tbaa !16
  %103 = getelementptr inbounds i8, ptr %24, i64 4
  %104 = load i32, ptr %103, align 4, !tbaa !14
  call void @_ZL12sDrawPolygonPKfjfj(ptr noundef nonnull %3, i32 noundef 3, float noundef 1.000000e+00, i32 noundef %104)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  %.pr = load i8, ptr %78, align 1, !tbaa !15
  br label %105

105:                                              ; preds = %81, %77
  %106 = phi i8 [ %.pr, %81 ], [ %79, %77 ]
  %107 = icmp eq i8 %106, 2
  br i1 %107, label %108, label %163

108:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  %109 = getelementptr inbounds i8, ptr %24, i64 8
  %110 = load i16, ptr %109, align 8, !tbaa !13
  %111 = sitofp i16 %110 to float
  %112 = call float @llvm.fmuladd.f32(float %111, float 1.250000e-01, float 5.000000e-01)
  store float %112, ptr %4, align 16, !tbaa !16
  %113 = getelementptr inbounds i8, ptr %24, i64 10
  %114 = load i16, ptr %113, align 2, !tbaa !13
  %115 = sitofp i16 %114 to float
  %116 = call float @llvm.fmuladd.f32(float %115, float 1.250000e-01, float 5.000000e-01)
  %117 = getelementptr inbounds i8, ptr %24, i64 14
  %118 = load i16, ptr %117, align 2, !tbaa !13
  %119 = sitofp i16 %118 to float
  %120 = call float @llvm.fmuladd.f32(float %119, float 1.250000e-01, float %116)
  %121 = getelementptr inbounds i8, ptr %24, i64 12
  %122 = load i16, ptr %121, align 4, !tbaa !13
  %123 = sitofp i16 %122 to float
  %124 = fmul float %123, 1.250000e-01
  %125 = fmul float %124, 5.000000e-01
  %126 = fadd float %112, %125
  %127 = insertelement <2 x float> poison, float %120, i64 0
  %128 = insertelement <2 x float> %127, float %126, i64 1
  %129 = fadd <2 x float> %128, <float -1.000000e+00, float -5.000000e-01>
  store <2 x float> %129, ptr %18, align 4, !tbaa !16
  store float %116, ptr %19, align 4, !tbaa !16
  %130 = call float @llvm.fmuladd.f32(float %123, float 1.250000e-01, float %112)
  %131 = fadd float %130, -1.000000e+00
  store float %131, ptr %20, align 16, !tbaa !16
  %132 = extractelement <2 x float> %129, i64 0
  store float %132, ptr %21, align 4, !tbaa !16
  %133 = getelementptr inbounds i8, ptr %24, i64 4
  %134 = load i32, ptr %133, align 4, !tbaa !14
  call void @_ZL12sDrawPolygonPKfjfj(ptr noundef nonnull %4, i32 noundef 3, float noundef 1.000000e+00, i32 noundef %134)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  br label %163

135:                                              ; preds = %23
  %136 = getelementptr inbounds i8, ptr %24, i64 8
  %137 = load float, ptr %136, align 8, !tbaa !13
  %138 = getelementptr inbounds i8, ptr %24, i64 12
  %139 = load float, ptr %138, align 4, !tbaa !13
  %140 = getelementptr inbounds i8, ptr %24, i64 24
  %141 = load ptr, ptr %140, align 8, !tbaa !13
  %142 = getelementptr inbounds i8, ptr %24, i64 16
  %143 = load i32, ptr %142, align 16, !tbaa !13
  %144 = getelementptr inbounds i8, ptr %24, i64 4
  %145 = load i32, ptr %144, align 4, !tbaa !14
  call void @_Z13sRenderStringffPKc9TextAlignj(float noundef %137, float noundef %139, ptr noundef %141, i32 noundef %143, i32 noundef %145)
  br label %163

146:                                              ; preds = %23
  %147 = getelementptr inbounds i8, ptr %24, i64 1
  %148 = load i8, ptr %147, align 1, !tbaa !15
  %.not = icmp eq i8 %148, 0
  br i1 %.not, label %162, label %149

149:                                              ; preds = %146
  call void @glEnable(i32 noundef 3089)
  %150 = getelementptr inbounds i8, ptr %24, i64 8
  %151 = load i16, ptr %150, align 8, !tbaa !13
  %152 = sext i16 %151 to i32
  %153 = getelementptr inbounds i8, ptr %24, i64 10
  %154 = load i16, ptr %153, align 2, !tbaa !13
  %155 = sext i16 %154 to i32
  %156 = getelementptr inbounds i8, ptr %24, i64 12
  %157 = load i16, ptr %156, align 4, !tbaa !13
  %158 = sext i16 %157 to i32
  %159 = getelementptr inbounds i8, ptr %24, i64 14
  %160 = load i16, ptr %159, align 2, !tbaa !13
  %161 = sext i16 %160 to i32
  call void @glScissor(i32 noundef %152, i32 noundef %155, i32 noundef %158, i32 noundef %161)
  br label %163

162:                                              ; preds = %146
  call void @glDisable(i32 noundef 3089)
  br label %163

163:                                              ; preds = %23, %54, %135, %149, %162, %105, %108, %46, %49
  %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 %23, !llvm.loop !18
}

declare void @glViewport(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare void @glDisable(i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL9sDrawRectfffffj(float noundef, float noundef, float noundef, float noundef, float noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL16sDrawRoundedRectffffffj(float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, i32 noundef) local_unnamed_addr #2

declare void @glEnable(i32 noundef) local_unnamed_addr #3

declare void @glScissor(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL16ResetGfxCmdQueuev() local_unnamed_addr #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x float> @llvm.fmuladd.v2f32(<2 x float>, <2 x float>, <2 x float>) #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 = !{!"int", !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, !7, i64 0}
!12 = !{!"_ZTS6GfxCmd", !7, i64 0, !7, i64 1, !7, i64 2, !6, i64 4, !7, i64 8}
!13 = !{!7, !7, i64 0}
!14 = !{!12, !6, i64 4}
!15 = !{!12, !7, i64 1}
!16 = !{!17, !17, i64 0}
!17 = !{!"float", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


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