; LLVM IR from xhub/reshop :: gui/external/imgui/imgui_impl_opengl3.ll (Z37ImGui_ImplOpenGL3_CreateDeviceObjectsv)

; 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.ImGL3WProcs = type { [59 x ptr] }
%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], i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, i8, i8, i8, [5 x i8] }>

@imgl3wProcs = external dso_local global %union.ImGL3WProcs, align 8
@.str.16 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [245 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [216 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [305 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [282 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [204 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [160 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [207 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [182 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [6 x i8], align 1

; 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: nounwind
declare i32 @__isoc99_sscanf(ptr noundef, ptr noundef, ...) #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z37ImGui_ImplOpenGL3_CreateDeviceObjectsv() #2 {
  %1 = alloca ptr, align 8
  %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 ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca [2 x ptr], align 16
  %18 = alloca i32, align 4
  %19 = alloca [2 x ptr], align 16
  %20 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #3
  %21 = call noundef ptr @_ZL32ImGui_ImplOpenGL3_GetBackendDatav()
  store ptr %21, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  %22 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 34), align 8, !tbaa !9
  call void %22(i32 noundef 32873, ptr noundef %2)
  %23 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 34), align 8, !tbaa !9
  call void %23(i32 noundef 34964, ptr noundef %3)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  store i32 0, ptr %4, align 4, !tbaa !10
  %24 = load ptr, ptr %1, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %24, i32 0, i32 0
  %26 = load i32, ptr %25, align 8, !tbaa !12
  %27 = icmp uge i32 %26, 210
  br i1 %27, label %28, label %31

28:                                               ; preds = %0
  %29 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 34), align 8, !tbaa !9
  call void %29(i32 noundef 35055, ptr noundef %4)
  %30 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 2), align 8, !tbaa !9
  call void %30(i32 noundef 35052, i32 noundef 0)
  br label %31

31:                                               ; preds = %28, %0
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  %32 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 34), align 8, !tbaa !9
  call void %32(i32 noundef 34229, ptr noundef %5)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 130, ptr %6, align 4, !tbaa !10
  %33 = load ptr, ptr %1, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %33, i32 0, i32 1
  %35 = getelementptr inbounds [32 x i8], ptr %34, i64 0, i64 0
  %36 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %35, ptr noundef @.str.16, ptr noundef %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  store ptr @.str.17, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  store ptr @.str.18, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  store ptr @.str.19, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  store ptr @.str.20, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  store ptr @.str.21, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  store ptr @.str.22, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  store ptr @.str.23, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  store ptr @.str.24, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  store ptr null, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  store ptr null, ptr %16, align 8, !tbaa !5
  %37 = load i32, ptr %6, align 4, !tbaa !10
  %38 = icmp slt i32 %37, 130
  br i1 %38, label %39, label %42

39:                                               ; preds = %31
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %40, ptr %15, align 8, !tbaa !5
  %41 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %41, ptr %16, align 8, !tbaa !5
  br label %59

42:                                               ; preds = %31
  %43 = load i32, ptr %6, align 4, !tbaa !10
  %44 = icmp sge i32 %43, 410
  br i1 %44, label %45, label %48

45:                                               ; preds = %42
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %46, ptr %15, align 8, !tbaa !5
  %47 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %47, ptr %16, align 8, !tbaa !5
  br label %58

48:                                               ; preds = %42
  %49 = load i32, ptr %6, align 4, !tbaa !10
  %50 = icmp eq i32 %49, 300
  br i1 %50, label %51, label %54

51:                                               ; preds = %48
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %52, ptr %15, align 8, !tbaa !5
  %53 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %53, ptr %16, align 8, !tbaa !5
  br label %57

54:                                               ; preds = %48
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %55, ptr %15, align 8, !tbaa !5
  %56 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %56, ptr %16, align 8, !tbaa !5
  br label %57

57:                                               ; preds = %54, %51
  br label %58

58:                                               ; preds = %57, %45
  br label %59

59:                                               ; preds = %58, %39
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #3
  %60 = load ptr, ptr %1, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %60, i32 0, i32 1
  %62 = getelementptr inbounds [32 x i8], ptr %61, i64 0, i64 0
  store ptr %62, ptr %17, align 8, !tbaa !5
  %63 = getelementptr inbounds ptr, ptr %17, i64 1
  %64 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %64, ptr %63, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  %65 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 15), align 8, !tbaa !9
  %66 = call noundef i32 %65(i32 noundef 35633)
  store i32 %66, ptr %18, align 4, !tbaa !10
  %67 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 51), align 8, !tbaa !9
  %68 = load i32, ptr %18, align 4, !tbaa !10
  %69 = getelementptr inbounds [2 x ptr], ptr %17, i64 0, i64 0
  call void %67(i32 noundef %68, i32 noundef 2, ptr noundef %69, ptr noundef null)
  %70 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 13), align 8, !tbaa !9
  %71 = load i32, ptr %18, align 4, !tbaa !10
  call void %70(i32 noundef %71)
  %72 = load i32, ptr %18, align 4, !tbaa !10
  %73 = call noundef zeroext i1 @_ZL11CheckShaderjPKc(i32 noundef %72, ptr noundef @.str.25)
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #3
  %74 = load ptr, ptr %1, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %74, i32 0, i32 1
  %76 = getelementptr inbounds [32 x i8], ptr %75, i64 0, i64 0
  store ptr %76, ptr %19, align 8, !tbaa !5
  %77 = getelementptr inbounds ptr, ptr %19, i64 1
  %78 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %78, ptr %77, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  %79 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 15), align 8, !tbaa !9
  %80 = call noundef i32 %79(i32 noundef 35632)
  store i32 %80, ptr %20, align 4, !tbaa !10
  %81 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 51), align 8, !tbaa !9
  %82 = load i32, ptr %20, align 4, !tbaa !10
  %83 = getelementptr inbounds [2 x ptr], ptr %19, i64 0, i64 0
  call void %81(i32 noundef %82, i32 noundef 2, ptr noundef %83, ptr noundef null)
  %84 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 13), align 8, !tbaa !9
  %85 = load i32, ptr %20, align 4, !tbaa !10
  call void %84(i32 noundef %85)
  %86 = load i32, ptr %20, align 4, !tbaa !10
  %87 = call noundef zeroext i1 @_ZL11CheckShaderjPKc(i32 noundef %86, ptr noundef @.str.26)
  %88 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 14), align 8, !tbaa !9
  %89 = call noundef i32 %88()
  %90 = load ptr, ptr %1, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %90, i32 0, i32 8
  store i32 %89, ptr %91, align 8, !tbaa !16
  %92 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 1), align 8, !tbaa !9
  %93 = load ptr, ptr %1, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %93, i32 0, i32 8
  %95 = load i32, ptr %94, align 8, !tbaa !16
  %96 = load i32, ptr %18, align 4, !tbaa !10
  call void %92(i32 noundef %95, i32 noundef %96)
  %97 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 1), align 8, !tbaa !9
  %98 = load ptr, ptr %1, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %98, i32 0, i32 8
  %100 = load i32, ptr %99, align 8, !tbaa !16
  %101 = load i32, ptr %20, align 4, !tbaa !10
  call void %97(i32 noundef %100, i32 noundef %101)
  %102 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 46), align 8, !tbaa !9
  %103 = load ptr, ptr %1, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %103, i32 0, i32 8
  %105 = load i32, ptr %104, align 8, !tbaa !16
  call void %102(i32 noundef %105)
  %106 = load ptr, ptr %1, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %106, i32 0, i32 8
  %108 = load i32, ptr %107, align 8, !tbaa !16
  %109 = call noundef zeroext i1 @_ZL12CheckProgramjPKc(i32 noundef %108, ptr noundef @.str.27)
  %110 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 21), align 8, !tbaa !9
  %111 = load ptr, ptr %1, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %111, i32 0, i32 8
  %113 = load i32, ptr %112, align 8, !tbaa !16
  %114 = load i32, ptr %18, align 4, !tbaa !10
  call void %110(i32 noundef %113, i32 noundef %114)
  %115 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 21), align 8, !tbaa !9
  %116 = load ptr, ptr %1, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %116, i32 0, i32 8
  %118 = load i32, ptr %117, align 8, !tbaa !16
  %119 = load i32, ptr %20, align 4, !tbaa !10
  call void %115(i32 noundef %118, i32 noundef %119)
  %120 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 18), align 8, !tbaa !9
  %121 = load i32, ptr %18, align 4, !tbaa !10
  call void %120(i32 noundef %121)
  %122 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 18), align 8, !tbaa !9
  %123 = load i32, ptr %20, align 4, !tbaa !10
  call void %122(i32 noundef %123)
  %124 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 41), align 8, !tbaa !9
  %125 = load ptr, ptr %1, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %125, i32 0, i32 8
  %127 = load i32, ptr %126, align 8, !tbaa !16
  %128 = call noundef i32 %124(i32 noundef %127, ptr noundef @.str.28)
  %129 = load ptr, ptr %1, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %129, i32 0, i32 9
  store i32 %128, ptr %130, align 4, !tbaa !17
  %131 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 41), align 8, !tbaa !9
  %132 = load ptr, ptr %1, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %132, i32 0, i32 8
  %134 = load i32, ptr %133, align 8, !tbaa !16
  %135 = call noundef i32 %131(i32 noundef %134, ptr noundef @.str.29)
  %136 = load ptr, ptr %1, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %136, i32 0, i32 10
  store i32 %135, ptr %137, align 8, !tbaa !18
  %138 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 32), align 8, !tbaa !9
  %139 = load ptr, ptr %1, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %139, i32 0, i32 8
  %141 = load i32, ptr %140, align 8, !tbaa !16
  %142 = call noundef i32 %138(i32 noundef %141, ptr noundef @.str.30)
  %143 = load ptr, ptr %1, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %143, i32 0, i32 11
  store i32 %142, ptr %144, align 4, !tbaa !19
  %145 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 32), align 8, !tbaa !9
  %146 = load ptr, ptr %1, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %146, i32 0, i32 8
  %148 = load i32, ptr %147, align 8, !tbaa !16
  %149 = call noundef i32 %145(i32 noundef %148, ptr noundef @.str.31)
  %150 = load ptr, ptr %1, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %150, i32 0, i32 12
  store i32 %149, ptr %151, align 8, !tbaa !20
  %152 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 32), align 8, !tbaa !9
  %153 = load ptr, ptr %1, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %153, i32 0, i32 8
  %155 = load i32, ptr %154, align 8, !tbaa !16
  %156 = call noundef i32 %152(i32 noundef %155, ptr noundef @.str.32)
  %157 = load ptr, ptr %1, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %157, i32 0, i32 13
  store i32 %156, ptr %158, align 4, !tbaa !21
  %159 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 29), align 8, !tbaa !9
  %160 = load ptr, ptr %1, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %160, i32 0, i32 14
  call void %159(i32 noundef 1, ptr noundef %161)
  %162 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 29), align 8, !tbaa !9
  %163 = load ptr, ptr %1, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %163, i32 0, i32 15
  call void %162(i32 noundef 1, ptr noundef %164)
  %165 = call noundef zeroext i1 @_Z36ImGui_ImplOpenGL3_CreateFontsTexturev()
  %166 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 4), align 8, !tbaa !9
  %167 = load i32, ptr %2, align 4, !tbaa !10
  call void %166(i32 noundef 3553, i32 noundef %167)
  %168 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 2), align 8, !tbaa !9
  %169 = load i32, ptr %3, align 4, !tbaa !10
  call void %168(i32 noundef 34962, i32 noundef %169)
  %170 = load ptr, ptr %1, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %170, i32 0, i32 0
  %172 = load i32, ptr %171, align 8, !tbaa !12
  %173 = icmp uge i32 %172, 210
  br i1 %173, label %174, label %177

174:                                              ; preds = %59
  %175 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 2), align 8, !tbaa !9
  %176 = load i32, ptr %4, align 4, !tbaa !10
  call void %175(i32 noundef 35052, i32 noundef %176)
  br label %177

177:                                              ; preds = %174, %59
  %178 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 5), align 8, !tbaa !9
  %179 = load i32, ptr %5, align 4, !tbaa !10
  call void %178(i32 noundef %179)
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #3
  ret i1 true
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z36ImGui_ImplOpenGL3_CreateFontsTexturev() #2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL11CheckShaderjPKc(i32 noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL12CheckProgramjPKc(i32 noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind "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 = { 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 #3 = { 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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"_ZTS22ImGui_ImplOpenGL3_Data", !11, i64 0, !7, i64 4, !14, i64 36, !14, i64 37, !14, i64 38, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !15, i64 80, !15, i64 88, !14, i64 96, !14, i64 97, !14, i64 98}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!13, !11, i64 48}
!17 = !{!13, !11, i64 52}
!18 = !{!13, !11, i64 56}
!19 = !{!13, !11, i64 60}
!20 = !{!13, !11, i64 64}
!21 = !{!13, !11, i64 68}


; 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.ImGL3WProcs = type { [59 x ptr] }

@imgl3wProcs = external dso_local local_unnamed_addr global %union.ImGL3WProcs, align 8
@.str.16 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [245 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [216 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [305 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [282 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [204 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [160 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [207 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [182 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [6 x i8], align 1

; 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: nofree nounwind
declare noundef i32 @__isoc99_sscanf(ptr nocapture noundef readonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z37ImGui_ImplOpenGL3_CreateDeviceObjectsv() local_unnamed_addr #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca [2 x ptr], align 16
  %7 = alloca [2 x ptr], align 16
  %8 = tail call noundef ptr @_ZL32ImGui_ImplOpenGL3_GetBackendDatav()
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
  %9 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 272), align 8, !tbaa !5
  call void %9(i32 noundef 32873, ptr noundef nonnull %1)
  %10 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 272), align 8, !tbaa !5
  call void %10(i32 noundef 34964, ptr noundef nonnull %2)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  store i32 0, ptr %3, align 4, !tbaa !8
  %11 = load i32, ptr %8, align 8, !tbaa !10
  %12 = icmp ugt i32 %11, 209
  br i1 %12, label %13, label %16

13:                                               ; preds = %0
  %14 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 272), align 8, !tbaa !5
  call void %14(i32 noundef 35055, ptr noundef nonnull %3)
  %15 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 16), align 8, !tbaa !5
  call void %15(i32 noundef 35052, i32 noundef 0)
  br label %16

16:                                               ; preds = %13, %0
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
  %17 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 272), align 8, !tbaa !5
  call void %17(i32 noundef 34229, ptr noundef nonnull %4)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
  store i32 130, ptr %5, align 4, !tbaa !8
  %18 = getelementptr inbounds i8, ptr %8, i64 4
  %19 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %18, ptr noundef nonnull @.str.16, ptr noundef nonnull %5) #3
  %20 = load i32, ptr %5, align 4, !tbaa !8
  %21 = icmp slt i32 %20, 130
  br i1 %21, label %26, label %22

22:                                               ; preds = %16
  %23 = icmp ugt i32 %20, 409
  br i1 %23, label %26, label %24

24:                                               ; preds = %22
  %25 = icmp eq i32 %20, 300
  %.str.23..str.22 = select i1 %25, ptr @.str.23, ptr @.str.22
  %.str.19..str.18 = select i1 %25, ptr @.str.19, ptr @.str.18
  br label %26

26:                                               ; preds = %24, %22, %16
  %.045 = phi ptr [ @.str.21, %16 ], [ @.str.24, %22 ], [ %.str.23..str.22, %24 ]
  %.0 = phi ptr [ @.str.17, %16 ], [ @.str.20, %22 ], [ %.str.19..str.18, %24 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #3
  store ptr %18, ptr %6, align 16, !tbaa !14
  %27 = getelementptr inbounds i8, ptr %6, i64 8
  store ptr %.0, ptr %27, align 8, !tbaa !14
  %28 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 120), align 8, !tbaa !5
  %29 = call noundef i32 %28(i32 noundef 35633)
  %30 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 408), align 8, !tbaa !5
  call void %30(i32 noundef %29, i32 noundef 2, ptr noundef nonnull %6, ptr noundef null)
  %31 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 104), align 8, !tbaa !5
  call void %31(i32 noundef %29)
  %32 = call noundef zeroext i1 @_ZL11CheckShaderjPKc(i32 noundef %29, ptr noundef nonnull @.str.25)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #3
  store ptr %18, ptr %7, align 16, !tbaa !14
  %33 = getelementptr inbounds i8, ptr %7, i64 8
  store ptr %.045, ptr %33, align 8, !tbaa !14
  %34 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 120), align 8, !tbaa !5
  %35 = call noundef i32 %34(i32 noundef 35632)
  %36 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 408), align 8, !tbaa !5
  call void %36(i32 noundef %35, i32 noundef 2, ptr noundef nonnull %7, ptr noundef null)
  %37 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 104), align 8, !tbaa !5
  call void %37(i32 noundef %35)
  %38 = call noundef zeroext i1 @_ZL11CheckShaderjPKc(i32 noundef %35, ptr noundef nonnull @.str.26)
  %39 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 112), align 8, !tbaa !5
  %40 = call noundef i32 %39()
  %41 = getelementptr inbounds i8, ptr %8, i64 48
  store i32 %40, ptr %41, align 8, !tbaa !16
  %42 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 8), align 8, !tbaa !5
  call void %42(i32 noundef %40, i32 noundef %29)
  %43 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 8), align 8, !tbaa !5
  %44 = load i32, ptr %41, align 8, !tbaa !16
  call void %43(i32 noundef %44, i32 noundef %35)
  %45 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 368), align 8, !tbaa !5
  %46 = load i32, ptr %41, align 8, !tbaa !16
  call void %45(i32 noundef %46)
  %47 = load i32, ptr %41, align 8, !tbaa !16
  %48 = call noundef zeroext i1 @_ZL12CheckProgramjPKc(i32 noundef %47, ptr noundef nonnull @.str.27)
  %49 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 168), align 8, !tbaa !5
  %50 = load i32, ptr %41, align 8, !tbaa !16
  call void %49(i32 noundef %50, i32 noundef %29)
  %51 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 168), align 8, !tbaa !5
  %52 = load i32, ptr %41, align 8, !tbaa !16
  call void %51(i32 noundef %52, i32 noundef %35)
  %53 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 144), align 8, !tbaa !5
  call void %53(i32 noundef %29)
  %54 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 144), align 8, !tbaa !5
  call void %54(i32 noundef %35)
  %55 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 328), align 8, !tbaa !5
  %56 = load i32, ptr %41, align 8, !tbaa !16
  %57 = call noundef i32 %55(i32 noundef %56, ptr noundef nonnull @.str.28)
  %58 = getelementptr inbounds i8, ptr %8, i64 52
  store i32 %57, ptr %58, align 4, !tbaa !17
  %59 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 328), align 8, !tbaa !5
  %60 = load i32, ptr %41, align 8, !tbaa !16
  %61 = call noundef i32 %59(i32 noundef %60, ptr noundef nonnull @.str.29)
  %62 = getelementptr inbounds i8, ptr %8, i64 56
  store i32 %61, ptr %62, align 8, !tbaa !18
  %63 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 256), align 8, !tbaa !5
  %64 = load i32, ptr %41, align 8, !tbaa !16
  %65 = call noundef i32 %63(i32 noundef %64, ptr noundef nonnull @.str.30)
  %66 = getelementptr inbounds i8, ptr %8, i64 60
  store i32 %65, ptr %66, align 4, !tbaa !19
  %67 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 256), align 8, !tbaa !5
  %68 = load i32, ptr %41, align 8, !tbaa !16
  %69 = call noundef i32 %67(i32 noundef %68, ptr noundef nonnull @.str.31)
  %70 = getelementptr inbounds i8, ptr %8, i64 64
  store i32 %69, ptr %70, align 8, !tbaa !20
  %71 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 256), align 8, !tbaa !5
  %72 = load i32, ptr %41, align 8, !tbaa !16
  %73 = call noundef i32 %71(i32 noundef %72, ptr noundef nonnull @.str.32)
  %74 = getelementptr inbounds i8, ptr %8, i64 68
  store i32 %73, ptr %74, align 4, !tbaa !21
  %75 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 232), align 8, !tbaa !5
  %76 = getelementptr inbounds i8, ptr %8, i64 72
  call void %75(i32 noundef 1, ptr noundef nonnull %76)
  %77 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 232), align 8, !tbaa !5
  %78 = getelementptr inbounds i8, ptr %8, i64 76
  call void %77(i32 noundef 1, ptr noundef nonnull %78)
  %79 = call noundef zeroext i1 @_Z36ImGui_ImplOpenGL3_CreateFontsTexturev()
  %80 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 32), align 8, !tbaa !5
  %81 = load i32, ptr %1, align 4, !tbaa !8
  call void %80(i32 noundef 3553, i32 noundef %81)
  %82 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 16), align 8, !tbaa !5
  %83 = load i32, ptr %2, align 4, !tbaa !8
  call void %82(i32 noundef 34962, i32 noundef %83)
  %84 = load i32, ptr %8, align 8, !tbaa !10
  %85 = icmp ugt i32 %84, 209
  br i1 %85, label %86, label %89

86:                                               ; preds = %26
  %87 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 16), align 8, !tbaa !5
  %88 = load i32, ptr %3, align 4, !tbaa !8
  call void %87(i32 noundef 35052, i32 noundef %88)
  br label %89

89:                                               ; preds = %86, %26
  %90 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 40), align 8, !tbaa !5
  %91 = load i32, ptr %4, align 4, !tbaa !8
  call void %90(i32 noundef %91)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #3
  ret i1 true
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z36ImGui_ImplOpenGL3_CreateFontsTexturev() local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL11CheckShaderjPKc(i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL12CheckProgramjPKc(i32 noundef, ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nofree nounwind "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 = { 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 #3 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = !{!11, !9, i64 0}
!11 = !{!"_ZTS22ImGui_ImplOpenGL3_Data", !9, i64 0, !6, i64 4, !12, i64 36, !12, i64 37, !12, i64 38, !9, i64 40, !9, i64 44, !9, i64 48, !9, i64 52, !9, i64 56, !9, i64 60, !9, i64 64, !9, i64 68, !9, i64 72, !9, i64 76, !13, i64 80, !13, i64 88, !12, i64 96, !12, i64 97, !12, i64 98}
!12 = !{!"bool", !6, i64 0}
!13 = !{!"long", !6, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !6, i64 0}
!16 = !{!11, !9, i64 48}
!17 = !{!11, !9, i64 52}
!18 = !{!11, !9, i64 56}
!19 = !{!11, !9, i64 60}
!20 = !{!11, !9, i64 64}
!21 = !{!11, !9, i64 68}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass