; LLVM IR from Angelo1211/HybridRenderingEngine :: libs/imgui/imgui_impl_opengl3.ll (Z32ImGui_ImplOpenGL3_RenderDrawDataP10ImDrawData)

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

%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, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, %struct.ImVec2, [5 x i8], float, float, i8, i8, i8, i8, [512 x i8], [17 x i16], [21 x float], i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, [5 x %struct.ImVec2], [5 x double], [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 }

@glad_glGetIntegerv = external global ptr, align 8
@glad_glActiveTexture = external global ptr, align 8
@glad_glIsEnabled = external global ptr, align 8
@glad_glEnable = external global ptr, align 8
@glad_glBlendEquation = external global ptr, align 8
@glad_glBlendFunc = external global ptr, align 8
@glad_glDisable = external global ptr, align 8
@glad_glPolygonMode = external global ptr, align 8
@glad_glViewport = external global ptr, align 8
@glad_glUseProgram = external global ptr, align 8
@_ZL14g_ShaderHandle = external hidden global i32, align 4
@glad_glUniform1i = external global ptr, align 8
@_ZL19g_AttribLocationTex = external hidden global i32, align 4
@glad_glUniformMatrix4fv = external global ptr, align 8
@_ZL23g_AttribLocationProjMtx = external hidden global i32, align 4
@glad_glBindSampler = external global ptr, align 8
@glad_glGenVertexArrays = external global ptr, align 8
@glad_glBindVertexArray = external global ptr, align 8
@glad_glBindBuffer = external global ptr, align 8
@_ZL11g_VboHandle = external hidden global i32, align 4
@glad_glEnableVertexAttribArray = 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
@glad_glVertexAttribPointer = external global ptr, align 8
@glad_glBufferData = external global ptr, align 8
@_ZL16g_ElementsHandle = external hidden global i32, align 4
@glad_glScissor = external global ptr, align 8
@glad_glBindTexture = external global ptr, align 8
@glad_glDrawElements = external global ptr, align 8
@glad_glDeleteVertexArrays = external global ptr, align 8
@glad_glBlendEquationSeparate = external global ptr, align 8
@glad_glBlendFuncSeparate = 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(5432) 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 %430

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
  %70 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !5
  call void %70(i32 noundef 34016, ptr noundef %7)
  %71 = load ptr, ptr @glad_glActiveTexture, align 8, !tbaa !5
  call void %71(i32 noundef 33984)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %72 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !5
  call void %72(i32 noundef 35725, ptr noundef %8)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %73 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !5
  call void %73(i32 noundef 32873, ptr noundef %9)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %74 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !5
  call void %74(i32 noundef 35097, ptr noundef %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %75 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !5
  call void %75(i32 noundef 34964, ptr noundef %11)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %76 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !5
  call void %76(i32 noundef 34229, ptr noundef %12)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %77 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !5
  %78 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
  call void %77(i32 noundef 2880, ptr noundef %78)
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #6
  %79 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !5
  %80 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 0
  call void %79(i32 noundef 2978, ptr noundef %80)
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  %81 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !5
  %82 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 0
  call void %81(i32 noundef 3088, ptr noundef %82)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %83 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !5
  call void %83(i32 noundef 32969, ptr noundef %16)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %84 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !5
  call void %84(i32 noundef 32968, ptr noundef %17)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %85 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !5
  call void %85(i32 noundef 32971, ptr noundef %18)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %86 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !5
  call void %86(i32 noundef 32970, ptr noundef %19)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %87 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !5
  call void %87(i32 noundef 32777, ptr noundef %20)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %88 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !5
  call void %88(i32 noundef 34877, ptr noundef %21)
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #6
  %89 = load ptr, ptr @glad_glIsEnabled, align 8, !tbaa !5
  %90 = call zeroext i8 %89(i32 noundef 3042)
  store i8 %90, ptr %22, align 1, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #6
  %91 = load ptr, ptr @glad_glIsEnabled, align 8, !tbaa !5
  %92 = call zeroext i8 %91(i32 noundef 2884)
  store i8 %92, ptr %23, align 1, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #6
  %93 = load ptr, ptr @glad_glIsEnabled, align 8, !tbaa !5
  %94 = call zeroext i8 %93(i32 noundef 2929)
  store i8 %94, ptr %24, align 1, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #6
  %95 = load ptr, ptr @glad_glIsEnabled, align 8, !tbaa !5
  %96 = call zeroext i8 %95(i32 noundef 3089)
  store i8 %96, ptr %25, align 1, !tbaa !20
  %97 = load ptr, ptr @glad_glEnable, align 8, !tbaa !5
  call void %97(i32 noundef 3042)
  %98 = load ptr, ptr @glad_glBlendEquation, align 8, !tbaa !5
  call void %98(i32 noundef 32774)
  %99 = load ptr, ptr @glad_glBlendFunc, align 8, !tbaa !5
  call void %99(i32 noundef 770, i32 noundef 771)
  %100 = load ptr, ptr @glad_glDisable, align 8, !tbaa !5
  call void %100(i32 noundef 2884)
  %101 = load ptr, ptr @glad_glDisable, align 8, !tbaa !5
  call void %101(i32 noundef 2929)
  %102 = load ptr, ptr @glad_glEnable, align 8, !tbaa !5
  call void %102(i32 noundef 3089)
  %103 = load ptr, ptr @glad_glPolygonMode, align 8, !tbaa !5
  call void %103(i32 noundef 1032, i32 noundef 6914)
  %104 = load ptr, ptr @glad_glViewport, align 8, !tbaa !5
  %105 = load i32, ptr %4, align 4, !tbaa !17
  %106 = load i32, ptr %5, align 4, !tbaa !17
  call void %104(i32 noundef 0, i32 noundef 0, i32 noundef %105, i32 noundef %106)
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %107 = load ptr, ptr %2, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.ImDrawData, ptr %107, i32 0, i32 6
  %109 = getelementptr inbounds %struct.ImVec2, ptr %108, i32 0, i32 0
  %110 = load float, ptr %109, align 4, !tbaa !21
  store float %110, ptr %26, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %111 = load ptr, ptr %2, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.ImDrawData, ptr %111, i32 0, i32 6
  %113 = getelementptr inbounds %struct.ImVec2, ptr %112, i32 0, i32 0
  %114 = load float, ptr %113, align 4, !tbaa !21
  %115 = load ptr, ptr %2, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.ImDrawData, ptr %115, i32 0, i32 7
  %117 = getelementptr inbounds %struct.ImVec2, ptr %116, i32 0, i32 0
  %118 = load float, ptr %117, align 4, !tbaa !9
  %119 = fadd float %114, %118
  store float %119, ptr %27, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %120 = load ptr, ptr %2, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.ImDrawData, ptr %120, i32 0, i32 6
  %122 = getelementptr inbounds %struct.ImVec2, ptr %121, i32 0, i32 1
  %123 = load float, ptr %122, align 4, !tbaa !23
  store float %123, ptr %28, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %124 = load ptr, ptr %2, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.ImDrawData, ptr %124, i32 0, i32 6
  %126 = getelementptr inbounds %struct.ImVec2, ptr %125, i32 0, i32 1
  %127 = load float, ptr %126, align 4, !tbaa !23
  %128 = load ptr, ptr %2, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.ImDrawData, ptr %128, i32 0, i32 7
  %130 = getelementptr inbounds %struct.ImVec2, ptr %129, i32 0, i32 1
  %131 = load float, ptr %130, align 4, !tbaa !18
  %132 = fadd float %127, %131
  store float %132, ptr %29, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 64, ptr %30) #6
  %133 = load float, ptr %27, align 4, !tbaa !22
  %134 = load float, ptr %26, align 4, !tbaa !22
  %135 = fsub float %133, %134
  %136 = fdiv float 2.000000e+00, %135
  store float %136, ptr %30, align 4, !tbaa !22
  %137 = getelementptr inbounds float, ptr %30, i64 1
  store float 0.000000e+00, ptr %137, align 4, !tbaa !22
  %138 = getelementptr inbounds float, ptr %30, i64 2
  store float 0.000000e+00, ptr %138, align 4, !tbaa !22
  %139 = getelementptr inbounds float, ptr %30, i64 3
  store float 0.000000e+00, ptr %139, align 4, !tbaa !22
  %140 = getelementptr inbounds [4 x float], ptr %30, i64 1
  store float 0.000000e+00, ptr %140, align 4, !tbaa !22
  %141 = getelementptr inbounds float, ptr %140, i64 1
  %142 = load float, ptr %28, align 4, !tbaa !22
  %143 = load float, ptr %29, align 4, !tbaa !22
  %144 = fsub float %142, %143
  %145 = fdiv float 2.000000e+00, %144
  store float %145, ptr %141, align 4, !tbaa !22
  %146 = getelementptr inbounds float, ptr %140, i64 2
  store float 0.000000e+00, ptr %146, align 4, !tbaa !22
  %147 = getelementptr inbounds float, ptr %140, i64 3
  store float 0.000000e+00, ptr %147, align 4, !tbaa !22
  %148 = getelementptr inbounds [4 x float], ptr %30, i64 2
  store float 0.000000e+00, ptr %148, align 4, !tbaa !22
  %149 = getelementptr inbounds float, ptr %148, i64 1
  store float 0.000000e+00, ptr %149, align 4, !tbaa !22
  %150 = getelementptr inbounds float, ptr %148, i64 2
  store float -1.000000e+00, ptr %150, align 4, !tbaa !22
  %151 = getelementptr inbounds float, ptr %148, i64 3
  store float 0.000000e+00, ptr %151, align 4, !tbaa !22
  %152 = getelementptr inbounds [4 x float], ptr %30, i64 3
  %153 = load float, ptr %27, align 4, !tbaa !22
  %154 = load float, ptr %26, align 4, !tbaa !22
  %155 = fadd float %153, %154
  %156 = load float, ptr %26, align 4, !tbaa !22
  %157 = load float, ptr %27, align 4, !tbaa !22
  %158 = fsub float %156, %157
  %159 = fdiv float %155, %158
  store float %159, ptr %152, align 4, !tbaa !22
  %160 = getelementptr inbounds float, ptr %152, i64 1
  %161 = load float, ptr %28, align 4, !tbaa !22
  %162 = load float, ptr %29, align 4, !tbaa !22
  %163 = fadd float %161, %162
  %164 = load float, ptr %29, align 4, !tbaa !22
  %165 = load float, ptr %28, align 4, !tbaa !22
  %166 = fsub float %164, %165
  %167 = fdiv float %163, %166
  store float %167, ptr %160, align 4, !tbaa !22
  %168 = getelementptr inbounds float, ptr %152, i64 2
  store float 0.000000e+00, ptr %168, align 4, !tbaa !22
  %169 = getelementptr inbounds float, ptr %152, i64 3
  store float 1.000000e+00, ptr %169, align 4, !tbaa !22
  %170 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !5
  %171 = load i32, ptr @_ZL14g_ShaderHandle, align 4, !tbaa !17
  call void %170(i32 noundef %171)
  %172 = load ptr, ptr @glad_glUniform1i, align 8, !tbaa !5
  %173 = load i32, ptr @_ZL19g_AttribLocationTex, align 4, !tbaa !17
  call void %172(i32 noundef %173, i32 noundef 0)
  %174 = load ptr, ptr @glad_glUniformMatrix4fv, align 8, !tbaa !5
  %175 = load i32, ptr @_ZL23g_AttribLocationProjMtx, align 4, !tbaa !17
  %176 = getelementptr inbounds [4 x [4 x float]], ptr %30, i64 0, i64 0
  %177 = getelementptr inbounds [4 x float], ptr %176, i64 0, i64 0
  call void %174(i32 noundef %175, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %177)
  %178 = load ptr, ptr @glad_glBindSampler, align 8, !tbaa !5
  call void %178(i32 noundef 0, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  store i32 0, ptr %31, align 4, !tbaa !17
  %179 = load ptr, ptr @glad_glGenVertexArrays, align 8, !tbaa !5
  call void %179(i32 noundef 1, ptr noundef %31)
  %180 = load ptr, ptr @glad_glBindVertexArray, align 8, !tbaa !5
  %181 = load i32, ptr %31, align 4, !tbaa !17
  call void %180(i32 noundef %181)
  %182 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  %183 = load i32, ptr @_ZL11g_VboHandle, align 4, !tbaa !17
  call void %182(i32 noundef 34962, i32 noundef %183)
  %184 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !5
  %185 = load i32, ptr @_ZL24g_AttribLocationPosition, align 4, !tbaa !17
  call void %184(i32 noundef %185)
  %186 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !5
  %187 = load i32, ptr @_ZL18g_AttribLocationUV, align 4, !tbaa !17
  call void %186(i32 noundef %187)
  %188 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !5
  %189 = load i32, ptr @_ZL21g_AttribLocationColor, align 4, !tbaa !17
  call void %188(i32 noundef %189)
  %190 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !5
  %191 = load i32, ptr @_ZL24g_AttribLocationPosition, align 4, !tbaa !17
  call void %190(i32 noundef %191, i32 noundef 2, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 20, ptr noundef null)
  %192 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !5
  %193 = load i32, ptr @_ZL18g_AttribLocationUV, align 4, !tbaa !17
  call void %192(i32 noundef %193, 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))
  %194 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !5
  %195 = load i32, ptr @_ZL21g_AttribLocationColor, align 4, !tbaa !17
  call void %194(i32 noundef %195, 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
  %196 = load ptr, ptr %2, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.ImDrawData, ptr %196, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %197, 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 %198

198:                                              ; preds = %356, %66
  %199 = load i32, ptr %33, align 4, !tbaa !17
  %200 = load ptr, ptr %2, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.ImDrawData, ptr %200, i32 0, i32 3
  %202 = load i32, ptr %201, align 8, !tbaa !25
  %203 = icmp slt i32 %199, %202
  br i1 %203, label %205, label %204

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

205:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  %206 = load ptr, ptr %2, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.ImDrawData, ptr %206, i32 0, i32 2
  %208 = load ptr, ptr %207, align 8, !tbaa !26
  %209 = load i32, ptr %33, align 4, !tbaa !17
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds ptr, ptr %208, i64 %210
  %212 = load ptr, ptr %211, align 8, !tbaa !5
  store ptr %212, 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
  %213 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  %214 = load i32, ptr @_ZL11g_VboHandle, align 4, !tbaa !17
  call void %213(i32 noundef 34962, i32 noundef %214)
  %215 = load ptr, ptr @glad_glBufferData, align 8, !tbaa !5
  %216 = load ptr, ptr %34, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.ImDrawList, ptr %216, i32 0, i32 2
  %218 = getelementptr inbounds %class.ImVector.1, ptr %217, i32 0, i32 0
  %219 = load i32, ptr %218, align 8, !tbaa !27
  %220 = sext i32 %219 to i64
  %221 = mul i64 %220, 20
  %222 = load ptr, ptr %34, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.ImDrawList, ptr %222, i32 0, i32 2
  %224 = getelementptr inbounds %class.ImVector.1, ptr %223, i32 0, i32 2
  %225 = load ptr, ptr %224, align 8, !tbaa !36
  call void %215(i32 noundef 34962, i64 noundef %221, ptr noundef %225, i32 noundef 35040)
  %226 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  %227 = load i32, ptr @_ZL16g_ElementsHandle, align 4, !tbaa !17
  call void %226(i32 noundef 34963, i32 noundef %227)
  %228 = load ptr, ptr @glad_glBufferData, align 8, !tbaa !5
  %229 = load ptr, ptr %34, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.ImDrawList, ptr %229, i32 0, i32 1
  %231 = getelementptr inbounds %class.ImVector.0, ptr %230, i32 0, i32 0
  %232 = load i32, ptr %231, align 8, !tbaa !37
  %233 = sext i32 %232 to i64
  %234 = mul i64 %233, 2
  %235 = load ptr, ptr %34, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.ImDrawList, ptr %235, i32 0, i32 1
  %237 = getelementptr inbounds %class.ImVector.0, ptr %236, i32 0, i32 2
  %238 = load ptr, ptr %237, align 8, !tbaa !38
  call void %228(i32 noundef 34963, i64 noundef %234, ptr noundef %238, 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 %239

239:                                              ; preds = %352, %205
  %240 = load i32, ptr %36, align 4, !tbaa !17
  %241 = load ptr, ptr %34, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.ImDrawList, ptr %241, i32 0, i32 0
  %243 = getelementptr inbounds %class.ImVector, ptr %242, i32 0, i32 0
  %244 = load i32, ptr %243, align 8, !tbaa !39
  %245 = icmp slt i32 %240, %244
  br i1 %245, label %247, label %246

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

247:                                              ; preds = %239
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #6
  %248 = load ptr, ptr %34, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.ImDrawList, ptr %248, i32 0, i32 0
  %250 = load i32, ptr %36, align 4, !tbaa !17
  %251 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK8ImVectorI9ImDrawCmdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %249, i32 noundef %250)
  store ptr %251, ptr %37, align 8, !tbaa !5
  %252 = load ptr, ptr %37, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.ImDrawCmd, ptr %252, i32 0, i32 3
  %254 = load ptr, ptr %253, align 8, !tbaa !40
  %255 = icmp ne ptr %254, null
  br i1 %255, label %256, label %262

256:                                              ; preds = %247
  %257 = load ptr, ptr %37, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.ImDrawCmd, ptr %257, i32 0, i32 3
  %259 = load ptr, ptr %258, align 8, !tbaa !40
  %260 = load ptr, ptr %34, align 8, !tbaa !5
  %261 = load ptr, ptr %37, align 8, !tbaa !5
  call void %259(ptr noundef %260, ptr noundef %261)
  br label %345

262:                                              ; preds = %247
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #6
  %263 = load ptr, ptr %37, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.ImDrawCmd, ptr %263, i32 0, i32 1
  %265 = getelementptr inbounds %struct.ImVec4, ptr %264, i32 0, i32 0
  %266 = load float, ptr %265, align 4, !tbaa !43
  %267 = getelementptr inbounds %struct.ImVec2, ptr %32, i32 0, i32 0
  %268 = load float, ptr %267, align 4, !tbaa !44
  %269 = fsub float %266, %268
  %270 = load ptr, ptr %37, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.ImDrawCmd, ptr %270, i32 0, i32 1
  %272 = getelementptr inbounds %struct.ImVec4, ptr %271, i32 0, i32 1
  %273 = load float, ptr %272, align 4, !tbaa !45
  %274 = getelementptr inbounds %struct.ImVec2, ptr %32, i32 0, i32 1
  %275 = load float, ptr %274, align 4, !tbaa !46
  %276 = fsub float %273, %275
  %277 = load ptr, ptr %37, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.ImDrawCmd, ptr %277, i32 0, i32 1
  %279 = getelementptr inbounds %struct.ImVec4, ptr %278, i32 0, i32 2
  %280 = load float, ptr %279, align 4, !tbaa !47
  %281 = getelementptr inbounds %struct.ImVec2, ptr %32, i32 0, i32 0
  %282 = load float, ptr %281, align 4, !tbaa !44
  %283 = fsub float %280, %282
  %284 = load ptr, ptr %37, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.ImDrawCmd, ptr %284, i32 0, i32 1
  %286 = getelementptr inbounds %struct.ImVec4, ptr %285, i32 0, i32 3
  %287 = load float, ptr %286, align 4, !tbaa !48
  %288 = getelementptr inbounds %struct.ImVec2, ptr %32, i32 0, i32 1
  %289 = load float, ptr %288, align 4, !tbaa !46
  %290 = fsub float %287, %289
  call void @_ZN6ImVec4C2Effff(ptr noundef nonnull align 4 dereferenceable(16) %38, float noundef %269, float noundef %276, float noundef %283, float noundef %290)
  %291 = getelementptr inbounds %struct.ImVec4, ptr %38, i32 0, i32 0
  %292 = load float, ptr %291, align 4, !tbaa !49
  %293 = load i32, ptr %4, align 4, !tbaa !17
  %294 = sitofp i32 %293 to float
  %295 = fcmp olt float %292, %294
  br i1 %295, label %296, label %344

296:                                              ; preds = %262
  %297 = getelementptr inbounds %struct.ImVec4, ptr %38, i32 0, i32 1
  %298 = load float, ptr %297, align 4, !tbaa !50
  %299 = load i32, ptr %5, align 4, !tbaa !17
  %300 = sitofp i32 %299 to float
  %301 = fcmp olt float %298, %300
  br i1 %301, label %302, label %344

302:                                              ; preds = %296
  %303 = getelementptr inbounds %struct.ImVec4, ptr %38, i32 0, i32 2
  %304 = load float, ptr %303, align 4, !tbaa !51
  %305 = fcmp oge float %304, 0.000000e+00
  br i1 %305, label %306, label %344

306:                                              ; preds = %302
  %307 = getelementptr inbounds %struct.ImVec4, ptr %38, i32 0, i32 3
  %308 = load float, ptr %307, align 4, !tbaa !52
  %309 = fcmp oge float %308, 0.000000e+00
  br i1 %309, label %310, label %344

310:                                              ; preds = %306
  %311 = load ptr, ptr @glad_glScissor, align 8, !tbaa !5
  %312 = getelementptr inbounds %struct.ImVec4, ptr %38, i32 0, i32 0
  %313 = load float, ptr %312, align 4, !tbaa !49
  %314 = fptosi float %313 to i32
  %315 = load i32, ptr %5, align 4, !tbaa !17
  %316 = sitofp i32 %315 to float
  %317 = getelementptr inbounds %struct.ImVec4, ptr %38, i32 0, i32 3
  %318 = load float, ptr %317, align 4, !tbaa !52
  %319 = fsub float %316, %318
  %320 = fptosi float %319 to i32
  %321 = getelementptr inbounds %struct.ImVec4, ptr %38, i32 0, i32 2
  %322 = load float, ptr %321, align 4, !tbaa !51
  %323 = getelementptr inbounds %struct.ImVec4, ptr %38, i32 0, i32 0
  %324 = load float, ptr %323, align 4, !tbaa !49
  %325 = fsub float %322, %324
  %326 = fptosi float %325 to i32
  %327 = getelementptr inbounds %struct.ImVec4, ptr %38, i32 0, i32 3
  %328 = load float, ptr %327, align 4, !tbaa !52
  %329 = getelementptr inbounds %struct.ImVec4, ptr %38, i32 0, i32 1
  %330 = load float, ptr %329, align 4, !tbaa !50
  %331 = fsub float %328, %330
  %332 = fptosi float %331 to i32
  call void %311(i32 noundef %314, i32 noundef %320, i32 noundef %326, i32 noundef %332)
  %333 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  %334 = load ptr, ptr %37, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.ImDrawCmd, ptr %334, i32 0, i32 2
  %336 = load ptr, ptr %335, align 8, !tbaa !53
  %337 = ptrtoint ptr %336 to i64
  %338 = trunc i64 %337 to i32
  call void %333(i32 noundef 3553, i32 noundef %338)
  %339 = load ptr, ptr @glad_glDrawElements, align 8, !tbaa !5
  %340 = load ptr, ptr %37, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.ImDrawCmd, ptr %340, i32 0, i32 0
  %342 = load i32, ptr %341, align 8, !tbaa !54
  %343 = load ptr, ptr %35, align 8, !tbaa !5
  call void %339(i32 noundef 4, i32 noundef %342, i32 noundef 5123, ptr noundef %343)
  br label %344

344:                                              ; preds = %310, %306, %302, %296, %262
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #6
  br label %345

345:                                              ; preds = %344, %256
  %346 = load ptr, ptr %37, align 8, !tbaa !5
  %347 = getelementptr inbounds %struct.ImDrawCmd, ptr %346, i32 0, i32 0
  %348 = load i32, ptr %347, align 8, !tbaa !54
  %349 = load ptr, ptr %35, align 8, !tbaa !5
  %350 = zext i32 %348 to i64
  %351 = getelementptr inbounds i16, ptr %349, i64 %350
  store ptr %351, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  br label %352

352:                                              ; preds = %345
  %353 = load i32, ptr %36, align 4, !tbaa !17
  %354 = add nsw i32 %353, 1
  store i32 %354, ptr %36, align 4, !tbaa !17
  br label %239, !llvm.loop !55

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

356:                                              ; preds = %355
  %357 = load i32, ptr %33, align 4, !tbaa !17
  %358 = add nsw i32 %357, 1
  store i32 %358, ptr %33, align 4, !tbaa !17
  br label %198, !llvm.loop !57

359:                                              ; preds = %204
  %360 = load ptr, ptr @glad_glDeleteVertexArrays, align 8, !tbaa !5
  call void %360(i32 noundef 1, ptr noundef %31)
  %361 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !5
  %362 = load i32, ptr %8, align 4, !tbaa !17
  call void %361(i32 noundef %362)
  %363 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  %364 = load i32, ptr %9, align 4, !tbaa !17
  call void %363(i32 noundef 3553, i32 noundef %364)
  %365 = load ptr, ptr @glad_glBindSampler, align 8, !tbaa !5
  %366 = load i32, ptr %10, align 4, !tbaa !17
  call void %365(i32 noundef 0, i32 noundef %366)
  %367 = load ptr, ptr @glad_glActiveTexture, align 8, !tbaa !5
  %368 = load i32, ptr %7, align 4, !tbaa !17
  call void %367(i32 noundef %368)
  %369 = load ptr, ptr @glad_glBindVertexArray, align 8, !tbaa !5
  %370 = load i32, ptr %12, align 4, !tbaa !17
  call void %369(i32 noundef %370)
  %371 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  %372 = load i32, ptr %11, align 4, !tbaa !17
  call void %371(i32 noundef 34962, i32 noundef %372)
  %373 = load ptr, ptr @glad_glBlendEquationSeparate, align 8, !tbaa !5
  %374 = load i32, ptr %20, align 4, !tbaa !17
  %375 = load i32, ptr %21, align 4, !tbaa !17
  call void %373(i32 noundef %374, i32 noundef %375)
  %376 = load ptr, ptr @glad_glBlendFuncSeparate, align 8, !tbaa !5
  %377 = load i32, ptr %16, align 4, !tbaa !17
  %378 = load i32, ptr %17, align 4, !tbaa !17
  %379 = load i32, ptr %18, align 4, !tbaa !17
  %380 = load i32, ptr %19, align 4, !tbaa !17
  call void %376(i32 noundef %377, i32 noundef %378, i32 noundef %379, i32 noundef %380)
  %381 = load i8, ptr %22, align 1, !tbaa !20
  %382 = icmp ne i8 %381, 0
  br i1 %382, label %383, label %385

383:                                              ; preds = %359
  %384 = load ptr, ptr @glad_glEnable, align 8, !tbaa !5
  call void %384(i32 noundef 3042)
  br label %387

385:                                              ; preds = %359
  %386 = load ptr, ptr @glad_glDisable, align 8, !tbaa !5
  call void %386(i32 noundef 3042)
  br label %387

387:                                              ; preds = %385, %383
  %388 = load i8, ptr %23, align 1, !tbaa !20
  %389 = icmp ne i8 %388, 0
  br i1 %389, label %390, label %392

390:                                              ; preds = %387
  %391 = load ptr, ptr @glad_glEnable, align 8, !tbaa !5
  call void %391(i32 noundef 2884)
  br label %394

392:                                              ; preds = %387
  %393 = load ptr, ptr @glad_glDisable, align 8, !tbaa !5
  call void %393(i32 noundef 2884)
  br label %394

394:                                              ; preds = %392, %390
  %395 = load i8, ptr %24, align 1, !tbaa !20
  %396 = icmp ne i8 %395, 0
  br i1 %396, label %397, label %399

397:                                              ; preds = %394
  %398 = load ptr, ptr @glad_glEnable, align 8, !tbaa !5
  call void %398(i32 noundef 2929)
  br label %401

399:                                              ; preds = %394
  %400 = load ptr, ptr @glad_glDisable, align 8, !tbaa !5
  call void %400(i32 noundef 2929)
  br label %401

401:                                              ; preds = %399, %397
  %402 = load i8, ptr %25, align 1, !tbaa !20
  %403 = icmp ne i8 %402, 0
  br i1 %403, label %404, label %406

404:                                              ; preds = %401
  %405 = load ptr, ptr @glad_glEnable, align 8, !tbaa !5
  call void %405(i32 noundef 3089)
  br label %408

406:                                              ; preds = %401
  %407 = load ptr, ptr @glad_glDisable, align 8, !tbaa !5
  call void %407(i32 noundef 3089)
  br label %408

408:                                              ; preds = %406, %404
  %409 = load ptr, ptr @glad_glPolygonMode, align 8, !tbaa !5
  %410 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
  %411 = load i32, ptr %410, align 4, !tbaa !17
  call void %409(i32 noundef 1032, i32 noundef %411)
  %412 = load ptr, ptr @glad_glViewport, align 8, !tbaa !5
  %413 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 0
  %414 = load i32, ptr %413, align 16, !tbaa !17
  %415 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 1
  %416 = load i32, ptr %415, align 4, !tbaa !17
  %417 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 2
  %418 = load i32, ptr %417, align 8, !tbaa !17
  %419 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 3
  %420 = load i32, ptr %419, align 4, !tbaa !17
  call void %412(i32 noundef %414, i32 noundef %416, i32 noundef %418, i32 noundef %420)
  %421 = load ptr, ptr @glad_glScissor, align 8, !tbaa !5
  %422 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 0
  %423 = load i32, ptr %422, align 16, !tbaa !17
  %424 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 1
  %425 = load i32, ptr %424, align 4, !tbaa !17
  %426 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 2
  %427 = load i32, ptr %426, align 8, !tbaa !17
  %428 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 3
  %429 = load i32, ptr %428, align 4, !tbaa !17
  call void %421(i32 noundef %423, i32 noundef %425, i32 noundef %427, i32 noundef %429)
  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 %430

430:                                              ; preds = %408, %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
  %431 = load i32, ptr %6, align 4
  switch i32 %431, label %433 [
    i32 0, label %432
    i32 1, label %432
  ]

432:                                              ; preds = %430, %430
  ret void

433:                                              ; preds = %430
  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(5432) ptr @_ZN5ImGui5GetIOEv() #2

declare void @_ZN10ImDrawData14ScaleClipRectsERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(44), ptr noundef nonnull align 4 dereferenceable(8)) #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

; 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, !11, i64 202, !11, i64 203, !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, !7, i64 284, !7, i64 796, !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, !12, i64 940, !12, i64 944, !13, i64 948, !13, i64 956, !7, i64 964, !7, i64 1008, !7, i64 1048, !7, i64 1053, !7, i64 1058, !7, i64 1063, !7, i64 1068, !7, i64 1088, !7, i64 1108, !7, i64 1148, !7, i64 1168, !7, i64 3216, !7, i64 5264, !7, i64 5348}
!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 }

@glad_glGetIntegerv = external local_unnamed_addr global ptr, align 8
@glad_glActiveTexture = external local_unnamed_addr global ptr, align 8
@glad_glIsEnabled = external local_unnamed_addr global ptr, align 8
@glad_glEnable = external local_unnamed_addr global ptr, align 8
@glad_glBlendEquation = external local_unnamed_addr global ptr, align 8
@glad_glBlendFunc = external local_unnamed_addr global ptr, align 8
@glad_glDisable = external local_unnamed_addr global ptr, align 8
@glad_glPolygonMode = external local_unnamed_addr global ptr, align 8
@glad_glViewport = external local_unnamed_addr global ptr, align 8
@glad_glUseProgram = external local_unnamed_addr global ptr, align 8
@_ZL14g_ShaderHandle = external hidden local_unnamed_addr global i32, align 4
@glad_glUniform1i = external local_unnamed_addr global ptr, align 8
@_ZL19g_AttribLocationTex = external hidden local_unnamed_addr global i32, align 4
@glad_glUniformMatrix4fv = external local_unnamed_addr global ptr, align 8
@_ZL23g_AttribLocationProjMtx = external hidden local_unnamed_addr global i32, align 4
@glad_glBindSampler = external local_unnamed_addr global ptr, align 8
@glad_glGenVertexArrays = external local_unnamed_addr global ptr, align 8
@glad_glBindVertexArray = external local_unnamed_addr global ptr, align 8
@glad_glBindBuffer = external local_unnamed_addr global ptr, align 8
@_ZL11g_VboHandle = external hidden local_unnamed_addr global i32, align 4
@glad_glEnableVertexAttribArray = 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
@glad_glVertexAttribPointer = external local_unnamed_addr global ptr, align 8
@glad_glBufferData = external local_unnamed_addr global ptr, align 8
@_ZL16g_ElementsHandle = external hidden local_unnamed_addr global i32, align 4
@glad_glScissor = external local_unnamed_addr global ptr, align 8
@glad_glBindTexture = external local_unnamed_addr global ptr, align 8
@glad_glDrawElements = external local_unnamed_addr global ptr, align 8
@glad_glDeleteVertexArrays = external local_unnamed_addr global ptr, align 8
@glad_glBlendEquationSeparate = external local_unnamed_addr global ptr, align 8
@glad_glBlendFuncSeparate = 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(5432) 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 %240, 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
  %31 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !9
  call void %31(i32 noundef 34016, ptr noundef nonnull %2)
  %32 = load ptr, ptr @glad_glActiveTexture, align 8, !tbaa !9
  call void %32(i32 noundef 33984)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  %33 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !9
  call void %33(i32 noundef 35725, ptr noundef nonnull %3)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  %34 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !9
  call void %34(i32 noundef 32873, ptr noundef nonnull %4)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  %35 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !9
  call void %35(i32 noundef 35097, ptr noundef nonnull %5)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  %36 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !9
  call void %36(i32 noundef 34964, ptr noundef nonnull %6)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %37 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !9
  call void %37(i32 noundef 34229, ptr noundef nonnull %7)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %38 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !9
  call void %38(i32 noundef 2880, ptr noundef nonnull %8)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  %39 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !9
  call void %39(i32 noundef 2978, ptr noundef nonnull %9)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  %40 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !9
  call void %40(i32 noundef 3088, ptr noundef nonnull %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #6
  %41 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !9
  call void %41(i32 noundef 32969, ptr noundef nonnull %11)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #6
  %42 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !9
  call void %42(i32 noundef 32968, ptr noundef nonnull %12)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  %43 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !9
  call void %43(i32 noundef 32971, ptr noundef nonnull %13)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #6
  %44 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !9
  call void %44(i32 noundef 32970, ptr noundef nonnull %14)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #6
  %45 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !9
  call void %45(i32 noundef 32777, ptr noundef nonnull %15)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #6
  %46 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !9
  call void %46(i32 noundef 34877, ptr noundef nonnull %16)
  %47 = load ptr, ptr @glad_glIsEnabled, align 8, !tbaa !9
  %48 = call zeroext i8 %47(i32 noundef 3042)
  %49 = load ptr, ptr @glad_glIsEnabled, align 8, !tbaa !9
  %50 = call zeroext i8 %49(i32 noundef 2884)
  %51 = load ptr, ptr @glad_glIsEnabled, align 8, !tbaa !9
  %52 = call zeroext i8 %51(i32 noundef 2929)
  %53 = load ptr, ptr @glad_glIsEnabled, align 8, !tbaa !9
  %54 = call zeroext i8 %53(i32 noundef 3089)
  %55 = load ptr, ptr @glad_glEnable, align 8, !tbaa !9
  call void %55(i32 noundef 3042)
  %56 = load ptr, ptr @glad_glBlendEquation, align 8, !tbaa !9
  call void %56(i32 noundef 32774)
  %57 = load ptr, ptr @glad_glBlendFunc, align 8, !tbaa !9
  call void %57(i32 noundef 770, i32 noundef 771)
  %58 = load ptr, ptr @glad_glDisable, align 8, !tbaa !9
  call void %58(i32 noundef 2884)
  %59 = load ptr, ptr @glad_glDisable, align 8, !tbaa !9
  call void %59(i32 noundef 2929)
  %60 = load ptr, ptr @glad_glEnable, align 8, !tbaa !9
  call void %60(i32 noundef 3089)
  %61 = load ptr, ptr @glad_glPolygonMode, align 8, !tbaa !9
  call void %61(i32 noundef 1032, i32 noundef 6914)
  %62 = load ptr, ptr @glad_glViewport, align 8, !tbaa !9
  %63 = extractelement <2 x i32> %26, i64 0
  %64 = extractelement <2 x i32> %26, i64 1
  call void %62(i32 noundef 0, i32 noundef 0, i32 noundef %63, i32 noundef %64)
  %65 = getelementptr inbounds i8, ptr %0, i64 28
  %66 = getelementptr inbounds i8, ptr %0, i64 32
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %17) #6
  %67 = getelementptr inbounds i8, ptr %17, i64 4
  %68 = getelementptr inbounds i8, ptr %17, i64 20
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %67, i8 0, i64 16, i1 false)
  %69 = getelementptr inbounds i8, ptr %17, i64 24
  %70 = getelementptr inbounds i8, ptr %17, i64 40
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %69, i8 0, i64 16, i1 false)
  store <2 x float> <float -1.000000e+00, float 0.000000e+00>, ptr %70, align 8, !tbaa !5
  %71 = getelementptr inbounds i8, ptr %17, i64 48
  %72 = load <2 x float>, ptr %65, align 4, !tbaa !5
  %73 = load <2 x float>, ptr %21, align 4, !tbaa !5
  %74 = fadd <2 x float> %72, %73
  %75 = fsub <2 x float> %74, %72
  %76 = extractelement <2 x float> %75, i64 0
  %77 = fdiv float 2.000000e+00, %76
  store float %77, ptr %17, align 16, !tbaa !5
  %78 = fsub <2 x float> %72, %74
  %79 = extractelement <2 x float> %78, i64 1
  %80 = fdiv float 2.000000e+00, %79
  store float %80, ptr %68, align 4, !tbaa !5
  %81 = fadd <2 x float> %72, %74
  %82 = shufflevector <2 x float> %72, <2 x float> %74, <2 x i32> <i32 0, i32 3>
  %83 = shufflevector <2 x float> %74, <2 x float> %72, <2 x i32> <i32 0, i32 3>
  %84 = fsub <2 x float> %82, %83
  %85 = fdiv <2 x float> %81, %84
  store <2 x float> %85, ptr %71, align 16, !tbaa !5
  %86 = getelementptr inbounds i8, ptr %17, i64 56
  store <2 x float> <float 0.000000e+00, float 1.000000e+00>, ptr %86, align 8, !tbaa !5
  %87 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !9
  %88 = load i32, ptr @_ZL14g_ShaderHandle, align 4, !tbaa !11
  call void %87(i32 noundef %88)
  %89 = load ptr, ptr @glad_glUniform1i, align 8, !tbaa !9
  %90 = load i32, ptr @_ZL19g_AttribLocationTex, align 4, !tbaa !11
  call void %89(i32 noundef %90, i32 noundef 0)
  %91 = load ptr, ptr @glad_glUniformMatrix4fv, align 8, !tbaa !9
  %92 = load i32, ptr @_ZL23g_AttribLocationProjMtx, align 4, !tbaa !11
  call void %91(i32 noundef %92, i32 noundef 1, i8 noundef zeroext 0, ptr noundef nonnull %17)
  %93 = load ptr, ptr @glad_glBindSampler, align 8, !tbaa !9
  call void %93(i32 noundef 0, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #6
  store i32 0, ptr %18, align 4, !tbaa !11
  %94 = load ptr, ptr @glad_glGenVertexArrays, align 8, !tbaa !9
  call void %94(i32 noundef 1, ptr noundef nonnull %18)
  %95 = load ptr, ptr @glad_glBindVertexArray, align 8, !tbaa !9
  %96 = load i32, ptr %18, align 4, !tbaa !11
  call void %95(i32 noundef %96)
  %97 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !9
  %98 = load i32, ptr @_ZL11g_VboHandle, align 4, !tbaa !11
  call void %97(i32 noundef 34962, i32 noundef %98)
  %99 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !9
  %100 = load i32, ptr @_ZL24g_AttribLocationPosition, align 4, !tbaa !11
  call void %99(i32 noundef %100)
  %101 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !9
  %102 = load i32, ptr @_ZL18g_AttribLocationUV, align 4, !tbaa !11
  call void %101(i32 noundef %102)
  %103 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !9
  %104 = load i32, ptr @_ZL21g_AttribLocationColor, align 4, !tbaa !11
  call void %103(i32 noundef %104)
  %105 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !9
  %106 = load i32, ptr @_ZL24g_AttribLocationPosition, align 4, !tbaa !11
  call void %105(i32 noundef %106, i32 noundef 2, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 20, ptr noundef null)
  %107 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !9
  %108 = load i32, ptr @_ZL18g_AttribLocationUV, align 4, !tbaa !11
  call void %107(i32 noundef %108, i32 noundef 2, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 20, ptr noundef nonnull inttoptr (i64 8 to ptr))
  %109 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !9
  %110 = load i32, ptr @_ZL21g_AttribLocationColor, align 4, !tbaa !11
  call void %109(i32 noundef %110, 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 %65, align 4, !tbaa !5
  %.sroa.5.0.copyload = load float, ptr %66, align 4, !tbaa !5
  %111 = getelementptr inbounds i8, ptr %0, i64 16
  %112 = load i32, ptr %111, align 8, !tbaa !13
  %113 = icmp sgt i32 %112, 0
  br i1 %113, label %.lr.ph90, label %._crit_edge91

.lr.ph90:                                         ; preds = %30
  %114 = getelementptr inbounds i8, ptr %0, i64 8
  %115 = uitofp nneg i32 %63 to float
  %116 = getelementptr inbounds i8, ptr %19, i64 4
  %117 = uitofp nneg i32 %64 to float
  %118 = getelementptr inbounds i8, ptr %19, i64 8
  %119 = getelementptr inbounds i8, ptr %19, i64 12
  br label %163

._crit_edge91:                                    ; preds = %._crit_edge, %30
  %120 = load ptr, ptr @glad_glDeleteVertexArrays, align 8, !tbaa !9
  call void %120(i32 noundef 1, ptr noundef nonnull %18)
  %121 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !9
  %122 = load i32, ptr %3, align 4, !tbaa !11
  call void %121(i32 noundef %122)
  %123 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !9
  %124 = load i32, ptr %4, align 4, !tbaa !11
  call void %123(i32 noundef 3553, i32 noundef %124)
  %125 = load ptr, ptr @glad_glBindSampler, align 8, !tbaa !9
  %126 = load i32, ptr %5, align 4, !tbaa !11
  call void %125(i32 noundef 0, i32 noundef %126)
  %127 = load ptr, ptr @glad_glActiveTexture, align 8, !tbaa !9
  %128 = load i32, ptr %2, align 4, !tbaa !11
  call void %127(i32 noundef %128)
  %129 = load ptr, ptr @glad_glBindVertexArray, align 8, !tbaa !9
  %130 = load i32, ptr %7, align 4, !tbaa !11
  call void %129(i32 noundef %130)
  %131 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !9
  %132 = load i32, ptr %6, align 4, !tbaa !11
  call void %131(i32 noundef 34962, i32 noundef %132)
  %133 = load ptr, ptr @glad_glBlendEquationSeparate, align 8, !tbaa !9
  %134 = load i32, ptr %15, align 4, !tbaa !11
  %135 = load i32, ptr %16, align 4, !tbaa !11
  call void %133(i32 noundef %134, i32 noundef %135)
  %136 = load ptr, ptr @glad_glBlendFuncSeparate, align 8, !tbaa !9
  %137 = load i32, ptr %11, align 4, !tbaa !11
  %138 = load i32, ptr %12, align 4, !tbaa !11
  %139 = load i32, ptr %13, align 4, !tbaa !11
  %140 = load i32, ptr %14, align 4, !tbaa !11
  call void %136(i32 noundef %137, i32 noundef %138, i32 noundef %139, i32 noundef %140)
  %.not = icmp eq i8 %48, 0
  %glad_glDisable.val = load ptr, ptr @glad_glDisable, align 8
  %glad_glEnable.val = load ptr, ptr @glad_glEnable, align 8
  %141 = select i1 %.not, ptr %glad_glDisable.val, ptr %glad_glEnable.val
  call void %141(i32 noundef 3042)
  %.not81 = icmp eq i8 %50, 0
  %glad_glDisable.val96 = load ptr, ptr @glad_glDisable, align 8
  %glad_glEnable.val97 = load ptr, ptr @glad_glEnable, align 8
  %142 = select i1 %.not81, ptr %glad_glDisable.val96, ptr %glad_glEnable.val97
  call void %142(i32 noundef 2884)
  %.not82 = icmp eq i8 %52, 0
  %glad_glDisable.val98 = load ptr, ptr @glad_glDisable, align 8
  %glad_glEnable.val99 = load ptr, ptr @glad_glEnable, align 8
  %143 = select i1 %.not82, ptr %glad_glDisable.val98, ptr %glad_glEnable.val99
  call void %143(i32 noundef 2929)
  %.not83 = icmp eq i8 %54, 0
  %glad_glDisable.val100 = load ptr, ptr @glad_glDisable, align 8
  %glad_glEnable.val101 = load ptr, ptr @glad_glEnable, align 8
  %144 = select i1 %.not83, ptr %glad_glDisable.val100, ptr %glad_glEnable.val101
  call void %144(i32 noundef 3089)
  %145 = load ptr, ptr @glad_glPolygonMode, align 8, !tbaa !9
  %146 = load i32, ptr %8, align 4, !tbaa !11
  call void %145(i32 noundef 1032, i32 noundef %146)
  %147 = load ptr, ptr @glad_glViewport, align 8, !tbaa !9
  %148 = load i32, ptr %9, align 16, !tbaa !11
  %149 = getelementptr inbounds i8, ptr %9, i64 4
  %150 = load i32, ptr %149, align 4, !tbaa !11
  %151 = getelementptr inbounds i8, ptr %9, i64 8
  %152 = load i32, ptr %151, align 8, !tbaa !11
  %153 = getelementptr inbounds i8, ptr %9, i64 12
  %154 = load i32, ptr %153, align 4, !tbaa !11
  call void %147(i32 noundef %148, i32 noundef %150, i32 noundef %152, i32 noundef %154)
  %155 = load ptr, ptr @glad_glScissor, align 8, !tbaa !9
  %156 = load i32, ptr %10, align 16, !tbaa !11
  %157 = getelementptr inbounds i8, ptr %10, i64 4
  %158 = load i32, ptr %157, align 4, !tbaa !11
  %159 = getelementptr inbounds i8, ptr %10, i64 8
  %160 = load i32, ptr %159, align 8, !tbaa !11
  %161 = getelementptr inbounds i8, ptr %10, i64 12
  %162 = load i32, ptr %161, align 4, !tbaa !11
  call void %155(i32 noundef %156, i32 noundef %158, i32 noundef %160, i32 noundef %162)
  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 %240

163:                                              ; preds = %.lr.ph90, %._crit_edge
  %indvars.iv = phi i64 [ 0, %.lr.ph90 ], [ %indvars.iv.next, %._crit_edge ]
  %164 = load ptr, ptr %114, align 8, !tbaa !17
  %165 = getelementptr inbounds ptr, ptr %164, i64 %indvars.iv
  %166 = load ptr, ptr %165, align 8, !tbaa !9
  %167 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !9
  %168 = load i32, ptr @_ZL11g_VboHandle, align 4, !tbaa !11
  call void %167(i32 noundef 34962, i32 noundef %168)
  %169 = load ptr, ptr @glad_glBufferData, align 8, !tbaa !9
  %170 = getelementptr inbounds i8, ptr %166, i64 32
  %171 = load i32, ptr %170, align 8, !tbaa !18
  %172 = sext i32 %171 to i64
  %173 = mul nsw i64 %172, 20
  %174 = getelementptr inbounds i8, ptr %166, i64 40
  %175 = load ptr, ptr %174, align 8, !tbaa !27
  call void %169(i32 noundef 34962, i64 noundef %173, ptr noundef %175, i32 noundef 35040)
  %176 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !9
  %177 = load i32, ptr @_ZL16g_ElementsHandle, align 4, !tbaa !11
  call void %176(i32 noundef 34963, i32 noundef %177)
  %178 = load ptr, ptr @glad_glBufferData, align 8, !tbaa !9
  %179 = getelementptr inbounds i8, ptr %166, i64 16
  %180 = load i32, ptr %179, align 8, !tbaa !28
  %181 = sext i32 %180 to i64
  %182 = shl nsw i64 %181, 1
  %183 = getelementptr inbounds i8, ptr %166, i64 24
  %184 = load ptr, ptr %183, align 8, !tbaa !29
  call void %178(i32 noundef 34963, i64 noundef %182, ptr noundef %184, i32 noundef 35040)
  %185 = load i32, ptr %166, align 8, !tbaa !30
  %186 = icmp sgt i32 %185, 0
  br i1 %186, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %233, %163
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %187 = load i32, ptr %111, align 8, !tbaa !13
  %188 = sext i32 %187 to i64
  %189 = icmp slt i64 %indvars.iv.next, %188
  br i1 %189, label %163, label %._crit_edge91, !llvm.loop !31

.lr.ph:                                           ; preds = %163, %233
  %.087 = phi i32 [ %237, %233 ], [ 0, %163 ]
  %.07185 = phi ptr [ %236, %233 ], [ null, %163 ]
  %190 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK8ImVectorI9ImDrawCmdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %166, i32 noundef %.087)
  %191 = getelementptr inbounds i8, ptr %190, i64 32
  %192 = load ptr, ptr %191, align 8, !tbaa !33
  %.not84 = icmp eq ptr %192, null
  br i1 %.not84, label %194, label %193

193:                                              ; preds = %.lr.ph
  call void %192(ptr noundef nonnull %166, ptr noundef nonnull %190)
  br label %233

194:                                              ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #6
  %195 = getelementptr inbounds i8, ptr %190, i64 4
  %196 = load float, ptr %195, align 4, !tbaa !36
  %197 = fsub float %196, %.sroa.0.0.copyload
  %198 = getelementptr inbounds i8, ptr %190, i64 8
  %199 = load float, ptr %198, align 8, !tbaa !37
  %200 = fsub float %199, %.sroa.5.0.copyload
  %201 = getelementptr inbounds i8, ptr %190, i64 12
  %202 = load float, ptr %201, align 4, !tbaa !38
  %203 = fsub float %202, %.sroa.0.0.copyload
  %204 = getelementptr inbounds i8, ptr %190, i64 16
  %205 = load float, ptr %204, align 8, !tbaa !39
  %206 = fsub float %205, %.sroa.5.0.copyload
  call void @_ZN6ImVec4C2Effff(ptr noundef nonnull align 4 dereferenceable(16) %19, float noundef %197, float noundef %200, float noundef %203, float noundef %206)
  %207 = load float, ptr %19, align 4, !tbaa !40
  %208 = fcmp olt float %207, %115
  br i1 %208, label %209, label %232

209:                                              ; preds = %194
  %210 = load float, ptr %116, align 4, !tbaa !41
  %211 = fcmp olt float %210, %117
  %212 = load float, ptr %118, align 4
  %213 = fcmp oge float %212, 0.000000e+00
  %or.cond4 = select i1 %211, i1 %213, i1 false
  %214 = load float, ptr %119, align 4
  %215 = fcmp oge float %214, 0.000000e+00
  %or.cond7 = select i1 %or.cond4, i1 %215, i1 false
  br i1 %or.cond7, label %216, label %232

216:                                              ; preds = %209
  %217 = load ptr, ptr @glad_glScissor, align 8, !tbaa !9
  %218 = fptosi float %207 to i32
  %219 = fsub float %117, %214
  %220 = fptosi float %219 to i32
  %221 = fsub float %212, %207
  %222 = fptosi float %221 to i32
  %223 = fsub float %214, %210
  %224 = fptosi float %223 to i32
  call void %217(i32 noundef %218, i32 noundef %220, i32 noundef %222, i32 noundef %224)
  %225 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !9
  %226 = getelementptr inbounds i8, ptr %190, i64 24
  %227 = load ptr, ptr %226, align 8, !tbaa !42
  %228 = ptrtoint ptr %227 to i64
  %229 = trunc i64 %228 to i32
  call void %225(i32 noundef 3553, i32 noundef %229)
  %230 = load ptr, ptr @glad_glDrawElements, align 8, !tbaa !9
  %231 = load i32, ptr %190, align 8, !tbaa !43
  call void %230(i32 noundef 4, i32 noundef %231, i32 noundef 5123, ptr noundef %.07185)
  br label %232

232:                                              ; preds = %216, %209, %194
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #6
  br label %233

233:                                              ; preds = %232, %193
  %234 = load i32, ptr %190, align 8, !tbaa !43
  %235 = zext i32 %234 to i64
  %236 = getelementptr inbounds i16, ptr %.07185, i64 %235
  %237 = add nuw nsw i32 %.087, 1
  %238 = load i32, ptr %166, align 8, !tbaa !30
  %239 = icmp slt i32 %237, %238
  br i1 %239, label %.lr.ph, label %._crit_edge, !llvm.loop !44

240:                                              ; preds = %1, %._crit_edge91
  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(5432) 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

; 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

; 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