; LLVM IR from drohmer/cgp :: library/cgp/13_opengl/texture (texture)

; 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"

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"struct.cgp::image_structure" = type { i32, i32, i32, %"struct.cgp::numarray" }
%"struct.cgp::numarray" = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.cgp::opengl_texture_image_structure" = type { i32, i32, i32, i32, i32 }

@.str.2 = external hidden unnamed_addr constant [87 x i8], align 1
@glad_glBindTexture = external global ptr, align 8
@glad_glTexParameteri = external global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [1 x i8], align 1
@__func__._ZN3cgp30opengl_texture_image_structure25initialize_cubemap_on_gpuERKNS_15image_structureES3_S3_S3_S3_S3_ = external hidden unnamed_addr constant [26 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [38 x i8], align 1
@glad_glGenTextures = external global ptr, align 8
@glad_glTexImage2D = external global ptr, align 8

; Function Attrs: noreturn
declare void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN3cgp3ptrIhEEPKDaRKNS_8numarrayIT_EE(ptr noundef nonnull align 8 dereferenceable(24)) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN3cgpL19format_to_data_typeEi(i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN3cgpL19format_to_componentEi(i32 noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3cgp30opengl_texture_image_structure25initialize_cubemap_on_gpuERKNS_15image_structureES3_S3_S3_S3_S3_(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(40) %2, ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(40) %6) #3 align 2 personality ptr @__gxx_personality_v0 {
  %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 i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::allocator", align 1
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca %"class.std::allocator", align 1
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  %24 = alloca %"class.std::allocator", align 1
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = alloca %"class.std::allocator", align 1
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca %"class.std::allocator", align 1
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca %"class.std::allocator", align 1
  %31 = alloca %"class.std::__cxx11::basic_string", align 8
  %32 = alloca %"class.std::allocator", align 1
  %33 = alloca %"class.std::__cxx11::basic_string", align 8
  %34 = alloca %"class.std::allocator", align 1
  %35 = alloca %"class.std::__cxx11::basic_string", align 8
  %36 = alloca %"class.std::allocator", align 1
  %37 = alloca %"class.std::__cxx11::basic_string", align 8
  %38 = alloca %"class.std::allocator", align 1
  %39 = alloca %"class.std::__cxx11::basic_string", align 8
  %40 = alloca %"class.std::allocator", align 1
  %41 = alloca %"class.std::__cxx11::basic_string", align 8
  %42 = alloca %"class.std::allocator", align 1
  %43 = alloca %"class.std::__cxx11::basic_string", align 8
  %44 = alloca %"class.std::allocator", align 1
  %45 = alloca %"class.std::__cxx11::basic_string", align 8
  %46 = alloca %"class.std::allocator", align 1
  %47 = alloca %"class.std::__cxx11::basic_string", align 8
  %48 = alloca %"class.std::allocator", align 1
  %49 = alloca %"class.std::__cxx11::basic_string", align 8
  %50 = alloca %"class.std::allocator", align 1
  %51 = alloca %"class.std::__cxx11::basic_string", align 8
  %52 = alloca %"class.std::allocator", align 1
  %53 = alloca %"class.std::__cxx11::basic_string", align 8
  %54 = alloca %"class.std::allocator", align 1
  %55 = alloca %"class.std::__cxx11::basic_string", align 8
  %56 = alloca %"class.std::allocator", align 1
  %57 = alloca %"class.std::__cxx11::basic_string", align 8
  %58 = alloca %"class.std::allocator", align 1
  %59 = alloca %"class.std::__cxx11::basic_string", align 8
  %60 = alloca %"class.std::allocator", align 1
  %61 = alloca %"class.std::__cxx11::basic_string", align 8
  %62 = alloca %"class.std::allocator", align 1
  %63 = alloca %"class.std::__cxx11::basic_string", align 8
  %64 = alloca %"class.std::allocator", align 1
  %65 = alloca %"class.std::__cxx11::basic_string", align 8
  %66 = alloca %"class.std::allocator", align 1
  %67 = alloca i32, align 4
  %68 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  %69 = load ptr, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %70 = load ptr, ptr %9, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.cgp::image_structure", ptr %70, i32 0, i32 0
  %72 = load i32, ptr %71, align 8, !tbaa !9
  store i32 %72, ptr %15, align 4, !tbaa !18
  %73 = load i32, ptr %15, align 4, !tbaa !18
  %74 = getelementptr inbounds %"struct.cgp::opengl_texture_image_structure", ptr %69, i32 0, i32 1
  store i32 %73, ptr %74, align 4, !tbaa !19
  %75 = load i32, ptr %15, align 4, !tbaa !18
  %76 = getelementptr inbounds %"struct.cgp::opengl_texture_image_structure", ptr %69, i32 0, i32 2
  store i32 %75, ptr %76, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %77 = load ptr, ptr %9, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.cgp::image_structure", ptr %77, i32 0, i32 2
  %79 = load i32, ptr %78, align 8, !tbaa !22
  store i32 %79, ptr %16, align 4, !tbaa !23
  %80 = load i32, ptr %16, align 4, !tbaa !23
  %81 = icmp eq i32 %80, 1
  %82 = zext i1 %81 to i64
  %83 = select i1 %81, i32 32856, i32 32849
  %84 = getelementptr inbounds %"struct.cgp::opengl_texture_image_structure", ptr %69, i32 0, i32 3
  store i32 %83, ptr %84, align 4, !tbaa !24
  %85 = getelementptr inbounds %"struct.cgp::opengl_texture_image_structure", ptr %69, i32 0, i32 4
  store i32 34067, ptr %85, align 4, !tbaa !25
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.cgp::image_structure", ptr %86, i32 0, i32 1
  %88 = load i32, ptr %87, align 4, !tbaa !26
  %89 = load i32, ptr %15, align 4, !tbaa !18
  %90 = icmp eq i32 %88, %89
  %91 = zext i1 %90 to i32
  %92 = icmp eq i32 %91, 0
  br i1 %92, label %93, label %123

93:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %94 unwind label %99

94:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %95 unwind label %103

95:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %96 unwind label %107

96:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef @__func__._ZN3cgp30opengl_texture_image_structure25initialize_cubemap_on_gpuERKNS_15image_structureES3_S3_S3_S3_S3_, ptr noundef nonnull align 1 dereferenceable(1) %26)
          to label %97 unwind label %111

97:                                               ; preds = %96
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef nonnull align 8 dereferenceable(32) %25, i32 noundef 155) #5
          to label %98 unwind label %115

98:                                               ; preds = %97
  unreachable

99:                                               ; preds = %93
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %19, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %20, align 4
  br label %122

103:                                              ; preds = %94
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %19, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %20, align 4
  br label %121

107:                                              ; preds = %95
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %19, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %20, align 4
  br label %120

111:                                              ; preds = %96
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %19, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %20, align 4
  br label %119

115:                                              ; preds = %97
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %19, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %20, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #4
  br label %119

119:                                              ; preds = %115, %111
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #4
  br label %120

120:                                              ; preds = %119, %107
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #4
  br label %121

121:                                              ; preds = %120, %103
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #4
  br label %122

122:                                              ; preds = %121, %99
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #4
  br label %445

123:                                              ; preds = %7
  %124 = load i32, ptr %15, align 4, !tbaa !18
  %125 = load ptr, ptr %10, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.cgp::image_structure", ptr %125, i32 0, i32 0
  %127 = load i32, ptr %126, align 8, !tbaa !9
  %128 = icmp eq i32 %124, %127
  br i1 %128, label %129, label %135

129:                                              ; preds = %123
  %130 = load i32, ptr %15, align 4, !tbaa !18
  %131 = load ptr, ptr %10, align 8, !tbaa !5
  %132 = getelementptr inbounds %"struct.cgp::image_structure", ptr %131, i32 0, i32 1
  %133 = load i32, ptr %132, align 4, !tbaa !26
  %134 = icmp eq i32 %130, %133
  br label %135

135:                                              ; preds = %129, %123
  %136 = phi i1 [ false, %123 ], [ %134, %129 ]
  %137 = zext i1 %136 to i32
  %138 = icmp eq i32 %137, 0
  br i1 %138, label %139, label %169

139:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %140 unwind label %145

140:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %141 unwind label %149

141:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %32)
          to label %142 unwind label %153

142:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 32, ptr %33) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %34) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef @__func__._ZN3cgp30opengl_texture_image_structure25initialize_cubemap_on_gpuERKNS_15image_structureES3_S3_S3_S3_S3_, ptr noundef nonnull align 1 dereferenceable(1) %34)
          to label %143 unwind label %157

143:                                              ; preds = %142
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull align 8 dereferenceable(32) %33, i32 noundef 156) #5
          to label %144 unwind label %161

144:                                              ; preds = %143
  unreachable

145:                                              ; preds = %139
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %19, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %20, align 4
  br label %168

149:                                              ; preds = %140
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %19, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %20, align 4
  br label %167

153:                                              ; preds = %141
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %19, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %20, align 4
  br label %166

157:                                              ; preds = %142
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %19, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %20, align 4
  br label %165

161:                                              ; preds = %143
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %19, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %20, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #4
  br label %165

165:                                              ; preds = %161, %157
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #4
  br label %166

166:                                              ; preds = %165, %153
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #4
  br label %167

167:                                              ; preds = %166, %149
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #4
  br label %168

168:                                              ; preds = %167, %145
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #4
  br label %445

169:                                              ; preds = %135
  %170 = load i32, ptr %15, align 4, !tbaa !18
  %171 = load ptr, ptr %11, align 8, !tbaa !5
  %172 = getelementptr inbounds %"struct.cgp::image_structure", ptr %171, i32 0, i32 0
  %173 = load i32, ptr %172, align 8, !tbaa !9
  %174 = icmp eq i32 %170, %173
  br i1 %174, label %175, label %181

175:                                              ; preds = %169
  %176 = load i32, ptr %15, align 4, !tbaa !18
  %177 = load ptr, ptr %11, align 8, !tbaa !5
  %178 = getelementptr inbounds %"struct.cgp::image_structure", ptr %177, i32 0, i32 1
  %179 = load i32, ptr %178, align 4, !tbaa !26
  %180 = icmp eq i32 %176, %179
  br label %181

181:                                              ; preds = %175, %169
  %182 = phi i1 [ false, %169 ], [ %180, %175 ]
  %183 = zext i1 %182 to i32
  %184 = icmp eq i32 %183, 0
  br i1 %184, label %185, label %215

185:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 32, ptr %35) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %36) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef @.str.8, ptr noundef nonnull align 1 dereferenceable(1) %36)
          to label %186 unwind label %191

186:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 32, ptr %37) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %38) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %38) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %38)
          to label %187 unwind label %195

187:                                              ; preds = %186
  call void @llvm.lifetime.start.p0(i64 32, ptr %39) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %40) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %40) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %40)
          to label %188 unwind label %199

188:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 32, ptr %41) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %42) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %41, ptr noundef @__func__._ZN3cgp30opengl_texture_image_structure25initialize_cubemap_on_gpuERKNS_15image_structureES3_S3_S3_S3_S3_, ptr noundef nonnull align 1 dereferenceable(1) %42)
          to label %189 unwind label %203

189:                                              ; preds = %188
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef nonnull align 8 dereferenceable(32) %41, i32 noundef 157) #5
          to label %190 unwind label %207

190:                                              ; preds = %189
  unreachable

191:                                              ; preds = %185
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %19, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %20, align 4
  br label %214

195:                                              ; preds = %186
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %19, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %20, align 4
  br label %213

199:                                              ; preds = %187
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %19, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %20, align 4
  br label %212

203:                                              ; preds = %188
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %19, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %20, align 4
  br label %211

207:                                              ; preds = %189
  %208 = landingpad { ptr, i32 }
          cleanup
  %209 = extractvalue { ptr, i32 } %208, 0
  store ptr %209, ptr %19, align 8
  %210 = extractvalue { ptr, i32 } %208, 1
  store i32 %210, ptr %20, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #4
  br label %211

211:                                              ; preds = %207, %203
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %42) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %41) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #4
  br label %212

212:                                              ; preds = %211, %199
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %40) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #4
  br label %213

213:                                              ; preds = %212, %195
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %38) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %35) #4
  br label %214

214:                                              ; preds = %213, %191
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %35) #4
  br label %445

215:                                              ; preds = %181
  %216 = load i32, ptr %15, align 4, !tbaa !18
  %217 = load ptr, ptr %12, align 8, !tbaa !5
  %218 = getelementptr inbounds %"struct.cgp::image_structure", ptr %217, i32 0, i32 0
  %219 = load i32, ptr %218, align 8, !tbaa !9
  %220 = icmp eq i32 %216, %219
  br i1 %220, label %221, label %227

221:                                              ; preds = %215
  %222 = load i32, ptr %15, align 4, !tbaa !18
  %223 = load ptr, ptr %12, align 8, !tbaa !5
  %224 = getelementptr inbounds %"struct.cgp::image_structure", ptr %223, i32 0, i32 1
  %225 = load i32, ptr %224, align 4, !tbaa !26
  %226 = icmp eq i32 %222, %225
  br label %227

227:                                              ; preds = %221, %215
  %228 = phi i1 [ false, %215 ], [ %226, %221 ]
  %229 = zext i1 %228 to i32
  %230 = icmp eq i32 %229, 0
  br i1 %230, label %231, label %261

231:                                              ; preds = %227
  call void @llvm.lifetime.start.p0(i64 32, ptr %43) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %44) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %44) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef @.str.9, ptr noundef nonnull align 1 dereferenceable(1) %44)
          to label %232 unwind label %237

232:                                              ; preds = %231
  call void @llvm.lifetime.start.p0(i64 32, ptr %45) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %46) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %46) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %45, ptr noundef @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %46)
          to label %233 unwind label %241

233:                                              ; preds = %232
  call void @llvm.lifetime.start.p0(i64 32, ptr %47) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %48) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %48) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %47, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %48)
          to label %234 unwind label %245

234:                                              ; preds = %233
  call void @llvm.lifetime.start.p0(i64 32, ptr %49) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %50) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %50) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %49, ptr noundef @__func__._ZN3cgp30opengl_texture_image_structure25initialize_cubemap_on_gpuERKNS_15image_structureES3_S3_S3_S3_S3_, ptr noundef nonnull align 1 dereferenceable(1) %50)
          to label %235 unwind label %249

235:                                              ; preds = %234
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef nonnull align 8 dereferenceable(32) %45, ptr noundef nonnull align 8 dereferenceable(32) %47, ptr noundef nonnull align 8 dereferenceable(32) %49, i32 noundef 158) #5
          to label %236 unwind label %253

236:                                              ; preds = %235
  unreachable

237:                                              ; preds = %231
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %19, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %20, align 4
  br label %260

241:                                              ; preds = %232
  %242 = landingpad { ptr, i32 }
          cleanup
  %243 = extractvalue { ptr, i32 } %242, 0
  store ptr %243, ptr %19, align 8
  %244 = extractvalue { ptr, i32 } %242, 1
  store i32 %244, ptr %20, align 4
  br label %259

245:                                              ; preds = %233
  %246 = landingpad { ptr, i32 }
          cleanup
  %247 = extractvalue { ptr, i32 } %246, 0
  store ptr %247, ptr %19, align 8
  %248 = extractvalue { ptr, i32 } %246, 1
  store i32 %248, ptr %20, align 4
  br label %258

249:                                              ; preds = %234
  %250 = landingpad { ptr, i32 }
          cleanup
  %251 = extractvalue { ptr, i32 } %250, 0
  store ptr %251, ptr %19, align 8
  %252 = extractvalue { ptr, i32 } %250, 1
  store i32 %252, ptr %20, align 4
  br label %257

253:                                              ; preds = %235
  %254 = landingpad { ptr, i32 }
          cleanup
  %255 = extractvalue { ptr, i32 } %254, 0
  store ptr %255, ptr %19, align 8
  %256 = extractvalue { ptr, i32 } %254, 1
  store i32 %256, ptr %20, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %49) #4
  br label %257

257:                                              ; preds = %253, %249
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %50) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %50) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %49) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %47) #4
  br label %258

258:                                              ; preds = %257, %245
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %48) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %48) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %47) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %45) #4
  br label %259

259:                                              ; preds = %258, %241
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %46) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %46) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %45) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #4
  br label %260

260:                                              ; preds = %259, %237
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %44) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %44) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %43) #4
  br label %445

261:                                              ; preds = %227
  %262 = load i32, ptr %15, align 4, !tbaa !18
  %263 = load ptr, ptr %13, align 8, !tbaa !5
  %264 = getelementptr inbounds %"struct.cgp::image_structure", ptr %263, i32 0, i32 0
  %265 = load i32, ptr %264, align 8, !tbaa !9
  %266 = icmp eq i32 %262, %265
  br i1 %266, label %267, label %273

267:                                              ; preds = %261
  %268 = load i32, ptr %15, align 4, !tbaa !18
  %269 = load ptr, ptr %13, align 8, !tbaa !5
  %270 = getelementptr inbounds %"struct.cgp::image_structure", ptr %269, i32 0, i32 1
  %271 = load i32, ptr %270, align 4, !tbaa !26
  %272 = icmp eq i32 %268, %271
  br label %273

273:                                              ; preds = %267, %261
  %274 = phi i1 [ false, %261 ], [ %272, %267 ]
  %275 = zext i1 %274 to i32
  %276 = icmp eq i32 %275, 0
  br i1 %276, label %277, label %307

277:                                              ; preds = %273
  call void @llvm.lifetime.start.p0(i64 32, ptr %51) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %52) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %52) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %51, ptr noundef @.str.10, ptr noundef nonnull align 1 dereferenceable(1) %52)
          to label %278 unwind label %283

278:                                              ; preds = %277
  call void @llvm.lifetime.start.p0(i64 32, ptr %53) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %54) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %54) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %53, ptr noundef @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %54)
          to label %279 unwind label %287

279:                                              ; preds = %278
  call void @llvm.lifetime.start.p0(i64 32, ptr %55) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %56) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %56) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %55, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %56)
          to label %280 unwind label %291

280:                                              ; preds = %279
  call void @llvm.lifetime.start.p0(i64 32, ptr %57) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %58) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %58) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %57, ptr noundef @__func__._ZN3cgp30opengl_texture_image_structure25initialize_cubemap_on_gpuERKNS_15image_structureES3_S3_S3_S3_S3_, ptr noundef nonnull align 1 dereferenceable(1) %58)
          to label %281 unwind label %295

281:                                              ; preds = %280
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %51, ptr noundef nonnull align 8 dereferenceable(32) %53, ptr noundef nonnull align 8 dereferenceable(32) %55, ptr noundef nonnull align 8 dereferenceable(32) %57, i32 noundef 159) #5
          to label %282 unwind label %299

282:                                              ; preds = %281
  unreachable

283:                                              ; preds = %277
  %284 = landingpad { ptr, i32 }
          cleanup
  %285 = extractvalue { ptr, i32 } %284, 0
  store ptr %285, ptr %19, align 8
  %286 = extractvalue { ptr, i32 } %284, 1
  store i32 %286, ptr %20, align 4
  br label %306

287:                                              ; preds = %278
  %288 = landingpad { ptr, i32 }
          cleanup
  %289 = extractvalue { ptr, i32 } %288, 0
  store ptr %289, ptr %19, align 8
  %290 = extractvalue { ptr, i32 } %288, 1
  store i32 %290, ptr %20, align 4
  br label %305

291:                                              ; preds = %279
  %292 = landingpad { ptr, i32 }
          cleanup
  %293 = extractvalue { ptr, i32 } %292, 0
  store ptr %293, ptr %19, align 8
  %294 = extractvalue { ptr, i32 } %292, 1
  store i32 %294, ptr %20, align 4
  br label %304

295:                                              ; preds = %280
  %296 = landingpad { ptr, i32 }
          cleanup
  %297 = extractvalue { ptr, i32 } %296, 0
  store ptr %297, ptr %19, align 8
  %298 = extractvalue { ptr, i32 } %296, 1
  store i32 %298, ptr %20, align 4
  br label %303

299:                                              ; preds = %281
  %300 = landingpad { ptr, i32 }
          cleanup
  %301 = extractvalue { ptr, i32 } %300, 0
  store ptr %301, ptr %19, align 8
  %302 = extractvalue { ptr, i32 } %300, 1
  store i32 %302, ptr %20, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %57) #4
  br label %303

303:                                              ; preds = %299, %295
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %58) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %58) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %57) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %55) #4
  br label %304

304:                                              ; preds = %303, %291
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %56) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %56) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %55) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %53) #4
  br label %305

305:                                              ; preds = %304, %287
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %54) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %54) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %53) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %51) #4
  br label %306

306:                                              ; preds = %305, %283
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %52) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %52) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %51) #4
  br label %445

307:                                              ; preds = %273
  %308 = load i32, ptr %15, align 4, !tbaa !18
  %309 = load ptr, ptr %14, align 8, !tbaa !5
  %310 = getelementptr inbounds %"struct.cgp::image_structure", ptr %309, i32 0, i32 0
  %311 = load i32, ptr %310, align 8, !tbaa !9
  %312 = icmp eq i32 %308, %311
  br i1 %312, label %313, label %319

313:                                              ; preds = %307
  %314 = load i32, ptr %15, align 4, !tbaa !18
  %315 = load ptr, ptr %14, align 8, !tbaa !5
  %316 = getelementptr inbounds %"struct.cgp::image_structure", ptr %315, i32 0, i32 1
  %317 = load i32, ptr %316, align 4, !tbaa !26
  %318 = icmp eq i32 %314, %317
  br label %319

319:                                              ; preds = %313, %307
  %320 = phi i1 [ false, %307 ], [ %318, %313 ]
  %321 = zext i1 %320 to i32
  %322 = icmp eq i32 %321, 0
  br i1 %322, label %323, label %353

323:                                              ; preds = %319
  call void @llvm.lifetime.start.p0(i64 32, ptr %59) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %60) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %60) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %59, ptr noundef @.str.11, ptr noundef nonnull align 1 dereferenceable(1) %60)
          to label %324 unwind label %329

324:                                              ; preds = %323
  call void @llvm.lifetime.start.p0(i64 32, ptr %61) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %62) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %62) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %61, ptr noundef @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %62)
          to label %325 unwind label %333

325:                                              ; preds = %324
  call void @llvm.lifetime.start.p0(i64 32, ptr %63) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %64) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %64) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %63, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %64)
          to label %326 unwind label %337

326:                                              ; preds = %325
  call void @llvm.lifetime.start.p0(i64 32, ptr %65) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %66) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %66) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %65, ptr noundef @__func__._ZN3cgp30opengl_texture_image_structure25initialize_cubemap_on_gpuERKNS_15image_structureES3_S3_S3_S3_S3_, ptr noundef nonnull align 1 dereferenceable(1) %66)
          to label %327 unwind label %341

327:                                              ; preds = %326
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %59, ptr noundef nonnull align 8 dereferenceable(32) %61, ptr noundef nonnull align 8 dereferenceable(32) %63, ptr noundef nonnull align 8 dereferenceable(32) %65, i32 noundef 160) #5
          to label %328 unwind label %345

328:                                              ; preds = %327
  unreachable

329:                                              ; preds = %323
  %330 = landingpad { ptr, i32 }
          cleanup
  %331 = extractvalue { ptr, i32 } %330, 0
  store ptr %331, ptr %19, align 8
  %332 = extractvalue { ptr, i32 } %330, 1
  store i32 %332, ptr %20, align 4
  br label %352

333:                                              ; preds = %324
  %334 = landingpad { ptr, i32 }
          cleanup
  %335 = extractvalue { ptr, i32 } %334, 0
  store ptr %335, ptr %19, align 8
  %336 = extractvalue { ptr, i32 } %334, 1
  store i32 %336, ptr %20, align 4
  br label %351

337:                                              ; preds = %325
  %338 = landingpad { ptr, i32 }
          cleanup
  %339 = extractvalue { ptr, i32 } %338, 0
  store ptr %339, ptr %19, align 8
  %340 = extractvalue { ptr, i32 } %338, 1
  store i32 %340, ptr %20, align 4
  br label %350

341:                                              ; preds = %326
  %342 = landingpad { ptr, i32 }
          cleanup
  %343 = extractvalue { ptr, i32 } %342, 0
  store ptr %343, ptr %19, align 8
  %344 = extractvalue { ptr, i32 } %342, 1
  store i32 %344, ptr %20, align 4
  br label %349

345:                                              ; preds = %327
  %346 = landingpad { ptr, i32 }
          cleanup
  %347 = extractvalue { ptr, i32 } %346, 0
  store ptr %347, ptr %19, align 8
  %348 = extractvalue { ptr, i32 } %346, 1
  store i32 %348, ptr %20, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %65) #4
  br label %349

349:                                              ; preds = %345, %341
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %66) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %66) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %65) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %63) #4
  br label %350

350:                                              ; preds = %349, %337
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %64) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %64) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %63) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %61) #4
  br label %351

351:                                              ; preds = %350, %333
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %62) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %62) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %61) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %59) #4
  br label %352

352:                                              ; preds = %351, %329
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %60) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %60) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %59) #4
  br label %445

353:                                              ; preds = %319
  %354 = load ptr, ptr @glad_glGenTextures, align 8, !tbaa !5
  %355 = getelementptr inbounds %"struct.cgp::opengl_texture_image_structure", ptr %69, i32 0, i32 0
  call void %354(i32 noundef 1, ptr noundef %355)
  %356 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  %357 = getelementptr inbounds %"struct.cgp::opengl_texture_image_structure", ptr %69, i32 0, i32 4
  %358 = load i32, ptr %357, align 4, !tbaa !25
  %359 = getelementptr inbounds %"struct.cgp::opengl_texture_image_structure", ptr %69, i32 0, i32 0
  %360 = load i32, ptr %359, align 4, !tbaa !27
  call void %356(i32 noundef %358, i32 noundef %360)
  call void @llvm.lifetime.start.p0(i64 4, ptr %67) #4
  %361 = getelementptr inbounds %"struct.cgp::opengl_texture_image_structure", ptr %69, i32 0, i32 3
  %362 = load i32, ptr %361, align 4, !tbaa !24
  %363 = call noundef i32 @_ZN3cgpL19format_to_data_typeEi(i32 noundef %362)
  store i32 %363, ptr %67, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %68) #4
  %364 = getelementptr inbounds %"struct.cgp::opengl_texture_image_structure", ptr %69, i32 0, i32 3
  %365 = load i32, ptr %364, align 4, !tbaa !24
  %366 = call noundef i32 @_ZN3cgpL19format_to_componentEi(i32 noundef %365)
  store i32 %366, ptr %68, align 4, !tbaa !18
  %367 = load ptr, ptr @glad_glTexImage2D, align 8, !tbaa !5
  %368 = getelementptr inbounds %"struct.cgp::opengl_texture_image_structure", ptr %69, i32 0, i32 3
  %369 = load i32, ptr %368, align 4, !tbaa !24
  %370 = load i32, ptr %15, align 4, !tbaa !18
  %371 = load i32, ptr %15, align 4, !tbaa !18
  %372 = load i32, ptr %67, align 4, !tbaa !18
  %373 = load i32, ptr %68, align 4, !tbaa !18
  %374 = load ptr, ptr %9, align 8, !tbaa !5
  %375 = getelementptr inbounds %"struct.cgp::image_structure", ptr %374, i32 0, i32 3
  %376 = call noundef ptr @_ZN3cgp3ptrIhEEPKDaRKNS_8numarrayIT_EE(ptr noundef nonnull align 8 dereferenceable(24) %375)
  call void %367(i32 noundef 34070, i32 noundef 0, i32 noundef %369, i32 noundef %370, i32 noundef %371, i32 noundef 0, i32 noundef %372, i32 noundef %373, ptr noundef %376)
  %377 = load ptr, ptr @glad_glTexImage2D, align 8, !tbaa !5
  %378 = getelementptr inbounds %"struct.cgp::opengl_texture_image_structure", ptr %69, i32 0, i32 3
  %379 = load i32, ptr %378, align 4, !tbaa !24
  %380 = load i32, ptr %15, align 4, !tbaa !18
  %381 = load i32, ptr %15, align 4, !tbaa !18
  %382 = load i32, ptr %67, align 4, !tbaa !18
  %383 = load i32, ptr %68, align 4, !tbaa !18
  %384 = load ptr, ptr %10, align 8, !tbaa !5
  %385 = getelementptr inbounds %"struct.cgp::image_structure", ptr %384, i32 0, i32 3
  %386 = call noundef ptr @_ZN3cgp3ptrIhEEPKDaRKNS_8numarrayIT_EE(ptr noundef nonnull align 8 dereferenceable(24) %385)
  call void %377(i32 noundef 34069, i32 noundef 0, i32 noundef %379, i32 noundef %380, i32 noundef %381, i32 noundef 0, i32 noundef %382, i32 noundef %383, ptr noundef %386)
  %387 = load ptr, ptr @glad_glTexImage2D, align 8, !tbaa !5
  %388 = getelementptr inbounds %"struct.cgp::opengl_texture_image_structure", ptr %69, i32 0, i32 3
  %389 = load i32, ptr %388, align 4, !tbaa !24
  %390 = load i32, ptr %15, align 4, !tbaa !18
  %391 = load i32, ptr %15, align 4, !tbaa !18
  %392 = load i32, ptr %67, align 4, !tbaa !18
  %393 = load i32, ptr %68, align 4, !tbaa !18
  %394 = load ptr, ptr %11, align 8, !tbaa !5
  %395 = getelementptr inbounds %"struct.cgp::image_structure", ptr %394, i32 0, i32 3
  %396 = call noundef ptr @_ZN3cgp3ptrIhEEPKDaRKNS_8numarrayIT_EE(ptr noundef nonnull align 8 dereferenceable(24) %395)
  call void %387(i32 noundef 34072, i32 noundef 0, i32 noundef %389, i32 noundef %390, i32 noundef %391, i32 noundef 0, i32 noundef %392, i32 noundef %393, ptr noundef %396)
  %397 = load ptr, ptr @glad_glTexImage2D, align 8, !tbaa !5
  %398 = getelementptr inbounds %"struct.cgp::opengl_texture_image_structure", ptr %69, i32 0, i32 3
  %399 = load i32, ptr %398, align 4, !tbaa !24
  %400 = load i32, ptr %15, align 4, !tbaa !18
  %401 = load i32, ptr %15, align 4, !tbaa !18
  %402 = load i32, ptr %67, align 4, !tbaa !18
  %403 = load i32, ptr %68, align 4, !tbaa !18
  %404 = load ptr, ptr %12, align 8, !tbaa !5
  %405 = getelementptr inbounds %"struct.cgp::image_structure", ptr %404, i32 0, i32 3
  %406 = call noundef ptr @_ZN3cgp3ptrIhEEPKDaRKNS_8numarrayIT_EE(ptr noundef nonnull align 8 dereferenceable(24) %405)
  call void %397(i32 noundef 34071, i32 noundef 0, i32 noundef %399, i32 noundef %400, i32 noundef %401, i32 noundef 0, i32 noundef %402, i32 noundef %403, ptr noundef %406)
  %407 = load ptr, ptr @glad_glTexImage2D, align 8, !tbaa !5
  %408 = getelementptr inbounds %"struct.cgp::opengl_texture_image_structure", ptr %69, i32 0, i32 3
  %409 = load i32, ptr %408, align 4, !tbaa !24
  %410 = load i32, ptr %15, align 4, !tbaa !18
  %411 = load i32, ptr %15, align 4, !tbaa !18
  %412 = load i32, ptr %67, align 4, !tbaa !18
  %413 = load i32, ptr %68, align 4, !tbaa !18
  %414 = load ptr, ptr %13, align 8, !tbaa !5
  %415 = getelementptr inbounds %"struct.cgp::image_structure", ptr %414, i32 0, i32 3
  %416 = call noundef ptr @_ZN3cgp3ptrIhEEPKDaRKNS_8numarrayIT_EE(ptr noundef nonnull align 8 dereferenceable(24) %415)
  call void %407(i32 noundef 34074, i32 noundef 0, i32 noundef %409, i32 noundef %410, i32 noundef %411, i32 noundef 0, i32 noundef %412, i32 noundef %413, ptr noundef %416)
  %417 = load ptr, ptr @glad_glTexImage2D, align 8, !tbaa !5
  %418 = getelementptr inbounds %"struct.cgp::opengl_texture_image_structure", ptr %69, i32 0, i32 3
  %419 = load i32, ptr %418, align 4, !tbaa !24
  %420 = load i32, ptr %15, align 4, !tbaa !18
  %421 = load i32, ptr %15, align 4, !tbaa !18
  %422 = load i32, ptr %67, align 4, !tbaa !18
  %423 = load i32, ptr %68, align 4, !tbaa !18
  %424 = load ptr, ptr %14, align 8, !tbaa !5
  %425 = getelementptr inbounds %"struct.cgp::image_structure", ptr %424, i32 0, i32 3
  %426 = call noundef ptr @_ZN3cgp3ptrIhEEPKDaRKNS_8numarrayIT_EE(ptr noundef nonnull align 8 dereferenceable(24) %425)
  call void %417(i32 noundef 34073, i32 noundef 0, i32 noundef %419, i32 noundef %420, i32 noundef %421, i32 noundef 0, i32 noundef %422, i32 noundef %423, ptr noundef %426)
  %427 = load ptr, ptr @glad_glTexParameteri, align 8, !tbaa !5
  %428 = getelementptr inbounds %"struct.cgp::opengl_texture_image_structure", ptr %69, i32 0, i32 4
  %429 = load i32, ptr %428, align 4, !tbaa !25
  call void %427(i32 noundef %429, i32 noundef 10242, i32 noundef 33071)
  %430 = load ptr, ptr @glad_glTexParameteri, align 8, !tbaa !5
  %431 = getelementptr inbounds %"struct.cgp::opengl_texture_image_structure", ptr %69, i32 0, i32 4
  %432 = load i32, ptr %431, align 4, !tbaa !25
  call void %430(i32 noundef %432, i32 noundef 10243, i32 noundef 33071)
  %433 = load ptr, ptr @glad_glTexParameteri, align 8, !tbaa !5
  %434 = getelementptr inbounds %"struct.cgp::opengl_texture_image_structure", ptr %69, i32 0, i32 4
  %435 = load i32, ptr %434, align 4, !tbaa !25
  call void %433(i32 noundef %435, i32 noundef 32882, i32 noundef 33071)
  %436 = load ptr, ptr @glad_glTexParameteri, align 8, !tbaa !5
  %437 = getelementptr inbounds %"struct.cgp::opengl_texture_image_structure", ptr %69, i32 0, i32 4
  %438 = load i32, ptr %437, align 4, !tbaa !25
  call void %436(i32 noundef %438, i32 noundef 10240, i32 noundef 9729)
  %439 = load ptr, ptr @glad_glTexParameteri, align 8, !tbaa !5
  %440 = getelementptr inbounds %"struct.cgp::opengl_texture_image_structure", ptr %69, i32 0, i32 4
  %441 = load i32, ptr %440, align 4, !tbaa !25
  call void %439(i32 noundef %441, i32 noundef 10241, i32 noundef 9729)
  %442 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  %443 = getelementptr inbounds %"struct.cgp::opengl_texture_image_structure", ptr %69, i32 0, i32 4
  %444 = load i32, ptr %443, align 4, !tbaa !25
  call void %442(i32 noundef %444, i32 noundef 0)
  call void @llvm.lifetime.end.p0(i64 4, ptr %68) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  ret void

445:                                              ; preds = %352, %306, %260, %214, %168, %122
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %446

446:                                              ; preds = %445
  %447 = load ptr, ptr %19, align 8
  %448 = load i32, ptr %20, align 4
  %449 = insertvalue { ptr, i32 } poison, ptr %447, 0
  %450 = insertvalue { ptr, i32 } %449, i32 %448, 1
  resume { ptr, i32 } %450
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

attributes #0 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 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 }
attributes #5 = { noreturn }

!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, !11, i64 0}
!10 = !{!"_ZTSN3cgp15image_structureE", !11, i64 0, !11, i64 4, !12, i64 8, !13, i64 16}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTSN3cgp16image_color_typeE", !7, i64 0}
!13 = !{!"_ZTSN3cgp8numarrayIhEE", !14, i64 0}
!14 = !{!"_ZTSSt6vectorIhSaIhEE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!11, !11, i64 0}
!19 = !{!20, !11, i64 4}
!20 = !{!"_ZTSN3cgp30opengl_texture_image_structureE", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16}
!21 = !{!20, !11, i64 8}
!22 = !{!10, !12, i64 8}
!23 = !{!12, !12, i64 0}
!24 = !{!20, !11, i64 12}
!25 = !{!20, !11, i64 16}
!26 = !{!10, !11, i64 4}
!27 = !{!20, !11, i64 0}


; 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"

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }

@.str.2 = external hidden unnamed_addr constant [87 x i8], align 1
@glad_glBindTexture = external local_unnamed_addr global ptr, align 8
@glad_glTexParameteri = external local_unnamed_addr global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [1 x i8], align 1
@__func__._ZN3cgp30opengl_texture_image_structure25initialize_cubemap_on_gpuERKNS_15image_structureES3_S3_S3_S3_S3_ = external hidden unnamed_addr constant [26 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [38 x i8], align 1
@glad_glGenTextures = external local_unnamed_addr global ptr, align 8
@glad_glTexImage2D = external local_unnamed_addr global ptr, align 8

; Function Attrs: noreturn
declare void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN3cgp3ptrIhEEPKDaRKNS_8numarrayIT_EE(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN3cgpL19format_to_data_typeEi(i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN3cgpL19format_to_componentEi(i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3cgp30opengl_texture_image_structure25initialize_cubemap_on_gpuERKNS_15image_structureES3_S3_S3_S3_S3_(ptr noundef nonnull align 4 dereferenceable(20) %0, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(40) %2, ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(40) %6) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::allocator", align 1
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::allocator", align 1
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::allocator", align 1
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::allocator", align 1
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::allocator", align 1
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::allocator", align 1
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::allocator", align 1
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca %"class.std::allocator", align 1
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca %"class.std::allocator", align 1
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = alloca %"class.std::allocator", align 1
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca %"class.std::allocator", align 1
  %30 = alloca %"class.std::__cxx11::basic_string", align 8
  %31 = alloca %"class.std::allocator", align 1
  %32 = alloca %"class.std::__cxx11::basic_string", align 8
  %33 = alloca %"class.std::allocator", align 1
  %34 = alloca %"class.std::__cxx11::basic_string", align 8
  %35 = alloca %"class.std::allocator", align 1
  %36 = alloca %"class.std::__cxx11::basic_string", align 8
  %37 = alloca %"class.std::allocator", align 1
  %38 = alloca %"class.std::__cxx11::basic_string", align 8
  %39 = alloca %"class.std::allocator", align 1
  %40 = alloca %"class.std::__cxx11::basic_string", align 8
  %41 = alloca %"class.std::allocator", align 1
  %42 = alloca %"class.std::__cxx11::basic_string", align 8
  %43 = alloca %"class.std::allocator", align 1
  %44 = alloca %"class.std::__cxx11::basic_string", align 8
  %45 = alloca %"class.std::allocator", align 1
  %46 = alloca %"class.std::__cxx11::basic_string", align 8
  %47 = alloca %"class.std::allocator", align 1
  %48 = alloca %"class.std::__cxx11::basic_string", align 8
  %49 = alloca %"class.std::allocator", align 1
  %50 = alloca %"class.std::__cxx11::basic_string", align 8
  %51 = alloca %"class.std::allocator", align 1
  %52 = alloca %"class.std::__cxx11::basic_string", align 8
  %53 = alloca %"class.std::allocator", align 1
  %54 = alloca %"class.std::__cxx11::basic_string", align 8
  %55 = alloca %"class.std::allocator", align 1
  %56 = load i32, ptr %1, align 8, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %0, i64 4
  store i32 %56, ptr %57, align 4, !tbaa !17
  %58 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %56, ptr %58, align 4, !tbaa !19
  %59 = getelementptr inbounds i8, ptr %1, i64 8
  %60 = load i32, ptr %59, align 8, !tbaa !20
  %61 = icmp eq i32 %60, 1
  %62 = select i1 %61, i32 32856, i32 32849
  %63 = getelementptr inbounds i8, ptr %0, i64 12
  store i32 %62, ptr %63, align 4, !tbaa !21
  %64 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 34067, ptr %64, align 4, !tbaa !22
  %65 = getelementptr inbounds i8, ptr %1, i64 4
  %66 = load i32, ptr %65, align 4, !tbaa !23
  %.not = icmp eq i32 %66, %56
  br i1 %.not, label %87, label %67

67:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %68 unwind label %73

68:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %69 unwind label %75

69:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %70 unwind label %77

70:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull @__func__._ZN3cgp30opengl_texture_image_structure25initialize_cubemap_on_gpuERKNS_15image_structureES3_S3_S3_S3_S3_, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %71 unwind label %79

71:                                               ; preds = %70
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %14, i32 noundef 155) #5
          to label %72 unwind label %81

72:                                               ; preds = %71
  unreachable

73:                                               ; preds = %67
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %86

75:                                               ; preds = %68
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %85

77:                                               ; preds = %69
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %84

79:                                               ; preds = %70
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %83

81:                                               ; preds = %71
  %82 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #4
  br label %83

83:                                               ; preds = %81, %79
  %.pn113 = phi { ptr, i32 } [ %82, %81 ], [ %80, %79 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #4
  br label %84

84:                                               ; preds = %83, %77
  %.pn113.pn = phi { ptr, i32 } [ %.pn113, %83 ], [ %78, %77 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #4
  br label %85

85:                                               ; preds = %84, %75
  %.pn113.pn.pn = phi { ptr, i32 } [ %.pn113.pn, %84 ], [ %76, %75 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #4
  br label %86

86:                                               ; preds = %85, %73
  %.pn113.pn.pn.pn = phi { ptr, i32 } [ %.pn113.pn.pn, %85 ], [ %74, %73 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #4
  br label %267

87:                                               ; preds = %7
  %88 = load i32, ptr %2, align 8, !tbaa !5
  %89 = icmp eq i32 %56, %88
  %90 = getelementptr inbounds i8, ptr %2, i64 4
  %91 = load i32, ptr %90, align 4
  %92 = icmp eq i32 %56, %91
  %93 = select i1 %89, i1 %92, i1 false
  br i1 %93, label %114, label %94

94:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %95 unwind label %100

95:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %19) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %96 unwind label %102

96:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %20) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %21) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %97 unwind label %104

97:                                               ; preds = %96
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %22) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %23) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull @__func__._ZN3cgp30opengl_texture_image_structure25initialize_cubemap_on_gpuERKNS_15image_structureES3_S3_S3_S3_S3_, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %98 unwind label %106

98:                                               ; preds = %97
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(32) %22, i32 noundef 156) #5
          to label %99 unwind label %108

99:                                               ; preds = %98
  unreachable

100:                                              ; preds = %94
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %113

102:                                              ; preds = %95
  %103 = landingpad { ptr, i32 }
          cleanup
  br label %112

104:                                              ; preds = %96
  %105 = landingpad { ptr, i32 }
          cleanup
  br label %111

106:                                              ; preds = %97
  %107 = landingpad { ptr, i32 }
          cleanup
  br label %110

108:                                              ; preds = %98
  %109 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #4
  br label %110

110:                                              ; preds = %108, %106
  %.pn108 = phi { ptr, i32 } [ %109, %108 ], [ %107, %106 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #4
  br label %111

111:                                              ; preds = %110, %104
  %.pn108.pn = phi { ptr, i32 } [ %.pn108, %110 ], [ %105, %104 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #4
  br label %112

112:                                              ; preds = %111, %102
  %.pn108.pn.pn = phi { ptr, i32 } [ %.pn108.pn, %111 ], [ %103, %102 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #4
  br label %113

113:                                              ; preds = %112, %100
  %.pn108.pn.pn.pn = phi { ptr, i32 } [ %.pn108.pn.pn, %112 ], [ %101, %100 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #4
  br label %267

114:                                              ; preds = %87
  %115 = load i32, ptr %3, align 8, !tbaa !5
  %116 = icmp eq i32 %56, %115
  %117 = getelementptr inbounds i8, ptr %3, i64 4
  %118 = load i32, ptr %117, align 4
  %119 = icmp eq i32 %56, %118
  %120 = select i1 %116, i1 %119, i1 false
  br i1 %120, label %141, label %121

121:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %24) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %25) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull @.str.8, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %122 unwind label %127

122:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %26) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %27) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %123 unwind label %129

123:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %28) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %29) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %29)
          to label %124 unwind label %131

124:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %30) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %31) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull @__func__._ZN3cgp30opengl_texture_image_structure25initialize_cubemap_on_gpuERKNS_15image_structureES3_S3_S3_S3_S3_, ptr noundef nonnull align 1 dereferenceable(1) %31)
          to label %125 unwind label %133

125:                                              ; preds = %124
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull align 8 dereferenceable(32) %30, i32 noundef 157) #5
          to label %126 unwind label %135

126:                                              ; preds = %125
  unreachable

127:                                              ; preds = %121
  %128 = landingpad { ptr, i32 }
          cleanup
  br label %140

129:                                              ; preds = %122
  %130 = landingpad { ptr, i32 }
          cleanup
  br label %139

131:                                              ; preds = %123
  %132 = landingpad { ptr, i32 }
          cleanup
  br label %138

133:                                              ; preds = %124
  %134 = landingpad { ptr, i32 }
          cleanup
  br label %137

135:                                              ; preds = %125
  %136 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #4
  br label %137

137:                                              ; preds = %135, %133
  %.pn103 = phi { ptr, i32 } [ %136, %135 ], [ %134, %133 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %31) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %31) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %30) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #4
  br label %138

138:                                              ; preds = %137, %131
  %.pn103.pn = phi { ptr, i32 } [ %.pn103, %137 ], [ %132, %131 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %29) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %28) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #4
  br label %139

139:                                              ; preds = %138, %129
  %.pn103.pn.pn = phi { ptr, i32 } [ %.pn103.pn, %138 ], [ %130, %129 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %27) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #4
  br label %140

140:                                              ; preds = %139, %127
  %.pn103.pn.pn.pn = phi { ptr, i32 } [ %.pn103.pn.pn, %139 ], [ %128, %127 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %24) #4
  br label %267

141:                                              ; preds = %114
  %142 = load i32, ptr %4, align 8, !tbaa !5
  %143 = icmp eq i32 %56, %142
  %144 = getelementptr inbounds i8, ptr %4, i64 4
  %145 = load i32, ptr %144, align 4
  %146 = icmp eq i32 %56, %145
  %147 = select i1 %143, i1 %146, i1 false
  br i1 %147, label %168, label %148

148:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %32) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %33) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull @.str.9, ptr noundef nonnull align 1 dereferenceable(1) %33)
          to label %149 unwind label %154

149:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %34) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %35) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %35)
          to label %150 unwind label %156

150:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %36) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %37) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %37)
          to label %151 unwind label %158

151:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %38) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %39) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull @__func__._ZN3cgp30opengl_texture_image_structure25initialize_cubemap_on_gpuERKNS_15image_structureES3_S3_S3_S3_S3_, ptr noundef nonnull align 1 dereferenceable(1) %39)
          to label %152 unwind label %160

152:                                              ; preds = %151
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef nonnull align 8 dereferenceable(32) %38, i32 noundef 158) #5
          to label %153 unwind label %162

153:                                              ; preds = %152
  unreachable

154:                                              ; preds = %148
  %155 = landingpad { ptr, i32 }
          cleanup
  br label %167

156:                                              ; preds = %149
  %157 = landingpad { ptr, i32 }
          cleanup
  br label %166

158:                                              ; preds = %150
  %159 = landingpad { ptr, i32 }
          cleanup
  br label %165

160:                                              ; preds = %151
  %161 = landingpad { ptr, i32 }
          cleanup
  br label %164

162:                                              ; preds = %152
  %163 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #4
  br label %164

164:                                              ; preds = %162, %160
  %.pn98 = phi { ptr, i32 } [ %163, %162 ], [ %161, %160 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %39) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %38) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %36) #4
  br label %165

165:                                              ; preds = %164, %158
  %.pn98.pn = phi { ptr, i32 } [ %.pn98, %164 ], [ %159, %158 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %37) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %36) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #4
  br label %166

166:                                              ; preds = %165, %156
  %.pn98.pn.pn = phi { ptr, i32 } [ %.pn98.pn, %165 ], [ %157, %156 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %35) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %34) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #4
  br label %167

167:                                              ; preds = %166, %154
  %.pn98.pn.pn.pn = phi { ptr, i32 } [ %.pn98.pn.pn, %166 ], [ %155, %154 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %33) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %32) #4
  br label %267

168:                                              ; preds = %141
  %169 = load i32, ptr %5, align 8, !tbaa !5
  %170 = icmp eq i32 %56, %169
  %171 = getelementptr inbounds i8, ptr %5, i64 4
  %172 = load i32, ptr %171, align 4
  %173 = icmp eq i32 %56, %172
  %174 = select i1 %170, i1 %173, i1 false
  br i1 %174, label %195, label %175

175:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %40) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %41) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %41) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %40, ptr noundef nonnull @.str.10, ptr noundef nonnull align 1 dereferenceable(1) %41)
          to label %176 unwind label %181

176:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %42) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %43) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %43) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %42, ptr noundef nonnull @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %43)
          to label %177 unwind label %183

177:                                              ; preds = %176
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %44) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %45) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %45) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %44, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %45)
          to label %178 unwind label %185

178:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %46) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %47) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %47) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %46, ptr noundef nonnull @__func__._ZN3cgp30opengl_texture_image_structure25initialize_cubemap_on_gpuERKNS_15image_structureES3_S3_S3_S3_S3_, ptr noundef nonnull align 1 dereferenceable(1) %47)
          to label %179 unwind label %187

179:                                              ; preds = %178
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %40, ptr noundef nonnull align 8 dereferenceable(32) %42, ptr noundef nonnull align 8 dereferenceable(32) %44, ptr noundef nonnull align 8 dereferenceable(32) %46, i32 noundef 159) #5
          to label %180 unwind label %189

180:                                              ; preds = %179
  unreachable

181:                                              ; preds = %175
  %182 = landingpad { ptr, i32 }
          cleanup
  br label %194

183:                                              ; preds = %176
  %184 = landingpad { ptr, i32 }
          cleanup
  br label %193

185:                                              ; preds = %177
  %186 = landingpad { ptr, i32 }
          cleanup
  br label %192

187:                                              ; preds = %178
  %188 = landingpad { ptr, i32 }
          cleanup
  br label %191

189:                                              ; preds = %179
  %190 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %46) #4
  br label %191

191:                                              ; preds = %189, %187
  %.pn93 = phi { ptr, i32 } [ %190, %189 ], [ %188, %187 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %47) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %47) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %46) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %44) #4
  br label %192

192:                                              ; preds = %191, %185
  %.pn93.pn = phi { ptr, i32 } [ %.pn93, %191 ], [ %186, %185 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %45) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %45) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %44) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %42) #4
  br label %193

193:                                              ; preds = %192, %183
  %.pn93.pn.pn = phi { ptr, i32 } [ %.pn93.pn, %192 ], [ %184, %183 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %43) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %43) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %42) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %40) #4
  br label %194

194:                                              ; preds = %193, %181
  %.pn93.pn.pn.pn = phi { ptr, i32 } [ %.pn93.pn.pn, %193 ], [ %182, %181 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %41) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %41) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %40) #4
  br label %267

195:                                              ; preds = %168
  %196 = load i32, ptr %6, align 8, !tbaa !5
  %197 = icmp ne i32 %56, %196
  %198 = getelementptr inbounds i8, ptr %6, i64 4
  %199 = load i32, ptr %198, align 4
  %200 = icmp ne i32 %56, %199
  %201 = select i1 %197, i1 true, i1 %200
  br i1 %201, label %202, label %222

202:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %48) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %49) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %49) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %48, ptr noundef nonnull @.str.11, ptr noundef nonnull align 1 dereferenceable(1) %49)
          to label %203 unwind label %208

203:                                              ; preds = %202
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %50) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %51) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %51) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %50, ptr noundef nonnull @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %51)
          to label %204 unwind label %210

204:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %52) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %53) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %53) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %52, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %53)
          to label %205 unwind label %212

205:                                              ; preds = %204
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %54) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %55) #4
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %55) #4
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %54, ptr noundef nonnull @__func__._ZN3cgp30opengl_texture_image_structure25initialize_cubemap_on_gpuERKNS_15image_structureES3_S3_S3_S3_S3_, ptr noundef nonnull align 1 dereferenceable(1) %55)
          to label %206 unwind label %214

206:                                              ; preds = %205
  invoke void @_ZN3cgp10call_errorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_S7_i(ptr noundef nonnull align 8 dereferenceable(32) %48, ptr noundef nonnull align 8 dereferenceable(32) %50, ptr noundef nonnull align 8 dereferenceable(32) %52, ptr noundef nonnull align 8 dereferenceable(32) %54, i32 noundef 160) #5
          to label %207 unwind label %216

207:                                              ; preds = %206
  unreachable

208:                                              ; preds = %202
  %209 = landingpad { ptr, i32 }
          cleanup
  br label %221

210:                                              ; preds = %203
  %211 = landingpad { ptr, i32 }
          cleanup
  br label %220

212:                                              ; preds = %204
  %213 = landingpad { ptr, i32 }
          cleanup
  br label %219

214:                                              ; preds = %205
  %215 = landingpad { ptr, i32 }
          cleanup
  br label %218

216:                                              ; preds = %206
  %217 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %54) #4
  br label %218

218:                                              ; preds = %216, %214
  %.pn = phi { ptr, i32 } [ %217, %216 ], [ %215, %214 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %55) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %55) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %54) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %52) #4
  br label %219

219:                                              ; preds = %218, %212
  %.pn.pn = phi { ptr, i32 } [ %.pn, %218 ], [ %213, %212 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %53) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %53) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %52) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %50) #4
  br label %220

220:                                              ; preds = %219, %210
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %219 ], [ %211, %210 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %51) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %51) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %50) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %48) #4
  br label %221

221:                                              ; preds = %220, %208
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %220 ], [ %209, %208 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %49) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %49) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %48) #4
  br label %267

222:                                              ; preds = %195
  %223 = load ptr, ptr @glad_glGenTextures, align 8, !tbaa !24
  tail call void %223(i32 noundef 1, ptr noundef nonnull %0)
  %224 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !24
  %225 = load i32, ptr %64, align 4, !tbaa !22
  %226 = load i32, ptr %0, align 4, !tbaa !25
  tail call void %224(i32 noundef %225, i32 noundef %226)
  %227 = load i32, ptr %63, align 4, !tbaa !21
  %228 = tail call noundef i32 @_ZN3cgpL19format_to_data_typeEi(i32 noundef %227)
  %229 = load i32, ptr %63, align 4, !tbaa !21
  %230 = tail call noundef i32 @_ZN3cgpL19format_to_componentEi(i32 noundef %229)
  %231 = load ptr, ptr @glad_glTexImage2D, align 8, !tbaa !24
  %232 = load i32, ptr %63, align 4, !tbaa !21
  %233 = getelementptr inbounds i8, ptr %1, i64 16
  %234 = tail call noundef ptr @_ZN3cgp3ptrIhEEPKDaRKNS_8numarrayIT_EE(ptr noundef nonnull align 8 dereferenceable(24) %233)
  tail call void %231(i32 noundef 34070, i32 noundef 0, i32 noundef %232, i32 noundef %56, i32 noundef %56, i32 noundef 0, i32 noundef %228, i32 noundef %230, ptr noundef %234)
  %235 = load ptr, ptr @glad_glTexImage2D, align 8, !tbaa !24
  %236 = load i32, ptr %63, align 4, !tbaa !21
  %237 = getelementptr inbounds i8, ptr %2, i64 16
  %238 = tail call noundef ptr @_ZN3cgp3ptrIhEEPKDaRKNS_8numarrayIT_EE(ptr noundef nonnull align 8 dereferenceable(24) %237)
  tail call void %235(i32 noundef 34069, i32 noundef 0, i32 noundef %236, i32 noundef %56, i32 noundef %56, i32 noundef 0, i32 noundef %228, i32 noundef %230, ptr noundef %238)
  %239 = load ptr, ptr @glad_glTexImage2D, align 8, !tbaa !24
  %240 = load i32, ptr %63, align 4, !tbaa !21
  %241 = getelementptr inbounds i8, ptr %3, i64 16
  %242 = tail call noundef ptr @_ZN3cgp3ptrIhEEPKDaRKNS_8numarrayIT_EE(ptr noundef nonnull align 8 dereferenceable(24) %241)
  tail call void %239(i32 noundef 34072, i32 noundef 0, i32 noundef %240, i32 noundef %56, i32 noundef %56, i32 noundef 0, i32 noundef %228, i32 noundef %230, ptr noundef %242)
  %243 = load ptr, ptr @glad_glTexImage2D, align 8, !tbaa !24
  %244 = load i32, ptr %63, align 4, !tbaa !21
  %245 = getelementptr inbounds i8, ptr %4, i64 16
  %246 = tail call noundef ptr @_ZN3cgp3ptrIhEEPKDaRKNS_8numarrayIT_EE(ptr noundef nonnull align 8 dereferenceable(24) %245)
  tail call void %243(i32 noundef 34071, i32 noundef 0, i32 noundef %244, i32 noundef %56, i32 noundef %56, i32 noundef 0, i32 noundef %228, i32 noundef %230, ptr noundef %246)
  %247 = load ptr, ptr @glad_glTexImage2D, align 8, !tbaa !24
  %248 = load i32, ptr %63, align 4, !tbaa !21
  %249 = getelementptr inbounds i8, ptr %5, i64 16
  %250 = tail call noundef ptr @_ZN3cgp3ptrIhEEPKDaRKNS_8numarrayIT_EE(ptr noundef nonnull align 8 dereferenceable(24) %249)
  tail call void %247(i32 noundef 34074, i32 noundef 0, i32 noundef %248, i32 noundef %56, i32 noundef %56, i32 noundef 0, i32 noundef %228, i32 noundef %230, ptr noundef %250)
  %251 = load ptr, ptr @glad_glTexImage2D, align 8, !tbaa !24
  %252 = load i32, ptr %63, align 4, !tbaa !21
  %253 = getelementptr inbounds i8, ptr %6, i64 16
  %254 = tail call noundef ptr @_ZN3cgp3ptrIhEEPKDaRKNS_8numarrayIT_EE(ptr noundef nonnull align 8 dereferenceable(24) %253)
  tail call void %251(i32 noundef 34073, i32 noundef 0, i32 noundef %252, i32 noundef %56, i32 noundef %56, i32 noundef 0, i32 noundef %228, i32 noundef %230, ptr noundef %254)
  %255 = load ptr, ptr @glad_glTexParameteri, align 8, !tbaa !24
  %256 = load i32, ptr %64, align 4, !tbaa !22
  tail call void %255(i32 noundef %256, i32 noundef 10242, i32 noundef 33071)
  %257 = load ptr, ptr @glad_glTexParameteri, align 8, !tbaa !24
  %258 = load i32, ptr %64, align 4, !tbaa !22
  tail call void %257(i32 noundef %258, i32 noundef 10243, i32 noundef 33071)
  %259 = load ptr, ptr @glad_glTexParameteri, align 8, !tbaa !24
  %260 = load i32, ptr %64, align 4, !tbaa !22
  tail call void %259(i32 noundef %260, i32 noundef 32882, i32 noundef 33071)
  %261 = load ptr, ptr @glad_glTexParameteri, align 8, !tbaa !24
  %262 = load i32, ptr %64, align 4, !tbaa !22
  tail call void %261(i32 noundef %262, i32 noundef 10240, i32 noundef 9729)
  %263 = load ptr, ptr @glad_glTexParameteri, align 8, !tbaa !24
  %264 = load i32, ptr %64, align 4, !tbaa !22
  tail call void %263(i32 noundef %264, i32 noundef 10241, i32 noundef 9729)
  %265 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !24
  %266 = load i32, ptr %64, align 4, !tbaa !22
  tail call void %265(i32 noundef %266, i32 noundef 0)
  ret void

267:                                              ; preds = %221, %194, %167, %140, %113, %86
  %.pn113.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn113.pn.pn.pn, %86 ], [ %.pn108.pn.pn.pn, %113 ], [ %.pn103.pn.pn.pn, %140 ], [ %.pn98.pn.pn.pn, %167 ], [ %.pn93.pn.pn.pn, %194 ], [ %.pn.pn.pn.pn, %221 ]
  resume { ptr, i32 } %.pn113.pn.pn.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

attributes #0 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 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 }
attributes #5 = { noreturn }

!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, !7, i64 0}
!6 = !{!"_ZTSN3cgp15image_structureE", !7, i64 0, !7, i64 4, !10, i64 8, !11, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN3cgp16image_color_typeE", !8, i64 0}
!11 = !{!"_ZTSN3cgp8numarrayIhEE", !12, i64 0}
!12 = !{!"_ZTSSt6vectorIhSaIhEE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!16 = !{!"any pointer", !8, i64 0}
!17 = !{!18, !7, i64 4}
!18 = !{!"_ZTSN3cgp30opengl_texture_image_structureE", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16}
!19 = !{!18, !7, i64 8}
!20 = !{!6, !10, i64 8}
!21 = !{!18, !7, i64 12}
!22 = !{!18, !7, i64 16}
!23 = !{!6, !7, i64 4}
!24 = !{!16, !16, i64 0}
!25 = !{!18, !7, i64 0}


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