; LLVM IR from paroj/gltut :: glsdk/glmesh/source/GenQuadrics.ll (ZN6glmesh3gen10UnitSphereEii)

; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<glmesh::AttribDesc, std::allocator<glmesh::AttribDesc>>::_Vector_impl" }
%"struct.std::_Vector_base<glmesh::AttribDesc, std::allocator<glmesh::AttribDesc>>::_Vector_impl" = type { %"struct.std::_Vector_base<glmesh::AttribDesc, std::allocator<glmesh::AttribDesc>>::_Vector_impl_data" }
%"struct.std::_Vector_base<glmesh::AttribDesc, std::allocator<glmesh::AttribDesc>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.glmesh::AttribDesc" = type { i32, i32, i32, i32 }
%"class.glmesh::VertexFormat" = type { %"class.std::vector", %"class.std::vector.0", i64 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.glmesh::CpuDataWriter" = type { %"class.glmesh::VertexWriter", %"class.std::vector.5", %"class.std::vector.5", ptr, i64 }
%"class.glmesh::VertexWriter" = type { i64 }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.glm::detail::tvec3" = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { float, float, float }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.14" = type { i8 }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, unsigned int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, unsigned int>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, unsigned int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, unsigned int>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.glmesh::RenderCmdList" = type { %"class.std::auto_ptr" }
%"class.std::auto_ptr" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.20 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.20 = type { i64, [8 x i8] }
%"class.std::allocator.7" = type { i8 }

@_ZN2gl10GenBuffersE = external global ptr, align 8
@_ZN2gl10BindBufferE = external global ptr, align 8
@_ZN2gl10BufferDataE = external global ptr, align 8
@_ZN2gl15GenVertexArraysE = external global ptr, align 8
@_ZN2gl15BindVertexArrayE = external global ptr, align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN6glmesh3gen10UnitSphereEii(i32 noundef %0, i32 noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca %"class.std::vector", align 8
  %11 = alloca %"class.glmesh::AttribDesc", align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.glmesh::AttribDesc", align 4
  %15 = alloca %"class.glmesh::AttribDesc", align 4
  %16 = alloca %"class.glmesh::VertexFormat", align 8
  %17 = alloca %"class.glmesh::CpuDataWriter", align 8
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca i32, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca float, align 4
  %29 = alloca i32, align 4
  %30 = alloca float, align 4
  %31 = alloca float, align 4
  %32 = alloca float, align 4
  %33 = alloca %"struct.glm::detail::tvec3", align 4
  %34 = alloca float, align 4
  %35 = alloca float, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i64, align 8
  %39 = alloca i64, align 8
  %40 = alloca i64, align 8
  %41 = alloca %"class.std::vector.12", align 8
  %42 = alloca i64, align 8
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca i64, align 8
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  %48 = alloca %"class.std::vector.12", align 8
  %49 = alloca %"class.std::allocator.14", align 1
  %50 = alloca %"class.std::map", align 8
  %51 = alloca i32, align 4
  %52 = alloca %"class.glmesh::RenderCmdList", align 8
  %53 = alloca i64, align 8
  %54 = alloca i32, align 4
  %55 = alloca i32, align 4
  %56 = alloca %"class.std::__cxx11::basic_string", align 8
  %57 = alloca %"class.std::allocator.7", align 1
  %58 = alloca ptr, align 8
  store i32 %0, ptr %3, align 4, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  store i32 1, ptr %5, align 4, !tbaa !5
  %59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %60 = load i32, ptr %59, align 4, !tbaa !5
  store i32 %60, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #9
  store i32 3, ptr %6, align 4, !tbaa !5
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %62 = load i32, ptr %61, align 4, !tbaa !5
  store i32 %62, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  %63 = load i32, ptr %3, align 4, !tbaa !5
  %64 = add nsw i32 %63, 2
  %65 = sext i32 %64 to i64
  store i64 %65, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  %66 = load i32, ptr %4, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  %68 = sext i32 %67 to i64
  store i64 %68, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  %69 = load i64, ptr %8, align 8, !tbaa !9
  %70 = load i64, ptr %7, align 8, !tbaa !9
  %71 = mul i64 %69, %70
  store i64 %71, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #9
  call void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #9
  invoke void @_ZN6glmesh10AttribDescC1EjjNS_14VertexDataTypeENS_14AttribDataTypeE(ptr noundef nonnull align 4 dereferenceable(16) %11, i32 noundef 0, i32 noundef 3, i32 noundef 1, i32 noundef 0)
          to label %72 unwind label %92

72:                                               ; preds = %2
  invoke void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 4 dereferenceable(16) %11)
          to label %73 unwind label %92

73:                                               ; preds = %72
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #9
  invoke void @_ZN6glmesh10AttribDescC1EjjNS_14VertexDataTypeENS_14AttribDataTypeE(ptr noundef nonnull align 4 dereferenceable(16) %14, i32 noundef 2, i32 noundef 3, i32 noundef 1, i32 noundef 0)
          to label %74 unwind label %96

74:                                               ; preds = %73
  invoke void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 4 dereferenceable(16) %14)
          to label %75 unwind label %96

75:                                               ; preds = %74
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #9
  invoke void @_ZN6glmesh10AttribDescC1EjjNS_14VertexDataTypeENS_14AttribDataTypeE(ptr noundef nonnull align 4 dereferenceable(16) %15, i32 noundef 5, i32 noundef 2, i32 noundef 1, i32 noundef 0)
          to label %76 unwind label %100

76:                                               ; preds = %75
  invoke void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 4 dereferenceable(16) %15)
          to label %77 unwind label %100

77:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #9
  call void @llvm.lifetime.start.p0(i64 56, ptr %16) #9
  invoke void @_ZN6glmesh12VertexFormatC1ERKSt6vectorINS_10AttribDescESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(56) %16, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %78 unwind label %104

78:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 72, ptr %17) #9
  %79 = load i64, ptr %9, align 8, !tbaa !9
  invoke void @_ZN6glmesh13CpuDataWriterC1ERKNS_12VertexFormatEm(ptr noundef nonnull align 8 dereferenceable(72) %17, ptr noundef nonnull align 8 dereferenceable(56) %16, i64 noundef %79)
          to label %80 unwind label %108

80:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  %81 = load i64, ptr %8, align 8, !tbaa !9
  %82 = uitofp i64 %81 to float
  %83 = fdiv float 1.000000e+00, %82
  store float %83, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  %84 = load i64, ptr %7, align 8, !tbaa !9
  %85 = uitofp i64 %84 to float
  %86 = fdiv float 1.000000e+00, %85
  store float %86, ptr %19, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %87

87:                                               ; preds = %120, %80
  %88 = load i32, ptr %20, align 4, !tbaa !5
  %89 = load i32, ptr %4, align 4, !tbaa !5
  %90 = icmp slt i32 %88, %89
  br i1 %90, label %112, label %91

91:                                               ; preds = %87
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  br label %127

92:                                               ; preds = %72, %2
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %12, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #9
  br label %544

96:                                               ; preds = %74, %73
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %12, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #9
  br label %544

100:                                              ; preds = %76, %75
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %12, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #9
  br label %544

104:                                              ; preds = %77
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %12, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %13, align 4
  br label %543

108:                                              ; preds = %78
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %12, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %13, align 4
  br label %542

112:                                              ; preds = %87
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(8) %17, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %113 unwind label %123

113:                                              ; preds = %112
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(8) %17, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %114 unwind label %123

114:                                              ; preds = %113
  %115 = load float, ptr %18, align 4, !tbaa !11
  %116 = load i32, ptr %20, align 4, !tbaa !5
  %117 = sitofp i32 %116 to float
  %118 = fmul float %115, %117
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_(ptr noundef nonnull align 8 dereferenceable(8) %17, float noundef %118, float noundef 1.000000e+00)
          to label %119 unwind label %123

119:                                              ; preds = %114
  br label %120

120:                                              ; preds = %119
  %121 = load i32, ptr %20, align 4, !tbaa !5
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %20, align 4, !tbaa !5
  br label %87, !llvm.loop !13

123:                                              ; preds = %114, %113, %112
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %12, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  br label %541

127:                                              ; preds = %91
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(8) %17, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %128 unwind label %143

128:                                              ; preds = %127
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(8) %17, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %129 unwind label %143

129:                                              ; preds = %128
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_(ptr noundef nonnull align 8 dereferenceable(8) %17, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %130 unwind label %143

130:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
  %131 = load i32, ptr %3, align 4, !tbaa !5
  %132 = add nsw i32 %131, 1
  %133 = sitofp i32 %132 to float
  %134 = fdiv float 0x400921F0E0000000, %133
  store float %134, ptr %21, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #9
  %135 = load i32, ptr %4, align 4, !tbaa !5
  %136 = sitofp i32 %135 to float
  %137 = fdiv float 0x401921F0E0000000, %136
  store float %137, ptr %22, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #9
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %138

138:                                              ; preds = %237, %130
  %139 = load i32, ptr %23, align 4, !tbaa !5
  %140 = load i32, ptr %3, align 4, !tbaa !5
  %141 = icmp slt i32 %139, %140
  br i1 %141, label %147, label %142

142:                                              ; preds = %138
  store i32 5, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  br label %247

143:                                              ; preds = %129, %128, %127
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %12, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %13, align 4
  br label %541

147:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #9
  %148 = load float, ptr %21, align 4, !tbaa !11
  %149 = load i32, ptr %23, align 4, !tbaa !5
  %150 = add nsw i32 %149, 1
  %151 = sitofp i32 %150 to float
  %152 = fmul float %148, %151
  store float %152, ptr %25, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  %153 = load float, ptr %25, align 4, !tbaa !11
  %154 = invoke noundef float @_ZSt3sinf(float noundef %153)
          to label %155 unwind label %170

155:                                              ; preds = %147
  store float %154, ptr %26, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  %156 = load float, ptr %25, align 4, !tbaa !11
  %157 = invoke noundef float @_ZSt3cosf(float noundef %156)
          to label %158 unwind label %174

158:                                              ; preds = %155
  store float %157, ptr %27, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #9
  %159 = load i32, ptr %23, align 4, !tbaa !5
  %160 = add nsw i32 %159, 1
  %161 = sitofp i32 %160 to float
  %162 = load float, ptr %19, align 4, !tbaa !11
  %163 = fneg float %161
  %164 = call float @llvm.fmuladd.f32(float %163, float %162, float 1.000000e+00)
  store float %164, ptr %28, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #9
  store i32 0, ptr %29, align 4, !tbaa !5
  br label %165

165:                                              ; preds = %206, %158
  %166 = load i32, ptr %29, align 4, !tbaa !5
  %167 = load i32, ptr %4, align 4, !tbaa !5
  %168 = icmp slt i32 %166, %167
  br i1 %168, label %178, label %169

169:                                              ; preds = %165
  store i32 8, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  br label %228

170:                                              ; preds = %147
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %12, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %13, align 4
  br label %246

174:                                              ; preds = %155
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %12, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %13, align 4
  br label %245

178:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #9
  %179 = load float, ptr %22, align 4, !tbaa !11
  %180 = load i32, ptr %29, align 4, !tbaa !5
  %181 = sitofp i32 %180 to float
  %182 = fmul float %179, %181
  store float %182, ptr %30, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #9
  %183 = load float, ptr %30, align 4, !tbaa !11
  %184 = fneg float %183
  %185 = invoke noundef float @_ZSt3sinf(float noundef %184)
          to label %186 unwind label %209

186:                                              ; preds = %178
  store float %185, ptr %31, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #9
  %187 = load float, ptr %30, align 4, !tbaa !11
  %188 = fneg float %187
  %189 = invoke noundef float @_ZSt3cosf(float noundef %188)
          to label %190 unwind label %213

190:                                              ; preds = %186
  store float %189, ptr %32, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 12, ptr %33) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #9
  %191 = load float, ptr %26, align 4, !tbaa !11
  %192 = load float, ptr %32, align 4, !tbaa !11
  %193 = fmul float %191, %192
  store float %193, ptr %34, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #9
  %194 = load float, ptr %26, align 4, !tbaa !11
  %195 = load float, ptr %31, align 4, !tbaa !11
  %196 = fmul float %194, %195
  store float %196, ptr %35, align 4, !tbaa !11
  invoke void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12) %33, ptr noundef nonnull align 4 dereferenceable(4) %34, ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull align 4 dereferenceable(4) %35)
          to label %197 unwind label %217

197:                                              ; preds = %190
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #9
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvRKN3glm6detail5tvec3IT_EE(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(12) %33)
          to label %198 unwind label %221

198:                                              ; preds = %197
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvRKN3glm6detail5tvec3IT_EE(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(12) %33)
          to label %199 unwind label %221

199:                                              ; preds = %198
  %200 = load float, ptr %18, align 4, !tbaa !11
  %201 = load i32, ptr %29, align 4, !tbaa !5
  %202 = sitofp i32 %201 to float
  %203 = fmul float %200, %202
  %204 = load float, ptr %28, align 4, !tbaa !11
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_(ptr noundef nonnull align 8 dereferenceable(8) %17, float noundef %203, float noundef %204)
          to label %205 unwind label %221

205:                                              ; preds = %199
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  br label %206

206:                                              ; preds = %205
  %207 = load i32, ptr %29, align 4, !tbaa !5
  %208 = add nsw i32 %207, 1
  store i32 %208, ptr %29, align 4, !tbaa !5
  br label %165, !llvm.loop !15

209:                                              ; preds = %178
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %12, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %13, align 4
  br label %227

213:                                              ; preds = %186
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %12, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %13, align 4
  br label %226

217:                                              ; preds = %190
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %12, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #9
  br label %225

221:                                              ; preds = %199, %198, %197
  %222 = landingpad { ptr, i32 }
          cleanup
  %223 = extractvalue { ptr, i32 } %222, 0
  store ptr %223, ptr %12, align 8
  %224 = extractvalue { ptr, i32 } %222, 1
  store i32 %224, ptr %13, align 4
  br label %225

225:                                              ; preds = %221, %217
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #9
  br label %226

226:                                              ; preds = %225, %213
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #9
  br label %227

227:                                              ; preds = %226, %209
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  br label %244

228:                                              ; preds = %169
  %229 = load float, ptr %26, align 4, !tbaa !11
  %230 = load float, ptr %27, align 4, !tbaa !11
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(8) %17, float noundef %229, float noundef %230, float noundef 0.000000e+00)
          to label %231 unwind label %240

231:                                              ; preds = %228
  %232 = load float, ptr %26, align 4, !tbaa !11
  %233 = load float, ptr %27, align 4, !tbaa !11
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(8) %17, float noundef %232, float noundef %233, float noundef 0.000000e+00)
          to label %234 unwind label %240

234:                                              ; preds = %231
  %235 = load float, ptr %28, align 4, !tbaa !11
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_(ptr noundef nonnull align 8 dereferenceable(8) %17, float noundef 1.000000e+00, float noundef %235)
          to label %236 unwind label %240

236:                                              ; preds = %234
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  br label %237

237:                                              ; preds = %236
  %238 = load i32, ptr %23, align 4, !tbaa !5
  %239 = add nsw i32 %238, 1
  store i32 %239, ptr %23, align 4, !tbaa !5
  br label %138, !llvm.loop !16

240:                                              ; preds = %234, %231, %228
  %241 = landingpad { ptr, i32 }
          cleanup
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %12, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %13, align 4
  br label %244

244:                                              ; preds = %240, %227
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  br label %245

245:                                              ; preds = %244, %174
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  br label %246

246:                                              ; preds = %245, %170
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  br label %540

247:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #9
  store i32 0, ptr %36, align 4, !tbaa !5
  br label %248

248:                                              ; preds = %261, %247
  %249 = load i32, ptr %36, align 4, !tbaa !5
  %250 = load i32, ptr %4, align 4, !tbaa !5
  %251 = icmp slt i32 %249, %250
  br i1 %251, label %253, label %252

252:                                              ; preds = %248
  store i32 11, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #9
  br label %268

253:                                              ; preds = %248
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(8) %17, float noundef 0.000000e+00, float noundef -1.000000e+00, float noundef 0.000000e+00)
          to label %254 unwind label %264

254:                                              ; preds = %253
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(8) %17, float noundef 0.000000e+00, float noundef -1.000000e+00, float noundef 0.000000e+00)
          to label %255 unwind label %264

255:                                              ; preds = %254
  %256 = load float, ptr %18, align 4, !tbaa !11
  %257 = load i32, ptr %36, align 4, !tbaa !5
  %258 = sitofp i32 %257 to float
  %259 = fmul float %256, %258
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_(ptr noundef nonnull align 8 dereferenceable(8) %17, float noundef %259, float noundef 0.000000e+00)
          to label %260 unwind label %264

260:                                              ; preds = %255
  br label %261

261:                                              ; preds = %260
  %262 = load i32, ptr %36, align 4, !tbaa !5
  %263 = add nsw i32 %262, 1
  store i32 %263, ptr %36, align 4, !tbaa !5
  br label %248, !llvm.loop !17

264:                                              ; preds = %255, %254, %253
  %265 = landingpad { ptr, i32 }
          cleanup
  %266 = extractvalue { ptr, i32 } %265, 0
  store ptr %266, ptr %12, align 8
  %267 = extractvalue { ptr, i32 } %265, 1
  store i32 %267, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #9
  br label %540

268:                                              ; preds = %252
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(8) %17, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %269 unwind label %295

269:                                              ; preds = %268
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(8) %17, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %270 unwind label %295

270:                                              ; preds = %269
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_(ptr noundef nonnull align 8 dereferenceable(8) %17, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %271 unwind label %295

271:                                              ; preds = %270
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #9
  %272 = invoke noundef i64 @_ZNK6glmesh13CpuDataWriter21GetNumVerticesWrittenEv(ptr noundef nonnull align 8 dereferenceable(72) %17)
          to label %273 unwind label %299

273:                                              ; preds = %271
  %274 = trunc i64 %272 to i32
  store i32 %274, ptr %37, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #9
  %275 = load i32, ptr %4, align 4, !tbaa !5
  %276 = mul nsw i32 2, %275
  %277 = add nsw i32 %276, 2
  %278 = sext i32 %277 to i64
  store i64 %278, ptr %38, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #9
  %279 = load i64, ptr %7, align 8, !tbaa !9
  %280 = sub i64 %279, 1
  store i64 %280, ptr %39, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #9
  %281 = load i64, ptr %39, align 8, !tbaa !9
  %282 = load i64, ptr %38, align 8, !tbaa !9
  %283 = mul i64 %281, %282
  store i64 %283, ptr %40, align 8, !tbaa !9
  %284 = load i64, ptr %39, align 8, !tbaa !9
  %285 = sub i64 %284, 1
  %286 = load i64, ptr %40, align 8, !tbaa !9
  %287 = add i64 %286, %285
  store i64 %287, ptr %40, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %41) #9
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %41) #9
  %288 = load i64, ptr %40, align 8, !tbaa !9
  invoke void @_ZNSt6vectorIjSaIjEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %288)
          to label %289 unwind label %303

289:                                              ; preds = %273
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #9
  store i64 0, ptr %42, align 8, !tbaa !9
  br label %290

290:                                              ; preds = %358, %289
  %291 = load i64, ptr %42, align 8, !tbaa !9
  %292 = load i64, ptr %39, align 8, !tbaa !9
  %293 = icmp ult i64 %291, %292
  br i1 %293, label %307, label %294

294:                                              ; preds = %290
  store i32 14, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #9
  br label %362

295:                                              ; preds = %270, %269, %268
  %296 = landingpad { ptr, i32 }
          cleanup
  %297 = extractvalue { ptr, i32 } %296, 0
  store ptr %297, ptr %12, align 8
  %298 = extractvalue { ptr, i32 } %296, 1
  store i32 %298, ptr %13, align 4
  br label %540

299:                                              ; preds = %271
  %300 = landingpad { ptr, i32 }
          cleanup
  %301 = extractvalue { ptr, i32 } %300, 0
  store ptr %301, ptr %12, align 8
  %302 = extractvalue { ptr, i32 } %300, 1
  store i32 %302, ptr %13, align 4
  br label %539

303:                                              ; preds = %273
  %304 = landingpad { ptr, i32 }
          cleanup
  %305 = extractvalue { ptr, i32 } %304, 0
  store ptr %305, ptr %12, align 8
  %306 = extractvalue { ptr, i32 } %304, 1
  store i32 %306, ptr %13, align 4
  br label %538

307:                                              ; preds = %290
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #9
  %308 = load i64, ptr %42, align 8, !tbaa !9
  %309 = load i64, ptr %8, align 8, !tbaa !9
  %310 = mul i64 %308, %309
  %311 = trunc i64 %310 to i32
  store i32 %311, ptr %43, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #9
  %312 = load i64, ptr %42, align 8, !tbaa !9
  %313 = add i64 %312, 1
  %314 = load i64, ptr %8, align 8, !tbaa !9
  %315 = mul i64 %313, %314
  %316 = trunc i64 %315 to i32
  store i32 %316, ptr %44, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #9
  store i64 0, ptr %45, align 8, !tbaa !9
  br label %317

317:                                              ; preds = %335, %307
  %318 = load i64, ptr %45, align 8, !tbaa !9
  %319 = load i64, ptr %8, align 8, !tbaa !9
  %320 = icmp ult i64 %318, %319
  br i1 %320, label %322, label %321

321:                                              ; preds = %317
  store i32 17, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #9
  br label %347

322:                                              ; preds = %317
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #9
  %323 = load i32, ptr %43, align 4, !tbaa !5
  %324 = zext i32 %323 to i64
  %325 = load i64, ptr %45, align 8, !tbaa !9
  %326 = add i64 %324, %325
  %327 = trunc i64 %326 to i32
  store i32 %327, ptr %46, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %41, ptr noundef nonnull align 4 dereferenceable(4) %46)
          to label %328 unwind label %338

328:                                              ; preds = %322
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #9
  %329 = load i32, ptr %44, align 4, !tbaa !5
  %330 = zext i32 %329 to i64
  %331 = load i64, ptr %45, align 8, !tbaa !9
  %332 = add i64 %330, %331
  %333 = trunc i64 %332 to i32
  store i32 %333, ptr %47, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %41, ptr noundef nonnull align 4 dereferenceable(4) %47)
          to label %334 unwind label %342

334:                                              ; preds = %328
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #9
  br label %335

335:                                              ; preds = %334
  %336 = load i64, ptr %45, align 8, !tbaa !9
  %337 = add i64 %336, 1
  store i64 %337, ptr %45, align 8, !tbaa !9
  br label %317, !llvm.loop !18

338:                                              ; preds = %322
  %339 = landingpad { ptr, i32 }
          cleanup
  %340 = extractvalue { ptr, i32 } %339, 0
  store ptr %340, ptr %12, align 8
  %341 = extractvalue { ptr, i32 } %339, 1
  store i32 %341, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #9
  br label %346

342:                                              ; preds = %328
  %343 = landingpad { ptr, i32 }
          cleanup
  %344 = extractvalue { ptr, i32 } %343, 0
  store ptr %344, ptr %12, align 8
  %345 = extractvalue { ptr, i32 } %343, 1
  store i32 %345, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #9
  br label %346

346:                                              ; preds = %342, %338
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #9
  br label %361

347:                                              ; preds = %321
  %348 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #9
  %349 = load i64, ptr %40, align 8, !tbaa !9
  %350 = icmp ne i64 %348, %349
  br i1 %350, label %351, label %357

351:                                              ; preds = %347
  invoke void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %41, ptr noundef nonnull align 4 dereferenceable(4) %37)
          to label %352 unwind label %353

352:                                              ; preds = %351
  br label %357

353:                                              ; preds = %351
  %354 = landingpad { ptr, i32 }
          cleanup
  %355 = extractvalue { ptr, i32 } %354, 0
  store ptr %355, ptr %12, align 8
  %356 = extractvalue { ptr, i32 } %354, 1
  store i32 %356, ptr %13, align 4
  br label %361

357:                                              ; preds = %352, %347
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #9
  br label %358

358:                                              ; preds = %357
  %359 = load i64, ptr %42, align 8, !tbaa !9
  %360 = add i64 %359, 1
  store i64 %360, ptr %42, align 8, !tbaa !9
  br label %290, !llvm.loop !19

361:                                              ; preds = %353, %346
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #9
  br label %538

362:                                              ; preds = %294
  call void @llvm.lifetime.start.p0(i64 24, ptr %48) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %49) #9
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %49) #9
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef 2, ptr noundef nonnull align 1 dereferenceable(1) %49)
          to label %363 unwind label %453

363:                                              ; preds = %362
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %49) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %49) #9
  %364 = load ptr, ptr @_ZN2gl10GenBuffersE, align 8, !tbaa !20
  %365 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef 0) #9
  invoke void %364(i32 noundef 2, ptr noundef %365)
          to label %366 unwind label %457

366:                                              ; preds = %363
  %367 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef 0) #9
  %368 = load i32, ptr %367, align 4, !tbaa !5
  %369 = invoke noundef i32 @_ZNK6glmesh13CpuDataWriter16TransferToBufferEjjj(ptr noundef nonnull align 8 dereferenceable(72) %17, i32 noundef 34962, i32 noundef 35044, i32 noundef %368)
          to label %370 unwind label %457

370:                                              ; preds = %366
  %371 = load ptr, ptr @_ZN2gl10BindBufferE, align 8, !tbaa !20
  %372 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef 1) #9
  %373 = load i32, ptr %372, align 4, !tbaa !5
  invoke void %371(i32 noundef 34963, i32 noundef %373)
          to label %374 unwind label %457

374:                                              ; preds = %370
  %375 = load ptr, ptr @_ZN2gl10BufferDataE, align 8, !tbaa !20
  %376 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #9
  %377 = mul i64 %376, 4
  %378 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef 0) #9
  invoke void %375(i32 noundef 34963, i64 noundef %377, ptr noundef %378, i32 noundef 35044)
          to label %379 unwind label %457

379:                                              ; preds = %374
  %380 = load ptr, ptr @_ZN2gl10BindBufferE, align 8, !tbaa !20
  invoke void %380(i32 noundef 34963, i32 noundef 0)
          to label %381 unwind label %457

381:                                              ; preds = %379
  call void @llvm.lifetime.start.p0(i64 48, ptr %50) #9
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %50) #9
  %382 = load ptr, ptr @_ZN2gl10BindBufferE, align 8, !tbaa !20
  %383 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef 0) #9
  %384 = load i32, ptr %383, align 4, !tbaa !5
  invoke void %382(i32 noundef 34962, i32 noundef %384)
          to label %385 unwind label %461

385:                                              ; preds = %381
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #9
  store i32 0, ptr %51, align 4, !tbaa !5
  %386 = load ptr, ptr @_ZN2gl15GenVertexArraysE, align 8, !tbaa !20
  invoke void %386(i32 noundef 1, ptr noundef %51)
          to label %387 unwind label %465

387:                                              ; preds = %385
  %388 = load ptr, ptr @_ZN2gl15BindVertexArrayE, align 8, !tbaa !20
  %389 = load i32, ptr %51, align 4, !tbaa !5
  invoke void %388(i32 noundef %389)
          to label %390 unwind label %465

390:                                              ; preds = %387
  %391 = load ptr, ptr @_ZN2gl10BindBufferE, align 8, !tbaa !20
  %392 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef 1) #9
  %393 = load i32, ptr %392, align 4, !tbaa !5
  invoke void %391(i32 noundef 34963, i32 noundef %393)
          to label %394 unwind label %465

394:                                              ; preds = %390
  invoke void @_ZNK6glmesh12VertexFormat13BindAttributeEmm(ptr noundef nonnull align 8 dereferenceable(56) %16, i64 noundef 0, i64 noundef 0)
          to label %395 unwind label %465

395:                                              ; preds = %394
  %396 = load i32, ptr %51, align 4, !tbaa !5
  invoke void @_ZN6glmesh3gen15AddVariantToMapERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS7_ESaISt4pairIKS7_jEEEji(ptr noundef nonnull align 8 dereferenceable(48) %50, i32 noundef %396, i32 noundef 0)
          to label %397 unwind label %465

397:                                              ; preds = %395
  %398 = load ptr, ptr @_ZN2gl15GenVertexArraysE, align 8, !tbaa !20
  invoke void %398(i32 noundef 1, ptr noundef %51)
          to label %399 unwind label %465

399:                                              ; preds = %397
  %400 = load ptr, ptr @_ZN2gl15BindVertexArrayE, align 8, !tbaa !20
  %401 = load i32, ptr %51, align 4, !tbaa !5
  invoke void %400(i32 noundef %401)
          to label %402 unwind label %465

402:                                              ; preds = %399
  %403 = load ptr, ptr @_ZN2gl10BindBufferE, align 8, !tbaa !20
  %404 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef 1) #9
  %405 = load i32, ptr %404, align 4, !tbaa !5
  invoke void %403(i32 noundef 34963, i32 noundef %405)
          to label %406 unwind label %465

406:                                              ; preds = %402
  invoke void @_ZNK6glmesh12VertexFormat13BindAttributeEmm(ptr noundef nonnull align 8 dereferenceable(56) %16, i64 noundef 0, i64 noundef 0)
          to label %407 unwind label %465

407:                                              ; preds = %406
  invoke void @_ZNK6glmesh12VertexFormat13BindAttributeEmm(ptr noundef nonnull align 8 dereferenceable(56) %16, i64 noundef 0, i64 noundef 1)
          to label %408 unwind label %465

408:                                              ; preds = %407
  %409 = load i32, ptr %51, align 4, !tbaa !5
  invoke void @_ZN6glmesh3gen15AddVariantToMapERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS7_ESaISt4pairIKS7_jEEEji(ptr noundef nonnull align 8 dereferenceable(48) %50, i32 noundef %409, i32 noundef 2)
          to label %410 unwind label %465

410:                                              ; preds = %408
  %411 = load ptr, ptr @_ZN2gl15GenVertexArraysE, align 8, !tbaa !20
  invoke void %411(i32 noundef 1, ptr noundef %51)
          to label %412 unwind label %465

412:                                              ; preds = %410
  %413 = load ptr, ptr @_ZN2gl15BindVertexArrayE, align 8, !tbaa !20
  %414 = load i32, ptr %51, align 4, !tbaa !5
  invoke void %413(i32 noundef %414)
          to label %415 unwind label %465

415:                                              ; preds = %412
  %416 = load ptr, ptr @_ZN2gl10BindBufferE, align 8, !tbaa !20
  %417 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef 1) #9
  %418 = load i32, ptr %417, align 4, !tbaa !5
  invoke void %416(i32 noundef 34963, i32 noundef %418)
          to label %419 unwind label %465

419:                                              ; preds = %415
  invoke void @_ZNK6glmesh12VertexFormat13BindAttributeEmm(ptr noundef nonnull align 8 dereferenceable(56) %16, i64 noundef 0, i64 noundef 0)
          to label %420 unwind label %465

420:                                              ; preds = %419
  invoke void @_ZNK6glmesh12VertexFormat13BindAttributeEmm(ptr noundef nonnull align 8 dereferenceable(56) %16, i64 noundef 0, i64 noundef 2)
          to label %421 unwind label %465

421:                                              ; preds = %420
  %422 = load i32, ptr %51, align 4, !tbaa !5
  invoke void @_ZN6glmesh3gen15AddVariantToMapERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS7_ESaISt4pairIKS7_jEEEji(ptr noundef nonnull align 8 dereferenceable(48) %50, i32 noundef %422, i32 noundef 4)
          to label %423 unwind label %465

423:                                              ; preds = %421
  %424 = load ptr, ptr @_ZN2gl15GenVertexArraysE, align 8, !tbaa !20
  invoke void %424(i32 noundef 1, ptr noundef %51)
          to label %425 unwind label %465

425:                                              ; preds = %423
  %426 = load ptr, ptr @_ZN2gl15BindVertexArrayE, align 8, !tbaa !20
  %427 = load i32, ptr %51, align 4, !tbaa !5
  invoke void %426(i32 noundef %427)
          to label %428 unwind label %465

428:                                              ; preds = %425
  %429 = load ptr, ptr @_ZN2gl10BindBufferE, align 8, !tbaa !20
  %430 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef 1) #9
  %431 = load i32, ptr %430, align 4, !tbaa !5
  invoke void %429(i32 noundef 34963, i32 noundef %431)
          to label %432 unwind label %465

432:                                              ; preds = %428
  invoke void @_ZNK6glmesh12VertexFormat13BindAttributeEmm(ptr noundef nonnull align 8 dereferenceable(56) %16, i64 noundef 0, i64 noundef 0)
          to label %433 unwind label %465

433:                                              ; preds = %432
  invoke void @_ZNK6glmesh12VertexFormat13BindAttributeEmm(ptr noundef nonnull align 8 dereferenceable(56) %16, i64 noundef 0, i64 noundef 1)
          to label %434 unwind label %465

434:                                              ; preds = %433
  invoke void @_ZNK6glmesh12VertexFormat13BindAttributeEmm(ptr noundef nonnull align 8 dereferenceable(56) %16, i64 noundef 0, i64 noundef 2)
          to label %435 unwind label %465

435:                                              ; preds = %434
  %436 = load i32, ptr %51, align 4, !tbaa !5
  invoke void @_ZN6glmesh3gen15AddVariantToMapERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS7_ESaISt4pairIKS7_jEEEji(ptr noundef nonnull align 8 dereferenceable(48) %50, i32 noundef %436, i32 noundef 6)
          to label %437 unwind label %465

437:                                              ; preds = %435
  %438 = load ptr, ptr @_ZN2gl15BindVertexArrayE, align 8, !tbaa !20
  invoke void %438(i32 noundef 0)
          to label %439 unwind label %465

439:                                              ; preds = %437
  %440 = load ptr, ptr @_ZN2gl10BindBufferE, align 8, !tbaa !20
  invoke void %440(i32 noundef 34962, i32 noundef 0)
          to label %441 unwind label %465

441:                                              ; preds = %439
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #9
  invoke void @_ZN6glmesh13RenderCmdListC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %52)
          to label %442 unwind label %469

442:                                              ; preds = %441
  %443 = invoke noundef i32 @_ZN6glload12IsVersionGEQEii(i32 noundef 3, i32 noundef 1)
          to label %444 unwind label %473

444:                                              ; preds = %442
  %445 = icmp ne i32 %443, 0
  br i1 %445, label %446, label %477

446:                                              ; preds = %444
  %447 = load i32, ptr %37, align 4, !tbaa !5
  invoke void @_ZN6glmesh13RenderCmdList21PrimitiveRestartIndexEj(ptr noundef nonnull align 8 dereferenceable(8) %52, i32 noundef %447)
          to label %448 unwind label %473

448:                                              ; preds = %446
  %449 = load i64, ptr %40, align 8, !tbaa !9
  %450 = trunc i64 %449 to i32
  invoke void @_ZN6glmesh13RenderCmdList12DrawElementsEjijli(ptr noundef nonnull align 8 dereferenceable(8) %52, i32 noundef 5, i32 noundef %450, i32 noundef 5125, i64 noundef 0, i32 noundef 0)
          to label %451 unwind label %473

451:                                              ; preds = %448
  invoke void @_ZN6glmesh13RenderCmdList21PrimitiveRestartIndexEv(ptr noundef nonnull align 8 dereferenceable(8) %52)
          to label %452 unwind label %473

452:                                              ; preds = %451
  br label %503

453:                                              ; preds = %362
  %454 = landingpad { ptr, i32 }
          cleanup
  %455 = extractvalue { ptr, i32 } %454, 0
  store ptr %455, ptr %12, align 8
  %456 = extractvalue { ptr, i32 } %454, 1
  store i32 %456, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %49) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %49) #9
  br label %537

457:                                              ; preds = %379, %374, %370, %366, %363
  %458 = landingpad { ptr, i32 }
          cleanup
  %459 = extractvalue { ptr, i32 } %458, 0
  store ptr %459, ptr %12, align 8
  %460 = extractvalue { ptr, i32 } %458, 1
  store i32 %460, ptr %13, align 4
  br label %536

461:                                              ; preds = %381
  %462 = landingpad { ptr, i32 }
          cleanup
  %463 = extractvalue { ptr, i32 } %462, 0
  store ptr %463, ptr %12, align 8
  %464 = extractvalue { ptr, i32 } %462, 1
  store i32 %464, ptr %13, align 4
  br label %535

465:                                              ; preds = %439, %437, %435, %434, %433, %432, %428, %425, %423, %421, %420, %419, %415, %412, %410, %408, %407, %406, %402, %399, %397, %395, %394, %390, %387, %385
  %466 = landingpad { ptr, i32 }
          cleanup
  %467 = extractvalue { ptr, i32 } %466, 0
  store ptr %467, ptr %12, align 8
  %468 = extractvalue { ptr, i32 } %466, 1
  store i32 %468, ptr %13, align 4
  br label %534

469:                                              ; preds = %441
  %470 = landingpad { ptr, i32 }
          cleanup
  %471 = extractvalue { ptr, i32 } %470, 0
  store ptr %471, ptr %12, align 8
  %472 = extractvalue { ptr, i32 } %470, 1
  store i32 %472, ptr %13, align 4
  br label %533

473:                                              ; preds = %451, %448, %446, %442
  %474 = landingpad { ptr, i32 }
          cleanup
  %475 = extractvalue { ptr, i32 } %474, 0
  store ptr %475, ptr %12, align 8
  %476 = extractvalue { ptr, i32 } %474, 1
  store i32 %476, ptr %13, align 4
  br label %532

477:                                              ; preds = %444
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #9
  store i64 0, ptr %53, align 8, !tbaa !9
  br label %478

478:                                              ; preds = %495, %477
  %479 = load i64, ptr %53, align 8, !tbaa !9
  %480 = load i64, ptr %39, align 8, !tbaa !9
  %481 = icmp ult i64 %479, %480
  br i1 %481, label %483, label %482

482:                                              ; preds = %478
  store i32 20, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #9
  br label %502

483:                                              ; preds = %478
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #9
  %484 = load i64, ptr %53, align 8, !tbaa !9
  %485 = load i64, ptr %38, align 8, !tbaa !9
  %486 = add i64 %485, 1
  %487 = mul i64 %484, %486
  %488 = trunc i64 %487 to i32
  store i32 %488, ptr %54, align 4, !tbaa !5
  %489 = load i64, ptr %38, align 8, !tbaa !9
  %490 = trunc i64 %489 to i32
  %491 = load i32, ptr %54, align 4, !tbaa !5
  %492 = zext i32 %491 to i64
  %493 = mul i64 %492, 4
  invoke void @_ZN6glmesh13RenderCmdList12DrawElementsEjijli(ptr noundef nonnull align 8 dereferenceable(8) %52, i32 noundef 5, i32 noundef %490, i32 noundef 5125, i64 noundef %493, i32 noundef 0)
          to label %494 unwind label %498

494:                                              ; preds = %483
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #9
  br label %495

495:                                              ; preds = %494
  %496 = load i64, ptr %53, align 8, !tbaa !9
  %497 = add i64 %496, 1
  store i64 %497, ptr %53, align 8, !tbaa !9
  br label %478, !llvm.loop !22

498:                                              ; preds = %483
  %499 = landingpad { ptr, i32 }
          cleanup
  %500 = extractvalue { ptr, i32 } %499, 0
  store ptr %500, ptr %12, align 8
  %501 = extractvalue { ptr, i32 } %499, 1
  store i32 %501, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #9
  br label %532

502:                                              ; preds = %482
  br label %503

503:                                              ; preds = %502, %452
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %56) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %57) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %57) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %56, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %57)
          to label %504 unwind label %513

504:                                              ; preds = %503
  %505 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEEixEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %50, ptr noundef nonnull align 8 dereferenceable(32) %56)
          to label %506 unwind label %517

506:                                              ; preds = %504
  %507 = load i32, ptr %505, align 4, !tbaa !5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %56) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %57) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %57) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %56) #9
  store i32 %507, ptr %55, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #9
  %508 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 8) #10
          to label %509 unwind label %522

509:                                              ; preds = %506
  %510 = load i32, ptr %55, align 4, !tbaa !5
  invoke void @_ZN6glmesh4MeshC1ERKSt6vectorIjSaIjEEjRKNS_13RenderCmdListERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessISF_ESaISt4pairIKSF_jEEE(ptr noundef nonnull align 8 dereferenceable(8) %508, ptr noundef nonnull align 8 dereferenceable(24) %48, i32 noundef %510, ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef nonnull align 8 dereferenceable(48) %50)
          to label %511 unwind label %526

511:                                              ; preds = %509
  store ptr %508, ptr %58, align 8, !tbaa !20
  %512 = load ptr, ptr %58, align 8, !tbaa !20
  store i32 1, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #9
  call void @_ZN6glmesh13RenderCmdListD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %52) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #9
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %50) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr %50) #9
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %48) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %48) #9
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %41) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %41) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  call void @_ZN6glmesh13CpuDataWriterD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %17) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr %17) #9
  call void @_ZN6glmesh12VertexFormatD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %16) #9
  call void @llvm.lifetime.end.p0(i64 56, ptr %16) #9
  call void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  ret ptr %512

513:                                              ; preds = %503
  %514 = landingpad { ptr, i32 }
          cleanup
  %515 = extractvalue { ptr, i32 } %514, 0
  store ptr %515, ptr %12, align 8
  %516 = extractvalue { ptr, i32 } %514, 1
  store i32 %516, ptr %13, align 4
  br label %521

517:                                              ; preds = %504
  %518 = landingpad { ptr, i32 }
          cleanup
  %519 = extractvalue { ptr, i32 } %518, 0
  store ptr %519, ptr %12, align 8
  %520 = extractvalue { ptr, i32 } %518, 1
  store i32 %520, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %56) #9
  br label %521

521:                                              ; preds = %517, %513
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %57) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %57) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %56) #9
  br label %531

522:                                              ; preds = %506
  %523 = landingpad { ptr, i32 }
          cleanup
  %524 = extractvalue { ptr, i32 } %523, 0
  store ptr %524, ptr %12, align 8
  %525 = extractvalue { ptr, i32 } %523, 1
  store i32 %525, ptr %13, align 4
  br label %530

526:                                              ; preds = %509
  %527 = landingpad { ptr, i32 }
          cleanup
  %528 = extractvalue { ptr, i32 } %527, 0
  store ptr %528, ptr %12, align 8
  %529 = extractvalue { ptr, i32 } %527, 1
  store i32 %529, ptr %13, align 4
  call void @_ZdlPvm(ptr noundef %508, i64 noundef 8) #11
  br label %530

530:                                              ; preds = %526, %522
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #9
  br label %531

531:                                              ; preds = %530, %521
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #9
  br label %532

532:                                              ; preds = %531, %498, %473
  call void @_ZN6glmesh13RenderCmdListD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %52) #9
  br label %533

533:                                              ; preds = %532, %469
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #9
  br label %534

534:                                              ; preds = %533, %465
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #9
  br label %535

535:                                              ; preds = %534, %461
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %50) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr %50) #9
  br label %536

536:                                              ; preds = %535, %457
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %48) #9
  br label %537

537:                                              ; preds = %536, %453
  call void @llvm.lifetime.end.p0(i64 24, ptr %48) #9
  br label %538

538:                                              ; preds = %537, %361, %303
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %41) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %41) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #9
  br label %539

539:                                              ; preds = %538, %299
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #9
  br label %540

540:                                              ; preds = %539, %295, %264, %246
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  br label %541

541:                                              ; preds = %540, %143, %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  call void @_ZN6glmesh13CpuDataWriterD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %17) #9
  br label %542

542:                                              ; preds = %541, %108
  call void @llvm.lifetime.end.p0(i64 72, ptr %17) #9
  call void @_ZN6glmesh12VertexFormatD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %16) #9
  br label %543

543:                                              ; preds = %542, %104
  call void @llvm.lifetime.end.p0(i64 56, ptr %16) #9
  br label %544

544:                                              ; preds = %543, %100, %96, %92
  call void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  br label %545

545:                                              ; preds = %544
  %546 = load ptr, ptr %12, align 8
  %547 = load i32, ptr %13, align 4
  %548 = insertvalue { ptr, i32 } poison, ptr %546, 0
  %549 = insertvalue { ptr, i32 } %548, i32 %547, 1
  resume { ptr, i32 } %549
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(16)) #0 align 2

declare void @_ZN6glmesh10AttribDescC1EjjNS_14VertexDataTypeENS_14AttribDataTypeE(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef, i32 noundef, i32 noundef, i32 noundef) unnamed_addr #4

declare i32 @__gxx_personality_v0(...)

declare void @_ZN6glmesh12VertexFormatC1ERKSt6vectorINS_10AttribDescESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4

declare void @_ZN6glmesh13CpuDataWriterC1ERKNS_12VertexFormatEm(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(56), i64 noundef) unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(8), float noundef, float noundef, float noundef) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_(ptr noundef nonnull align 8 dereferenceable(8), float noundef, float noundef) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3sinf(float noundef) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3cosf(float noundef) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvRKN3glm6detail5tvec3IT_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(12)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK6glmesh13CpuDataWriter21GetNumVerticesWrittenEv(ptr noundef nonnull align 8 dereferenceable(72)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

declare noundef i32 @_ZNK6glmesh13CpuDataWriter16TransferToBufferEjjj(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef, i32 noundef, i32 noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2

declare void @_ZNK6glmesh12VertexFormat13BindAttributeEmm(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, i64 noundef) #4

declare void @_ZN6glmesh3gen15AddVariantToMapERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS7_ESaISt4pairIKS7_jEEEji(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef, i32 noundef) #4

declare void @_ZN6glmesh13RenderCmdListC1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

declare noundef i32 @_ZN6glload12IsVersionGEQEii(i32 noundef, i32 noundef) #4

declare void @_ZN6glmesh13RenderCmdList21PrimitiveRestartIndexEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4

declare void @_ZN6glmesh13RenderCmdList12DrawElementsEjijli(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef, i32 noundef, i64 noundef, i32 noundef) #4

declare void @_ZN6glmesh13RenderCmdList21PrimitiveRestartIndexEv(ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEEixEOS5_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 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 #0 align 2

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #6

declare void @_ZN6glmesh4MeshC1ERKSt6vectorIjSaIjEEjRKNS_13RenderCmdListERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessISF_ESaISt4pairIKSF_jEEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #7

; Function Attrs: nounwind
declare void @_ZN6glmesh13RenderCmdListD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nobuiltin allocsize(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 #7 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = !{!21, !21, i64 0}
!21 = !{!"any pointer", !7, i64 0}
!22 = distinct !{!22, !14}


; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<glmesh::AttribDesc, std::allocator<glmesh::AttribDesc>>::_Vector_impl" }
%"struct.std::_Vector_base<glmesh::AttribDesc, std::allocator<glmesh::AttribDesc>>::_Vector_impl" = type { %"struct.std::_Vector_base<glmesh::AttribDesc, std::allocator<glmesh::AttribDesc>>::_Vector_impl_data" }
%"struct.std::_Vector_base<glmesh::AttribDesc, std::allocator<glmesh::AttribDesc>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.glmesh::AttribDesc" = type { i32, i32, i32, i32 }
%"class.glmesh::VertexFormat" = type { %"class.std::vector", %"class.std::vector.0", i64 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.glmesh::CpuDataWriter" = type { %"class.glmesh::VertexWriter", %"class.std::vector.5", %"class.std::vector.5", ptr, i64 }
%"class.glmesh::VertexWriter" = type { i64 }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.glm::detail::tvec3" = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { float, float, float }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.14" = type { i8 }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, unsigned int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, unsigned int>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, unsigned int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, unsigned int>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.glmesh::RenderCmdList" = type { %"class.std::auto_ptr" }
%"class.std::auto_ptr" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.20 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.20 = type { i64, [8 x i8] }
%"class.std::allocator.7" = type { i8 }

@_ZN2gl10GenBuffersE = external local_unnamed_addr global ptr, align 8
@_ZN2gl10BindBufferE = external local_unnamed_addr global ptr, align 8
@_ZN2gl10BufferDataE = external local_unnamed_addr global ptr, align 8
@_ZN2gl15GenVertexArraysE = external local_unnamed_addr global ptr, align 8
@_ZN2gl15BindVertexArrayE = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN6glmesh3gen10UnitSphereEii(i32 noundef %0, i32 noundef %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"class.glmesh::AttribDesc", align 4
  %9 = alloca %"class.glmesh::AttribDesc", align 4
  %10 = alloca %"class.glmesh::AttribDesc", align 4
  %11 = alloca %"class.glmesh::VertexFormat", align 8
  %12 = alloca %"class.glmesh::CpuDataWriter", align 8
  %13 = alloca float, align 4
  %14 = alloca %"struct.glm::detail::tvec3", align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca i32, align 4
  %18 = alloca %"class.std::vector.12", align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %"class.std::vector.12", align 8
  %22 = alloca %"class.std::allocator.14", align 1
  %23 = alloca %"class.std::map", align 8
  %24 = alloca i32, align 4
  %25 = alloca %"class.glmesh::RenderCmdList", align 8
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = alloca %"class.std::allocator.7", align 1
  store i32 %0, ptr %3, align 4, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  store i32 1, ptr %5, align 4, !tbaa !5
  %28 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %29 = load i32, ptr %28, align 4, !tbaa !5
  store i32 %29, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #9
  store i32 3, ptr %6, align 4, !tbaa !5
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %31 = load i32, ptr %30, align 4, !tbaa !5
  store i32 %31, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #9
  %32 = load i32, ptr %3, align 4, !tbaa !5
  %33 = add i32 %32, 2
  %34 = sext i32 %33 to i64
  %35 = add i32 %31, 1
  %36 = sext i32 %35 to i64
  %37 = mul nsw i64 %34, %36
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #9
  call void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #9
  invoke void @_ZN6glmesh10AttribDescC1EjjNS_14VertexDataTypeENS_14AttribDataTypeE(ptr noundef nonnull align 4 dereferenceable(16) %8, i32 noundef 0, i32 noundef 3, i32 noundef 1, i32 noundef 0)
          to label %38 unwind label %52

38:                                               ; preds = %2
  invoke void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(16) %8)
          to label %39 unwind label %52

39:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #9
  invoke void @_ZN6glmesh10AttribDescC1EjjNS_14VertexDataTypeENS_14AttribDataTypeE(ptr noundef nonnull align 4 dereferenceable(16) %9, i32 noundef 2, i32 noundef 3, i32 noundef 1, i32 noundef 0)
          to label %40 unwind label %54

40:                                               ; preds = %39
  invoke void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(16) %9)
          to label %41 unwind label %54

41:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #9
  invoke void @_ZN6glmesh10AttribDescC1EjjNS_14VertexDataTypeENS_14AttribDataTypeE(ptr noundef nonnull align 4 dereferenceable(16) %10, i32 noundef 5, i32 noundef 2, i32 noundef 1, i32 noundef 0)
          to label %42 unwind label %56

42:                                               ; preds = %41
  invoke void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(16) %10)
          to label %43 unwind label %56

43:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %11) #9
  invoke void @_ZN6glmesh12VertexFormatC1ERKSt6vectorINS_10AttribDescESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(56) %11, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %44 unwind label %58

44:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %12) #9
  invoke void @_ZN6glmesh13CpuDataWriterC1ERKNS_12VertexFormatEm(ptr noundef nonnull align 8 dereferenceable(72) %12, ptr noundef nonnull align 8 dereferenceable(56) %11, i64 noundef %37)
          to label %45 unwind label %60

45:                                               ; preds = %44
  %46 = uitofp i64 %36 to float
  %47 = fdiv float 1.000000e+00, %46
  %48 = uitofp i64 %34 to float
  %49 = fdiv float 1.000000e+00, %48
  %50 = load i32, ptr %4, align 4, !tbaa !5
  %51 = icmp sgt i32 %50, 0
  br i1 %51, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %66, %45
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(8) %12, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %72 unwind label %85

52:                                               ; preds = %38, %2
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #9
  br label %306

54:                                               ; preds = %40, %39
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #9
  br label %306

56:                                               ; preds = %42, %41
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  br label %306

58:                                               ; preds = %43
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %305

60:                                               ; preds = %44
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %304

.lr.ph:                                           ; preds = %45, %66
  %.087120 = phi i32 [ %67, %66 ], [ 0, %45 ]
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(8) %12, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %62 unwind label %70

62:                                               ; preds = %.lr.ph
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(8) %12, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %63 unwind label %70

63:                                               ; preds = %62
  %64 = uitofp nneg i32 %.087120 to float
  %65 = fmul float %47, %64
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_(ptr noundef nonnull align 8 dereferenceable(8) %12, float noundef %65, float noundef 1.000000e+00)
          to label %66 unwind label %70

66:                                               ; preds = %63
  %67 = add nuw nsw i32 %.087120, 1
  %68 = load i32, ptr %4, align 4, !tbaa !5
  %69 = icmp slt i32 %67, %68
  br i1 %69, label %.lr.ph, label %._crit_edge, !llvm.loop !9

70:                                               ; preds = %63, %62, %.lr.ph
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %303

72:                                               ; preds = %._crit_edge
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(8) %12, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %73 unwind label %85

73:                                               ; preds = %72
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_(ptr noundef nonnull align 8 dereferenceable(8) %12, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %74 unwind label %85

74:                                               ; preds = %73
  %75 = load i32, ptr %3, align 4, !tbaa !5
  %76 = add nsw i32 %75, 1
  %77 = sitofp i32 %76 to float
  %78 = fdiv float 0x400921F0E0000000, %77
  %79 = icmp sgt i32 %75, 0
  br i1 %79, label %.lr.ph127, label %.preheader119

.lr.ph127:                                        ; preds = %74
  %80 = load i32, ptr %4, align 4, !tbaa !5
  %81 = sitofp i32 %80 to float
  %82 = fdiv float 0xC01921F0E0000000, %81
  br label %87

.preheader119:                                    ; preds = %116, %74
  %83 = load i32, ptr %4, align 4, !tbaa !5
  %84 = icmp sgt i32 %83, 0
  br i1 %84, label %.lr.ph129, label %._crit_edge130

85:                                               ; preds = %73, %72, %._crit_edge
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %303

87:                                               ; preds = %.lr.ph127, %116
  %.090125 = phi i32 [ 0, %.lr.ph127 ], [ %88, %116 ]
  %88 = add nuw nsw i32 %.090125, 1
  %89 = uitofp nneg i32 %88 to float
  %90 = fmul float %78, %89
  %91 = call noundef float @_ZSt3sinf(float noundef %90)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #9
  %92 = call noundef float @_ZSt3cosf(float noundef %90)
  store float %92, ptr %13, align 4, !tbaa !11
  %93 = fneg float %89
  %94 = call float @llvm.fmuladd.f32(float %93, float %49, float 1.000000e+00)
  %95 = load i32, ptr %4, align 4, !tbaa !5
  %96 = icmp sgt i32 %95, 0
  br i1 %96, label %.lr.ph123, label %._crit_edge124

._crit_edge124.loopexit:                          ; preds = %107
  %.pre = load float, ptr %13, align 4, !tbaa !11
  br label %._crit_edge124

._crit_edge124:                                   ; preds = %._crit_edge124.loopexit, %87
  %97 = phi float [ %.pre, %._crit_edge124.loopexit ], [ %92, %87 ]
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(8) %12, float noundef %91, float noundef %97, float noundef 0.000000e+00)
          to label %113 unwind label %119

.lr.ph123:                                        ; preds = %87, %107
  %.092121 = phi i32 [ %108, %107 ], [ 0, %87 ]
  %98 = uitofp nneg i32 %.092121 to float
  %99 = fmul float %82, %98
  %100 = call noundef float @_ZSt3sinf(float noundef %99)
  %101 = call noundef float @_ZSt3cosf(float noundef %99)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #9
  %102 = fmul float %91, %101
  store float %102, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #9
  %103 = fmul float %91, %100
  store float %103, ptr %16, align 4, !tbaa !11
  call void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %16)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #9
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvRKN3glm6detail5tvec3IT_EE(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(12) %14)
          to label %104 unwind label %111

104:                                              ; preds = %.lr.ph123
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvRKN3glm6detail5tvec3IT_EE(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(12) %14)
          to label %105 unwind label %111

105:                                              ; preds = %104
  %106 = fmul float %47, %98
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_(ptr noundef nonnull align 8 dereferenceable(8) %12, float noundef %106, float noundef %94)
          to label %107 unwind label %111

107:                                              ; preds = %105
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #9
  %108 = add nuw nsw i32 %.092121, 1
  %109 = load i32, ptr %4, align 4, !tbaa !5
  %110 = icmp slt i32 %108, %109
  br i1 %110, label %.lr.ph123, label %._crit_edge124.loopexit, !llvm.loop !13

111:                                              ; preds = %105, %104, %.lr.ph123
  %112 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #9
  br label %121

113:                                              ; preds = %._crit_edge124
  %114 = load float, ptr %13, align 4, !tbaa !11
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(8) %12, float noundef %91, float noundef %114, float noundef 0.000000e+00)
          to label %115 unwind label %119

115:                                              ; preds = %113
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_(ptr noundef nonnull align 8 dereferenceable(8) %12, float noundef 1.000000e+00, float noundef %94)
          to label %116 unwind label %119

116:                                              ; preds = %115
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #9
  %117 = load i32, ptr %3, align 4, !tbaa !5
  %118 = icmp slt i32 %88, %117
  br i1 %118, label %87, label %.preheader119, !llvm.loop !14

119:                                              ; preds = %115, %113, %._crit_edge124
  %120 = landingpad { ptr, i32 }
          cleanup
  br label %121

121:                                              ; preds = %119, %111
  %.pn110 = phi { ptr, i32 } [ %112, %111 ], [ %120, %119 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #9
  br label %303

._crit_edge130:                                   ; preds = %126, %.preheader119
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(8) %12, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %132 unwind label %163

.lr.ph129:                                        ; preds = %.preheader119, %126
  %.093128 = phi i32 [ %127, %126 ], [ 0, %.preheader119 ]
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(8) %12, float noundef 0.000000e+00, float noundef -1.000000e+00, float noundef 0.000000e+00)
          to label %122 unwind label %130

122:                                              ; preds = %.lr.ph129
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(8) %12, float noundef 0.000000e+00, float noundef -1.000000e+00, float noundef 0.000000e+00)
          to label %123 unwind label %130

123:                                              ; preds = %122
  %124 = uitofp nneg i32 %.093128 to float
  %125 = fmul float %47, %124
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_(ptr noundef nonnull align 8 dereferenceable(8) %12, float noundef %125, float noundef 0.000000e+00)
          to label %126 unwind label %130

126:                                              ; preds = %123
  %127 = add nuw nsw i32 %.093128, 1
  %128 = load i32, ptr %4, align 4, !tbaa !5
  %129 = icmp slt i32 %127, %128
  br i1 %129, label %.lr.ph129, label %._crit_edge130, !llvm.loop !15

130:                                              ; preds = %123, %122, %.lr.ph129
  %131 = landingpad { ptr, i32 }
          cleanup
  br label %303

132:                                              ; preds = %._crit_edge130
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(8) %12, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %133 unwind label %163

133:                                              ; preds = %132
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_(ptr noundef nonnull align 8 dereferenceable(8) %12, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %134 unwind label %163

134:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #9
  %135 = call noundef i64 @_ZNK6glmesh13CpuDataWriter21GetNumVerticesWrittenEv(ptr noundef nonnull align 8 dereferenceable(72) %12)
  %136 = trunc i64 %135 to i32
  store i32 %136, ptr %17, align 4, !tbaa !5
  %137 = load i32, ptr %4, align 4, !tbaa !5
  %138 = shl nsw i32 %137, 1
  %139 = add nsw i32 %138, 2
  %140 = sext i32 %139 to i64
  %141 = add nsw i64 %34, -1
  %142 = mul nsw i64 %141, %140
  %143 = add nsw i64 %34, -2
  %144 = add nsw i64 %143, %142
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #9
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  invoke void @_ZNSt6vectorIjSaIjEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %144)
          to label %.preheader118 unwind label %165

.preheader118:                                    ; preds = %134
  %.not146 = icmp eq i64 %141, 0
  br i1 %.not146, label %._crit_edge137, label %.lr.ph136

.lr.ph136:                                        ; preds = %.preheader118
  %.not147 = icmp eq i32 %35, 0
  br i1 %.not147, label %.lr.ph136.split, label %.lr.ph133.us

.lr.ph133.us:                                     ; preds = %.lr.ph136, %151
  %.091135.us = phi i64 [ %147, %151 ], [ 0, %.lr.ph136 ]
  %145 = trunc i64 %.091135.us to i32
  %146 = mul i32 %35, %145
  %147 = add nuw i64 %.091135.us, 1
  %148 = trunc i64 %147 to i32
  %149 = mul i32 %35, %148
  br label %152

150:                                              ; preds = %._crit_edge134.us
  invoke void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %151 unwind label %.split.us

151:                                              ; preds = %150, %._crit_edge134.us
  %exitcond150.not = icmp eq i64 %147, %141
  br i1 %exitcond150.not, label %._crit_edge137, label %.lr.ph133.us, !llvm.loop !16

152:                                              ; preds = %.lr.ph133.us, %157
  %.089131.us = phi i64 [ 0, %.lr.ph133.us ], [ %158, %157 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #9
  %153 = trunc i64 %.089131.us to i32
  %154 = add i32 %146, %153
  store i32 %154, ptr %19, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %155 unwind label %.split139.us

155:                                              ; preds = %152
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #9
  %156 = add i32 %149, %153
  store i32 %156, ptr %20, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %157 unwind label %.split142.us

157:                                              ; preds = %155
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #9
  %158 = add nuw i64 %.089131.us, 1
  %exitcond.not = icmp eq i64 %158, %36
  br i1 %exitcond.not, label %._crit_edge134.us, label %152, !llvm.loop !17

._crit_edge134.us:                                ; preds = %157
  %159 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  %.not105.us = icmp eq i64 %159, %144
  br i1 %.not105.us, label %151, label %150

.split.us:                                        ; preds = %150
  %160 = landingpad { ptr, i32 }
          cleanup
  br label %302

.split139.us:                                     ; preds = %152
  %161 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #9
  br label %302

.split142.us:                                     ; preds = %155
  %162 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #9
  br label %302

._crit_edge137:                                   ; preds = %151, %171, %.preheader118
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %21) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %22) #9
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #9
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef 2, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %172 unwind label %261

163:                                              ; preds = %133, %132, %._crit_edge130
  %164 = landingpad { ptr, i32 }
          cleanup
  br label %303

165:                                              ; preds = %134
  %166 = landingpad { ptr, i32 }
          cleanup
  br label %302

.lr.ph136.split:                                  ; preds = %.lr.ph136, %171
  %.091135 = phi i64 [ %167, %171 ], [ 0, %.lr.ph136 ]
  %167 = add nuw i64 %.091135, 1
  %168 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  %.not105 = icmp eq i64 %168, %144
  br i1 %.not105, label %171, label %169

169:                                              ; preds = %.lr.ph136.split
  invoke void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %171 unwind label %.split

.split:                                           ; preds = %169
  %170 = landingpad { ptr, i32 }
          cleanup
  br label %302

171:                                              ; preds = %169, %.lr.ph136.split
  %exitcond151.not = icmp eq i64 %167, %141
  br i1 %exitcond151.not, label %._crit_edge137, label %.lr.ph136.split, !llvm.loop !16

172:                                              ; preds = %._crit_edge137
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %22) #9
  %173 = load ptr, ptr @_ZN2gl10GenBuffersE, align 8, !tbaa !18
  %174 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef 0) #9
  invoke void %173(i32 noundef 2, ptr noundef nonnull %174)
          to label %175 unwind label %263

175:                                              ; preds = %172
  %176 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef 0) #9
  %177 = load i32, ptr %176, align 4, !tbaa !5
  %178 = invoke noundef i32 @_ZNK6glmesh13CpuDataWriter16TransferToBufferEjjj(ptr noundef nonnull align 8 dereferenceable(72) %12, i32 noundef 34962, i32 noundef 35044, i32 noundef %177)
          to label %179 unwind label %263

179:                                              ; preds = %175
  %180 = load ptr, ptr @_ZN2gl10BindBufferE, align 8, !tbaa !18
  %181 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef 1) #9
  %182 = load i32, ptr %181, align 4, !tbaa !5
  invoke void %180(i32 noundef 34963, i32 noundef %182)
          to label %183 unwind label %263

183:                                              ; preds = %179
  %184 = load ptr, ptr @_ZN2gl10BufferDataE, align 8, !tbaa !18
  %185 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  %186 = shl i64 %185, 2
  %187 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef 0) #9
  invoke void %184(i32 noundef 34963, i64 noundef %186, ptr noundef nonnull %187, i32 noundef 35044)
          to label %188 unwind label %263

188:                                              ; preds = %183
  %189 = load ptr, ptr @_ZN2gl10BindBufferE, align 8, !tbaa !18
  invoke void %189(i32 noundef 34963, i32 noundef 0)
          to label %190 unwind label %263

190:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %23) #9
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %23) #9
  %191 = load ptr, ptr @_ZN2gl10BindBufferE, align 8, !tbaa !18
  %192 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef 0) #9
  %193 = load i32, ptr %192, align 4, !tbaa !5
  invoke void %191(i32 noundef 34962, i32 noundef %193)
          to label %194 unwind label %265

194:                                              ; preds = %190
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #9
  store i32 0, ptr %24, align 4, !tbaa !5
  %195 = load ptr, ptr @_ZN2gl15GenVertexArraysE, align 8, !tbaa !18
  invoke void %195(i32 noundef 1, ptr noundef nonnull %24)
          to label %196 unwind label %267

196:                                              ; preds = %194
  %197 = load ptr, ptr @_ZN2gl15BindVertexArrayE, align 8, !tbaa !18
  %198 = load i32, ptr %24, align 4, !tbaa !5
  invoke void %197(i32 noundef %198)
          to label %199 unwind label %267

199:                                              ; preds = %196
  %200 = load ptr, ptr @_ZN2gl10BindBufferE, align 8, !tbaa !18
  %201 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef 1) #9
  %202 = load i32, ptr %201, align 4, !tbaa !5
  invoke void %200(i32 noundef 34963, i32 noundef %202)
          to label %203 unwind label %267

203:                                              ; preds = %199
  invoke void @_ZNK6glmesh12VertexFormat13BindAttributeEmm(ptr noundef nonnull align 8 dereferenceable(56) %11, i64 noundef 0, i64 noundef 0)
          to label %204 unwind label %267

204:                                              ; preds = %203
  %205 = load i32, ptr %24, align 4, !tbaa !5
  invoke void @_ZN6glmesh3gen15AddVariantToMapERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS7_ESaISt4pairIKS7_jEEEji(ptr noundef nonnull align 8 dereferenceable(48) %23, i32 noundef %205, i32 noundef 0)
          to label %206 unwind label %267

206:                                              ; preds = %204
  %207 = load ptr, ptr @_ZN2gl15GenVertexArraysE, align 8, !tbaa !18
  invoke void %207(i32 noundef 1, ptr noundef nonnull %24)
          to label %208 unwind label %267

208:                                              ; preds = %206
  %209 = load ptr, ptr @_ZN2gl15BindVertexArrayE, align 8, !tbaa !18
  %210 = load i32, ptr %24, align 4, !tbaa !5
  invoke void %209(i32 noundef %210)
          to label %211 unwind label %267

211:                                              ; preds = %208
  %212 = load ptr, ptr @_ZN2gl10BindBufferE, align 8, !tbaa !18
  %213 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef 1) #9
  %214 = load i32, ptr %213, align 4, !tbaa !5
  invoke void %212(i32 noundef 34963, i32 noundef %214)
          to label %215 unwind label %267

215:                                              ; preds = %211
  invoke void @_ZNK6glmesh12VertexFormat13BindAttributeEmm(ptr noundef nonnull align 8 dereferenceable(56) %11, i64 noundef 0, i64 noundef 0)
          to label %216 unwind label %267

216:                                              ; preds = %215
  invoke void @_ZNK6glmesh12VertexFormat13BindAttributeEmm(ptr noundef nonnull align 8 dereferenceable(56) %11, i64 noundef 0, i64 noundef 1)
          to label %217 unwind label %267

217:                                              ; preds = %216
  %218 = load i32, ptr %24, align 4, !tbaa !5
  invoke void @_ZN6glmesh3gen15AddVariantToMapERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS7_ESaISt4pairIKS7_jEEEji(ptr noundef nonnull align 8 dereferenceable(48) %23, i32 noundef %218, i32 noundef 2)
          to label %219 unwind label %267

219:                                              ; preds = %217
  %220 = load ptr, ptr @_ZN2gl15GenVertexArraysE, align 8, !tbaa !18
  invoke void %220(i32 noundef 1, ptr noundef nonnull %24)
          to label %221 unwind label %267

221:                                              ; preds = %219
  %222 = load ptr, ptr @_ZN2gl15BindVertexArrayE, align 8, !tbaa !18
  %223 = load i32, ptr %24, align 4, !tbaa !5
  invoke void %222(i32 noundef %223)
          to label %224 unwind label %267

224:                                              ; preds = %221
  %225 = load ptr, ptr @_ZN2gl10BindBufferE, align 8, !tbaa !18
  %226 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef 1) #9
  %227 = load i32, ptr %226, align 4, !tbaa !5
  invoke void %225(i32 noundef 34963, i32 noundef %227)
          to label %228 unwind label %267

228:                                              ; preds = %224
  invoke void @_ZNK6glmesh12VertexFormat13BindAttributeEmm(ptr noundef nonnull align 8 dereferenceable(56) %11, i64 noundef 0, i64 noundef 0)
          to label %229 unwind label %267

229:                                              ; preds = %228
  invoke void @_ZNK6glmesh12VertexFormat13BindAttributeEmm(ptr noundef nonnull align 8 dereferenceable(56) %11, i64 noundef 0, i64 noundef 2)
          to label %230 unwind label %267

230:                                              ; preds = %229
  %231 = load i32, ptr %24, align 4, !tbaa !5
  invoke void @_ZN6glmesh3gen15AddVariantToMapERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS7_ESaISt4pairIKS7_jEEEji(ptr noundef nonnull align 8 dereferenceable(48) %23, i32 noundef %231, i32 noundef 4)
          to label %232 unwind label %267

232:                                              ; preds = %230
  %233 = load ptr, ptr @_ZN2gl15GenVertexArraysE, align 8, !tbaa !18
  invoke void %233(i32 noundef 1, ptr noundef nonnull %24)
          to label %234 unwind label %267

234:                                              ; preds = %232
  %235 = load ptr, ptr @_ZN2gl15BindVertexArrayE, align 8, !tbaa !18
  %236 = load i32, ptr %24, align 4, !tbaa !5
  invoke void %235(i32 noundef %236)
          to label %237 unwind label %267

237:                                              ; preds = %234
  %238 = load ptr, ptr @_ZN2gl10BindBufferE, align 8, !tbaa !18
  %239 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef 1) #9
  %240 = load i32, ptr %239, align 4, !tbaa !5
  invoke void %238(i32 noundef 34963, i32 noundef %240)
          to label %241 unwind label %267

241:                                              ; preds = %237
  invoke void @_ZNK6glmesh12VertexFormat13BindAttributeEmm(ptr noundef nonnull align 8 dereferenceable(56) %11, i64 noundef 0, i64 noundef 0)
          to label %242 unwind label %267

242:                                              ; preds = %241
  invoke void @_ZNK6glmesh12VertexFormat13BindAttributeEmm(ptr noundef nonnull align 8 dereferenceable(56) %11, i64 noundef 0, i64 noundef 1)
          to label %243 unwind label %267

243:                                              ; preds = %242
  invoke void @_ZNK6glmesh12VertexFormat13BindAttributeEmm(ptr noundef nonnull align 8 dereferenceable(56) %11, i64 noundef 0, i64 noundef 2)
          to label %244 unwind label %267

244:                                              ; preds = %243
  %245 = load i32, ptr %24, align 4, !tbaa !5
  invoke void @_ZN6glmesh3gen15AddVariantToMapERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS7_ESaISt4pairIKS7_jEEEji(ptr noundef nonnull align 8 dereferenceable(48) %23, i32 noundef %245, i32 noundef 6)
          to label %246 unwind label %267

246:                                              ; preds = %244
  %247 = load ptr, ptr @_ZN2gl15BindVertexArrayE, align 8, !tbaa !18
  invoke void %247(i32 noundef 0)
          to label %248 unwind label %267

248:                                              ; preds = %246
  %249 = load ptr, ptr @_ZN2gl10BindBufferE, align 8, !tbaa !18
  invoke void %249(i32 noundef 34962, i32 noundef 0)
          to label %250 unwind label %267

250:                                              ; preds = %248
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #9
  invoke void @_ZN6glmesh13RenderCmdListC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %251 unwind label %269

251:                                              ; preds = %250
  %252 = invoke noundef i32 @_ZN6glload12IsVersionGEQEii(i32 noundef 3, i32 noundef 1)
          to label %253 unwind label %271

253:                                              ; preds = %251
  %.not = icmp eq i32 %252, 0
  br i1 %.not, label %.preheader, label %256

.preheader:                                       ; preds = %253
  br i1 %.not146, label %.loopexit, label %.lr.ph145

.lr.ph145:                                        ; preds = %.preheader
  %254 = shl nsw i64 %140, 2
  %255 = or disjoint i64 %254, 4
  br label %273

256:                                              ; preds = %253
  %257 = load i32, ptr %17, align 4, !tbaa !5
  invoke void @_ZN6glmesh13RenderCmdList21PrimitiveRestartIndexEj(ptr noundef nonnull align 8 dereferenceable(8) %25, i32 noundef %257)
          to label %258 unwind label %271

258:                                              ; preds = %256
  %259 = trunc i64 %144 to i32
  invoke void @_ZN6glmesh13RenderCmdList12DrawElementsEjijli(ptr noundef nonnull align 8 dereferenceable(8) %25, i32 noundef 5, i32 noundef %259, i32 noundef 5125, i64 noundef 0, i32 noundef 0)
          to label %260 unwind label %271

260:                                              ; preds = %258
  invoke void @_ZN6glmesh13RenderCmdList21PrimitiveRestartIndexEv(ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %.loopexit unwind label %271

261:                                              ; preds = %._crit_edge137
  %262 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %22) #9
  br label %301

263:                                              ; preds = %188, %183, %179, %175, %172
  %264 = landingpad { ptr, i32 }
          cleanup
  br label %300

265:                                              ; preds = %190
  %266 = landingpad { ptr, i32 }
          cleanup
  br label %299

267:                                              ; preds = %248, %246, %244, %243, %242, %241, %237, %234, %232, %230, %229, %228, %224, %221, %219, %217, %216, %215, %211, %208, %206, %204, %203, %199, %196, %194
  %268 = landingpad { ptr, i32 }
          cleanup
  br label %298

269:                                              ; preds = %250
  %270 = landingpad { ptr, i32 }
          cleanup
  br label %297

271:                                              ; preds = %260, %258, %256, %251
  %272 = landingpad { ptr, i32 }
          cleanup
  br label %296

273:                                              ; preds = %.lr.ph145, %276
  %.088144 = phi i64 [ 0, %.lr.ph145 ], [ %277, %276 ]
  %274 = mul i64 %255, %.088144
  %275 = and i64 %274, 17179869180
  invoke void @_ZN6glmesh13RenderCmdList12DrawElementsEjijli(ptr noundef nonnull align 8 dereferenceable(8) %25, i32 noundef 5, i32 noundef %139, i32 noundef 5125, i64 noundef %275, i32 noundef 0)
          to label %276 unwind label %278

276:                                              ; preds = %273
  %277 = add nuw i64 %.088144, 1
  %exitcond152.not = icmp eq i64 %277, %141
  br i1 %exitcond152.not, label %.loopexit, label %273, !llvm.loop !20

278:                                              ; preds = %273
  %279 = landingpad { ptr, i32 }
          cleanup
  br label %296

.loopexit:                                        ; preds = %276, %.preheader, %260
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %26) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %27) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %280 unwind label %287

280:                                              ; preds = %.loopexit
  %281 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEEixEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %23, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %282 unwind label %289

282:                                              ; preds = %280
  %283 = load i32, ptr %281, align 4, !tbaa !5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %27) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #9
  %284 = invoke noalias noundef nonnull dereferenceable(8) ptr @_Znwm(i64 noundef 8) #10
          to label %285 unwind label %292

285:                                              ; preds = %282
  invoke void @_ZN6glmesh4MeshC1ERKSt6vectorIjSaIjEEjRKNS_13RenderCmdListERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessISF_ESaISt4pairIKSF_jEEE(ptr noundef nonnull align 8 dereferenceable(8) %284, ptr noundef nonnull align 8 dereferenceable(24) %21, i32 noundef %283, ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(48) %23)
          to label %286 unwind label %294

286:                                              ; preds = %285
  call void @_ZN6glmesh13RenderCmdListD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #9
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %23) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %23) #9
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #9
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #9
  call void @_ZN6glmesh13CpuDataWriterD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %12) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %12) #9
  call void @_ZN6glmesh12VertexFormatD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %11) #9
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %11) #9
  call void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #9
  ret ptr %284

287:                                              ; preds = %.loopexit
  %288 = landingpad { ptr, i32 }
          cleanup
  br label %291

289:                                              ; preds = %280
  %290 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #9
  br label %291

291:                                              ; preds = %289, %287
  %.pn = phi { ptr, i32 } [ %290, %289 ], [ %288, %287 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %27) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #9
  br label %296

292:                                              ; preds = %282
  %293 = landingpad { ptr, i32 }
          cleanup
  br label %296

294:                                              ; preds = %285
  %295 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %284, i64 noundef 8) #11
  br label %296

296:                                              ; preds = %291, %294, %292, %278, %271
  %.pn96.pn.pn = phi { ptr, i32 } [ %272, %271 ], [ %279, %278 ], [ %.pn, %291 ], [ %295, %294 ], [ %293, %292 ]
  call void @_ZN6glmesh13RenderCmdListD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #9
  br label %297

297:                                              ; preds = %296, %269
  %.pn96.pn.pn.pn = phi { ptr, i32 } [ %.pn96.pn.pn, %296 ], [ %270, %269 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #9
  br label %298

298:                                              ; preds = %297, %267
  %.pn96.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn96.pn.pn.pn, %297 ], [ %268, %267 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #9
  br label %299

299:                                              ; preds = %298, %265
  %.pn96.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn96.pn.pn.pn.pn, %298 ], [ %266, %265 ]
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %23) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %23) #9
  br label %300

300:                                              ; preds = %299, %263
  %.pn96.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn96.pn.pn.pn.pn.pn, %299 ], [ %264, %263 ]
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #9
  br label %301

301:                                              ; preds = %300, %261
  %.pn96.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn96.pn.pn.pn.pn.pn.pn, %300 ], [ %262, %261 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #9
  br label %302

302:                                              ; preds = %.split, %.split.us, %.split142.us, %.split139.us, %301, %165
  %.pn106.pn.pn = phi { ptr, i32 } [ %.pn96.pn.pn.pn.pn.pn.pn.pn, %301 ], [ %166, %165 ], [ %162, %.split142.us ], [ %161, %.split139.us ], [ %170, %.split ], [ %160, %.split.us ]
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #9
  br label %303

303:                                              ; preds = %121, %130, %163, %302, %85, %70
  %.pn113 = phi { ptr, i32 } [ %71, %70 ], [ %86, %85 ], [ %.pn110, %121 ], [ %131, %130 ], [ %.pn106.pn.pn, %302 ], [ %164, %163 ]
  call void @_ZN6glmesh13CpuDataWriterD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %12) #9
  br label %304

304:                                              ; preds = %303, %60
  %.pn113.pn = phi { ptr, i32 } [ %.pn113, %303 ], [ %61, %60 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %12) #9
  call void @_ZN6glmesh12VertexFormatD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %11) #9
  br label %305

305:                                              ; preds = %304, %58
  %.pn113.pn.pn = phi { ptr, i32 } [ %.pn113.pn, %304 ], [ %59, %58 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %11) #9
  br label %306

306:                                              ; preds = %305, %56, %54, %52
  %.pn113.pn.pn.pn = phi { ptr, i32 } [ %.pn113.pn.pn, %305 ], [ %57, %56 ], [ %55, %54 ], [ %53, %52 ]
  call void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #9
  resume { ptr, i32 } %.pn113.pn.pn.pn
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #0 align 2

declare void @_ZN6glmesh10AttribDescC1EjjNS_14VertexDataTypeENS_14AttribDataTypeE(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef, i32 noundef, i32 noundef, i32 noundef) unnamed_addr #4

declare i32 @__gxx_personality_v0(...)

declare void @_ZN6glmesh12VertexFormatC1ERKSt6vectorINS_10AttribDescESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4

declare void @_ZN6glmesh13CpuDataWriterC1ERKNS_12VertexFormatEm(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(56), i64 noundef) unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_S4_(ptr noundef nonnull align 8 dereferenceable(8), float noundef, float noundef, float noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvT_S4_(ptr noundef nonnull align 8 dereferenceable(8), float noundef, float noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3sinf(float noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3cosf(float noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3glm6detail5tvec3IfEC2ERKfS4_S4_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIfEEvRKN3glm6detail5tvec3IT_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK6glmesh13CpuDataWriter21GetNumVerticesWrittenEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

declare noundef i32 @_ZNK6glmesh13CpuDataWriter16TransferToBufferEjjj(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2

declare void @_ZNK6glmesh12VertexFormat13BindAttributeEmm(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, i64 noundef) local_unnamed_addr #4

declare void @_ZN6glmesh3gen15AddVariantToMapERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS7_ESaISt4pairIKS7_jEEEji(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef, i32 noundef) local_unnamed_addr #4

declare void @_ZN6glmesh13RenderCmdListC1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

declare noundef i32 @_ZN6glload12IsVersionGEQEii(i32 noundef, i32 noundef) local_unnamed_addr #4

declare void @_ZN6glmesh13RenderCmdList21PrimitiveRestartIndexEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #4

declare void @_ZN6glmesh13RenderCmdList12DrawElementsEjijli(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef, i32 noundef, i64 noundef, i32 noundef) local_unnamed_addr #4

declare void @_ZN6glmesh13RenderCmdList21PrimitiveRestartIndexEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEEixEOS5_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 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 #0 align 2

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #6

declare void @_ZN6glmesh4MeshC1ERKSt6vectorIjSaIjEEjRKNS_13RenderCmdListERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessISF_ESaISt4pairIKSF_jEEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #7

; Function Attrs: nounwind
declare void @_ZN6glmesh13RenderCmdListD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nobuiltin allocsize(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 #7 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = !{!19, !19, i64 0}
!19 = !{!"any pointer", !7, i64 0}
!20 = distinct !{!20, !10}


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