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

; 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.glmesh::RenderCmdList" = type { %"class.std::auto_ptr" }
%"class.std::auto_ptr" = type { ptr }

@_ZN2gl10BindBufferE = external global ptr, align 8
@_ZN2gl15GenVertexArraysE = external global ptr, align 8
@_ZN2gl15BindVertexArrayE = external global ptr, align 8

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN6glmesh3gen14FullScreenQuadEv() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::vector", align 8
  %2 = alloca %"class.glmesh::AttribDesc", align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %"class.glmesh::VertexFormat", align 8
  %6 = alloca %"class.glmesh::CpuDataWriter", align 8
  %7 = alloca %"class.std::vector.10", align 8
  %8 = alloca %"class.std::allocator.12", align 1
  %9 = alloca %"class.std::map", align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.glmesh::RenderCmdList", align 8
  %12 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %1) #8
  call void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %2) #8
  invoke void @_ZN6glmesh10AttribDescC1EjjNS_14VertexDataTypeENS_14AttribDataTypeE(ptr noundef nonnull align 4 dereferenceable(16) %2, i32 noundef 0, i32 noundef 2, i32 noundef 5, i32 noundef 1)
          to label %13 unwind label %48

13:                                               ; preds = %0
  invoke void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(16) %2)
          to label %14 unwind label %48

14:                                               ; preds = %13
  call void @llvm.lifetime.end.p0(i64 16, ptr %2) #8
  call void @llvm.lifetime.start.p0(i64 56, ptr %5) #8
  invoke void @_ZN6glmesh12VertexFormatC1ERKSt6vectorINS_10AttribDescESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(56) %5, ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %15 unwind label %52

15:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 72, ptr %6) #8
  invoke void @_ZN6glmesh13CpuDataWriterC1ERKNS_12VertexFormatEm(ptr noundef nonnull align 8 dereferenceable(72) %6, ptr noundef nonnull align 8 dereferenceable(56) %5, i64 noundef 4)
          to label %16 unwind label %56

16:                                               ; preds = %15
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIsEEvT_S4_(ptr noundef nonnull align 8 dereferenceable(8) %6, i16 noundef signext -32768, i16 noundef signext 32767)
          to label %17 unwind label %60

17:                                               ; preds = %16
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIsEEvT_S4_(ptr noundef nonnull align 8 dereferenceable(8) %6, i16 noundef signext -32768, i16 noundef signext -32768)
          to label %18 unwind label %60

18:                                               ; preds = %17
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIsEEvT_S4_(ptr noundef nonnull align 8 dereferenceable(8) %6, i16 noundef signext 32767, i16 noundef signext 32767)
          to label %19 unwind label %60

19:                                               ; preds = %18
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIsEEvT_S4_(ptr noundef nonnull align 8 dereferenceable(8) %6, i16 noundef signext 32767, i16 noundef signext -32768)
          to label %20 unwind label %60

20:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #8
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 1, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %21 unwind label %64

21:                                               ; preds = %20
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #8
  %22 = invoke noundef i32 @_ZNK6glmesh13CpuDataWriter16TransferToBufferEjjj(ptr noundef nonnull align 8 dereferenceable(72) %6, i32 noundef 34962, i32 noundef 35044, i32 noundef 0)
          to label %23 unwind label %68

23:                                               ; preds = %21
  %24 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 0) #8
  store i32 %22, ptr %24, align 4, !tbaa !5
  %25 = load ptr, ptr @_ZN2gl10BindBufferE, align 8, !tbaa !9
  %26 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 0) #8
  %27 = load i32, ptr %26, align 4, !tbaa !5
  invoke void %25(i32 noundef 34962, i32 noundef %27)
          to label %28 unwind label %68

28:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 48, ptr %9) #8
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 0, ptr %10, align 4, !tbaa !5
  %29 = load ptr, ptr @_ZN2gl15GenVertexArraysE, align 8, !tbaa !9
  invoke void %29(i32 noundef 1, ptr noundef %10)
          to label %30 unwind label %72

30:                                               ; preds = %28
  %31 = load ptr, ptr @_ZN2gl15BindVertexArrayE, align 8, !tbaa !9
  %32 = load i32, ptr %10, align 4, !tbaa !5
  invoke void %31(i32 noundef %32)
          to label %33 unwind label %72

33:                                               ; preds = %30
  invoke void @_ZNK6glmesh12VertexFormat13BindAttributeEmm(ptr noundef nonnull align 8 dereferenceable(56) %5, i64 noundef 0, i64 noundef 0)
          to label %34 unwind label %72

34:                                               ; preds = %33
  %35 = load i32, ptr %10, align 4, !tbaa !5
  invoke void @_ZN6glmesh3gen15AddVariantToMapERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS7_ESaISt4pairIKS7_jEEEji(ptr noundef nonnull align 8 dereferenceable(48) %9, i32 noundef %35, i32 noundef 0)
          to label %36 unwind label %72

36:                                               ; preds = %34
  %37 = load ptr, ptr @_ZN2gl15BindVertexArrayE, align 8, !tbaa !9
  invoke void %37(i32 noundef 0)
          to label %38 unwind label %72

38:                                               ; preds = %36
  %39 = load ptr, ptr @_ZN2gl10BindBufferE, align 8, !tbaa !9
  invoke void %39(i32 noundef 34962, i32 noundef 0)
          to label %40 unwind label %72

40:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  invoke void @_ZN6glmesh13RenderCmdListC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %41 unwind label %76

41:                                               ; preds = %40
  invoke void @_ZN6glmesh13RenderCmdList10DrawArraysEjii(ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef 5, i32 noundef 0, i32 noundef 4)
          to label %42 unwind label %80

42:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %43 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 8) #9
          to label %44 unwind label %84

44:                                               ; preds = %42
  %45 = load i32, ptr %10, align 4, !tbaa !5
  invoke void @_ZN6glmesh4MeshC1ERKSt6vectorIjSaIjEEjRKNS_13RenderCmdListERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessISF_ESaISt4pairIKSF_jEEE(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef %45, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(48) %9)
          to label %46 unwind label %88

46:                                               ; preds = %44
  store ptr %43, ptr %12, align 8, !tbaa !9
  %47 = load ptr, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @_ZN6glmesh13RenderCmdListD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #8
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #8
  call void @_ZN6glmesh13CpuDataWriterD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %6) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr %6) #8
  call void @_ZN6glmesh12VertexFormatD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %5) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %5) #8
  call void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %1) #8
  ret ptr %47

48:                                               ; preds = %13, %0
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %3, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %2) #8
  br label %101

52:                                               ; preds = %14
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %3, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %4, align 4
  br label %100

56:                                               ; preds = %15
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %3, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %4, align 4
  br label %99

60:                                               ; preds = %19, %18, %17, %16
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %3, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %4, align 4
  br label %98

64:                                               ; preds = %20
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %3, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %4, align 4
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #8
  br label %97

68:                                               ; preds = %23, %21
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %3, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %4, align 4
  br label %96

72:                                               ; preds = %38, %36, %34, %33, %30, %28
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %3, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %4, align 4
  br label %95

76:                                               ; preds = %40
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %3, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %4, align 4
  br label %94

80:                                               ; preds = %41
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %3, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %4, align 4
  br label %93

84:                                               ; preds = %42
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %3, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %4, align 4
  br label %92

88:                                               ; preds = %44
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %3, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %4, align 4
  call void @_ZdlPvm(ptr noundef %43, i64 noundef 8) #10
  br label %92

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

93:                                               ; preds = %92, %80
  call void @_ZN6glmesh13RenderCmdListD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  br label %94

94:                                               ; preds = %93, %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %95

95:                                               ; preds = %94, %72
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #8
  br label %96

96:                                               ; preds = %95, %68
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  br label %97

97:                                               ; preds = %96, %64
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #8
  br label %98

98:                                               ; preds = %97, %60
  call void @_ZN6glmesh13CpuDataWriterD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %6) #8
  br label %99

99:                                               ; preds = %98, %56
  call void @llvm.lifetime.end.p0(i64 72, ptr %6) #8
  call void @_ZN6glmesh12VertexFormatD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %5) #8
  br label %100

100:                                              ; preds = %99, %52
  call void @llvm.lifetime.end.p0(i64 56, ptr %5) #8
  br label %101

101:                                              ; preds = %100, %48
  call void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %1) #8
  br label %102

102:                                              ; preds = %101
  %103 = load ptr, ptr %3, align 8
  %104 = load i32, ptr %4, align 4
  %105 = insertvalue { ptr, i32 } poison, ptr %103, 0
  %106 = insertvalue { ptr, i32 } %105, i32 %104, 1
  resume { ptr, i32 } %106
}

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

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

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

declare void @_ZN6glmesh10AttribDescC1EjjNS_14VertexDataTypeENS_14AttribDataTypeE(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef, i32 noundef, i32 noundef, i32 noundef) unnamed_addr #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) #1

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 uwtable
declare dso_local void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIsEEvT_S4_(ptr noundef nonnull align 8 dereferenceable(8), i16 noundef signext, i16 noundef signext) #0 align 2

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

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

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

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

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

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

declare void @_ZN6glmesh13RenderCmdList10DrawArraysEjii(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef, i32 noundef) #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 #2 align 2

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

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

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


; 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.glmesh::RenderCmdList" = type { %"class.std::auto_ptr" }
%"class.std::auto_ptr" = type { ptr }

@_ZN2gl10BindBufferE = external local_unnamed_addr global ptr, align 8
@_ZN2gl15GenVertexArraysE = external local_unnamed_addr global ptr, align 8
@_ZN2gl15BindVertexArrayE = external local_unnamed_addr global ptr, align 8

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN6glmesh3gen14FullScreenQuadEv() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::vector", align 8
  %2 = alloca %"class.glmesh::AttribDesc", align 4
  %3 = alloca %"class.glmesh::VertexFormat", align 8
  %4 = alloca %"class.glmesh::CpuDataWriter", align 8
  %5 = alloca %"class.std::vector.10", align 8
  %6 = alloca %"class.std::allocator.12", align 1
  %7 = alloca %"class.std::map", align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.glmesh::RenderCmdList", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #8
  call void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #8
  invoke void @_ZN6glmesh10AttribDescC1EjjNS_14VertexDataTypeENS_14AttribDataTypeE(ptr noundef nonnull align 4 dereferenceable(16) %2, i32 noundef 0, i32 noundef 2, i32 noundef 5, i32 noundef 1)
          to label %10 unwind label %44

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

11:                                               ; preds = %10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %3) #8
  invoke void @_ZN6glmesh12VertexFormatC1ERKSt6vectorINS_10AttribDescESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(56) %3, ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %12 unwind label %46

12:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %4) #8
  invoke void @_ZN6glmesh13CpuDataWriterC1ERKNS_12VertexFormatEm(ptr noundef nonnull align 8 dereferenceable(72) %4, ptr noundef nonnull align 8 dereferenceable(56) %3, i64 noundef 4)
          to label %13 unwind label %48

13:                                               ; preds = %12
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIsEEvT_S4_(ptr noundef nonnull align 8 dereferenceable(8) %4, i16 noundef signext -32768, i16 noundef signext 32767)
          to label %14 unwind label %50

14:                                               ; preds = %13
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIsEEvT_S4_(ptr noundef nonnull align 8 dereferenceable(8) %4, i16 noundef signext -32768, i16 noundef signext -32768)
          to label %15 unwind label %50

15:                                               ; preds = %14
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIsEEvT_S4_(ptr noundef nonnull align 8 dereferenceable(8) %4, i16 noundef signext 32767, i16 noundef signext 32767)
          to label %16 unwind label %50

16:                                               ; preds = %15
  invoke void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIsEEvT_S4_(ptr noundef nonnull align 8 dereferenceable(8) %4, i16 noundef signext 32767, i16 noundef signext -32768)
          to label %17 unwind label %50

17:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  call void @_ZNSaIjEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  invoke void @_ZNSt6vectorIjSaIjEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 1, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %18 unwind label %52

18:                                               ; preds = %17
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  %19 = invoke noundef i32 @_ZNK6glmesh13CpuDataWriter16TransferToBufferEjjj(ptr noundef nonnull align 8 dereferenceable(72) %4, i32 noundef 34962, i32 noundef 35044, i32 noundef 0)
          to label %20 unwind label %54

20:                                               ; preds = %18
  %21 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #8
  store i32 %19, ptr %21, align 4, !tbaa !5
  %22 = load ptr, ptr @_ZN2gl10BindBufferE, align 8, !tbaa !9
  %23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #8
  %24 = load i32, ptr %23, align 4, !tbaa !5
  invoke void %22(i32 noundef 34962, i32 noundef %24)
          to label %25 unwind label %54

25:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %7) #8
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #8
  store i32 0, ptr %8, align 4, !tbaa !5
  %26 = load ptr, ptr @_ZN2gl15GenVertexArraysE, align 8, !tbaa !9
  invoke void %26(i32 noundef 1, ptr noundef nonnull %8)
          to label %27 unwind label %56

27:                                               ; preds = %25
  %28 = load ptr, ptr @_ZN2gl15BindVertexArrayE, align 8, !tbaa !9
  %29 = load i32, ptr %8, align 4, !tbaa !5
  invoke void %28(i32 noundef %29)
          to label %30 unwind label %56

30:                                               ; preds = %27
  invoke void @_ZNK6glmesh12VertexFormat13BindAttributeEmm(ptr noundef nonnull align 8 dereferenceable(56) %3, i64 noundef 0, i64 noundef 0)
          to label %31 unwind label %56

31:                                               ; preds = %30
  %32 = load i32, ptr %8, align 4, !tbaa !5
  invoke void @_ZN6glmesh3gen15AddVariantToMapERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS7_ESaISt4pairIKS7_jEEEji(ptr noundef nonnull align 8 dereferenceable(48) %7, i32 noundef %32, i32 noundef 0)
          to label %33 unwind label %56

33:                                               ; preds = %31
  %34 = load ptr, ptr @_ZN2gl15BindVertexArrayE, align 8, !tbaa !9
  invoke void %34(i32 noundef 0)
          to label %35 unwind label %56

35:                                               ; preds = %33
  %36 = load ptr, ptr @_ZN2gl10BindBufferE, align 8, !tbaa !9
  invoke void %36(i32 noundef 34962, i32 noundef 0)
          to label %37 unwind label %56

37:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  invoke void @_ZN6glmesh13RenderCmdListC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %38 unwind label %58

38:                                               ; preds = %37
  invoke void @_ZN6glmesh13RenderCmdList10DrawArraysEjii(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef 5, i32 noundef 0, i32 noundef 4)
          to label %39 unwind label %60

39:                                               ; preds = %38
  %40 = invoke noalias noundef nonnull dereferenceable(8) ptr @_Znwm(i64 noundef 8) #9
          to label %41 unwind label %62

41:                                               ; preds = %39
  %42 = load i32, ptr %8, align 4, !tbaa !5
  invoke void @_ZN6glmesh4MeshC1ERKSt6vectorIjSaIjEEjRKNS_13RenderCmdListERKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessISF_ESaISt4pairIKSF_jEEE(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef %42, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %43 unwind label %64

43:                                               ; preds = %41
  call void @_ZN6glmesh13RenderCmdListD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #8
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  call void @_ZN6glmesh13CpuDataWriterD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %4) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #8
  call void @_ZN6glmesh12VertexFormatD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #8
  call void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #8
  ret ptr %40

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

46:                                               ; preds = %11
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %73

48:                                               ; preds = %12
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %72

50:                                               ; preds = %16, %15, %14, %13
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %71

52:                                               ; preds = %17
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIjED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  br label %70

54:                                               ; preds = %20, %18
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %69

56:                                               ; preds = %35, %33, %31, %30, %27, %25
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %68

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

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

62:                                               ; preds = %39
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %66

64:                                               ; preds = %41
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %40, i64 noundef 8) #10
  br label %66

66:                                               ; preds = %62, %64, %60
  %.pn.pn = phi { ptr, i32 } [ %61, %60 ], [ %65, %64 ], [ %63, %62 ]
  call void @_ZN6glmesh13RenderCmdListD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  br label %67

67:                                               ; preds = %66, %58
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %66 ], [ %59, %58 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  br label %68

68:                                               ; preds = %67, %56
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %67 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  call void @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #8
  br label %69

69:                                               ; preds = %68, %54
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %68 ], [ %55, %54 ]
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  br label %70

70:                                               ; preds = %69, %52
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %69 ], [ %53, %52 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  br label %71

71:                                               ; preds = %70, %50
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %70 ], [ %51, %50 ]
  call void @_ZN6glmesh13CpuDataWriterD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %4) #8
  br label %72

72:                                               ; preds = %71, %48
  %.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn, %71 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #8
  call void @_ZN6glmesh12VertexFormatD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #8
  br label %73

73:                                               ; preds = %72, %46
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn, %72 ], [ %47, %46 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #8
  br label %74

74:                                               ; preds = %73, %44
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn, %73 ], [ %45, %44 ]
  call void @_ZNSt6vectorIN6glmesh10AttribDescESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn
}

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

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

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

declare void @_ZN6glmesh10AttribDescC1EjjNS_14VertexDataTypeENS_14AttribDataTypeE(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef, i32 noundef, i32 noundef, i32 noundef) unnamed_addr #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) #1

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 uwtable
declare dso_local void @_ZN6glmesh12VertexWriterINS_13CpuDataWriterEE6AttribIsEEvT_S4_(ptr noundef nonnull align 8 dereferenceable(8), i16 noundef signext, i16 noundef signext) local_unnamed_addr #0 align 2

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

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

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

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

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

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

declare void @_ZN6glmesh13RenderCmdList10DrawArraysEjii(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef, i32 noundef) local_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 #2 align 2

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

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

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


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