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

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

%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Color" = type { %union.anon.0 }
%union.anon.0 = type { i32 }
%"class.std::basic_string_view" = type { i64, ptr }
%"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<unsigned int, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator" = type { %"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<unsigned int, JPH::Ref<JPH::DebugRenderer::Geometry>>, 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::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<unsigned int, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::IteratorBase.base" = type <{ ptr, i32 }>
%"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 }
%"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::DebugRendererRecorder::LineBlob" = type <{ %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Color", [12 x i8] }>
%"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> }
%"struct.std::pair.47" = type { i32, %"class.JPH::Ref" }
%"class.JPH::Ref" = type { ptr }

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH21DebugRendererPlayback9DrawFrameEj(ptr noundef nonnull align 8 dereferenceable(96) %0, i32 noundef %1) #2 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Color", align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Color", align 4
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca %"class.std::basic_string_view", align 8
  %27 = alloca %"class.JPH::Color", align 4
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca %"class.JPH::Color", align 4
  %33 = alloca %"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<unsigned int, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  %34 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %35 = getelementptr inbounds %"class.JPH::DebugRendererPlayback", ptr %34, i32 0, i32 3
  %36 = load i32, ptr %4, align 4, !tbaa !9
  %37 = zext i32 %36 to i64
  %38 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNK3JPH5ArrayINS_21DebugRendererRecorder5FrameENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef %37)
  store ptr %38, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::Frame", ptr %39, i32 0, i32 0
  store ptr %40, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = call noundef ptr @_ZNK3JPH5ArrayINS_21DebugRendererRecorder8LineBlobENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %41)
  store ptr %42, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = call noundef ptr @_ZNK3JPH5ArrayINS_21DebugRendererRecorder8LineBlobENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %43)
  store ptr %44, ptr %8, align 8, !tbaa !5
  br label %45

45:                                               ; preds = %74, %2
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = icmp ne ptr %46, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %77

50:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %51, ptr %9, align 8, !tbaa !5
  %52 = getelementptr inbounds %"class.JPH::DebugRendererPlayback", ptr %34, i32 0, i32 0
  %53 = load ptr, ptr %52, align 8, !tbaa !11
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::LineBlob", ptr %54, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 %55, i64 16, i1 false), !tbaa.struct !19
  %56 = load ptr, ptr %9, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::LineBlob", ptr %56, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 %57, i64 16, i1 false), !tbaa.struct !19
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::LineBlob", ptr %58, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 16 %59, i64 4, i1 false), !tbaa.struct !21
  %60 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 0
  %61 = load double, ptr %60, align 16
  %62 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 1
  %63 = load double, ptr %62, align 8
  %64 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 0
  %65 = load double, ptr %64, align 16
  %66 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 1
  %67 = load double, ptr %66, align 8
  %68 = getelementptr inbounds %"class.JPH::Color", ptr %12, i32 0, i32 0
  %69 = getelementptr inbounds %union.anon.0, ptr %68, i32 0, i32 0
  %70 = load i32, ptr %69, align 4
  %71 = load ptr, ptr %53, align 8, !tbaa !22
  %72 = getelementptr inbounds ptr, ptr %71, i64 2
  %73 = load ptr, ptr %72, align 8
  call void %73(ptr noundef nonnull align 8 dereferenceable(320) %53, double %61, double %63, double %65, double %67, i32 %70)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %74

74:                                               ; preds = %50
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::LineBlob", ptr %75, i32 1
  store ptr %76, ptr %7, align 8, !tbaa !5
  br label %45

77:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::Frame", ptr %78, i32 0, i32 1
  store ptr %79, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %80 = load ptr, ptr %13, align 8, !tbaa !5
  %81 = call noundef ptr @_ZNK3JPH5ArrayINS_21DebugRendererRecorder12TriangleBlobENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %80)
  store ptr %81, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %82 = load ptr, ptr %13, align 8, !tbaa !5
  %83 = call noundef ptr @_ZNK3JPH5ArrayINS_21DebugRendererRecorder12TriangleBlobENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %82)
  store ptr %83, ptr %15, align 8, !tbaa !5
  br label %84

84:                                               ; preds = %122, %77
  %85 = load ptr, ptr %14, align 8, !tbaa !5
  %86 = load ptr, ptr %15, align 8, !tbaa !5
  %87 = icmp ne ptr %85, %86
  br i1 %87, label %89, label %88

88:                                               ; preds = %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %125

89:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %90 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %90, ptr %16, align 8, !tbaa !5
  %91 = getelementptr inbounds %"class.JPH::DebugRendererPlayback", ptr %34, i32 0, i32 0
  %92 = load ptr, ptr %91, align 8, !tbaa !11
  %93 = load ptr, ptr %16, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::TriangleBlob", ptr %93, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 %94, i64 16, i1 false), !tbaa.struct !19
  %95 = load ptr, ptr %16, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::TriangleBlob", ptr %95, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %18, ptr align 16 %96, i64 16, i1 false), !tbaa.struct !19
  %97 = load ptr, ptr %16, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::TriangleBlob", ptr %97, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 %98, i64 16, i1 false), !tbaa.struct !19
  %99 = load ptr, ptr %16, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::TriangleBlob", ptr %99, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 16 %100, i64 4, i1 false), !tbaa.struct !21
  %101 = load ptr, ptr %16, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::TriangleBlob", ptr %101, i32 0, i32 4
  %103 = load i32, ptr %102, align 4, !tbaa !24
  %104 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %105 = load double, ptr %104, align 16
  %106 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %107 = load double, ptr %106, align 8
  %108 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %109 = load double, ptr %108, align 16
  %110 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %111 = load double, ptr %110, align 8
  %112 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %113 = load double, ptr %112, align 16
  %114 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %115 = load double, ptr %114, align 8
  %116 = getelementptr inbounds %"class.JPH::Color", ptr %20, i32 0, i32 0
  %117 = getelementptr inbounds %union.anon.0, ptr %116, i32 0, i32 0
  %118 = load i32, ptr %117, align 4
  %119 = load ptr, ptr %92, align 8, !tbaa !22
  %120 = getelementptr inbounds ptr, ptr %119, i64 3
  %121 = load ptr, ptr %120, align 8
  call void %121(ptr noundef nonnull align 8 dereferenceable(320) %92, double %105, double %107, double %109, double %111, double %113, double %115, i32 %118, i32 noundef %103)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %122

122:                                              ; preds = %89
  %123 = load ptr, ptr %14, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::TriangleBlob", ptr %123, i32 1
  store ptr %124, ptr %14, align 8, !tbaa !5
  br label %84

125:                                              ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::Frame", ptr %126, i32 0, i32 2
  store ptr %127, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %128 = load ptr, ptr %21, align 8, !tbaa !5
  %129 = call noundef ptr @_ZNK3JPH5ArrayINS_21DebugRendererRecorder8TextBlobENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %128)
  store ptr %129, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %130 = load ptr, ptr %21, align 8, !tbaa !5
  %131 = call noundef ptr @_ZNK3JPH5ArrayINS_21DebugRendererRecorder8TextBlobENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %130)
  store ptr %131, ptr %23, align 8, !tbaa !5
  br label %132

132:                                              ; preds = %165, %125
  %133 = load ptr, ptr %22, align 8, !tbaa !5
  %134 = load ptr, ptr %23, align 8, !tbaa !5
  %135 = icmp ne ptr %133, %134
  br i1 %135, label %137, label %136

136:                                              ; preds = %132
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %168

137:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %138 = load ptr, ptr %22, align 8, !tbaa !5
  store ptr %138, ptr %24, align 8, !tbaa !5
  %139 = getelementptr inbounds %"class.JPH::DebugRendererPlayback", ptr %34, i32 0, i32 0
  %140 = load ptr, ptr %139, align 8, !tbaa !11
  %141 = load ptr, ptr %24, align 8, !tbaa !5
  %142 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::TextBlob", ptr %141, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %25, ptr align 16 %142, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #6
  %143 = load ptr, ptr %24, align 8, !tbaa !5
  %144 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::TextBlob", ptr %143, i32 0, i32 1
  %145 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %144) #6
  %146 = getelementptr inbounds { i64, ptr }, ptr %26, i32 0, i32 0
  %147 = extractvalue { i64, ptr } %145, 0
  store i64 %147, ptr %146, align 8
  %148 = getelementptr inbounds { i64, ptr }, ptr %26, i32 0, i32 1
  %149 = extractvalue { i64, ptr } %145, 1
  store ptr %149, ptr %148, align 8
  %150 = load ptr, ptr %24, align 8, !tbaa !5
  %151 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::TextBlob", ptr %150, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 16 %151, i64 4, i1 false), !tbaa.struct !21
  %152 = load ptr, ptr %24, align 8, !tbaa !5
  %153 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::TextBlob", ptr %152, i32 0, i32 3
  %154 = load float, ptr %153, align 4, !tbaa !29
  %155 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %156 = load double, ptr %155, align 16
  %157 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %158 = load double, ptr %157, align 8
  %159 = getelementptr inbounds %"class.JPH::Color", ptr %27, i32 0, i32 0
  %160 = getelementptr inbounds %union.anon.0, ptr %159, i32 0, i32 0
  %161 = load i32, ptr %160, align 4
  %162 = load ptr, ptr %140, align 8, !tbaa !22
  %163 = getelementptr inbounds ptr, ptr %162, i64 7
  %164 = load ptr, ptr %163, align 8
  call void %164(ptr noundef nonnull align 8 dereferenceable(320) %140, double %156, double %158, ptr noundef nonnull align 8 dereferenceable(16) %26, i32 %161, float noundef %154)
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %165

165:                                              ; preds = %137
  %166 = load ptr, ptr %22, align 8, !tbaa !5
  %167 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::TextBlob", ptr %166, i32 1
  store ptr %167, ptr %22, align 8, !tbaa !5
  br label %132

168:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %169 = load ptr, ptr %5, align 8, !tbaa !5
  %170 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::Frame", ptr %169, i32 0, i32 3
  store ptr %170, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %171 = load ptr, ptr %28, align 8, !tbaa !5
  %172 = call noundef ptr @_ZNK3JPH5ArrayINS_21DebugRendererRecorder12GeometryBlobENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %171)
  store ptr %172, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %173 = load ptr, ptr %28, align 8, !tbaa !5
  %174 = call noundef ptr @_ZNK3JPH5ArrayINS_21DebugRendererRecorder12GeometryBlobENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %173)
  store ptr %174, ptr %30, align 8, !tbaa !5
  br label %175

175:                                              ; preds = %205, %168
  %176 = load ptr, ptr %29, align 8, !tbaa !5
  %177 = load ptr, ptr %30, align 8, !tbaa !5
  %178 = icmp ne ptr %176, %177
  br i1 %178, label %180, label %179

179:                                              ; preds = %175
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %208

180:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  %181 = load ptr, ptr %29, align 8, !tbaa !5
  store ptr %181, ptr %31, align 8, !tbaa !5
  %182 = getelementptr inbounds %"class.JPH::DebugRendererPlayback", ptr %34, i32 0, i32 0
  %183 = load ptr, ptr %182, align 8, !tbaa !11
  %184 = load ptr, ptr %31, align 8, !tbaa !5
  %185 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::GeometryBlob", ptr %184, i32 0, i32 0
  %186 = load ptr, ptr %31, align 8, !tbaa !5
  %187 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::GeometryBlob", ptr %186, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 16 %187, i64 4, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #6
  %188 = getelementptr inbounds %"class.JPH::DebugRendererPlayback", ptr %34, i32 0, i32 2
  %189 = load ptr, ptr %31, align 8, !tbaa !5
  %190 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::GeometryBlob", ptr %189, i32 0, i32 2
  call void @_ZNK3JPH9HashTableIjSt4pairIjNS_3RefINS_13DebugRenderer8GeometryEEEENS_18UnorderedMapDetailIjS5_EENS_4HashIjEESt8equal_toIjEE4findERKj(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<unsigned int, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator") align 8 %33, ptr noundef nonnull align 8 dereferenceable(28) %188, ptr noundef nonnull align 4 dereferenceable(4) %190)
  %191 = call noundef ptr @_ZNK3JPH9HashTableIjSt4pairIjNS_3RefINS_13DebugRenderer8GeometryEEEENS_18UnorderedMapDetailIjS5_EENS_4HashIjEESt8equal_toIjEE12IteratorBaseIKSD_NSD_14const_iteratorEEptEv(ptr noundef nonnull align 8 dereferenceable(12) %33)
  %192 = getelementptr inbounds %"struct.std::pair.47", ptr %191, i32 0, i32 1
  %193 = load ptr, ptr %31, align 8, !tbaa !5
  %194 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::GeometryBlob", ptr %193, i32 0, i32 3
  %195 = load i32, ptr %194, align 8, !tbaa !34
  %196 = load ptr, ptr %31, align 8, !tbaa !5
  %197 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::GeometryBlob", ptr %196, i32 0, i32 4
  %198 = load i32, ptr %197, align 4, !tbaa !39
  %199 = load ptr, ptr %31, align 8, !tbaa !5
  %200 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::GeometryBlob", ptr %199, i32 0, i32 5
  %201 = load i32, ptr %200, align 16, !tbaa !40
  %202 = getelementptr inbounds %"class.JPH::Color", ptr %32, i32 0, i32 0
  %203 = getelementptr inbounds %union.anon.0, ptr %202, i32 0, i32 0
  %204 = load i32, ptr %203, align 4
  call void @_ZN3JPH13DebugRenderer12DrawGeometryERKNS_5Mat44ENS_5ColorERKNS_3RefINS0_8GeometryEEENS0_9ECullModeENS0_11ECastShadowENS0_9EDrawModeE(ptr noundef nonnull align 8 dereferenceable(320) %183, ptr noundef nonnull align 16 dereferenceable(64) %185, i32 %204, ptr noundef nonnull align 8 dereferenceable(8) %192, i32 noundef %195, i32 noundef %198, i32 noundef %201)
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  br label %205

205:                                              ; preds = %180
  %206 = load ptr, ptr %29, align 8, !tbaa !5
  %207 = getelementptr inbounds %"struct.JPH::DebugRendererRecorder::GeometryBlob", ptr %206, i32 1
  store ptr %207, ptr %29, align 8, !tbaa !5
  br label %175

208:                                              ; preds = %179
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(96) ptr @_ZNK3JPH5ArrayINS_21DebugRendererRecorder5FrameENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32)) #5 align 2

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 #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 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSN3JPH21DebugRendererPlaybackE", !6, i64 0, !13, i64 8, !15, i64 40, !17, i64 72}
!13 = !{!"_ZTSN3JPH12UnorderedMapIjNS_3RefINS_16RefTargetVirtualEEENS_4HashIjEESt8equal_toIjEEE", !14, i64 0}
!14 = !{!"_ZTSN3JPH9HashTableIjSt4pairIjNS_3RefINS_16RefTargetVirtualEEEENS_18UnorderedMapDetailIjS4_EENS_4HashIjEESt8equal_toIjEEE", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24}
!15 = !{!"_ZTSN3JPH12UnorderedMapIjNS_3RefINS_13DebugRenderer8GeometryEEENS_4HashIjEESt8equal_toIjEEE", !16, i64 0}
!16 = !{!"_ZTSN3JPH9HashTableIjSt4pairIjNS_3RefINS_13DebugRenderer8GeometryEEEENS_18UnorderedMapDetailIjS5_EENS_4HashIjEESt8equal_toIjEEE", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24}
!17 = !{!"_ZTSN3JPH5ArrayINS_21DebugRendererRecorder5FrameENS_12STLAllocatorIS2_EEEE", !18, i64 0, !18, i64 8, !6, i64 16}
!18 = !{!"long", !7, i64 0}
!19 = !{i64 0, i64 16, !20}
!20 = !{!7, !7, i64 0}
!21 = !{i64 0, i64 4, !20}
!22 = !{!23, !23, i64 0}
!23 = !{!"vtable pointer", !8, i64 0}
!24 = !{!25, !28, i64 52}
!25 = !{!"_ZTSN3JPH21DebugRendererRecorder12TriangleBlobE", !26, i64 0, !26, i64 16, !26, i64 32, !27, i64 48, !28, i64 52}
!26 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!27 = !{!"_ZTSN3JPH5ColorE", !7, i64 0}
!28 = !{!"_ZTSN3JPH13DebugRenderer11ECastShadowE", !7, i64 0}
!29 = !{!30, !33, i64 52}
!30 = !{!"_ZTSN3JPH21DebugRendererRecorder8TextBlobE", !26, i64 0, !31, i64 16, !27, i64 48, !33, i64 52}
!31 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEE", !32, i64 0, !18, i64 8, !7, i64 16}
!32 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEE12_Alloc_hiderE", !6, i64 0}
!33 = !{!"float", !7, i64 0}
!34 = !{!35, !37, i64 72}
!35 = !{!"_ZTSN3JPH21DebugRendererRecorder12GeometryBlobE", !36, i64 0, !27, i64 64, !10, i64 68, !37, i64 72, !28, i64 76, !38, i64 80}
!36 = !{!"_ZTSN3JPH5Mat44E", !7, i64 0}
!37 = !{!"_ZTSN3JPH13DebugRenderer9ECullModeE", !7, i64 0}
!38 = !{!"_ZTSN3JPH13DebugRenderer9EDrawModeE", !7, i64 0}
!39 = !{!35, !28, i64 76}
!40 = !{!35, !38, i64 80}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_string_view" = type { i64, ptr }
%"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<unsigned int, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator" = type { %"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<unsigned int, JPH::Ref<JPH::DebugRenderer::Geometry>>, 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::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<unsigned int, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::IteratorBase.base" = type <{ ptr, i32 }>

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH21DebugRendererPlayback9DrawFrameEj(ptr noundef nonnull align 8 dereferenceable(96) %0, i32 noundef %1) local_unnamed_addr #1 align 2 {
  %3 = alloca %"class.std::basic_string_view", align 8
  %4 = alloca %"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<unsigned int, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator", align 8
  %5 = getelementptr inbounds i8, ptr %0, i64 72
  %6 = zext i32 %1 to i64
  %7 = tail call noundef nonnull align 8 dereferenceable(96) ptr @_ZNK3JPH5ArrayINS_21DebugRendererRecorder5FrameENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %6)
  %8 = tail call noundef ptr @_ZNK3JPH5ArrayINS_21DebugRendererRecorder8LineBlobENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  %9 = tail call noundef ptr @_ZNK3JPH5ArrayINS_21DebugRendererRecorder8LineBlobENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  %.not67 = icmp eq ptr %8, %9
  br i1 %.not67, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %2
  %10 = getelementptr inbounds i8, ptr %7, i64 24
  %11 = tail call noundef ptr @_ZNK3JPH5ArrayINS_21DebugRendererRecorder12TriangleBlobENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
  %12 = tail call noundef ptr @_ZNK3JPH5ArrayINS_21DebugRendererRecorder12TriangleBlobENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
  %.not6469 = icmp eq ptr %11, %12
  br i1 %.not6469, label %._crit_edge73, label %.lr.ph72

.lr.ph:                                           ; preds = %2, %.lr.ph
  %.068 = phi ptr [ %19, %.lr.ph ], [ %8, %2 ]
  %13 = load ptr, ptr %0, align 8, !tbaa !5
  %.sroa.045.0.copyload = load double, ptr %.068, align 16
  %.sroa.246.0..sroa_idx = getelementptr inbounds i8, ptr %.068, i64 8
  %.sroa.246.0.copyload = load double, ptr %.sroa.246.0..sroa_idx, align 8, !tbaa !17
  %14 = getelementptr inbounds i8, ptr %.068, i64 16
  %.sroa.043.0.copyload = load double, ptr %14, align 16
  %.sroa.244.0..sroa_idx = getelementptr inbounds i8, ptr %.068, i64 24
  %.sroa.244.0.copyload = load double, ptr %.sroa.244.0..sroa_idx, align 8, !tbaa !17
  %15 = getelementptr inbounds i8, ptr %.068, i64 32
  %.sroa.042.0.copyload = load i32, ptr %15, align 16, !tbaa !17
  %16 = load ptr, ptr %13, align 8, !tbaa !18
  %17 = getelementptr inbounds i8, ptr %16, i64 16
  %18 = load ptr, ptr %17, align 8
  tail call void %18(ptr noundef nonnull align 8 dereferenceable(320) %13, double %.sroa.045.0.copyload, double %.sroa.246.0.copyload, double %.sroa.043.0.copyload, double %.sroa.244.0.copyload, i32 %.sroa.042.0.copyload)
  %19 = getelementptr inbounds i8, ptr %.068, i64 48
  %.not = icmp eq ptr %19, %9
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge73:                                    ; preds = %.lr.ph72, %._crit_edge
  %20 = getelementptr inbounds i8, ptr %7, i64 48
  %21 = tail call noundef ptr @_ZNK3JPH5ArrayINS_21DebugRendererRecorder8TextBlobENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %20)
  %22 = tail call noundef ptr @_ZNK3JPH5ArrayINS_21DebugRendererRecorder8TextBlobENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %20)
  %.not6574 = icmp eq ptr %21, %22
  br i1 %.not6574, label %._crit_edge78, label %.lr.ph77

.lr.ph77:                                         ; preds = %._crit_edge73
  %23 = getelementptr inbounds i8, ptr %3, i64 8
  br label %38

.lr.ph72:                                         ; preds = %._crit_edge, %.lr.ph72
  %.06170 = phi ptr [ %33, %.lr.ph72 ], [ %11, %._crit_edge ]
  %24 = load ptr, ptr %0, align 8, !tbaa !5
  %.sroa.029.0.copyload = load double, ptr %.06170, align 16
  %.sroa.230.0..sroa_idx = getelementptr inbounds i8, ptr %.06170, i64 8
  %.sroa.230.0.copyload = load double, ptr %.sroa.230.0..sroa_idx, align 8, !tbaa !17
  %25 = getelementptr inbounds i8, ptr %.06170, i64 16
  %.sroa.027.0.copyload = load double, ptr %25, align 16
  %.sroa.228.0..sroa_idx = getelementptr inbounds i8, ptr %.06170, i64 24
  %.sroa.228.0.copyload = load double, ptr %.sroa.228.0..sroa_idx, align 8, !tbaa !17
  %26 = getelementptr inbounds i8, ptr %.06170, i64 32
  %.sroa.025.0.copyload = load double, ptr %26, align 16
  %.sroa.226.0..sroa_idx = getelementptr inbounds i8, ptr %.06170, i64 40
  %.sroa.226.0.copyload = load double, ptr %.sroa.226.0..sroa_idx, align 8, !tbaa !17
  %27 = getelementptr inbounds i8, ptr %.06170, i64 48
  %.sroa.024.0.copyload = load i32, ptr %27, align 16, !tbaa !17
  %28 = getelementptr inbounds i8, ptr %.06170, i64 52
  %29 = load i32, ptr %28, align 4, !tbaa !20
  %30 = load ptr, ptr %24, align 8, !tbaa !18
  %31 = getelementptr inbounds i8, ptr %30, i64 24
  %32 = load ptr, ptr %31, align 8
  tail call void %32(ptr noundef nonnull align 8 dereferenceable(320) %24, double %.sroa.029.0.copyload, double %.sroa.230.0.copyload, double %.sroa.027.0.copyload, double %.sroa.228.0.copyload, double %.sroa.025.0.copyload, double %.sroa.226.0.copyload, i32 %.sroa.024.0.copyload, i32 noundef %29)
  %33 = getelementptr inbounds i8, ptr %.06170, i64 64
  %.not64 = icmp eq ptr %33, %12
  br i1 %.not64, label %._crit_edge73, label %.lr.ph72

._crit_edge78:                                    ; preds = %38, %._crit_edge73
  %34 = getelementptr inbounds i8, ptr %7, i64 72
  %35 = call noundef ptr @_ZNK3JPH5ArrayINS_21DebugRendererRecorder12GeometryBlobENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %34)
  %36 = call noundef ptr @_ZNK3JPH5ArrayINS_21DebugRendererRecorder12GeometryBlobENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %34)
  %.not6679 = icmp eq ptr %35, %36
  br i1 %.not6679, label %._crit_edge83, label %.lr.ph82

.lr.ph82:                                         ; preds = %._crit_edge78
  %37 = getelementptr inbounds i8, ptr %0, i64 40
  br label %51

38:                                               ; preds = %.lr.ph77, %38
  %.06275 = phi ptr [ %21, %.lr.ph77 ], [ %50, %38 ]
  %39 = load ptr, ptr %0, align 8, !tbaa !5
  %.sroa.013.0.copyload = load double, ptr %.06275, align 16
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %.06275, i64 8
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #5
  %40 = getelementptr inbounds i8, ptr %.06275, i64 16
  %41 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %40) #5
  %42 = extractvalue { i64, ptr } %41, 0
  store i64 %42, ptr %3, align 8
  %43 = extractvalue { i64, ptr } %41, 1
  store ptr %43, ptr %23, align 8
  %44 = getelementptr inbounds i8, ptr %.06275, i64 48
  %.sroa.012.0.copyload = load i32, ptr %44, align 16, !tbaa !17
  %45 = getelementptr inbounds i8, ptr %.06275, i64 52
  %46 = load float, ptr %45, align 4, !tbaa !25
  %47 = load ptr, ptr %39, align 8, !tbaa !18
  %48 = getelementptr inbounds i8, ptr %47, i64 56
  %49 = load ptr, ptr %48, align 8
  call void %49(ptr noundef nonnull align 8 dereferenceable(320) %39, double %.sroa.013.0.copyload, double %.sroa.2.0.copyload, ptr noundef nonnull align 8 dereferenceable(16) %3, i32 %.sroa.012.0.copyload, float noundef %46)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  %50 = getelementptr inbounds i8, ptr %.06275, i64 64
  %.not65 = icmp eq ptr %50, %22
  br i1 %.not65, label %._crit_edge78, label %38

._crit_edge83:                                    ; preds = %51, %._crit_edge78
  ret void

51:                                               ; preds = %.lr.ph82, %51
  %.06380 = phi ptr [ %35, %.lr.ph82 ], [ %63, %51 ]
  %52 = load ptr, ptr %0, align 8, !tbaa !5
  %53 = getelementptr inbounds i8, ptr %.06380, i64 64
  %.sroa.0.0.copyload = load i32, ptr %53, align 16, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  %54 = getelementptr inbounds i8, ptr %.06380, i64 68
  call void @_ZNK3JPH9HashTableIjSt4pairIjNS_3RefINS_13DebugRenderer8GeometryEEEENS_18UnorderedMapDetailIjS5_EENS_4HashIjEESt8equal_toIjEE4findERKj(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<unsigned int, std::pair<unsigned int, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<unsigned int, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::Hash<uint32>, std::equal_to<unsigned int>>::const_iterator") align 8 %4, ptr noundef nonnull align 8 dereferenceable(28) %37, ptr noundef nonnull align 4 dereferenceable(4) %54)
  %55 = call noundef ptr @_ZNK3JPH9HashTableIjSt4pairIjNS_3RefINS_13DebugRenderer8GeometryEEEENS_18UnorderedMapDetailIjS5_EENS_4HashIjEESt8equal_toIjEE12IteratorBaseIKSD_NSD_14const_iteratorEEptEv(ptr noundef nonnull align 8 dereferenceable(12) %4)
  %56 = getelementptr inbounds i8, ptr %55, i64 8
  %57 = getelementptr inbounds i8, ptr %.06380, i64 72
  %58 = load i32, ptr %57, align 8, !tbaa !30
  %59 = getelementptr inbounds i8, ptr %.06380, i64 76
  %60 = load i32, ptr %59, align 4, !tbaa !35
  %61 = getelementptr inbounds i8, ptr %.06380, i64 80
  %62 = load i32, ptr %61, align 16, !tbaa !36
  call void @_ZN3JPH13DebugRenderer12DrawGeometryERKNS_5Mat44ENS_5ColorERKNS_3RefINS0_8GeometryEEENS0_9ECullModeENS0_11ECastShadowENS0_9EDrawModeE(ptr noundef nonnull align 8 dereferenceable(320) %52, ptr noundef nonnull align 16 dereferenceable(64) %.06380, i32 %.sroa.0.0.copyload, ptr noundef nonnull align 8 dereferenceable(8) %56, i32 noundef %58, i32 noundef %60, i32 noundef %62)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  %63 = getelementptr inbounds i8, ptr %.06380, i64 96
  %.not66 = icmp eq ptr %63, %36
  br i1 %.not66, label %._crit_edge83, label %51
}

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

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

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 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 = { 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 #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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, !7, i64 0}
!6 = !{!"_ZTSN3JPH21DebugRendererPlaybackE", !7, i64 0, !10, i64 8, !13, i64 40, !15, i64 72}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN3JPH12UnorderedMapIjNS_3RefINS_16RefTargetVirtualEEENS_4HashIjEESt8equal_toIjEEE", !11, i64 0}
!11 = !{!"_ZTSN3JPH9HashTableIjSt4pairIjNS_3RefINS_16RefTargetVirtualEEEENS_18UnorderedMapDetailIjS4_EENS_4HashIjEESt8equal_toIjEEE", !7, i64 0, !7, i64 8, !12, i64 16, !12, i64 20, !12, i64 24}
!12 = !{!"int", !8, i64 0}
!13 = !{!"_ZTSN3JPH12UnorderedMapIjNS_3RefINS_13DebugRenderer8GeometryEEENS_4HashIjEESt8equal_toIjEEE", !14, i64 0}
!14 = !{!"_ZTSN3JPH9HashTableIjSt4pairIjNS_3RefINS_13DebugRenderer8GeometryEEEENS_18UnorderedMapDetailIjS5_EENS_4HashIjEESt8equal_toIjEEE", !7, i64 0, !7, i64 8, !12, i64 16, !12, i64 20, !12, i64 24}
!15 = !{!"_ZTSN3JPH5ArrayINS_21DebugRendererRecorder5FrameENS_12STLAllocatorIS2_EEEE", !16, i64 0, !16, i64 8, !7, i64 16}
!16 = !{!"long", !8, i64 0}
!17 = !{!8, !8, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"vtable pointer", !9, i64 0}
!20 = !{!21, !24, i64 52}
!21 = !{!"_ZTSN3JPH21DebugRendererRecorder12TriangleBlobE", !22, i64 0, !22, i64 16, !22, i64 32, !23, i64 48, !24, i64 52}
!22 = !{!"_ZTSN3JPH4Vec3E", !8, i64 0}
!23 = !{!"_ZTSN3JPH5ColorE", !8, i64 0}
!24 = !{!"_ZTSN3JPH13DebugRenderer11ECastShadowE", !8, i64 0}
!25 = !{!26, !29, i64 52}
!26 = !{!"_ZTSN3JPH21DebugRendererRecorder8TextBlobE", !22, i64 0, !27, i64 16, !23, i64 48, !29, i64 52}
!27 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEE", !28, i64 0, !16, i64 8, !8, i64 16}
!28 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEE12_Alloc_hiderE", !7, i64 0}
!29 = !{!"float", !8, i64 0}
!30 = !{!31, !33, i64 72}
!31 = !{!"_ZTSN3JPH21DebugRendererRecorder12GeometryBlobE", !32, i64 0, !23, i64 64, !12, i64 68, !33, i64 72, !24, i64 76, !34, i64 80}
!32 = !{!"_ZTSN3JPH5Mat44E", !8, i64 0}
!33 = !{!"_ZTSN3JPH13DebugRenderer9ECullModeE", !8, i64 0}
!34 = !{!"_ZTSN3JPH13DebugRenderer9EDrawModeE", !8, i64 0}
!35 = !{!31, !24, i64 76}
!36 = !{!31, !34, i64 80}


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