; LLVM IR from jasonlmfong/Model-Modifier :: Model-Modifier/src/external/imgui (imgui_impl_opengl3)

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

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

@imgl3wProcs = external dso_local global %union.GL3WProcs, align 8

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL32ImGui_ImplOpenGL3_GetBackendDatav() #1

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

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

64:                                               ; preds = %61, %1
  store i32 1, ptr %5, align 4
  br label %466

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

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

77:                                               ; preds = %65
  store i32 0, ptr %10, align 4, !tbaa !16
  br label %78

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

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

111:                                              ; preds = %78
  br label %112

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

124:                                              ; preds = %366, %112
  %125 = load i32, ptr %31, align 4, !tbaa !16
  %126 = load ptr, ptr %2, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.ImDrawData, ptr %126, i32 0, i32 1
  %128 = load i32, ptr %127, align 4, !tbaa !25
  %129 = icmp slt i32 %125, %128
  br i1 %129, label %131, label %130

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

131:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  %132 = load ptr, ptr %2, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.ImDrawData, ptr %132, i32 0, i32 4
  %134 = load ptr, ptr %133, align 8, !tbaa !26
  %135 = load i32, ptr %31, align 4, !tbaa !16
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds ptr, ptr %134, i64 %136
  %138 = load ptr, ptr %137, align 8, !tbaa !5
  store ptr %138, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #5
  %139 = load ptr, ptr %32, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.ImDrawList, ptr %139, i32 0, i32 2
  %141 = getelementptr inbounds %struct.ImVector.2, ptr %140, i32 0, i32 0
  %142 = load i32, ptr %141, align 8, !tbaa !27
  %143 = sext i32 %142 to i64
  %144 = mul nsw i64 %143, 20
  store i64 %144, ptr %33, align 8, !tbaa !39
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #5
  %145 = load ptr, ptr %32, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.ImDrawList, ptr %145, i32 0, i32 1
  %147 = getelementptr inbounds %struct.ImVector, ptr %146, i32 0, i32 0
  %148 = load i32, ptr %147, align 8, !tbaa !40
  %149 = sext i32 %148 to i64
  %150 = mul nsw i64 %149, 2
  store i64 %150, ptr %34, align 8, !tbaa !39
  %151 = load ptr, ptr %6, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %151, i32 0, i32 14
  %153 = load i8, ptr %152, align 1, !tbaa !41, !range !42, !noundef !43
  %154 = trunc i8 %153 to i1
  br i1 %154, label %155, label %196

155:                                              ; preds = %131
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %156, i32 0, i32 11
  %158 = load i64, ptr %157, align 8, !tbaa !44
  %159 = load i64, ptr %33, align 8, !tbaa !39
  %160 = icmp slt i64 %158, %159
  br i1 %160, label %161, label %169

161:                                              ; preds = %155
  %162 = load i64, ptr %33, align 8, !tbaa !39
  %163 = load ptr, ptr %6, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %163, i32 0, i32 11
  store i64 %162, ptr %164, align 8, !tbaa !44
  %165 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 9), align 8, !tbaa !19
  %166 = load ptr, ptr %6, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %166, i32 0, i32 11
  %168 = load i64, ptr %167, align 8, !tbaa !44
  call void %165(i32 noundef 34962, i64 noundef %168, ptr noundef null, i32 noundef 35040)
  br label %169

169:                                              ; preds = %161, %155
  %170 = load ptr, ptr %6, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %170, i32 0, i32 12
  %172 = load i64, ptr %171, align 8, !tbaa !45
  %173 = load i64, ptr %34, align 8, !tbaa !39
  %174 = icmp slt i64 %172, %173
  br i1 %174, label %175, label %183

175:                                              ; preds = %169
  %176 = load i64, ptr %34, align 8, !tbaa !39
  %177 = load ptr, ptr %6, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %177, i32 0, i32 12
  store i64 %176, ptr %178, align 8, !tbaa !45
  %179 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 9), align 8, !tbaa !19
  %180 = load ptr, ptr %6, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %180, i32 0, i32 12
  %182 = load i64, ptr %181, align 8, !tbaa !45
  call void %179(i32 noundef 34963, i64 noundef %182, ptr noundef null, i32 noundef 35040)
  br label %183

183:                                              ; preds = %175, %169
  %184 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 10), align 8, !tbaa !19
  %185 = load i64, ptr %33, align 8, !tbaa !39
  %186 = load ptr, ptr %32, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.ImDrawList, ptr %186, i32 0, i32 2
  %188 = getelementptr inbounds %struct.ImVector.2, ptr %187, i32 0, i32 2
  %189 = load ptr, ptr %188, align 8, !tbaa !46
  call void %184(i32 noundef 34962, i64 noundef 0, i64 noundef %185, ptr noundef %189)
  %190 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 10), align 8, !tbaa !19
  %191 = load i64, ptr %34, align 8, !tbaa !39
  %192 = load ptr, ptr %32, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.ImDrawList, ptr %192, i32 0, i32 1
  %194 = getelementptr inbounds %struct.ImVector, ptr %193, i32 0, i32 2
  %195 = load ptr, ptr %194, align 8, !tbaa !47
  call void %190(i32 noundef 34963, i64 noundef 0, i64 noundef %191, ptr noundef %195)
  br label %209

196:                                              ; preds = %131
  %197 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 9), align 8, !tbaa !19
  %198 = load i64, ptr %33, align 8, !tbaa !39
  %199 = load ptr, ptr %32, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.ImDrawList, ptr %199, i32 0, i32 2
  %201 = getelementptr inbounds %struct.ImVector.2, ptr %200, i32 0, i32 2
  %202 = load ptr, ptr %201, align 8, !tbaa !46
  call void %197(i32 noundef 34962, i64 noundef %198, ptr noundef %202, i32 noundef 35040)
  %203 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 9), align 8, !tbaa !19
  %204 = load i64, ptr %34, align 8, !tbaa !39
  %205 = load ptr, ptr %32, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.ImDrawList, ptr %205, i32 0, i32 1
  %207 = getelementptr inbounds %struct.ImVector, ptr %206, i32 0, i32 2
  %208 = load ptr, ptr %207, align 8, !tbaa !47
  call void %203(i32 noundef 34963, i64 noundef %204, ptr noundef %208, i32 noundef 35040)
  br label %209

209:                                              ; preds = %196, %183
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #5
  store i32 0, ptr %35, align 4, !tbaa !16
  br label %210

210:                                              ; preds = %362, %209
  %211 = load i32, ptr %35, align 4, !tbaa !16
  %212 = load ptr, ptr %32, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.ImDrawList, ptr %212, i32 0, i32 0
  %214 = getelementptr inbounds %struct.ImVector.1, ptr %213, i32 0, i32 0
  %215 = load i32, ptr %214, align 8, !tbaa !48
  %216 = icmp slt i32 %211, %215
  br i1 %216, label %218, label %217

217:                                              ; preds = %210
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #5
  br label %365

218:                                              ; preds = %210
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #5
  %219 = load ptr, ptr %32, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.ImDrawList, ptr %219, i32 0, i32 0
  %221 = load i32, ptr %35, align 4, !tbaa !16
  %222 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK8ImVectorI9ImDrawCmdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %220, i32 noundef %221)
  store ptr %222, ptr %36, align 8, !tbaa !5
  %223 = load ptr, ptr %36, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.ImDrawCmd, ptr %223, i32 0, i32 5
  %225 = load ptr, ptr %224, align 8, !tbaa !49
  %226 = icmp ne ptr %225, null
  br i1 %226, label %227, label %244

227:                                              ; preds = %218
  %228 = load ptr, ptr %36, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.ImDrawCmd, ptr %228, i32 0, i32 5
  %230 = load ptr, ptr %229, align 8, !tbaa !49
  %231 = icmp eq ptr %230, inttoptr (i64 -1 to ptr)
  br i1 %231, label %232, label %237

232:                                              ; preds = %227
  %233 = load ptr, ptr %2, align 8, !tbaa !5
  %234 = load i32, ptr %3, align 4, !tbaa !16
  %235 = load i32, ptr %4, align 4, !tbaa !16
  %236 = load i32, ptr %28, align 4, !tbaa !16
  call void @_ZL34ImGui_ImplOpenGL3_SetupRenderStateP10ImDrawDataiij(ptr noundef %233, i32 noundef %234, i32 noundef %235, i32 noundef %236)
  br label %243

237:                                              ; preds = %227
  %238 = load ptr, ptr %36, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.ImDrawCmd, ptr %238, i32 0, i32 5
  %240 = load ptr, ptr %239, align 8, !tbaa !49
  %241 = load ptr, ptr %32, align 8, !tbaa !5
  %242 = load ptr, ptr %36, align 8, !tbaa !5
  call void %240(ptr noundef %241, ptr noundef %242)
  br label %243

243:                                              ; preds = %237, %232
  br label %358

244:                                              ; preds = %218
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #5
  %245 = load ptr, ptr %36, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.ImDrawCmd, ptr %245, i32 0, i32 0
  %247 = getelementptr inbounds %struct.ImVec4, ptr %246, i32 0, i32 0
  %248 = load float, ptr %247, align 8, !tbaa !51
  %249 = getelementptr inbounds %struct.ImVec2, ptr %29, i32 0, i32 0
  %250 = load float, ptr %249, align 4, !tbaa !52
  %251 = fsub float %248, %250
  %252 = getelementptr inbounds %struct.ImVec2, ptr %30, i32 0, i32 0
  %253 = load float, ptr %252, align 4, !tbaa !52
  %254 = fmul float %251, %253
  %255 = load ptr, ptr %36, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.ImDrawCmd, ptr %255, i32 0, i32 0
  %257 = getelementptr inbounds %struct.ImVec4, ptr %256, i32 0, i32 1
  %258 = load float, ptr %257, align 4, !tbaa !53
  %259 = getelementptr inbounds %struct.ImVec2, ptr %29, i32 0, i32 1
  %260 = load float, ptr %259, align 4, !tbaa !54
  %261 = fsub float %258, %260
  %262 = getelementptr inbounds %struct.ImVec2, ptr %30, i32 0, i32 1
  %263 = load float, ptr %262, align 4, !tbaa !54
  %264 = fmul float %261, %263
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %37, float noundef %254, float noundef %264)
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #5
  %265 = load ptr, ptr %36, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.ImDrawCmd, ptr %265, i32 0, i32 0
  %267 = getelementptr inbounds %struct.ImVec4, ptr %266, i32 0, i32 2
  %268 = load float, ptr %267, align 8, !tbaa !55
  %269 = getelementptr inbounds %struct.ImVec2, ptr %29, i32 0, i32 0
  %270 = load float, ptr %269, align 4, !tbaa !52
  %271 = fsub float %268, %270
  %272 = getelementptr inbounds %struct.ImVec2, ptr %30, i32 0, i32 0
  %273 = load float, ptr %272, align 4, !tbaa !52
  %274 = fmul float %271, %273
  %275 = load ptr, ptr %36, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.ImDrawCmd, ptr %275, i32 0, i32 0
  %277 = getelementptr inbounds %struct.ImVec4, ptr %276, i32 0, i32 3
  %278 = load float, ptr %277, align 4, !tbaa !56
  %279 = getelementptr inbounds %struct.ImVec2, ptr %29, i32 0, i32 1
  %280 = load float, ptr %279, align 4, !tbaa !54
  %281 = fsub float %278, %280
  %282 = getelementptr inbounds %struct.ImVec2, ptr %30, i32 0, i32 1
  %283 = load float, ptr %282, align 4, !tbaa !54
  %284 = fmul float %281, %283
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %38, float noundef %274, float noundef %284)
  %285 = getelementptr inbounds %struct.ImVec2, ptr %38, i32 0, i32 0
  %286 = load float, ptr %285, align 4, !tbaa !52
  %287 = getelementptr inbounds %struct.ImVec2, ptr %37, i32 0, i32 0
  %288 = load float, ptr %287, align 4, !tbaa !52
  %289 = fcmp ole float %286, %288
  br i1 %289, label %296, label %290

290:                                              ; preds = %244
  %291 = getelementptr inbounds %struct.ImVec2, ptr %38, i32 0, i32 1
  %292 = load float, ptr %291, align 4, !tbaa !54
  %293 = getelementptr inbounds %struct.ImVec2, ptr %37, i32 0, i32 1
  %294 = load float, ptr %293, align 4, !tbaa !54
  %295 = fcmp ole float %292, %294
  br i1 %295, label %296, label %297

296:                                              ; preds = %290, %244
  store i32 7, ptr %5, align 4
  br label %355

297:                                              ; preds = %290
  %298 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 49), align 8, !tbaa !19
  %299 = getelementptr inbounds %struct.ImVec2, ptr %37, i32 0, i32 0
  %300 = load float, ptr %299, align 4, !tbaa !52
  %301 = fptosi float %300 to i32
  %302 = load i32, ptr %4, align 4, !tbaa !16
  %303 = sitofp i32 %302 to float
  %304 = getelementptr inbounds %struct.ImVec2, ptr %38, i32 0, i32 1
  %305 = load float, ptr %304, align 4, !tbaa !54
  %306 = fsub float %303, %305
  %307 = fptosi float %306 to i32
  %308 = getelementptr inbounds %struct.ImVec2, ptr %38, i32 0, i32 0
  %309 = load float, ptr %308, align 4, !tbaa !52
  %310 = getelementptr inbounds %struct.ImVec2, ptr %37, i32 0, i32 0
  %311 = load float, ptr %310, align 4, !tbaa !52
  %312 = fsub float %309, %311
  %313 = fptosi float %312 to i32
  %314 = getelementptr inbounds %struct.ImVec2, ptr %38, i32 0, i32 1
  %315 = load float, ptr %314, align 4, !tbaa !54
  %316 = getelementptr inbounds %struct.ImVec2, ptr %37, i32 0, i32 1
  %317 = load float, ptr %316, align 4, !tbaa !54
  %318 = fsub float %315, %317
  %319 = fptosi float %318 to i32
  call void %298(i32 noundef %301, i32 noundef %307, i32 noundef %313, i32 noundef %319)
  %320 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 4), align 8, !tbaa !19
  %321 = load ptr, ptr %36, align 8, !tbaa !5
  %322 = call noundef ptr @_ZNK9ImDrawCmd8GetTexIDEv(ptr noundef nonnull align 8 dereferenceable(56) %321)
  %323 = ptrtoint ptr %322 to i64
  %324 = trunc i64 %323 to i32
  call void %320(i32 noundef 3553, i32 noundef %324)
  %325 = load ptr, ptr %6, align 8, !tbaa !5
  %326 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %325, i32 0, i32 0
  %327 = load i32, ptr %326, align 8, !tbaa !20
  %328 = icmp uge i32 %327, 320
  br i1 %328, label %329, label %343

329:                                              ; preds = %297
  %330 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 25), align 8, !tbaa !19
  %331 = load ptr, ptr %36, align 8, !tbaa !5
  %332 = getelementptr inbounds %struct.ImDrawCmd, ptr %331, i32 0, i32 4
  %333 = load i32, ptr %332, align 8, !tbaa !57
  %334 = load ptr, ptr %36, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.ImDrawCmd, ptr %334, i32 0, i32 3
  %336 = load i32, ptr %335, align 4, !tbaa !58
  %337 = zext i32 %336 to i64
  %338 = mul i64 %337, 2
  %339 = inttoptr i64 %338 to ptr
  %340 = load ptr, ptr %36, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.ImDrawCmd, ptr %340, i32 0, i32 2
  %342 = load i32, ptr %341, align 8, !tbaa !59
  call void %330(i32 noundef 4, i32 noundef %333, i32 noundef 5123, ptr noundef %339, i32 noundef %342)
  br label %354

343:                                              ; preds = %297
  %344 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 24), align 8, !tbaa !19
  %345 = load ptr, ptr %36, align 8, !tbaa !5
  %346 = getelementptr inbounds %struct.ImDrawCmd, ptr %345, i32 0, i32 4
  %347 = load i32, ptr %346, align 8, !tbaa !57
  %348 = load ptr, ptr %36, align 8, !tbaa !5
  %349 = getelementptr inbounds %struct.ImDrawCmd, ptr %348, i32 0, i32 3
  %350 = load i32, ptr %349, align 4, !tbaa !58
  %351 = zext i32 %350 to i64
  %352 = mul i64 %351, 2
  %353 = inttoptr i64 %352 to ptr
  call void %344(i32 noundef 4, i32 noundef %347, i32 noundef 5123, ptr noundef %353)
  br label %354

354:                                              ; preds = %343, %329
  store i32 0, ptr %5, align 4
  br label %355

355:                                              ; preds = %354, %296
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #5
  %356 = load i32, ptr %5, align 4
  switch i32 %356, label %359 [
    i32 0, label %357
  ]

357:                                              ; preds = %355
  br label %358

358:                                              ; preds = %357, %243
  store i32 0, ptr %5, align 4
  br label %359

359:                                              ; preds = %358, %355
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #5
  %360 = load i32, ptr %5, align 4
  switch i32 %360, label %469 [
    i32 0, label %361
    i32 7, label %362
  ]

361:                                              ; preds = %359
  br label %362

362:                                              ; preds = %361, %359
  %363 = load i32, ptr %35, align 4, !tbaa !16
  %364 = add nsw i32 %363, 1
  store i32 %364, ptr %35, align 4, !tbaa !16
  br label %210, !llvm.loop !60

365:                                              ; preds = %217
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  br label %366

366:                                              ; preds = %365
  %367 = load i32, ptr %31, align 4, !tbaa !16
  %368 = add nsw i32 %367, 1
  store i32 %368, ptr %31, align 4, !tbaa !16
  br label %124, !llvm.loop !62

369:                                              ; preds = %130
  %370 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 20), align 8, !tbaa !19
  call void %370(i32 noundef 1, ptr noundef %28)
  %371 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 55), align 8, !tbaa !19
  %372 = load i32, ptr %8, align 4, !tbaa !16
  call void %371(i32 noundef %372)
  %373 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 4), align 8, !tbaa !19
  %374 = load i32, ptr %9, align 4, !tbaa !16
  call void %373(i32 noundef 3553, i32 noundef %374)
  %375 = load ptr, ptr %6, align 8, !tbaa !5
  %376 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %375, i32 0, i32 0
  %377 = load i32, ptr %376, align 8, !tbaa !20
  %378 = icmp uge i32 %377, 330
  br i1 %378, label %379, label %382

379:                                              ; preds = %369
  %380 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 3), align 8, !tbaa !19
  %381 = load i32, ptr %10, align 4, !tbaa !16
  call void %380(i32 noundef 0, i32 noundef %381)
  br label %382

382:                                              ; preds = %379, %369
  %383 = load ptr, ptr @imgl3wProcs, align 8, !tbaa !19
  %384 = load i32, ptr %7, align 4, !tbaa !16
  call void %383(i32 noundef %384)
  %385 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 5), align 8, !tbaa !19
  %386 = load i32, ptr %12, align 4, !tbaa !16
  call void %385(i32 noundef %386)
  %387 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 2), align 8, !tbaa !19
  %388 = load i32, ptr %11, align 4, !tbaa !16
  call void %387(i32 noundef 34962, i32 noundef %388)
  %389 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 7), align 8, !tbaa !19
  %390 = load i32, ptr %20, align 4, !tbaa !16
  %391 = load i32, ptr %21, align 4, !tbaa !16
  call void %389(i32 noundef %390, i32 noundef %391)
  %392 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 8), align 8, !tbaa !19
  %393 = load i32, ptr %16, align 4, !tbaa !16
  %394 = load i32, ptr %17, align 4, !tbaa !16
  %395 = load i32, ptr %18, align 4, !tbaa !16
  %396 = load i32, ptr %19, align 4, !tbaa !16
  call void %392(i32 noundef %393, i32 noundef %394, i32 noundef %395, i32 noundef %396)
  %397 = load i8, ptr %22, align 1, !tbaa !19
  %398 = icmp ne i8 %397, 0
  br i1 %398, label %399, label %401

399:                                              ; preds = %382
  %400 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 26), align 8, !tbaa !19
  call void %400(i32 noundef 3042)
  br label %403

401:                                              ; preds = %382
  %402 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 22), align 8, !tbaa !19
  call void %402(i32 noundef 3042)
  br label %403

403:                                              ; preds = %401, %399
  %404 = load i8, ptr %23, align 1, !tbaa !19
  %405 = icmp ne i8 %404, 0
  br i1 %405, label %406, label %408

406:                                              ; preds = %403
  %407 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 26), align 8, !tbaa !19
  call void %407(i32 noundef 2884)
  br label %410

408:                                              ; preds = %403
  %409 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 22), align 8, !tbaa !19
  call void %409(i32 noundef 2884)
  br label %410

410:                                              ; preds = %408, %406
  %411 = load i8, ptr %24, align 1, !tbaa !19
  %412 = icmp ne i8 %411, 0
  br i1 %412, label %413, label %415

413:                                              ; preds = %410
  %414 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 26), align 8, !tbaa !19
  call void %414(i32 noundef 2929)
  br label %417

415:                                              ; preds = %410
  %416 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 22), align 8, !tbaa !19
  call void %416(i32 noundef 2929)
  br label %417

417:                                              ; preds = %415, %413
  %418 = load i8, ptr %25, align 1, !tbaa !19
  %419 = icmp ne i8 %418, 0
  br i1 %419, label %420, label %422

420:                                              ; preds = %417
  %421 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 26), align 8, !tbaa !19
  call void %421(i32 noundef 2960)
  br label %424

422:                                              ; preds = %417
  %423 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 22), align 8, !tbaa !19
  call void %423(i32 noundef 2960)
  br label %424

424:                                              ; preds = %422, %420
  %425 = load i8, ptr %26, align 1, !tbaa !19
  %426 = icmp ne i8 %425, 0
  br i1 %426, label %427, label %429

427:                                              ; preds = %424
  %428 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 26), align 8, !tbaa !19
  call void %428(i32 noundef 3089)
  br label %431

429:                                              ; preds = %424
  %430 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 22), align 8, !tbaa !19
  call void %430(i32 noundef 3089)
  br label %431

431:                                              ; preds = %429, %427
  %432 = load ptr, ptr %6, align 8, !tbaa !5
  %433 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %432, i32 0, i32 0
  %434 = load i32, ptr %433, align 8, !tbaa !20
  %435 = icmp uge i32 %434, 310
  br i1 %435, label %436, label %444

436:                                              ; preds = %431
  %437 = load i8, ptr %27, align 1, !tbaa !19
  %438 = icmp ne i8 %437, 0
  br i1 %438, label %439, label %441

439:                                              ; preds = %436
  %440 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 26), align 8, !tbaa !19
  call void %440(i32 noundef 36765)
  br label %443

441:                                              ; preds = %436
  %442 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 22), align 8, !tbaa !19
  call void %442(i32 noundef 36765)
  br label %443

443:                                              ; preds = %441, %439
  br label %444

444:                                              ; preds = %443, %431
  %445 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 47), align 8, !tbaa !19
  %446 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
  %447 = load i32, ptr %446, align 4, !tbaa !16
  call void %445(i32 noundef 1032, i32 noundef %447)
  %448 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 57), align 8, !tbaa !19
  %449 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 0
  %450 = load i32, ptr %449, align 16, !tbaa !16
  %451 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 1
  %452 = load i32, ptr %451, align 4, !tbaa !16
  %453 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 2
  %454 = load i32, ptr %453, align 8, !tbaa !16
  %455 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 3
  %456 = load i32, ptr %455, align 4, !tbaa !16
  call void %448(i32 noundef %450, i32 noundef %452, i32 noundef %454, i32 noundef %456)
  %457 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 49), align 8, !tbaa !19
  %458 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 0
  %459 = load i32, ptr %458, align 16, !tbaa !16
  %460 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 1
  %461 = load i32, ptr %460, align 4, !tbaa !16
  %462 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 2
  %463 = load i32, ptr %462, align 8, !tbaa !16
  %464 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 3
  %465 = load i32, ptr %464, align 4, !tbaa !16
  call void %457(i32 noundef %459, i32 noundef %461, i32 noundef %463, i32 noundef %465)
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  store i32 0, ptr %5, align 4
  br label %466

466:                                              ; preds = %444, %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  %467 = load i32, ptr %5, align 4
  switch i32 %467, label %469 [
    i32 0, label %468
    i32 1, label %468
  ]

468:                                              ; preds = %466, %466
  ret void

469:                                              ; preds = %466, %359
  unreachable
}

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !14, i64 32}
!10 = !{!"_ZTS10ImDrawData", !11, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !6, i64 16, !13, i64 24, !13, i64 32, !13, i64 40}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTS6ImVec2", !14, i64 0, !14, i64 4}
!14 = !{!"float", !7, i64 0}
!15 = !{!10, !14, i64 40}
!16 = !{!12, !12, i64 0}
!17 = !{!10, !14, i64 36}
!18 = !{!10, !14, i64 44}
!19 = !{!7, !7, i64 0}
!20 = !{!21, !12, i64 0}
!21 = !{!"_ZTS22ImGui_ImplOpenGL3_Data", !12, i64 0, !7, i64 4, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !12, i64 64, !12, i64 68, !22, i64 72, !22, i64 80, !11, i64 88, !11, i64 89}
!22 = !{!"long", !7, i64 0}
!23 = !{i64 0, i64 4, !24, i64 4, i64 4, !24}
!24 = !{!14, !14, i64 0}
!25 = !{!10, !12, i64 4}
!26 = !{!10, !6, i64 16}
!27 = !{!28, !12, i64 32}
!28 = !{!"_ZTS10ImDrawList", !29, i64 0, !30, i64 16, !31, i64 32, !12, i64 48, !12, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !32, i64 88, !33, i64 104, !34, i64 120, !35, i64 136, !37, i64 168, !14, i64 192}
!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 = !{!"_ZTS15ImDrawCmdHeader", !36, i64 0, !6, i64 16, !12, i64 24}
!36 = !{!"_ZTS6ImVec4", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12}
!37 = !{!"_ZTS18ImDrawListSplitter", !12, i64 0, !12, i64 4, !38, i64 8}
!38 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !12, i64 0, !12, i64 4, !6, i64 8}
!39 = !{!22, !22, i64 0}
!40 = !{!28, !12, i64 16}
!41 = !{!21, !11, i64 89}
!42 = !{i8 0, i8 2}
!43 = !{}
!44 = !{!21, !22, i64 72}
!45 = !{!21, !22, i64 80}
!46 = !{!28, !6, i64 40}
!47 = !{!28, !6, i64 24}
!48 = !{!28, !12, i64 0}
!49 = !{!50, !6, i64 40}
!50 = !{!"_ZTS9ImDrawCmd", !36, i64 0, !6, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !6, i64 40, !6, i64 48}
!51 = !{!50, !14, i64 0}
!52 = !{!13, !14, i64 0}
!53 = !{!50, !14, i64 4}
!54 = !{!13, !14, i64 4}
!55 = !{!50, !14, i64 8}
!56 = !{!50, !14, i64 12}
!57 = !{!50, !12, i64 32}
!58 = !{!50, !12, i64 28}
!59 = !{!50, !12, i64 24}
!60 = distinct !{!60, !61}
!61 = !{!"llvm.loop.mustprogress"}
!62 = distinct !{!62, !61}


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

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

@imgl3wProcs = external dso_local local_unnamed_addr global %union.GL3WProcs, align 8

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL32ImGui_ImplOpenGL3_GetBackendDatav() local_unnamed_addr #1

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

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

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

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

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

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

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

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

._crit_edge100:                                   ; preds = %._crit_edge, %69
  %85 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 160), align 8, !tbaa !9
  call void %85(i32 noundef 1, ptr noundef nonnull %17)
  %86 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 440), align 8, !tbaa !9
  %87 = load i32, ptr %3, align 4, !tbaa !15
  call void %86(i32 noundef %87)
  %88 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 32), align 8, !tbaa !9
  %89 = load i32, ptr %4, align 4, !tbaa !15
  call void %88(i32 noundef 3553, i32 noundef %89)
  %90 = load i32, ptr %31, align 8, !tbaa !10
  %91 = icmp ugt i32 %90, 329
  br i1 %91, label %198, label %201

92:                                               ; preds = %.lr.ph99, %._crit_edge
  %indvars.iv = phi i64 [ 0, %.lr.ph99 ], [ %indvars.iv.next, %._crit_edge ]
  %93 = load ptr, ptr %78, align 8, !tbaa !20
  %94 = getelementptr inbounds ptr, ptr %93, i64 %indvars.iv
  %95 = load ptr, ptr %94, align 8, !tbaa !21
  %96 = getelementptr inbounds i8, ptr %95, i64 32
  %97 = load i32, ptr %96, align 8, !tbaa !22
  %98 = sext i32 %97 to i64
  %99 = mul nsw i64 %98, 20
  %100 = getelementptr inbounds i8, ptr %95, i64 16
  %101 = load i32, ptr %100, align 8, !tbaa !34
  %102 = sext i32 %101 to i64
  %103 = shl nsw i64 %102, 1
  %104 = load i8, ptr %79, align 1, !tbaa !35, !range !36, !noundef !37
  %105 = trunc nuw i8 %104 to i1
  br i1 %105, label %106, label %123

106:                                              ; preds = %92
  %107 = load i64, ptr %80, align 8, !tbaa !38
  %108 = icmp slt i64 %107, %99
  br i1 %108, label %109, label %111

109:                                              ; preds = %106
  store i64 %99, ptr %80, align 8, !tbaa !38
  %110 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 72), align 8, !tbaa !9
  call void %110(i32 noundef 34962, i64 noundef %99, ptr noundef null, i32 noundef 35040)
  br label %111

111:                                              ; preds = %109, %106
  %112 = load i64, ptr %81, align 8, !tbaa !39
  %113 = icmp slt i64 %112, %103
  br i1 %113, label %114, label %116

114:                                              ; preds = %111
  store i64 %103, ptr %81, align 8, !tbaa !39
  %115 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 72), align 8, !tbaa !9
  call void %115(i32 noundef 34963, i64 noundef %103, ptr noundef null, i32 noundef 35040)
  br label %116

116:                                              ; preds = %114, %111
  %117 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 80), align 8, !tbaa !9
  %118 = getelementptr inbounds i8, ptr %95, i64 40
  %119 = load ptr, ptr %118, align 8, !tbaa !40
  call void %117(i32 noundef 34962, i64 noundef 0, i64 noundef %99, ptr noundef %119)
  %120 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 80), align 8, !tbaa !9
  %121 = getelementptr inbounds i8, ptr %95, i64 24
  %122 = load ptr, ptr %121, align 8, !tbaa !41
  call void %120(i32 noundef 34963, i64 noundef 0, i64 noundef %103, ptr noundef %122)
  br label %130

123:                                              ; preds = %92
  %124 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 72), align 8, !tbaa !9
  %125 = getelementptr inbounds i8, ptr %95, i64 40
  %126 = load ptr, ptr %125, align 8, !tbaa !40
  call void %124(i32 noundef 34962, i64 noundef %99, ptr noundef %126, i32 noundef 35040)
  %127 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 72), align 8, !tbaa !9
  %128 = getelementptr inbounds i8, ptr %95, i64 24
  %129 = load ptr, ptr %128, align 8, !tbaa !41
  call void %127(i32 noundef 34963, i64 noundef %103, ptr noundef %129, i32 noundef 35040)
  br label %130

130:                                              ; preds = %123, %116
  %131 = load i32, ptr %95, align 8, !tbaa !42
  %132 = icmp sgt i32 %131, 0
  br i1 %132, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %194, %130
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %133 = load i32, ptr %75, align 4, !tbaa !16
  %134 = sext i32 %133 to i64
  %135 = icmp slt i64 %indvars.iv.next, %134
  br i1 %135, label %92, label %._crit_edge100, !llvm.loop !43

.lr.ph:                                           ; preds = %130, %194
  %.07996 = phi i32 [ %195, %194 ], [ 0, %130 ]
  %136 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK8ImVectorI9ImDrawCmdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %95, i32 noundef %.07996)
  %137 = getelementptr inbounds i8, ptr %136, i64 40
  %138 = load ptr, ptr %137, align 8, !tbaa !45
  %magicptr = ptrtoint ptr %138 to i64
  switch i64 %magicptr, label %141 [
    i64 0, label %142
    i64 -1, label %139
  ]

139:                                              ; preds = %.lr.ph
  %140 = load i32, ptr %17, align 4, !tbaa !15
  call void @_ZL34ImGui_ImplOpenGL3_SetupRenderStateP10ImDrawDataiij(ptr noundef %0, i32 noundef %72, i32 noundef %73, i32 noundef %140)
  br label %194

141:                                              ; preds = %.lr.ph
  call void %138(ptr noundef nonnull %95, ptr noundef nonnull %136)
  br label %194

142:                                              ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #4
  %143 = load float, ptr %136, align 8, !tbaa !47
  %144 = fsub float %143, %.sroa.039.0.copyload
  %145 = fmul float %.sroa.0.0.copyload, %144
  %146 = getelementptr inbounds i8, ptr %136, i64 4
  %147 = load float, ptr %146, align 4, !tbaa !48
  %148 = fsub float %147, %.sroa.541.0.copyload
  %149 = fmul float %.sroa.5.0.copyload, %148
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %18, float noundef %145, float noundef %149)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #4
  %150 = getelementptr inbounds i8, ptr %136, i64 8
  %151 = load float, ptr %150, align 8, !tbaa !49
  %152 = fsub float %151, %.sroa.039.0.copyload
  %153 = fmul float %.sroa.0.0.copyload, %152
  %154 = getelementptr inbounds i8, ptr %136, i64 12
  %155 = load float, ptr %154, align 4, !tbaa !50
  %156 = fsub float %155, %.sroa.541.0.copyload
  %157 = fmul float %.sroa.5.0.copyload, %156
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %19, float noundef %153, float noundef %157)
  %158 = load float, ptr %19, align 4, !tbaa !51
  %159 = load float, ptr %18, align 4, !tbaa !51
  %160 = fcmp ugt float %158, %159
  br i1 %160, label %161, label %.critedge

161:                                              ; preds = %142
  %162 = load float, ptr %82, align 4, !tbaa !52
  %163 = load float, ptr %83, align 4, !tbaa !52
  %164 = fcmp ugt float %162, %163
  br i1 %164, label %165, label %.critedge

165:                                              ; preds = %161
  %166 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 392), align 8, !tbaa !9
  %167 = fptosi float %159 to i32
  %168 = fsub float %84, %162
  %169 = fptosi float %168 to i32
  %170 = fsub float %158, %159
  %171 = fptosi float %170 to i32
  %172 = fsub float %162, %163
  %173 = fptosi float %172 to i32
  call void %166(i32 noundef %167, i32 noundef %169, i32 noundef %171, i32 noundef %173)
  %174 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 32), align 8, !tbaa !9
  %175 = call noundef ptr @_ZNK9ImDrawCmd8GetTexIDEv(ptr noundef nonnull align 8 dereferenceable(56) %136)
  %176 = ptrtoint ptr %175 to i64
  %177 = trunc i64 %176 to i32
  call void %174(i32 noundef 3553, i32 noundef %177)
  %178 = load i32, ptr %31, align 8, !tbaa !10
  %179 = icmp ugt i32 %178, 319
  %180 = getelementptr inbounds i8, ptr %136, i64 32
  %181 = load i32, ptr %180, align 8, !tbaa !53
  %182 = getelementptr inbounds i8, ptr %136, i64 28
  %183 = load i32, ptr %182, align 4, !tbaa !54
  %184 = zext i32 %183 to i64
  %185 = shl nuw nsw i64 %184, 1
  %186 = inttoptr i64 %185 to ptr
  br i1 %179, label %187, label %191

187:                                              ; preds = %165
  %188 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 200), align 8, !tbaa !9
  %189 = getelementptr inbounds i8, ptr %136, i64 24
  %190 = load i32, ptr %189, align 8, !tbaa !55
  call void %188(i32 noundef 4, i32 noundef %181, i32 noundef 5123, ptr noundef %186, i32 noundef %190)
  br label %193

191:                                              ; preds = %165
  %192 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 192), align 8, !tbaa !9
  call void %192(i32 noundef 4, i32 noundef %181, i32 noundef 5123, ptr noundef %186)
  br label %193

193:                                              ; preds = %187, %191
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #4
  br label %194

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

194:                                              ; preds = %141, %139, %193, %.critedge
  %195 = add nuw nsw i32 %.07996, 1
  %196 = load i32, ptr %95, align 8, !tbaa !42
  %197 = icmp slt i32 %195, %196
  br i1 %197, label %.lr.ph, label %._crit_edge, !llvm.loop !56

198:                                              ; preds = %._crit_edge100
  %199 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 24), align 8, !tbaa !9
  %200 = load i32, ptr %5, align 4, !tbaa !15
  call void %199(i32 noundef 0, i32 noundef %200)
  br label %201

201:                                              ; preds = %198, %._crit_edge100
  %202 = load ptr, ptr @imgl3wProcs, align 8, !tbaa !9
  %203 = load i32, ptr %2, align 4, !tbaa !15
  call void %202(i32 noundef %203)
  %204 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 40), align 8, !tbaa !9
  %205 = load i32, ptr %7, align 4, !tbaa !15
  call void %204(i32 noundef %205)
  %206 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 16), align 8, !tbaa !9
  %207 = load i32, ptr %6, align 4, !tbaa !15
  call void %206(i32 noundef 34962, i32 noundef %207)
  %208 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 56), align 8, !tbaa !9
  %209 = load i32, ptr %15, align 4, !tbaa !15
  %210 = load i32, ptr %16, align 4, !tbaa !15
  call void %208(i32 noundef %209, i32 noundef %210)
  %211 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 64), align 8, !tbaa !9
  %212 = load i32, ptr %11, align 4, !tbaa !15
  %213 = load i32, ptr %12, align 4, !tbaa !15
  %214 = load i32, ptr %13, align 4, !tbaa !15
  %215 = load i32, ptr %14, align 4, !tbaa !15
  call void %211(i32 noundef %212, i32 noundef %213, i32 noundef %214, i32 noundef %215)
  %.not = icmp eq i8 %54, 0
  %.val = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 176), align 8
  %.val109 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 208), align 8
  %216 = select i1 %.not, ptr %.val, ptr %.val109
  call void %216(i32 noundef 3042)
  %.not90 = icmp eq i8 %56, 0
  %.val110 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 176), align 8
  %.val111 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 208), align 8
  %217 = select i1 %.not90, ptr %.val110, ptr %.val111
  call void %217(i32 noundef 2884)
  %.not91 = icmp eq i8 %58, 0
  %.val112 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 176), align 8
  %.val113 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 208), align 8
  %218 = select i1 %.not91, ptr %.val112, ptr %.val113
  call void %218(i32 noundef 2929)
  %.not92 = icmp eq i8 %60, 0
  %.val114 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 176), align 8
  %.val115 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 208), align 8
  %219 = select i1 %.not92, ptr %.val114, ptr %.val115
  call void %219(i32 noundef 2960)
  %.not93 = icmp eq i8 %62, 0
  %.val116 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 176), align 8
  %.val117 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 208), align 8
  %220 = select i1 %.not93, ptr %.val116, ptr %.val117
  call void %220(i32 noundef 3089)
  %221 = load i32, ptr %31, align 8, !tbaa !10
  %222 = icmp ugt i32 %221, 309
  br i1 %222, label %.sink.split, label %224

.sink.split:                                      ; preds = %201
  %.val118 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 176), align 8
  %.val119 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 208), align 8
  %223 = select i1 %.not94, ptr %.val118, ptr %.val119
  call void %223(i32 noundef 36765)
  br label %224

224:                                              ; preds = %.sink.split, %201
  %225 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 376), align 8, !tbaa !9
  %226 = load i32, ptr %8, align 4, !tbaa !15
  call void %225(i32 noundef 1032, i32 noundef %226)
  %227 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 456), align 8, !tbaa !9
  %228 = load i32, ptr %9, align 16, !tbaa !15
  %229 = getelementptr inbounds i8, ptr %9, i64 4
  %230 = load i32, ptr %229, align 4, !tbaa !15
  %231 = getelementptr inbounds i8, ptr %9, i64 8
  %232 = load i32, ptr %231, align 8, !tbaa !15
  %233 = getelementptr inbounds i8, ptr %9, i64 12
  %234 = load i32, ptr %233, align 4, !tbaa !15
  call void %227(i32 noundef %228, i32 noundef %230, i32 noundef %232, i32 noundef %234)
  %235 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 392), align 8, !tbaa !9
  %236 = load i32, ptr %10, align 16, !tbaa !15
  %237 = getelementptr inbounds i8, ptr %10, i64 4
  %238 = load i32, ptr %237, align 4, !tbaa !15
  %239 = getelementptr inbounds i8, ptr %10, i64 8
  %240 = load i32, ptr %239, align 8, !tbaa !15
  %241 = getelementptr inbounds i8, ptr %10, i64 12
  %242 = load i32, ptr %241, align 4, !tbaa !15
  call void %235(i32 noundef %236, i32 noundef %238, i32 noundef %240, i32 noundef %242)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  br label %243

243:                                              ; preds = %1, %224
  ret void
}

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !12, i64 0}
!11 = !{!"_ZTS22ImGui_ImplOpenGL3_Data", !12, i64 0, !7, i64 4, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !12, i64 64, !12, i64 68, !13, i64 72, !13, i64 80, !14, i64 88, !14, i64 89}
!12 = !{!"int", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!12, !12, i64 0}
!16 = !{!17, !12, i64 4}
!17 = !{!"_ZTS10ImDrawData", !14, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !18, i64 16, !19, i64 24, !19, i64 32, !19, i64 40}
!18 = !{!"any pointer", !7, i64 0}
!19 = !{!"_ZTS6ImVec2", !6, i64 0, !6, i64 4}
!20 = !{!17, !18, i64 16}
!21 = !{!18, !18, i64 0}
!22 = !{!23, !12, i64 32}
!23 = !{!"_ZTS10ImDrawList", !24, i64 0, !25, i64 16, !26, i64 32, !12, i64 48, !12, i64 52, !18, i64 56, !18, i64 64, !18, i64 72, !18, i64 80, !27, i64 88, !28, i64 104, !29, i64 120, !30, i64 136, !32, i64 168, !6, i64 192}
!24 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !12, i64 0, !12, i64 4, !18, i64 8}
!25 = !{!"_ZTS8ImVectorItE", !12, i64 0, !12, i64 4, !18, i64 8}
!26 = !{!"_ZTS8ImVectorI10ImDrawVertE", !12, i64 0, !12, i64 4, !18, i64 8}
!27 = !{!"_ZTS8ImVectorI6ImVec4E", !12, i64 0, !12, i64 4, !18, i64 8}
!28 = !{!"_ZTS8ImVectorIPvE", !12, i64 0, !12, i64 4, !18, i64 8}
!29 = !{!"_ZTS8ImVectorI6ImVec2E", !12, i64 0, !12, i64 4, !18, i64 8}
!30 = !{!"_ZTS15ImDrawCmdHeader", !31, i64 0, !18, i64 16, !12, i64 24}
!31 = !{!"_ZTS6ImVec4", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!32 = !{!"_ZTS18ImDrawListSplitter", !12, i64 0, !12, i64 4, !33, i64 8}
!33 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !12, i64 0, !12, i64 4, !18, i64 8}
!34 = !{!23, !12, i64 16}
!35 = !{!11, !14, i64 89}
!36 = !{i8 0, i8 2}
!37 = !{}
!38 = !{!11, !13, i64 72}
!39 = !{!11, !13, i64 80}
!40 = !{!23, !18, i64 40}
!41 = !{!23, !18, i64 24}
!42 = !{!23, !12, i64 0}
!43 = distinct !{!43, !44}
!44 = !{!"llvm.loop.mustprogress"}
!45 = !{!46, !18, i64 40}
!46 = !{!"_ZTS9ImDrawCmd", !31, i64 0, !18, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !18, i64 40, !18, i64 48}
!47 = !{!46, !6, i64 0}
!48 = !{!46, !6, i64 4}
!49 = !{!46, !6, i64 8}
!50 = !{!46, !6, i64 12}
!51 = !{!19, !6, i64 0}
!52 = !{!19, !6, i64 4}
!53 = !{!46, !12, i64 32}
!54 = !{!46, !12, i64 28}
!55 = !{!46, !12, i64 24}
!56 = distinct !{!56, !44}


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