; LLVM IR from yuanming-hu/taichi_mpm :: external/partio/src/io/BGEO.ll (ZN6Partio9writeBGEOEPKcRKNS_13ParticlesDataEb)

; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Partio::ParticleAttribute, std::allocator<Partio::ParticleAttribute>>::_Vector_impl" }
%"struct.std::_Vector_base<Partio::ParticleAttribute, std::allocator<Partio::ParticleAttribute>>::_Vector_impl" = type { %"struct.std::_Vector_base<Partio::ParticleAttribute, std::allocator<Partio::ParticleAttribute>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Partio::ParticleAttribute, std::allocator<Partio::ParticleAttribute>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<Partio::ParticleAccessor, std::allocator<Partio::ParticleAccessor>>::_Vector_impl" }
%"struct.std::_Vector_base<Partio::ParticleAccessor, std::allocator<Partio::ParticleAccessor>>::_Vector_impl" = type { %"struct.std::_Vector_base<Partio::ParticleAccessor, std::allocator<Partio::ParticleAccessor>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Partio::ParticleAccessor, std::allocator<Partio::ParticleAccessor>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Partio::ParticleAttribute" = type <{ i32, i32, %"class.std::__cxx11::basic_string", i32, [4 x i8] }>
%"struct.Partio::ParticleAccessor" = type { i32, ptr, i32, i32, i32, ptr }
%"class.Partio::ParticleIterator" = type { ptr, i64, i64, ptr }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [28 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [88 x i8], align 1
@__PRETTY_FUNCTION__._ZN6Partio9writeBGEOEPKcRKNS_13ParticlesDataEb = external hidden unnamed_addr constant [72 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6Partio5writeINS_6BIGENDEsEEvRSoRKT0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 2 dereferenceable(2)) #1

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i64 noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6Partio9writeBGEOEPKcRKNS_13ParticlesDataEb(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i1 noundef zeroext %2) #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  %8 = alloca %"class.std::unique_ptr", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca i1, align 1
  %11 = alloca %"class.std::allocator", align 1
  %12 = alloca i1, align 1
  %13 = alloca i1, align 1
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i1, align 1
  %17 = alloca ptr, align 8
  %18 = alloca i1, align 1
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i8, align 1
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca %"class.std::vector", align 8
  %32 = alloca %"class.std::vector.6", align 8
  %33 = alloca %"class.std::vector.11", align 8
  %34 = alloca i8, align 1
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca %"class.Partio::ParticleAttribute", align 8
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i16, align 2
  %41 = alloca ptr, align 8
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca i16, align 2
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  %48 = alloca %"struct.Partio::ParticleAccessor", align 8
  %49 = alloca %"class.Partio::ParticleIterator", align 8
  %50 = alloca i64, align 8
  %51 = alloca ptr, align 8
  %52 = alloca %"class.Partio::ParticleIterator", align 8
  %53 = alloca i32, align 4
  %54 = alloca ptr, align 8
  %55 = alloca ptr, align 8
  %56 = alloca ptr, align 8
  %57 = alloca i32, align 4
  %58 = alloca ptr, align 8
  %59 = alloca %"class.std::__cxx11::basic_string", align 8
  %60 = alloca %"class.std::allocator", align 1
  %61 = alloca i16, align 2
  %62 = alloca i32, align 4
  %63 = alloca i32, align 4
  %64 = alloca %"class.std::__cxx11::basic_string", align 8
  %65 = alloca %"class.std::allocator", align 1
  %66 = alloca i32, align 4
  %67 = alloca i32, align 4
  %68 = alloca i32, align 4
  %69 = alloca i32, align 4
  %70 = alloca i32, align 4
  %71 = alloca i16, align 2
  %72 = alloca i32, align 4
  %73 = alloca i8, align 1
  %74 = alloca i8, align 1
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  %75 = zext i1 %2 to i8
  store i8 %75, ptr %7, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #10
  %76 = load i8, ptr %7, align 1, !tbaa !9, !range !11, !noundef !12
  %77 = trunc i8 %76 to i1
  store i1 false, ptr %10, align 1
  store i1 false, ptr %12, align 1
  store i1 false, ptr %13, align 1
  store i1 false, ptr %16, align 1
  store i1 false, ptr %18, align 1
  br i1 %77, label %78, label %85

78:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #10
  store i1 true, ptr %10, align 1
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #10
  store i1 true, ptr %12, align 1
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #10
  store i1 true, ptr %13, align 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef %79, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %80 unwind label %121

80:                                               ; preds = %78
  store i1 true, ptr %16, align 1
  %81 = invoke noundef i32 @_ZStorSt13_Ios_OpenmodeS_(i32 noundef 16, i32 noundef 4)
          to label %82 unwind label %125

82:                                               ; preds = %80
  %83 = invoke noundef ptr @_ZN6Partio8Gzip_OutERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(32) %9, i32 noundef %81)
          to label %84 unwind label %125

84:                                               ; preds = %82
  br label %92

85:                                               ; preds = %3
  %86 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 512) #11
          to label %87 unwind label %125

87:                                               ; preds = %85
  store ptr %86, ptr %17, align 8
  store i1 true, ptr %18, align 1
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = invoke noundef i32 @_ZStorSt13_Ios_OpenmodeS_(i32 noundef 16, i32 noundef 4)
          to label %90 unwind label %129

90:                                               ; preds = %87
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %86, ptr noundef %88, i32 noundef %89)
          to label %91 unwind label %129

91:                                               ; preds = %90
  br label %92

92:                                               ; preds = %91, %84
  %93 = phi ptr [ %83, %84 ], [ %86, %91 ]
  call void @_ZNSt10unique_ptrISoSt14default_deleteISoEEC2IS1_vEEPSo(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef %93) #10
  %94 = load i1, ptr %16, align 1
  br i1 %94, label %95, label %96

95:                                               ; preds = %92
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  br label %96

96:                                               ; preds = %95, %92
  %97 = load i1, ptr %13, align 1
  br i1 %97, label %98, label %99

98:                                               ; preds = %96
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #10
  br label %99

99:                                               ; preds = %98, %96
  %100 = load i1, ptr %12, align 1
  br i1 %100, label %101, label %102

101:                                              ; preds = %99
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #10
  br label %102

102:                                              ; preds = %101, %99
  %103 = load i1, ptr %10, align 1
  br i1 %103, label %104, label %105

104:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #10
  br label %105

105:                                              ; preds = %104, %102
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  %107 = load ptr, ptr %106, align 8, !tbaa !13
  %108 = getelementptr i8, ptr %107, i64 -24
  %109 = load i64, ptr %108, align 8
  %110 = getelementptr inbounds i8, ptr %106, i64 %109
  %111 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %110)
          to label %112 unwind label %151

112:                                              ; preds = %105
  br i1 %111, label %113, label %155

113:                                              ; preds = %112
  %114 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str)
          to label %115 unwind label %151

115:                                              ; preds = %113
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %114, ptr noundef %116)
          to label %118 unwind label %151

118:                                              ; preds = %115
  %119 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %117, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %120 unwind label %151

120:                                              ; preds = %118
  store i1 false, ptr %4, align 1
  store i32 1, ptr %19, align 4
  br label %596

121:                                              ; preds = %78
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %14, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %15, align 4
  br label %141

125:                                              ; preds = %85, %82, %80
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %14, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %15, align 4
  br label %137

129:                                              ; preds = %90, %87
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %14, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %15, align 4
  %133 = load i1, ptr %18, align 1
  br i1 %133, label %134, label %136

134:                                              ; preds = %129
  %135 = load ptr, ptr %17, align 8
  call void @_ZdlPvm(ptr noundef %135, i64 noundef 512) #12
  br label %136

136:                                              ; preds = %134, %129
  br label %137

137:                                              ; preds = %136, %125
  %138 = load i1, ptr %16, align 1
  br i1 %138, label %139, label %140

139:                                              ; preds = %137
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  br label %140

140:                                              ; preds = %139, %137
  br label %141

141:                                              ; preds = %140, %121
  %142 = load i1, ptr %13, align 1
  br i1 %142, label %143, label %144

143:                                              ; preds = %141
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #10
  br label %144

144:                                              ; preds = %143, %141
  %145 = load i1, ptr %12, align 1
  br i1 %145, label %146, label %147

146:                                              ; preds = %144
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #10
  br label %147

147:                                              ; preds = %146, %144
  %148 = load i1, ptr %10, align 1
  br i1 %148, label %149, label %150

149:                                              ; preds = %147
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #10
  br label %150

150:                                              ; preds = %149, %147
  br label %599

151:                                              ; preds = %118, %115, %113, %105
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %14, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %15, align 4
  br label %598

155:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #10
  store i32 1114072431, ptr %20, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #10
  store i8 86, ptr %21, align 1, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #10
  store i32 5, ptr %22, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #10
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  %157 = load ptr, ptr %156, align 8, !tbaa !13
  %158 = getelementptr inbounds ptr, ptr %157, i64 4
  %159 = load ptr, ptr %158, align 8
  %160 = invoke noundef i32 %159(ptr noundef nonnull align 8 dereferenceable(8) %156)
          to label %161 unwind label %183

161:                                              ; preds = %155
  store i32 %160, ptr %23, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #10
  store i32 1, ptr %24, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #10
  store i32 0, ptr %25, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #10
  store i32 0, ptr %26, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #10
  %162 = load ptr, ptr %6, align 8, !tbaa !5
  %163 = load ptr, ptr %162, align 8, !tbaa !13
  %164 = getelementptr inbounds ptr, ptr %163, i64 3
  %165 = load ptr, ptr %164, align 8
  %166 = invoke noundef i32 %165(ptr noundef nonnull align 8 dereferenceable(8) %162)
          to label %167 unwind label %187

167:                                              ; preds = %161
  %168 = sub nsw i32 %166, 1
  store i32 %168, ptr %27, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #10
  store i32 0, ptr %28, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #10
  store i32 1, ptr %29, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #10
  store i32 0, ptr %30, align 4, !tbaa !15
  %169 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  invoke void @_ZN6Partio5writeINS_6BIGENDEiciiiiEEvRSoRKT0_RKT1_RKT2_RKT3_RKT4_RKT5_(ptr noundef nonnull align 8 dereferenceable(8) %169, ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 1 dereferenceable(1) %21, ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %170 unwind label %191

170:                                              ; preds = %167
  %171 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  invoke void @_ZN6Partio5writeINS_6BIGENDEiiiiiEEvRSoRKT0_RKT1_RKT2_RKT3_RKT4_(ptr noundef nonnull align 8 dereferenceable(8) %171, ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(4) %30)
          to label %172 unwind label %191

172:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 24, ptr %31) #10
  call void @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %32) #10
  call void @_ZNSt6vectorIN6Partio16ParticleAccessorESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %33) #10
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %34) #10
  store i8 0, ptr %34, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #10
  store i32 4, ptr %35, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #10
  store i32 0, ptr %36, align 4, !tbaa !15
  br label %173

173:                                              ; preds = %318, %172
  %174 = load i32, ptr %36, align 4, !tbaa !15
  %175 = load ptr, ptr %6, align 8, !tbaa !5
  %176 = load ptr, ptr %175, align 8, !tbaa !13
  %177 = getelementptr inbounds ptr, ptr %176, i64 3
  %178 = load ptr, ptr %177, align 8
  %179 = invoke noundef i32 %178(ptr noundef nonnull align 8 dereferenceable(8) %175)
          to label %180 unwind label %195

180:                                              ; preds = %173
  %181 = icmp slt i32 %174, %179
  br i1 %181, label %199, label %182

182:                                              ; preds = %180
  store i32 2, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #10
  br label %327

183:                                              ; preds = %155
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %14, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %15, align 4
  br label %595

187:                                              ; preds = %161
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %14, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %15, align 4
  br label %594

191:                                              ; preds = %170, %167
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %14, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %15, align 4
  br label %593

195:                                              ; preds = %173
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %14, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %15, align 4
  br label %326

199:                                              ; preds = %180
  call void @llvm.lifetime.start.p0(i64 48, ptr %37) #10
  call void @_ZN6Partio17ParticleAttributeC2Ev(ptr noundef nonnull align 8 dereferenceable(44) %37) #10
  %200 = load ptr, ptr %6, align 8, !tbaa !5
  %201 = load i32, ptr %36, align 4, !tbaa !15
  %202 = load ptr, ptr %200, align 8, !tbaa !13
  %203 = getelementptr inbounds ptr, ptr %202, i64 6
  %204 = load ptr, ptr %203, align 8
  %205 = invoke noundef zeroext i1 %204(ptr noundef nonnull align 8 dereferenceable(8) %200, i32 noundef %201, ptr noundef nonnull align 8 dereferenceable(44) %37)
          to label %206 unwind label %212

206:                                              ; preds = %199
  %207 = getelementptr inbounds %"class.Partio::ParticleAttribute", ptr %37, i32 0, i32 2
  %208 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %207, ptr noundef @.str.1)
          to label %209 unwind label %212

209:                                              ; preds = %206
  br i1 %208, label %210, label %220

210:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #10
  store i32 0, ptr %38, align 4, !tbaa !15
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 4 dereferenceable(4) %38)
          to label %211 unwind label %216

211:                                              ; preds = %210
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #10
  store i8 1, ptr %34, align 1, !tbaa !9
  br label %313

212:                                              ; preds = %313, %307, %220, %206, %199
  %213 = landingpad { ptr, i32 }
          cleanup
  %214 = extractvalue { ptr, i32 } %213, 0
  store ptr %214, ptr %14, align 8
  %215 = extractvalue { ptr, i32 } %213, 1
  store i32 %215, ptr %15, align 4
  br label %325

216:                                              ; preds = %210
  %217 = landingpad { ptr, i32 }
          cleanup
  %218 = extractvalue { ptr, i32 } %217, 0
  store ptr %218, ptr %14, align 8
  %219 = extractvalue { ptr, i32 } %217, 1
  store i32 %219, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #10
  br label %325

220:                                              ; preds = %209
  %221 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  %222 = getelementptr inbounds %"class.Partio::ParticleAttribute", ptr %37, i32 0, i32 2
  invoke void @_ZN6Partio15writeHoudiniStrERSoRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %221, ptr noundef nonnull align 8 dereferenceable(32) %222)
          to label %223 unwind label %212

223:                                              ; preds = %220
  %224 = getelementptr inbounds %"class.Partio::ParticleAttribute", ptr %37, i32 0, i32 0
  %225 = load i32, ptr %224, align 8, !tbaa !18
  %226 = icmp eq i32 %225, 4
  br i1 %226, label %227, label %272

227:                                              ; preds = %223
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #10
  store i32 4, ptr %39, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 2, ptr %40) #10
  %228 = getelementptr inbounds %"class.Partio::ParticleAttribute", ptr %37, i32 0, i32 1
  %229 = load i32, ptr %228, align 4, !tbaa !24
  %230 = trunc i32 %229 to i16
  store i16 %230, ptr %40, align 2, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #10
  %231 = load ptr, ptr %6, align 8, !tbaa !5
  %232 = load ptr, ptr %231, align 8, !tbaa !13
  %233 = getelementptr inbounds ptr, ptr %232, i64 7
  %234 = load ptr, ptr %233, align 8
  %235 = invoke noundef nonnull align 8 dereferenceable(24) ptr %234(ptr noundef nonnull align 8 dereferenceable(8) %231, ptr noundef nonnull align 8 dereferenceable(44) %37)
          to label %236 unwind label %247

236:                                              ; preds = %227
  store ptr %235, ptr %41, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #10
  %237 = load ptr, ptr %41, align 8, !tbaa !5
  %238 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %237) #10
  %239 = trunc i64 %238 to i32
  store i32 %239, ptr %42, align 4, !tbaa !15
  %240 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  invoke void @_ZN6Partio5writeINS_6BIGENDEtiiEEvRSoRKT0_RKT1_RKT2_(ptr noundef nonnull align 8 dereferenceable(8) %240, ptr noundef nonnull align 2 dereferenceable(2) %40, ptr noundef nonnull align 4 dereferenceable(4) %39, ptr noundef nonnull align 4 dereferenceable(4) %42)
          to label %241 unwind label %251

241:                                              ; preds = %236
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #10
  store i32 0, ptr %43, align 4, !tbaa !15
  br label %242

242:                                              ; preds = %262, %241
  %243 = load i32, ptr %43, align 4, !tbaa !15
  %244 = load i32, ptr %42, align 4, !tbaa !15
  %245 = icmp slt i32 %243, %244
  br i1 %245, label %255, label %246

246:                                              ; preds = %242
  store i32 5, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #10
  br label %269

247:                                              ; preds = %227
  %248 = landingpad { ptr, i32 }
          cleanup
  %249 = extractvalue { ptr, i32 } %248, 0
  store ptr %249, ptr %14, align 8
  %250 = extractvalue { ptr, i32 } %248, 1
  store i32 %250, ptr %15, align 4
  br label %271

251:                                              ; preds = %236
  %252 = landingpad { ptr, i32 }
          cleanup
  %253 = extractvalue { ptr, i32 } %252, 0
  store ptr %253, ptr %14, align 8
  %254 = extractvalue { ptr, i32 } %252, 1
  store i32 %254, ptr %15, align 4
  br label %270

255:                                              ; preds = %242
  %256 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  %257 = load ptr, ptr %41, align 8, !tbaa !5
  %258 = load i32, ptr %43, align 4, !tbaa !15
  %259 = sext i32 %258 to i64
  %260 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %257, i64 noundef %259) #10
  invoke void @_ZN6Partio15writeHoudiniStrERSoRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %256, ptr noundef nonnull align 8 dereferenceable(32) %260)
          to label %261 unwind label %265

261:                                              ; preds = %255
  br label %262

262:                                              ; preds = %261
  %263 = load i32, ptr %43, align 4, !tbaa !15
  %264 = add nsw i32 %263, 1
  store i32 %264, ptr %43, align 4, !tbaa !15
  br label %242, !llvm.loop !27

265:                                              ; preds = %255
  %266 = landingpad { ptr, i32 }
          cleanup
  %267 = extractvalue { ptr, i32 } %266, 0
  store ptr %267, ptr %14, align 8
  %268 = extractvalue { ptr, i32 } %266, 1
  store i32 %268, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #10
  br label %270

269:                                              ; preds = %246
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #10
  call void @llvm.lifetime.end.p0(i64 2, ptr %40) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #10
  br label %307

270:                                              ; preds = %265, %251
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #10
  br label %271

271:                                              ; preds = %270, %247
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #10
  call void @llvm.lifetime.end.p0(i64 2, ptr %40) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #10
  br label %325

272:                                              ; preds = %223
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #10
  store i32 0, ptr %44, align 4, !tbaa !15
  %273 = getelementptr inbounds %"class.Partio::ParticleAttribute", ptr %37, i32 0, i32 0
  %274 = load i32, ptr %273, align 8, !tbaa !18
  switch i32 %274, label %279 [
    i32 2, label %275
    i32 3, label %276
    i32 1, label %277
    i32 4, label %278
    i32 0, label %278
  ]

275:                                              ; preds = %272
  store i32 0, ptr %44, align 4, !tbaa !15
  br label %279

276:                                              ; preds = %272
  store i32 1, ptr %44, align 4, !tbaa !15
  br label %279

277:                                              ; preds = %272
  store i32 5, ptr %44, align 4, !tbaa !15
  br label %279

278:                                              ; preds = %272, %272
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 122, ptr noundef @__PRETTY_FUNCTION__._ZN6Partio9writeBGEOEPKcRKNS_13ParticlesDataEb) #13
  unreachable

279:                                              ; preds = %277, %276, %275, %272
  call void @llvm.lifetime.start.p0(i64 2, ptr %45) #10
  %280 = getelementptr inbounds %"class.Partio::ParticleAttribute", ptr %37, i32 0, i32 1
  %281 = load i32, ptr %280, align 4, !tbaa !24
  %282 = trunc i32 %281 to i16
  store i16 %282, ptr %45, align 2, !tbaa !25
  %283 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  invoke void @_ZN6Partio5writeINS_6BIGENDEtiEEvRSoRKT0_RKT1_(ptr noundef nonnull align 8 dereferenceable(8) %283, ptr noundef nonnull align 2 dereferenceable(2) %45, ptr noundef nonnull align 4 dereferenceable(4) %44)
          to label %284 unwind label %291

284:                                              ; preds = %279
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #10
  store i32 0, ptr %46, align 4, !tbaa !15
  br label %285

285:                                              ; preds = %298, %284
  %286 = load i32, ptr %46, align 4, !tbaa !15
  %287 = getelementptr inbounds %"class.Partio::ParticleAttribute", ptr %37, i32 0, i32 1
  %288 = load i32, ptr %287, align 4, !tbaa !24
  %289 = icmp slt i32 %286, %288
  br i1 %289, label %295, label %290

290:                                              ; preds = %285
  store i32 9, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #10
  br label %305

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

295:                                              ; preds = %285
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #10
  store i32 0, ptr %47, align 4, !tbaa !15
  %296 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  invoke void @_ZN6Partio5writeINS_6BIGENDEiEEvRSoRKT0_(ptr noundef nonnull align 8 dereferenceable(8) %296, ptr noundef nonnull align 4 dereferenceable(4) %47)
          to label %297 unwind label %301

297:                                              ; preds = %295
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #10
  br label %298

298:                                              ; preds = %297
  %299 = load i32, ptr %46, align 4, !tbaa !15
  %300 = add nsw i32 %299, 1
  store i32 %300, ptr %46, align 4, !tbaa !15
  br label %285, !llvm.loop !29

301:                                              ; preds = %295
  %302 = landingpad { ptr, i32 }
          cleanup
  %303 = extractvalue { ptr, i32 } %302, 0
  store ptr %303, ptr %14, align 8
  %304 = extractvalue { ptr, i32 } %302, 1
  store i32 %304, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #10
  br label %306

305:                                              ; preds = %290
  call void @llvm.lifetime.end.p0(i64 2, ptr %45) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #10
  br label %307

306:                                              ; preds = %301, %291
  call void @llvm.lifetime.end.p0(i64 2, ptr %45) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #10
  br label %325

307:                                              ; preds = %305, %269
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 4 dereferenceable(4) %35)
          to label %308 unwind label %212

308:                                              ; preds = %307
  %309 = getelementptr inbounds %"class.Partio::ParticleAttribute", ptr %37, i32 0, i32 1
  %310 = load i32, ptr %309, align 4, !tbaa !24
  %311 = load i32, ptr %35, align 4, !tbaa !15
  %312 = add nsw i32 %311, %310
  store i32 %312, ptr %35, align 4, !tbaa !15
  br label %313

313:                                              ; preds = %308, %211
  invoke void @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 8 dereferenceable(44) %37)
          to label %314 unwind label %212

314:                                              ; preds = %313
  call void @llvm.lifetime.start.p0(i64 40, ptr %48) #10
  %315 = call noundef nonnull align 8 dereferenceable(44) ptr @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #10
  invoke void @_ZN6Partio16ParticleAccessorC2ERKNS_17ParticleAttributeE(ptr noundef nonnull align 8 dereferenceable(40) %48, ptr noundef nonnull align 8 dereferenceable(44) %315)
          to label %316 unwind label %321

316:                                              ; preds = %314
  invoke void @_ZNSt6vectorIN6Partio16ParticleAccessorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %32, ptr noundef nonnull align 8 dereferenceable(40) %48)
          to label %317 unwind label %321

317:                                              ; preds = %316
  call void @llvm.lifetime.end.p0(i64 40, ptr %48) #10
  call void @_ZN6Partio17ParticleAttributeD2Ev(ptr noundef nonnull align 8 dereferenceable(44) %37) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr %37) #10
  br label %318

318:                                              ; preds = %317
  %319 = load i32, ptr %36, align 4, !tbaa !15
  %320 = add nsw i32 %319, 1
  store i32 %320, ptr %36, align 4, !tbaa !15
  br label %173, !llvm.loop !30

321:                                              ; preds = %316, %314
  %322 = landingpad { ptr, i32 }
          cleanup
  %323 = extractvalue { ptr, i32 } %322, 0
  store ptr %323, ptr %14, align 8
  %324 = extractvalue { ptr, i32 } %322, 1
  store i32 %324, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 40, ptr %48) #10
  br label %325

325:                                              ; preds = %321, %306, %271, %216, %212
  call void @_ZN6Partio17ParticleAttributeD2Ev(ptr noundef nonnull align 8 dereferenceable(44) %37) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr %37) #10
  br label %326

326:                                              ; preds = %325, %195
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #10
  br label %592

327:                                              ; preds = %182
  %328 = load i8, ptr %34, align 1, !tbaa !9, !range !11, !noundef !12
  %329 = trunc i8 %328 to i1
  br i1 %329, label %339, label %330

330:                                              ; preds = %327
  %331 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.4)
          to label %332 unwind label %335

332:                                              ; preds = %330
  %333 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %331, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %334 unwind label %335

334:                                              ; preds = %332
  store i1 false, ptr %4, align 1
  store i32 1, ptr %19, align 4
  br label %591

335:                                              ; preds = %332, %330
  %336 = landingpad { ptr, i32 }
          cleanup
  %337 = extractvalue { ptr, i32 } %336, 0
  store ptr %337, ptr %14, align 8
  %338 = extractvalue { ptr, i32 } %336, 1
  store i32 %338, ptr %15, align 4
  br label %592

339:                                              ; preds = %327
  call void @llvm.lifetime.start.p0(i64 32, ptr %49) #10
  %340 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK6Partio13ParticlesData5beginEv(ptr dead_on_unwind writable sret(%"class.Partio::ParticleIterator") align 8 %49, ptr noundef nonnull align 8 dereferenceable(8) %340)
          to label %341 unwind label %347

341:                                              ; preds = %339
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #10
  store i64 0, ptr %50, align 8, !tbaa !31
  br label %342

342:                                              ; preds = %355, %341
  %343 = load i64, ptr %50, align 8, !tbaa !31
  %344 = call noundef i64 @_ZNKSt6vectorIN6Partio16ParticleAccessorESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #10
  %345 = icmp ult i64 %343, %344
  br i1 %345, label %351, label %346

346:                                              ; preds = %342
  store i32 12, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #10
  br label %362

347:                                              ; preds = %339
  %348 = landingpad { ptr, i32 }
          cleanup
  %349 = extractvalue { ptr, i32 } %348, 0
  store ptr %349, ptr %14, align 8
  %350 = extractvalue { ptr, i32 } %348, 1
  store i32 %350, ptr %15, align 4
  br label %590

351:                                              ; preds = %342
  %352 = load i64, ptr %50, align 8, !tbaa !31
  %353 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN6Partio16ParticleAccessorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %352) #10
  invoke void @_ZN6Partio16ParticleIteratorILb1EE11addAccessorERNS_16ParticleAccessorE(ptr noundef nonnull align 8 dereferenceable(32) %49, ptr noundef nonnull align 8 dereferenceable(40) %353)
          to label %354 unwind label %358

354:                                              ; preds = %351
  br label %355

355:                                              ; preds = %354
  %356 = load i64, ptr %50, align 8, !tbaa !31
  %357 = add i64 %356, 1
  store i64 %357, ptr %50, align 8, !tbaa !31
  br label %342, !llvm.loop !32

358:                                              ; preds = %351
  %359 = landingpad { ptr, i32 }
          cleanup
  %360 = extractvalue { ptr, i32 } %359, 0
  store ptr %360, ptr %14, align 8
  %361 = extractvalue { ptr, i32 } %359, 1
  store i32 %361, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #10
  br label %590

362:                                              ; preds = %346
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #10
  %363 = load i32, ptr %35, align 4, !tbaa !15
  %364 = sext i32 %363 to i64
  %365 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %364, i64 4)
  %366 = extractvalue { i64, i1 } %365, 1
  %367 = extractvalue { i64, i1 } %365, 0
  %368 = select i1 %366, i64 -1, i64 %367
  %369 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %368) #11
          to label %370 unwind label %377

370:                                              ; preds = %362
  store ptr %369, ptr %51, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %52) #10
  %371 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK6Partio13ParticlesData3endEv(ptr dead_on_unwind writable sret(%"class.Partio::ParticleIterator") align 8 %52, ptr noundef nonnull align 8 dereferenceable(8) %371)
          to label %372 unwind label %381

372:                                              ; preds = %370
  br label %373

373:                                              ; preds = %465, %372
  %374 = invoke noundef zeroext i1 @_ZN6Partio16ParticleIteratorILb1EEneERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %49, ptr noundef nonnull align 8 dereferenceable(32) %52)
          to label %375 unwind label %381

375:                                              ; preds = %373
  br i1 %374, label %385, label %376

376:                                              ; preds = %375
  store i32 15, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %52) #10
  br label %471

377:                                              ; preds = %362
  %378 = landingpad { ptr, i32 }
          cleanup
  %379 = extractvalue { ptr, i32 } %378, 0
  store ptr %379, ptr %14, align 8
  %380 = extractvalue { ptr, i32 } %378, 1
  store i32 %380, ptr %15, align 4
  br label %589

381:                                              ; preds = %463, %373, %370
  %382 = landingpad { ptr, i32 }
          cleanup
  %383 = extractvalue { ptr, i32 } %382, 0
  store ptr %383, ptr %14, align 8
  %384 = extractvalue { ptr, i32 } %382, 1
  store i32 %384, ptr %15, align 4
  br label %470

385:                                              ; preds = %375
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #10
  store i32 0, ptr %53, align 4, !tbaa !15
  br label %386

386:                                              ; preds = %446, %385
  %387 = load i32, ptr %53, align 4, !tbaa !15
  %388 = zext i32 %387 to i64
  %389 = call noundef i64 @_ZNKSt6vectorIN6Partio17ParticleAttributeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #10
  %390 = icmp ult i64 %388, %389
  br i1 %390, label %392, label %391

391:                                              ; preds = %386
  store i32 18, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #10
  br label %450

392:                                              ; preds = %386
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #10
  %393 = load i32, ptr %53, align 4, !tbaa !15
  %394 = zext i32 %393 to i64
  %395 = call noundef nonnull align 8 dereferenceable(44) ptr @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %394) #10
  store ptr %395, ptr %54, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #10
  %396 = load i32, ptr %53, align 4, !tbaa !15
  %397 = zext i32 %396 to i64
  %398 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN6Partio16ParticleAccessorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %397) #10
  store ptr %398, ptr %55, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #10
  %399 = load ptr, ptr %55, align 8, !tbaa !5
  %400 = invoke noundef ptr @_ZN6Partio16ParticleAccessor3rawIiNS_16ParticleIteratorILb1EEEEEPT_RKT0_(ptr noundef nonnull align 8 dereferenceable(40) %399, ptr noundef nonnull align 8 dereferenceable(32) %49)
          to label %401 unwind label %409

401:                                              ; preds = %392
  store ptr %400, ptr %56, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #10
  store i32 0, ptr %57, align 4, !tbaa !15
  br label %402

402:                                              ; preds = %438, %401
  %403 = load i32, ptr %57, align 4, !tbaa !15
  %404 = load ptr, ptr %54, align 8, !tbaa !5
  %405 = getelementptr inbounds %"class.Partio::ParticleAttribute", ptr %404, i32 0, i32 1
  %406 = load i32, ptr %405, align 4, !tbaa !24
  %407 = icmp slt i32 %403, %406
  br i1 %407, label %413, label %408

408:                                              ; preds = %402
  store i32 21, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #10
  br label %445

409:                                              ; preds = %392
  %410 = landingpad { ptr, i32 }
          cleanup
  %411 = extractvalue { ptr, i32 } %410, 0
  store ptr %411, ptr %14, align 8
  %412 = extractvalue { ptr, i32 } %410, 1
  store i32 %412, ptr %15, align 4
  br label %449

413:                                              ; preds = %402
  %414 = load ptr, ptr %56, align 8, !tbaa !5
  %415 = load i32, ptr %57, align 4, !tbaa !15
  %416 = sext i32 %415 to i64
  %417 = getelementptr inbounds i32, ptr %414, i64 %416
  %418 = load i32, ptr %417, align 4, !tbaa !15
  %419 = load ptr, ptr %51, align 8, !tbaa !5
  %420 = load i32, ptr %53, align 4, !tbaa !15
  %421 = zext i32 %420 to i64
  %422 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %421) #10
  %423 = load i32, ptr %422, align 4, !tbaa !15
  %424 = load i32, ptr %57, align 4, !tbaa !15
  %425 = add nsw i32 %423, %424
  %426 = sext i32 %425 to i64
  %427 = getelementptr inbounds i32, ptr %419, i64 %426
  store i32 %418, ptr %427, align 4, !tbaa !15
  %428 = load ptr, ptr %51, align 8, !tbaa !5
  %429 = load i32, ptr %53, align 4, !tbaa !15
  %430 = zext i32 %429 to i64
  %431 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %430) #10
  %432 = load i32, ptr %431, align 4, !tbaa !15
  %433 = load i32, ptr %57, align 4, !tbaa !15
  %434 = add nsw i32 %432, %433
  %435 = sext i32 %434 to i64
  %436 = getelementptr inbounds i32, ptr %428, i64 %435
  invoke void @_ZN6Partio6BIGEND4swapIiEEvRT_(ptr noundef nonnull align 4 dereferenceable(4) %436)
          to label %437 unwind label %441

437:                                              ; preds = %413
  br label %438

438:                                              ; preds = %437
  %439 = load i32, ptr %57, align 4, !tbaa !15
  %440 = add nsw i32 %439, 1
  store i32 %440, ptr %57, align 4, !tbaa !15
  br label %402, !llvm.loop !33

441:                                              ; preds = %413
  %442 = landingpad { ptr, i32 }
          cleanup
  %443 = extractvalue { ptr, i32 } %442, 0
  store ptr %443, ptr %14, align 8
  %444 = extractvalue { ptr, i32 } %442, 1
  store i32 %444, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #10
  br label %449

445:                                              ; preds = %408
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #10
  br label %446

446:                                              ; preds = %445
  %447 = load i32, ptr %53, align 4, !tbaa !15
  %448 = add i32 %447, 1
  store i32 %448, ptr %53, align 4, !tbaa !15
  br label %386, !llvm.loop !34

449:                                              ; preds = %441, %409
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #10
  br label %470

450:                                              ; preds = %391
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #10
  %451 = load ptr, ptr %51, align 8, !tbaa !5
  %452 = getelementptr inbounds i32, ptr %451, i64 3
  store ptr %452, ptr %58, align 8, !tbaa !5
  %453 = load ptr, ptr %58, align 8, !tbaa !5
  store float 1.000000e+00, ptr %453, align 4, !tbaa !35
  %454 = load ptr, ptr %58, align 8, !tbaa !5
  invoke void @_ZN6Partio6BIGEND4swapIfEEvRT_(ptr noundef nonnull align 4 dereferenceable(4) %454)
          to label %455 unwind label %466

455:                                              ; preds = %450
  %456 = call noundef ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  %457 = load ptr, ptr %51, align 8, !tbaa !5
  %458 = load i32, ptr %35, align 4, !tbaa !15
  %459 = sext i32 %458 to i64
  %460 = mul i64 %459, 4
  %461 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8) %456, ptr noundef %457, i64 noundef %460)
          to label %462 unwind label %466

462:                                              ; preds = %455
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #10
  br label %463

463:                                              ; preds = %462
  %464 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN6Partio16ParticleIteratorILb1EEppEv(ptr noundef nonnull align 8 dereferenceable(32) %49)
          to label %465 unwind label %381

465:                                              ; preds = %463
  br label %373, !llvm.loop !37

466:                                              ; preds = %455, %450
  %467 = landingpad { ptr, i32 }
          cleanup
  %468 = extractvalue { ptr, i32 } %467, 0
  store ptr %468, ptr %14, align 8
  %469 = extractvalue { ptr, i32 } %467, 1
  store i32 %469, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #10
  br label %470

470:                                              ; preds = %466, %449, %381
  call void @llvm.lifetime.end.p0(i64 32, ptr %52) #10
  br label %589

471:                                              ; preds = %376
  %472 = load ptr, ptr %51, align 8, !tbaa !5
  %473 = icmp eq ptr %472, null
  br i1 %473, label %475, label %474

474:                                              ; preds = %471
  call void @_ZdaPv(ptr noundef %472) #12
  br label %475

475:                                              ; preds = %474, %471
  %476 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %59) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %60) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %60) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %59, ptr noundef @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %60)
          to label %477 unwind label %501

477:                                              ; preds = %475
  invoke void @_ZN6Partio15writeHoudiniStrERSoRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %476, ptr noundef nonnull align 8 dereferenceable(32) %59)
          to label %478 unwind label %505

478:                                              ; preds = %477
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %59) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %60) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %60) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %59) #10
  %479 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  call void @llvm.lifetime.start.p0(i64 2, ptr %61) #10
  store i16 1, ptr %61, align 2, !tbaa !25
  invoke void @_ZN6Partio5writeINS_6BIGENDEsEEvRSoRKT0_(ptr noundef nonnull align 8 dereferenceable(8) %479, ptr noundef nonnull align 2 dereferenceable(2) %61)
          to label %480 unwind label %510

480:                                              ; preds = %478
  call void @llvm.lifetime.end.p0(i64 2, ptr %61) #10
  %481 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %62) #10
  store i32 4, ptr %62, align 4, !tbaa !15
  invoke void @_ZN6Partio5writeINS_6BIGENDEiEEvRSoRKT0_(ptr noundef nonnull align 8 dereferenceable(8) %481, ptr noundef nonnull align 4 dereferenceable(4) %62)
          to label %482 unwind label %514

482:                                              ; preds = %480
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #10
  %483 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %63) #10
  store i32 1, ptr %63, align 4, !tbaa !15
  invoke void @_ZN6Partio5writeINS_6BIGENDEiEEvRSoRKT0_(ptr noundef nonnull align 8 dereferenceable(8) %483, ptr noundef nonnull align 4 dereferenceable(4) %63)
          to label %484 unwind label %518

484:                                              ; preds = %482
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #10
  %485 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %64) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %65) #10
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %65) #10
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %64, ptr noundef @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %65)
          to label %486 unwind label %522

486:                                              ; preds = %484
  invoke void @_ZN6Partio15writeHoudiniStrERSoRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %485, ptr noundef nonnull align 8 dereferenceable(32) %64)
          to label %487 unwind label %526

487:                                              ; preds = %486
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %64) #10
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %65) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %65) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %64) #10
  %488 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %66) #10
  store i32 32768, ptr %66, align 4, !tbaa !15
  invoke void @_ZN6Partio5writeINS_6BIGENDEiEEvRSoRKT0_(ptr noundef nonnull align 8 dereferenceable(8) %488, ptr noundef nonnull align 4 dereferenceable(4) %66)
          to label %489 unwind label %531

489:                                              ; preds = %487
  call void @llvm.lifetime.end.p0(i64 4, ptr %66) #10
  %490 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %67) #10
  %491 = load i32, ptr %23, align 4, !tbaa !15
  store i32 %491, ptr %67, align 4, !tbaa !15
  invoke void @_ZN6Partio5writeINS_6BIGENDEiEEvRSoRKT0_(ptr noundef nonnull align 8 dereferenceable(8) %490, ptr noundef nonnull align 4 dereferenceable(4) %67)
          to label %492 unwind label %535

492:                                              ; preds = %489
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #10
  %493 = load i32, ptr %23, align 4, !tbaa !15
  %494 = icmp sgt i32 %493, 65536
  br i1 %494, label %495, label %551

495:                                              ; preds = %492
  call void @llvm.lifetime.start.p0(i64 4, ptr %68) #10
  store i32 0, ptr %68, align 4, !tbaa !15
  br label %496

496:                                              ; preds = %543, %495
  %497 = load i32, ptr %68, align 4, !tbaa !15
  %498 = load i32, ptr %23, align 4, !tbaa !15
  %499 = icmp slt i32 %497, %498
  br i1 %499, label %539, label %500

500:                                              ; preds = %496
  store i32 24, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %68) #10
  br label %550

501:                                              ; preds = %475
  %502 = landingpad { ptr, i32 }
          cleanup
  %503 = extractvalue { ptr, i32 } %502, 0
  store ptr %503, ptr %14, align 8
  %504 = extractvalue { ptr, i32 } %502, 1
  store i32 %504, ptr %15, align 4
  br label %509

505:                                              ; preds = %477
  %506 = landingpad { ptr, i32 }
          cleanup
  %507 = extractvalue { ptr, i32 } %506, 0
  store ptr %507, ptr %14, align 8
  %508 = extractvalue { ptr, i32 } %506, 1
  store i32 %508, ptr %15, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %59) #10
  br label %509

509:                                              ; preds = %505, %501
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %60) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %60) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %59) #10
  br label %589

510:                                              ; preds = %478
  %511 = landingpad { ptr, i32 }
          cleanup
  %512 = extractvalue { ptr, i32 } %511, 0
  store ptr %512, ptr %14, align 8
  %513 = extractvalue { ptr, i32 } %511, 1
  store i32 %513, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %61) #10
  br label %589

514:                                              ; preds = %480
  %515 = landingpad { ptr, i32 }
          cleanup
  %516 = extractvalue { ptr, i32 } %515, 0
  store ptr %516, ptr %14, align 8
  %517 = extractvalue { ptr, i32 } %515, 1
  store i32 %517, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #10
  br label %589

518:                                              ; preds = %482
  %519 = landingpad { ptr, i32 }
          cleanup
  %520 = extractvalue { ptr, i32 } %519, 0
  store ptr %520, ptr %14, align 8
  %521 = extractvalue { ptr, i32 } %519, 1
  store i32 %521, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #10
  br label %589

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

526:                                              ; preds = %486
  %527 = landingpad { ptr, i32 }
          cleanup
  %528 = extractvalue { ptr, i32 } %527, 0
  store ptr %528, ptr %14, align 8
  %529 = extractvalue { ptr, i32 } %527, 1
  store i32 %529, ptr %15, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %64) #10
  br label %530

530:                                              ; preds = %526, %522
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %65) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %65) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %64) #10
  br label %589

531:                                              ; preds = %487
  %532 = landingpad { ptr, i32 }
          cleanup
  %533 = extractvalue { ptr, i32 } %532, 0
  store ptr %533, ptr %14, align 8
  %534 = extractvalue { ptr, i32 } %532, 1
  store i32 %534, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %66) #10
  br label %589

535:                                              ; preds = %489
  %536 = landingpad { ptr, i32 }
          cleanup
  %537 = extractvalue { ptr, i32 } %536, 0
  store ptr %537, ptr %14, align 8
  %538 = extractvalue { ptr, i32 } %536, 1
  store i32 %538, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #10
  br label %589

539:                                              ; preds = %496
  %540 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %69) #10
  %541 = load i32, ptr %68, align 4, !tbaa !15
  store i32 %541, ptr %69, align 4, !tbaa !15
  invoke void @_ZN6Partio5writeINS_6BIGENDEiEEvRSoRKT0_(ptr noundef nonnull align 8 dereferenceable(8) %540, ptr noundef nonnull align 4 dereferenceable(4) %69)
          to label %542 unwind label %546

542:                                              ; preds = %539
  call void @llvm.lifetime.end.p0(i64 4, ptr %69) #10
  br label %543

543:                                              ; preds = %542
  %544 = load i32, ptr %68, align 4, !tbaa !15
  %545 = add nsw i32 %544, 1
  store i32 %545, ptr %68, align 4, !tbaa !15
  br label %496, !llvm.loop !38

546:                                              ; preds = %539
  %547 = landingpad { ptr, i32 }
          cleanup
  %548 = extractvalue { ptr, i32 } %547, 0
  store ptr %548, ptr %14, align 8
  %549 = extractvalue { ptr, i32 } %547, 1
  store i32 %549, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %69) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %68) #10
  br label %589

550:                                              ; preds = %500
  br label %570

551:                                              ; preds = %492
  call void @llvm.lifetime.start.p0(i64 4, ptr %70) #10
  store i32 0, ptr %70, align 4, !tbaa !15
  br label %552

552:                                              ; preds = %562, %551
  %553 = load i32, ptr %70, align 4, !tbaa !15
  %554 = load i32, ptr %23, align 4, !tbaa !15
  %555 = icmp slt i32 %553, %554
  br i1 %555, label %557, label %556

556:                                              ; preds = %552
  store i32 27, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #10
  br label %569

557:                                              ; preds = %552
  %558 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  call void @llvm.lifetime.start.p0(i64 2, ptr %71) #10
  %559 = load i32, ptr %70, align 4, !tbaa !15
  %560 = trunc i32 %559 to i16
  store i16 %560, ptr %71, align 2, !tbaa !25
  invoke void @_ZN6Partio5writeINS_6BIGENDEtEEvRSoRKT0_(ptr noundef nonnull align 8 dereferenceable(8) %558, ptr noundef nonnull align 2 dereferenceable(2) %71)
          to label %561 unwind label %565

561:                                              ; preds = %557
  call void @llvm.lifetime.end.p0(i64 2, ptr %71) #10
  br label %562

562:                                              ; preds = %561
  %563 = load i32, ptr %70, align 4, !tbaa !15
  %564 = add nsw i32 %563, 1
  store i32 %564, ptr %70, align 4, !tbaa !15
  br label %552, !llvm.loop !39

565:                                              ; preds = %557
  %566 = landingpad { ptr, i32 }
          cleanup
  %567 = extractvalue { ptr, i32 } %566, 0
  store ptr %567, ptr %14, align 8
  %568 = extractvalue { ptr, i32 } %566, 1
  store i32 %568, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %71) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #10
  br label %589

569:                                              ; preds = %556
  br label %570

570:                                              ; preds = %569, %550
  %571 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %72) #10
  store i32 0, ptr %72, align 4, !tbaa !15
  invoke void @_ZN6Partio5writeINS_6BIGENDEiEEvRSoRKT0_(ptr noundef nonnull align 8 dereferenceable(8) %571, ptr noundef nonnull align 4 dereferenceable(4) %72)
          to label %572 unwind label %577

572:                                              ; preds = %570
  call void @llvm.lifetime.end.p0(i64 4, ptr %72) #10
  %573 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %73) #10
  store i8 0, ptr %73, align 1, !tbaa !17
  invoke void @_ZN6Partio5writeINS_6BIGENDEcEEvRSoRKT0_(ptr noundef nonnull align 8 dereferenceable(8) %573, ptr noundef nonnull align 1 dereferenceable(1) %73)
          to label %574 unwind label %581

574:                                              ; preds = %572
  call void @llvm.lifetime.end.p0(i64 1, ptr %73) #10
  %575 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr %74) #10
  store i8 -1, ptr %74, align 1, !tbaa !17
  invoke void @_ZN6Partio5writeINS_6BIGENDEcEEvRSoRKT0_(ptr noundef nonnull align 8 dereferenceable(8) %575, ptr noundef nonnull align 1 dereferenceable(1) %74)
          to label %576 unwind label %585

576:                                              ; preds = %574
  call void @llvm.lifetime.end.p0(i64 1, ptr %74) #10
  store i1 true, ptr %4, align 1
  store i32 1, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %49) #10
  br label %591

577:                                              ; preds = %570
  %578 = landingpad { ptr, i32 }
          cleanup
  %579 = extractvalue { ptr, i32 } %578, 0
  store ptr %579, ptr %14, align 8
  %580 = extractvalue { ptr, i32 } %578, 1
  store i32 %580, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %72) #10
  br label %589

581:                                              ; preds = %572
  %582 = landingpad { ptr, i32 }
          cleanup
  %583 = extractvalue { ptr, i32 } %582, 0
  store ptr %583, ptr %14, align 8
  %584 = extractvalue { ptr, i32 } %582, 1
  store i32 %584, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %73) #10
  br label %589

585:                                              ; preds = %574
  %586 = landingpad { ptr, i32 }
          cleanup
  %587 = extractvalue { ptr, i32 } %586, 0
  store ptr %587, ptr %14, align 8
  %588 = extractvalue { ptr, i32 } %586, 1
  store i32 %588, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %74) #10
  br label %589

589:                                              ; preds = %585, %581, %577, %565, %546, %535, %531, %530, %518, %514, %510, %509, %470, %377
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #10
  br label %590

590:                                              ; preds = %589, %358, %347
  call void @llvm.lifetime.end.p0(i64 32, ptr %49) #10
  br label %592

591:                                              ; preds = %576, %334
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #10
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #10
  call void @_ZNSt6vectorIN6Partio16ParticleAccessorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #10
  call void @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #10
  br label %596

592:                                              ; preds = %590, %335, %326
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #10
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #10
  call void @_ZNSt6vectorIN6Partio16ParticleAccessorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #10
  call void @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #10
  br label %593

593:                                              ; preds = %592, %191
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #10
  br label %594

594:                                              ; preds = %593, %187
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #10
  br label %595

595:                                              ; preds = %594, %183
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #10
  br label %598

596:                                              ; preds = %591, %120
  call void @_ZNSt10unique_ptrISoSt14default_deleteISoEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #10
  %597 = load i1, ptr %4, align 1
  ret i1 %597

598:                                              ; preds = %595, %151
  call void @_ZNSt10unique_ptrISoSt14default_deleteISoEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  br label %599

599:                                              ; preds = %598, %150
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #10
  br label %600

600:                                              ; preds = %599
  %601 = load ptr, ptr %14, align 8
  %602 = load i32, ptr %15, align 4
  %603 = insertvalue { ptr, i32 } poison, ptr %601, 0
  %604 = insertvalue { ptr, i32 } %603, i32 %602, 1
  resume { ptr, i32 } %604
}

declare noundef ptr @_ZN6Partio8Gzip_OutERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #3

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZStorSt13_Ios_OpenmodeS_(i32 noundef, i32 noundef) #5

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef, i32 noundef) unnamed_addr #0 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #1

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6Partio17ParticleAttributeC2Ev(ptr noundef nonnull align 8 dereferenceable(44)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #5

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

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #8

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6Partio16ParticleAccessorC2ERKNS_17ParticleAttributeE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(44)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6Partio17ParticleAttributeD2Ev(ptr noundef nonnull align 8 dereferenceable(44)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK6Partio13ParticlesData5beginEv(ptr dead_on_unwind noalias writable sret(%"class.Partio::ParticleIterator") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #9

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK6Partio13ParticlesData3endEv(ptr dead_on_unwind noalias writable sret(%"class.Partio::ParticleIterator") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6Partio16ParticleIteratorILb1EEneERKS1_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN6Partio16ParticleAccessor3rawIiNS_16ParticleIteratorILb1EEEEEPT_RKT0_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(32)) #4 align 2

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

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

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

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #7

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6Partio5writeINS_6BIGENDEtEEvRSoRKT0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 2 dereferenceable(2)) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6Partio5writeINS_6BIGENDEcEEvRSoRKT0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) #1

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

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 = { 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 #5 = { 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 #6 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { nounwind }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { builtin nounwind }
attributes #13 = { noreturn 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, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!7, !7, i64 0}
!18 = !{!19, !20, i64 0}
!19 = !{!"_ZTSN6Partio17ParticleAttributeE", !20, i64 0, !16, i64 4, !21, i64 8, !16, i64 40}
!20 = !{!"_ZTSN6Partio21ParticleAttributeTypeE", !7, i64 0}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !22, i64 0, !23, i64 8, !7, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!23 = !{!"long", !7, i64 0}
!24 = !{!19, !16, i64 4}
!25 = !{!26, !26, i64 0}
!26 = !{!"short", !7, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
!30 = distinct !{!30, !28}
!31 = !{!23, !23, i64 0}
!32 = distinct !{!32, !28}
!33 = distinct !{!33, !28}
!34 = distinct !{!34, !28}
!35 = !{!36, !36, i64 0}
!36 = !{!"float", !7, i64 0}
!37 = distinct !{!37, !28}
!38 = distinct !{!38, !28}
!39 = distinct !{!39, !28}


; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Partio::ParticleAttribute, std::allocator<Partio::ParticleAttribute>>::_Vector_impl" }
%"struct.std::_Vector_base<Partio::ParticleAttribute, std::allocator<Partio::ParticleAttribute>>::_Vector_impl" = type { %"struct.std::_Vector_base<Partio::ParticleAttribute, std::allocator<Partio::ParticleAttribute>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Partio::ParticleAttribute, std::allocator<Partio::ParticleAttribute>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<Partio::ParticleAccessor, std::allocator<Partio::ParticleAccessor>>::_Vector_impl" }
%"struct.std::_Vector_base<Partio::ParticleAccessor, std::allocator<Partio::ParticleAccessor>>::_Vector_impl" = type { %"struct.std::_Vector_base<Partio::ParticleAccessor, std::allocator<Partio::ParticleAccessor>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Partio::ParticleAccessor, std::allocator<Partio::ParticleAccessor>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Partio::ParticleAttribute" = type <{ i32, i32, %"class.std::__cxx11::basic_string", i32, [4 x i8] }>
%"struct.Partio::ParticleAccessor" = type { i32, ptr, i32, i32, i32, ptr }
%"class.Partio::ParticleIterator" = type { ptr, i64, i64, ptr }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [28 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [88 x i8], align 1
@__PRETTY_FUNCTION__._ZN6Partio9writeBGEOEPKcRKNS_13ParticlesDataEb = external hidden unnamed_addr constant [72 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6Partio5writeINS_6BIGENDEsEEvRSoRKT0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 2 dereferenceable(2)) local_unnamed_addr #1

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6Partio9writeBGEOEPKcRKNS_13ParticlesDataEb(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i1 noundef zeroext %2) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::unique_ptr", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator", align 1
  %7 = alloca i32, align 4
  %8 = alloca i8, align 1
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %"class.std::vector", align 8
  %19 = alloca %"class.std::vector.6", align 8
  %20 = alloca %"class.std::vector.11", align 8
  %21 = alloca i32, align 4
  %22 = alloca %"class.Partio::ParticleAttribute", align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i16, align 2
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i16, align 2
  %29 = alloca i32, align 4
  %30 = alloca %"struct.Partio::ParticleAccessor", align 8
  %31 = alloca %"class.Partio::ParticleIterator", align 8
  %32 = alloca %"class.Partio::ParticleIterator", align 8
  %33 = alloca %"class.std::__cxx11::basic_string", align 8
  %34 = alloca %"class.std::allocator", align 1
  %35 = alloca i16, align 2
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca %"class.std::__cxx11::basic_string", align 8
  %39 = alloca %"class.std::allocator", align 1
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i16, align 2
  %44 = alloca i32, align 4
  %45 = alloca i8, align 1
  %46 = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  br i1 %2, label %47, label %51

47:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef %0, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %48 unwind label %68

48:                                               ; preds = %47
  %49 = call noundef i32 @_ZStorSt13_Ios_OpenmodeS_(i32 noundef 16, i32 noundef 4)
  %50 = invoke noundef ptr @_ZN6Partio8Gzip_OutERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(32) %5, i32 noundef %49)
          to label %.critedge unwind label %71

51:                                               ; preds = %3
  %52 = tail call noalias noundef nonnull dereferenceable(512) ptr @_Znwm(i64 noundef 512) #10
  %53 = tail call noundef i32 @_ZStorSt13_Ios_OpenmodeS_(i32 noundef 16, i32 noundef 4)
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %52, ptr noundef %0, i32 noundef %53)
          to label %54 unwind label %.thread141

54:                                               ; preds = %51
  call void @_ZNSt10unique_ptrISoSt14default_deleteISoEEC2IS1_vEEPSo(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull %52) #9
  br label %.critedge137

.critedge:                                        ; preds = %48
  call void @_ZNSt10unique_ptrISoSt14default_deleteISoEEC2IS1_vEEPSo(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef %50) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #9
  br label %.critedge137

.critedge137:                                     ; preds = %54, %.critedge
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  %56 = load ptr, ptr %55, align 8, !tbaa !5
  %57 = getelementptr i8, ptr %56, i64 -24
  %58 = load i64, ptr %57, align 8
  %59 = getelementptr inbounds i8, ptr %55, i64 %58
  %60 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %59)
          to label %61 unwind label %73

61:                                               ; preds = %.critedge137
  br i1 %60, label %62, label %75

62:                                               ; preds = %61
  %63 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str)
          to label %64 unwind label %73

64:                                               ; preds = %62
  %65 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef %0)
          to label %66 unwind label %73

66:                                               ; preds = %64
  %67 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %333 unwind label %73

68:                                               ; preds = %47
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %.critedge139

.thread141:                                       ; preds = %51
  %70 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %52, i64 noundef 512) #11
  br label %.critedge140

71:                                               ; preds = %48
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #9
  br label %.critedge139

.critedge139:                                     ; preds = %71, %68
  %.pn.pn.ph = phi { ptr, i32 } [ %69, %68 ], [ %72, %71 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #9
  br label %.critedge140

73:                                               ; preds = %66, %64, %62, %.critedge137
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %334

75:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #9
  store i32 1114072431, ptr %7, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #9
  store i8 86, ptr %8, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #9
  store i32 5, ptr %9, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #9
  %76 = load ptr, ptr %1, align 8, !tbaa !5
  %77 = getelementptr inbounds i8, ptr %76, i64 32
  %78 = load ptr, ptr %77, align 8
  %79 = invoke noundef i32 %78(ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %80 unwind label %101

80:                                               ; preds = %75
  store i32 %79, ptr %10, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #9
  store i32 1, ptr %11, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #9
  store i32 0, ptr %12, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #9
  store i32 0, ptr %13, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #9
  %81 = load ptr, ptr %1, align 8, !tbaa !5
  %82 = getelementptr inbounds i8, ptr %81, i64 24
  %83 = load ptr, ptr %82, align 8
  %84 = invoke noundef i32 %83(ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %85 unwind label %103

85:                                               ; preds = %80
  %86 = add nsw i32 %84, -1
  store i32 %86, ptr %14, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #9
  store i32 0, ptr %15, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #9
  store i32 1, ptr %16, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #9
  store i32 0, ptr %17, align 4, !tbaa !8
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  invoke void @_ZN6Partio5writeINS_6BIGENDEiciiiiEEvRSoRKT0_RKT1_RKT2_RKT3_RKT4_RKT5_(ptr noundef nonnull align 8 dereferenceable(8) %87, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 1 dereferenceable(1) %8, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %88 unwind label %105

88:                                               ; preds = %85
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  invoke void @_ZN6Partio5writeINS_6BIGENDEiiiiiEEvRSoRKT0_RKT1_RKT2_RKT3_RKT4_(ptr noundef nonnull align 8 dereferenceable(8) %89, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %90 unwind label %105

90:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #9
  call void @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #9
  call void @_ZNSt6vectorIN6Partio16ParticleAccessorESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %20) #9
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #9
  store i32 4, ptr %21, align 4, !tbaa !8
  %91 = getelementptr inbounds i8, ptr %22, i64 8
  %92 = getelementptr inbounds i8, ptr %22, i64 4
  br label %93

93:                                               ; preds = %182, %90
  %.0104 = phi i1 [ false, %90 ], [ %.1105, %182 ]
  %.0103 = phi i32 [ 0, %90 ], [ %183, %182 ]
  %94 = load ptr, ptr %1, align 8, !tbaa !5
  %95 = getelementptr inbounds i8, ptr %94, i64 24
  %96 = load ptr, ptr %95, align 8
  %97 = invoke noundef i32 %96(ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %98 unwind label %107

98:                                               ; preds = %93
  %99 = icmp slt i32 %.0103, %97
  br i1 %99, label %109, label %100

100:                                              ; preds = %98
  br i1 %.0104, label %193, label %187

101:                                              ; preds = %75
  %102 = landingpad { ptr, i32 }
          cleanup
  br label %332

103:                                              ; preds = %80
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %331

105:                                              ; preds = %88, %85
  %106 = landingpad { ptr, i32 }
          cleanup
  br label %330

107:                                              ; preds = %93
  %108 = landingpad { ptr, i32 }
          cleanup
  br label %329

109:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %22) #9
  call void @_ZN6Partio17ParticleAttributeC2Ev(ptr noundef nonnull align 8 dereferenceable(44) %22) #9
  %110 = load ptr, ptr %1, align 8, !tbaa !5
  %111 = getelementptr inbounds i8, ptr %110, i64 48
  %112 = load ptr, ptr %111, align 8
  %113 = invoke noundef zeroext i1 %112(ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %.0103, ptr noundef nonnull align 8 dereferenceable(44) %22)
          to label %114 unwind label %118

114:                                              ; preds = %109
  %115 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %91, ptr noundef nonnull @.str.1)
  br i1 %115, label %116, label %122

116:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #9
  store i32 0, ptr %23, align 4, !tbaa !8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %117 unwind label %120

117:                                              ; preds = %116
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #9
  br label %179

118:                                              ; preds = %179, %174, %122, %109
  %119 = landingpad { ptr, i32 }
          cleanup
  br label %186

120:                                              ; preds = %116
  %121 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #9
  br label %186

122:                                              ; preds = %114
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  invoke void @_ZN6Partio15writeHoudiniStrERSoRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %123, ptr noundef nonnull align 8 dereferenceable(32) %91)
          to label %124 unwind label %118

124:                                              ; preds = %122
  %125 = load i32, ptr %22, align 8, !tbaa !12
  %126 = icmp eq i32 %125, 4
  br i1 %126, label %127, label %154

127:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #9
  store i32 4, ptr %24, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %25) #9
  %128 = load i32, ptr %92, align 4, !tbaa !19
  %129 = trunc i32 %128 to i16
  store i16 %129, ptr %25, align 2, !tbaa !20
  %130 = load ptr, ptr %1, align 8, !tbaa !5
  %131 = getelementptr inbounds i8, ptr %130, i64 56
  %132 = load ptr, ptr %131, align 8
  %133 = invoke noundef nonnull align 8 dereferenceable(24) ptr %132(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(44) %22)
          to label %134 unwind label %140

134:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #9
  %135 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %133) #9
  %136 = trunc i64 %135 to i32
  store i32 %136, ptr %26, align 4, !tbaa !8
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  invoke void @_ZN6Partio5writeINS_6BIGENDEtiiEEvRSoRKT0_RKT1_RKT2_(ptr noundef nonnull align 8 dereferenceable(8) %137, ptr noundef nonnull align 2 dereferenceable(2) %25, ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %.preheader155 unwind label %142

.preheader155:                                    ; preds = %134
  %138 = load i32, ptr %26, align 4, !tbaa !8
  %139 = icmp sgt i32 %138, 0
  br i1 %139, label %.lr.ph169, label %._crit_edge170

._crit_edge170:                                   ; preds = %146, %.preheader155
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %25) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #9
  br label %174

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

142:                                              ; preds = %134
  %143 = landingpad { ptr, i32 }
          cleanup
  br label %152

.lr.ph169:                                        ; preds = %.preheader155, %146
  %indvars.iv = phi i64 [ %indvars.iv.next, %146 ], [ 0, %.preheader155 ]
  %144 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  %145 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %133, i64 noundef %indvars.iv) #9
  invoke void @_ZN6Partio15writeHoudiniStrERSoRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %144, ptr noundef nonnull align 8 dereferenceable(32) %145)
          to label %146 unwind label %150

146:                                              ; preds = %.lr.ph169
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %147 = load i32, ptr %26, align 4, !tbaa !8
  %148 = sext i32 %147 to i64
  %149 = icmp slt i64 %indvars.iv.next, %148
  br i1 %149, label %.lr.ph169, label %._crit_edge170, !llvm.loop !22

150:                                              ; preds = %.lr.ph169
  %151 = landingpad { ptr, i32 }
          cleanup
  br label %152

152:                                              ; preds = %150, %142
  %.pn123 = phi { ptr, i32 } [ %151, %150 ], [ %143, %142 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #9
  br label %153

153:                                              ; preds = %152, %140
  %.pn123.pn = phi { ptr, i32 } [ %.pn123, %152 ], [ %141, %140 ]
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %25) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #9
  br label %186

154:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #9
  store i32 0, ptr %27, align 4, !tbaa !8
  switch i32 %125, label %158 [
    i32 0, label %157
    i32 3, label %155
    i32 1, label %156
  ]

155:                                              ; preds = %154
  store i32 1, ptr %27, align 4, !tbaa !8
  br label %158

156:                                              ; preds = %154
  store i32 5, ptr %27, align 4, !tbaa !8
  br label %158

157:                                              ; preds = %154
  call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef 122, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6Partio9writeBGEOEPKcRKNS_13ParticlesDataEb) #12
  unreachable

158:                                              ; preds = %156, %155, %154
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %28) #9
  %159 = load i32, ptr %92, align 4, !tbaa !19
  %160 = trunc i32 %159 to i16
  store i16 %160, ptr %28, align 2, !tbaa !20
  %161 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  invoke void @_ZN6Partio5writeINS_6BIGENDEtiEEvRSoRKT0_RKT1_(ptr noundef nonnull align 8 dereferenceable(8) %161, ptr noundef nonnull align 2 dereferenceable(2) %28, ptr noundef nonnull align 4 dereferenceable(4) %27)
          to label %.preheader156 unwind label %164

.preheader156:                                    ; preds = %158
  %162 = load i32, ptr %92, align 4, !tbaa !19
  %163 = icmp sgt i32 %162, 0
  br i1 %163, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %167, %.preheader156
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %28) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #9
  br label %174

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

.lr.ph:                                           ; preds = %.preheader156, %167
  %.083167 = phi i32 [ %168, %167 ], [ 0, %.preheader156 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %29) #9
  store i32 0, ptr %29, align 4, !tbaa !8
  %166 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  invoke void @_ZN6Partio5writeINS_6BIGENDEiEEvRSoRKT0_(ptr noundef nonnull align 8 dereferenceable(8) %166, ptr noundef nonnull align 4 dereferenceable(4) %29)
          to label %167 unwind label %171

167:                                              ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #9
  %168 = add nuw nsw i32 %.083167, 1
  %169 = load i32, ptr %92, align 4, !tbaa !19
  %170 = icmp slt i32 %168, %169
  br i1 %170, label %.lr.ph, label %._crit_edge, !llvm.loop !24

171:                                              ; preds = %.lr.ph
  %172 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #9
  br label %173

173:                                              ; preds = %171, %164
  %.pn121 = phi { ptr, i32 } [ %172, %171 ], [ %165, %164 ]
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %28) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #9
  br label %186

174:                                              ; preds = %._crit_edge, %._crit_edge170
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %175 unwind label %118

175:                                              ; preds = %174
  %176 = load i32, ptr %92, align 4, !tbaa !19
  %177 = load i32, ptr %21, align 4, !tbaa !8
  %178 = add nsw i32 %177, %176
  store i32 %178, ptr %21, align 4, !tbaa !8
  br label %179

179:                                              ; preds = %175, %117
  %.1105 = phi i1 [ true, %117 ], [ %.0104, %175 ]
  invoke void @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(44) %22)
          to label %180 unwind label %118

180:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %30) #9
  %181 = call noundef nonnull align 8 dereferenceable(44) ptr @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  call void @_ZN6Partio16ParticleAccessorC2ERKNS_17ParticleAttributeE(ptr noundef nonnull align 8 dereferenceable(40) %30, ptr noundef nonnull align 8 dereferenceable(44) %181)
  invoke void @_ZNSt6vectorIN6Partio16ParticleAccessorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(40) %30)
          to label %182 unwind label %184

182:                                              ; preds = %180
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %30) #9
  call void @_ZN6Partio17ParticleAttributeD2Ev(ptr noundef nonnull align 8 dereferenceable(44) %22) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %22) #9
  %183 = add nuw nsw i32 %.0103, 1
  br label %93, !llvm.loop !25

184:                                              ; preds = %180
  %185 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %30) #9
  br label %186

186:                                              ; preds = %184, %173, %153, %120, %118
  %.pn126 = phi { ptr, i32 } [ %185, %184 ], [ %119, %118 ], [ %121, %120 ], [ %.pn123.pn, %153 ], [ %.pn121, %173 ]
  call void @_ZN6Partio17ParticleAttributeD2Ev(ptr noundef nonnull align 8 dereferenceable(44) %22) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %22) #9
  br label %329

187:                                              ; preds = %100
  %188 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.4)
          to label %189 unwind label %191

189:                                              ; preds = %187
  %190 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %188, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %328 unwind label %191

191:                                              ; preds = %189, %187
  %192 = landingpad { ptr, i32 }
          cleanup
  br label %329

193:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %31) #9
  invoke void @_ZNK6Partio13ParticlesData5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.Partio::ParticleIterator") align 8 %31, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %.preheader154 unwind label %201

.preheader154:                                    ; preds = %193
  %194 = call noundef i64 @_ZNKSt6vectorIN6Partio16ParticleAccessorESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #9
  %.not = icmp eq i64 %194, 0
  br i1 %.not, label %._crit_edge173, label %.lr.ph172

._crit_edge173:                                   ; preds = %204, %.preheader154
  %195 = load i32, ptr %21, align 4, !tbaa !8
  %196 = sext i32 %195 to i64
  %197 = icmp slt i32 %195, 0
  %198 = shl nsw i64 %196, 2
  %199 = select i1 %197, i64 -1, i64 %198
  %200 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %199) #10
          to label %210 unwind label %218

201:                                              ; preds = %193
  %202 = landingpad { ptr, i32 }
          cleanup
  br label %327

.lr.ph172:                                        ; preds = %.preheader154, %204
  %.082171 = phi i64 [ %205, %204 ], [ 0, %.preheader154 ]
  %203 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN6Partio16ParticleAccessorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %.082171) #9
  invoke void @_ZN6Partio16ParticleIteratorILb1EE11addAccessorERNS_16ParticleAccessorE(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull align 8 dereferenceable(40) %203)
          to label %204 unwind label %208

204:                                              ; preds = %.lr.ph172
  %205 = add nuw i64 %.082171, 1
  %206 = call noundef i64 @_ZNKSt6vectorIN6Partio16ParticleAccessorESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #9
  %207 = icmp ult i64 %205, %206
  br i1 %207, label %.lr.ph172, label %._crit_edge173, !llvm.loop !26

208:                                              ; preds = %.lr.ph172
  %209 = landingpad { ptr, i32 }
          cleanup
  br label %327

210:                                              ; preds = %._crit_edge173
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %32) #9
  invoke void @_ZNK6Partio13ParticlesData3endEv(ptr dead_on_unwind nonnull writable sret(%"class.Partio::ParticleIterator") align 8 %32, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %.preheader152 unwind label %.loopexit.split-lp

.preheader152:                                    ; preds = %210
  %211 = getelementptr inbounds i8, ptr %200, i64 12
  br label %212

212:                                              ; preds = %.preheader152, %256
  %213 = invoke noundef zeroext i1 @_ZN6Partio16ParticleIteratorILb1EEneERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull align 8 dereferenceable(32) %32)
          to label %214 unwind label %.loopexit153

214:                                              ; preds = %212
  br i1 %213, label %.preheader151, label %216

.preheader151:                                    ; preds = %214
  %215 = call noundef i64 @_ZNKSt6vectorIN6Partio17ParticleAttributeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  %.not185 = icmp eq i64 %215, 0
  br i1 %.not185, label %._crit_edge180, label %.lr.ph179

216:                                              ; preds = %214
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %32) #9
  call void @_ZdaPv(ptr noundef nonnull %200) #11
  %217 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %33) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %34) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %34)
          to label %261 unwind label %280

218:                                              ; preds = %._crit_edge173
  %219 = landingpad { ptr, i32 }
          cleanup
  br label %327

.loopexit153:                                     ; preds = %212, %256
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %260

.loopexit.split-lp:                               ; preds = %210
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %260

._crit_edge180:                                   ; preds = %._crit_edge177, %.preheader151
  store float 1.000000e+00, ptr %211, align 4, !tbaa !27
  invoke void @_ZN6Partio6BIGEND4swapIfEEvRT_(ptr noundef nonnull align 4 dereferenceable(4) %211)
          to label %250 unwind label %258

.lr.ph179:                                        ; preds = %.preheader151, %._crit_edge177
  %220 = phi i64 [ %228, %._crit_edge177 ], [ 0, %.preheader151 ]
  %.077178 = phi i32 [ %227, %._crit_edge177 ], [ 0, %.preheader151 ]
  %221 = call noundef nonnull align 8 dereferenceable(44) ptr @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %220) #9
  %222 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN6Partio16ParticleAccessorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %220) #9
  %223 = call noundef ptr @_ZN6Partio16ParticleAccessor3rawIiNS_16ParticleIteratorILb1EEEEEPT_RKT0_(ptr noundef nonnull align 8 dereferenceable(40) %222, ptr noundef nonnull align 8 dereferenceable(32) %31)
  %224 = getelementptr inbounds i8, ptr %221, i64 4
  %225 = load i32, ptr %224, align 4, !tbaa !19
  %226 = icmp sgt i32 %225, 0
  br i1 %226, label %.lr.ph176, label %._crit_edge177

._crit_edge177:                                   ; preds = %244, %.lr.ph179
  %227 = add i32 %.077178, 1
  %228 = zext i32 %227 to i64
  %229 = call noundef i64 @_ZNKSt6vectorIN6Partio17ParticleAttributeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  %230 = icmp ugt i64 %229, %228
  br i1 %230, label %.lr.ph179, label %._crit_edge180, !llvm.loop !29

.lr.ph176:                                        ; preds = %.lr.ph179, %244
  %indvars.iv198 = phi i64 [ %indvars.iv.next199, %244 ], [ 0, %.lr.ph179 ]
  %231 = getelementptr inbounds i32, ptr %223, i64 %indvars.iv198
  %232 = load i32, ptr %231, align 4, !tbaa !8
  %233 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %220) #9
  %234 = load i32, ptr %233, align 4, !tbaa !8
  %235 = trunc nuw nsw i64 %indvars.iv198 to i32
  %236 = add nsw i32 %234, %235
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds i32, ptr %200, i64 %237
  store i32 %232, ptr %238, align 4, !tbaa !8
  %239 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %220) #9
  %240 = load i32, ptr %239, align 4, !tbaa !8
  %241 = add nsw i32 %240, %235
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds i32, ptr %200, i64 %242
  invoke void @_ZN6Partio6BIGEND4swapIiEEvRT_(ptr noundef nonnull align 4 dereferenceable(4) %243)
          to label %244 unwind label %248

244:                                              ; preds = %.lr.ph176
  %indvars.iv.next199 = add nuw nsw i64 %indvars.iv198, 1
  %245 = load i32, ptr %224, align 4, !tbaa !19
  %246 = sext i32 %245 to i64
  %247 = icmp slt i64 %indvars.iv.next199, %246
  br i1 %247, label %.lr.ph176, label %._crit_edge177, !llvm.loop !30

248:                                              ; preds = %.lr.ph176
  %249 = landingpad { ptr, i32 }
          cleanup
  br label %260

250:                                              ; preds = %._crit_edge180
  %251 = call noundef ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  %252 = load i32, ptr %21, align 4, !tbaa !8
  %253 = sext i32 %252 to i64
  %254 = shl nsw i64 %253, 2
  %255 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5writeEPKcl(ptr noundef nonnull align 8 dereferenceable(8) %251, ptr noundef nonnull %200, i64 noundef %254)
          to label %256 unwind label %258

256:                                              ; preds = %250
  %257 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN6Partio16ParticleIteratorILb1EEppEv(ptr noundef nonnull align 8 dereferenceable(32) %31)
          to label %212 unwind label %.loopexit153, !llvm.loop !31

258:                                              ; preds = %250, %._crit_edge180
  %259 = landingpad { ptr, i32 }
          cleanup
  br label %260

260:                                              ; preds = %.loopexit153, %.loopexit.split-lp, %258, %248
  %.pn116 = phi { ptr, i32 } [ %249, %248 ], [ %259, %258 ], [ %lpad.loopexit, %.loopexit153 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %32) #9
  br label %327

261:                                              ; preds = %216
  invoke void @_ZN6Partio15writeHoudiniStrERSoRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %217, ptr noundef nonnull align 8 dereferenceable(32) %33)
          to label %262 unwind label %282

262:                                              ; preds = %261
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %34) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %33) #9
  %263 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %35) #9
  store i16 1, ptr %35, align 2, !tbaa !20
  invoke void @_ZN6Partio5writeINS_6BIGENDEsEEvRSoRKT0_(ptr noundef nonnull align 8 dereferenceable(8) %263, ptr noundef nonnull align 2 dereferenceable(2) %35)
          to label %264 unwind label %285

264:                                              ; preds = %262
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %35) #9
  %265 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %36) #9
  store i32 4, ptr %36, align 4, !tbaa !8
  invoke void @_ZN6Partio5writeINS_6BIGENDEiEEvRSoRKT0_(ptr noundef nonnull align 8 dereferenceable(8) %265, ptr noundef nonnull align 4 dereferenceable(4) %36)
          to label %266 unwind label %287

266:                                              ; preds = %264
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #9
  %267 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %37) #9
  store i32 1, ptr %37, align 4, !tbaa !8
  invoke void @_ZN6Partio5writeINS_6BIGENDEiEEvRSoRKT0_(ptr noundef nonnull align 8 dereferenceable(8) %267, ptr noundef nonnull align 4 dereferenceable(4) %37)
          to label %268 unwind label %289

268:                                              ; preds = %266
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %37) #9
  %269 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %38) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %39) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %39)
          to label %270 unwind label %291

270:                                              ; preds = %268
  invoke void @_ZN6Partio15writeHoudiniStrERSoRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %269, ptr noundef nonnull align 8 dereferenceable(32) %38)
          to label %271 unwind label %293

271:                                              ; preds = %270
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %39) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %38) #9
  %272 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %40) #9
  store i32 32768, ptr %40, align 4, !tbaa !8
  invoke void @_ZN6Partio5writeINS_6BIGENDEiEEvRSoRKT0_(ptr noundef nonnull align 8 dereferenceable(8) %272, ptr noundef nonnull align 4 dereferenceable(4) %40)
          to label %273 unwind label %296

273:                                              ; preds = %271
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %40) #9
  %274 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %41) #9
  %275 = load i32, ptr %10, align 4, !tbaa !8
  store i32 %275, ptr %41, align 4, !tbaa !8
  invoke void @_ZN6Partio5writeINS_6BIGENDEiEEvRSoRKT0_(ptr noundef nonnull align 8 dereferenceable(8) %274, ptr noundef nonnull align 4 dereferenceable(4) %41)
          to label %276 unwind label %298

276:                                              ; preds = %273
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %41) #9
  %277 = load i32, ptr %10, align 4, !tbaa !8
  %278 = icmp sgt i32 %277, 65536
  br i1 %278, label %.lr.ph184, label %.preheader149

.preheader149:                                    ; preds = %276
  %279 = icmp sgt i32 %277, 0
  br i1 %279, label %.lr.ph182, label %.loopexit

280:                                              ; preds = %216
  %281 = landingpad { ptr, i32 }
          cleanup
  br label %284

282:                                              ; preds = %261
  %283 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %33) #9
  br label %284

284:                                              ; preds = %282, %280
  %.pn112 = phi { ptr, i32 } [ %283, %282 ], [ %281, %280 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %34) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %34) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %33) #9
  br label %327

285:                                              ; preds = %262
  %286 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %35) #9
  br label %327

287:                                              ; preds = %264
  %288 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #9
  br label %327

289:                                              ; preds = %266
  %290 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %37) #9
  br label %327

291:                                              ; preds = %268
  %292 = landingpad { ptr, i32 }
          cleanup
  br label %295

293:                                              ; preds = %270
  %294 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #9
  br label %295

295:                                              ; preds = %293, %291
  %.pn114 = phi { ptr, i32 } [ %294, %293 ], [ %292, %291 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %39) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %38) #9
  br label %327

296:                                              ; preds = %271
  %297 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %40) #9
  br label %327

298:                                              ; preds = %273
  %299 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %41) #9
  br label %327

.lr.ph184:                                        ; preds = %276, %301
  %.064183 = phi i32 [ %302, %301 ], [ 0, %276 ]
  %300 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %42) #9
  store i32 %.064183, ptr %42, align 4, !tbaa !8
  invoke void @_ZN6Partio5writeINS_6BIGENDEiEEvRSoRKT0_(ptr noundef nonnull align 8 dereferenceable(8) %300, ptr noundef nonnull align 4 dereferenceable(4) %42)
          to label %301 unwind label %305

301:                                              ; preds = %.lr.ph184
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %42) #9
  %302 = add nuw nsw i32 %.064183, 1
  %303 = load i32, ptr %10, align 4, !tbaa !8
  %304 = icmp slt i32 %302, %303
  br i1 %304, label %.lr.ph184, label %.loopexit, !llvm.loop !32

305:                                              ; preds = %.lr.ph184
  %306 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %42) #9
  br label %327

.lr.ph182:                                        ; preds = %.preheader149, %309
  %.0181 = phi i32 [ %310, %309 ], [ 0, %.preheader149 ]
  %307 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %43) #9
  %308 = trunc i32 %.0181 to i16
  store i16 %308, ptr %43, align 2, !tbaa !20
  invoke void @_ZN6Partio5writeINS_6BIGENDEtEEvRSoRKT0_(ptr noundef nonnull align 8 dereferenceable(8) %307, ptr noundef nonnull align 2 dereferenceable(2) %43)
          to label %309 unwind label %313

309:                                              ; preds = %.lr.ph182
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %43) #9
  %310 = add nuw nsw i32 %.0181, 1
  %311 = load i32, ptr %10, align 4, !tbaa !8
  %312 = icmp slt i32 %310, %311
  br i1 %312, label %.lr.ph182, label %.loopexit, !llvm.loop !33

313:                                              ; preds = %.lr.ph182
  %314 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %43) #9
  br label %327

.loopexit:                                        ; preds = %309, %301, %.preheader149
  %315 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %44) #9
  store i32 0, ptr %44, align 4, !tbaa !8
  invoke void @_ZN6Partio5writeINS_6BIGENDEiEEvRSoRKT0_(ptr noundef nonnull align 8 dereferenceable(8) %315, ptr noundef nonnull align 4 dereferenceable(4) %44)
          to label %316 unwind label %321

316:                                              ; preds = %.loopexit
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %44) #9
  %317 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %45) #9
  store i8 0, ptr %45, align 1, !tbaa !11
  invoke void @_ZN6Partio5writeINS_6BIGENDEcEEvRSoRKT0_(ptr noundef nonnull align 8 dereferenceable(8) %317, ptr noundef nonnull align 1 dereferenceable(1) %45)
          to label %318 unwind label %323

318:                                              ; preds = %316
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %45) #9
  %319 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %46) #9
  store i8 -1, ptr %46, align 1, !tbaa !11
  invoke void @_ZN6Partio5writeINS_6BIGENDEcEEvRSoRKT0_(ptr noundef nonnull align 8 dereferenceable(8) %319, ptr noundef nonnull align 1 dereferenceable(1) %46)
          to label %320 unwind label %325

320:                                              ; preds = %318
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %46) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %31) #9
  br label %328

321:                                              ; preds = %.loopexit
  %322 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %44) #9
  br label %327

323:                                              ; preds = %316
  %324 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %45) #9
  br label %327

325:                                              ; preds = %318
  %326 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %46) #9
  br label %327

327:                                              ; preds = %218, %260, %284, %285, %287, %289, %295, %296, %298, %305, %313, %321, %323, %325, %208, %201
  %.pn119 = phi { ptr, i32 } [ %209, %208 ], [ %202, %201 ], [ %.pn116, %260 ], [ %306, %305 ], [ %326, %325 ], [ %324, %323 ], [ %322, %321 ], [ %314, %313 ], [ %299, %298 ], [ %297, %296 ], [ %.pn114, %295 ], [ %290, %289 ], [ %288, %287 ], [ %286, %285 ], [ %.pn112, %284 ], [ %219, %218 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %31) #9
  br label %329

328:                                              ; preds = %189, %320
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #9
  call void @_ZNSt6vectorIN6Partio16ParticleAccessorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #9
  call void @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  br label %333

329:                                              ; preds = %107, %186, %327, %191
  %.pn126.pn.pn = phi { ptr, i32 } [ %.pn119, %327 ], [ %192, %191 ], [ %.pn126, %186 ], [ %108, %107 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #9
  call void @_ZNSt6vectorIN6Partio16ParticleAccessorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #9
  call void @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #9
  br label %330

330:                                              ; preds = %329, %105
  %.pn126.pn.pn.pn = phi { ptr, i32 } [ %.pn126.pn.pn, %329 ], [ %106, %105 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #9
  br label %331

331:                                              ; preds = %330, %103
  %.pn126.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn126.pn.pn.pn, %330 ], [ %104, %103 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #9
  br label %332

332:                                              ; preds = %331, %101
  %.pn126.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn126.pn.pn.pn.pn, %331 ], [ %102, %101 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  br label %334

333:                                              ; preds = %66, %328
  %.1 = phi i1 [ %.0104, %328 ], [ false, %66 ]
  call void @_ZNSt10unique_ptrISoSt14default_deleteISoEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  ret i1 %.1

334:                                              ; preds = %332, %73
  %.pn133 = phi { ptr, i32 } [ %74, %73 ], [ %.pn126.pn.pn.pn.pn.pn, %332 ]
  call void @_ZNSt10unique_ptrISoSt14default_deleteISoEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  br label %.critedge140

.critedge140:                                     ; preds = %.thread141, %.critedge139, %334
  %.pn133.pn = phi { ptr, i32 } [ %.pn133, %334 ], [ %.pn.pn.ph, %.critedge139 ], [ %70, %.thread141 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  resume { ptr, i32 } %.pn133.pn
}

declare noundef ptr @_ZN6Partio8Gzip_OutERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #3

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZStorSt13_Ios_OpenmodeS_(i32 noundef, i32 noundef) local_unnamed_addr #5

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef, i32 noundef) unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #1

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6Partio17ParticleAttributeC2Ev(ptr noundef nonnull align 8 dereferenceable(44)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #5

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

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #8

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(44) ptr @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6Partio16ParticleAccessorC2ERKNS_17ParticleAttributeE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(44)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6Partio17ParticleAttributeD2Ev(ptr noundef nonnull align 8 dereferenceable(44)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK6Partio13ParticlesData5beginEv(ptr dead_on_unwind noalias writable sret(%"class.Partio::ParticleIterator") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK6Partio13ParticlesData3endEv(ptr dead_on_unwind noalias writable sret(%"class.Partio::ParticleIterator") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6Partio16ParticleIteratorILb1EEneERKS1_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN6Partio16ParticleAccessor3rawIiNS_16ParticleIteratorILb1EEEEEPT_RKT0_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt10unique_ptrISoSt14default_deleteISoEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6Partio5writeINS_6BIGENDEtEEvRSoRKT0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 2 dereferenceable(2)) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6Partio5writeINS_6BIGENDEcEEvRSoRKT0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1

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

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 = { 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 #5 = { 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 #6 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin nounwind }
attributes #12 = { noreturn 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!10, !10, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"_ZTSN6Partio17ParticleAttributeE", !14, i64 0, !9, i64 4, !15, i64 8, !9, i64 40}
!14 = !{!"_ZTSN6Partio21ParticleAttributeTypeE", !10, i64 0}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !18, i64 8, !10, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !17, i64 0}
!17 = !{!"any pointer", !10, i64 0}
!18 = !{!"long", !10, i64 0}
!19 = !{!13, !9, i64 4}
!20 = !{!21, !21, i64 0}
!21 = !{!"short", !10, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = distinct !{!25, !23}
!26 = distinct !{!26, !23}
!27 = !{!28, !28, i64 0}
!28 = !{!"float", !10, i64 0}
!29 = distinct !{!29, !23}
!30 = distinct !{!30, !23}
!31 = distinct !{!31, !23}
!32 = distinct !{!32, !23}
!33 = distinct !{!33, !23}


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