; LLVM IR from hasseily/SuperDuperDisplay :: imgui/backends/imgui_impl_opengl2.ll (Z32ImGui_ImplOpenGL2_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"

%struct.ImVec2 = type { float, float }
%struct.ImDrawData = type { i8, i32, i32, i32, %struct.ImVector.0, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, ptr }
%struct.ImVector.0 = type { i32, i32, ptr }
%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 }

; 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
define dso_local void @_Z32ImGui_ImplOpenGL2_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 i32, align 4
  %7 = alloca [2 x i32], align 4
  %8 = alloca [4 x i32], align 16
  %9 = alloca [4 x i32], align 16
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %struct.ImVec2, align 4
  %13 = alloca %struct.ImVec2, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca %struct.ImVec2, align 4
  %21 = alloca %struct.ImVec2, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  %22 = load ptr, ptr %2, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.ImDrawData, ptr %22, i32 0, i32 6
  %24 = getelementptr inbounds %struct.ImVec2, ptr %23, i32 0, i32 0
  %25 = load float, ptr %24, align 8, !tbaa !9
  %26 = load ptr, ptr %2, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.ImDrawData, ptr %26, i32 0, i32 7
  %28 = getelementptr inbounds %struct.ImVec2, ptr %27, i32 0, i32 0
  %29 = load float, ptr %28, align 8, !tbaa !16
  %30 = fmul float %25, %29
  %31 = fptosi float %30 to i32
  store i32 %31, ptr %3, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %32 = load ptr, ptr %2, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.ImDrawData, ptr %32, i32 0, i32 6
  %34 = getelementptr inbounds %struct.ImVec2, ptr %33, i32 0, i32 1
  %35 = load float, ptr %34, align 4, !tbaa !18
  %36 = load ptr, ptr %2, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.ImDrawData, ptr %36, i32 0, i32 7
  %38 = getelementptr inbounds %struct.ImVec2, ptr %37, i32 0, i32 1
  %39 = load float, ptr %38, align 4, !tbaa !19
  %40 = fmul float %35, %39
  %41 = fptosi float %40 to i32
  store i32 %41, ptr %4, align 4, !tbaa !17
  %42 = load i32, ptr %3, align 4, !tbaa !17
  %43 = icmp eq i32 %42, 0
  br i1 %43, label %47, label %44

44:                                               ; preds = %1
  %45 = load i32, ptr %4, align 4, !tbaa !17
  %46 = icmp eq i32 %45, 0
  br i1 %46, label %47, label %48

47:                                               ; preds = %44, %1
  store i32 1, ptr %5, align 4
  br label %245

48:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @glGetIntegerv(i32 noundef 32873, ptr noundef %6)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %49 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
  call void @glGetIntegerv(i32 noundef 2880, ptr noundef %49)
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #6
  %50 = getelementptr inbounds [4 x i32], ptr %8, i64 0, i64 0
  call void @glGetIntegerv(i32 noundef 2978, ptr noundef %50)
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #6
  %51 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 0
  call void @glGetIntegerv(i32 noundef 3088, ptr noundef %51)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  call void @glGetIntegerv(i32 noundef 2900, ptr noundef %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @glGetTexEnviv(i32 noundef 8960, i32 noundef 8704, ptr noundef %11)
  call void @glPushAttrib(i32 noundef 28672)
  %52 = load ptr, ptr %2, align 8, !tbaa !5
  %53 = load i32, ptr %3, align 4, !tbaa !17
  %54 = load i32, ptr %4, align 4, !tbaa !17
  call void @_ZL34ImGui_ImplOpenGL2_SetupRenderStateP10ImDrawDataii(ptr noundef %52, i32 noundef %53, i32 noundef %54)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %55 = load ptr, ptr %2, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.ImDrawData, ptr %55, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 8 %56, i64 8, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %57 = load ptr, ptr %2, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.ImDrawData, ptr %57, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 8 %58, i64 8, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !17
  br label %59

59:                                               ; preds = %218, %48
  %60 = load i32, ptr %14, align 4, !tbaa !17
  %61 = load ptr, ptr %2, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.ImDrawData, ptr %61, i32 0, i32 1
  %63 = load i32, ptr %62, align 4, !tbaa !22
  %64 = icmp slt i32 %60, %63
  br i1 %64, label %66, label %65

65:                                               ; preds = %59
  store i32 2, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %221

66:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %67 = load ptr, ptr %2, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.ImDrawData, ptr %67, i32 0, i32 4
  %69 = load i32, ptr %14, align 4, !tbaa !17
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP10ImDrawListEixEi(ptr noundef nonnull align 8 dereferenceable(16) %68, i32 noundef %69)
  %71 = load ptr, ptr %70, align 8, !tbaa !5
  store ptr %71, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %72 = load ptr, ptr %15, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.ImDrawList, ptr %72, i32 0, i32 2
  %74 = getelementptr inbounds %struct.ImVector.2, ptr %73, i32 0, i32 2
  %75 = load ptr, ptr %74, align 8, !tbaa !23
  store ptr %75, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %76 = load ptr, ptr %15, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.ImDrawList, ptr %76, i32 0, i32 1
  %78 = getelementptr inbounds %struct.ImVector, ptr %77, i32 0, i32 2
  %79 = load ptr, ptr %78, align 8, !tbaa !35
  store ptr %79, ptr %17, align 8, !tbaa !5
  %80 = load ptr, ptr %16, align 8, !tbaa !5
  %81 = getelementptr inbounds i8, ptr %80, i64 0
  call void @glVertexPointer(i32 noundef 2, i32 noundef 5126, i32 noundef 20, ptr noundef %81)
  %82 = load ptr, ptr %16, align 8, !tbaa !5
  %83 = getelementptr inbounds i8, ptr %82, i64 8
  call void @glTexCoordPointer(i32 noundef 2, i32 noundef 5126, i32 noundef 20, ptr noundef %83)
  %84 = load ptr, ptr %16, align 8, !tbaa !5
  %85 = getelementptr inbounds i8, ptr %84, i64 16
  call void @glColorPointer(i32 noundef 4, i32 noundef 5121, i32 noundef 20, ptr noundef %85)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !17
  br label %86

86:                                               ; preds = %214, %66
  %87 = load i32, ptr %18, align 4, !tbaa !17
  %88 = load ptr, ptr %15, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.ImDrawList, ptr %88, i32 0, i32 0
  %90 = getelementptr inbounds %struct.ImVector.1, ptr %89, i32 0, i32 0
  %91 = load i32, ptr %90, align 8, !tbaa !36
  %92 = icmp slt i32 %87, %91
  br i1 %92, label %94, label %93

93:                                               ; preds = %86
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %217

94:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %95 = load ptr, ptr %15, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.ImDrawList, ptr %95, i32 0, i32 0
  %97 = load i32, ptr %18, align 4, !tbaa !17
  %98 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK8ImVectorI9ImDrawCmdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %96, i32 noundef %97)
  store ptr %98, ptr %19, align 8, !tbaa !5
  %99 = load ptr, ptr %19, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.ImDrawCmd, ptr %99, i32 0, i32 5
  %101 = load ptr, ptr %100, align 8, !tbaa !37
  %102 = icmp ne ptr %101, null
  br i1 %102, label %103, label %119

103:                                              ; preds = %94
  %104 = load ptr, ptr %19, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.ImDrawCmd, ptr %104, i32 0, i32 5
  %106 = load ptr, ptr %105, align 8, !tbaa !37
  %107 = icmp eq ptr %106, inttoptr (i64 -8 to ptr)
  br i1 %107, label %108, label %112

108:                                              ; preds = %103
  %109 = load ptr, ptr %2, align 8, !tbaa !5
  %110 = load i32, ptr %3, align 4, !tbaa !17
  %111 = load i32, ptr %4, align 4, !tbaa !17
  call void @_ZL34ImGui_ImplOpenGL2_SetupRenderStateP10ImDrawDataii(ptr noundef %109, i32 noundef %110, i32 noundef %111)
  br label %118

112:                                              ; preds = %103
  %113 = load ptr, ptr %19, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.ImDrawCmd, ptr %113, i32 0, i32 5
  %115 = load ptr, ptr %114, align 8, !tbaa !37
  %116 = load ptr, ptr %15, align 8, !tbaa !5
  %117 = load ptr, ptr %19, align 8, !tbaa !5
  call void %115(ptr noundef %116, ptr noundef %117)
  br label %118

118:                                              ; preds = %112, %108
  br label %210

119:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %120 = load ptr, ptr %19, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.ImDrawCmd, ptr %120, i32 0, i32 0
  %122 = getelementptr inbounds %struct.ImVec4, ptr %121, i32 0, i32 0
  %123 = load float, ptr %122, align 8, !tbaa !39
  %124 = getelementptr inbounds %struct.ImVec2, ptr %12, i32 0, i32 0
  %125 = load float, ptr %124, align 4, !tbaa !40
  %126 = fsub float %123, %125
  %127 = getelementptr inbounds %struct.ImVec2, ptr %13, i32 0, i32 0
  %128 = load float, ptr %127, align 4, !tbaa !40
  %129 = fmul float %126, %128
  %130 = load ptr, ptr %19, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.ImDrawCmd, ptr %130, i32 0, i32 0
  %132 = getelementptr inbounds %struct.ImVec4, ptr %131, i32 0, i32 1
  %133 = load float, ptr %132, align 4, !tbaa !41
  %134 = getelementptr inbounds %struct.ImVec2, ptr %12, i32 0, i32 1
  %135 = load float, ptr %134, align 4, !tbaa !42
  %136 = fsub float %133, %135
  %137 = getelementptr inbounds %struct.ImVec2, ptr %13, i32 0, i32 1
  %138 = load float, ptr %137, align 4, !tbaa !42
  %139 = fmul float %136, %138
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %20, float noundef %129, float noundef %139)
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %140 = load ptr, ptr %19, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.ImDrawCmd, ptr %140, i32 0, i32 0
  %142 = getelementptr inbounds %struct.ImVec4, ptr %141, i32 0, i32 2
  %143 = load float, ptr %142, align 8, !tbaa !43
  %144 = getelementptr inbounds %struct.ImVec2, ptr %12, i32 0, i32 0
  %145 = load float, ptr %144, align 4, !tbaa !40
  %146 = fsub float %143, %145
  %147 = getelementptr inbounds %struct.ImVec2, ptr %13, i32 0, i32 0
  %148 = load float, ptr %147, align 4, !tbaa !40
  %149 = fmul float %146, %148
  %150 = load ptr, ptr %19, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.ImDrawCmd, ptr %150, i32 0, i32 0
  %152 = getelementptr inbounds %struct.ImVec4, ptr %151, i32 0, i32 3
  %153 = load float, ptr %152, align 4, !tbaa !44
  %154 = getelementptr inbounds %struct.ImVec2, ptr %12, i32 0, i32 1
  %155 = load float, ptr %154, align 4, !tbaa !42
  %156 = fsub float %153, %155
  %157 = getelementptr inbounds %struct.ImVec2, ptr %13, i32 0, i32 1
  %158 = load float, ptr %157, align 4, !tbaa !42
  %159 = fmul float %156, %158
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %21, float noundef %149, float noundef %159)
  %160 = getelementptr inbounds %struct.ImVec2, ptr %21, i32 0, i32 0
  %161 = load float, ptr %160, align 4, !tbaa !40
  %162 = getelementptr inbounds %struct.ImVec2, ptr %20, i32 0, i32 0
  %163 = load float, ptr %162, align 4, !tbaa !40
  %164 = fcmp ole float %161, %163
  br i1 %164, label %171, label %165

165:                                              ; preds = %119
  %166 = getelementptr inbounds %struct.ImVec2, ptr %21, i32 0, i32 1
  %167 = load float, ptr %166, align 4, !tbaa !42
  %168 = getelementptr inbounds %struct.ImVec2, ptr %20, i32 0, i32 1
  %169 = load float, ptr %168, align 4, !tbaa !42
  %170 = fcmp ole float %167, %169
  br i1 %170, label %171, label %172

171:                                              ; preds = %165, %119
  store i32 7, ptr %5, align 4
  br label %207

172:                                              ; preds = %165
  %173 = getelementptr inbounds %struct.ImVec2, ptr %20, i32 0, i32 0
  %174 = load float, ptr %173, align 4, !tbaa !40
  %175 = fptosi float %174 to i32
  %176 = load i32, ptr %4, align 4, !tbaa !17
  %177 = sitofp i32 %176 to float
  %178 = getelementptr inbounds %struct.ImVec2, ptr %21, i32 0, i32 1
  %179 = load float, ptr %178, align 4, !tbaa !42
  %180 = fsub float %177, %179
  %181 = fptosi float %180 to i32
  %182 = getelementptr inbounds %struct.ImVec2, ptr %21, i32 0, i32 0
  %183 = load float, ptr %182, align 4, !tbaa !40
  %184 = getelementptr inbounds %struct.ImVec2, ptr %20, i32 0, i32 0
  %185 = load float, ptr %184, align 4, !tbaa !40
  %186 = fsub float %183, %185
  %187 = fptosi float %186 to i32
  %188 = getelementptr inbounds %struct.ImVec2, ptr %21, i32 0, i32 1
  %189 = load float, ptr %188, align 4, !tbaa !42
  %190 = getelementptr inbounds %struct.ImVec2, ptr %20, i32 0, i32 1
  %191 = load float, ptr %190, align 4, !tbaa !42
  %192 = fsub float %189, %191
  %193 = fptosi float %192 to i32
  call void @glScissor(i32 noundef %175, i32 noundef %181, i32 noundef %187, i32 noundef %193)
  %194 = load ptr, ptr %19, align 8, !tbaa !5
  %195 = call noundef ptr @_ZNK9ImDrawCmd8GetTexIDEv(ptr noundef nonnull align 8 dereferenceable(56) %194)
  %196 = ptrtoint ptr %195 to i64
  %197 = trunc i64 %196 to i32
  call void @glBindTexture(i32 noundef 3553, i32 noundef %197)
  %198 = load ptr, ptr %19, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.ImDrawCmd, ptr %198, i32 0, i32 4
  %200 = load i32, ptr %199, align 8, !tbaa !45
  %201 = load ptr, ptr %17, align 8, !tbaa !5
  %202 = load ptr, ptr %19, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.ImDrawCmd, ptr %202, i32 0, i32 3
  %204 = load i32, ptr %203, align 4, !tbaa !46
  %205 = zext i32 %204 to i64
  %206 = getelementptr inbounds i16, ptr %201, i64 %205
  call void @glDrawElements(i32 noundef 4, i32 noundef %200, i32 noundef 5123, ptr noundef %206)
  store i32 0, ptr %5, align 4
  br label %207

207:                                              ; preds = %172, %171
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  %208 = load i32, ptr %5, align 4
  switch i32 %208, label %211 [
    i32 0, label %209
  ]

209:                                              ; preds = %207
  br label %210

210:                                              ; preds = %209, %118
  store i32 0, ptr %5, align 4
  br label %211

211:                                              ; preds = %210, %207
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  %212 = load i32, ptr %5, align 4
  switch i32 %212, label %248 [
    i32 0, label %213
    i32 7, label %214
  ]

213:                                              ; preds = %211
  br label %214

214:                                              ; preds = %213, %211
  %215 = load i32, ptr %18, align 4, !tbaa !17
  %216 = add nsw i32 %215, 1
  store i32 %216, ptr %18, align 4, !tbaa !17
  br label %86, !llvm.loop !47

217:                                              ; preds = %93
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %218

218:                                              ; preds = %217
  %219 = load i32, ptr %14, align 4, !tbaa !17
  %220 = add nsw i32 %219, 1
  store i32 %220, ptr %14, align 4, !tbaa !17
  br label %59, !llvm.loop !49

221:                                              ; preds = %65
  call void @glDisableClientState(i32 noundef 32886)
  call void @glDisableClientState(i32 noundef 32888)
  call void @glDisableClientState(i32 noundef 32884)
  %222 = load i32, ptr %6, align 4, !tbaa !17
  call void @glBindTexture(i32 noundef 3553, i32 noundef %222)
  call void @glMatrixMode(i32 noundef 5888)
  call void @glPopMatrix()
  call void @glMatrixMode(i32 noundef 5889)
  call void @glPopMatrix()
  call void @glPopAttrib()
  %223 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
  %224 = load i32, ptr %223, align 4, !tbaa !17
  call void @glPolygonMode(i32 noundef 1028, i32 noundef %224)
  %225 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 1
  %226 = load i32, ptr %225, align 4, !tbaa !17
  call void @glPolygonMode(i32 noundef 1029, i32 noundef %226)
  %227 = getelementptr inbounds [4 x i32], ptr %8, i64 0, i64 0
  %228 = load i32, ptr %227, align 16, !tbaa !17
  %229 = getelementptr inbounds [4 x i32], ptr %8, i64 0, i64 1
  %230 = load i32, ptr %229, align 4, !tbaa !17
  %231 = getelementptr inbounds [4 x i32], ptr %8, i64 0, i64 2
  %232 = load i32, ptr %231, align 8, !tbaa !17
  %233 = getelementptr inbounds [4 x i32], ptr %8, i64 0, i64 3
  %234 = load i32, ptr %233, align 4, !tbaa !17
  call void @glViewport(i32 noundef %228, i32 noundef %230, i32 noundef %232, i32 noundef %234)
  %235 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 0
  %236 = load i32, ptr %235, align 16, !tbaa !17
  %237 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 1
  %238 = load i32, ptr %237, align 4, !tbaa !17
  %239 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 2
  %240 = load i32, ptr %239, align 8, !tbaa !17
  %241 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 3
  %242 = load i32, ptr %241, align 4, !tbaa !17
  call void @glScissor(i32 noundef %236, i32 noundef %238, i32 noundef %240, i32 noundef %242)
  %243 = load i32, ptr %10, align 4, !tbaa !17
  call void @glShadeModel(i32 noundef %243)
  %244 = load i32, ptr %11, align 4, !tbaa !17
  call void @glTexEnvi(i32 noundef 8960, i32 noundef 8704, i32 noundef %244)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  store i32 0, ptr %5, align 4
  br label %245

245:                                              ; preds = %221, %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  %246 = load i32, ptr %5, align 4
  switch i32 %246, label %248 [
    i32 0, label %247
    i32 1, label %247
  ]

247:                                              ; preds = %245, %245
  ret void

248:                                              ; preds = %245, %211
  unreachable
}

declare void @glGetIntegerv(i32 noundef, ptr noundef) #2

declare void @glGetTexEnviv(i32 noundef, i32 noundef, ptr noundef) #2

declare void @glPushAttrib(i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL34ImGui_ImplOpenGL2_SetupRenderStateP10ImDrawDataii(ptr 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) #3

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

declare void @glVertexPointer(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #2

declare void @glTexCoordPointer(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #2

declare void @glColorPointer(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #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) #4 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 #5 align 2

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

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

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

declare void @glDrawElements(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #2

declare void @glDisableClientState(i32 noundef) #2

declare void @glMatrixMode(i32 noundef) #2

declare void @glPopMatrix() #2

declare void @glPopAttrib() #2

declare void @glPolygonMode(i32 noundef, i32 noundef) #2

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

declare void @glShadeModel(i32 noundef) #2

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


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

%struct.ImVec2 = type { float, float }

; 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
define dso_local void @_Z32ImGui_ImplOpenGL2_RenderDrawDataP10ImDrawData(ptr noundef %0) local_unnamed_addr #1 {
  %2 = alloca i32, align 4
  %3 = alloca [2 x i32], align 4
  %4 = alloca [4 x i32], align 16
  %5 = alloca [4 x i32], align 16
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %struct.ImVec2, align 4
  %9 = alloca %struct.ImVec2, align 4
  %10 = getelementptr inbounds i8, ptr %0, i64 40
  %11 = getelementptr inbounds i8, ptr %0, i64 48
  %12 = load <2 x float>, ptr %10, align 8, !tbaa !5
  %13 = load <2 x float>, ptr %11, align 8, !tbaa !5
  %14 = fmul <2 x float> %12, %13
  %15 = fptosi <2 x float> %14 to <2 x i32>
  %16 = icmp eq <2 x i32> %15, zeroinitializer
  %17 = extractelement <2 x i1> %16, i64 0
  %18 = extractelement <2 x i1> %16, i64 1
  %or.cond = select i1 %17, i1 true, i1 %18
  br i1 %or.cond, label %114, label %19

19:                                               ; preds = %1
  %20 = getelementptr inbounds i8, ptr %0, i64 52
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  call void @glGetIntegerv(i32 noundef 32873, ptr noundef nonnull %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  call void @glGetIntegerv(i32 noundef 2880, ptr noundef nonnull %3)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  call void @glGetIntegerv(i32 noundef 2978, ptr noundef nonnull %4)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  call void @glGetIntegerv(i32 noundef 3088, ptr noundef nonnull %5)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  call void @glGetIntegerv(i32 noundef 2900, ptr noundef nonnull %6)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  call void @glGetTexEnviv(i32 noundef 8960, i32 noundef 8704, ptr noundef nonnull %7)
  call void @glPushAttrib(i32 noundef 28672)
  %21 = extractelement <2 x i32> %15, i64 0
  %22 = extractelement <2 x i32> %15, i64 1
  call void @_ZL34ImGui_ImplOpenGL2_SetupRenderStateP10ImDrawDataii(ptr noundef nonnull %0, i32 noundef %21, i32 noundef %22)
  %23 = getelementptr inbounds i8, ptr %0, i64 32
  %.sroa.028.0.copyload = load float, ptr %23, align 8, !tbaa !5
  %.sroa.530.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 36
  %.sroa.530.0.copyload = load float, ptr %.sroa.530.0..sroa_idx, align 4, !tbaa !5
  %.sroa.0.0.copyload = load float, ptr %11, align 8, !tbaa !5
  %.sroa.5.0.copyload = load float, ptr %20, align 4, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %0, i64 4
  %25 = load i32, ptr %24, align 4, !tbaa !9
  %26 = icmp sgt i32 %25, 0
  br i1 %26, label %.lr.ph62, label %._crit_edge63

.lr.ph62:                                         ; preds = %19
  %27 = getelementptr inbounds i8, ptr %0, i64 16
  %28 = getelementptr inbounds i8, ptr %9, i64 4
  %29 = getelementptr inbounds i8, ptr %8, i64 4
  %30 = sitofp i32 %22 to float
  br label %51

._crit_edge63:                                    ; preds = %._crit_edge, %19
  call void @glDisableClientState(i32 noundef 32886)
  call void @glDisableClientState(i32 noundef 32888)
  call void @glDisableClientState(i32 noundef 32884)
  %31 = load i32, ptr %2, align 4, !tbaa !16
  call void @glBindTexture(i32 noundef 3553, i32 noundef %31)
  call void @glMatrixMode(i32 noundef 5888)
  call void @glPopMatrix()
  call void @glMatrixMode(i32 noundef 5889)
  call void @glPopMatrix()
  call void @glPopAttrib()
  %32 = load i32, ptr %3, align 4, !tbaa !16
  call void @glPolygonMode(i32 noundef 1028, i32 noundef %32)
  %33 = getelementptr inbounds i8, ptr %3, i64 4
  %34 = load i32, ptr %33, align 4, !tbaa !16
  call void @glPolygonMode(i32 noundef 1029, i32 noundef %34)
  %35 = load i32, ptr %4, align 16, !tbaa !16
  %36 = getelementptr inbounds i8, ptr %4, i64 4
  %37 = load i32, ptr %36, align 4, !tbaa !16
  %38 = getelementptr inbounds i8, ptr %4, i64 8
  %39 = load i32, ptr %38, align 8, !tbaa !16
  %40 = getelementptr inbounds i8, ptr %4, i64 12
  %41 = load i32, ptr %40, align 4, !tbaa !16
  call void @glViewport(i32 noundef %35, i32 noundef %37, i32 noundef %39, i32 noundef %41)
  %42 = load i32, ptr %5, align 16, !tbaa !16
  %43 = getelementptr inbounds i8, ptr %5, i64 4
  %44 = load i32, ptr %43, align 4, !tbaa !16
  %45 = getelementptr inbounds i8, ptr %5, i64 8
  %46 = load i32, ptr %45, align 8, !tbaa !16
  %47 = getelementptr inbounds i8, ptr %5, i64 12
  %48 = load i32, ptr %47, align 4, !tbaa !16
  call void @glScissor(i32 noundef %42, i32 noundef %44, i32 noundef %46, i32 noundef %48)
  %49 = load i32, ptr %6, align 4, !tbaa !16
  call void @glShadeModel(i32 noundef %49)
  %50 = load i32, ptr %7, align 4, !tbaa !16
  call void @glTexEnvi(i32 noundef 8960, i32 noundef 8704, i32 noundef %50)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  br label %114

51:                                               ; preds = %.lr.ph62, %._crit_edge
  %.05160 = phi i32 [ 0, %.lr.ph62 ], [ %62, %._crit_edge ]
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP10ImDrawListEixEi(ptr noundef nonnull align 8 dereferenceable(16) %27, i32 noundef %.05160)
  %53 = load ptr, ptr %52, align 8, !tbaa !17
  %54 = getelementptr inbounds i8, ptr %53, i64 40
  %55 = load ptr, ptr %54, align 8, !tbaa !18
  %56 = getelementptr inbounds i8, ptr %53, i64 24
  %57 = load ptr, ptr %56, align 8, !tbaa !30
  call void @glVertexPointer(i32 noundef 2, i32 noundef 5126, i32 noundef 20, ptr noundef %55)
  %58 = getelementptr inbounds i8, ptr %55, i64 8
  call void @glTexCoordPointer(i32 noundef 2, i32 noundef 5126, i32 noundef 20, ptr noundef nonnull %58)
  %59 = getelementptr inbounds i8, ptr %55, i64 16
  call void @glColorPointer(i32 noundef 4, i32 noundef 5121, i32 noundef 20, ptr noundef nonnull %59)
  %60 = load i32, ptr %53, align 8, !tbaa !31
  %61 = icmp sgt i32 %60, 0
  br i1 %61, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %110, %51
  %62 = add nuw nsw i32 %.05160, 1
  %63 = load i32, ptr %24, align 4, !tbaa !9
  %64 = icmp slt i32 %62, %63
  br i1 %64, label %51, label %._crit_edge63, !llvm.loop !32

.lr.ph:                                           ; preds = %51, %110
  %.05059 = phi i32 [ %111, %110 ], [ 0, %51 ]
  %65 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK8ImVectorI9ImDrawCmdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %53, i32 noundef %.05059)
  %66 = getelementptr inbounds i8, ptr %65, i64 40
  %67 = load ptr, ptr %66, align 8, !tbaa !34
  %magicptr = ptrtoint ptr %67 to i64
  switch i64 %magicptr, label %69 [
    i64 0, label %70
    i64 -8, label %68
  ]

68:                                               ; preds = %.lr.ph
  call void @_ZL34ImGui_ImplOpenGL2_SetupRenderStateP10ImDrawDataii(ptr noundef %0, i32 noundef %21, i32 noundef %22)
  br label %110

69:                                               ; preds = %.lr.ph
  call void %67(ptr noundef nonnull %53, ptr noundef nonnull %65)
  br label %110

70:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %71 = load float, ptr %65, align 8, !tbaa !36
  %72 = fsub float %71, %.sroa.028.0.copyload
  %73 = fmul float %.sroa.0.0.copyload, %72
  %74 = getelementptr inbounds i8, ptr %65, i64 4
  %75 = load float, ptr %74, align 4, !tbaa !37
  %76 = fsub float %75, %.sroa.530.0.copyload
  %77 = fmul float %.sroa.5.0.copyload, %76
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %8, float noundef %73, float noundef %77)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %78 = getelementptr inbounds i8, ptr %65, i64 8
  %79 = load float, ptr %78, align 8, !tbaa !38
  %80 = fsub float %79, %.sroa.028.0.copyload
  %81 = fmul float %.sroa.0.0.copyload, %80
  %82 = getelementptr inbounds i8, ptr %65, i64 12
  %83 = load float, ptr %82, align 4, !tbaa !39
  %84 = fsub float %83, %.sroa.530.0.copyload
  %85 = fmul float %.sroa.5.0.copyload, %84
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %9, float noundef %81, float noundef %85)
  %86 = load float, ptr %9, align 4, !tbaa !40
  %87 = load float, ptr %8, align 4, !tbaa !40
  %88 = fcmp ugt float %86, %87
  br i1 %88, label %89, label %109

89:                                               ; preds = %70
  %90 = load float, ptr %28, align 4, !tbaa !41
  %91 = load float, ptr %29, align 4, !tbaa !41
  %92 = fcmp ugt float %90, %91
  br i1 %92, label %.critedge, label %109

.critedge:                                        ; preds = %89
  %93 = fptosi float %87 to i32
  %94 = fsub float %30, %90
  %95 = fptosi float %94 to i32
  %96 = fsub float %86, %87
  %97 = fptosi float %96 to i32
  %98 = fsub float %90, %91
  %99 = fptosi float %98 to i32
  call void @glScissor(i32 noundef %93, i32 noundef %95, i32 noundef %97, i32 noundef %99)
  %100 = call noundef ptr @_ZNK9ImDrawCmd8GetTexIDEv(ptr noundef nonnull align 8 dereferenceable(56) %65)
  %101 = ptrtoint ptr %100 to i64
  %102 = trunc i64 %101 to i32
  call void @glBindTexture(i32 noundef 3553, i32 noundef %102)
  %103 = getelementptr inbounds i8, ptr %65, i64 32
  %104 = load i32, ptr %103, align 8, !tbaa !42
  %105 = getelementptr inbounds i8, ptr %65, i64 28
  %106 = load i32, ptr %105, align 4, !tbaa !43
  %107 = zext i32 %106 to i64
  %108 = getelementptr inbounds i16, ptr %57, i64 %107
  call void @glDrawElements(i32 noundef 4, i32 noundef %104, i32 noundef 5123, ptr noundef %108)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br label %110

109:                                              ; preds = %70, %89
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br label %110

110:                                              ; preds = %69, %68, %.critedge, %109
  %111 = add nuw nsw i32 %.05059, 1
  %112 = load i32, ptr %53, align 8, !tbaa !31
  %113 = icmp slt i32 %111, %112
  br i1 %113, label %.lr.ph, label %._crit_edge, !llvm.loop !44

114:                                              ; preds = %1, %._crit_edge63
  ret void
}

declare void @glGetIntegerv(i32 noundef, ptr noundef) local_unnamed_addr #2

declare void @glGetTexEnviv(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

declare void @glPushAttrib(i32 noundef) local_unnamed_addr #2

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

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

declare void @glVertexPointer(i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

declare void @glTexCoordPointer(i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

declare void @glColorPointer(i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #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) local_unnamed_addr #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

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

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

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

declare void @glDrawElements(i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

declare void @glDisableClientState(i32 noundef) local_unnamed_addr #2

declare void @glMatrixMode(i32 noundef) local_unnamed_addr #2

declare void @glPopMatrix() local_unnamed_addr #2

declare void @glPopAttrib() local_unnamed_addr #2

declare void @glPolygonMode(i32 noundef, i32 noundef) local_unnamed_addr #2

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

declare void @glShadeModel(i32 noundef) local_unnamed_addr #2

declare void @glTexEnvi(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #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 = { "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 = { 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 4}
!10 = !{!"_ZTS10ImDrawData", !11, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !13, i64 16, !15, i64 32, !15, i64 40, !15, i64 48, !14, i64 56}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTS8ImVectorIP10ImDrawListE", !12, i64 0, !12, i64 4, !14, i64 8}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!"_ZTS6ImVec2", !6, i64 0, !6, i64 4}
!16 = !{!12, !12, i64 0}
!17 = !{!14, !14, i64 0}
!18 = !{!19, !14, i64 40}
!19 = !{!"_ZTS10ImDrawList", !20, i64 0, !21, i64 16, !22, i64 32, !12, i64 48, !12, i64 52, !14, i64 56, !14, i64 64, !14, i64 72, !14, i64 80, !23, i64 88, !24, i64 104, !25, i64 120, !26, i64 136, !28, i64 168, !6, i64 192}
!20 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !12, i64 0, !12, i64 4, !14, i64 8}
!21 = !{!"_ZTS8ImVectorItE", !12, i64 0, !12, i64 4, !14, i64 8}
!22 = !{!"_ZTS8ImVectorI10ImDrawVertE", !12, i64 0, !12, i64 4, !14, i64 8}
!23 = !{!"_ZTS8ImVectorI6ImVec4E", !12, i64 0, !12, i64 4, !14, i64 8}
!24 = !{!"_ZTS8ImVectorIPvE", !12, i64 0, !12, i64 4, !14, i64 8}
!25 = !{!"_ZTS8ImVectorI6ImVec2E", !12, i64 0, !12, i64 4, !14, i64 8}
!26 = !{!"_ZTS15ImDrawCmdHeader", !27, i64 0, !14, i64 16, !12, i64 24}
!27 = !{!"_ZTS6ImVec4", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!28 = !{!"_ZTS18ImDrawListSplitter", !12, i64 0, !12, i64 4, !29, i64 8}
!29 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !12, i64 0, !12, i64 4, !14, i64 8}
!30 = !{!19, !14, i64 24}
!31 = !{!19, !12, i64 0}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!35, !14, i64 40}
!35 = !{!"_ZTS9ImDrawCmd", !27, i64 0, !14, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !14, i64 40, !14, i64 48}
!36 = !{!35, !6, i64 0}
!37 = !{!35, !6, i64 4}
!38 = !{!35, !6, i64 8}
!39 = !{!35, !6, i64 12}
!40 = !{!15, !6, i64 0}
!41 = !{!15, !6, i64 4}
!42 = !{!35, !12, i64 32}
!43 = !{!35, !12, i64 28}
!44 = distinct !{!44, !33}


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