; LLVM IR from paroj/gltut :: glsdk/glmesh/source (GenMeshMisc)

; 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 }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = 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.12" = 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.std::vector.35" = type { %"struct.std::_Vector_base.36" }
%"struct.std::_Vector_base.36" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { 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.40 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.40 = type { i64, [8 x i8] }
%"class.std::allocator.7" = type { i8 }

@_ZN2gl10BindBufferE = external global ptr, align 8
@_ZN2gl10GenBuffersE = external global ptr, align 8
@_ZN2gl10BufferDataE = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; 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) #1 align 2

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

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

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

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 #3

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

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

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

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

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

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

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

; 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)) #7

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 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)) #2 align 2

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

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

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

declare void @_ZN6glmesh3gen15BuildVariationsERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS7_ESaISt4pairIKS7_jEEERKSt6vectorIiSaIiEERKNS_12VertexFormatEj(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) #3

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

; 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)) #2 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4refs9array_refIN3glm6detail5tvec4IhEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN6glmesh3gen12_GLOBAL__N_114WriteCubeLayerERNS_13CpuDataWriterEisRKN4refs9array_refIN3glm6detail5tvec4IhEEEE(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef, i16 noundef signext, ptr noundef nonnull align 8 dereferenceable(16)) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN6glmesh3gen11CubePyramidEiRKN4refs9array_refIN3glm6detail5tvec4IhEEEE(i32 noundef %0, ptr noundef nonnull align 8 dereferenceable(16) %1) #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %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 ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.glmesh::AttribDesc", align 4
  %12 = alloca %"class.glmesh::AttribDesc", align 4
  %13 = alloca %"class.glmesh::VertexFormat", align 8
  %14 = alloca %"class.glmesh::CpuDataWriter", align 8
  %15 = alloca i16, align 2
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca %"class.std::vector.10", align 8
  %19 = alloca i64, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca %"class.std::vector.10", align 8
  %27 = alloca %"class.std::allocator.12", align 1
  %28 = alloca %"class.std::map", align 8
  %29 = alloca %"class.std::vector.35", align 8
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca %"class.glmesh::RenderCmdList", align 8
  %33 = alloca i32, align 4
  %34 = alloca %"class.std::__cxx11::basic_string", align 8
  %35 = alloca i1, align 1
  %36 = alloca %"class.std::allocator.7", align 1
  %37 = alloca i1, align 1
  %38 = alloca i1, align 1
  %39 = alloca i1, align 1
  %40 = alloca %"class.std::__cxx11::basic_string", align 8
  %41 = alloca i1, align 1
  %42 = alloca %"class.std::allocator.7", align 1
  %43 = alloca i1, align 1
  %44 = alloca i1, align 1
  %45 = alloca i1, align 1
  %46 = alloca ptr, align 8
  store i32 %0, ptr %3, align 4, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  store i32 1, ptr %5, align 4, !tbaa !5
  %47 = 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)
  %48 = load i32, ptr %47, align 4, !tbaa !5
  store i32 %48, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  store i32 16383, ptr %6, align 4, !tbaa !5
  %49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %50 = load i32, ptr %49, align 4, !tbaa !5
  store i32 %50, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #8
  call void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #8
  invoke void @_ZN6glmesh10AttribDescC1EjjNS_14VertexDataTypeENS_14AttribDataTypeE(ptr noundef nonnull align 4 dereferenceable(16) %8, i32 noundef 0, i32 noundef 3, i32 noundef 5, i32 noundef 0)
          to label %51 unwind label %61

51:                                               ; 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 %52 unwind label %61

52:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #8
  invoke void @_ZN6glmesh10AttribDescC1EjjNS_14VertexDataTypeENS_14AttribDataTypeE(ptr noundef nonnull align 4 dereferenceable(16) %11, i32 noundef 2, i32 noundef 4, i32 noundef 3, i32 noundef 1)
          to label %53 unwind label %65

53:                                               ; preds = %52
  invoke void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(16) %11)
          to label %54 unwind label %65

54:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  %55 = load ptr, ptr %4, align 8, !tbaa !9
  %56 = invoke noundef zeroext i1 @_ZNK4refs9array_refIN3glm6detail5tvec4IhEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %55)
          to label %57 unwind label %69

57:                                               ; preds = %54
  br i1 %56, label %77, label %58

58:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #8
  invoke void @_ZN6glmesh10AttribDescC1EjjNS_14VertexDataTypeENS_14AttribDataTypeE(ptr noundef nonnull align 4 dereferenceable(16) %12, i32 noundef 1, i32 noundef 4, i32 noundef 4, i32 noundef 1)
          to label %59 unwind label %73

59:                                               ; preds = %58
  invoke void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(16) %12)
          to label %60 unwind label %73

60:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  br label %77

61:                                               ; preds = %51, %2
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %9, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #8
  br label %378

65:                                               ; preds = %53, %52
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %9, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  br label %378

69:                                               ; preds = %54
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %9, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %10, align 4
  br label %378

73:                                               ; preds = %59, %58
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %9, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  br label %378

77:                                               ; preds = %60, %57
  call void @llvm.lifetime.start.p0(i64 56, ptr %13) #8
  invoke void @_ZN6glmesh12VertexFormatC1ERKSt6vectorINS_10AttribDescESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(56) %13, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %78 unwind label %89

78:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 72, ptr %14) #8
  invoke void @_ZN6glmesh13CpuDataWriterC1ERKNS_12VertexFormatEm(ptr noundef nonnull align 8 dereferenceable(72) %14, ptr noundef nonnull align 8 dereferenceable(56) %13, i64 noundef 0)
          to label %79 unwind label %93

79:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 2, ptr %15) #8
  %80 = load i32, ptr %3, align 4, !tbaa !5
  %81 = mul nsw i32 2, %80
  %82 = sub nsw i32 %81, 1
  %83 = trunc i32 %82 to i16
  store i16 %83, ptr %15, align 2, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %84

84:                                               ; preds = %103, %79
  %85 = load i32, ptr %16, align 4, !tbaa !5
  %86 = load i32, ptr %3, align 4, !tbaa !5
  %87 = icmp slt i32 %85, %86
  br i1 %87, label %97, label %88

88:                                               ; preds = %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %114

89:                                               ; preds = %77
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %9, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %10, align 4
  br label %377

93:                                               ; preds = %78
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %9, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %10, align 4
  br label %376

97:                                               ; preds = %84
  %98 = load i32, ptr %16, align 4, !tbaa !5
  %99 = add nsw i32 %98, 1
  %100 = load i16, ptr %15, align 2, !tbaa !11
  %101 = load ptr, ptr %4, align 8, !tbaa !9
  invoke void @_ZN6glmesh3gen12_GLOBAL__N_114WriteCubeLayerERNS_13CpuDataWriterEisRKN4refs9array_refIN3glm6detail5tvec4IhEEEE(ptr noundef nonnull align 8 dereferenceable(72) %14, i32 noundef %99, i16 noundef signext %100, ptr noundef nonnull align 8 dereferenceable(16) %101)
          to label %102 unwind label %110

102:                                              ; preds = %97
  br label %103

103:                                              ; preds = %102
  %104 = load i32, ptr %16, align 4, !tbaa !5
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %16, align 4, !tbaa !5
  %106 = load i16, ptr %15, align 2, !tbaa !11
  %107 = sext i16 %106 to i32
  %108 = sub nsw i32 %107, 2
  %109 = trunc i32 %108 to i16
  store i16 %109, ptr %15, align 2, !tbaa !11
  br label %84, !llvm.loop !13

110:                                              ; preds = %97
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %9, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %375

114:                                              ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %115 = invoke noundef i64 @_ZNK6glmesh13CpuDataWriter21GetNumVerticesWrittenEv(ptr noundef nonnull align 8 dereferenceable(72) %14)
          to label %116 unwind label %127

116:                                              ; preds = %114
  %117 = udiv i64 %115, 24
  store i64 %117, ptr %17, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #8
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  %118 = load i64, ptr %17, align 8, !tbaa !15
  %119 = mul i64 %118, 36
  invoke void @_ZNSt6vectorIjSaIjEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %119)
          to label %120 unwind label %131

120:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  store i64 0, ptr %19, align 8, !tbaa !15
  br label %121

121:                                              ; preds = %166, %120
  %122 = load i64, ptr %19, align 8, !tbaa !15
  %123 = load i64, ptr %17, align 8, !tbaa !15
  %124 = mul i64 %123, 6
  %125 = icmp ult i64 %122, %124
  br i1 %125, label %135, label %126

126:                                              ; preds = %121
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %194

127:                                              ; preds = %114
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %9, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %10, align 4
  br label %374

131:                                              ; preds = %116
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %9, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %10, align 4
  br label %373

135:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %136 = load i64, ptr %19, align 8, !tbaa !15
  %137 = mul i64 %136, 4
  %138 = add i64 %137, 0
  %139 = trunc i64 %138 to i32
  store i32 %139, 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 %140 unwind label %169

140:                                              ; preds = %135
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %141 = load i64, ptr %19, align 8, !tbaa !15
  %142 = mul i64 %141, 4
  %143 = add i64 %142, 1
  %144 = trunc i64 %143 to i32
  store i32 %144, ptr %21, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %145 unwind label %173

145:                                              ; preds = %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %146 = load i64, ptr %19, align 8, !tbaa !15
  %147 = mul i64 %146, 4
  %148 = add i64 %147, 2
  %149 = trunc i64 %148 to i32
  store i32 %149, ptr %22, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %150 unwind label %177

150:                                              ; preds = %145
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  %151 = load i64, ptr %19, align 8, !tbaa !15
  %152 = mul i64 %151, 4
  %153 = add i64 %152, 2
  %154 = trunc i64 %153 to i32
  store i32 %154, ptr %23, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %155 unwind label %181

155:                                              ; preds = %150
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %156 = load i64, ptr %19, align 8, !tbaa !15
  %157 = mul i64 %156, 4
  %158 = add i64 %157, 1
  %159 = trunc i64 %158 to i32
  store i32 %159, ptr %24, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %160 unwind label %185

160:                                              ; preds = %155
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %161 = load i64, ptr %19, align 8, !tbaa !15
  %162 = mul i64 %161, 4
  %163 = add i64 %162, 3
  %164 = trunc i64 %163 to i32
  store i32 %164, ptr %25, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %165 unwind label %189

165:                                              ; preds = %160
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %166

166:                                              ; preds = %165
  %167 = load i64, ptr %19, align 8, !tbaa !15
  %168 = add i64 %167, 1
  store i64 %168, ptr %19, align 8, !tbaa !15
  br label %121, !llvm.loop !17

169:                                              ; preds = %135
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %9, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %193

173:                                              ; preds = %140
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %9, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %193

177:                                              ; preds = %145
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %9, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %193

181:                                              ; preds = %150
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %9, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %193

185:                                              ; preds = %155
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %9, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  br label %193

189:                                              ; preds = %160
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %9, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %193

193:                                              ; preds = %189, %185, %181, %177, %173, %169
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %373

194:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #8
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #8
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef 2, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %195 unwind label %224

195:                                              ; preds = %194
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #8
  %196 = load ptr, ptr @_ZN2gl10GenBuffersE, align 8, !tbaa !9
  %197 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef 0) #8
  invoke void %196(i32 noundef 2, ptr noundef %197)
          to label %198 unwind label %228

198:                                              ; preds = %195
  %199 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef 0) #8
  %200 = load i32, ptr %199, align 4, !tbaa !5
  %201 = invoke noundef i32 @_ZNK6glmesh13CpuDataWriter16TransferToBufferEjjj(ptr noundef nonnull align 8 dereferenceable(72) %14, i32 noundef 34962, i32 noundef 35044, i32 noundef %200)
          to label %202 unwind label %228

202:                                              ; preds = %198
  %203 = load ptr, ptr @_ZN2gl10BindBufferE, align 8, !tbaa !9
  %204 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef 1) #8
  %205 = load i32, ptr %204, align 4, !tbaa !5
  invoke void %203(i32 noundef 34963, i32 noundef %205)
          to label %206 unwind label %228

206:                                              ; preds = %202
  %207 = load ptr, ptr @_ZN2gl10BufferDataE, align 8, !tbaa !9
  %208 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  %209 = mul i64 %208, 4
  %210 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef 0) #8
  invoke void %207(i32 noundef 34963, i64 noundef %209, ptr noundef %210, i32 noundef 35044)
          to label %211 unwind label %228

211:                                              ; preds = %206
  %212 = load ptr, ptr @_ZN2gl10BindBufferE, align 8, !tbaa !9
  invoke void %212(i32 noundef 34963, i32 noundef 0)
          to label %213 unwind label %228

213:                                              ; preds = %211
  call void @llvm.lifetime.start.p0(i64 48, ptr %28) #8
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %28) #8
  %214 = load ptr, ptr @_ZN2gl10BindBufferE, align 8, !tbaa !9
  %215 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef 0) #8
  %216 = load i32, ptr %215, align 4, !tbaa !5
  invoke void %214(i32 noundef 34962, i32 noundef %216)
          to label %217 unwind label %232

217:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  store i32 2, ptr %30, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 4 dereferenceable(4) %30)
          to label %218 unwind label %236

218:                                              ; preds = %217
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  %219 = load ptr, ptr %4, align 8, !tbaa !9
  %220 = invoke noundef zeroext i1 @_ZNK4refs9array_refIN3glm6detail5tvec4IhEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %219)
          to label %221 unwind label %240

221:                                              ; preds = %218
  br i1 %220, label %248, label %222

222:                                              ; preds = %221
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  store i32 1, ptr %31, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 4 dereferenceable(4) %31)
          to label %223 unwind label %244

223:                                              ; preds = %222
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  br label %248

224:                                              ; preds = %194
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %9, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %10, align 4
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #8
  br label %372

228:                                              ; preds = %211, %206, %202, %198, %195
  %229 = landingpad { ptr, i32 }
          cleanup
  %230 = extractvalue { ptr, i32 } %229, 0
  store ptr %230, ptr %9, align 8
  %231 = extractvalue { ptr, i32 } %229, 1
  store i32 %231, ptr %10, align 4
  br label %371

232:                                              ; preds = %213
  %233 = landingpad { ptr, i32 }
          cleanup
  %234 = extractvalue { ptr, i32 } %233, 0
  store ptr %234, ptr %9, align 8
  %235 = extractvalue { ptr, i32 } %233, 1
  store i32 %235, ptr %10, align 4
  br label %370

236:                                              ; preds = %217
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %9, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  br label %369

240:                                              ; preds = %251, %248, %218
  %241 = landingpad { ptr, i32 }
          cleanup
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %9, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %10, align 4
  br label %369

244:                                              ; preds = %222
  %245 = landingpad { ptr, i32 }
          cleanup
  %246 = extractvalue { ptr, i32 } %245, 0
  store ptr %246, ptr %9, align 8
  %247 = extractvalue { ptr, i32 } %245, 1
  store i32 %247, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  br label %369

248:                                              ; preds = %223, %221
  %249 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef 1) #8
  %250 = load i32, ptr %249, align 4, !tbaa !5
  invoke void @_ZN6glmesh3gen15BuildVariationsERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS7_ESaISt4pairIKS7_jEEERKSt6vectorIiSaIiEERKNS_12VertexFormatEj(ptr noundef nonnull align 8 dereferenceable(48) %28, ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(56) %13, i32 noundef %250)
          to label %251 unwind label %240

251:                                              ; preds = %248
  %252 = load ptr, ptr @_ZN2gl10BindBufferE, align 8, !tbaa !9
  invoke void %252(i32 noundef 34962, i32 noundef 0)
          to label %253 unwind label %240

253:                                              ; preds = %251
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  invoke void @_ZN6glmesh13RenderCmdListC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %32)
          to label %254 unwind label %302

254:                                              ; preds = %253
  %255 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  %256 = trunc i64 %255 to i32
  invoke void @_ZN6glmesh13RenderCmdList12DrawElementsEjijli(ptr noundef nonnull align 8 dereferenceable(8) %32, i32 noundef 4, i32 noundef %256, i32 noundef 5125, i64 noundef 0, i32 noundef 0)
          to label %257 unwind label %306

257:                                              ; preds = %254
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  %258 = load ptr, ptr %4, align 8, !tbaa !9
  store i1 false, ptr %35, align 1
  store i1 false, ptr %37, align 1
  store i1 false, ptr %38, align 1
  store i1 false, ptr %39, align 1
  store i1 false, ptr %41, align 1
  store i1 false, ptr %43, align 1
  store i1 false, ptr %44, align 1
  store i1 false, ptr %45, align 1
  %259 = invoke noundef zeroext i1 @_ZNK4refs9array_refIN3glm6detail5tvec4IhEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %258)
          to label %260 unwind label %310

260:                                              ; preds = %257
  br i1 %259, label %261, label %266

261:                                              ; preds = %260
  call void @llvm.lifetime.start.p0(i64 32, ptr %34) #8
  store i1 true, ptr %35, align 1
  call void @llvm.lifetime.start.p0(i64 1, ptr %36) #8
  store i1 true, ptr %37, align 1
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #8
  store i1 true, ptr %38, align 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %36)
          to label %262 unwind label %314

262:                                              ; preds = %261
  store i1 true, ptr %39, align 1
  %263 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEEixEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %28, ptr noundef nonnull align 8 dereferenceable(32) %34)
          to label %264 unwind label %318

264:                                              ; preds = %262
  %265 = load i32, ptr %263, align 4, !tbaa !5
  br label %271

266:                                              ; preds = %260
  call void @llvm.lifetime.start.p0(i64 32, ptr %40) #8
  store i1 true, ptr %41, align 1
  call void @llvm.lifetime.start.p0(i64 1, ptr %42) #8
  store i1 true, ptr %43, align 1
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #8
  store i1 true, ptr %44, align 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %40, ptr noundef @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %42)
          to label %267 unwind label %322

267:                                              ; preds = %266
  store i1 true, ptr %45, align 1
  %268 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEEixEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %28, ptr noundef nonnull align 8 dereferenceable(32) %40)
          to label %269 unwind label %326

269:                                              ; preds = %267
  %270 = load i32, ptr %268, align 4, !tbaa !5
  br label %271

271:                                              ; preds = %269, %264
  %272 = phi i32 [ %265, %264 ], [ %270, %269 ]
  %273 = load i1, ptr %45, align 1
  br i1 %273, label %274, label %275

274:                                              ; preds = %271
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %40) #8
  br label %275

275:                                              ; preds = %274, %271
  %276 = load i1, ptr %44, align 1
  br i1 %276, label %277, label %278

277:                                              ; preds = %275
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #8
  br label %278

278:                                              ; preds = %277, %275
  %279 = load i1, ptr %43, align 1
  br i1 %279, label %280, label %281

280:                                              ; preds = %278
  call void @llvm.lifetime.end.p0(i64 1, ptr %42) #8
  br label %281

281:                                              ; preds = %280, %278
  %282 = load i1, ptr %41, align 1
  br i1 %282, label %283, label %284

283:                                              ; preds = %281
  call void @llvm.lifetime.end.p0(i64 32, ptr %40) #8
  br label %284

284:                                              ; preds = %283, %281
  %285 = load i1, ptr %39, align 1
  br i1 %285, label %286, label %287

286:                                              ; preds = %284
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #8
  br label %287

287:                                              ; preds = %286, %284
  %288 = load i1, ptr %38, align 1
  br i1 %288, label %289, label %290

289:                                              ; preds = %287
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #8
  br label %290

290:                                              ; preds = %289, %287
  %291 = load i1, ptr %37, align 1
  br i1 %291, label %292, label %293

292:                                              ; preds = %290
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #8
  br label %293

293:                                              ; preds = %292, %290
  %294 = load i1, ptr %35, align 1
  br i1 %294, label %295, label %296

295:                                              ; preds = %293
  call void @llvm.lifetime.end.p0(i64 32, ptr %34) #8
  br label %296

296:                                              ; preds = %295, %293
  store i32 %272, ptr %33, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #8
  %297 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 8) #9
          to label %298 unwind label %357

298:                                              ; preds = %296
  %299 = load i32, ptr %33, align 4, !tbaa !5
  invoke void @_ZN6glmesh4MeshC1ERKSt6vectorIjSaIjEEjRKNS_13RenderCmdListERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessISF_ESaISt4pairIKSF_jEEE(ptr noundef nonnull align 8 dereferenceable(8) %297, ptr noundef nonnull align 8 dereferenceable(24) %26, i32 noundef %299, ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(48) %28)
          to label %300 unwind label %361

300:                                              ; preds = %298
  store ptr %297, ptr %46, align 8, !tbaa !9
  %301 = load ptr, ptr %46, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  call void @_ZN6glmesh13RenderCmdListD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #8
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %28) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %28) #8
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #8
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #8
  call void @_ZN6glmesh13CpuDataWriterD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %14) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr %14) #8
  call void @_ZN6glmesh12VertexFormatD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %13) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %13) #8
  call void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #8
  ret ptr %301

302:                                              ; preds = %253
  %303 = landingpad { ptr, i32 }
          cleanup
  %304 = extractvalue { ptr, i32 } %303, 0
  store ptr %304, ptr %9, align 8
  %305 = extractvalue { ptr, i32 } %303, 1
  store i32 %305, ptr %10, align 4
  br label %368

306:                                              ; preds = %254
  %307 = landingpad { ptr, i32 }
          cleanup
  %308 = extractvalue { ptr, i32 } %307, 0
  store ptr %308, ptr %9, align 8
  %309 = extractvalue { ptr, i32 } %307, 1
  store i32 %309, ptr %10, align 4
  br label %367

310:                                              ; preds = %257
  %311 = landingpad { ptr, i32 }
          cleanup
  %312 = extractvalue { ptr, i32 } %311, 0
  store ptr %312, ptr %9, align 8
  %313 = extractvalue { ptr, i32 } %311, 1
  store i32 %313, ptr %10, align 4
  br label %366

314:                                              ; preds = %261
  %315 = landingpad { ptr, i32 }
          cleanup
  %316 = extractvalue { ptr, i32 } %315, 0
  store ptr %316, ptr %9, align 8
  %317 = extractvalue { ptr, i32 } %315, 1
  store i32 %317, ptr %10, align 4
  br label %347

318:                                              ; preds = %262
  %319 = landingpad { ptr, i32 }
          cleanup
  %320 = extractvalue { ptr, i32 } %319, 0
  store ptr %320, ptr %9, align 8
  %321 = extractvalue { ptr, i32 } %319, 1
  store i32 %321, ptr %10, align 4
  br label %343

322:                                              ; preds = %266
  %323 = landingpad { ptr, i32 }
          cleanup
  %324 = extractvalue { ptr, i32 } %323, 0
  store ptr %324, ptr %9, align 8
  %325 = extractvalue { ptr, i32 } %323, 1
  store i32 %325, ptr %10, align 4
  br label %333

326:                                              ; preds = %267
  %327 = landingpad { ptr, i32 }
          cleanup
  %328 = extractvalue { ptr, i32 } %327, 0
  store ptr %328, ptr %9, align 8
  %329 = extractvalue { ptr, i32 } %327, 1
  store i32 %329, ptr %10, align 4
  %330 = load i1, ptr %45, align 1
  br i1 %330, label %331, label %332

331:                                              ; preds = %326
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %40) #8
  br label %332

332:                                              ; preds = %331, %326
  br label %333

333:                                              ; preds = %332, %322
  %334 = load i1, ptr %44, align 1
  br i1 %334, label %335, label %336

335:                                              ; preds = %333
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #8
  br label %336

336:                                              ; preds = %335, %333
  %337 = load i1, ptr %43, align 1
  br i1 %337, label %338, label %339

338:                                              ; preds = %336
  call void @llvm.lifetime.end.p0(i64 1, ptr %42) #8
  br label %339

339:                                              ; preds = %338, %336
  %340 = load i1, ptr %41, align 1
  br i1 %340, label %341, label %342

341:                                              ; preds = %339
  call void @llvm.lifetime.end.p0(i64 32, ptr %40) #8
  br label %342

342:                                              ; preds = %341, %339
  br label %343

343:                                              ; preds = %342, %318
  %344 = load i1, ptr %39, align 1
  br i1 %344, label %345, label %346

345:                                              ; preds = %343
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #8
  br label %346

346:                                              ; preds = %345, %343
  br label %347

347:                                              ; preds = %346, %314
  %348 = load i1, ptr %38, align 1
  br i1 %348, label %349, label %350

349:                                              ; preds = %347
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #8
  br label %350

350:                                              ; preds = %349, %347
  %351 = load i1, ptr %37, align 1
  br i1 %351, label %352, label %353

352:                                              ; preds = %350
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #8
  br label %353

353:                                              ; preds = %352, %350
  %354 = load i1, ptr %35, align 1
  br i1 %354, label %355, label %356

355:                                              ; preds = %353
  call void @llvm.lifetime.end.p0(i64 32, ptr %34) #8
  br label %356

356:                                              ; preds = %355, %353
  br label %366

357:                                              ; preds = %296
  %358 = landingpad { ptr, i32 }
          cleanup
  %359 = extractvalue { ptr, i32 } %358, 0
  store ptr %359, ptr %9, align 8
  %360 = extractvalue { ptr, i32 } %358, 1
  store i32 %360, ptr %10, align 4
  br label %365

361:                                              ; preds = %298
  %362 = landingpad { ptr, i32 }
          cleanup
  %363 = extractvalue { ptr, i32 } %362, 0
  store ptr %363, ptr %9, align 8
  %364 = extractvalue { ptr, i32 } %362, 1
  store i32 %364, ptr %10, align 4
  call void @_ZdlPvm(ptr noundef %297, i64 noundef 8) #10
  br label %365

365:                                              ; preds = %361, %357
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #8
  br label %366

366:                                              ; preds = %365, %356, %310
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  br label %367

367:                                              ; preds = %366, %306
  call void @_ZN6glmesh13RenderCmdListD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %32) #8
  br label %368

368:                                              ; preds = %367, %302
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  br label %369

369:                                              ; preds = %368, %244, %240, %236
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #8
  br label %370

370:                                              ; preds = %369, %232
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %28) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %28) #8
  br label %371

371:                                              ; preds = %370, %228
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #8
  br label %372

372:                                              ; preds = %371, %224
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #8
  br label %373

373:                                              ; preds = %372, %193, %131
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #8
  br label %374

374:                                              ; preds = %373, %127
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %375

375:                                              ; preds = %374, %110
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #8
  call void @_ZN6glmesh13CpuDataWriterD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %14) #8
  br label %376

376:                                              ; preds = %375, %93
  call void @llvm.lifetime.end.p0(i64 72, ptr %14) #8
  call void @_ZN6glmesh12VertexFormatD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %13) #8
  br label %377

377:                                              ; preds = %376, %89
  call void @llvm.lifetime.end.p0(i64 56, ptr %13) #8
  br label %378

378:                                              ; preds = %377, %73, %69, %65, %61
  call void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #8
  br label %379

379:                                              ; preds = %378
  %380 = load ptr, ptr %9, align 8
  %381 = load i32, ptr %10, align 4
  %382 = insertvalue { ptr, i32 } poison, ptr %380, 0
  %383 = insertvalue { ptr, i32 } %382, i32 %381, 1
  resume { ptr, i32 } %383
}

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { 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 #5 = { 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 #6 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { 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 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = distinct !{!17, !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 }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = 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.12" = 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.std::vector.35" = type { %"struct.std::_Vector_base.36" }
%"struct.std::_Vector_base.36" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { 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.40 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.40 = type { i64, [8 x i8] }
%"class.std::allocator.7" = type { i8 }

@_ZN2gl10BindBufferE = external local_unnamed_addr global ptr, align 8
@_ZN2gl10GenBuffersE = external local_unnamed_addr global ptr, align 8
@_ZN2gl10BufferDataE = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; 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 #1 align 2

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

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

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

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 #3

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 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 #2 align 2

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

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

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

declare void @_ZN6glmesh3gen15BuildVariationsERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS7_ESaISt4pairIKS7_jEEERKSt6vectorIiSaIiEERKNS_12VertexFormatEj(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) local_unnamed_addr #3

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

; 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 #2 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4refs9array_refIN3glm6detail5tvec4IhEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN6glmesh3gen12_GLOBAL__N_114WriteCubeLayerERNS_13CpuDataWriterEisRKN4refs9array_refIN3glm6detail5tvec4IhEEEE(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef, i16 noundef signext, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN6glmesh3gen11CubePyramidEiRKN4refs9array_refIN3glm6detail5tvec4IhEEEE(i32 noundef %0, ptr noundef nonnull align 8 dereferenceable(16) %1) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca %"class.glmesh::AttribDesc", align 4
  %8 = alloca %"class.glmesh::AttribDesc", align 4
  %9 = alloca %"class.glmesh::AttribDesc", align 4
  %10 = alloca %"class.glmesh::VertexFormat", align 8
  %11 = alloca %"class.glmesh::CpuDataWriter", align 8
  %12 = alloca %"class.std::vector.10", align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::vector.10", align 8
  %20 = alloca %"class.std::allocator.12", align 1
  %21 = alloca %"class.std::map", align 8
  %22 = alloca %"class.std::vector.35", align 8
  %23 = alloca i32, align 4
  %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
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca %"class.std::allocator.7", align 1
  store i32 %0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  store i32 1, ptr %4, align 4, !tbaa !5
  %30 = 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) %4)
  %31 = load i32, ptr %30, align 4, !tbaa !5
  store i32 %31, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  store i32 16383, ptr %5, align 4, !tbaa !5
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %33 = load i32, ptr %32, align 4, !tbaa !5
  store i32 %33, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #8
  call void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #8
  invoke void @_ZN6glmesh10AttribDescC1EjjNS_14VertexDataTypeENS_14AttribDataTypeE(ptr noundef nonnull align 4 dereferenceable(16) %7, i32 noundef 0, i32 noundef 3, i32 noundef 5, i32 noundef 0)
          to label %34 unwind label %42

34:                                               ; preds = %2
  invoke void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 4 dereferenceable(16) %7)
          to label %35 unwind label %42

35:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #8
  invoke void @_ZN6glmesh10AttribDescC1EjjNS_14VertexDataTypeENS_14AttribDataTypeE(ptr noundef nonnull align 4 dereferenceable(16) %8, i32 noundef 2, i32 noundef 4, i32 noundef 3, i32 noundef 1)
          to label %36 unwind label %44

36:                                               ; preds = %35
  invoke void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 4 dereferenceable(16) %8)
          to label %37 unwind label %44

37:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  %38 = call noundef zeroext i1 @_ZNK4refs9array_refIN3glm6detail5tvec4IhEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  br i1 %38, label %48, label %39

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

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

41:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  br label %48

42:                                               ; preds = %34, %2
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  br label %183

44:                                               ; preds = %36, %35
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  br label %183

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

48:                                               ; preds = %41, %37
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %10) #8
  invoke void @_ZN6glmesh12VertexFormatC1ERKSt6vectorINS_10AttribDescESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(56) %10, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %49 unwind label %59

49:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %11) #8
  invoke void @_ZN6glmesh13CpuDataWriterC1ERKNS_12VertexFormatEm(ptr noundef nonnull align 8 dereferenceable(72) %11, ptr noundef nonnull align 8 dereferenceable(56) %10, i64 noundef 0)
          to label %50 unwind label %61

50:                                               ; preds = %49
  %51 = load i32, ptr %3, align 4, !tbaa !5
  %52 = icmp sgt i32 %51, 0
  br i1 %52, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %50
  %.tr = trunc i32 %51 to i16
  %53 = shl i16 %.tr, 1
  %54 = add i16 %53, -1
  br label %.lr.ph

._crit_edge:                                      ; preds = %64, %50
  %55 = call noundef i64 @_ZNK6glmesh13CpuDataWriter21GetNumVerticesWrittenEv(ptr noundef nonnull align 8 dereferenceable(72) %11)
  %56 = udiv i64 %55, 24
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #8
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  %57 = mul i64 %56, 36
  invoke void @_ZNSt6vectorIjSaIjEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %57)
          to label %.preheader unwind label %70

.preheader:                                       ; preds = %._crit_edge
  %58 = mul nuw nsw i64 %56, 6
  %.not = icmp ult i64 %55, 24
  br i1 %.not, label %._crit_edge116, label %.lr.ph115

59:                                               ; preds = %48
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %182

61:                                               ; preds = %49
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %181

.lr.ph:                                           ; preds = %.lr.ph.preheader, %64
  %.071113 = phi i16 [ %65, %64 ], [ %54, %.lr.ph.preheader ]
  %.072112 = phi i32 [ %63, %64 ], [ 0, %.lr.ph.preheader ]
  %63 = add nuw nsw i32 %.072112, 1
  invoke void @_ZN6glmesh3gen12_GLOBAL__N_114WriteCubeLayerERNS_13CpuDataWriterEisRKN4refs9array_refIN3glm6detail5tvec4IhEEEE(ptr noundef nonnull align 8 dereferenceable(72) %11, i32 noundef %63, i16 noundef signext %.071113, ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %64 unwind label %68

64:                                               ; preds = %.lr.ph
  %65 = add i16 %.071113, -2
  %66 = load i32, ptr %3, align 4, !tbaa !5
  %67 = icmp slt i32 %63, %66
  br i1 %67, label %.lr.ph, label %._crit_edge, !llvm.loop !9

68:                                               ; preds = %.lr.ph
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %180

._crit_edge116:                                   ; preds = %81, %.preheader
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %20) #8
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #8
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef 2, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %95 unwind label %122

70:                                               ; preds = %._crit_edge
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %179

.lr.ph115:                                        ; preds = %.preheader, %81
  %.070114 = phi i64 [ %82, %81 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #8
  %.070.tr = trunc i64 %.070114 to i32
  %72 = shl i32 %.070.tr, 2
  store i32 %72, ptr %13, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %73 unwind label %83

73:                                               ; preds = %.lr.ph115
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #8
  %74 = or disjoint i32 %72, 1
  store i32 %74, ptr %14, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %75 unwind label %85

75:                                               ; preds = %73
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #8
  %76 = or disjoint i32 %72, 2
  store i32 %76, ptr %15, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %77 unwind label %87

77:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #8
  store i32 %76, ptr %16, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %78 unwind label %89

78:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #8
  store i32 %74, ptr %17, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %79 unwind label %91

79:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #8
  %80 = or disjoint i32 %72, 3
  store i32 %80, ptr %18, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %81 unwind label %93

81:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #8
  %82 = add nuw nsw i64 %.070114, 1
  %exitcond.not = icmp eq i64 %82, %58
  br i1 %exitcond.not, label %._crit_edge116, label %.lr.ph115, !llvm.loop !11

83:                                               ; preds = %.lr.ph115
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #8
  br label %179

85:                                               ; preds = %73
  %86 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #8
  br label %179

87:                                               ; preds = %75
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #8
  br label %179

89:                                               ; preds = %77
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #8
  br label %179

91:                                               ; preds = %78
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #8
  br label %179

93:                                               ; preds = %79
  %94 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #8
  br label %179

95:                                               ; preds = %._crit_edge116
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #8
  %96 = load ptr, ptr @_ZN2gl10GenBuffersE, align 8, !tbaa !12
  %97 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef 0) #8
  invoke void %96(i32 noundef 2, ptr noundef nonnull %97)
          to label %98 unwind label %124

98:                                               ; preds = %95
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef 0) #8
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = invoke noundef i32 @_ZNK6glmesh13CpuDataWriter16TransferToBufferEjjj(ptr noundef nonnull align 8 dereferenceable(72) %11, i32 noundef 34962, i32 noundef 35044, i32 noundef %100)
          to label %102 unwind label %124

102:                                              ; preds = %98
  %103 = load ptr, ptr @_ZN2gl10BindBufferE, align 8, !tbaa !12
  %104 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef 1) #8
  %105 = load i32, ptr %104, align 4, !tbaa !5
  invoke void %103(i32 noundef 34963, i32 noundef %105)
          to label %106 unwind label %124

106:                                              ; preds = %102
  %107 = load ptr, ptr @_ZN2gl10BufferDataE, align 8, !tbaa !12
  %108 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  %109 = shl i64 %108, 2
  %110 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef 0) #8
  invoke void %107(i32 noundef 34963, i64 noundef %109, ptr noundef nonnull %110, i32 noundef 35044)
          to label %111 unwind label %124

111:                                              ; preds = %106
  %112 = load ptr, ptr @_ZN2gl10BindBufferE, align 8, !tbaa !12
  invoke void %112(i32 noundef 34963, i32 noundef 0)
          to label %113 unwind label %124

113:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %21) #8
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #8
  %114 = load ptr, ptr @_ZN2gl10BindBufferE, align 8, !tbaa !12
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef 0) #8
  %116 = load i32, ptr %115, align 4, !tbaa !5
  invoke void %114(i32 noundef 34962, i32 noundef %116)
          to label %117 unwind label %126

117:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %22) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #8
  store i32 2, ptr %23, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %118 unwind label %128

118:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #8
  %119 = call noundef zeroext i1 @_ZNK4refs9array_refIN3glm6detail5tvec4IhEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  br i1 %119, label %134, label %120

120:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #8
  store i32 1, ptr %24, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %121 unwind label %132

121:                                              ; preds = %120
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #8
  br label %134

122:                                              ; preds = %._crit_edge116
  %123 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #8
  br label %178

124:                                              ; preds = %111, %106, %102, %98, %95
  %125 = landingpad { ptr, i32 }
          cleanup
  br label %177

126:                                              ; preds = %113
  %127 = landingpad { ptr, i32 }
          cleanup
  br label %176

128:                                              ; preds = %117
  %129 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #8
  br label %175

130:                                              ; preds = %137, %134
  %131 = landingpad { ptr, i32 }
          cleanup
  br label %175

132:                                              ; preds = %120
  %133 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #8
  br label %175

134:                                              ; preds = %121, %118
  %135 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef 1) #8
  %136 = load i32, ptr %135, align 4, !tbaa !5
  invoke void @_ZN6glmesh3gen15BuildVariationsERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS7_ESaISt4pairIKS7_jEEERKSt6vectorIiSaIiEERKNS_12VertexFormatEj(ptr noundef nonnull align 8 dereferenceable(48) %21, ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(56) %10, i32 noundef %136)
          to label %137 unwind label %130

137:                                              ; preds = %134
  %138 = load ptr, ptr @_ZN2gl10BindBufferE, align 8, !tbaa !12
  invoke void %138(i32 noundef 34962, i32 noundef 0)
          to label %139 unwind label %130

139:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #8
  invoke void @_ZN6glmesh13RenderCmdListC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %140 unwind label %157

140:                                              ; preds = %139
  %141 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  %142 = trunc i64 %141 to i32
  invoke void @_ZN6glmesh13RenderCmdList12DrawElementsEjijli(ptr noundef nonnull align 8 dereferenceable(8) %25, i32 noundef 4, i32 noundef %142, i32 noundef 5125, i64 noundef 0, i32 noundef 0)
          to label %143 unwind label %159

143:                                              ; preds = %140
  %144 = call noundef zeroext i1 @_ZNK4refs9array_refIN3glm6detail5tvec4IhEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  br i1 %144, label %145, label %148

145:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %26) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %27) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %146 unwind label %161

146:                                              ; preds = %145
  %147 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEEixEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %21, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %.critedge99.critedge unwind label %167

148:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %28) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %29) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull @.str.3, ptr noundef nonnull align 1 dereferenceable(1) %29)
          to label %149 unwind label %163

149:                                              ; preds = %148
  %150 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEEixEOS5_(ptr noundef nonnull align 8 dereferenceable(48) %21, ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %.critedge unwind label %165

.critedge:                                        ; preds = %149
  %151 = load i32, ptr %150, align 4, !tbaa !5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %29) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %28) #8
  br label %.critedge100

.critedge99.critedge:                             ; preds = %146
  %152 = load i32, ptr %147, align 4, !tbaa !5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %27) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #8
  br label %.critedge100

.critedge100:                                     ; preds = %.critedge, %.critedge99.critedge
  %153 = phi i32 [ %151, %.critedge ], [ %152, %.critedge99.critedge ]
  %154 = invoke noalias noundef nonnull dereferenceable(8) ptr @_Znwm(i64 noundef 8) #9
          to label %155 unwind label %170

155:                                              ; preds = %.critedge100
  invoke void @_ZN6glmesh4MeshC1ERKSt6vectorIjSaIjEEjRKNS_13RenderCmdListERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessISF_ESaISt4pairIKSF_jEEE(ptr noundef nonnull align 8 dereferenceable(8) %154, ptr noundef nonnull align 8 dereferenceable(24) %19, i32 noundef %153, ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(48) %21)
          to label %156 unwind label %172

156:                                              ; preds = %155
  call void @_ZN6glmesh13RenderCmdListD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #8
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %21) #8
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #8
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #8
  call void @_ZN6glmesh13CpuDataWriterD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %11) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %11) #8
  call void @_ZN6glmesh12VertexFormatD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %10) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %10) #8
  call void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  ret ptr %154

157:                                              ; preds = %139
  %158 = landingpad { ptr, i32 }
          cleanup
  br label %174

159:                                              ; preds = %140
  %160 = landingpad { ptr, i32 }
          cleanup
  br label %.critedge103

161:                                              ; preds = %145
  %162 = landingpad { ptr, i32 }
          cleanup
  br label %.critedge102

163:                                              ; preds = %148
  %164 = landingpad { ptr, i32 }
          cleanup
  br label %169

165:                                              ; preds = %149
  %166 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #8
  br label %169

167:                                              ; preds = %146
  %168 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #8
  br label %.critedge102

169:                                              ; preds = %163, %165
  %.pn = phi { ptr, i32 } [ %166, %165 ], [ %164, %163 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %29) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %28) #8
  br label %.critedge103

.critedge102:                                     ; preds = %167, %161
  %.pn74.pn.ph = phi { ptr, i32 } [ %162, %161 ], [ %168, %167 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %27) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #8
  br label %.critedge103

170:                                              ; preds = %.critedge100
  %171 = landingpad { ptr, i32 }
          cleanup
  br label %.critedge103

172:                                              ; preds = %155
  %173 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %154, i64 noundef 8) #10
  br label %.critedge103

.critedge103:                                     ; preds = %169, %.critedge102, %172, %170, %159
  %.pn77.pn.pn = phi { ptr, i32 } [ %160, %159 ], [ %.pn74.pn.ph, %.critedge102 ], [ %173, %172 ], [ %171, %170 ], [ %.pn, %169 ]
  call void @_ZN6glmesh13RenderCmdListD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #8
  br label %174

174:                                              ; preds = %.critedge103, %157
  %.pn77.pn.pn.pn = phi { ptr, i32 } [ %.pn77.pn.pn, %.critedge103 ], [ %158, %157 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #8
  br label %175

175:                                              ; preds = %174, %132, %130, %128
  %.pn77.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn77.pn.pn.pn, %174 ], [ %131, %130 ], [ %133, %132 ], [ %129, %128 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #8
  br label %176

176:                                              ; preds = %175, %126
  %.pn77.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn77.pn.pn.pn.pn, %175 ], [ %127, %126 ]
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %21) #8
  br label %177

177:                                              ; preds = %176, %124
  %.pn77.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn77.pn.pn.pn.pn.pn, %176 ], [ %125, %124 ]
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #8
  br label %178

178:                                              ; preds = %177, %122
  %.pn77.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn77.pn.pn.pn.pn.pn.pn, %177 ], [ %123, %122 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #8
  br label %179

179:                                              ; preds = %83, %85, %87, %89, %91, %93, %178, %70
  %.pn86.pn = phi { ptr, i32 } [ %.pn77.pn.pn.pn.pn.pn.pn.pn, %178 ], [ %71, %70 ], [ %94, %93 ], [ %92, %91 ], [ %90, %89 ], [ %88, %87 ], [ %86, %85 ], [ %84, %83 ]
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #8
  br label %180

180:                                              ; preds = %179, %68
  %.pn89 = phi { ptr, i32 } [ %69, %68 ], [ %.pn86.pn, %179 ]
  call void @_ZN6glmesh13CpuDataWriterD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %11) #8
  br label %181

181:                                              ; preds = %180, %61
  %.pn89.pn = phi { ptr, i32 } [ %.pn89, %180 ], [ %62, %61 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %11) #8
  call void @_ZN6glmesh12VertexFormatD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %10) #8
  br label %182

182:                                              ; preds = %181, %59
  %.pn89.pn.pn = phi { ptr, i32 } [ %.pn89.pn, %181 ], [ %60, %59 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %10) #8
  br label %183

183:                                              ; preds = %182, %46, %44, %42
  %.pn89.pn.pn.pn = phi { ptr, i32 } [ %.pn89.pn.pn, %182 ], [ %47, %46 ], [ %45, %44 ], [ %43, %42 ]
  call void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  resume { ptr, i32 } %.pn89.pn.pn.pn
}

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

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

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

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


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