; LLVM IR from syby119/CG-projects :: external/imgui/imgui_impl_opengl3.ll (Z32ImGui_ImplOpenGL3_RenderDrawDataP10ImDrawData)

; 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"

%union.GL3WProcs = type { [53 x ptr] }
%struct.ImVec2 = type { float, float }
%struct.ImDrawData = type { i8, i32, i32, i32, ptr, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2 }
%struct.anon.0 = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.ImGui_ImplOpenGL3_Data = type <{ i32, [32 x i8], i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, [3 x i8] }>
%struct.ImDrawList = type <{ %struct.ImVector.1, %struct.ImVector, %struct.ImVector.2, i32, i32, ptr, ptr, ptr, ptr, %struct.ImVector.3, %struct.ImVector.4, %struct.ImVector.5, %struct.ImDrawCmdHeader, %struct.ImDrawListSplitter, float, [4 x i8] }>
%struct.ImVector.1 = type { i32, i32, ptr }
%struct.ImVector = type { i32, i32, ptr }
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImVector.3 = type { i32, i32, ptr }
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImVector.5 = type { i32, i32, ptr }
%struct.ImDrawCmdHeader = type <{ %struct.ImVec4, ptr, i32, [4 x i8] }>
%struct.ImVec4 = type { float, float, float, float }
%struct.ImDrawListSplitter = type { i32, i32, %struct.ImVector.6 }
%struct.ImVector.6 = type { i32, i32, ptr }
%struct.ImDrawCmd = type { %struct.ImVec4, ptr, i32, i32, i32, ptr, ptr }

@imgl3wProcs = external dso_local global %union.GL3WProcs, 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: mustprogress uwtable
declare hidden noundef ptr @_ZL32ImGui_ImplOpenGL3_GetBackendDatav() #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z32ImGui_ImplOpenGL3_RenderDrawDataP10ImDrawData(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca [2 x i32], align 4
  %14 = alloca [4 x i32], align 16
  %15 = alloca [4 x i32], align 16
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i8, align 1
  %23 = alloca i8, align 1
  %24 = alloca i8, align 1
  %25 = alloca i8, align 1
  %26 = alloca i8, align 1
  %27 = alloca i8, align 1
  %28 = alloca i32, align 4
  %29 = alloca %struct.ImVec2, align 4
  %30 = alloca %struct.ImVec2, align 4
  %31 = alloca i32, align 4
  %32 = alloca ptr, align 8
  %33 = alloca i32, align 4
  %34 = alloca ptr, align 8
  %35 = alloca %struct.ImVec2, align 4
  %36 = alloca %struct.ImVec2, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  %37 = load ptr, ptr %2, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.ImDrawData, ptr %37, i32 0, i32 6
  %39 = getelementptr inbounds %struct.ImVec2, ptr %38, i32 0, i32 0
  %40 = load float, ptr %39, align 8, !tbaa !9
  %41 = load ptr, ptr %2, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.ImDrawData, ptr %41, i32 0, i32 7
  %43 = getelementptr inbounds %struct.ImVec2, ptr %42, i32 0, i32 0
  %44 = load float, ptr %43, align 8, !tbaa !15
  %45 = fmul float %40, %44
  %46 = fptosi float %45 to i32
  store i32 %46, ptr %3, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %47 = load ptr, ptr %2, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.ImDrawData, ptr %47, i32 0, i32 6
  %49 = getelementptr inbounds %struct.ImVec2, ptr %48, i32 0, i32 1
  %50 = load float, ptr %49, align 4, !tbaa !17
  %51 = load ptr, ptr %2, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.ImDrawData, ptr %51, i32 0, i32 7
  %53 = getelementptr inbounds %struct.ImVec2, ptr %52, i32 0, i32 1
  %54 = load float, ptr %53, align 4, !tbaa !18
  %55 = fmul float %50, %54
  %56 = fptosi float %55 to i32
  store i32 %56, ptr %4, align 4, !tbaa !16
  %57 = load i32, ptr %3, align 4, !tbaa !16
  %58 = icmp sle i32 %57, 0
  br i1 %58, label %62, label %59

59:                                               ; preds = %1
  %60 = load i32, ptr %4, align 4, !tbaa !16
  %61 = icmp sle i32 %60, 0
  br i1 %61, label %62, label %63

62:                                               ; preds = %59, %1
  store i32 1, ptr %5, align 4
  br label %415

63:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %64 = call noundef ptr @_ZL32ImGui_ImplOpenGL3_GetBackendDatav()
  store ptr %64, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %65 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 31), align 8, !tbaa !19
  call void %65(i32 noundef 34016, ptr noundef %7)
  %66 = load ptr, ptr @imgl3wProcs, align 8, !tbaa !19
  call void %66(i32 noundef 33984)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %67 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 31), align 8, !tbaa !19
  call void %67(i32 noundef 35725, ptr noundef %8)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %68 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 31), align 8, !tbaa !19
  call void %68(i32 noundef 32873, ptr noundef %9)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %69, i32 0, i32 0
  %71 = load i32, ptr %70, align 4, !tbaa !20
  %72 = icmp uge i32 %71, 330
  br i1 %72, label %73, label %75

73:                                               ; preds = %63
  %74 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 31), align 8, !tbaa !19
  call void %74(i32 noundef 35097, ptr noundef %10)
  br label %76

75:                                               ; preds = %63
  store i32 0, ptr %10, align 4, !tbaa !16
  br label %76

76:                                               ; preds = %75, %73
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %77 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 31), align 8, !tbaa !19
  call void %77(i32 noundef 34964, ptr noundef %11)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %78 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 31), align 8, !tbaa !19
  call void %78(i32 noundef 34229, ptr noundef %12)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %79 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 31), align 8, !tbaa !19
  %80 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
  call void %79(i32 noundef 2880, ptr noundef %80)
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  %81 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 31), align 8, !tbaa !19
  %82 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 0
  call void %81(i32 noundef 2978, ptr noundef %82)
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  %83 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 31), align 8, !tbaa !19
  %84 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 0
  call void %83(i32 noundef 3088, ptr noundef %84)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %85 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 31), align 8, !tbaa !19
  call void %85(i32 noundef 32969, ptr noundef %16)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %86 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 31), align 8, !tbaa !19
  call void %86(i32 noundef 32968, ptr noundef %17)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %87 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 31), align 8, !tbaa !19
  call void %87(i32 noundef 32971, ptr noundef %18)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %88 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 31), align 8, !tbaa !19
  call void %88(i32 noundef 32970, ptr noundef %19)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %89 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 31), align 8, !tbaa !19
  call void %89(i32 noundef 32777, ptr noundef %20)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %90 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 31), align 8, !tbaa !19
  call void %90(i32 noundef 34877, ptr noundef %21)
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #5
  %91 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 39), align 8, !tbaa !19
  %92 = call noundef zeroext i8 %91(i32 noundef 3042)
  store i8 %92, ptr %22, align 1, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #5
  %93 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 39), align 8, !tbaa !19
  %94 = call noundef zeroext i8 %93(i32 noundef 2884)
  store i8 %94, ptr %23, align 1, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #5
  %95 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 39), align 8, !tbaa !19
  %96 = call noundef zeroext i8 %95(i32 noundef 2929)
  store i8 %96, ptr %24, align 1, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #5
  %97 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 39), align 8, !tbaa !19
  %98 = call noundef zeroext i8 %97(i32 noundef 2960)
  store i8 %98, ptr %25, align 1, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #5
  %99 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 39), align 8, !tbaa !19
  %100 = call noundef zeroext i8 %99(i32 noundef 3089)
  store i8 %100, ptr %26, align 1, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #5
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %101, i32 0, i32 0
  %103 = load i32, ptr %102, align 4, !tbaa !20
  %104 = icmp uge i32 %103, 310
  br i1 %104, label %105, label %109

105:                                              ; preds = %76
  %106 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 39), align 8, !tbaa !19
  %107 = call noundef zeroext i8 %106(i32 noundef 36765)
  %108 = zext i8 %107 to i32
  br label %110

109:                                              ; preds = %76
  br label %110

110:                                              ; preds = %109, %105
  %111 = phi i32 [ %108, %105 ], [ 0, %109 ]
  %112 = trunc i32 %111 to i8
  store i8 %112, ptr %27, align 1, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  store i32 0, ptr %28, align 4, !tbaa !16
  %113 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 28), align 8, !tbaa !19
  call void %113(i32 noundef 1, ptr noundef %28)
  %114 = load ptr, ptr %2, align 8, !tbaa !5
  %115 = load i32, ptr %3, align 4, !tbaa !16
  %116 = load i32, ptr %4, align 4, !tbaa !16
  %117 = load i32, ptr %28, align 4, !tbaa !16
  call void @_ZL34ImGui_ImplOpenGL3_SetupRenderStateP10ImDrawDataiij(ptr noundef %114, i32 noundef %115, i32 noundef %116, i32 noundef %117)
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  %118 = load ptr, ptr %2, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.ImDrawData, ptr %118, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 8 %119, i64 8, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  %120 = load ptr, ptr %2, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.ImDrawData, ptr %120, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 8 %121, i64 8, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #5
  store i32 0, ptr %31, align 4, !tbaa !16
  br label %122

122:                                              ; preds = %315, %110
  %123 = load i32, ptr %31, align 4, !tbaa !16
  %124 = load ptr, ptr %2, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.ImDrawData, ptr %124, i32 0, i32 1
  %126 = load i32, ptr %125, align 4, !tbaa !24
  %127 = icmp slt i32 %123, %126
  br i1 %127, label %129, label %128

128:                                              ; preds = %122
  store i32 2, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  br label %318

129:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  %130 = load ptr, ptr %2, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.ImDrawData, ptr %130, i32 0, i32 4
  %132 = load ptr, ptr %131, align 8, !tbaa !25
  %133 = load i32, ptr %31, align 4, !tbaa !16
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds ptr, ptr %132, i64 %134
  %136 = load ptr, ptr %135, align 8, !tbaa !5
  store ptr %136, ptr %32, align 8, !tbaa !5
  %137 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 9), align 8, !tbaa !19
  %138 = load ptr, ptr %32, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.ImDrawList, ptr %138, i32 0, i32 2
  %140 = getelementptr inbounds %struct.ImVector.2, ptr %139, i32 0, i32 0
  %141 = load i32, ptr %140, align 8, !tbaa !26
  %142 = sext i32 %141 to i64
  %143 = mul nsw i64 %142, 20
  %144 = load ptr, ptr %32, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.ImDrawList, ptr %144, i32 0, i32 2
  %146 = getelementptr inbounds %struct.ImVector.2, ptr %145, i32 0, i32 2
  %147 = load ptr, ptr %146, align 8, !tbaa !38
  call void %137(i32 noundef 34962, i64 noundef %143, ptr noundef %147, i32 noundef 35040)
  %148 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 9), align 8, !tbaa !19
  %149 = load ptr, ptr %32, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.ImDrawList, ptr %149, i32 0, i32 1
  %151 = getelementptr inbounds %struct.ImVector, ptr %150, i32 0, i32 0
  %152 = load i32, ptr %151, align 8, !tbaa !39
  %153 = sext i32 %152 to i64
  %154 = mul nsw i64 %153, 2
  %155 = load ptr, ptr %32, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.ImDrawList, ptr %155, i32 0, i32 1
  %157 = getelementptr inbounds %struct.ImVector, ptr %156, i32 0, i32 2
  %158 = load ptr, ptr %157, align 8, !tbaa !40
  call void %148(i32 noundef 34963, i64 noundef %154, ptr noundef %158, i32 noundef 35040)
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #5
  store i32 0, ptr %33, align 4, !tbaa !16
  br label %159

159:                                              ; preds = %311, %129
  %160 = load i32, ptr %33, align 4, !tbaa !16
  %161 = load ptr, ptr %32, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.ImDrawList, ptr %161, i32 0, i32 0
  %163 = getelementptr inbounds %struct.ImVector.1, ptr %162, i32 0, i32 0
  %164 = load i32, ptr %163, align 8, !tbaa !41
  %165 = icmp slt i32 %160, %164
  br i1 %165, label %167, label %166

166:                                              ; preds = %159
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #5
  br label %314

167:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #5
  %168 = load ptr, ptr %32, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.ImDrawList, ptr %168, i32 0, i32 0
  %170 = load i32, ptr %33, align 4, !tbaa !16
  %171 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK8ImVectorI9ImDrawCmdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %169, i32 noundef %170)
  store ptr %171, ptr %34, align 8, !tbaa !5
  %172 = load ptr, ptr %34, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.ImDrawCmd, ptr %172, i32 0, i32 5
  %174 = load ptr, ptr %173, align 8, !tbaa !42
  %175 = icmp ne ptr %174, null
  br i1 %175, label %176, label %193

176:                                              ; preds = %167
  %177 = load ptr, ptr %34, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.ImDrawCmd, ptr %177, i32 0, i32 5
  %179 = load ptr, ptr %178, align 8, !tbaa !42
  %180 = icmp eq ptr %179, inttoptr (i64 -1 to ptr)
  br i1 %180, label %181, label %186

181:                                              ; preds = %176
  %182 = load ptr, ptr %2, align 8, !tbaa !5
  %183 = load i32, ptr %3, align 4, !tbaa !16
  %184 = load i32, ptr %4, align 4, !tbaa !16
  %185 = load i32, ptr %28, align 4, !tbaa !16
  call void @_ZL34ImGui_ImplOpenGL3_SetupRenderStateP10ImDrawDataiij(ptr noundef %182, i32 noundef %183, i32 noundef %184, i32 noundef %185)
  br label %192

186:                                              ; preds = %176
  %187 = load ptr, ptr %34, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.ImDrawCmd, ptr %187, i32 0, i32 5
  %189 = load ptr, ptr %188, align 8, !tbaa !42
  %190 = load ptr, ptr %32, align 8, !tbaa !5
  %191 = load ptr, ptr %34, align 8, !tbaa !5
  call void %189(ptr noundef %190, ptr noundef %191)
  br label %192

192:                                              ; preds = %186, %181
  br label %307

193:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #5
  %194 = load ptr, ptr %34, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.ImDrawCmd, ptr %194, i32 0, i32 0
  %196 = getelementptr inbounds %struct.ImVec4, ptr %195, i32 0, i32 0
  %197 = load float, ptr %196, align 8, !tbaa !44
  %198 = getelementptr inbounds %struct.ImVec2, ptr %29, i32 0, i32 0
  %199 = load float, ptr %198, align 4, !tbaa !45
  %200 = fsub float %197, %199
  %201 = getelementptr inbounds %struct.ImVec2, ptr %30, i32 0, i32 0
  %202 = load float, ptr %201, align 4, !tbaa !45
  %203 = fmul float %200, %202
  %204 = load ptr, ptr %34, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.ImDrawCmd, ptr %204, i32 0, i32 0
  %206 = getelementptr inbounds %struct.ImVec4, ptr %205, i32 0, i32 1
  %207 = load float, ptr %206, align 4, !tbaa !46
  %208 = getelementptr inbounds %struct.ImVec2, ptr %29, i32 0, i32 1
  %209 = load float, ptr %208, align 4, !tbaa !47
  %210 = fsub float %207, %209
  %211 = getelementptr inbounds %struct.ImVec2, ptr %30, i32 0, i32 1
  %212 = load float, ptr %211, align 4, !tbaa !47
  %213 = fmul float %210, %212
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %35, float noundef %203, float noundef %213)
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #5
  %214 = load ptr, ptr %34, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.ImDrawCmd, ptr %214, i32 0, i32 0
  %216 = getelementptr inbounds %struct.ImVec4, ptr %215, i32 0, i32 2
  %217 = load float, ptr %216, align 8, !tbaa !48
  %218 = getelementptr inbounds %struct.ImVec2, ptr %29, i32 0, i32 0
  %219 = load float, ptr %218, align 4, !tbaa !45
  %220 = fsub float %217, %219
  %221 = getelementptr inbounds %struct.ImVec2, ptr %30, i32 0, i32 0
  %222 = load float, ptr %221, align 4, !tbaa !45
  %223 = fmul float %220, %222
  %224 = load ptr, ptr %34, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.ImDrawCmd, ptr %224, i32 0, i32 0
  %226 = getelementptr inbounds %struct.ImVec4, ptr %225, i32 0, i32 3
  %227 = load float, ptr %226, align 4, !tbaa !49
  %228 = getelementptr inbounds %struct.ImVec2, ptr %29, i32 0, i32 1
  %229 = load float, ptr %228, align 4, !tbaa !47
  %230 = fsub float %227, %229
  %231 = getelementptr inbounds %struct.ImVec2, ptr %30, i32 0, i32 1
  %232 = load float, ptr %231, align 4, !tbaa !47
  %233 = fmul float %230, %232
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %36, float noundef %223, float noundef %233)
  %234 = getelementptr inbounds %struct.ImVec2, ptr %36, i32 0, i32 0
  %235 = load float, ptr %234, align 4, !tbaa !45
  %236 = getelementptr inbounds %struct.ImVec2, ptr %35, i32 0, i32 0
  %237 = load float, ptr %236, align 4, !tbaa !45
  %238 = fcmp olt float %235, %237
  br i1 %238, label %245, label %239

239:                                              ; preds = %193
  %240 = getelementptr inbounds %struct.ImVec2, ptr %36, i32 0, i32 1
  %241 = load float, ptr %240, align 4, !tbaa !47
  %242 = getelementptr inbounds %struct.ImVec2, ptr %35, i32 0, i32 1
  %243 = load float, ptr %242, align 4, !tbaa !47
  %244 = fcmp olt float %241, %243
  br i1 %244, label %245, label %246

245:                                              ; preds = %239, %193
  store i32 7, ptr %5, align 4
  br label %304

246:                                              ; preds = %239
  %247 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 44), align 8, !tbaa !19
  %248 = getelementptr inbounds %struct.ImVec2, ptr %35, i32 0, i32 0
  %249 = load float, ptr %248, align 4, !tbaa !45
  %250 = fptosi float %249 to i32
  %251 = load i32, ptr %4, align 4, !tbaa !16
  %252 = sitofp i32 %251 to float
  %253 = getelementptr inbounds %struct.ImVec2, ptr %36, i32 0, i32 1
  %254 = load float, ptr %253, align 4, !tbaa !47
  %255 = fsub float %252, %254
  %256 = fptosi float %255 to i32
  %257 = getelementptr inbounds %struct.ImVec2, ptr %36, i32 0, i32 0
  %258 = load float, ptr %257, align 4, !tbaa !45
  %259 = getelementptr inbounds %struct.ImVec2, ptr %35, i32 0, i32 0
  %260 = load float, ptr %259, align 4, !tbaa !45
  %261 = fsub float %258, %260
  %262 = fptosi float %261 to i32
  %263 = getelementptr inbounds %struct.ImVec2, ptr %36, i32 0, i32 1
  %264 = load float, ptr %263, align 4, !tbaa !47
  %265 = getelementptr inbounds %struct.ImVec2, ptr %35, i32 0, i32 1
  %266 = load float, ptr %265, align 4, !tbaa !47
  %267 = fsub float %264, %266
  %268 = fptosi float %267 to i32
  call void %247(i32 noundef %250, i32 noundef %256, i32 noundef %262, i32 noundef %268)
  %269 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 4), align 8, !tbaa !19
  %270 = load ptr, ptr %34, align 8, !tbaa !5
  %271 = call noundef ptr @_ZNK9ImDrawCmd8GetTexIDEv(ptr noundef nonnull align 8 dereferenceable(56) %270)
  %272 = ptrtoint ptr %271 to i64
  %273 = trunc i64 %272 to i32
  call void %269(i32 noundef 3553, i32 noundef %273)
  %274 = load ptr, ptr %6, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %274, i32 0, i32 0
  %276 = load i32, ptr %275, align 4, !tbaa !20
  %277 = icmp uge i32 %276, 320
  br i1 %277, label %278, label %292

278:                                              ; preds = %246
  %279 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 23), align 8, !tbaa !19
  %280 = load ptr, ptr %34, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.ImDrawCmd, ptr %280, i32 0, i32 4
  %282 = load i32, ptr %281, align 8, !tbaa !50
  %283 = load ptr, ptr %34, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.ImDrawCmd, ptr %283, i32 0, i32 3
  %285 = load i32, ptr %284, align 4, !tbaa !51
  %286 = zext i32 %285 to i64
  %287 = mul i64 %286, 2
  %288 = inttoptr i64 %287 to ptr
  %289 = load ptr, ptr %34, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.ImDrawCmd, ptr %289, i32 0, i32 2
  %291 = load i32, ptr %290, align 8, !tbaa !52
  call void %279(i32 noundef 4, i32 noundef %282, i32 noundef 5123, ptr noundef %288, i32 noundef %291)
  br label %303

292:                                              ; preds = %246
  %293 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 22), align 8, !tbaa !19
  %294 = load ptr, ptr %34, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.ImDrawCmd, ptr %294, i32 0, i32 4
  %296 = load i32, ptr %295, align 8, !tbaa !50
  %297 = load ptr, ptr %34, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.ImDrawCmd, ptr %297, i32 0, i32 3
  %299 = load i32, ptr %298, align 4, !tbaa !51
  %300 = zext i32 %299 to i64
  %301 = mul i64 %300, 2
  %302 = inttoptr i64 %301 to ptr
  call void %293(i32 noundef 4, i32 noundef %296, i32 noundef 5123, ptr noundef %302)
  br label %303

303:                                              ; preds = %292, %278
  store i32 0, ptr %5, align 4
  br label %304

304:                                              ; preds = %303, %245
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #5
  %305 = load i32, ptr %5, align 4
  switch i32 %305, label %308 [
    i32 0, label %306
  ]

306:                                              ; preds = %304
  br label %307

307:                                              ; preds = %306, %192
  store i32 0, ptr %5, align 4
  br label %308

308:                                              ; preds = %307, %304
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #5
  %309 = load i32, ptr %5, align 4
  switch i32 %309, label %418 [
    i32 0, label %310
    i32 7, label %311
  ]

310:                                              ; preds = %308
  br label %311

311:                                              ; preds = %310, %308
  %312 = load i32, ptr %33, align 4, !tbaa !16
  %313 = add nsw i32 %312, 1
  store i32 %313, ptr %33, align 4, !tbaa !16
  br label %159, !llvm.loop !53

314:                                              ; preds = %166
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  br label %315

315:                                              ; preds = %314
  %316 = load i32, ptr %31, align 4, !tbaa !16
  %317 = add nsw i32 %316, 1
  store i32 %317, ptr %31, align 4, !tbaa !16
  br label %122, !llvm.loop !55

318:                                              ; preds = %128
  %319 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 19), align 8, !tbaa !19
  call void %319(i32 noundef 1, ptr noundef %28)
  %320 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 50), align 8, !tbaa !19
  %321 = load i32, ptr %8, align 4, !tbaa !16
  call void %320(i32 noundef %321)
  %322 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 4), align 8, !tbaa !19
  %323 = load i32, ptr %9, align 4, !tbaa !16
  call void %322(i32 noundef 3553, i32 noundef %323)
  %324 = load ptr, ptr %6, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %324, i32 0, i32 0
  %326 = load i32, ptr %325, align 4, !tbaa !20
  %327 = icmp uge i32 %326, 330
  br i1 %327, label %328, label %331

328:                                              ; preds = %318
  %329 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 3), align 8, !tbaa !19
  %330 = load i32, ptr %10, align 4, !tbaa !16
  call void %329(i32 noundef 0, i32 noundef %330)
  br label %331

331:                                              ; preds = %328, %318
  %332 = load ptr, ptr @imgl3wProcs, align 8, !tbaa !19
  %333 = load i32, ptr %7, align 4, !tbaa !16
  call void %332(i32 noundef %333)
  %334 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 5), align 8, !tbaa !19
  %335 = load i32, ptr %12, align 4, !tbaa !16
  call void %334(i32 noundef %335)
  %336 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 2), align 8, !tbaa !19
  %337 = load i32, ptr %11, align 4, !tbaa !16
  call void %336(i32 noundef 34962, i32 noundef %337)
  %338 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 7), align 8, !tbaa !19
  %339 = load i32, ptr %20, align 4, !tbaa !16
  %340 = load i32, ptr %21, align 4, !tbaa !16
  call void %338(i32 noundef %339, i32 noundef %340)
  %341 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 8), align 8, !tbaa !19
  %342 = load i32, ptr %16, align 4, !tbaa !16
  %343 = load i32, ptr %17, align 4, !tbaa !16
  %344 = load i32, ptr %18, align 4, !tbaa !16
  %345 = load i32, ptr %19, align 4, !tbaa !16
  call void %341(i32 noundef %342, i32 noundef %343, i32 noundef %344, i32 noundef %345)
  %346 = load i8, ptr %22, align 1, !tbaa !19
  %347 = icmp ne i8 %346, 0
  br i1 %347, label %348, label %350

348:                                              ; preds = %331
  %349 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 24), align 8, !tbaa !19
  call void %349(i32 noundef 3042)
  br label %352

350:                                              ; preds = %331
  %351 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 21), align 8, !tbaa !19
  call void %351(i32 noundef 3042)
  br label %352

352:                                              ; preds = %350, %348
  %353 = load i8, ptr %23, align 1, !tbaa !19
  %354 = icmp ne i8 %353, 0
  br i1 %354, label %355, label %357

355:                                              ; preds = %352
  %356 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 24), align 8, !tbaa !19
  call void %356(i32 noundef 2884)
  br label %359

357:                                              ; preds = %352
  %358 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 21), align 8, !tbaa !19
  call void %358(i32 noundef 2884)
  br label %359

359:                                              ; preds = %357, %355
  %360 = load i8, ptr %24, align 1, !tbaa !19
  %361 = icmp ne i8 %360, 0
  br i1 %361, label %362, label %364

362:                                              ; preds = %359
  %363 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 24), align 8, !tbaa !19
  call void %363(i32 noundef 2929)
  br label %366

364:                                              ; preds = %359
  %365 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 21), align 8, !tbaa !19
  call void %365(i32 noundef 2929)
  br label %366

366:                                              ; preds = %364, %362
  %367 = load i8, ptr %25, align 1, !tbaa !19
  %368 = icmp ne i8 %367, 0
  br i1 %368, label %369, label %371

369:                                              ; preds = %366
  %370 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 24), align 8, !tbaa !19
  call void %370(i32 noundef 2960)
  br label %373

371:                                              ; preds = %366
  %372 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 21), align 8, !tbaa !19
  call void %372(i32 noundef 2960)
  br label %373

373:                                              ; preds = %371, %369
  %374 = load i8, ptr %26, align 1, !tbaa !19
  %375 = icmp ne i8 %374, 0
  br i1 %375, label %376, label %378

376:                                              ; preds = %373
  %377 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 24), align 8, !tbaa !19
  call void %377(i32 noundef 3089)
  br label %380

378:                                              ; preds = %373
  %379 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 21), align 8, !tbaa !19
  call void %379(i32 noundef 3089)
  br label %380

380:                                              ; preds = %378, %376
  %381 = load ptr, ptr %6, align 8, !tbaa !5
  %382 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %381, i32 0, i32 0
  %383 = load i32, ptr %382, align 4, !tbaa !20
  %384 = icmp uge i32 %383, 310
  br i1 %384, label %385, label %393

385:                                              ; preds = %380
  %386 = load i8, ptr %27, align 1, !tbaa !19
  %387 = icmp ne i8 %386, 0
  br i1 %387, label %388, label %390

388:                                              ; preds = %385
  %389 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 24), align 8, !tbaa !19
  call void %389(i32 noundef 36765)
  br label %392

390:                                              ; preds = %385
  %391 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 21), align 8, !tbaa !19
  call void %391(i32 noundef 36765)
  br label %392

392:                                              ; preds = %390, %388
  br label %393

393:                                              ; preds = %392, %380
  %394 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 42), align 8, !tbaa !19
  %395 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
  %396 = load i32, ptr %395, align 4, !tbaa !16
  call void %394(i32 noundef 1032, i32 noundef %396)
  %397 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 52), align 8, !tbaa !19
  %398 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 0
  %399 = load i32, ptr %398, align 16, !tbaa !16
  %400 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 1
  %401 = load i32, ptr %400, align 4, !tbaa !16
  %402 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 2
  %403 = load i32, ptr %402, align 8, !tbaa !16
  %404 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 3
  %405 = load i32, ptr %404, align 4, !tbaa !16
  call void %397(i32 noundef %399, i32 noundef %401, i32 noundef %403, i32 noundef %405)
  %406 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 44), align 8, !tbaa !19
  %407 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 0
  %408 = load i32, ptr %407, align 16, !tbaa !16
  %409 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 1
  %410 = load i32, ptr %409, align 4, !tbaa !16
  %411 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 2
  %412 = load i32, ptr %411, align 8, !tbaa !16
  %413 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 3
  %414 = load i32, ptr %413, align 4, !tbaa !16
  call void %406(i32 noundef %408, i32 noundef %410, i32 noundef %412, i32 noundef %414)
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  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 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  store i32 0, ptr %5, align 4
  br label %415

415:                                              ; preds = %393, %62
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  %416 = load i32, ptr %5, align 4
  switch i32 %416, label %418 [
    i32 0, label %417
    i32 1, label %417
  ]

417:                                              ; preds = %415, %415
  ret void

418:                                              ; preds = %415, %308
  unreachable
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZNK8ImVectorI9ImDrawCmdEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK9ImDrawCmd8GetTexIDEv(ptr noundef nonnull align 8 dereferenceable(56)) #3 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !14, i64 32}
!10 = !{!"_ZTS10ImDrawData", !11, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !6, i64 16, !13, i64 24, !13, i64 32, !13, i64 40}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTS6ImVec2", !14, i64 0, !14, i64 4}
!14 = !{!"float", !7, i64 0}
!15 = !{!10, !14, i64 40}
!16 = !{!12, !12, i64 0}
!17 = !{!10, !14, i64 36}
!18 = !{!10, !14, i64 44}
!19 = !{!7, !7, i64 0}
!20 = !{!21, !12, i64 0}
!21 = !{!"_ZTS22ImGui_ImplOpenGL3_Data", !12, i64 0, !7, i64 4, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !12, i64 64, !12, i64 68, !11, i64 72}
!22 = !{i64 0, i64 4, !23, i64 4, i64 4, !23}
!23 = !{!14, !14, i64 0}
!24 = !{!10, !12, i64 4}
!25 = !{!10, !6, i64 16}
!26 = !{!27, !12, i64 32}
!27 = !{!"_ZTS10ImDrawList", !28, i64 0, !29, i64 16, !30, i64 32, !12, i64 48, !12, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !31, i64 88, !32, i64 104, !33, i64 120, !34, i64 136, !36, i64 168, !14, i64 192}
!28 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !12, i64 0, !12, i64 4, !6, i64 8}
!29 = !{!"_ZTS8ImVectorItE", !12, i64 0, !12, i64 4, !6, i64 8}
!30 = !{!"_ZTS8ImVectorI10ImDrawVertE", !12, i64 0, !12, i64 4, !6, i64 8}
!31 = !{!"_ZTS8ImVectorI6ImVec4E", !12, i64 0, !12, i64 4, !6, i64 8}
!32 = !{!"_ZTS8ImVectorIPvE", !12, i64 0, !12, i64 4, !6, i64 8}
!33 = !{!"_ZTS8ImVectorI6ImVec2E", !12, i64 0, !12, i64 4, !6, i64 8}
!34 = !{!"_ZTS15ImDrawCmdHeader", !35, i64 0, !6, i64 16, !12, i64 24}
!35 = !{!"_ZTS6ImVec4", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12}
!36 = !{!"_ZTS18ImDrawListSplitter", !12, i64 0, !12, i64 4, !37, i64 8}
!37 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !12, i64 0, !12, i64 4, !6, i64 8}
!38 = !{!27, !6, i64 40}
!39 = !{!27, !12, i64 16}
!40 = !{!27, !6, i64 24}
!41 = !{!27, !12, i64 0}
!42 = !{!43, !6, i64 40}
!43 = !{!"_ZTS9ImDrawCmd", !35, i64 0, !6, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !6, i64 40, !6, i64 48}
!44 = !{!43, !14, i64 0}
!45 = !{!13, !14, i64 0}
!46 = !{!43, !14, i64 4}
!47 = !{!13, !14, i64 4}
!48 = !{!43, !14, i64 8}
!49 = !{!43, !14, i64 12}
!50 = !{!43, !12, i64 32}
!51 = !{!43, !12, i64 28}
!52 = !{!43, !12, i64 24}
!53 = distinct !{!53, !54}
!54 = !{!"llvm.loop.mustprogress"}
!55 = distinct !{!55, !54}


; 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"

%union.GL3WProcs = type { [53 x ptr] }
%struct.ImVec2 = type { float, float }

@imgl3wProcs = external dso_local local_unnamed_addr global %union.GL3WProcs, 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 uwtable
declare hidden noundef ptr @_ZL32ImGui_ImplOpenGL3_GetBackendDatav() local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z32ImGui_ImplOpenGL3_RenderDrawDataP10ImDrawData(ptr noundef %0) local_unnamed_addr #1 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca [2 x i32], align 4
  %9 = alloca [4 x i32], align 16
  %10 = alloca [4 x i32], align 16
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %struct.ImVec2, align 4
  %19 = alloca %struct.ImVec2, align 4
  %20 = getelementptr inbounds i8, ptr %0, i64 32
  %21 = getelementptr inbounds i8, ptr %0, i64 40
  %22 = getelementptr inbounds i8, ptr %0, i64 44
  %23 = load <2 x float>, ptr %20, align 8, !tbaa !5
  %24 = load <2 x float>, ptr %21, align 8, !tbaa !5
  %25 = fmul <2 x float> %23, %24
  %26 = fptosi <2 x float> %25 to <2 x i32>
  %27 = icmp slt <2 x i32> %26, <i32 1, i32 1>
  %28 = extractelement <2 x i1> %27, i64 0
  %29 = extractelement <2 x i1> %27, i64 1
  %or.cond = select i1 %28, i1 true, i1 %29
  br i1 %or.cond, label %219, label %30

30:                                               ; preds = %1
  %31 = tail call noundef ptr @_ZL32ImGui_ImplOpenGL3_GetBackendDatav()
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  %32 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 248), align 8, !tbaa !9
  call void %32(i32 noundef 34016, ptr noundef nonnull %2)
  %33 = load ptr, ptr @imgl3wProcs, align 8, !tbaa !9
  call void %33(i32 noundef 33984)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  %34 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 248), align 8, !tbaa !9
  call void %34(i32 noundef 35725, ptr noundef nonnull %3)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  %35 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 248), align 8, !tbaa !9
  call void %35(i32 noundef 32873, ptr noundef nonnull %4)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  %36 = load i32, ptr %31, align 4, !tbaa !10
  %37 = icmp ugt i32 %36, 329
  br i1 %37, label %38, label %40

38:                                               ; preds = %30
  %39 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 248), align 8, !tbaa !9
  call void %39(i32 noundef 35097, ptr noundef nonnull %5)
  br label %41

40:                                               ; preds = %30
  store i32 0, ptr %5, align 4, !tbaa !14
  br label %41

41:                                               ; preds = %40, %38
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  %42 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 248), align 8, !tbaa !9
  call void %42(i32 noundef 34964, ptr noundef nonnull %6)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  %43 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 248), align 8, !tbaa !9
  call void %43(i32 noundef 34229, ptr noundef nonnull %7)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %44 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 248), align 8, !tbaa !9
  call void %44(i32 noundef 2880, ptr noundef nonnull %8)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #4
  %45 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 248), align 8, !tbaa !9
  call void %45(i32 noundef 2978, ptr noundef nonnull %9)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #4
  %46 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 248), align 8, !tbaa !9
  call void %46(i32 noundef 3088, ptr noundef nonnull %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #4
  %47 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 248), align 8, !tbaa !9
  call void %47(i32 noundef 32969, ptr noundef nonnull %11)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #4
  %48 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 248), align 8, !tbaa !9
  call void %48(i32 noundef 32968, ptr noundef nonnull %12)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #4
  %49 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 248), align 8, !tbaa !9
  call void %49(i32 noundef 32971, ptr noundef nonnull %13)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #4
  %50 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 248), align 8, !tbaa !9
  call void %50(i32 noundef 32970, ptr noundef nonnull %14)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #4
  %51 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 248), align 8, !tbaa !9
  call void %51(i32 noundef 32777, ptr noundef nonnull %15)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #4
  %52 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 248), align 8, !tbaa !9
  call void %52(i32 noundef 34877, ptr noundef nonnull %16)
  %53 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 312), align 8, !tbaa !9
  %54 = call noundef zeroext i8 %53(i32 noundef 3042)
  %55 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 312), align 8, !tbaa !9
  %56 = call noundef zeroext i8 %55(i32 noundef 2884)
  %57 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 312), align 8, !tbaa !9
  %58 = call noundef zeroext i8 %57(i32 noundef 2929)
  %59 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 312), align 8, !tbaa !9
  %60 = call noundef zeroext i8 %59(i32 noundef 2960)
  %61 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 312), align 8, !tbaa !9
  %62 = call noundef zeroext i8 %61(i32 noundef 3089)
  %63 = load i32, ptr %31, align 4, !tbaa !10
  %64 = icmp ugt i32 %63, 309
  br i1 %64, label %65, label %69

65:                                               ; preds = %41
  %66 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 312), align 8, !tbaa !9
  %67 = call noundef zeroext i8 %66(i32 noundef 36765)
  %68 = icmp eq i8 %67, 0
  br label %69

69:                                               ; preds = %41, %65
  %.not75 = phi i1 [ %68, %65 ], [ true, %41 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #4
  store i32 0, ptr %17, align 4, !tbaa !14
  %70 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 224), align 8, !tbaa !9
  call void %70(i32 noundef 1, ptr noundef nonnull %17)
  %71 = load i32, ptr %17, align 4, !tbaa !14
  %72 = extractelement <2 x i32> %26, i64 0
  %73 = extractelement <2 x i32> %26, i64 1
  call void @_ZL34ImGui_ImplOpenGL3_SetupRenderStateP10ImDrawDataiij(ptr noundef nonnull %0, i32 noundef %72, i32 noundef %73, i32 noundef %71)
  %74 = getelementptr inbounds i8, ptr %0, i64 24
  %.sroa.029.0.copyload = load float, ptr %74, align 8, !tbaa !5
  %.sroa.531.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 28
  %.sroa.531.0.copyload = load float, ptr %.sroa.531.0..sroa_idx, align 4, !tbaa !5
  %.sroa.0.0.copyload = load float, ptr %21, align 8, !tbaa !5
  %.sroa.5.0.copyload = load float, ptr %22, align 4, !tbaa !5
  %75 = getelementptr inbounds i8, ptr %0, i64 4
  %76 = load i32, ptr %75, align 4, !tbaa !15
  %77 = icmp sgt i32 %76, 0
  br i1 %77, label %.lr.ph80, label %._crit_edge81

.lr.ph80:                                         ; preds = %69
  %78 = getelementptr inbounds i8, ptr %0, i64 16
  %79 = getelementptr inbounds i8, ptr %19, i64 4
  %80 = getelementptr inbounds i8, ptr %18, i64 4
  %81 = uitofp nneg i32 %73 to float
  br label %89

._crit_edge81:                                    ; preds = %._crit_edge, %69
  %82 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 152), align 8, !tbaa !9
  call void %82(i32 noundef 1, ptr noundef nonnull %17)
  %83 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 400), align 8, !tbaa !9
  %84 = load i32, ptr %3, align 4, !tbaa !14
  call void %83(i32 noundef %84)
  %85 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 32), align 8, !tbaa !9
  %86 = load i32, ptr %4, align 4, !tbaa !14
  call void %85(i32 noundef 3553, i32 noundef %86)
  %87 = load i32, ptr %31, align 4, !tbaa !10
  %88 = icmp ugt i32 %87, 329
  br i1 %88, label %174, label %177

89:                                               ; preds = %.lr.ph80, %._crit_edge
  %indvars.iv = phi i64 [ 0, %.lr.ph80 ], [ %indvars.iv.next, %._crit_edge ]
  %90 = load ptr, ptr %78, align 8, !tbaa !19
  %91 = getelementptr inbounds ptr, ptr %90, i64 %indvars.iv
  %92 = load ptr, ptr %91, align 8, !tbaa !20
  %93 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 72), align 8, !tbaa !9
  %94 = getelementptr inbounds i8, ptr %92, i64 32
  %95 = load i32, ptr %94, align 8, !tbaa !21
  %96 = sext i32 %95 to i64
  %97 = mul nsw i64 %96, 20
  %98 = getelementptr inbounds i8, ptr %92, i64 40
  %99 = load ptr, ptr %98, align 8, !tbaa !33
  call void %93(i32 noundef 34962, i64 noundef %97, ptr noundef %99, i32 noundef 35040)
  %100 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 72), align 8, !tbaa !9
  %101 = getelementptr inbounds i8, ptr %92, i64 16
  %102 = load i32, ptr %101, align 8, !tbaa !34
  %103 = sext i32 %102 to i64
  %104 = shl nsw i64 %103, 1
  %105 = getelementptr inbounds i8, ptr %92, i64 24
  %106 = load ptr, ptr %105, align 8, !tbaa !35
  call void %100(i32 noundef 34963, i64 noundef %104, ptr noundef %106, i32 noundef 35040)
  %107 = load i32, ptr %92, align 8, !tbaa !36
  %108 = icmp sgt i32 %107, 0
  br i1 %108, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %170, %89
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %109 = load i32, ptr %75, align 4, !tbaa !15
  %110 = sext i32 %109 to i64
  %111 = icmp slt i64 %indvars.iv.next, %110
  br i1 %111, label %89, label %._crit_edge81, !llvm.loop !37

.lr.ph:                                           ; preds = %89, %170
  %.06277 = phi i32 [ %171, %170 ], [ 0, %89 ]
  %112 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK8ImVectorI9ImDrawCmdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %92, i32 noundef %.06277)
  %113 = getelementptr inbounds i8, ptr %112, i64 40
  %114 = load ptr, ptr %113, align 8, !tbaa !39
  %magicptr = ptrtoint ptr %114 to i64
  switch i64 %magicptr, label %117 [
    i64 0, label %118
    i64 -1, label %115
  ]

115:                                              ; preds = %.lr.ph
  %116 = load i32, ptr %17, align 4, !tbaa !14
  call void @_ZL34ImGui_ImplOpenGL3_SetupRenderStateP10ImDrawDataiij(ptr noundef %0, i32 noundef %72, i32 noundef %73, i32 noundef %116)
  br label %170

117:                                              ; preds = %.lr.ph
  call void %114(ptr noundef nonnull %92, ptr noundef nonnull %112)
  br label %170

118:                                              ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #4
  %119 = load float, ptr %112, align 8, !tbaa !41
  %120 = fsub float %119, %.sroa.029.0.copyload
  %121 = fmul float %.sroa.0.0.copyload, %120
  %122 = getelementptr inbounds i8, ptr %112, i64 4
  %123 = load float, ptr %122, align 4, !tbaa !42
  %124 = fsub float %123, %.sroa.531.0.copyload
  %125 = fmul float %.sroa.5.0.copyload, %124
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %18, float noundef %121, float noundef %125)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #4
  %126 = getelementptr inbounds i8, ptr %112, i64 8
  %127 = load float, ptr %126, align 8, !tbaa !43
  %128 = fsub float %127, %.sroa.029.0.copyload
  %129 = fmul float %.sroa.0.0.copyload, %128
  %130 = getelementptr inbounds i8, ptr %112, i64 12
  %131 = load float, ptr %130, align 4, !tbaa !44
  %132 = fsub float %131, %.sroa.531.0.copyload
  %133 = fmul float %.sroa.5.0.copyload, %132
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %19, float noundef %129, float noundef %133)
  %134 = load float, ptr %19, align 4, !tbaa !45
  %135 = load float, ptr %18, align 4, !tbaa !45
  %136 = fcmp olt float %134, %135
  br i1 %136, label %.critedge, label %137

137:                                              ; preds = %118
  %138 = load float, ptr %79, align 4, !tbaa !46
  %139 = load float, ptr %80, align 4, !tbaa !46
  %140 = fcmp olt float %138, %139
  br i1 %140, label %.critedge, label %141

141:                                              ; preds = %137
  %142 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 352), align 8, !tbaa !9
  %143 = fptosi float %135 to i32
  %144 = fsub float %81, %138
  %145 = fptosi float %144 to i32
  %146 = fsub float %134, %135
  %147 = fptosi float %146 to i32
  %148 = fsub float %138, %139
  %149 = fptosi float %148 to i32
  call void %142(i32 noundef %143, i32 noundef %145, i32 noundef %147, i32 noundef %149)
  %150 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 32), align 8, !tbaa !9
  %151 = call noundef ptr @_ZNK9ImDrawCmd8GetTexIDEv(ptr noundef nonnull align 8 dereferenceable(56) %112)
  %152 = ptrtoint ptr %151 to i64
  %153 = trunc i64 %152 to i32
  call void %150(i32 noundef 3553, i32 noundef %153)
  %154 = load i32, ptr %31, align 4, !tbaa !10
  %155 = icmp ugt i32 %154, 319
  %156 = getelementptr inbounds i8, ptr %112, i64 32
  %157 = load i32, ptr %156, align 8, !tbaa !47
  %158 = getelementptr inbounds i8, ptr %112, i64 28
  %159 = load i32, ptr %158, align 4, !tbaa !48
  %160 = zext i32 %159 to i64
  %161 = shl nuw nsw i64 %160, 1
  %162 = inttoptr i64 %161 to ptr
  br i1 %155, label %163, label %167

163:                                              ; preds = %141
  %164 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 184), align 8, !tbaa !9
  %165 = getelementptr inbounds i8, ptr %112, i64 24
  %166 = load i32, ptr %165, align 8, !tbaa !49
  call void %164(i32 noundef 4, i32 noundef %157, i32 noundef 5123, ptr noundef %162, i32 noundef %166)
  br label %169

167:                                              ; preds = %141
  %168 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 176), align 8, !tbaa !9
  call void %168(i32 noundef 4, i32 noundef %157, i32 noundef 5123, ptr noundef %162)
  br label %169

169:                                              ; preds = %163, %167
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #4
  br label %170

.critedge:                                        ; preds = %118, %137
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #4
  br label %170

170:                                              ; preds = %117, %115, %169, %.critedge
  %171 = add nuw nsw i32 %.06277, 1
  %172 = load i32, ptr %92, align 8, !tbaa !36
  %173 = icmp slt i32 %171, %172
  br i1 %173, label %.lr.ph, label %._crit_edge, !llvm.loop !50

174:                                              ; preds = %._crit_edge81
  %175 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 24), align 8, !tbaa !9
  %176 = load i32, ptr %5, align 4, !tbaa !14
  call void %175(i32 noundef 0, i32 noundef %176)
  br label %177

177:                                              ; preds = %174, %._crit_edge81
  %178 = load ptr, ptr @imgl3wProcs, align 8, !tbaa !9
  %179 = load i32, ptr %2, align 4, !tbaa !14
  call void %178(i32 noundef %179)
  %180 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 40), align 8, !tbaa !9
  %181 = load i32, ptr %7, align 4, !tbaa !14
  call void %180(i32 noundef %181)
  %182 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 16), align 8, !tbaa !9
  %183 = load i32, ptr %6, align 4, !tbaa !14
  call void %182(i32 noundef 34962, i32 noundef %183)
  %184 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 56), align 8, !tbaa !9
  %185 = load i32, ptr %15, align 4, !tbaa !14
  %186 = load i32, ptr %16, align 4, !tbaa !14
  call void %184(i32 noundef %185, i32 noundef %186)
  %187 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 64), align 8, !tbaa !9
  %188 = load i32, ptr %11, align 4, !tbaa !14
  %189 = load i32, ptr %12, align 4, !tbaa !14
  %190 = load i32, ptr %13, align 4, !tbaa !14
  %191 = load i32, ptr %14, align 4, !tbaa !14
  call void %187(i32 noundef %188, i32 noundef %189, i32 noundef %190, i32 noundef %191)
  %.not = icmp eq i8 %54, 0
  %.val = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 168), align 8
  %.val90 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 192), align 8
  %192 = select i1 %.not, ptr %.val, ptr %.val90
  call void %192(i32 noundef 3042)
  %.not71 = icmp eq i8 %56, 0
  %.val91 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 168), align 8
  %.val92 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 192), align 8
  %193 = select i1 %.not71, ptr %.val91, ptr %.val92
  call void %193(i32 noundef 2884)
  %.not72 = icmp eq i8 %58, 0
  %.val93 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 168), align 8
  %.val94 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 192), align 8
  %194 = select i1 %.not72, ptr %.val93, ptr %.val94
  call void %194(i32 noundef 2929)
  %.not73 = icmp eq i8 %60, 0
  %.val95 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 168), align 8
  %.val96 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 192), align 8
  %195 = select i1 %.not73, ptr %.val95, ptr %.val96
  call void %195(i32 noundef 2960)
  %.not74 = icmp eq i8 %62, 0
  %.val97 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 168), align 8
  %.val98 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 192), align 8
  %196 = select i1 %.not74, ptr %.val97, ptr %.val98
  call void %196(i32 noundef 3089)
  %197 = load i32, ptr %31, align 4, !tbaa !10
  %198 = icmp ugt i32 %197, 309
  br i1 %198, label %.sink.split, label %200

.sink.split:                                      ; preds = %177
  %.val99 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 168), align 8
  %.val100 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 192), align 8
  %199 = select i1 %.not75, ptr %.val99, ptr %.val100
  call void %199(i32 noundef 36765)
  br label %200

200:                                              ; preds = %.sink.split, %177
  %201 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 336), align 8, !tbaa !9
  %202 = load i32, ptr %8, align 4, !tbaa !14
  call void %201(i32 noundef 1032, i32 noundef %202)
  %203 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 416), align 8, !tbaa !9
  %204 = load i32, ptr %9, align 16, !tbaa !14
  %205 = getelementptr inbounds i8, ptr %9, i64 4
  %206 = load i32, ptr %205, align 4, !tbaa !14
  %207 = getelementptr inbounds i8, ptr %9, i64 8
  %208 = load i32, ptr %207, align 8, !tbaa !14
  %209 = getelementptr inbounds i8, ptr %9, i64 12
  %210 = load i32, ptr %209, align 4, !tbaa !14
  call void %203(i32 noundef %204, i32 noundef %206, i32 noundef %208, i32 noundef %210)
  %211 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 352), align 8, !tbaa !9
  %212 = load i32, ptr %10, align 16, !tbaa !14
  %213 = getelementptr inbounds i8, ptr %10, i64 4
  %214 = load i32, ptr %213, align 4, !tbaa !14
  %215 = getelementptr inbounds i8, ptr %10, i64 8
  %216 = load i32, ptr %215, align 8, !tbaa !14
  %217 = getelementptr inbounds i8, ptr %10, i64 12
  %218 = load i32, ptr %217, align 4, !tbaa !14
  call void %211(i32 noundef %212, i32 noundef %214, i32 noundef %216, i32 noundef %218)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  br label %219

219:                                              ; preds = %1, %200
  ret void
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZNK8ImVectorI9ImDrawCmdEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK9ImDrawCmd8GetTexIDEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #2 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = !{!7, !7, i64 0}
!10 = !{!11, !12, i64 0}
!11 = !{!"_ZTS22ImGui_ImplOpenGL3_Data", !12, i64 0, !7, i64 4, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !12, i64 64, !12, i64 68, !13, i64 72}
!12 = !{!"int", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!12, !12, i64 0}
!15 = !{!16, !12, i64 4}
!16 = !{!"_ZTS10ImDrawData", !13, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !17, i64 16, !18, i64 24, !18, i64 32, !18, i64 40}
!17 = !{!"any pointer", !7, i64 0}
!18 = !{!"_ZTS6ImVec2", !6, i64 0, !6, i64 4}
!19 = !{!16, !17, i64 16}
!20 = !{!17, !17, i64 0}
!21 = !{!22, !12, i64 32}
!22 = !{!"_ZTS10ImDrawList", !23, i64 0, !24, i64 16, !25, i64 32, !12, i64 48, !12, i64 52, !17, i64 56, !17, i64 64, !17, i64 72, !17, i64 80, !26, i64 88, !27, i64 104, !28, i64 120, !29, i64 136, !31, i64 168, !6, i64 192}
!23 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !12, i64 0, !12, i64 4, !17, i64 8}
!24 = !{!"_ZTS8ImVectorItE", !12, i64 0, !12, i64 4, !17, i64 8}
!25 = !{!"_ZTS8ImVectorI10ImDrawVertE", !12, i64 0, !12, i64 4, !17, i64 8}
!26 = !{!"_ZTS8ImVectorI6ImVec4E", !12, i64 0, !12, i64 4, !17, i64 8}
!27 = !{!"_ZTS8ImVectorIPvE", !12, i64 0, !12, i64 4, !17, i64 8}
!28 = !{!"_ZTS8ImVectorI6ImVec2E", !12, i64 0, !12, i64 4, !17, i64 8}
!29 = !{!"_ZTS15ImDrawCmdHeader", !30, i64 0, !17, i64 16, !12, i64 24}
!30 = !{!"_ZTS6ImVec4", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!31 = !{!"_ZTS18ImDrawListSplitter", !12, i64 0, !12, i64 4, !32, i64 8}
!32 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !12, i64 0, !12, i64 4, !17, i64 8}
!33 = !{!22, !17, i64 40}
!34 = !{!22, !12, i64 16}
!35 = !{!22, !17, i64 24}
!36 = !{!22, !12, i64 0}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"}
!39 = !{!40, !17, i64 40}
!40 = !{!"_ZTS9ImDrawCmd", !30, i64 0, !17, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !17, i64 40, !17, i64 48}
!41 = !{!40, !6, i64 0}
!42 = !{!40, !6, i64 4}
!43 = !{!40, !6, i64 8}
!44 = !{!40, !6, i64 12}
!45 = !{!18, !6, i64 0}
!46 = !{!18, !6, i64 4}
!47 = !{!40, !12, i64 32}
!48 = !{!40, !12, i64 28}
!49 = !{!40, !12, i64 24}
!50 = distinct !{!50, !38}


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