; LLVM IR from Eukky/TRender :: RenderCore/Gui/Imgui (ImguiOpenGLRender)

; 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.ImVec4 = type { float, float, float, float }
%struct.ImDrawData = type <{ i8, [7 x i8], ptr, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, [4 x i8] }>
%struct.ImGuiIO = type { i32, i32, %struct.ImVec2, float, float, ptr, ptr, float, float, float, [21 x i32], float, float, ptr, ptr, float, i8, ptr, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, %struct.ImVec2, [5 x i8], float, float, i8, i8, i8, i8, i8, [512 x i8], [17 x i16], [21 x float], i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, [5 x %struct.ImVec2], [5 x float], [5 x i8], [5 x i8], [5 x i8], [5 x i8], [5 x float], [5 x float], [5 x %struct.ImVec2], [5 x float], [512 x float], [512 x float], [21 x float], [21 x float] }
%struct.ImDrawVert = type { %struct.ImVec2, %struct.ImVec2, i32 }
%struct.ImDrawList = type { %class.ImVector, %class.ImVector.0, %class.ImVector.1, i32, ptr, ptr, i32, ptr, ptr, %class.ImVector.2, %class.ImVector.3, %class.ImVector.4, i32, i32, %class.ImVector.5 }
%class.ImVector = type { i32, i32, ptr }
%class.ImVector.0 = type { i32, i32, ptr }
%class.ImVector.1 = type { i32, i32, ptr }
%class.ImVector.2 = type { i32, i32, ptr }
%class.ImVector.3 = type { i32, i32, ptr }
%class.ImVector.4 = type { i32, i32, ptr }
%class.ImVector.5 = type { i32, i32, ptr }
%struct.ImDrawCmd = type { i32, %struct.ImVec4, ptr, ptr, ptr }

@__glewActiveTexture = external global ptr, align 8
@__glewBlendEquation = external global ptr, align 8
@__glewUseProgram = external global ptr, align 8
@_ZL14g_ShaderHandle = external hidden global i32, align 4
@__glewUniform1i = external global ptr, align 8
@_ZL19g_AttribLocationTex = external hidden global i32, align 4
@__glewUniformMatrix4fv = external global ptr, align 8
@_ZL23g_AttribLocationProjMtx = external hidden global i32, align 4
@__glewBindSampler = external global ptr, align 8
@__glewGenVertexArrays = external global ptr, align 8
@__glewBindVertexArray = external global ptr, align 8
@__glewBindBuffer = external global ptr, align 8
@_ZL11g_VboHandle = external hidden global i32, align 4
@__glewEnableVertexAttribArray = external global ptr, align 8
@_ZL24g_AttribLocationPosition = external hidden global i32, align 4
@_ZL18g_AttribLocationUV = external hidden global i32, align 4
@_ZL21g_AttribLocationColor = external hidden global i32, align 4
@__glewVertexAttribPointer = external global ptr, align 8
@__glewBufferData = external global ptr, align 8
@_ZL16g_ElementsHandle = external hidden global i32, align 4
@__glewDeleteVertexArrays = external global ptr, align 8
@__glewBlendEquationSeparate = external global ptr, align 8
@__glewBlendFuncSeparate = external global ptr, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_Z32ImGui_ImplOpenGL3_RenderDrawDataP10ImDrawData(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %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 float, align 4
  %27 = alloca float, align 4
  %28 = alloca float, align 4
  %29 = alloca float, align 4
  %30 = alloca [4 x [4 x float]], align 16
  %31 = alloca i32, align 4
  %32 = alloca %struct.ImVec2, align 4
  %33 = alloca i32, align 4
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca i32, align 4
  %37 = alloca ptr, align 8
  %38 = alloca %struct.ImVec4, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %39 = call noundef nonnull align 8 dereferenceable(5400) ptr @_ZN5ImGui5GetIOEv()
  store ptr %39, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %40 = load ptr, ptr %2, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.ImDrawData, ptr %40, i32 0, i32 7
  %42 = getelementptr inbounds %struct.ImVec2, ptr %41, i32 0, i32 0
  %43 = load float, ptr %42, align 4, !tbaa !9
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.ImGuiIO, ptr %44, i32 0, i32 18
  %46 = getelementptr inbounds %struct.ImVec2, ptr %45, i32 0, i32 0
  %47 = load float, ptr %46, align 8, !tbaa !15
  %48 = fmul float %43, %47
  %49 = fptosi float %48 to i32
  store i32 %49, ptr %4, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  %50 = load ptr, ptr %2, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.ImDrawData, ptr %50, i32 0, i32 7
  %52 = getelementptr inbounds %struct.ImVec2, ptr %51, i32 0, i32 1
  %53 = load float, ptr %52, align 4, !tbaa !18
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.ImGuiIO, ptr %54, i32 0, i32 18
  %56 = getelementptr inbounds %struct.ImVec2, ptr %55, i32 0, i32 1
  %57 = load float, ptr %56, align 4, !tbaa !19
  %58 = fmul float %53, %57
  %59 = fptosi float %58 to i32
  store i32 %59, ptr %5, align 4, !tbaa !17
  %60 = load i32, ptr %4, align 4, !tbaa !17
  %61 = icmp sle i32 %60, 0
  br i1 %61, label %65, label %62

62:                                               ; preds = %1
  %63 = load i32, ptr %5, align 4, !tbaa !17
  %64 = icmp sle i32 %63, 0
  br i1 %64, label %65, label %66

65:                                               ; preds = %62, %1
  store i32 1, ptr %6, align 4
  br label %397

66:                                               ; preds = %62
  %67 = load ptr, ptr %2, align 8, !tbaa !5
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.ImGuiIO, ptr %68, i32 0, i32 18
  call void @_ZN10ImDrawData14ScaleClipRectsERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(44) %67, ptr noundef nonnull align 4 dereferenceable(8) %69)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @glGetIntegerv(i32 noundef 34016, ptr noundef %7)
  %70 = load ptr, ptr @__glewActiveTexture, align 8, !tbaa !5
  call void %70(i32 noundef 33984)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @glGetIntegerv(i32 noundef 35725, ptr noundef %8)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @glGetIntegerv(i32 noundef 32873, ptr noundef %9)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  call void @glGetIntegerv(i32 noundef 35097, ptr noundef %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @glGetIntegerv(i32 noundef 34964, ptr noundef %11)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  call void @glGetIntegerv(i32 noundef 34229, ptr noundef %12)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %71 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
  call void @glGetIntegerv(i32 noundef 2880, ptr noundef %71)
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #6
  %72 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 0
  call void @glGetIntegerv(i32 noundef 2978, ptr noundef %72)
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  %73 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 0
  call void @glGetIntegerv(i32 noundef 3088, ptr noundef %73)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  call void @glGetIntegerv(i32 noundef 32969, ptr noundef %16)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  call void @glGetIntegerv(i32 noundef 32968, ptr noundef %17)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  call void @glGetIntegerv(i32 noundef 32971, ptr noundef %18)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  call void @glGetIntegerv(i32 noundef 32970, ptr noundef %19)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  call void @glGetIntegerv(i32 noundef 32777, ptr noundef %20)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  call void @glGetIntegerv(i32 noundef 34877, ptr noundef %21)
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #6
  %74 = call zeroext i8 @glIsEnabled(i32 noundef 3042)
  store i8 %74, ptr %22, align 1, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #6
  %75 = call zeroext i8 @glIsEnabled(i32 noundef 2884)
  store i8 %75, ptr %23, align 1, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #6
  %76 = call zeroext i8 @glIsEnabled(i32 noundef 2929)
  store i8 %76, ptr %24, align 1, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #6
  %77 = call zeroext i8 @glIsEnabled(i32 noundef 3089)
  store i8 %77, ptr %25, align 1, !tbaa !20
  call void @glEnable(i32 noundef 3042)
  %78 = load ptr, ptr @__glewBlendEquation, align 8, !tbaa !5
  call void %78(i32 noundef 32774)
  call void @glBlendFunc(i32 noundef 770, i32 noundef 771)
  call void @glDisable(i32 noundef 2884)
  call void @glDisable(i32 noundef 2929)
  call void @glEnable(i32 noundef 3089)
  call void @glPolygonMode(i32 noundef 1032, i32 noundef 6914)
  %79 = load i32, ptr %4, align 4, !tbaa !17
  %80 = load i32, ptr %5, align 4, !tbaa !17
  call void @glViewport(i32 noundef 0, i32 noundef 0, i32 noundef %79, i32 noundef %80)
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %81 = load ptr, ptr %2, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.ImDrawData, ptr %81, i32 0, i32 6
  %83 = getelementptr inbounds %struct.ImVec2, ptr %82, i32 0, i32 0
  %84 = load float, ptr %83, align 4, !tbaa !21
  store float %84, ptr %26, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %85 = load ptr, ptr %2, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.ImDrawData, ptr %85, i32 0, i32 6
  %87 = getelementptr inbounds %struct.ImVec2, ptr %86, i32 0, i32 0
  %88 = load float, ptr %87, align 4, !tbaa !21
  %89 = load ptr, ptr %2, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.ImDrawData, ptr %89, i32 0, i32 7
  %91 = getelementptr inbounds %struct.ImVec2, ptr %90, i32 0, i32 0
  %92 = load float, ptr %91, align 4, !tbaa !9
  %93 = fadd float %88, %92
  store float %93, ptr %27, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %94 = load ptr, ptr %2, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.ImDrawData, ptr %94, i32 0, i32 6
  %96 = getelementptr inbounds %struct.ImVec2, ptr %95, i32 0, i32 1
  %97 = load float, ptr %96, align 4, !tbaa !23
  store float %97, ptr %28, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %98 = load ptr, ptr %2, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.ImDrawData, ptr %98, i32 0, i32 6
  %100 = getelementptr inbounds %struct.ImVec2, ptr %99, i32 0, i32 1
  %101 = load float, ptr %100, align 4, !tbaa !23
  %102 = load ptr, ptr %2, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.ImDrawData, ptr %102, i32 0, i32 7
  %104 = getelementptr inbounds %struct.ImVec2, ptr %103, i32 0, i32 1
  %105 = load float, ptr %104, align 4, !tbaa !18
  %106 = fadd float %101, %105
  store float %106, ptr %29, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 64, ptr %30) #6
  %107 = load float, ptr %27, align 4, !tbaa !22
  %108 = load float, ptr %26, align 4, !tbaa !22
  %109 = fsub float %107, %108
  %110 = fdiv float 2.000000e+00, %109
  store float %110, ptr %30, align 4, !tbaa !22
  %111 = getelementptr inbounds float, ptr %30, i64 1
  store float 0.000000e+00, ptr %111, align 4, !tbaa !22
  %112 = getelementptr inbounds float, ptr %30, i64 2
  store float 0.000000e+00, ptr %112, align 4, !tbaa !22
  %113 = getelementptr inbounds float, ptr %30, i64 3
  store float 0.000000e+00, ptr %113, align 4, !tbaa !22
  %114 = getelementptr inbounds [4 x float], ptr %30, i64 1
  store float 0.000000e+00, ptr %114, align 4, !tbaa !22
  %115 = getelementptr inbounds float, ptr %114, i64 1
  %116 = load float, ptr %28, align 4, !tbaa !22
  %117 = load float, ptr %29, align 4, !tbaa !22
  %118 = fsub float %116, %117
  %119 = fdiv float 2.000000e+00, %118
  store float %119, ptr %115, align 4, !tbaa !22
  %120 = getelementptr inbounds float, ptr %114, i64 2
  store float 0.000000e+00, ptr %120, align 4, !tbaa !22
  %121 = getelementptr inbounds float, ptr %114, i64 3
  store float 0.000000e+00, ptr %121, align 4, !tbaa !22
  %122 = getelementptr inbounds [4 x float], ptr %30, i64 2
  store float 0.000000e+00, ptr %122, align 4, !tbaa !22
  %123 = getelementptr inbounds float, ptr %122, i64 1
  store float 0.000000e+00, ptr %123, align 4, !tbaa !22
  %124 = getelementptr inbounds float, ptr %122, i64 2
  store float -1.000000e+00, ptr %124, align 4, !tbaa !22
  %125 = getelementptr inbounds float, ptr %122, i64 3
  store float 0.000000e+00, ptr %125, align 4, !tbaa !22
  %126 = getelementptr inbounds [4 x float], ptr %30, i64 3
  %127 = load float, ptr %27, align 4, !tbaa !22
  %128 = load float, ptr %26, align 4, !tbaa !22
  %129 = fadd float %127, %128
  %130 = load float, ptr %26, align 4, !tbaa !22
  %131 = load float, ptr %27, align 4, !tbaa !22
  %132 = fsub float %130, %131
  %133 = fdiv float %129, %132
  store float %133, ptr %126, align 4, !tbaa !22
  %134 = getelementptr inbounds float, ptr %126, i64 1
  %135 = load float, ptr %28, align 4, !tbaa !22
  %136 = load float, ptr %29, align 4, !tbaa !22
  %137 = fadd float %135, %136
  %138 = load float, ptr %29, align 4, !tbaa !22
  %139 = load float, ptr %28, align 4, !tbaa !22
  %140 = fsub float %138, %139
  %141 = fdiv float %137, %140
  store float %141, ptr %134, align 4, !tbaa !22
  %142 = getelementptr inbounds float, ptr %126, i64 2
  store float 0.000000e+00, ptr %142, align 4, !tbaa !22
  %143 = getelementptr inbounds float, ptr %126, i64 3
  store float 1.000000e+00, ptr %143, align 4, !tbaa !22
  %144 = load ptr, ptr @__glewUseProgram, align 8, !tbaa !5
  %145 = load i32, ptr @_ZL14g_ShaderHandle, align 4, !tbaa !17
  call void %144(i32 noundef %145)
  %146 = load ptr, ptr @__glewUniform1i, align 8, !tbaa !5
  %147 = load i32, ptr @_ZL19g_AttribLocationTex, align 4, !tbaa !17
  call void %146(i32 noundef %147, i32 noundef 0)
  %148 = load ptr, ptr @__glewUniformMatrix4fv, align 8, !tbaa !5
  %149 = load i32, ptr @_ZL23g_AttribLocationProjMtx, align 4, !tbaa !17
  %150 = getelementptr inbounds [4 x [4 x float]], ptr %30, i64 0, i64 0
  %151 = getelementptr inbounds [4 x float], ptr %150, i64 0, i64 0
  call void %148(i32 noundef %149, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %151)
  %152 = load ptr, ptr @__glewBindSampler, align 8, !tbaa !5
  %153 = icmp ne ptr %152, null
  br i1 %153, label %154, label %156

154:                                              ; preds = %66
  %155 = load ptr, ptr @__glewBindSampler, align 8, !tbaa !5
  call void %155(i32 noundef 0, i32 noundef 0)
  br label %156

156:                                              ; preds = %154, %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  store i32 0, ptr %31, align 4, !tbaa !17
  %157 = load ptr, ptr @__glewGenVertexArrays, align 8, !tbaa !5
  call void %157(i32 noundef 1, ptr noundef %31)
  %158 = load ptr, ptr @__glewBindVertexArray, align 8, !tbaa !5
  %159 = load i32, ptr %31, align 4, !tbaa !17
  call void %158(i32 noundef %159)
  %160 = load ptr, ptr @__glewBindBuffer, align 8, !tbaa !5
  %161 = load i32, ptr @_ZL11g_VboHandle, align 4, !tbaa !17
  call void %160(i32 noundef 34962, i32 noundef %161)
  %162 = load ptr, ptr @__glewEnableVertexAttribArray, align 8, !tbaa !5
  %163 = load i32, ptr @_ZL24g_AttribLocationPosition, align 4, !tbaa !17
  call void %162(i32 noundef %163)
  %164 = load ptr, ptr @__glewEnableVertexAttribArray, align 8, !tbaa !5
  %165 = load i32, ptr @_ZL18g_AttribLocationUV, align 4, !tbaa !17
  call void %164(i32 noundef %165)
  %166 = load ptr, ptr @__glewEnableVertexAttribArray, align 8, !tbaa !5
  %167 = load i32, ptr @_ZL21g_AttribLocationColor, align 4, !tbaa !17
  call void %166(i32 noundef %167)
  %168 = load ptr, ptr @__glewVertexAttribPointer, align 8, !tbaa !5
  %169 = load i32, ptr @_ZL24g_AttribLocationPosition, align 4, !tbaa !17
  call void %168(i32 noundef %169, i32 noundef 2, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 20, ptr noundef null)
  %170 = load ptr, ptr @__glewVertexAttribPointer, align 8, !tbaa !5
  %171 = load i32, ptr @_ZL18g_AttribLocationUV, align 4, !tbaa !17
  call void %170(i32 noundef %171, i32 noundef 2, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 20, ptr noundef getelementptr inbounds (%struct.ImDrawVert, ptr null, i32 0, i32 1))
  %172 = load ptr, ptr @__glewVertexAttribPointer, align 8, !tbaa !5
  %173 = load i32, ptr @_ZL21g_AttribLocationColor, align 4, !tbaa !17
  call void %172(i32 noundef %173, i32 noundef 4, i32 noundef 5121, i8 noundef zeroext 1, i32 noundef 20, ptr noundef getelementptr inbounds (%struct.ImDrawVert, ptr null, i32 0, i32 2))
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  %174 = load ptr, ptr %2, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.ImDrawData, ptr %174, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %175, i64 8, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  store i32 0, ptr %33, align 4, !tbaa !17
  br label %176

176:                                              ; preds = %331, %156
  %177 = load i32, ptr %33, align 4, !tbaa !17
  %178 = load ptr, ptr %2, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.ImDrawData, ptr %178, i32 0, i32 3
  %180 = load i32, ptr %179, align 8, !tbaa !25
  %181 = icmp slt i32 %177, %180
  br i1 %181, label %183, label %182

182:                                              ; preds = %176
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  br label %334

183:                                              ; preds = %176
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  %184 = load ptr, ptr %2, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.ImDrawData, ptr %184, i32 0, i32 2
  %186 = load ptr, ptr %185, align 8, !tbaa !26
  %187 = load i32, ptr %33, align 4, !tbaa !17
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds ptr, ptr %186, i64 %188
  %190 = load ptr, ptr %189, align 8, !tbaa !5
  store ptr %190, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  store ptr null, ptr %35, align 8, !tbaa !5
  %191 = load ptr, ptr @__glewBindBuffer, align 8, !tbaa !5
  %192 = load i32, ptr @_ZL11g_VboHandle, align 4, !tbaa !17
  call void %191(i32 noundef 34962, i32 noundef %192)
  %193 = load ptr, ptr @__glewBufferData, align 8, !tbaa !5
  %194 = load ptr, ptr %34, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.ImDrawList, ptr %194, i32 0, i32 2
  %196 = getelementptr inbounds %class.ImVector.1, ptr %195, i32 0, i32 0
  %197 = load i32, ptr %196, align 8, !tbaa !27
  %198 = sext i32 %197 to i64
  %199 = mul i64 %198, 20
  %200 = load ptr, ptr %34, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.ImDrawList, ptr %200, i32 0, i32 2
  %202 = getelementptr inbounds %class.ImVector.1, ptr %201, i32 0, i32 2
  %203 = load ptr, ptr %202, align 8, !tbaa !36
  call void %193(i32 noundef 34962, i64 noundef %199, ptr noundef %203, i32 noundef 35040)
  %204 = load ptr, ptr @__glewBindBuffer, align 8, !tbaa !5
  %205 = load i32, ptr @_ZL16g_ElementsHandle, align 4, !tbaa !17
  call void %204(i32 noundef 34963, i32 noundef %205)
  %206 = load ptr, ptr @__glewBufferData, align 8, !tbaa !5
  %207 = load ptr, ptr %34, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.ImDrawList, ptr %207, i32 0, i32 1
  %209 = getelementptr inbounds %class.ImVector.0, ptr %208, i32 0, i32 0
  %210 = load i32, ptr %209, align 8, !tbaa !37
  %211 = sext i32 %210 to i64
  %212 = mul i64 %211, 2
  %213 = load ptr, ptr %34, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.ImDrawList, ptr %213, i32 0, i32 1
  %215 = getelementptr inbounds %class.ImVector.0, ptr %214, i32 0, i32 2
  %216 = load ptr, ptr %215, align 8, !tbaa !38
  call void %206(i32 noundef 34963, i64 noundef %212, ptr noundef %216, i32 noundef 35040)
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #6
  store i32 0, ptr %36, align 4, !tbaa !17
  br label %217

217:                                              ; preds = %327, %183
  %218 = load i32, ptr %36, align 4, !tbaa !17
  %219 = load ptr, ptr %34, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.ImDrawList, ptr %219, i32 0, i32 0
  %221 = getelementptr inbounds %class.ImVector, ptr %220, i32 0, i32 0
  %222 = load i32, ptr %221, align 8, !tbaa !39
  %223 = icmp slt i32 %218, %222
  br i1 %223, label %225, label %224

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

225:                                              ; preds = %217
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #6
  %226 = load ptr, ptr %34, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.ImDrawList, ptr %226, i32 0, i32 0
  %228 = load i32, ptr %36, align 4, !tbaa !17
  %229 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK8ImVectorI9ImDrawCmdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %227, i32 noundef %228)
  store ptr %229, ptr %37, align 8, !tbaa !5
  %230 = load ptr, ptr %37, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.ImDrawCmd, ptr %230, i32 0, i32 3
  %232 = load ptr, ptr %231, align 8, !tbaa !40
  %233 = icmp ne ptr %232, null
  br i1 %233, label %234, label %240

234:                                              ; preds = %225
  %235 = load ptr, ptr %37, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.ImDrawCmd, ptr %235, i32 0, i32 3
  %237 = load ptr, ptr %236, align 8, !tbaa !40
  %238 = load ptr, ptr %34, align 8, !tbaa !5
  %239 = load ptr, ptr %37, align 8, !tbaa !5
  call void %237(ptr noundef %238, ptr noundef %239)
  br label %320

240:                                              ; preds = %225
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #6
  %241 = load ptr, ptr %37, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.ImDrawCmd, ptr %241, i32 0, i32 1
  %243 = getelementptr inbounds %struct.ImVec4, ptr %242, i32 0, i32 0
  %244 = load float, ptr %243, align 4, !tbaa !43
  %245 = getelementptr inbounds %struct.ImVec2, ptr %32, i32 0, i32 0
  %246 = load float, ptr %245, align 4, !tbaa !44
  %247 = fsub float %244, %246
  %248 = load ptr, ptr %37, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.ImDrawCmd, ptr %248, i32 0, i32 1
  %250 = getelementptr inbounds %struct.ImVec4, ptr %249, i32 0, i32 1
  %251 = load float, ptr %250, align 4, !tbaa !45
  %252 = getelementptr inbounds %struct.ImVec2, ptr %32, i32 0, i32 1
  %253 = load float, ptr %252, align 4, !tbaa !46
  %254 = fsub float %251, %253
  %255 = load ptr, ptr %37, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.ImDrawCmd, ptr %255, i32 0, i32 1
  %257 = getelementptr inbounds %struct.ImVec4, ptr %256, i32 0, i32 2
  %258 = load float, ptr %257, align 4, !tbaa !47
  %259 = getelementptr inbounds %struct.ImVec2, ptr %32, i32 0, i32 0
  %260 = load float, ptr %259, align 4, !tbaa !44
  %261 = fsub float %258, %260
  %262 = load ptr, ptr %37, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.ImDrawCmd, ptr %262, i32 0, i32 1
  %264 = getelementptr inbounds %struct.ImVec4, ptr %263, i32 0, i32 3
  %265 = load float, ptr %264, align 4, !tbaa !48
  %266 = getelementptr inbounds %struct.ImVec2, ptr %32, i32 0, i32 1
  %267 = load float, ptr %266, align 4, !tbaa !46
  %268 = fsub float %265, %267
  call void @_ZN6ImVec4C2Effff(ptr noundef nonnull align 4 dereferenceable(16) %38, float noundef %247, float noundef %254, float noundef %261, float noundef %268)
  %269 = getelementptr inbounds %struct.ImVec4, ptr %38, i32 0, i32 0
  %270 = load float, ptr %269, align 4, !tbaa !49
  %271 = load i32, ptr %4, align 4, !tbaa !17
  %272 = sitofp i32 %271 to float
  %273 = fcmp olt float %270, %272
  br i1 %273, label %274, label %319

274:                                              ; preds = %240
  %275 = getelementptr inbounds %struct.ImVec4, ptr %38, i32 0, i32 1
  %276 = load float, ptr %275, align 4, !tbaa !50
  %277 = load i32, ptr %5, align 4, !tbaa !17
  %278 = sitofp i32 %277 to float
  %279 = fcmp olt float %276, %278
  br i1 %279, label %280, label %319

280:                                              ; preds = %274
  %281 = getelementptr inbounds %struct.ImVec4, ptr %38, i32 0, i32 2
  %282 = load float, ptr %281, align 4, !tbaa !51
  %283 = fcmp oge float %282, 0.000000e+00
  br i1 %283, label %284, label %319

284:                                              ; preds = %280
  %285 = getelementptr inbounds %struct.ImVec4, ptr %38, i32 0, i32 3
  %286 = load float, ptr %285, align 4, !tbaa !52
  %287 = fcmp oge float %286, 0.000000e+00
  br i1 %287, label %288, label %319

288:                                              ; preds = %284
  %289 = getelementptr inbounds %struct.ImVec4, ptr %38, i32 0, i32 0
  %290 = load float, ptr %289, align 4, !tbaa !49
  %291 = fptosi float %290 to i32
  %292 = load i32, ptr %5, align 4, !tbaa !17
  %293 = sitofp i32 %292 to float
  %294 = getelementptr inbounds %struct.ImVec4, ptr %38, i32 0, i32 3
  %295 = load float, ptr %294, align 4, !tbaa !52
  %296 = fsub float %293, %295
  %297 = fptosi float %296 to i32
  %298 = getelementptr inbounds %struct.ImVec4, ptr %38, i32 0, i32 2
  %299 = load float, ptr %298, align 4, !tbaa !51
  %300 = getelementptr inbounds %struct.ImVec4, ptr %38, i32 0, i32 0
  %301 = load float, ptr %300, align 4, !tbaa !49
  %302 = fsub float %299, %301
  %303 = fptosi float %302 to i32
  %304 = getelementptr inbounds %struct.ImVec4, ptr %38, i32 0, i32 3
  %305 = load float, ptr %304, align 4, !tbaa !52
  %306 = getelementptr inbounds %struct.ImVec4, ptr %38, i32 0, i32 1
  %307 = load float, ptr %306, align 4, !tbaa !50
  %308 = fsub float %305, %307
  %309 = fptosi float %308 to i32
  call void @glScissor(i32 noundef %291, i32 noundef %297, i32 noundef %303, i32 noundef %309)
  %310 = load ptr, ptr %37, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.ImDrawCmd, ptr %310, i32 0, i32 2
  %312 = load ptr, ptr %311, align 8, !tbaa !53
  %313 = ptrtoint ptr %312 to i64
  %314 = trunc i64 %313 to i32
  call void @glBindTexture(i32 noundef 3553, i32 noundef %314)
  %315 = load ptr, ptr %37, align 8, !tbaa !5
  %316 = getelementptr inbounds %struct.ImDrawCmd, ptr %315, i32 0, i32 0
  %317 = load i32, ptr %316, align 8, !tbaa !54
  %318 = load ptr, ptr %35, align 8, !tbaa !5
  call void @glDrawElements(i32 noundef 4, i32 noundef %317, i32 noundef 5123, ptr noundef %318)
  br label %319

319:                                              ; preds = %288, %284, %280, %274, %240
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #6
  br label %320

320:                                              ; preds = %319, %234
  %321 = load ptr, ptr %37, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.ImDrawCmd, ptr %321, i32 0, i32 0
  %323 = load i32, ptr %322, align 8, !tbaa !54
  %324 = load ptr, ptr %35, align 8, !tbaa !5
  %325 = zext i32 %323 to i64
  %326 = getelementptr inbounds i16, ptr %324, i64 %325
  store ptr %326, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  br label %327

327:                                              ; preds = %320
  %328 = load i32, ptr %36, align 4, !tbaa !17
  %329 = add nsw i32 %328, 1
  store i32 %329, ptr %36, align 4, !tbaa !17
  br label %217, !llvm.loop !55

330:                                              ; preds = %224
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  br label %331

331:                                              ; preds = %330
  %332 = load i32, ptr %33, align 4, !tbaa !17
  %333 = add nsw i32 %332, 1
  store i32 %333, ptr %33, align 4, !tbaa !17
  br label %176, !llvm.loop !57

334:                                              ; preds = %182
  %335 = load ptr, ptr @__glewDeleteVertexArrays, align 8, !tbaa !5
  call void %335(i32 noundef 1, ptr noundef %31)
  %336 = load ptr, ptr @__glewUseProgram, align 8, !tbaa !5
  %337 = load i32, ptr %8, align 4, !tbaa !17
  call void %336(i32 noundef %337)
  %338 = load i32, ptr %9, align 4, !tbaa !17
  call void @glBindTexture(i32 noundef 3553, i32 noundef %338)
  %339 = load ptr, ptr @__glewBindSampler, align 8, !tbaa !5
  %340 = icmp ne ptr %339, null
  br i1 %340, label %341, label %344

341:                                              ; preds = %334
  %342 = load ptr, ptr @__glewBindSampler, align 8, !tbaa !5
  %343 = load i32, ptr %10, align 4, !tbaa !17
  call void %342(i32 noundef 0, i32 noundef %343)
  br label %344

344:                                              ; preds = %341, %334
  %345 = load ptr, ptr @__glewActiveTexture, align 8, !tbaa !5
  %346 = load i32, ptr %7, align 4, !tbaa !17
  call void %345(i32 noundef %346)
  %347 = load ptr, ptr @__glewBindVertexArray, align 8, !tbaa !5
  %348 = load i32, ptr %12, align 4, !tbaa !17
  call void %347(i32 noundef %348)
  %349 = load ptr, ptr @__glewBindBuffer, align 8, !tbaa !5
  %350 = load i32, ptr %11, align 4, !tbaa !17
  call void %349(i32 noundef 34962, i32 noundef %350)
  %351 = load ptr, ptr @__glewBlendEquationSeparate, align 8, !tbaa !5
  %352 = load i32, ptr %20, align 4, !tbaa !17
  %353 = load i32, ptr %21, align 4, !tbaa !17
  call void %351(i32 noundef %352, i32 noundef %353)
  %354 = load ptr, ptr @__glewBlendFuncSeparate, align 8, !tbaa !5
  %355 = load i32, ptr %16, align 4, !tbaa !17
  %356 = load i32, ptr %17, align 4, !tbaa !17
  %357 = load i32, ptr %18, align 4, !tbaa !17
  %358 = load i32, ptr %19, align 4, !tbaa !17
  call void %354(i32 noundef %355, i32 noundef %356, i32 noundef %357, i32 noundef %358)
  %359 = load i8, ptr %22, align 1, !tbaa !20
  %360 = icmp ne i8 %359, 0
  br i1 %360, label %361, label %362

361:                                              ; preds = %344
  call void @glEnable(i32 noundef 3042)
  br label %363

362:                                              ; preds = %344
  call void @glDisable(i32 noundef 3042)
  br label %363

363:                                              ; preds = %362, %361
  %364 = load i8, ptr %23, align 1, !tbaa !20
  %365 = icmp ne i8 %364, 0
  br i1 %365, label %366, label %367

366:                                              ; preds = %363
  call void @glEnable(i32 noundef 2884)
  br label %368

367:                                              ; preds = %363
  call void @glDisable(i32 noundef 2884)
  br label %368

368:                                              ; preds = %367, %366
  %369 = load i8, ptr %24, align 1, !tbaa !20
  %370 = icmp ne i8 %369, 0
  br i1 %370, label %371, label %372

371:                                              ; preds = %368
  call void @glEnable(i32 noundef 2929)
  br label %373

372:                                              ; preds = %368
  call void @glDisable(i32 noundef 2929)
  br label %373

373:                                              ; preds = %372, %371
  %374 = load i8, ptr %25, align 1, !tbaa !20
  %375 = icmp ne i8 %374, 0
  br i1 %375, label %376, label %377

376:                                              ; preds = %373
  call void @glEnable(i32 noundef 3089)
  br label %378

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

378:                                              ; preds = %377, %376
  %379 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
  %380 = load i32, ptr %379, align 4, !tbaa !17
  call void @glPolygonMode(i32 noundef 1032, i32 noundef %380)
  %381 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 0
  %382 = load i32, ptr %381, align 16, !tbaa !17
  %383 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 1
  %384 = load i32, ptr %383, align 4, !tbaa !17
  %385 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 2
  %386 = load i32, ptr %385, align 8, !tbaa !17
  %387 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 3
  %388 = load i32, ptr %387, align 4, !tbaa !17
  call void @glViewport(i32 noundef %382, i32 noundef %384, i32 noundef %386, i32 noundef %388)
  %389 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 0
  %390 = load i32, ptr %389, align 16, !tbaa !17
  %391 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 1
  %392 = load i32, ptr %391, align 4, !tbaa !17
  %393 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 2
  %394 = load i32, ptr %393, align 8, !tbaa !17
  %395 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 3
  %396 = load i32, ptr %395, align 4, !tbaa !17
  call void @glScissor(i32 noundef %390, i32 noundef %392, i32 noundef %394, i32 noundef %396)
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, 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 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  store i32 0, ptr %6, align 4
  br label %397

397:                                              ; preds = %378, %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  %398 = load i32, ptr %6, align 4
  switch i32 %398, label %400 [
    i32 0, label %399
    i32 1, label %399
  ]

399:                                              ; preds = %397, %397
  ret void

400:                                              ; preds = %397
  unreachable
}

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

declare noundef nonnull align 8 dereferenceable(5400) ptr @_ZN5ImGui5GetIOEv() #2

declare void @_ZN10ImDrawData14ScaleClipRectsERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(44), ptr noundef nonnull align 4 dereferenceable(8)) #2

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

declare zeroext i8 @glIsEnabled(i32 noundef) #2

declare void @glEnable(i32 noundef) #2

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

declare void @glDisable(i32 noundef) #2

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

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

; 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(48) ptr @_ZNK8ImVectorI9ImDrawCmdEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec4C2Effff(ptr noundef nonnull align 4 dereferenceable(16), float noundef, float noundef, 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

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !14, i64 36}
!10 = !{!"_ZTS10ImDrawData", !11, i64 0, !6, i64 8, !12, i64 16, !12, i64 20, !12, i64 24, !13, i64 28, !13, i64 36}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTS6ImVec2", !14, i64 0, !14, i64 4}
!14 = !{!"float", !7, i64 0}
!15 = !{!16, !14, i64 176}
!16 = !{!"_ZTS7ImGuiIO", !12, i64 0, !12, i64 4, !13, i64 8, !14, i64 16, !14, i64 20, !6, i64 24, !6, i64 32, !14, i64 40, !14, i64 44, !14, i64 48, !7, i64 52, !14, i64 136, !14, i64 140, !6, i64 144, !6, i64 152, !14, i64 160, !11, i64 164, !6, i64 168, !13, i64 176, !13, i64 184, !13, i64 192, !11, i64 200, !11, i64 201, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !13, i64 256, !7, i64 264, !14, i64 272, !14, i64 276, !11, i64 280, !11, i64 281, !11, i64 282, !11, i64 283, !11, i64 284, !7, i64 285, !7, i64 798, !7, i64 832, !11, i64 916, !11, i64 917, !11, i64 918, !11, i64 919, !11, i64 920, !11, i64 921, !11, i64 922, !14, i64 924, !12, i64 928, !12, i64 932, !12, i64 936, !13, i64 940, !13, i64 948, !7, i64 956, !7, i64 996, !7, i64 1016, !7, i64 1021, !7, i64 1026, !7, i64 1031, !7, i64 1036, !7, i64 1056, !7, i64 1076, !7, i64 1116, !7, i64 1136, !7, i64 3184, !7, i64 5232, !7, i64 5316}
!17 = !{!12, !12, i64 0}
!18 = !{!10, !14, i64 40}
!19 = !{!16, !14, i64 180}
!20 = !{!7, !7, i64 0}
!21 = !{!10, !14, i64 28}
!22 = !{!14, !14, i64 0}
!23 = !{!10, !14, i64 32}
!24 = !{i64 0, i64 4, !22, i64 4, i64 4, !22}
!25 = !{!10, !12, i64 16}
!26 = !{!10, !6, i64 8}
!27 = !{!28, !12, i64 32}
!28 = !{!"_ZTS10ImDrawList", !29, i64 0, !30, i64 16, !31, i64 32, !12, i64 48, !6, i64 56, !6, i64 64, !12, i64 72, !6, i64 80, !6, i64 88, !32, i64 96, !33, i64 112, !34, i64 128, !12, i64 144, !12, i64 148, !35, i64 152}
!29 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !12, i64 0, !12, i64 4, !6, i64 8}
!30 = !{!"_ZTS8ImVectorItE", !12, i64 0, !12, i64 4, !6, i64 8}
!31 = !{!"_ZTS8ImVectorI10ImDrawVertE", !12, i64 0, !12, i64 4, !6, i64 8}
!32 = !{!"_ZTS8ImVectorI6ImVec4E", !12, i64 0, !12, i64 4, !6, i64 8}
!33 = !{!"_ZTS8ImVectorIPvE", !12, i64 0, !12, i64 4, !6, i64 8}
!34 = !{!"_ZTS8ImVectorI6ImVec2E", !12, i64 0, !12, i64 4, !6, i64 8}
!35 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !12, i64 0, !12, i64 4, !6, i64 8}
!36 = !{!28, !6, i64 40}
!37 = !{!28, !12, i64 16}
!38 = !{!28, !6, i64 24}
!39 = !{!28, !12, i64 0}
!40 = !{!41, !6, i64 32}
!41 = !{!"_ZTS9ImDrawCmd", !12, i64 0, !42, i64 4, !6, i64 24, !6, i64 32, !6, i64 40}
!42 = !{!"_ZTS6ImVec4", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12}
!43 = !{!41, !14, i64 4}
!44 = !{!13, !14, i64 0}
!45 = !{!41, !14, i64 8}
!46 = !{!13, !14, i64 4}
!47 = !{!41, !14, i64 12}
!48 = !{!41, !14, i64 16}
!49 = !{!42, !14, i64 0}
!50 = !{!42, !14, i64 4}
!51 = !{!42, !14, i64 8}
!52 = !{!42, !14, i64 12}
!53 = !{!41, !6, i64 24}
!54 = !{!41, !12, i64 0}
!55 = distinct !{!55, !56}
!56 = !{!"llvm.loop.mustprogress"}
!57 = distinct !{!57, !56}


; 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.ImVec4 = type { float, float, float, float }

@__glewActiveTexture = external local_unnamed_addr global ptr, align 8
@__glewBlendEquation = external local_unnamed_addr global ptr, align 8
@__glewUseProgram = external local_unnamed_addr global ptr, align 8
@_ZL14g_ShaderHandle = external hidden local_unnamed_addr global i32, align 4
@__glewUniform1i = external local_unnamed_addr global ptr, align 8
@_ZL19g_AttribLocationTex = external hidden local_unnamed_addr global i32, align 4
@__glewUniformMatrix4fv = external local_unnamed_addr global ptr, align 8
@_ZL23g_AttribLocationProjMtx = external hidden local_unnamed_addr global i32, align 4
@__glewBindSampler = external local_unnamed_addr global ptr, align 8
@__glewGenVertexArrays = external local_unnamed_addr global ptr, align 8
@__glewBindVertexArray = external local_unnamed_addr global ptr, align 8
@__glewBindBuffer = external local_unnamed_addr global ptr, align 8
@_ZL11g_VboHandle = external hidden local_unnamed_addr global i32, align 4
@__glewEnableVertexAttribArray = external local_unnamed_addr global ptr, align 8
@_ZL24g_AttribLocationPosition = external hidden local_unnamed_addr global i32, align 4
@_ZL18g_AttribLocationUV = external hidden local_unnamed_addr global i32, align 4
@_ZL21g_AttribLocationColor = external hidden local_unnamed_addr global i32, align 4
@__glewVertexAttribPointer = external local_unnamed_addr global ptr, align 8
@__glewBufferData = external local_unnamed_addr global ptr, align 8
@_ZL16g_ElementsHandle = external hidden local_unnamed_addr global i32, align 4
@__glewDeleteVertexArrays = external local_unnamed_addr global ptr, align 8
@__glewBlendEquationSeparate = external local_unnamed_addr global ptr, align 8
@__glewBlendFuncSeparate = external local_unnamed_addr global ptr, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_Z32ImGui_ImplOpenGL3_RenderDrawDataP10ImDrawData(ptr noundef %0) local_unnamed_addr #0 {
  %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 [4 x [4 x float]], align 16
  %18 = alloca i32, align 4
  %19 = alloca %struct.ImVec4, align 4
  %20 = tail call noundef nonnull align 8 dereferenceable(5400) ptr @_ZN5ImGui5GetIOEv()
  %21 = getelementptr inbounds i8, ptr %0, i64 36
  %22 = getelementptr inbounds i8, ptr %20, i64 176
  %23 = load <2 x float>, ptr %21, align 4, !tbaa !5
  %24 = load <2 x float>, ptr %22, 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
  tail call void @_ZN10ImDrawData14ScaleClipRectsERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(44) %0, ptr noundef nonnull align 4 dereferenceable(8) %22)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  call void @glGetIntegerv(i32 noundef 34016, ptr noundef nonnull %2)
  %31 = load ptr, ptr @__glewActiveTexture, align 8, !tbaa !9
  call void %31(i32 noundef 33984)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  call void @glGetIntegerv(i32 noundef 35725, ptr noundef nonnull %3)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  call void @glGetIntegerv(i32 noundef 32873, ptr noundef nonnull %4)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  call void @glGetIntegerv(i32 noundef 35097, ptr noundef nonnull %5)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  call void @glGetIntegerv(i32 noundef 34964, ptr noundef nonnull %6)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  call void @glGetIntegerv(i32 noundef 34229, ptr noundef nonnull %7)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  call void @glGetIntegerv(i32 noundef 2880, ptr noundef nonnull %8)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  call void @glGetIntegerv(i32 noundef 2978, ptr noundef nonnull %9)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  call void @glGetIntegerv(i32 noundef 3088, ptr noundef nonnull %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #6
  call void @glGetIntegerv(i32 noundef 32969, ptr noundef nonnull %11)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #6
  call void @glGetIntegerv(i32 noundef 32968, ptr noundef nonnull %12)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  call void @glGetIntegerv(i32 noundef 32971, ptr noundef nonnull %13)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #6
  call void @glGetIntegerv(i32 noundef 32970, ptr noundef nonnull %14)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #6
  call void @glGetIntegerv(i32 noundef 32777, ptr noundef nonnull %15)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #6
  call void @glGetIntegerv(i32 noundef 34877, ptr noundef nonnull %16)
  %32 = call zeroext i8 @glIsEnabled(i32 noundef 3042)
  %33 = call zeroext i8 @glIsEnabled(i32 noundef 2884)
  %34 = call zeroext i8 @glIsEnabled(i32 noundef 2929)
  %35 = call zeroext i8 @glIsEnabled(i32 noundef 3089)
  call void @glEnable(i32 noundef 3042)
  %36 = load ptr, ptr @__glewBlendEquation, align 8, !tbaa !9
  call void %36(i32 noundef 32774)
  call void @glBlendFunc(i32 noundef 770, i32 noundef 771)
  call void @glDisable(i32 noundef 2884)
  call void @glDisable(i32 noundef 2929)
  call void @glEnable(i32 noundef 3089)
  call void @glPolygonMode(i32 noundef 1032, i32 noundef 6914)
  %37 = extractelement <2 x i32> %26, i64 0
  %38 = extractelement <2 x i32> %26, i64 1
  call void @glViewport(i32 noundef 0, i32 noundef 0, i32 noundef %37, i32 noundef %38)
  %39 = getelementptr inbounds i8, ptr %0, i64 28
  %40 = getelementptr inbounds i8, ptr %0, i64 32
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %17) #6
  %41 = getelementptr inbounds i8, ptr %17, i64 4
  %42 = getelementptr inbounds i8, ptr %17, i64 20
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %41, i8 0, i64 16, i1 false)
  %43 = getelementptr inbounds i8, ptr %17, i64 24
  %44 = getelementptr inbounds i8, ptr %17, i64 40
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %43, i8 0, i64 16, i1 false)
  store <2 x float> <float -1.000000e+00, float 0.000000e+00>, ptr %44, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %17, i64 48
  %46 = load <2 x float>, ptr %39, align 4, !tbaa !5
  %47 = load <2 x float>, ptr %21, align 4, !tbaa !5
  %48 = fadd <2 x float> %46, %47
  %49 = fsub <2 x float> %48, %46
  %50 = extractelement <2 x float> %49, i64 0
  %51 = fdiv float 2.000000e+00, %50
  store float %51, ptr %17, align 16, !tbaa !5
  %52 = fsub <2 x float> %46, %48
  %53 = extractelement <2 x float> %52, i64 1
  %54 = fdiv float 2.000000e+00, %53
  store float %54, ptr %42, align 4, !tbaa !5
  %55 = fadd <2 x float> %46, %48
  %56 = shufflevector <2 x float> %46, <2 x float> %48, <2 x i32> <i32 0, i32 3>
  %57 = shufflevector <2 x float> %48, <2 x float> %46, <2 x i32> <i32 0, i32 3>
  %58 = fsub <2 x float> %56, %57
  %59 = fdiv <2 x float> %55, %58
  store <2 x float> %59, ptr %45, align 16, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %17, i64 56
  store <2 x float> <float 0.000000e+00, float 1.000000e+00>, ptr %60, align 8, !tbaa !5
  %61 = load ptr, ptr @__glewUseProgram, align 8, !tbaa !9
  %62 = load i32, ptr @_ZL14g_ShaderHandle, align 4, !tbaa !11
  call void %61(i32 noundef %62)
  %63 = load ptr, ptr @__glewUniform1i, align 8, !tbaa !9
  %64 = load i32, ptr @_ZL19g_AttribLocationTex, align 4, !tbaa !11
  call void %63(i32 noundef %64, i32 noundef 0)
  %65 = load ptr, ptr @__glewUniformMatrix4fv, align 8, !tbaa !9
  %66 = load i32, ptr @_ZL23g_AttribLocationProjMtx, align 4, !tbaa !11
  call void %65(i32 noundef %66, i32 noundef 1, i8 noundef zeroext 0, ptr noundef nonnull %17)
  %67 = load ptr, ptr @__glewBindSampler, align 8, !tbaa !9
  %.not = icmp eq ptr %67, null
  br i1 %.not, label %69, label %68

68:                                               ; preds = %30
  call void %67(i32 noundef 0, i32 noundef 0)
  br label %69

69:                                               ; preds = %68, %30
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #6
  store i32 0, ptr %18, align 4, !tbaa !11
  %70 = load ptr, ptr @__glewGenVertexArrays, align 8, !tbaa !9
  call void %70(i32 noundef 1, ptr noundef nonnull %18)
  %71 = load ptr, ptr @__glewBindVertexArray, align 8, !tbaa !9
  %72 = load i32, ptr %18, align 4, !tbaa !11
  call void %71(i32 noundef %72)
  %73 = load ptr, ptr @__glewBindBuffer, align 8, !tbaa !9
  %74 = load i32, ptr @_ZL11g_VboHandle, align 4, !tbaa !11
  call void %73(i32 noundef 34962, i32 noundef %74)
  %75 = load ptr, ptr @__glewEnableVertexAttribArray, align 8, !tbaa !9
  %76 = load i32, ptr @_ZL24g_AttribLocationPosition, align 4, !tbaa !11
  call void %75(i32 noundef %76)
  %77 = load ptr, ptr @__glewEnableVertexAttribArray, align 8, !tbaa !9
  %78 = load i32, ptr @_ZL18g_AttribLocationUV, align 4, !tbaa !11
  call void %77(i32 noundef %78)
  %79 = load ptr, ptr @__glewEnableVertexAttribArray, align 8, !tbaa !9
  %80 = load i32, ptr @_ZL21g_AttribLocationColor, align 4, !tbaa !11
  call void %79(i32 noundef %80)
  %81 = load ptr, ptr @__glewVertexAttribPointer, align 8, !tbaa !9
  %82 = load i32, ptr @_ZL24g_AttribLocationPosition, align 4, !tbaa !11
  call void %81(i32 noundef %82, i32 noundef 2, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 20, ptr noundef null)
  %83 = load ptr, ptr @__glewVertexAttribPointer, align 8, !tbaa !9
  %84 = load i32, ptr @_ZL18g_AttribLocationUV, align 4, !tbaa !11
  call void %83(i32 noundef %84, i32 noundef 2, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 20, ptr noundef nonnull inttoptr (i64 8 to ptr))
  %85 = load ptr, ptr @__glewVertexAttribPointer, align 8, !tbaa !9
  %86 = load i32, ptr @_ZL21g_AttribLocationColor, align 4, !tbaa !11
  call void %85(i32 noundef %86, i32 noundef 4, i32 noundef 5121, i8 noundef zeroext 1, i32 noundef 20, ptr noundef nonnull inttoptr (i64 16 to ptr))
  %.sroa.0.0.copyload = load float, ptr %39, align 4, !tbaa !5
  %.sroa.5.0.copyload = load float, ptr %40, align 4, !tbaa !5
  %87 = getelementptr inbounds i8, ptr %0, i64 16
  %88 = load i32, ptr %87, align 8, !tbaa !13
  %89 = icmp sgt i32 %88, 0
  br i1 %89, label %.lr.ph94, label %._crit_edge95

.lr.ph94:                                         ; preds = %69
  %90 = getelementptr inbounds i8, ptr %0, i64 8
  %91 = uitofp nneg i32 %37 to float
  %92 = getelementptr inbounds i8, ptr %19, i64 4
  %93 = uitofp nneg i32 %38 to float
  %94 = getelementptr inbounds i8, ptr %19, i64 8
  %95 = getelementptr inbounds i8, ptr %19, i64 12
  br label %101

._crit_edge95:                                    ; preds = %._crit_edge, %69
  %96 = load ptr, ptr @__glewDeleteVertexArrays, align 8, !tbaa !9
  call void %96(i32 noundef 1, ptr noundef nonnull %18)
  %97 = load ptr, ptr @__glewUseProgram, align 8, !tbaa !9
  %98 = load i32, ptr %3, align 4, !tbaa !11
  call void %97(i32 noundef %98)
  %99 = load i32, ptr %4, align 4, !tbaa !11
  call void @glBindTexture(i32 noundef 3553, i32 noundef %99)
  %100 = load ptr, ptr @__glewBindSampler, align 8, !tbaa !9
  %.not83 = icmp eq ptr %100, null
  br i1 %.not83, label %177, label %175

101:                                              ; preds = %.lr.ph94, %._crit_edge
  %indvars.iv = phi i64 [ 0, %.lr.ph94 ], [ %indvars.iv.next, %._crit_edge ]
  %102 = load ptr, ptr %90, align 8, !tbaa !17
  %103 = getelementptr inbounds ptr, ptr %102, i64 %indvars.iv
  %104 = load ptr, ptr %103, align 8, !tbaa !9
  %105 = load ptr, ptr @__glewBindBuffer, align 8, !tbaa !9
  %106 = load i32, ptr @_ZL11g_VboHandle, align 4, !tbaa !11
  call void %105(i32 noundef 34962, i32 noundef %106)
  %107 = load ptr, ptr @__glewBufferData, align 8, !tbaa !9
  %108 = getelementptr inbounds i8, ptr %104, i64 32
  %109 = load i32, ptr %108, align 8, !tbaa !18
  %110 = sext i32 %109 to i64
  %111 = mul nsw i64 %110, 20
  %112 = getelementptr inbounds i8, ptr %104, i64 40
  %113 = load ptr, ptr %112, align 8, !tbaa !27
  call void %107(i32 noundef 34962, i64 noundef %111, ptr noundef %113, i32 noundef 35040)
  %114 = load ptr, ptr @__glewBindBuffer, align 8, !tbaa !9
  %115 = load i32, ptr @_ZL16g_ElementsHandle, align 4, !tbaa !11
  call void %114(i32 noundef 34963, i32 noundef %115)
  %116 = load ptr, ptr @__glewBufferData, align 8, !tbaa !9
  %117 = getelementptr inbounds i8, ptr %104, i64 16
  %118 = load i32, ptr %117, align 8, !tbaa !28
  %119 = sext i32 %118 to i64
  %120 = shl nsw i64 %119, 1
  %121 = getelementptr inbounds i8, ptr %104, i64 24
  %122 = load ptr, ptr %121, align 8, !tbaa !29
  call void %116(i32 noundef 34963, i64 noundef %120, ptr noundef %122, i32 noundef 35040)
  %123 = load i32, ptr %104, align 8, !tbaa !30
  %124 = icmp sgt i32 %123, 0
  br i1 %124, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %168, %101
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %125 = load i32, ptr %87, align 8, !tbaa !13
  %126 = sext i32 %125 to i64
  %127 = icmp slt i64 %indvars.iv.next, %126
  br i1 %127, label %101, label %._crit_edge95, !llvm.loop !31

.lr.ph:                                           ; preds = %101, %168
  %.091 = phi i32 [ %172, %168 ], [ 0, %101 ]
  %.07189 = phi ptr [ %171, %168 ], [ null, %101 ]
  %128 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK8ImVectorI9ImDrawCmdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %104, i32 noundef %.091)
  %129 = getelementptr inbounds i8, ptr %128, i64 32
  %130 = load ptr, ptr %129, align 8, !tbaa !33
  %.not88 = icmp eq ptr %130, null
  br i1 %.not88, label %132, label %131

131:                                              ; preds = %.lr.ph
  call void %130(ptr noundef nonnull %104, ptr noundef nonnull %128)
  br label %168

132:                                              ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #6
  %133 = getelementptr inbounds i8, ptr %128, i64 4
  %134 = load float, ptr %133, align 4, !tbaa !36
  %135 = fsub float %134, %.sroa.0.0.copyload
  %136 = getelementptr inbounds i8, ptr %128, i64 8
  %137 = load float, ptr %136, align 8, !tbaa !37
  %138 = fsub float %137, %.sroa.5.0.copyload
  %139 = getelementptr inbounds i8, ptr %128, i64 12
  %140 = load float, ptr %139, align 4, !tbaa !38
  %141 = fsub float %140, %.sroa.0.0.copyload
  %142 = getelementptr inbounds i8, ptr %128, i64 16
  %143 = load float, ptr %142, align 8, !tbaa !39
  %144 = fsub float %143, %.sroa.5.0.copyload
  call void @_ZN6ImVec4C2Effff(ptr noundef nonnull align 4 dereferenceable(16) %19, float noundef %135, float noundef %138, float noundef %141, float noundef %144)
  %145 = load float, ptr %19, align 4, !tbaa !40
  %146 = fcmp olt float %145, %91
  br i1 %146, label %147, label %167

147:                                              ; preds = %132
  %148 = load float, ptr %92, align 4, !tbaa !41
  %149 = fcmp olt float %148, %93
  %150 = load float, ptr %94, align 4
  %151 = fcmp oge float %150, 0.000000e+00
  %or.cond4 = select i1 %149, i1 %151, i1 false
  %152 = load float, ptr %95, align 4
  %153 = fcmp oge float %152, 0.000000e+00
  %or.cond7 = select i1 %or.cond4, i1 %153, i1 false
  br i1 %or.cond7, label %154, label %167

154:                                              ; preds = %147
  %155 = fptosi float %145 to i32
  %156 = fsub float %93, %152
  %157 = fptosi float %156 to i32
  %158 = fsub float %150, %145
  %159 = fptosi float %158 to i32
  %160 = fsub float %152, %148
  %161 = fptosi float %160 to i32
  call void @glScissor(i32 noundef %155, i32 noundef %157, i32 noundef %159, i32 noundef %161)
  %162 = getelementptr inbounds i8, ptr %128, i64 24
  %163 = load ptr, ptr %162, align 8, !tbaa !42
  %164 = ptrtoint ptr %163 to i64
  %165 = trunc i64 %164 to i32
  call void @glBindTexture(i32 noundef 3553, i32 noundef %165)
  %166 = load i32, ptr %128, align 8, !tbaa !43
  call void @glDrawElements(i32 noundef 4, i32 noundef %166, i32 noundef 5123, ptr noundef %.07189)
  br label %167

167:                                              ; preds = %154, %147, %132
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #6
  br label %168

168:                                              ; preds = %167, %131
  %169 = load i32, ptr %128, align 8, !tbaa !43
  %170 = zext i32 %169 to i64
  %171 = getelementptr inbounds i16, ptr %.07189, i64 %170
  %172 = add nuw nsw i32 %.091, 1
  %173 = load i32, ptr %104, align 8, !tbaa !30
  %174 = icmp slt i32 %172, %173
  br i1 %174, label %.lr.ph, label %._crit_edge, !llvm.loop !44

175:                                              ; preds = %._crit_edge95
  %176 = load i32, ptr %5, align 4, !tbaa !11
  call void %100(i32 noundef 0, i32 noundef %176)
  br label %177

177:                                              ; preds = %175, %._crit_edge95
  %178 = load ptr, ptr @__glewActiveTexture, align 8, !tbaa !9
  %179 = load i32, ptr %2, align 4, !tbaa !11
  call void %178(i32 noundef %179)
  %180 = load ptr, ptr @__glewBindVertexArray, align 8, !tbaa !9
  %181 = load i32, ptr %7, align 4, !tbaa !11
  call void %180(i32 noundef %181)
  %182 = load ptr, ptr @__glewBindBuffer, align 8, !tbaa !9
  %183 = load i32, ptr %6, align 4, !tbaa !11
  call void %182(i32 noundef 34962, i32 noundef %183)
  %184 = load ptr, ptr @__glewBlendEquationSeparate, align 8, !tbaa !9
  %185 = load i32, ptr %15, align 4, !tbaa !11
  %186 = load i32, ptr %16, align 4, !tbaa !11
  call void %184(i32 noundef %185, i32 noundef %186)
  %187 = load ptr, ptr @__glewBlendFuncSeparate, align 8, !tbaa !9
  %188 = load i32, ptr %11, align 4, !tbaa !11
  %189 = load i32, ptr %12, align 4, !tbaa !11
  %190 = load i32, ptr %13, align 4, !tbaa !11
  %191 = load i32, ptr %14, align 4, !tbaa !11
  call void %187(i32 noundef %188, i32 noundef %189, i32 noundef %190, i32 noundef %191)
  %.not84 = icmp eq i8 %32, 0
  br i1 %.not84, label %193, label %192

192:                                              ; preds = %177
  call void @glEnable(i32 noundef 3042)
  br label %194

193:                                              ; preds = %177
  call void @glDisable(i32 noundef 3042)
  br label %194

194:                                              ; preds = %193, %192
  %.not85 = icmp eq i8 %33, 0
  br i1 %.not85, label %196, label %195

195:                                              ; preds = %194
  call void @glEnable(i32 noundef 2884)
  br label %197

196:                                              ; preds = %194
  call void @glDisable(i32 noundef 2884)
  br label %197

197:                                              ; preds = %196, %195
  %.not86 = icmp eq i8 %34, 0
  br i1 %.not86, label %199, label %198

198:                                              ; preds = %197
  call void @glEnable(i32 noundef 2929)
  br label %200

199:                                              ; preds = %197
  call void @glDisable(i32 noundef 2929)
  br label %200

200:                                              ; preds = %199, %198
  %.not87 = icmp eq i8 %35, 0
  br i1 %.not87, label %202, label %201

201:                                              ; preds = %200
  call void @glEnable(i32 noundef 3089)
  br label %203

202:                                              ; preds = %200
  call void @glDisable(i32 noundef 3089)
  br label %203

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

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

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

declare noundef nonnull align 8 dereferenceable(5400) ptr @_ZN5ImGui5GetIOEv() local_unnamed_addr #2

declare void @_ZN10ImDrawData14ScaleClipRectsERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(44), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2

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

declare zeroext i8 @glIsEnabled(i32 noundef) local_unnamed_addr #2

declare void @glEnable(i32 noundef) local_unnamed_addr #2

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

declare void @glDisable(i32 noundef) 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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) 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 @_ZN6ImVec4C2Effff(ptr noundef nonnull align 4 dereferenceable(16), float noundef, float noundef, 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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 16}
!14 = !{!"_ZTS10ImDrawData", !15, i64 0, !10, i64 8, !12, i64 16, !12, i64 20, !12, i64 24, !16, i64 28, !16, i64 36}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTS6ImVec2", !6, i64 0, !6, i64 4}
!17 = !{!14, !10, i64 8}
!18 = !{!19, !12, i64 32}
!19 = !{!"_ZTS10ImDrawList", !20, i64 0, !21, i64 16, !22, i64 32, !12, i64 48, !10, i64 56, !10, i64 64, !12, i64 72, !10, i64 80, !10, i64 88, !23, i64 96, !24, i64 112, !25, i64 128, !12, i64 144, !12, i64 148, !26, i64 152}
!20 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !12, i64 0, !12, i64 4, !10, i64 8}
!21 = !{!"_ZTS8ImVectorItE", !12, i64 0, !12, i64 4, !10, i64 8}
!22 = !{!"_ZTS8ImVectorI10ImDrawVertE", !12, i64 0, !12, i64 4, !10, i64 8}
!23 = !{!"_ZTS8ImVectorI6ImVec4E", !12, i64 0, !12, i64 4, !10, i64 8}
!24 = !{!"_ZTS8ImVectorIPvE", !12, i64 0, !12, i64 4, !10, i64 8}
!25 = !{!"_ZTS8ImVectorI6ImVec2E", !12, i64 0, !12, i64 4, !10, i64 8}
!26 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !12, i64 0, !12, i64 4, !10, i64 8}
!27 = !{!19, !10, i64 40}
!28 = !{!19, !12, i64 16}
!29 = !{!19, !10, i64 24}
!30 = !{!19, !12, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!34, !10, i64 32}
!34 = !{!"_ZTS9ImDrawCmd", !12, i64 0, !35, i64 4, !10, i64 24, !10, i64 32, !10, i64 40}
!35 = !{!"_ZTS6ImVec4", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!36 = !{!34, !6, i64 4}
!37 = !{!34, !6, i64 8}
!38 = !{!34, !6, i64 12}
!39 = !{!34, !6, i64 16}
!40 = !{!35, !6, i64 0}
!41 = !{!35, !6, i64 4}
!42 = !{!34, !10, i64 24}
!43 = !{!34, !12, i64 0}
!44 = distinct !{!44, !32}


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