; LLVM IR from hbatagelo/abcg :: abcg/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 { [59 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, 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 %472

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 50), 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 %475 [
    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 45), align 8, !tbaa !19
  %372 = load i32, ptr %8, align 4, !tbaa !16
  %373 = call noundef zeroext i8 %371(i32 noundef %372)
  %374 = icmp ne i8 %373, 0
  br i1 %374, label %375, label %378

375:                                              ; preds = %369
  %376 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 56), align 8, !tbaa !19
  %377 = load i32, ptr %8, align 4, !tbaa !16
  call void %376(i32 noundef %377)
  br label %378

378:                                              ; preds = %375, %369
  %379 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 4), align 8, !tbaa !19
  %380 = load i32, ptr %9, align 4, !tbaa !16
  call void %379(i32 noundef 3553, i32 noundef %380)
  %381 = load ptr, ptr %6, align 8, !tbaa !5
  %382 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %381, i32 0, i32 0
  %383 = load i32, ptr %382, align 8, !tbaa !20
  %384 = icmp uge i32 %383, 330
  br i1 %384, label %385, label %388

385:                                              ; preds = %378
  %386 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 3), align 8, !tbaa !19
  %387 = load i32, ptr %10, align 4, !tbaa !16
  call void %386(i32 noundef 0, i32 noundef %387)
  br label %388

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

405:                                              ; preds = %388
  %406 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 26), align 8, !tbaa !19
  call void %406(i32 noundef 3042)
  br label %409

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

409:                                              ; preds = %407, %405
  %410 = load i8, ptr %23, align 1, !tbaa !19
  %411 = icmp ne i8 %410, 0
  br i1 %411, label %412, label %414

412:                                              ; preds = %409
  %413 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 26), align 8, !tbaa !19
  call void %413(i32 noundef 2884)
  br label %416

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

416:                                              ; preds = %414, %412
  %417 = load i8, ptr %24, align 1, !tbaa !19
  %418 = icmp ne i8 %417, 0
  br i1 %418, label %419, label %421

419:                                              ; preds = %416
  %420 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 26), align 8, !tbaa !19
  call void %420(i32 noundef 2929)
  br label %423

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

423:                                              ; preds = %421, %419
  %424 = load i8, ptr %25, align 1, !tbaa !19
  %425 = icmp ne i8 %424, 0
  br i1 %425, label %426, label %428

426:                                              ; preds = %423
  %427 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 26), align 8, !tbaa !19
  call void %427(i32 noundef 2960)
  br label %430

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

430:                                              ; preds = %428, %426
  %431 = load i8, ptr %26, align 1, !tbaa !19
  %432 = icmp ne i8 %431, 0
  br i1 %432, label %433, label %435

433:                                              ; preds = %430
  %434 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 26), align 8, !tbaa !19
  call void %434(i32 noundef 3089)
  br label %437

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

437:                                              ; preds = %435, %433
  %438 = load ptr, ptr %6, align 8, !tbaa !5
  %439 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %438, i32 0, i32 0
  %440 = load i32, ptr %439, align 8, !tbaa !20
  %441 = icmp uge i32 %440, 310
  br i1 %441, label %442, label %450

442:                                              ; preds = %437
  %443 = load i8, ptr %27, align 1, !tbaa !19
  %444 = icmp ne i8 %443, 0
  br i1 %444, label %445, label %447

445:                                              ; preds = %442
  %446 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 26), align 8, !tbaa !19
  call void %446(i32 noundef 36765)
  br label %449

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

449:                                              ; preds = %447, %445
  br label %450

450:                                              ; preds = %449, %437
  %451 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 48), align 8, !tbaa !19
  %452 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
  %453 = load i32, ptr %452, align 4, !tbaa !16
  call void %451(i32 noundef 1032, i32 noundef %453)
  %454 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 58), align 8, !tbaa !19
  %455 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 0
  %456 = load i32, ptr %455, align 16, !tbaa !16
  %457 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 1
  %458 = load i32, ptr %457, align 4, !tbaa !16
  %459 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 2
  %460 = load i32, ptr %459, align 8, !tbaa !16
  %461 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 3
  %462 = load i32, ptr %461, align 4, !tbaa !16
  call void %454(i32 noundef %456, i32 noundef %458, i32 noundef %460, i32 noundef %462)
  %463 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 50), align 8, !tbaa !19
  %464 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 0
  %465 = load i32, ptr %464, align 16, !tbaa !16
  %466 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 1
  %467 = load i32, ptr %466, align 4, !tbaa !16
  %468 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 2
  %469 = load i32, ptr %468, align 8, !tbaa !16
  %470 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 3
  %471 = load i32, ptr %470, align 4, !tbaa !16
  call void %463(i32 noundef %465, i32 noundef %467, i32 noundef %469, i32 noundef %471)
  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 %472

472:                                              ; preds = %450, %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  %473 = load i32, ptr %5, align 4
  switch i32 %473, label %475 [
    i32 0, label %474
    i32 1, label %474
  ]

474:                                              ; preds = %472, %472
  ret void

475:                                              ; preds = %472, %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 { [59 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 %248, 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
  %.not95 = 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.ph100, label %._crit_edge101

.lr.ph100:                                        ; 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 %89

._crit_edge101:                                   ; 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 360), align 8, !tbaa !9
  %87 = load i32, ptr %3, align 4, !tbaa !15
  %88 = call noundef zeroext i8 %86(i32 noundef %87)
  %.not = icmp eq i8 %88, 0
  br i1 %.not, label %198, label %195

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

103:                                              ; preds = %89
  %104 = load i64, ptr %80, align 8, !tbaa !38
  %105 = icmp slt i64 %104, %96
  br i1 %105, label %106, label %108

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

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

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

113:                                              ; preds = %111, %108
  %114 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 80), align 8, !tbaa !9
  %115 = getelementptr inbounds i8, ptr %92, i64 40
  %116 = load ptr, ptr %115, align 8, !tbaa !40
  call void %114(i32 noundef 34962, i64 noundef 0, i64 noundef %96, ptr noundef %116)
  %117 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 80), align 8, !tbaa !9
  %118 = getelementptr inbounds i8, ptr %92, i64 24
  %119 = load ptr, ptr %118, align 8, !tbaa !41
  call void %117(i32 noundef 34963, i64 noundef 0, i64 noundef %100, ptr noundef %119)
  br label %127

120:                                              ; preds = %89
  %121 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 72), align 8, !tbaa !9
  %122 = getelementptr inbounds i8, ptr %92, i64 40
  %123 = load ptr, ptr %122, align 8, !tbaa !40
  call void %121(i32 noundef 34962, i64 noundef %96, ptr noundef %123, i32 noundef 35040)
  %124 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 72), align 8, !tbaa !9
  %125 = getelementptr inbounds i8, ptr %92, i64 24
  %126 = load ptr, ptr %125, align 8, !tbaa !41
  call void %124(i32 noundef 34963, i64 noundef %100, ptr noundef %126, i32 noundef 35040)
  br label %127

127:                                              ; preds = %120, %113
  %128 = load i32, ptr %92, align 8, !tbaa !42
  %129 = icmp sgt i32 %128, 0
  br i1 %129, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %191, %127
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %130 = load i32, ptr %75, align 4, !tbaa !16
  %131 = sext i32 %130 to i64
  %132 = icmp slt i64 %indvars.iv.next, %131
  br i1 %132, label %89, label %._crit_edge101, !llvm.loop !43

.lr.ph:                                           ; preds = %127, %191
  %.07997 = phi i32 [ %192, %191 ], [ 0, %127 ]
  %133 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK8ImVectorI9ImDrawCmdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %92, i32 noundef %.07997)
  %134 = getelementptr inbounds i8, ptr %133, i64 40
  %135 = load ptr, ptr %134, align 8, !tbaa !45
  %magicptr = ptrtoint ptr %135 to i64
  switch i64 %magicptr, label %138 [
    i64 0, label %139
    i64 -1, label %136
  ]

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

138:                                              ; preds = %.lr.ph
  call void %135(ptr noundef nonnull %92, ptr noundef nonnull %133)
  br label %191

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

158:                                              ; preds = %139
  %159 = load float, ptr %82, align 4, !tbaa !52
  %160 = load float, ptr %83, align 4, !tbaa !52
  %161 = fcmp ugt float %159, %160
  br i1 %161, label %162, label %.critedge

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

184:                                              ; preds = %162
  %185 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 200), align 8, !tbaa !9
  %186 = getelementptr inbounds i8, ptr %133, i64 24
  %187 = load i32, ptr %186, align 8, !tbaa !55
  call void %185(i32 noundef 4, i32 noundef %178, i32 noundef 5123, ptr noundef %183, i32 noundef %187)
  br label %190

188:                                              ; preds = %162
  %189 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 192), align 8, !tbaa !9
  call void %189(i32 noundef 4, i32 noundef %178, i32 noundef 5123, ptr noundef %183)
  br label %190

190:                                              ; preds = %184, %188
  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 %191

.critedge:                                        ; preds = %139, %158
  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 %191

191:                                              ; preds = %138, %136, %190, %.critedge
  %192 = add nuw nsw i32 %.07997, 1
  %193 = load i32, ptr %92, align 8, !tbaa !42
  %194 = icmp slt i32 %192, %193
  br i1 %194, label %.lr.ph, label %._crit_edge, !llvm.loop !56

195:                                              ; preds = %._crit_edge101
  %196 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 448), align 8, !tbaa !9
  %197 = load i32, ptr %3, align 4, !tbaa !15
  call void %196(i32 noundef %197)
  br label %198

198:                                              ; preds = %195, %._crit_edge101
  %199 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 32), align 8, !tbaa !9
  %200 = load i32, ptr %4, align 4, !tbaa !15
  call void %199(i32 noundef 3553, i32 noundef %200)
  %201 = load i32, ptr %31, align 8, !tbaa !10
  %202 = icmp ugt i32 %201, 329
  br i1 %202, label %203, label %206

203:                                              ; preds = %198
  %204 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 24), align 8, !tbaa !9
  %205 = load i32, ptr %5, align 4, !tbaa !15
  call void %204(i32 noundef 0, i32 noundef %205)
  br label %206

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

.sink.split:                                      ; preds = %206
  %.val119 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 176), align 8
  %.val120 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 208), align 8
  %228 = select i1 %.not95, ptr %.val119, ptr %.val120
  call void %228(i32 noundef 36765)
  br label %229

229:                                              ; preds = %.sink.split, %206
  %230 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 384), align 8, !tbaa !9
  %231 = load i32, ptr %8, align 4, !tbaa !15
  call void %230(i32 noundef 1032, i32 noundef %231)
  %232 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 464), align 8, !tbaa !9
  %233 = load i32, ptr %9, align 16, !tbaa !15
  %234 = getelementptr inbounds i8, ptr %9, i64 4
  %235 = load i32, ptr %234, align 4, !tbaa !15
  %236 = getelementptr inbounds i8, ptr %9, i64 8
  %237 = load i32, ptr %236, align 8, !tbaa !15
  %238 = getelementptr inbounds i8, ptr %9, i64 12
  %239 = load i32, ptr %238, align 4, !tbaa !15
  call void %232(i32 noundef %233, i32 noundef %235, i32 noundef %237, i32 noundef %239)
  %240 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 400), align 8, !tbaa !9
  %241 = load i32, ptr %10, align 16, !tbaa !15
  %242 = getelementptr inbounds i8, ptr %10, i64 4
  %243 = load i32, ptr %242, align 4, !tbaa !15
  %244 = getelementptr inbounds i8, ptr %10, i64 8
  %245 = load i32, ptr %244, align 8, !tbaa !15
  %246 = getelementptr inbounds i8, ptr %10, i64 12
  %247 = load i32, ptr %246, align 4, !tbaa !15
  call void %240(i32 noundef %241, i32 noundef %243, i32 noundef %245, i32 noundef %247)
  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 %248

248:                                              ; preds = %1, %229
  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