; LLVM IR from jrouwe/JoltPhysics :: JoltViewer/JoltViewer.ll (ZN3JPH21DebugRendererPlayback5ParseERNS_8StreamInE)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.std::pair.45" = type { i32, %"class.JPH::Ref.26" }
%"class.JPH::Ref.26" = type { ptr }
%"struct.std::pair" = type { %"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::Ref<JPH::RefTargetVirtual>>, JPH::UnorderedMapDetail<unsigned int, JPH::Ref<JPH::RefTargetVirtual>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::iterator", i8, [7 x i8] }
%"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::Ref<JPH::RefTargetVirtual>>, JPH::UnorderedMapDetail<unsigned int, JPH::Ref<JPH::RefTargetVirtual>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::iterator" = type { %"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::Ref<JPH::RefTargetVirtual>>, JPH::UnorderedMapDetail<unsigned int, JPH::Ref<JPH::RefTargetVirtual>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::IteratorBase.base", [4 x i8] }
%"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::Ref<JPH::RefTargetVirtual>>, JPH::UnorderedMapDetail<unsigned int, JPH::Ref<JPH::RefTargetVirtual>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::IteratorBase.base" = type <{ ptr, i32 }>
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Ref" = type { ptr }
%"class.JPH::DebugRenderer::LOD" = type <{ %"class.JPH::Ref.26", float, [4 x i8] }>
%"struct.JPH::DebugRendererRecorder::Frame" = type { %"class.JPH::Array", %"class.JPH::Array.17", %"class.JPH::Array.20", %"class.JPH::Array.23" }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::Array.17" = type { i64, i64, ptr }
%"class.JPH::Array.20" = type { i64, i64, ptr }
%"class.JPH::Array.23" = type { i64, i64, ptr }
%"struct.JPH::AssertLastParam" = type { i8 }
%"class.JPH::DebugRendererPlayback" = type { ptr, %"class.JPH::UnorderedMap.34", %"class.JPH::UnorderedMap.38", %"class.JPH::Array.42" }
%"class.JPH::UnorderedMap.34" = type { %"class.JPH::HashTable.base.36", [4 x i8] }
%"class.JPH::HashTable.base.36" = type <{ ptr, ptr, i32, i32, i32 }>
%"class.JPH::UnorderedMap.38" = type { %"class.JPH::HashTable.base.40", [4 x i8] }
%"class.JPH::HashTable.base.40" = type <{ ptr, ptr, i32, i32, i32 }>
%"class.JPH::Array.42" = type { i64, i64, ptr }
%"class.JPH::DebugRenderer::Geometry" = type { %"class.JPH::RefTarget", %"class.JPH::Array.27", %"class.JPH::AABox" }
%"class.JPH::RefTarget" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::Array.27" = type { i64, i64, ptr }
%"struct.JPH::DebugRendererRecorder::LineBlob" = type <{ %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Color", [12 x i8] }>
%"class.JPH::Color" = type { %union.anon.0 }
%union.anon.0 = type { i32 }
%"struct.JPH::DebugRendererRecorder::TriangleBlob" = type <{ %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Color", i32, [8 x i8] }>
%"struct.JPH::DebugRendererRecorder::TextBlob" = type <{ %"class.JPH::Vec3", %"class.std::__cxx11::basic_string", %"class.JPH::Color", float, [8 x i8] }>
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider", i64, %union.anon.33 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.33 = type { i64, [8 x i8] }
%"struct.JPH::DebugRendererRecorder::GeometryBlob" = type <{ %"class.JPH::Mat44", %"class.JPH::Color", i32, i32, i32, i32, [12 x i8] }>
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.30 }
%union.anon.30 = type { <4 x float> }

@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [92 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) #1

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH21DebugRendererPlayback5ParseERNS_8StreamInE(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef nonnull align 8 dereferenceable(8) %1) #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca %"struct.std::pair.45", align 8
  %11 = alloca %"class.JPH::Ref.26", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"struct.std::pair", align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca %"struct.std::pair.45", align 8
  %21 = alloca %"class.JPH::Ref.26", align 8
  %22 = alloca %"struct.std::pair", align 8
  %23 = alloca i32, align 4
  %24 = alloca %"class.JPH::AABox", align 16
  %25 = alloca %"class.JPH::Ref", align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca %"class.JPH::DebugRenderer::LOD", align 8
  %29 = alloca i32, align 4
  %30 = alloca %"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::Ref<JPH::RefTargetVirtual>>, JPH::UnorderedMapDetail<unsigned int, JPH::Ref<JPH::RefTargetVirtual>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::iterator", align 8
  %31 = alloca %"struct.JPH::DebugRendererRecorder::Frame", align 8
  %32 = alloca ptr, align 8
  %33 = alloca i32, align 4
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca i32, align 4
  %39 = alloca ptr, align 8
  %40 = alloca ptr, align 8
  %41 = alloca ptr, align 8
  %42 = alloca ptr, align 8
  %43 = alloca i32, align 4
  %44 = alloca ptr, align 8
  %45 = alloca ptr, align 8
  %46 = alloca ptr, align 8
  %47 = alloca ptr, align 8
  %48 = alloca i32, align 4
  %49 = alloca ptr, align 8
  %50 = alloca ptr, align 8
  %51 = alloca ptr, align 8
  %52 = alloca ptr, align 8
  %53 = alloca %"struct.JPH::AssertLastParam", align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %54 = load ptr, ptr %3, align 8
  br label %55

55:                                               ; preds = %430, %2
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #12
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3JPH8StreamIn4ReadINS_21DebugRendererRecorder8ECommandETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS5_(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef nonnull align 1 dereferenceable(1) %5)
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = load ptr, ptr %57, align 8, !tbaa !9
  %59 = getelementptr inbounds ptr, ptr %58, i64 3
  %60 = load ptr, ptr %59, align 8
  %61 = call noundef zeroext i1 %60(ptr noundef nonnull align 8 dereferenceable(8) %57)
  br i1 %61, label %68, label %62

62:                                               ; preds = %55
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = load ptr, ptr %63, align 8, !tbaa !9
  %65 = getelementptr inbounds ptr, ptr %64, i64 4
  %66 = load ptr, ptr %65, align 8
  %67 = call noundef zeroext i1 %66(ptr noundef nonnull align 8 dereferenceable(8) %63)
  br i1 %67, label %68, label %69

68:                                               ; preds = %62, %55
  store i32 1, ptr %6, align 4
  br label %428

69:                                               ; preds = %62
  %70 = load i8, ptr %5, align 1, !tbaa !11
  %71 = icmp eq i8 %70, 0
  br i1 %71, label %72, label %113

72:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #12
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %73, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #12
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %74, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #12
  %75 = load i32, ptr %8, align 4, !tbaa !13
  %76 = zext i32 %75 to i64
  %77 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %76, i64 108)
  %78 = extractvalue { i64, i1 } %77, 1
  %79 = extractvalue { i64, i1 } %77, 0
  %80 = select i1 %78, i64 -1, i64 %79
  %81 = call noalias noundef nonnull ptr @_Znam(i64 noundef %80) #13
  store ptr %81, ptr %9, align 8, !tbaa !5
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = load ptr, ptr %9, align 8, !tbaa !5
  %84 = load i32, ptr %8, align 4, !tbaa !13
  %85 = zext i32 %84 to i64
  %86 = mul i64 %85, 108
  %87 = load ptr, ptr %82, align 8, !tbaa !9
  %88 = getelementptr inbounds ptr, ptr %87, i64 2
  %89 = load ptr, ptr %88, align 8
  call void %89(ptr noundef nonnull align 8 dereferenceable(8) %82, ptr noundef %83, i64 noundef %86)
  %90 = getelementptr inbounds %"class.JPH::DebugRendererPlayback", ptr %54, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #12
  %91 = getelementptr inbounds %"class.JPH::DebugRendererPlayback", ptr %54, i32 0, i32 0
  %92 = load ptr, ptr %91, align 8, !tbaa !15
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = load i32, ptr %8, align 4, !tbaa !13
  %95 = load ptr, ptr %92, align 8, !tbaa !9
  %96 = getelementptr inbounds ptr, ptr %95, i64 4
  %97 = load ptr, ptr %96, align 8
  call void %97(ptr dead_on_unwind writable sret(%"class.JPH::Ref.26") align 8 %11, ptr noundef nonnull align 8 dereferenceable(320) %92, ptr noundef %93, i32 noundef %94)
  invoke void @_ZNSt4pairIjN3JPH3RefINS0_16RefTargetVirtualEEEEC2IRjS3_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS8_S9_EEEbE4typeELb1EEEOS8_OS9_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %98 unwind label %104

98:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #12
  invoke void @_ZN3JPH9HashTableIjSt4pairIjNS_3RefINS_16RefTargetVirtualEEEENS_18UnorderedMapDetailIjS4_EENS_4HashIjEESt8equal_toIjEE6insertERKS5_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %14, ptr noundef nonnull align 8 dereferenceable(28) %90, ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %99 unwind label %108

99:                                               ; preds = %98
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #12
  call void @_ZNSt4pairIjN3JPH3RefINS0_16RefTargetVirtualEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #12
  call void @_ZN3JPH3RefINS_16RefTargetVirtualEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #12
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  %101 = icmp eq ptr %100, null
  br i1 %101, label %103, label %102

102:                                              ; preds = %99
  call void @_ZdaPv(ptr noundef %100) #14
  br label %103

103:                                              ; preds = %102, %99
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #12
  br label %427

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

108:                                              ; preds = %98
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %12, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #12
  call void @_ZNSt4pairIjN3JPH3RefINS0_16RefTargetVirtualEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #12
  br label %112

112:                                              ; preds = %108, %104
  call void @_ZN3JPH3RefINS_16RefTargetVirtualEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #12
  br label %431

113:                                              ; preds = %69
  %114 = load i8, ptr %5, align 1, !tbaa !11
  %115 = icmp eq i8 %114, 1
  br i1 %115, label %116, label %179

116:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #12
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %117, ptr noundef nonnull align 4 dereferenceable(4) %15)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #12
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %118, ptr noundef nonnull align 4 dereferenceable(4) %16)
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #12
  %119 = load i32, ptr %16, align 4, !tbaa !13
  %120 = zext i32 %119 to i64
  %121 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %120, i64 36)
  %122 = extractvalue { i64, i1 } %121, 1
  %123 = extractvalue { i64, i1 } %121, 0
  %124 = select i1 %122, i64 -1, i64 %123
  %125 = call noalias noundef nonnull ptr @_Znam(i64 noundef %124) #13
  store ptr %125, ptr %17, align 8, !tbaa !5
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = load ptr, ptr %17, align 8, !tbaa !5
  %128 = load i32, ptr %16, align 4, !tbaa !13
  %129 = zext i32 %128 to i64
  %130 = mul i64 %129, 36
  %131 = load ptr, ptr %126, align 8, !tbaa !9
  %132 = getelementptr inbounds ptr, ptr %131, i64 2
  %133 = load ptr, ptr %132, align 8
  call void %133(ptr noundef nonnull align 8 dereferenceable(8) %126, ptr noundef %127, i64 noundef %130)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #12
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %134, ptr noundef nonnull align 4 dereferenceable(4) %18)
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #12
  %135 = load i32, ptr %18, align 4, !tbaa !13
  %136 = zext i32 %135 to i64
  %137 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %136, i64 4)
  %138 = extractvalue { i64, i1 } %137, 1
  %139 = extractvalue { i64, i1 } %137, 0
  %140 = select i1 %138, i64 -1, i64 %139
  %141 = call noalias noundef nonnull ptr @_Znam(i64 noundef %140) #13
  store ptr %141, ptr %19, align 8, !tbaa !5
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = load ptr, ptr %19, align 8, !tbaa !5
  %144 = load i32, ptr %18, align 4, !tbaa !13
  %145 = zext i32 %144 to i64
  %146 = mul i64 %145, 4
  %147 = load ptr, ptr %142, align 8, !tbaa !9
  %148 = getelementptr inbounds ptr, ptr %147, i64 2
  %149 = load ptr, ptr %148, align 8
  call void %149(ptr noundef nonnull align 8 dereferenceable(8) %142, ptr noundef %143, i64 noundef %146)
  %150 = getelementptr inbounds %"class.JPH::DebugRendererPlayback", ptr %54, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #12
  %151 = getelementptr inbounds %"class.JPH::DebugRendererPlayback", ptr %54, i32 0, i32 0
  %152 = load ptr, ptr %151, align 8, !tbaa !15
  %153 = load ptr, ptr %17, align 8, !tbaa !5
  %154 = load i32, ptr %16, align 4, !tbaa !13
  %155 = load ptr, ptr %19, align 8, !tbaa !5
  %156 = load i32, ptr %18, align 4, !tbaa !13
  %157 = load ptr, ptr %152, align 8, !tbaa !9
  %158 = getelementptr inbounds ptr, ptr %157, i64 5
  %159 = load ptr, ptr %158, align 8
  call void %159(ptr dead_on_unwind writable sret(%"class.JPH::Ref.26") align 8 %21, ptr noundef nonnull align 8 dereferenceable(320) %152, ptr noundef %153, i32 noundef %154, ptr noundef %155, i32 noundef %156)
  invoke void @_ZNSt4pairIjN3JPH3RefINS0_16RefTargetVirtualEEEEC2IRjS3_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS8_S9_EEEbE4typeELb1EEEOS8_OS9_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %160 unwind label %170

160:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #12
  invoke void @_ZN3JPH9HashTableIjSt4pairIjNS_3RefINS_16RefTargetVirtualEEEENS_18UnorderedMapDetailIjS4_EENS_4HashIjEESt8equal_toIjEE6insertERKS5_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %22, ptr noundef nonnull align 8 dereferenceable(28) %150, ptr noundef nonnull align 8 dereferenceable(16) %20)
          to label %161 unwind label %174

161:                                              ; preds = %160
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #12
  call void @_ZNSt4pairIjN3JPH3RefINS0_16RefTargetVirtualEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #12
  call void @_ZN3JPH3RefINS_16RefTargetVirtualEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #12
  %162 = load ptr, ptr %19, align 8, !tbaa !5
  %163 = icmp eq ptr %162, null
  br i1 %163, label %165, label %164

164:                                              ; preds = %161
  call void @_ZdaPv(ptr noundef %162) #14
  br label %165

165:                                              ; preds = %164, %161
  %166 = load ptr, ptr %17, align 8, !tbaa !5
  %167 = icmp eq ptr %166, null
  br i1 %167, label %169, label %168

168:                                              ; preds = %165
  call void @_ZdaPv(ptr noundef %166) #14
  br label %169

169:                                              ; preds = %168, %165
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #12
  br label %426

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

174:                                              ; preds = %160
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %12, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #12
  call void @_ZNSt4pairIjN3JPH3RefINS0_16RefTargetVirtualEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #12
  br label %178

178:                                              ; preds = %174, %170
  call void @_ZN3JPH3RefINS_16RefTargetVirtualEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #12
  br label %431

179:                                              ; preds = %113
  %180 = load i8, ptr %5, align 1, !tbaa !11
  %181 = icmp eq i8 %180, 2
  br i1 %181, label %182, label %259

182:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #12
  %183 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %183, ptr noundef nonnull align 4 dereferenceable(4) %23)
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #12
  call void @_ZN3JPH5AABoxC2Ev(ptr noundef nonnull align 16 dereferenceable(32) %24)
  %184 = load ptr, ptr %4, align 8, !tbaa !5
  %185 = getelementptr inbounds %"class.JPH::AABox", ptr %24, i32 0, i32 0
  call void @_ZN3JPH8StreamIn4ReadERNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(8) %184, ptr noundef nonnull align 16 dereferenceable(16) %185)
  %186 = load ptr, ptr %4, align 8, !tbaa !5
  %187 = getelementptr inbounds %"class.JPH::AABox", ptr %24, i32 0, i32 1
  call void @_ZN3JPH8StreamIn4ReadERNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(8) %186, ptr noundef nonnull align 16 dereferenceable(16) %187)
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #12
  %188 = call noundef ptr @_ZN3JPH13DebugRenderer8GeometrynwEm(i64 noundef 64)
  invoke void @_ZN3JPH13DebugRenderer8GeometryC2ERKNS_5AABoxE(ptr noundef nonnull align 16 dereferenceable(64) %188, ptr noundef nonnull align 16 dereferenceable(32) %24)
          to label %189 unwind label %202

189:                                              ; preds = %182
  call void @_ZN3JPH3RefINS_13DebugRenderer8GeometryEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef %188)
  %190 = getelementptr inbounds %"class.JPH::DebugRendererPlayback", ptr %54, i32 0, i32 2
  %191 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH12UnorderedMapIjNS_3RefINS_13DebugRenderer8GeometryEEENS_4HashIjEESt8equal_toIjEEixERKj(ptr noundef nonnull align 8 dereferenceable(28) %190, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %192 unwind label %206

192:                                              ; preds = %189
  %193 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_13DebugRenderer8GeometryEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(8) %191, ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %194 unwind label %206

194:                                              ; preds = %192
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #12
  %195 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %195, ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %196 unwind label %210

196:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #12
  store i32 0, ptr %27, align 4, !tbaa !13
  br label %197

197:                                              ; preds = %233, %196
  %198 = load i32, ptr %27, align 4, !tbaa !13
  %199 = load i32, ptr %26, align 4, !tbaa !13
  %200 = icmp ult i32 %198, %199
  br i1 %200, label %214, label %201

201:                                              ; preds = %197
  store i32 4, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #12
  br label %255

202:                                              ; preds = %182
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %12, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %13, align 4
  call void @_ZN3JPH13DebugRenderer8GeometrydlEPv(ptr noundef %188) #12
  br label %258

206:                                              ; preds = %192, %189
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %12, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %13, align 4
  br label %257

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

214:                                              ; preds = %197
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #12
  invoke void @_ZN3JPH13DebugRenderer3LODC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %28)
          to label %215 unwind label %236

215:                                              ; preds = %214
  %216 = load ptr, ptr %4, align 8, !tbaa !5
  %217 = getelementptr inbounds %"class.JPH::DebugRenderer::LOD", ptr %28, i32 0, i32 1
  invoke void @_ZN3JPH8StreamIn4ReadIfTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %216, ptr noundef nonnull align 4 dereferenceable(4) %217)
          to label %218 unwind label %240

218:                                              ; preds = %215
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #12
  %219 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %219, ptr noundef nonnull align 4 dereferenceable(4) %29)
          to label %220 unwind label %244

220:                                              ; preds = %218
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #12
  %221 = getelementptr inbounds %"class.JPH::DebugRendererPlayback", ptr %54, i32 0, i32 1
  invoke void @_ZN3JPH12UnorderedMapIjNS_3RefINS_16RefTargetVirtualEEENS_4HashIjEESt8equal_toIjEE4findERKj(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::Ref<JPH::RefTargetVirtual>>, JPH::UnorderedMapDetail<unsigned int, JPH::Ref<JPH::RefTargetVirtual>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::iterator") align 8 %30, ptr noundef nonnull align 8 dereferenceable(28) %221, ptr noundef nonnull align 4 dereferenceable(4) %29)
          to label %222 unwind label %248

222:                                              ; preds = %220
  %223 = invoke noundef ptr @_ZN3JPH9HashTableIjSt4pairIjNS_3RefINS_16RefTargetVirtualEEEENS_18UnorderedMapDetailIjS4_EENS_4HashIjEESt8equal_toIjEE8iteratorptEv(ptr noundef nonnull align 8 dereferenceable(12) %30)
          to label %224 unwind label %248

224:                                              ; preds = %222
  %225 = getelementptr inbounds %"struct.std::pair.45", ptr %223, i32 0, i32 1
  %226 = getelementptr inbounds %"class.JPH::DebugRenderer::LOD", ptr %28, i32 0, i32 0
  %227 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_16RefTargetVirtualEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(8) %226, ptr noundef nonnull align 8 dereferenceable(8) %225)
          to label %228 unwind label %248

228:                                              ; preds = %224
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #12
  %229 = invoke noundef ptr @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %230 unwind label %244

230:                                              ; preds = %228
  %231 = getelementptr inbounds %"class.JPH::DebugRenderer::Geometry", ptr %229, i32 0, i32 1
  invoke void @_ZN3JPH5ArrayINS_13DebugRenderer3LODENS_12STLAllocatorIS2_EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %231, ptr noundef nonnull align 8 dereferenceable(12) %28)
          to label %232 unwind label %244

232:                                              ; preds = %230
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #12
  call void @_ZN3JPH13DebugRenderer3LODD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %28) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #12
  br label %233

233:                                              ; preds = %232
  %234 = load i32, ptr %27, align 4, !tbaa !13
  %235 = add i32 %234, 1
  store i32 %235, ptr %27, align 4, !tbaa !13
  br label %197, !llvm.loop !23

236:                                              ; preds = %214
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %12, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %13, align 4
  br label %254

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

244:                                              ; preds = %230, %228, %218
  %245 = landingpad { ptr, i32 }
          cleanup
  %246 = extractvalue { ptr, i32 } %245, 0
  store ptr %246, ptr %12, align 8
  %247 = extractvalue { ptr, i32 } %245, 1
  store i32 %247, ptr %13, align 4
  br label %252

248:                                              ; preds = %224, %222, %220
  %249 = landingpad { ptr, i32 }
          cleanup
  %250 = extractvalue { ptr, i32 } %249, 0
  store ptr %250, ptr %12, align 8
  %251 = extractvalue { ptr, i32 } %249, 1
  store i32 %251, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #12
  br label %252

252:                                              ; preds = %248, %244
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #12
  br label %253

253:                                              ; preds = %252, %240
  call void @_ZN3JPH13DebugRenderer3LODD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %28) #12
  br label %254

254:                                              ; preds = %253, %236
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #12
  br label %256

255:                                              ; preds = %201
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #12
  call void @_ZN3JPH3RefINS_13DebugRenderer8GeometryEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #12
  br label %425

256:                                              ; preds = %254, %210
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #12
  br label %257

257:                                              ; preds = %256, %206
  call void @_ZN3JPH3RefINS_13DebugRenderer8GeometryEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #12
  br label %258

258:                                              ; preds = %257, %202
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #12
  br label %431

259:                                              ; preds = %179
  %260 = load i8, ptr %5, align 1, !tbaa !11
  %261 = icmp eq i8 %260, 3
  br i1 %261, label %262, label %417

262:                                              ; preds = %259
  %263 = getelementptr inbounds %"class.JPH::DebugRendererPlayback", ptr %54, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 96, ptr %31) #12
  %264 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::Frame", ptr %31, i32 0, i32 0
  call void @llvm.memset.p0.i64(ptr align 8 %264, i8 0, i64 24, i1 false)
  call void @_ZN3JPH5ArrayINS_21DebugRendererRecorder8LineBlobENS_12STLAllocatorIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %264) #12
  %265 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::Frame", ptr %31, i32 0, i32 1
  call void @llvm.memset.p0.i64(ptr align 8 %265, i8 0, i64 24, i1 false)
  call void @_ZN3JPH5ArrayINS_21DebugRendererRecorder12TriangleBlobENS_12STLAllocatorIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %265) #12
  %266 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::Frame", ptr %31, i32 0, i32 2
  call void @llvm.memset.p0.i64(ptr align 8 %266, i8 0, i64 24, i1 false)
  call void @_ZN3JPH5ArrayINS_21DebugRendererRecorder8TextBlobENS_12STLAllocatorIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %266) #12
  %267 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::Frame", ptr %31, i32 0, i32 3
  call void @llvm.memset.p0.i64(ptr align 8 %267, i8 0, i64 24, i1 false)
  call void @_ZN3JPH5ArrayINS_21DebugRendererRecorder12GeometryBlobENS_12STLAllocatorIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %267) #12
  invoke void @_ZN3JPH5ArrayINS_21DebugRendererRecorder5FrameENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %263, ptr noundef nonnull align 8 dereferenceable(96) %31)
          to label %268 unwind label %287

268:                                              ; preds = %262
  call void @_ZN3JPH21DebugRendererRecorder5FrameD2Ev(ptr noundef nonnull align 8 dereferenceable(96) %31) #12
  call void @llvm.lifetime.end.p0(i64 96, ptr %31) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #12
  %269 = getelementptr inbounds %"class.JPH::DebugRendererPlayback", ptr %54, i32 0, i32 3
  %270 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZN3JPH5ArrayINS_21DebugRendererRecorder5FrameENS_12STLAllocatorIS2_EEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %269)
  store ptr %270, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #12
  store i32 0, ptr %33, align 4, !tbaa !13
  %271 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %271, ptr noundef nonnull align 4 dereferenceable(4) %33)
  %272 = load ptr, ptr %32, align 8, !tbaa !5
  %273 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::Frame", ptr %272, i32 0, i32 0
  %274 = load i32, ptr %33, align 4, !tbaa !13
  %275 = zext i32 %274 to i64
  call void @_ZN3JPH5ArrayINS_21DebugRendererRecorder8LineBlobENS_12STLAllocatorIS2_EEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %273, i64 noundef %275)
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #12
  %276 = load ptr, ptr %32, align 8, !tbaa !5
  %277 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::Frame", ptr %276, i32 0, i32 0
  store ptr %277, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #12
  %278 = load ptr, ptr %34, align 8, !tbaa !5
  %279 = call noundef ptr @_ZN3JPH5ArrayINS_21DebugRendererRecorder8LineBlobENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %278)
  store ptr %279, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #12
  %280 = load ptr, ptr %34, align 8, !tbaa !5
  %281 = call noundef ptr @_ZN3JPH5ArrayINS_21DebugRendererRecorder8LineBlobENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %280)
  store ptr %281, ptr %36, align 8, !tbaa !5
  br label %282

282:                                              ; preds = %302, %268
  %283 = load ptr, ptr %35, align 8, !tbaa !5
  %284 = load ptr, ptr %36, align 8, !tbaa !5
  %285 = icmp ne ptr %283, %284
  br i1 %285, label %291, label %286

286:                                              ; preds = %282
  store i32 7, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #12
  br label %305

287:                                              ; preds = %262
  %288 = landingpad { ptr, i32 }
          cleanup
  %289 = extractvalue { ptr, i32 } %288, 0
  store ptr %289, ptr %12, align 8
  %290 = extractvalue { ptr, i32 } %288, 1
  store i32 %290, ptr %13, align 4
  call void @_ZN3JPH21DebugRendererRecorder5FrameD2Ev(ptr noundef nonnull align 8 dereferenceable(96) %31) #12
  call void @llvm.lifetime.end.p0(i64 96, ptr %31) #12
  br label %431

291:                                              ; preds = %282
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #12
  %292 = load ptr, ptr %35, align 8, !tbaa !5
  store ptr %292, ptr %37, align 8, !tbaa !5
  %293 = load ptr, ptr %4, align 8, !tbaa !5
  %294 = load ptr, ptr %37, align 8, !tbaa !5
  %295 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::LineBlob", ptr %294, i32 0, i32 0
  call void @_ZN3JPH8StreamIn4ReadERNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(8) %293, ptr noundef nonnull align 16 dereferenceable(16) %295)
  %296 = load ptr, ptr %4, align 8, !tbaa !5
  %297 = load ptr, ptr %37, align 8, !tbaa !5
  %298 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::LineBlob", ptr %297, i32 0, i32 1
  call void @_ZN3JPH8StreamIn4ReadERNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(8) %296, ptr noundef nonnull align 16 dereferenceable(16) %298)
  %299 = load ptr, ptr %4, align 8, !tbaa !5
  %300 = load ptr, ptr %37, align 8, !tbaa !5
  %301 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::LineBlob", ptr %300, i32 0, i32 2
  call void @_ZN3JPH8StreamIn4ReadINS_5ColorETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8) %299, ptr noundef nonnull align 4 dereferenceable(4) %301)
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #12
  br label %302

302:                                              ; preds = %291
  %303 = load ptr, ptr %35, align 8, !tbaa !5
  %304 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::LineBlob", ptr %303, i32 1
  store ptr %304, ptr %35, align 8, !tbaa !5
  br label %282

305:                                              ; preds = %286
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #12
  store i32 0, ptr %38, align 4, !tbaa !13
  %306 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %306, ptr noundef nonnull align 4 dereferenceable(4) %38)
  %307 = load ptr, ptr %32, align 8, !tbaa !5
  %308 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::Frame", ptr %307, i32 0, i32 1
  %309 = load i32, ptr %38, align 4, !tbaa !13
  %310 = zext i32 %309 to i64
  call void @_ZN3JPH5ArrayINS_21DebugRendererRecorder12TriangleBlobENS_12STLAllocatorIS2_EEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %308, i64 noundef %310)
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #12
  %311 = load ptr, ptr %32, align 8, !tbaa !5
  %312 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::Frame", ptr %311, i32 0, i32 1
  store ptr %312, ptr %39, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #12
  %313 = load ptr, ptr %39, align 8, !tbaa !5
  %314 = call noundef ptr @_ZN3JPH5ArrayINS_21DebugRendererRecorder12TriangleBlobENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %313)
  store ptr %314, ptr %40, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #12
  %315 = load ptr, ptr %39, align 8, !tbaa !5
  %316 = call noundef ptr @_ZN3JPH5ArrayINS_21DebugRendererRecorder12TriangleBlobENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %315)
  store ptr %316, ptr %41, align 8, !tbaa !5
  br label %317

317:                                              ; preds = %339, %305
  %318 = load ptr, ptr %40, align 8, !tbaa !5
  %319 = load ptr, ptr %41, align 8, !tbaa !5
  %320 = icmp ne ptr %318, %319
  br i1 %320, label %322, label %321

321:                                              ; preds = %317
  store i32 9, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #12
  br label %342

322:                                              ; preds = %317
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #12
  %323 = load ptr, ptr %40, align 8, !tbaa !5
  store ptr %323, ptr %42, align 8, !tbaa !5
  %324 = load ptr, ptr %4, align 8, !tbaa !5
  %325 = load ptr, ptr %42, align 8, !tbaa !5
  %326 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::TriangleBlob", ptr %325, i32 0, i32 0
  call void @_ZN3JPH8StreamIn4ReadERNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(8) %324, ptr noundef nonnull align 16 dereferenceable(16) %326)
  %327 = load ptr, ptr %4, align 8, !tbaa !5
  %328 = load ptr, ptr %42, align 8, !tbaa !5
  %329 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::TriangleBlob", ptr %328, i32 0, i32 1
  call void @_ZN3JPH8StreamIn4ReadERNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(8) %327, ptr noundef nonnull align 16 dereferenceable(16) %329)
  %330 = load ptr, ptr %4, align 8, !tbaa !5
  %331 = load ptr, ptr %42, align 8, !tbaa !5
  %332 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::TriangleBlob", ptr %331, i32 0, i32 2
  call void @_ZN3JPH8StreamIn4ReadERNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(8) %330, ptr noundef nonnull align 16 dereferenceable(16) %332)
  %333 = load ptr, ptr %4, align 8, !tbaa !5
  %334 = load ptr, ptr %42, align 8, !tbaa !5
  %335 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::TriangleBlob", ptr %334, i32 0, i32 3
  call void @_ZN3JPH8StreamIn4ReadINS_5ColorETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8) %333, ptr noundef nonnull align 4 dereferenceable(4) %335)
  %336 = load ptr, ptr %4, align 8, !tbaa !5
  %337 = load ptr, ptr %42, align 8, !tbaa !5
  %338 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::TriangleBlob", ptr %337, i32 0, i32 4
  call void @_ZN3JPH8StreamIn4ReadINS_13DebugRenderer11ECastShadowETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS5_(ptr noundef nonnull align 8 dereferenceable(8) %336, ptr noundef nonnull align 4 dereferenceable(4) %338)
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #12
  br label %339

339:                                              ; preds = %322
  %340 = load ptr, ptr %40, align 8, !tbaa !5
  %341 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::TriangleBlob", ptr %340, i32 1
  store ptr %341, ptr %40, align 8, !tbaa !5
  br label %317

342:                                              ; preds = %321
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #12
  store i32 0, ptr %43, align 4, !tbaa !13
  %343 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %343, ptr noundef nonnull align 4 dereferenceable(4) %43)
  %344 = load ptr, ptr %32, align 8, !tbaa !5
  %345 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::Frame", ptr %344, i32 0, i32 2
  %346 = load i32, ptr %43, align 4, !tbaa !13
  %347 = zext i32 %346 to i64
  call void @_ZN3JPH5ArrayINS_21DebugRendererRecorder8TextBlobENS_12STLAllocatorIS2_EEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %345, i64 noundef %347)
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #12
  %348 = load ptr, ptr %32, align 8, !tbaa !5
  %349 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::Frame", ptr %348, i32 0, i32 2
  store ptr %349, ptr %44, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #12
  %350 = load ptr, ptr %44, align 8, !tbaa !5
  %351 = call noundef ptr @_ZN3JPH5ArrayINS_21DebugRendererRecorder8TextBlobENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %350)
  store ptr %351, ptr %45, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #12
  %352 = load ptr, ptr %44, align 8, !tbaa !5
  %353 = call noundef ptr @_ZN3JPH5ArrayINS_21DebugRendererRecorder8TextBlobENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %352)
  store ptr %353, ptr %46, align 8, !tbaa !5
  br label %354

354:                                              ; preds = %373, %342
  %355 = load ptr, ptr %45, align 8, !tbaa !5
  %356 = load ptr, ptr %46, align 8, !tbaa !5
  %357 = icmp ne ptr %355, %356
  br i1 %357, label %359, label %358

358:                                              ; preds = %354
  store i32 11, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #12
  br label %376

359:                                              ; preds = %354
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #12
  %360 = load ptr, ptr %45, align 8, !tbaa !5
  store ptr %360, ptr %47, align 8, !tbaa !5
  %361 = load ptr, ptr %4, align 8, !tbaa !5
  %362 = load ptr, ptr %47, align 8, !tbaa !5
  %363 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::TextBlob", ptr %362, i32 0, i32 0
  call void @_ZN3JPH8StreamIn4ReadERNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(8) %361, ptr noundef nonnull align 16 dereferenceable(16) %363)
  %364 = load ptr, ptr %4, align 8, !tbaa !5
  %365 = load ptr, ptr %47, align 8, !tbaa !5
  %366 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::TextBlob", ptr %365, i32 0, i32 1
  call void @_ZN3JPH8StreamIn4ReadIcSt11char_traitsIcENS_12STLAllocatorIcEEEEvRNSt7__cxx1112basic_stringIT_T0_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %364, ptr noundef nonnull align 8 dereferenceable(32) %366)
  %367 = load ptr, ptr %4, align 8, !tbaa !5
  %368 = load ptr, ptr %47, align 8, !tbaa !5
  %369 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::TextBlob", ptr %368, i32 0, i32 2
  call void @_ZN3JPH8StreamIn4ReadINS_5ColorETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8) %367, ptr noundef nonnull align 4 dereferenceable(4) %369)
  %370 = load ptr, ptr %4, align 8, !tbaa !5
  %371 = load ptr, ptr %47, align 8, !tbaa !5
  %372 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::TextBlob", ptr %371, i32 0, i32 3
  call void @_ZN3JPH8StreamIn4ReadIfTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %370, ptr noundef nonnull align 4 dereferenceable(4) %372)
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #12
  br label %373

373:                                              ; preds = %359
  %374 = load ptr, ptr %45, align 8, !tbaa !5
  %375 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::TextBlob", ptr %374, i32 1
  store ptr %375, ptr %45, align 8, !tbaa !5
  br label %354

376:                                              ; preds = %358
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #12
  store i32 0, ptr %48, align 4, !tbaa !13
  %377 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %377, ptr noundef nonnull align 4 dereferenceable(4) %48)
  %378 = load ptr, ptr %32, align 8, !tbaa !5
  %379 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::Frame", ptr %378, i32 0, i32 3
  %380 = load i32, ptr %48, align 4, !tbaa !13
  %381 = zext i32 %380 to i64
  call void @_ZN3JPH5ArrayINS_21DebugRendererRecorder12GeometryBlobENS_12STLAllocatorIS2_EEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %379, i64 noundef %381)
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #12
  %382 = load ptr, ptr %32, align 8, !tbaa !5
  %383 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::Frame", ptr %382, i32 0, i32 3
  store ptr %383, ptr %49, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #12
  %384 = load ptr, ptr %49, align 8, !tbaa !5
  %385 = call noundef ptr @_ZN3JPH5ArrayINS_21DebugRendererRecorder12GeometryBlobENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %384)
  store ptr %385, ptr %50, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #12
  %386 = load ptr, ptr %49, align 8, !tbaa !5
  %387 = call noundef ptr @_ZN3JPH5ArrayINS_21DebugRendererRecorder12GeometryBlobENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %386)
  store ptr %387, ptr %51, align 8, !tbaa !5
  br label %388

388:                                              ; preds = %413, %376
  %389 = load ptr, ptr %50, align 8, !tbaa !5
  %390 = load ptr, ptr %51, align 8, !tbaa !5
  %391 = icmp ne ptr %389, %390
  br i1 %391, label %393, label %392

392:                                              ; preds = %388
  store i32 13, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #12
  br label %416

393:                                              ; preds = %388
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #12
  %394 = load ptr, ptr %50, align 8, !tbaa !5
  store ptr %394, ptr %52, align 8, !tbaa !5
  %395 = load ptr, ptr %4, align 8, !tbaa !5
  %396 = load ptr, ptr %52, align 8, !tbaa !5
  %397 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::GeometryBlob", ptr %396, i32 0, i32 0
  call void @_ZN3JPH8StreamIn4ReadINS_5Mat44ETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8) %395, ptr noundef nonnull align 16 dereferenceable(64) %397)
  %398 = load ptr, ptr %4, align 8, !tbaa !5
  %399 = load ptr, ptr %52, align 8, !tbaa !5
  %400 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::GeometryBlob", ptr %399, i32 0, i32 1
  call void @_ZN3JPH8StreamIn4ReadINS_5ColorETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8) %398, ptr noundef nonnull align 4 dereferenceable(4) %400)
  %401 = load ptr, ptr %4, align 8, !tbaa !5
  %402 = load ptr, ptr %52, align 8, !tbaa !5
  %403 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::GeometryBlob", ptr %402, i32 0, i32 2
  call void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %401, ptr noundef nonnull align 4 dereferenceable(4) %403)
  %404 = load ptr, ptr %4, align 8, !tbaa !5
  %405 = load ptr, ptr %52, align 8, !tbaa !5
  %406 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::GeometryBlob", ptr %405, i32 0, i32 3
  call void @_ZN3JPH8StreamIn4ReadINS_13DebugRenderer9ECullModeETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS5_(ptr noundef nonnull align 8 dereferenceable(8) %404, ptr noundef nonnull align 4 dereferenceable(4) %406)
  %407 = load ptr, ptr %4, align 8, !tbaa !5
  %408 = load ptr, ptr %52, align 8, !tbaa !5
  %409 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::GeometryBlob", ptr %408, i32 0, i32 4
  call void @_ZN3JPH8StreamIn4ReadINS_13DebugRenderer11ECastShadowETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS5_(ptr noundef nonnull align 8 dereferenceable(8) %407, ptr noundef nonnull align 4 dereferenceable(4) %409)
  %410 = load ptr, ptr %4, align 8, !tbaa !5
  %411 = load ptr, ptr %52, align 8, !tbaa !5
  %412 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::GeometryBlob", ptr %411, i32 0, i32 5
  call void @_ZN3JPH8StreamIn4ReadINS_13DebugRenderer9EDrawModeETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS5_(ptr noundef nonnull align 8 dereferenceable(8) %410, ptr noundef nonnull align 4 dereferenceable(4) %412)
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #12
  br label %413

413:                                              ; preds = %393
  %414 = load ptr, ptr %50, align 8, !tbaa !5
  %415 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::GeometryBlob", ptr %414, i32 1
  store ptr %415, ptr %50, align 8, !tbaa !5
  br label %388

416:                                              ; preds = %392
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #12
  br label %424

417:                                              ; preds = %259
  br label %418

418:                                              ; preds = %417
  %419 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 145)
  br i1 %419, label %420, label %421

420:                                              ; preds = %418
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #12, !srcloc !25
  br label %421

421:                                              ; preds = %420, %418
  br label %422

422:                                              ; preds = %421
  br label %423

423:                                              ; preds = %422
  br label %424

424:                                              ; preds = %423, %416
  br label %425

425:                                              ; preds = %424, %255
  br label %426

426:                                              ; preds = %425, %169
  br label %427

427:                                              ; preds = %426, %103
  store i32 0, ptr %6, align 4
  br label %428

428:                                              ; preds = %427, %68
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #12
  %429 = load i32, ptr %6, align 4
  switch i32 %429, label %438 [
    i32 0, label %430
    i32 1, label %432
  ]

430:                                              ; preds = %428
  br label %55, !llvm.loop !26

431:                                              ; preds = %287, %258, %178, %112
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #12
  br label %433

432:                                              ; preds = %428
  ret void

433:                                              ; preds = %431
  %434 = load ptr, ptr %12, align 8
  %435 = load i32, ptr %13, align 4
  %436 = insertvalue { ptr, i32 } poison, ptr %434, 0
  %437 = insertvalue { ptr, i32 } %436, i32 %435, 1
  resume { ptr, i32 } %437

438:                                              ; preds = %428
  unreachable
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH9HashTableIjSt4pairIjNS_3RefINS_16RefTargetVirtualEEEENS_18UnorderedMapDetailIjS4_EENS_4HashIjEESt8equal_toIjEE6insertERKS5_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair") align 8, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH5AABoxC2Ev(ptr noundef nonnull align 16 dereferenceable(32)) unnamed_addr #3 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH13DebugRenderer8GeometrynwEm(i64 noundef) #9 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH13DebugRenderer8GeometryC2ERKNS_5AABoxE(ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(32)) unnamed_addr #6 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH13DebugRenderer8GeometrydlEPv(ptr noundef) #10 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH12UnorderedMapIjNS_3RefINS_13DebugRenderer8GeometryEEENS_4HashIjEESt8equal_toIjEEixERKj(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH12UnorderedMapIjNS_3RefINS_16RefTargetVirtualEEENS_4HashIjEESt8equal_toIjEE4findERKj(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::Ref<JPH::RefTargetVirtual>>, JPH::UnorderedMapDetail<unsigned int, JPH::Ref<JPH::RefTargetVirtual>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH9HashTableIjSt4pairIjNS_3RefINS_16RefTargetVirtualEEEENS_18UnorderedMapDetailIjS4_EENS_4HashIjEESt8equal_toIjEE8iteratorptEv(ptr noundef nonnull align 8 dereferenceable(12)) #3 align 2

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

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #11

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(96) ptr @_ZN3JPH5ArrayINS_21DebugRendererRecorder5FrameENS_12STLAllocatorIS2_EEE4backEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH8StreamIn4ReadINS_5Mat44ETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 16 dereferenceable(64)) #3 align 2

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

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

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

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

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


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

%"struct.std::pair.45" = type { i32, %"class.JPH::Ref.26" }
%"class.JPH::Ref.26" = type { ptr }
%"struct.std::pair" = type { %"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::Ref<JPH::RefTargetVirtual>>, JPH::UnorderedMapDetail<unsigned int, JPH::Ref<JPH::RefTargetVirtual>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::iterator", i8, [7 x i8] }
%"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::Ref<JPH::RefTargetVirtual>>, JPH::UnorderedMapDetail<unsigned int, JPH::Ref<JPH::RefTargetVirtual>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::iterator" = type { %"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::Ref<JPH::RefTargetVirtual>>, JPH::UnorderedMapDetail<unsigned int, JPH::Ref<JPH::RefTargetVirtual>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::IteratorBase.base", [4 x i8] }
%"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::Ref<JPH::RefTargetVirtual>>, JPH::UnorderedMapDetail<unsigned int, JPH::Ref<JPH::RefTargetVirtual>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::IteratorBase.base" = type <{ ptr, i32 }>
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Ref" = type { ptr }
%"class.JPH::DebugRenderer::LOD" = type <{ %"class.JPH::Ref.26", float, [4 x i8] }>
%"struct.JPH::DebugRendererRecorder::Frame" = type { %"class.JPH::Array", %"class.JPH::Array.17", %"class.JPH::Array.20", %"class.JPH::Array.23" }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::Array.17" = type { i64, i64, ptr }
%"class.JPH::Array.20" = type { i64, i64, ptr }
%"class.JPH::Array.23" = type { i64, i64, ptr }

@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [92 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH21DebugRendererPlayback5ParseERNS_8StreamInE(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef nonnull align 8 dereferenceable(8) %1) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i8, align 1
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"struct.std::pair.45", align 8
  %7 = alloca %"class.JPH::Ref.26", align 8
  %8 = alloca %"struct.std::pair", align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"struct.std::pair.45", align 8
  %13 = alloca %"class.JPH::Ref.26", align 8
  %14 = alloca %"struct.std::pair", align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.JPH::AABox", align 16
  %17 = alloca %"class.JPH::Ref", align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.JPH::DebugRenderer::LOD", align 8
  %20 = alloca i32, align 4
  %21 = alloca %"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::Ref<JPH::RefTargetVirtual>>, JPH::UnorderedMapDetail<unsigned int, JPH::Ref<JPH::RefTargetVirtual>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::iterator", align 8
  %22 = alloca %"struct.JPH::DebugRendererRecorder::Frame", align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #10
  call void @_ZN3JPH8StreamIn4ReadINS_21DebugRendererRecorder8ECommandETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS5_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 1 dereferenceable(1) %3)
  %27 = load ptr, ptr %1, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %27, i64 24
  %29 = load ptr, ptr %28, align 8
  %30 = call noundef zeroext i1 %29(ptr noundef nonnull align 8 dereferenceable(8) %1)
  br i1 %30, label %._crit_edge150, label %.lr.ph149

.lr.ph149:                                        ; preds = %2
  %31 = getelementptr inbounds i8, ptr %0, i64 72
  %32 = getelementptr inbounds i8, ptr %22, i64 24
  %33 = getelementptr inbounds i8, ptr %22, i64 48
  %34 = getelementptr inbounds i8, ptr %22, i64 72
  %35 = getelementptr inbounds i8, ptr %16, i64 16
  %36 = getelementptr inbounds i8, ptr %0, i64 40
  %37 = getelementptr inbounds i8, ptr %19, i64 8
  %38 = getelementptr inbounds i8, ptr %0, i64 8
  br label %39

39:                                               ; preds = %.lr.ph149, %170
  %40 = load ptr, ptr %1, align 8, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %40, i64 32
  %42 = load ptr, ptr %41, align 8
  %43 = call noundef zeroext i1 %42(ptr noundef nonnull align 8 dereferenceable(8) %1)
  br i1 %43, label %._crit_edge150, label %44

44:                                               ; preds = %39
  %45 = load i8, ptr %3, align 1, !tbaa !8
  switch i8 %45, label %167 [
    i8 0, label %46
    i8 1, label %62
    i8 2, label %86
    i8 3, label %125
  ]

46:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #10
  call void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #10
  call void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %47 = load i32, ptr %5, align 4, !tbaa !11
  %48 = zext i32 %47 to i64
  %49 = mul nuw nsw i64 %48, 108
  %50 = call noalias noundef nonnull ptr @_Znam(i64 noundef %49) #11
  %51 = load ptr, ptr %1, align 8, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %51, i64 16
  %53 = load ptr, ptr %52, align 8
  call void %53(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %50, i64 noundef %49)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #10
  %54 = load ptr, ptr %0, align 8, !tbaa !13
  %55 = load i32, ptr %5, align 4, !tbaa !11
  %56 = load ptr, ptr %54, align 8, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %56, i64 32
  %58 = load ptr, ptr %57, align 8
  call void %58(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Ref.26") align 8 %7, ptr noundef nonnull align 8 dereferenceable(320) %54, ptr noundef nonnull %50, i32 noundef %55)
  call void @_ZNSt4pairIjN3JPH3RefINS0_16RefTargetVirtualEEEEC2IRjS3_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS8_S9_EEEbE4typeELb1EEEOS8_OS9_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 8 dereferenceable(8) %7)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #10
  invoke void @_ZN3JPH9HashTableIjSt4pairIjNS_3RefINS_16RefTargetVirtualEEEENS_18UnorderedMapDetailIjS4_EENS_4HashIjEESt8equal_toIjEE6insertERKS5_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %8, ptr noundef nonnull align 8 dereferenceable(28) %38, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %59 unwind label %60

59:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #10
  call void @_ZNSt4pairIjN3JPH3RefINS0_16RefTargetVirtualEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #10
  call void @_ZN3JPH3RefINS_16RefTargetVirtualEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #10
  call void @_ZdaPv(ptr noundef nonnull %50) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #10
  br label %170

60:                                               ; preds = %46
  %61 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #10
  call void @_ZNSt4pairIjN3JPH3RefINS0_16RefTargetVirtualEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #10
  call void @_ZN3JPH3RefINS_16RefTargetVirtualEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #10
  br label %175

62:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #10
  call void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(4) %9)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #10
  call void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %63 = load i32, ptr %10, align 4, !tbaa !11
  %64 = zext i32 %63 to i64
  %65 = mul nuw nsw i64 %64, 36
  %66 = call noalias noundef nonnull ptr @_Znam(i64 noundef %65) #11
  %67 = load ptr, ptr %1, align 8, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %67, i64 16
  %69 = load ptr, ptr %68, align 8
  call void %69(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %66, i64 noundef %65)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #10
  call void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %70 = load i32, ptr %11, align 4, !tbaa !11
  %71 = zext i32 %70 to i64
  %72 = shl nuw nsw i64 %71, 2
  %73 = call noalias noundef nonnull ptr @_Znam(i64 noundef %72) #11
  %74 = load ptr, ptr %1, align 8, !tbaa !5
  %75 = getelementptr inbounds i8, ptr %74, i64 16
  %76 = load ptr, ptr %75, align 8
  call void %76(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %73, i64 noundef %72)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #10
  %77 = load ptr, ptr %0, align 8, !tbaa !13
  %78 = load i32, ptr %10, align 4, !tbaa !11
  %79 = load i32, ptr %11, align 4, !tbaa !11
  %80 = load ptr, ptr %77, align 8, !tbaa !5
  %81 = getelementptr inbounds i8, ptr %80, i64 40
  %82 = load ptr, ptr %81, align 8
  call void %82(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Ref.26") align 8 %13, ptr noundef nonnull align 8 dereferenceable(320) %77, ptr noundef nonnull %66, i32 noundef %78, ptr noundef nonnull %73, i32 noundef %79)
  call void @_ZNSt4pairIjN3JPH3RefINS0_16RefTargetVirtualEEEEC2IRjS3_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS8_S9_EEEbE4typeELb1EEEOS8_OS9_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 8 dereferenceable(8) %13)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #10
  invoke void @_ZN3JPH9HashTableIjSt4pairIjNS_3RefINS_16RefTargetVirtualEEEENS_18UnorderedMapDetailIjS4_EENS_4HashIjEESt8equal_toIjEE6insertERKS5_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %14, ptr noundef nonnull align 8 dereferenceable(28) %38, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %83 unwind label %84

83:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #10
  call void @_ZNSt4pairIjN3JPH3RefINS0_16RefTargetVirtualEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #10
  call void @_ZN3JPH3RefINS_16RefTargetVirtualEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #10
  call void @_ZdaPv(ptr noundef nonnull %73) #12
  call void @_ZdaPv(ptr noundef nonnull %66) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #10
  br label %170

84:                                               ; preds = %62
  %85 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #10
  call void @_ZNSt4pairIjN3JPH3RefINS0_16RefTargetVirtualEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #10
  call void @_ZN3JPH3RefINS_16RefTargetVirtualEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #10
  br label %175

86:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #10
  call void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(4) %15)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #10
  call void @_ZN3JPH5AABoxC2Ev(ptr noundef nonnull align 16 dereferenceable(32) %16)
  call void @_ZN3JPH8StreamIn4ReadERNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 16 dereferenceable(16) %16)
  call void @_ZN3JPH8StreamIn4ReadERNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 16 dereferenceable(16) %35)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #10
  %87 = call noundef ptr @_ZN3JPH13DebugRenderer8GeometrynwEm(i64 noundef 64)
  call void @_ZN3JPH13DebugRenderer8GeometryC2ERKNS_5AABoxE(ptr noundef nonnull align 16 dereferenceable(64) %87, ptr noundef nonnull align 16 dereferenceable(32) %16)
  call void @_ZN3JPH3RefINS_13DebugRenderer8GeometryEEC2EPS2_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull %87)
  %88 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH12UnorderedMapIjNS_3RefINS_13DebugRenderer8GeometryEEENS_4HashIjEESt8equal_toIjEEixERKj(ptr noundef nonnull align 8 dereferenceable(28) %36, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %89 unwind label %93

89:                                               ; preds = %86
  %90 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_13DebugRenderer8GeometryEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %91 unwind label %93

91:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #10
  invoke void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %.preheader unwind label %95

.preheader:                                       ; preds = %91
  %92 = load i32, ptr %18, align 4, !tbaa !11
  %.not152 = icmp eq i32 %92, 0
  br i1 %.not152, label %._crit_edge147, label %.lr.ph146

._crit_edge147:                                   ; preds = %108, %.preheader
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #10
  call void @_ZN3JPH3RefINS_13DebugRenderer8GeometryEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #10
  br label %170

93:                                               ; preds = %89, %86
  %94 = landingpad { ptr, i32 }
          cleanup
  br label %124

95:                                               ; preds = %91
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %123

.lr.ph146:                                        ; preds = %.preheader, %108
  %.0111145 = phi i32 [ %109, %108 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #10
  invoke void @_ZN3JPH13DebugRenderer3LODC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %19)
          to label %97 unwind label %112

97:                                               ; preds = %.lr.ph146
  invoke void @_ZN3JPH8StreamIn4ReadIfTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(4) %37)
          to label %98 unwind label %114

98:                                               ; preds = %97
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #10
  invoke void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %99 unwind label %116

99:                                               ; preds = %98
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #10
  invoke void @_ZN3JPH12UnorderedMapIjNS_3RefINS_16RefTargetVirtualEEENS_4HashIjEESt8equal_toIjEE4findERKj(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::Ref<JPH::RefTargetVirtual>>, JPH::UnorderedMapDetail<unsigned int, JPH::Ref<JPH::RefTargetVirtual>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::iterator") align 8 %21, ptr noundef nonnull align 8 dereferenceable(28) %38, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %100 unwind label %118

100:                                              ; preds = %99
  %101 = invoke noundef ptr @_ZN3JPH9HashTableIjSt4pairIjNS_3RefINS_16RefTargetVirtualEEEENS_18UnorderedMapDetailIjS4_EENS_4HashIjEESt8equal_toIjEE8iteratorptEv(ptr noundef nonnull align 8 dereferenceable(12) %21)
          to label %102 unwind label %118

102:                                              ; preds = %100
  %103 = getelementptr inbounds i8, ptr %101, i64 8
  %104 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_16RefTargetVirtualEEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %103)
          to label %105 unwind label %118

105:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #10
  %106 = call noundef ptr @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %17)
  %107 = getelementptr inbounds i8, ptr %106, i64 8
  invoke void @_ZN3JPH5ArrayINS_13DebugRenderer3LODENS_12STLAllocatorIS2_EEE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %107, ptr noundef nonnull align 8 dereferenceable(12) %19)
          to label %108 unwind label %116

108:                                              ; preds = %105
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #10
  call void @_ZN3JPH13DebugRenderer3LODD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %19) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #10
  %109 = add nuw i32 %.0111145, 1
  %110 = load i32, ptr %18, align 4, !tbaa !11
  %111 = icmp ult i32 %109, %110
  br i1 %111, label %.lr.ph146, label %._crit_edge147, !llvm.loop !22

112:                                              ; preds = %.lr.ph146
  %113 = landingpad { ptr, i32 }
          cleanup
  br label %122

114:                                              ; preds = %97
  %115 = landingpad { ptr, i32 }
          cleanup
  br label %121

116:                                              ; preds = %105, %98
  %117 = landingpad { ptr, i32 }
          cleanup
  br label %120

118:                                              ; preds = %102, %100, %99
  %119 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #10
  br label %120

120:                                              ; preds = %118, %116
  %.pn = phi { ptr, i32 } [ %117, %116 ], [ %119, %118 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #10
  br label %121

121:                                              ; preds = %120, %114
  %.pn.pn = phi { ptr, i32 } [ %.pn, %120 ], [ %115, %114 ]
  call void @_ZN3JPH13DebugRenderer3LODD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %19) #10
  br label %122

122:                                              ; preds = %121, %112
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %121 ], [ %113, %112 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #10
  br label %123

123:                                              ; preds = %122, %95
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %122 ], [ %96, %95 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #10
  br label %124

124:                                              ; preds = %123, %93
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %123 ], [ %94, %93 ]
  call void @_ZN3JPH3RefINS_13DebugRenderer8GeometryEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #10
  br label %175

125:                                              ; preds = %44
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %22) #10
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %22, i8 0, i64 24, i1 false)
  call void @_ZN3JPH5ArrayINS_21DebugRendererRecorder8LineBlobENS_12STLAllocatorIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #10
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %32, i8 0, i64 24, i1 false)
  call void @_ZN3JPH5ArrayINS_21DebugRendererRecorder12TriangleBlobENS_12STLAllocatorIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #10
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %33, i8 0, i64 24, i1 false)
  call void @_ZN3JPH5ArrayINS_21DebugRendererRecorder8TextBlobENS_12STLAllocatorIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #10
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %34, i8 0, i64 24, i1 false)
  call void @_ZN3JPH5ArrayINS_21DebugRendererRecorder12GeometryBlobENS_12STLAllocatorIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #10
  invoke void @_ZN3JPH5ArrayINS_21DebugRendererRecorder5FrameENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 8 dereferenceable(96) %22)
          to label %126 unwind label %137

126:                                              ; preds = %125
  call void @_ZN3JPH21DebugRendererRecorder5FrameD2Ev(ptr noundef nonnull align 8 dereferenceable(96) %22) #10
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %22) #10
  %127 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZN3JPH5ArrayINS_21DebugRendererRecorder5FrameENS_12STLAllocatorIS2_EEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %31)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #10
  store i32 0, ptr %23, align 4, !tbaa !11
  call void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(4) %23)
  %128 = load i32, ptr %23, align 4, !tbaa !11
  %129 = zext i32 %128 to i64
  call void @_ZN3JPH5ArrayINS_21DebugRendererRecorder8LineBlobENS_12STLAllocatorIS2_EEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %127, i64 noundef %129)
  %130 = call noundef ptr @_ZN3JPH5ArrayINS_21DebugRendererRecorder8LineBlobENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %127)
  %131 = call noundef ptr @_ZN3JPH5ArrayINS_21DebugRendererRecorder8LineBlobENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %127)
  %.not128 = icmp eq ptr %130, %131
  br i1 %.not128, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %126
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #10
  store i32 0, ptr %24, align 4, !tbaa !11
  call void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(4) %24)
  %132 = getelementptr inbounds i8, ptr %127, i64 24
  %133 = load i32, ptr %24, align 4, !tbaa !11
  %134 = zext i32 %133 to i64
  call void @_ZN3JPH5ArrayINS_21DebugRendererRecorder12TriangleBlobENS_12STLAllocatorIS2_EEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %132, i64 noundef %134)
  %135 = call noundef ptr @_ZN3JPH5ArrayINS_21DebugRendererRecorder12TriangleBlobENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %132)
  %136 = call noundef ptr @_ZN3JPH5ArrayINS_21DebugRendererRecorder12TriangleBlobENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %132)
  %.not116130 = icmp eq ptr %135, %136
  br i1 %.not116130, label %._crit_edge134, label %.lr.ph133

137:                                              ; preds = %125
  %138 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH21DebugRendererRecorder5FrameD2Ev(ptr noundef nonnull align 8 dereferenceable(96) %22) #10
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %22) #10
  br label %175

.lr.ph:                                           ; preds = %126, %.lr.ph
  %.0112129 = phi ptr [ %141, %.lr.ph ], [ %130, %126 ]
  call void @_ZN3JPH8StreamIn4ReadERNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 16 dereferenceable(16) %.0112129)
  %139 = getelementptr inbounds i8, ptr %.0112129, i64 16
  call void @_ZN3JPH8StreamIn4ReadERNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 16 dereferenceable(16) %139)
  %140 = getelementptr inbounds i8, ptr %.0112129, i64 32
  call void @_ZN3JPH8StreamIn4ReadINS_5ColorETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(4) %140)
  %141 = getelementptr inbounds i8, ptr %.0112129, i64 48
  %.not = icmp eq ptr %141, %131
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge134:                                   ; preds = %.lr.ph133, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #10
  store i32 0, ptr %25, align 4, !tbaa !11
  call void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(4) %25)
  %142 = getelementptr inbounds i8, ptr %127, i64 48
  %143 = load i32, ptr %25, align 4, !tbaa !11
  %144 = zext i32 %143 to i64
  call void @_ZN3JPH5ArrayINS_21DebugRendererRecorder8TextBlobENS_12STLAllocatorIS2_EEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %142, i64 noundef %144)
  %145 = call noundef ptr @_ZN3JPH5ArrayINS_21DebugRendererRecorder8TextBlobENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %142)
  %146 = call noundef ptr @_ZN3JPH5ArrayINS_21DebugRendererRecorder8TextBlobENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %142)
  %.not117135 = icmp eq ptr %145, %146
  br i1 %.not117135, label %._crit_edge139, label %.lr.ph138

.lr.ph133:                                        ; preds = %._crit_edge, %.lr.ph133
  %.0114131 = phi ptr [ %151, %.lr.ph133 ], [ %135, %._crit_edge ]
  call void @_ZN3JPH8StreamIn4ReadERNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 16 dereferenceable(16) %.0114131)
  %147 = getelementptr inbounds i8, ptr %.0114131, i64 16
  call void @_ZN3JPH8StreamIn4ReadERNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 16 dereferenceable(16) %147)
  %148 = getelementptr inbounds i8, ptr %.0114131, i64 32
  call void @_ZN3JPH8StreamIn4ReadERNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 16 dereferenceable(16) %148)
  %149 = getelementptr inbounds i8, ptr %.0114131, i64 48
  call void @_ZN3JPH8StreamIn4ReadINS_5ColorETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(4) %149)
  %150 = getelementptr inbounds i8, ptr %.0114131, i64 52
  call void @_ZN3JPH8StreamIn4ReadINS_13DebugRenderer11ECastShadowETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS5_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(4) %150)
  %151 = getelementptr inbounds i8, ptr %.0114131, i64 64
  %.not116 = icmp eq ptr %151, %136
  br i1 %.not116, label %._crit_edge134, label %.lr.ph133

._crit_edge139:                                   ; preds = %.lr.ph138, %._crit_edge134
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #10
  store i32 0, ptr %26, align 4, !tbaa !11
  call void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(4) %26)
  %152 = getelementptr inbounds i8, ptr %127, i64 72
  %153 = load i32, ptr %26, align 4, !tbaa !11
  %154 = zext i32 %153 to i64
  call void @_ZN3JPH5ArrayINS_21DebugRendererRecorder12GeometryBlobENS_12STLAllocatorIS2_EEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %152, i64 noundef %154)
  %155 = call noundef ptr @_ZN3JPH5ArrayINS_21DebugRendererRecorder12GeometryBlobENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %152)
  %156 = call noundef ptr @_ZN3JPH5ArrayINS_21DebugRendererRecorder12GeometryBlobENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %152)
  %.not118140 = icmp eq ptr %155, %156
  br i1 %.not118140, label %._crit_edge144, label %.lr.ph143

.lr.ph138:                                        ; preds = %._crit_edge134, %.lr.ph138
  %.0113136 = phi ptr [ %160, %.lr.ph138 ], [ %145, %._crit_edge134 ]
  call void @_ZN3JPH8StreamIn4ReadERNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 16 dereferenceable(16) %.0113136)
  %157 = getelementptr inbounds i8, ptr %.0113136, i64 16
  call void @_ZN3JPH8StreamIn4ReadIcSt11char_traitsIcENS_12STLAllocatorIcEEEEvRNSt7__cxx1112basic_stringIT_T0_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(32) %157)
  %158 = getelementptr inbounds i8, ptr %.0113136, i64 48
  call void @_ZN3JPH8StreamIn4ReadINS_5ColorETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(4) %158)
  %159 = getelementptr inbounds i8, ptr %.0113136, i64 52
  call void @_ZN3JPH8StreamIn4ReadIfTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(4) %159)
  %160 = getelementptr inbounds i8, ptr %.0113136, i64 64
  %.not117 = icmp eq ptr %160, %146
  br i1 %.not117, label %._crit_edge139, label %.lr.ph138

._crit_edge144:                                   ; preds = %.lr.ph143, %._crit_edge139
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #10
  br label %170

.lr.ph143:                                        ; preds = %._crit_edge139, %.lr.ph143
  %.0104141 = phi ptr [ %166, %.lr.ph143 ], [ %155, %._crit_edge139 ]
  call void @_ZN3JPH8StreamIn4ReadINS_5Mat44ETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 16 dereferenceable(64) %.0104141)
  %161 = getelementptr inbounds i8, ptr %.0104141, i64 64
  call void @_ZN3JPH8StreamIn4ReadINS_5ColorETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(4) %161)
  %162 = getelementptr inbounds i8, ptr %.0104141, i64 68
  call void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(4) %162)
  %163 = getelementptr inbounds i8, ptr %.0104141, i64 72
  call void @_ZN3JPH8StreamIn4ReadINS_13DebugRenderer9ECullModeETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS5_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(4) %163)
  %164 = getelementptr inbounds i8, ptr %.0104141, i64 76
  call void @_ZN3JPH8StreamIn4ReadINS_13DebugRenderer11ECastShadowETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS5_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(4) %164)
  %165 = getelementptr inbounds i8, ptr %.0104141, i64 80
  call void @_ZN3JPH8StreamIn4ReadINS_13DebugRenderer9EDrawModeETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS5_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(4) %165)
  %166 = getelementptr inbounds i8, ptr %.0104141, i64 96
  %.not118 = icmp eq ptr %166, %156
  br i1 %.not118, label %._crit_edge144, label %.lr.ph143

167:                                              ; preds = %44
  %168 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 145)
  br i1 %168, label %169, label %170

169:                                              ; preds = %167
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #10, !srcloc !24
  br label %170

170:                                              ; preds = %59, %._crit_edge147, %167, %169, %._crit_edge144, %83
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #10
  call void @_ZN3JPH8StreamIn4ReadINS_21DebugRendererRecorder8ECommandETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS5_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 1 dereferenceable(1) %3)
  %171 = load ptr, ptr %1, align 8, !tbaa !5
  %172 = getelementptr inbounds i8, ptr %171, i64 24
  %173 = load ptr, ptr %172, align 8
  %174 = call noundef zeroext i1 %173(ptr noundef nonnull align 8 dereferenceable(8) %1)
  br i1 %174, label %._crit_edge150, label %39

175:                                              ; preds = %137, %124, %84, %60
  %.pn124 = phi { ptr, i32 } [ %61, %60 ], [ %85, %84 ], [ %.pn.pn.pn.pn.pn, %124 ], [ %138, %137 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #10
  resume { ptr, i32 } %.pn124

._crit_edge150:                                   ; preds = %170, %39, %2
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #10
  ret void
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH9HashTableIjSt4pairIjNS_3RefINS_16RefTargetVirtualEEEENS_18UnorderedMapDetailIjS4_EENS_4HashIjEESt8equal_toIjEE6insertERKS5_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair") align 8, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH5AABoxC2Ev(ptr noundef nonnull align 16 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH8StreamIn4ReadERNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #7 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH13DebugRenderer8GeometrynwEm(i64 noundef) local_unnamed_addr #8 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH13DebugRenderer8GeometryC2ERKNS_5AABoxE(ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(32)) unnamed_addr #5 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH12UnorderedMapIjNS_3RefINS_13DebugRenderer8GeometryEEENS_4HashIjEESt8equal_toIjEEixERKj(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH12UnorderedMapIjNS_3RefINS_16RefTargetVirtualEEENS_4HashIjEESt8equal_toIjEE4findERKj(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::Ref<JPH::RefTargetVirtual>>, JPH::UnorderedMapDetail<unsigned int, JPH::Ref<JPH::RefTargetVirtual>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH9HashTableIjSt4pairIjNS_3RefINS_16RefTargetVirtualEEEENS_18UnorderedMapDetailIjS4_EENS_4HashIjEESt8equal_toIjEE8iteratorptEv(ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #3 align 2

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

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #9

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(96) ptr @_ZN3JPH5ArrayINS_21DebugRendererRecorder5FrameENS_12STLAllocatorIS2_EEE4backEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH8StreamIn4ReadINS_5Mat44ETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 16 dereferenceable(64)) local_unnamed_addr #3 align 2

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

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

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

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

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


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