; LLVM IR from zeux/meshoptimizer :: gltf (write)

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

%struct.cgltf_data = type { i32, ptr, %struct.cgltf_asset, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64, ptr, ptr, i64, ptr, i64, %struct.cgltf_extras, i64, ptr, ptr, i64, ptr, i64, ptr, i64, ptr, i64, %struct.cgltf_memory_options, %struct.cgltf_file_options }
%struct.cgltf_asset = type { ptr, ptr, ptr, ptr, %struct.cgltf_extras, i64, ptr }
%struct.cgltf_extras = type { i64, i64, ptr }
%struct.cgltf_memory_options = type { ptr, ptr, ptr }
%struct.cgltf_file_options = type { ptr, ptr, ptr }
%struct.cgltf_node = type { ptr, ptr, ptr, i64, ptr, ptr, ptr, ptr, ptr, i64, i32, i32, i32, i32, [3 x float], [4 x float], [3 x float], [16 x float], %struct.cgltf_extras, i32, %struct.cgltf_mesh_gpu_instancing, i64, ptr }
%struct.cgltf_mesh_gpu_instancing = type { ptr, i64 }
%struct.NodeInfo = type { i32, i8, i8, i32, i32, %"class.std::vector.53", i8, i64, ptr }
%"class.std::vector.53" = type { %"struct.std::_Vector_base.54" }
%"struct.std::_Vector_base.54" = 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 }

@.str.14 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [46 x i8], align 1

declare void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) #0

declare void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #0

declare void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKfm(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i64 noundef) #0

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

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

declare void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #0

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z9writeNodeRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK10cgltf_nodeRKSt6vectorI8NodeInfoSaISA_EEP10cgltf_data(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(264) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef %3) #3 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %15 = load ptr, ptr %7, align 8, !tbaa !5
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = load ptr, ptr %8, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.cgltf_data, ptr %17, i32 0, i32 25
  %19 = load ptr, ptr %18, align 8, !tbaa !9
  %20 = ptrtoint ptr %16 to i64
  %21 = ptrtoint ptr %19 to i64
  %22 = sub i64 %20, %21
  %23 = sdiv exact i64 %22, 264
  %24 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorI8NodeInfoSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %23) #4
  store ptr %24, ptr %9, align 8, !tbaa !5
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.cgltf_node, ptr %25, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8, !tbaa !17
  %28 = icmp ne ptr %27, null
  br i1 %28, label %29, label %43

29:                                               ; preds = %4
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.cgltf_node, ptr %30, i32 0, i32 0
  %32 = load ptr, ptr %31, align 8, !tbaa !17
  %33 = load i8, ptr %32, align 1, !tbaa !21
  %34 = icmp ne i8 %33, 0
  br i1 %34, label %35, label %43

35:                                               ; preds = %29
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %36)
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef @.str.14)
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.cgltf_node, ptr %39, i32 0, i32 0
  %41 = load ptr, ptr %40, align 8, !tbaa !17
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef %41)
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %42, ptr noundef @.str.15)
  br label %43

43:                                               ; preds = %35, %29, %4
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.cgltf_node, ptr %44, i32 0, i32 10
  %46 = load i32, ptr %45, align 8, !tbaa !22
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %55

48:                                               ; preds = %43
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %49)
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %50, ptr noundef @.str.80)
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.cgltf_node, ptr %52, i32 0, i32 14
  %54 = getelementptr inbounds [3 x float], ptr %53, i64 0, i64 0
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKfm(ptr noundef nonnull align 8 dereferenceable(32) %51, ptr noundef %54, i64 noundef 3)
  br label %55

55:                                               ; preds = %48, %43
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.cgltf_node, ptr %56, i32 0, i32 11
  %58 = load i32, ptr %57, align 4, !tbaa !23
  %59 = icmp ne i32 %58, 0
  br i1 %59, label %60, label %67

60:                                               ; preds = %55
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %61)
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %62, ptr noundef @.str.81)
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.cgltf_node, ptr %64, i32 0, i32 15
  %66 = getelementptr inbounds [4 x float], ptr %65, i64 0, i64 0
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKfm(ptr noundef nonnull align 8 dereferenceable(32) %63, ptr noundef %66, i64 noundef 4)
  br label %67

67:                                               ; preds = %60, %55
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.cgltf_node, ptr %68, i32 0, i32 12
  %70 = load i32, ptr %69, align 8, !tbaa !24
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %72, label %79

72:                                               ; preds = %67
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %73)
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %74, ptr noundef @.str.82)
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.cgltf_node, ptr %76, i32 0, i32 16
  %78 = getelementptr inbounds [3 x float], ptr %77, i64 0, i64 0
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKfm(ptr noundef nonnull align 8 dereferenceable(32) %75, ptr noundef %78, i64 noundef 3)
  br label %79

79:                                               ; preds = %72, %67
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.cgltf_node, ptr %80, i32 0, i32 13
  %82 = load i32, ptr %81, align 4, !tbaa !25
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %84, label %91

84:                                               ; preds = %79
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %85)
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %86, ptr noundef @.str.83)
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.cgltf_node, ptr %88, i32 0, i32 17
  %90 = getelementptr inbounds [16 x float], ptr %89, i64 0, i64 0
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKfm(ptr noundef nonnull align 8 dereferenceable(32) %87, ptr noundef %90, i64 noundef 16)
  br label %91

91:                                               ; preds = %84, %79
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #4
  %92 = load ptr, ptr %9, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.NodeInfo, ptr %92, i32 0, i32 5
  %94 = call noundef zeroext i1 @_ZNKSt6vectorImSaImEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %93) #4
  %95 = xor i1 %94, true
  %96 = zext i1 %95 to i8
  store i8 %96, ptr %10, align 1, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  store i64 0, ptr %11, align 8, !tbaa !28
  br label %97

97:                                               ; preds = %130, %91
  %98 = load i64, ptr %11, align 8, !tbaa !28
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.cgltf_node, ptr %99, i32 0, i32 3
  %101 = load i64, ptr %100, align 8, !tbaa !29
  %102 = icmp ult i64 %98, %101
  br i1 %102, label %104, label %103

103:                                              ; preds = %97
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %133

104:                                              ; preds = %97
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.cgltf_node, ptr %106, i32 0, i32 2
  %108 = load ptr, ptr %107, align 8, !tbaa !30
  %109 = load i64, ptr %11, align 8, !tbaa !28
  %110 = getelementptr inbounds ptr, ptr %108, i64 %109
  %111 = load ptr, ptr %110, align 8, !tbaa !5
  %112 = load ptr, ptr %8, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.cgltf_data, ptr %112, i32 0, i32 25
  %114 = load ptr, ptr %113, align 8, !tbaa !9
  %115 = ptrtoint ptr %111 to i64
  %116 = ptrtoint ptr %114 to i64
  %117 = sub i64 %115, %116
  %118 = sdiv exact i64 %117, 264
  %119 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorI8NodeInfoSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %105, i64 noundef %118) #4
  %120 = getelementptr inbounds %struct.NodeInfo, ptr %119, i32 0, i32 1
  %121 = load i8, ptr %120, align 4, !tbaa !31, !range !37, !noundef !38
  %122 = trunc i8 %121 to i1
  %123 = zext i1 %122 to i32
  %124 = load i8, ptr %10, align 1, !tbaa !26, !range !37, !noundef !38
  %125 = trunc i8 %124 to i1
  %126 = zext i1 %125 to i32
  %127 = or i32 %126, %123
  %128 = icmp ne i32 %127, 0
  %129 = zext i1 %128 to i8
  store i8 %129, ptr %10, align 1, !tbaa !26
  br label %130

130:                                              ; preds = %104
  %131 = load i64, ptr %11, align 8, !tbaa !28
  %132 = add i64 %131, 1
  store i64 %132, ptr %11, align 8, !tbaa !28
  br label %97, !llvm.loop !39

133:                                              ; preds = %103
  %134 = load i8, ptr %10, align 1, !tbaa !26, !range !37, !noundef !38
  %135 = trunc i8 %134 to i1
  br i1 %135, label %136, label %198

136:                                              ; preds = %133
  %137 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %137)
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %138, ptr noundef @.str.84)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store i64 0, ptr %12, align 8, !tbaa !28
  br label %139

139:                                              ; preds = %174, %136
  %140 = load i64, ptr %12, align 8, !tbaa !28
  %141 = load ptr, ptr %6, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.cgltf_node, ptr %141, i32 0, i32 3
  %143 = load i64, ptr %142, align 8, !tbaa !29
  %144 = icmp ult i64 %140, %143
  br i1 %144, label %146, label %145

145:                                              ; preds = %139
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %177

146:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %147 = load ptr, ptr %7, align 8, !tbaa !5
  %148 = load ptr, ptr %6, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.cgltf_node, ptr %148, i32 0, i32 2
  %150 = load ptr, ptr %149, align 8, !tbaa !30
  %151 = load i64, ptr %12, align 8, !tbaa !28
  %152 = getelementptr inbounds ptr, ptr %150, i64 %151
  %153 = load ptr, ptr %152, align 8, !tbaa !5
  %154 = load ptr, ptr %8, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.cgltf_data, ptr %154, i32 0, i32 25
  %156 = load ptr, ptr %155, align 8, !tbaa !9
  %157 = ptrtoint ptr %153 to i64
  %158 = ptrtoint ptr %156 to i64
  %159 = sub i64 %157, %158
  %160 = sdiv exact i64 %159, 264
  %161 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorI8NodeInfoSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %147, i64 noundef %160) #4
  store ptr %161, ptr %13, align 8, !tbaa !5
  %162 = load ptr, ptr %13, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.NodeInfo, ptr %162, i32 0, i32 1
  %164 = load i8, ptr %163, align 4, !tbaa !31, !range !37, !noundef !38
  %165 = trunc i8 %164 to i1
  br i1 %165, label %166, label %173

166:                                              ; preds = %146
  %167 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %167)
  %168 = load ptr, ptr %5, align 8, !tbaa !5
  %169 = load ptr, ptr %13, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.NodeInfo, ptr %169, i32 0, i32 4
  %171 = load i32, ptr %170, align 4, !tbaa !41
  %172 = sext i32 %171 to i64
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm(ptr noundef nonnull align 8 dereferenceable(32) %168, i64 noundef %172)
  br label %173

173:                                              ; preds = %166, %146
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %174

174:                                              ; preds = %173
  %175 = load i64, ptr %12, align 8, !tbaa !28
  %176 = add i64 %175, 1
  store i64 %176, ptr %12, align 8, !tbaa !28
  br label %139, !llvm.loop !42

177:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  store i64 0, ptr %14, align 8, !tbaa !28
  br label %178

178:                                              ; preds = %193, %177
  %179 = load i64, ptr %14, align 8, !tbaa !28
  %180 = load ptr, ptr %9, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.NodeInfo, ptr %180, i32 0, i32 5
  %182 = call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %181) #4
  %183 = icmp ult i64 %179, %182
  br i1 %183, label %185, label %184

184:                                              ; preds = %178
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %196

185:                                              ; preds = %178
  %186 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %186)
  %187 = load ptr, ptr %5, align 8, !tbaa !5
  %188 = load ptr, ptr %9, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.NodeInfo, ptr %188, i32 0, i32 5
  %190 = load i64, ptr %14, align 8, !tbaa !28
  %191 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %189, i64 noundef %190) #4
  %192 = load i64, ptr %191, align 8, !tbaa !28
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm(ptr noundef nonnull align 8 dereferenceable(32) %187, i64 noundef %192)
  br label %193

193:                                              ; preds = %185
  %194 = load i64, ptr %14, align 8, !tbaa !28
  %195 = add i64 %194, 1
  store i64 %195, ptr %14, align 8, !tbaa !28
  br label %178, !llvm.loop !43

196:                                              ; preds = %184
  %197 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %197, ptr noundef @.str.64)
  br label %198

198:                                              ; preds = %196, %133
  %199 = load ptr, ptr %9, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.NodeInfo, ptr %199, i32 0, i32 6
  %201 = load i8, ptr %200, align 8, !tbaa !44, !range !37, !noundef !38
  %202 = trunc i8 %201 to i1
  br i1 %202, label %203, label %242

203:                                              ; preds = %198
  %204 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %204)
  %205 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %205, ptr noundef @.str.85)
  %206 = load ptr, ptr %5, align 8, !tbaa !5
  %207 = load ptr, ptr %9, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.NodeInfo, ptr %207, i32 0, i32 7
  %209 = load i64, ptr %208, align 8, !tbaa !45
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm(ptr noundef nonnull align 8 dereferenceable(32) %206, i64 noundef %209)
  %210 = load ptr, ptr %9, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.NodeInfo, ptr %210, i32 0, i32 8
  %212 = load ptr, ptr %211, align 8, !tbaa !46
  %213 = icmp ne ptr %212, null
  br i1 %213, label %214, label %227

214:                                              ; preds = %203
  %215 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %215, ptr noundef @.str.67)
  %216 = load ptr, ptr %5, align 8, !tbaa !5
  %217 = load ptr, ptr %9, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.NodeInfo, ptr %217, i32 0, i32 8
  %219 = load ptr, ptr %218, align 8, !tbaa !46
  %220 = load ptr, ptr %8, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.cgltf_data, ptr %220, i32 0, i32 19
  %222 = load ptr, ptr %221, align 8, !tbaa !47
  %223 = ptrtoint ptr %219 to i64
  %224 = ptrtoint ptr %222 to i64
  %225 = sub i64 %223, %224
  %226 = sdiv exact i64 %225, 80
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm(ptr noundef nonnull align 8 dereferenceable(32) %216, i64 noundef %226)
  br label %227

227:                                              ; preds = %214, %203
  %228 = load ptr, ptr %6, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.cgltf_node, ptr %228, i32 0, i32 9
  %230 = load i64, ptr %229, align 8, !tbaa !48
  %231 = icmp ne i64 %230, 0
  br i1 %231, label %232, label %241

232:                                              ; preds = %227
  %233 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %233, ptr noundef @.str.71)
  %234 = load ptr, ptr %5, align 8, !tbaa !5
  %235 = load ptr, ptr %6, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.cgltf_node, ptr %235, i32 0, i32 8
  %237 = load ptr, ptr %236, align 8, !tbaa !49
  %238 = load ptr, ptr %6, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.cgltf_node, ptr %238, i32 0, i32 9
  %240 = load i64, ptr %239, align 8, !tbaa !48
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKfm(ptr noundef nonnull align 8 dereferenceable(32) %234, ptr noundef %237, i64 noundef %240)
  br label %241

241:                                              ; preds = %232, %227
  br label %242

242:                                              ; preds = %241, %198
  %243 = load ptr, ptr %6, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.cgltf_node, ptr %243, i32 0, i32 6
  %245 = load ptr, ptr %244, align 8, !tbaa !50
  %246 = icmp ne ptr %245, null
  br i1 %246, label %247, label %261

247:                                              ; preds = %242
  %248 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %248)
  %249 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %249, ptr noundef @.str.86)
  %250 = load ptr, ptr %5, align 8, !tbaa !5
  %251 = load ptr, ptr %6, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.cgltf_node, ptr %251, i32 0, i32 6
  %253 = load ptr, ptr %252, align 8, !tbaa !50
  %254 = load ptr, ptr %8, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.cgltf_data, ptr %254, i32 0, i32 21
  %256 = load ptr, ptr %255, align 8, !tbaa !51
  %257 = ptrtoint ptr %253 to i64
  %258 = ptrtoint ptr %256 to i64
  %259 = sub i64 %257, %258
  %260 = sdiv exact i64 %259, 104
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm(ptr noundef nonnull align 8 dereferenceable(32) %250, i64 noundef %260)
  br label %261

261:                                              ; preds = %247, %242
  %262 = load ptr, ptr %6, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.cgltf_node, ptr %262, i32 0, i32 7
  %264 = load ptr, ptr %263, align 8, !tbaa !52
  %265 = icmp ne ptr %264, null
  br i1 %265, label %266, label %281

266:                                              ; preds = %261
  %267 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %267)
  %268 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %268, ptr noundef @.str.87)
  %269 = load ptr, ptr %5, align 8, !tbaa !5
  %270 = load ptr, ptr %6, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.cgltf_node, ptr %270, i32 0, i32 7
  %272 = load ptr, ptr %271, align 8, !tbaa !52
  %273 = load ptr, ptr %8, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.cgltf_data, ptr %273, i32 0, i32 23
  %275 = load ptr, ptr %274, align 8, !tbaa !53
  %276 = ptrtoint ptr %272 to i64
  %277 = ptrtoint ptr %275 to i64
  %278 = sub i64 %276, %277
  %279 = sdiv exact i64 %278, 64
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm(ptr noundef nonnull align 8 dereferenceable(32) %269, i64 noundef %279)
  %280 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %280, ptr noundef @.str.42)
  br label %281

281:                                              ; preds = %266, %261
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  ret void
}

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

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

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

attributes #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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 264}
!10 = !{!"_ZTS10cgltf_data", !11, i64 0, !6, i64 8, !12, i64 16, !6, i64 88, !14, i64 96, !6, i64 104, !14, i64 112, !6, i64 120, !14, i64 128, !6, i64 136, !14, i64 144, !6, i64 152, !14, i64 160, !6, i64 168, !14, i64 176, !6, i64 184, !14, i64 192, !6, i64 200, !14, i64 208, !6, i64 216, !14, i64 224, !6, i64 232, !14, i64 240, !6, i64 248, !14, i64 256, !6, i64 264, !14, i64 272, !6, i64 280, !14, i64 288, !6, i64 296, !6, i64 304, !14, i64 312, !6, i64 320, !14, i64 328, !13, i64 336, !14, i64 360, !6, i64 368, !6, i64 376, !14, i64 384, !6, i64 392, !14, i64 400, !6, i64 408, !14, i64 416, !6, i64 424, !14, i64 432, !15, i64 440, !16, i64 464}
!11 = !{!"_ZTS15cgltf_file_type", !7, i64 0}
!12 = !{!"_ZTS11cgltf_asset", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !13, i64 32, !14, i64 56, !6, i64 64}
!13 = !{!"_ZTS12cgltf_extras", !14, i64 0, !14, i64 8, !6, i64 16}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTS20cgltf_memory_options", !6, i64 0, !6, i64 8, !6, i64 16}
!16 = !{!"_ZTS18cgltf_file_options", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!18, !6, i64 0}
!18 = !{!"_ZTS10cgltf_node", !6, i64 0, !6, i64 8, !6, i64 16, !14, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !14, i64 72, !19, i64 80, !19, i64 84, !19, i64 88, !19, i64 92, !7, i64 96, !7, i64 108, !7, i64 124, !7, i64 136, !13, i64 200, !19, i64 224, !20, i64 232, !14, i64 248, !6, i64 256}
!19 = !{!"int", !7, i64 0}
!20 = !{!"_ZTS25cgltf_mesh_gpu_instancing", !6, i64 0, !14, i64 8}
!21 = !{!7, !7, i64 0}
!22 = !{!18, !19, i64 80}
!23 = !{!18, !19, i64 84}
!24 = !{!18, !19, i64 88}
!25 = !{!18, !19, i64 92}
!26 = !{!27, !27, i64 0}
!27 = !{!"bool", !7, i64 0}
!28 = !{!14, !14, i64 0}
!29 = !{!18, !14, i64 24}
!30 = !{!18, !6, i64 16}
!31 = !{!32, !27, i64 4}
!32 = !{!"_ZTS8NodeInfo", !19, i64 0, !27, i64 4, !27, i64 5, !19, i64 8, !19, i64 12, !33, i64 16, !27, i64 40, !14, i64 48, !6, i64 56}
!33 = !{!"_ZTSSt6vectorImSaImEE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseImSaImEE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseImSaImEE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseImSaImEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!37 = !{i8 0, i8 2}
!38 = !{}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = !{!32, !19, i64 12}
!42 = distinct !{!42, !40}
!43 = distinct !{!43, !40}
!44 = !{!32, !27, i64 40}
!45 = !{!32, !14, i64 48}
!46 = !{!32, !6, i64 56}
!47 = !{!10, !6, i64 216}
!48 = !{!18, !14, i64 72}
!49 = !{!18, !6, i64 64}
!50 = !{!18, !6, i64 48}
!51 = !{!10, !6, i64 232}
!52 = !{!18, !6, i64 56}
!53 = !{!10, !6, i64 248}


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

@.str.14 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [46 x i8], align 1

declare void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0

declare void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #0

declare void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKfm(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i64 noundef) local_unnamed_addr #0

declare void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z9writeNodeRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK10cgltf_nodeRKSt6vectorI8NodeInfoSaISA_EEP10cgltf_data(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(264) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr nocapture noundef readonly %3) local_unnamed_addr #2 {
  %5 = getelementptr inbounds i8, ptr %3, i64 264
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = ptrtoint ptr %1 to i64
  %8 = ptrtoint ptr %6 to i64
  %9 = sub i64 %7, %8
  %10 = sdiv exact i64 %9, 264
  %11 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorI8NodeInfoSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %10) #3
  %12 = load ptr, ptr %1, align 8, !tbaa !16
  %.not = icmp eq ptr %12, null
  br i1 %.not, label %17, label %13

13:                                               ; preds = %4
  %14 = load i8, ptr %12, align 1, !tbaa !20
  %.not92 = icmp eq i8 %14, 0
  br i1 %.not92, label %17, label %15

15:                                               ; preds = %13
  tail call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %0)
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.14)
  %16 = load ptr, ptr %1, align 8, !tbaa !16
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %16)
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.15)
  br label %17

17:                                               ; preds = %15, %13, %4
  %18 = getelementptr inbounds i8, ptr %1, i64 80
  %19 = load i32, ptr %18, align 8, !tbaa !21
  %.not93 = icmp eq i32 %19, 0
  br i1 %.not93, label %22, label %20

20:                                               ; preds = %17
  tail call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %0)
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.80)
  %21 = getelementptr inbounds i8, ptr %1, i64 96
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKfm(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull %21, i64 noundef 3)
  br label %22

22:                                               ; preds = %20, %17
  %23 = getelementptr inbounds i8, ptr %1, i64 84
  %24 = load i32, ptr %23, align 4, !tbaa !22
  %.not94 = icmp eq i32 %24, 0
  br i1 %.not94, label %27, label %25

25:                                               ; preds = %22
  tail call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %0)
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.81)
  %26 = getelementptr inbounds i8, ptr %1, i64 108
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKfm(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull %26, i64 noundef 4)
  br label %27

27:                                               ; preds = %25, %22
  %28 = getelementptr inbounds i8, ptr %1, i64 88
  %29 = load i32, ptr %28, align 8, !tbaa !23
  %.not95 = icmp eq i32 %29, 0
  br i1 %.not95, label %32, label %30

30:                                               ; preds = %27
  tail call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %0)
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.82)
  %31 = getelementptr inbounds i8, ptr %1, i64 124
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKfm(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull %31, i64 noundef 3)
  br label %32

32:                                               ; preds = %30, %27
  %33 = getelementptr inbounds i8, ptr %1, i64 92
  %34 = load i32, ptr %33, align 4, !tbaa !24
  %.not96 = icmp eq i32 %34, 0
  br i1 %.not96, label %37, label %35

35:                                               ; preds = %32
  tail call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %0)
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.83)
  %36 = getelementptr inbounds i8, ptr %1, i64 136
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKfm(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull %36, i64 noundef 16)
  br label %37

37:                                               ; preds = %35, %32
  %38 = getelementptr inbounds i8, ptr %11, i64 16
  %39 = tail call noundef zeroext i1 @_ZNKSt6vectorImSaImEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %38) #3
  %40 = xor i1 %39, true
  %41 = getelementptr inbounds i8, ptr %1, i64 24
  %42 = load i64, ptr %41, align 8, !tbaa !25
  %.not109 = icmp eq i64 %42, 0
  br i1 %.not109, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %37
  %43 = getelementptr inbounds i8, ptr %1, i64 16
  br label %44

._crit_edge:                                      ; preds = %44, %37
  %.088.in.lcssa = phi i1 [ %40, %37 ], [ %58, %44 ]
  br i1 %.088.in.lcssa, label %62, label %92

44:                                               ; preds = %.lr.ph, %44
  %.088.in102 = phi i1 [ %40, %.lr.ph ], [ %58, %44 ]
  %.090101 = phi i64 [ 0, %.lr.ph ], [ %59, %44 ]
  %45 = load ptr, ptr %43, align 8, !tbaa !26
  %46 = getelementptr inbounds ptr, ptr %45, i64 %.090101
  %47 = load ptr, ptr %46, align 8, !tbaa !27
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = ptrtoint ptr %47 to i64
  %50 = ptrtoint ptr %48 to i64
  %51 = sub i64 %49, %50
  %52 = sdiv exact i64 %51, 264
  %53 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorI8NodeInfoSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %52) #3
  %54 = getelementptr inbounds i8, ptr %53, i64 4
  %55 = load i8, ptr %54, align 4, !tbaa !28, !range !35, !noundef !36
  %56 = zext i1 %.088.in102 to i8
  %57 = or i8 %55, %56
  %58 = icmp ne i8 %57, 0
  %59 = add nuw i64 %.090101, 1
  %60 = load i64, ptr %41, align 8, !tbaa !25
  %61 = icmp ult i64 %59, %60
  br i1 %61, label %44, label %._crit_edge, !llvm.loop !37

62:                                               ; preds = %._crit_edge
  tail call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %0)
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.84)
  %63 = load i64, ptr %41, align 8, !tbaa !25
  %.not110 = icmp eq i64 %63, 0
  br i1 %.not110, label %.preheader, label %.lr.ph105

.lr.ph105:                                        ; preds = %62
  %64 = getelementptr inbounds i8, ptr %1, i64 16
  br label %66

.preheader:                                       ; preds = %83, %62
  %65 = tail call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %38) #3
  %.not111 = icmp eq i64 %65, 0
  br i1 %.not111, label %._crit_edge108, label %.lr.ph107

66:                                               ; preds = %.lr.ph105, %83
  %.089103 = phi i64 [ 0, %.lr.ph105 ], [ %84, %83 ]
  %67 = load ptr, ptr %64, align 8, !tbaa !26
  %68 = getelementptr inbounds ptr, ptr %67, i64 %.089103
  %69 = load ptr, ptr %68, align 8, !tbaa !27
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = ptrtoint ptr %69 to i64
  %72 = ptrtoint ptr %70 to i64
  %73 = sub i64 %71, %72
  %74 = sdiv exact i64 %73, 264
  %75 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorI8NodeInfoSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %74) #3
  %76 = getelementptr inbounds i8, ptr %75, i64 4
  %77 = load i8, ptr %76, align 4, !tbaa !28, !range !35, !noundef !36
  %78 = trunc nuw i8 %77 to i1
  br i1 %78, label %79, label %83

79:                                               ; preds = %66
  tail call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %80 = getelementptr inbounds i8, ptr %75, i64 12
  %81 = load i32, ptr %80, align 4, !tbaa !39
  %82 = sext i32 %81 to i64
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %82)
  br label %83

83:                                               ; preds = %79, %66
  %84 = add nuw i64 %.089103, 1
  %85 = load i64, ptr %41, align 8, !tbaa !25
  %86 = icmp ult i64 %84, %85
  br i1 %86, label %66, label %.preheader, !llvm.loop !40

._crit_edge108:                                   ; preds = %.lr.ph107, %.preheader
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.64)
  br label %92

.lr.ph107:                                        ; preds = %.preheader, %.lr.ph107
  %.0106 = phi i64 [ %89, %.lr.ph107 ], [ 0, %.preheader ]
  tail call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %0)
  %87 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %.0106) #3
  %88 = load i64, ptr %87, align 8, !tbaa !41
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %88)
  %89 = add nuw i64 %.0106, 1
  %90 = tail call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %38) #3
  %91 = icmp ult i64 %89, %90
  br i1 %91, label %.lr.ph107, label %._crit_edge108, !llvm.loop !42

92:                                               ; preds = %._crit_edge108, %._crit_edge
  %93 = getelementptr inbounds i8, ptr %11, i64 40
  %94 = load i8, ptr %93, align 8, !tbaa !43, !range !35, !noundef !36
  %95 = trunc nuw i8 %94 to i1
  br i1 %95, label %96, label %116

96:                                               ; preds = %92
  tail call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %0)
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.85)
  %97 = getelementptr inbounds i8, ptr %11, i64 48
  %98 = load i64, ptr %97, align 8, !tbaa !44
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %98)
  %99 = getelementptr inbounds i8, ptr %11, i64 56
  %100 = load ptr, ptr %99, align 8, !tbaa !45
  %.not97 = icmp eq ptr %100, null
  br i1 %.not97, label %109, label %101

101:                                              ; preds = %96
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.67)
  %102 = load ptr, ptr %99, align 8, !tbaa !45
  %103 = getelementptr inbounds i8, ptr %3, i64 216
  %104 = load ptr, ptr %103, align 8, !tbaa !46
  %105 = ptrtoint ptr %102 to i64
  %106 = ptrtoint ptr %104 to i64
  %107 = sub i64 %105, %106
  %108 = sdiv exact i64 %107, 80
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %108)
  br label %109

109:                                              ; preds = %101, %96
  %110 = getelementptr inbounds i8, ptr %1, i64 72
  %111 = load i64, ptr %110, align 8, !tbaa !47
  %.not98 = icmp eq i64 %111, 0
  br i1 %.not98, label %116, label %112

112:                                              ; preds = %109
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.71)
  %113 = getelementptr inbounds i8, ptr %1, i64 64
  %114 = load ptr, ptr %113, align 8, !tbaa !48
  %115 = load i64, ptr %110, align 8, !tbaa !47
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKfm(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %114, i64 noundef %115)
  br label %116

116:                                              ; preds = %109, %112, %92
  %117 = getelementptr inbounds i8, ptr %1, i64 48
  %118 = load ptr, ptr %117, align 8, !tbaa !49
  %.not99 = icmp eq ptr %118, null
  br i1 %.not99, label %127, label %119

119:                                              ; preds = %116
  tail call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %0)
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.86)
  %120 = load ptr, ptr %117, align 8, !tbaa !49
  %121 = getelementptr inbounds i8, ptr %3, i64 232
  %122 = load ptr, ptr %121, align 8, !tbaa !50
  %123 = ptrtoint ptr %120 to i64
  %124 = ptrtoint ptr %122 to i64
  %125 = sub i64 %123, %124
  %126 = sdiv exact i64 %125, 104
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %126)
  br label %127

127:                                              ; preds = %119, %116
  %128 = getelementptr inbounds i8, ptr %1, i64 56
  %129 = load ptr, ptr %128, align 8, !tbaa !51
  %.not100 = icmp eq ptr %129, null
  br i1 %.not100, label %138, label %130

130:                                              ; preds = %127
  tail call void @_Z5commaRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %0)
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.87)
  %131 = load ptr, ptr %128, align 8, !tbaa !51
  %132 = getelementptr inbounds i8, ptr %3, i64 248
  %133 = load ptr, ptr %132, align 8, !tbaa !52
  %134 = ptrtoint ptr %131 to i64
  %135 = ptrtoint ptr %133 to i64
  %136 = sub i64 %134, %135
  %137 = ashr exact i64 %136, 6
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %137)
  tail call void @_Z6appendRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull @.str.42)
  br label %138

138:                                              ; preds = %130, %127
  ret void
}

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

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

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

attributes #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 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 = { 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, !10, i64 264}
!6 = !{!"_ZTS10cgltf_data", !7, i64 0, !10, i64 8, !11, i64 16, !10, i64 88, !13, i64 96, !10, i64 104, !13, i64 112, !10, i64 120, !13, i64 128, !10, i64 136, !13, i64 144, !10, i64 152, !13, i64 160, !10, i64 168, !13, i64 176, !10, i64 184, !13, i64 192, !10, i64 200, !13, i64 208, !10, i64 216, !13, i64 224, !10, i64 232, !13, i64 240, !10, i64 248, !13, i64 256, !10, i64 264, !13, i64 272, !10, i64 280, !13, i64 288, !10, i64 296, !10, i64 304, !13, i64 312, !10, i64 320, !13, i64 328, !12, i64 336, !13, i64 360, !10, i64 368, !10, i64 376, !13, i64 384, !10, i64 392, !13, i64 400, !10, i64 408, !13, i64 416, !10, i64 424, !13, i64 432, !14, i64 440, !15, i64 464}
!7 = !{!"_ZTS15cgltf_file_type", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_ZTS11cgltf_asset", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !12, i64 32, !13, i64 56, !10, i64 64}
!12 = !{!"_ZTS12cgltf_extras", !13, i64 0, !13, i64 8, !10, i64 16}
!13 = !{!"long", !8, i64 0}
!14 = !{!"_ZTS20cgltf_memory_options", !10, i64 0, !10, i64 8, !10, i64 16}
!15 = !{!"_ZTS18cgltf_file_options", !10, i64 0, !10, i64 8, !10, i64 16}
!16 = !{!17, !10, i64 0}
!17 = !{!"_ZTS10cgltf_node", !10, i64 0, !10, i64 8, !10, i64 16, !13, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !13, i64 72, !18, i64 80, !18, i64 84, !18, i64 88, !18, i64 92, !8, i64 96, !8, i64 108, !8, i64 124, !8, i64 136, !12, i64 200, !18, i64 224, !19, i64 232, !13, i64 248, !10, i64 256}
!18 = !{!"int", !8, i64 0}
!19 = !{!"_ZTS25cgltf_mesh_gpu_instancing", !10, i64 0, !13, i64 8}
!20 = !{!8, !8, i64 0}
!21 = !{!17, !18, i64 80}
!22 = !{!17, !18, i64 84}
!23 = !{!17, !18, i64 88}
!24 = !{!17, !18, i64 92}
!25 = !{!17, !13, i64 24}
!26 = !{!17, !10, i64 16}
!27 = !{!10, !10, i64 0}
!28 = !{!29, !30, i64 4}
!29 = !{!"_ZTS8NodeInfo", !18, i64 0, !30, i64 4, !30, i64 5, !18, i64 8, !18, i64 12, !31, i64 16, !30, i64 40, !13, i64 48, !10, i64 56}
!30 = !{!"bool", !8, i64 0}
!31 = !{!"_ZTSSt6vectorImSaImEE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseImSaImEE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseImSaImEE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseImSaImEE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!35 = !{i8 0, i8 2}
!36 = !{}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"}
!39 = !{!29, !18, i64 12}
!40 = distinct !{!40, !38}
!41 = !{!13, !13, i64 0}
!42 = distinct !{!42, !38}
!43 = !{!29, !30, i64 40}
!44 = !{!29, !13, i64 48}
!45 = !{!29, !10, i64 56}
!46 = !{!6, !10, i64 216}
!47 = !{!17, !13, i64 72}
!48 = !{!17, !10, i64 64}
!49 = !{!17, !10, i64 48}
!50 = !{!6, !10, i64 232}
!51 = !{!17, !10, i64 56}
!52 = !{!6, !10, i64 248}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass