; LLVM IR from jrouwe/JoltPhysics :: TestFramework/Renderer (DebugRendererImp)

; 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::Color" = type { %union.anon.0 }
%union.anon.0 = type { i32 }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Float3" = type { float, float, float }
%"class.JPH::DebugRenderer::Vertex" = type { %"class.JPH::Float3", %"class.JPH::Float3", %"class.JPH::Float2", %"class.JPH::Color" }
%"class.JPH::Float2" = type { float, float }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }

@_ZN3JPH5Color6sWhiteE = external global %"class.JPH::Color", align 4

; 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: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef) #1 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec310NormalizedEv(ptr noundef nonnull align 16 dereferenceable(16)) #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH13DebugRenderer24Create8thSphereRecursiveERNS_5ArrayIjNS_12STLAllocatorIjEEEERNS1_INS0_6VertexENS2_IS6_EEEENS_4Vec3ERjSA_SB_SA_SB_RKNS_6Float2ESt8functionIFSA_SA_EEi(ptr noundef nonnull align 8 dereferenceable(320) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, double %3, double %4, ptr noundef nonnull align 4 dereferenceable(4) %5, double %6, double %7, ptr noundef nonnull align 4 dereferenceable(4) %8, double %9, double %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef %13, i32 noundef %14) #4 align 2 personality ptr @__gxx_personality_v0 {
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca %"class.JPH::Float3", align 4
  %29 = alloca %"class.JPH::Float3", align 4
  %30 = alloca %"class.JPH::Vec3", align 16
  %31 = alloca %"class.JPH::Vec3", align 16
  %32 = alloca %"class.JPH::DebugRenderer::Vertex", align 4
  %33 = alloca %"class.JPH::Float3", align 4
  %34 = alloca %"class.JPH::Float3", align 4
  %35 = alloca %"class.JPH::Vec3", align 16
  %36 = alloca %"class.JPH::Vec3", align 16
  %37 = alloca %"class.JPH::DebugRenderer::Vertex", align 4
  %38 = alloca %"class.JPH::Float3", align 4
  %39 = alloca %"class.JPH::Float3", align 4
  %40 = alloca %"class.JPH::Vec3", align 16
  %41 = alloca %"class.JPH::Vec3", align 16
  %42 = alloca %"class.JPH::DebugRenderer::Vertex", align 4
  %43 = alloca %"class.JPH::Vec3", align 16
  %44 = alloca %"class.JPH::Vec3", align 16
  %45 = alloca %"class.JPH::Vec3", align 16
  %46 = alloca %"class.JPH::Vec3", align 16
  %47 = alloca %"class.JPH::Vec3", align 16
  %48 = alloca %"class.JPH::Vec3", align 16
  %49 = alloca %"class.JPH::Vec3", align 16
  %50 = alloca %"class.JPH::Vec3", align 16
  %51 = alloca %"class.JPH::Vec3", align 16
  %52 = alloca i32, align 4
  %53 = alloca i32, align 4
  %54 = alloca i32, align 4
  %55 = alloca %"class.JPH::Vec3", align 16
  %56 = alloca %"class.JPH::Vec3", align 16
  %57 = alloca %"class.JPH::Vec3", align 16
  %58 = alloca %"class.std::function", align 8
  %59 = alloca ptr, align 8
  %60 = alloca i32, align 4
  %61 = alloca %"class.JPH::Vec3", align 16
  %62 = alloca %"class.JPH::Vec3", align 16
  %63 = alloca %"class.JPH::Vec3", align 16
  %64 = alloca %"class.std::function", align 8
  %65 = alloca %"class.JPH::Vec3", align 16
  %66 = alloca %"class.JPH::Vec3", align 16
  %67 = alloca %"class.JPH::Vec3", align 16
  %68 = alloca %"class.std::function", align 8
  %69 = alloca %"class.JPH::Vec3", align 16
  %70 = alloca %"class.JPH::Vec3", align 16
  %71 = alloca %"class.JPH::Vec3", align 16
  %72 = alloca %"class.std::function", align 8
  %73 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  store double %3, ptr %73, align 16
  %74 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  store double %4, ptr %74, align 8
  %75 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  store double %6, ptr %75, align 16
  %76 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  store double %7, ptr %76, align 8
  %77 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  store double %9, ptr %77, align 16
  %78 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  store double %10, ptr %78, align 8
  store ptr %0, ptr %19, align 8, !tbaa !5
  store ptr %1, ptr %20, align 8, !tbaa !5
  store ptr %2, ptr %21, align 8, !tbaa !5
  store ptr %5, ptr %22, align 8, !tbaa !5
  store ptr %8, ptr %23, align 8, !tbaa !5
  store ptr %11, ptr %24, align 8, !tbaa !5
  store ptr %12, ptr %25, align 8, !tbaa !5
  store ptr %13, ptr %26, align 8, !tbaa !5
  store i32 %14, ptr %27, align 4, !tbaa !9
  %79 = load ptr, ptr %19, align 8
  %80 = load i32, ptr %27, align 4, !tbaa !9
  %81 = icmp eq i32 %80, 0
  br i1 %81, label %82, label %167

82:                                               ; preds = %15
  %83 = load ptr, ptr %22, align 8, !tbaa !5
  %84 = load i32, ptr %83, align 4, !tbaa !9
  %85 = icmp eq i32 %84, -1
  br i1 %85, label %86, label %108

86:                                               ; preds = %82
  %87 = load ptr, ptr %21, align 8, !tbaa !5
  %88 = call noundef i64 @_ZNK3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %87)
  %89 = trunc i64 %88 to i32
  %90 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 %89, ptr %90, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %28) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %29) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %31, ptr align 16 %16, i64 16, i1 false), !tbaa.struct !11
  %91 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %92 = load double, ptr %91, align 16
  %93 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %94 = load double, ptr %93, align 8
  %95 = call { double, double } @_ZNKSt8functionIFN3JPH4Vec3ES1_EEclES1_(ptr noundef nonnull align 8 dereferenceable(32) %13, double %92, double %94)
  %96 = getelementptr inbounds %"class.JPH::Vec3", ptr %30, i32 0, i32 0
  %97 = getelementptr inbounds %union.anon, ptr %96, i32 0, i32 0
  %98 = getelementptr inbounds { double, double }, ptr %97, i32 0, i32 0
  %99 = extractvalue { double, double } %95, 0
  store double %99, ptr %98, align 16
  %100 = getelementptr inbounds { double, double }, ptr %97, i32 0, i32 1
  %101 = extractvalue { double, double } %95, 1
  store double %101, ptr %100, align 8
  call void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %30, ptr noundef %28)
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #8
  call void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %16, ptr noundef %29)
  %102 = load ptr, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 36, ptr %32) #8
  %103 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %32, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %103, ptr align 4 %28, i64 12, i1 false), !tbaa.struct !13
  %104 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %32, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %104, ptr align 4 %29, i64 12, i1 false), !tbaa.struct !13
  %105 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %32, i32 0, i32 2
  %106 = load ptr, ptr %25, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %105, ptr align 4 %106, i64 8, i1 false), !tbaa.struct !16
  %107 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %32, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %107, ptr align 4 @_ZN3JPH5Color6sWhiteE, i64 4, i1 false), !tbaa.struct !17
  call void @_ZN3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %102, ptr noundef nonnull align 4 dereferenceable(36) %32)
  call void @llvm.lifetime.end.p0(i64 36, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %28) #8
  br label %108

108:                                              ; preds = %86, %82
  %109 = load ptr, ptr %23, align 8, !tbaa !5
  %110 = load i32, ptr %109, align 4, !tbaa !9
  %111 = icmp eq i32 %110, -1
  br i1 %111, label %112, label %134

112:                                              ; preds = %108
  %113 = load ptr, ptr %21, align 8, !tbaa !5
  %114 = call noundef i64 @_ZNK3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %113)
  %115 = trunc i64 %114 to i32
  %116 = load ptr, ptr %23, align 8, !tbaa !5
  store i32 %115, ptr %116, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %33) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %34) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %36, ptr align 16 %17, i64 16, i1 false), !tbaa.struct !11
  %117 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %118 = load double, ptr %117, align 16
  %119 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %120 = load double, ptr %119, align 8
  %121 = call { double, double } @_ZNKSt8functionIFN3JPH4Vec3ES1_EEclES1_(ptr noundef nonnull align 8 dereferenceable(32) %13, double %118, double %120)
  %122 = getelementptr inbounds %"class.JPH::Vec3", ptr %35, i32 0, i32 0
  %123 = getelementptr inbounds %union.anon, ptr %122, i32 0, i32 0
  %124 = getelementptr inbounds { double, double }, ptr %123, i32 0, i32 0
  %125 = extractvalue { double, double } %121, 0
  store double %125, ptr %124, align 16
  %126 = getelementptr inbounds { double, double }, ptr %123, i32 0, i32 1
  %127 = extractvalue { double, double } %121, 1
  store double %127, ptr %126, align 8
  call void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %35, ptr noundef %33)
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #8
  call void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %17, ptr noundef %34)
  %128 = load ptr, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 36, ptr %37) #8
  %129 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %37, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %129, ptr align 4 %33, i64 12, i1 false), !tbaa.struct !13
  %130 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %37, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %130, ptr align 4 %34, i64 12, i1 false), !tbaa.struct !13
  %131 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %37, i32 0, i32 2
  %132 = load ptr, ptr %25, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %131, ptr align 4 %132, i64 8, i1 false), !tbaa.struct !16
  %133 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %37, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %133, ptr align 4 @_ZN3JPH5Color6sWhiteE, i64 4, i1 false), !tbaa.struct !17
  call void @_ZN3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %128, ptr noundef nonnull align 4 dereferenceable(36) %37)
  call void @llvm.lifetime.end.p0(i64 36, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #8
  br label %134

134:                                              ; preds = %112, %108
  %135 = load ptr, ptr %24, align 8, !tbaa !5
  %136 = load i32, ptr %135, align 4, !tbaa !9
  %137 = icmp eq i32 %136, -1
  br i1 %137, label %138, label %160

138:                                              ; preds = %134
  %139 = load ptr, ptr %21, align 8, !tbaa !5
  %140 = call noundef i64 @_ZNK3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %139)
  %141 = trunc i64 %140 to i32
  %142 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 %141, ptr %142, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %38) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %39) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %41, ptr align 16 %18, i64 16, i1 false), !tbaa.struct !11
  %143 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %144 = load double, ptr %143, align 16
  %145 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %146 = load double, ptr %145, align 8
  %147 = call { double, double } @_ZNKSt8functionIFN3JPH4Vec3ES1_EEclES1_(ptr noundef nonnull align 8 dereferenceable(32) %13, double %144, double %146)
  %148 = getelementptr inbounds %"class.JPH::Vec3", ptr %40, i32 0, i32 0
  %149 = getelementptr inbounds %union.anon, ptr %148, i32 0, i32 0
  %150 = getelementptr inbounds { double, double }, ptr %149, i32 0, i32 0
  %151 = extractvalue { double, double } %147, 0
  store double %151, ptr %150, align 16
  %152 = getelementptr inbounds { double, double }, ptr %149, i32 0, i32 1
  %153 = extractvalue { double, double } %147, 1
  store double %153, ptr %152, align 8
  call void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %40, ptr noundef %38)
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #8
  call void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %18, ptr noundef %39)
  %154 = load ptr, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 36, ptr %42) #8
  %155 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %42, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %155, ptr align 4 %38, i64 12, i1 false), !tbaa.struct !13
  %156 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %42, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %156, ptr align 4 %39, i64 12, i1 false), !tbaa.struct !13
  %157 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %42, i32 0, i32 2
  %158 = load ptr, ptr %25, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %157, ptr align 4 %158, i64 8, i1 false), !tbaa.struct !16
  %159 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %42, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %159, ptr align 4 @_ZN3JPH5Color6sWhiteE, i64 4, i1 false), !tbaa.struct !17
  call void @_ZN3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %154, ptr noundef nonnull align 4 dereferenceable(36) %42)
  call void @llvm.lifetime.end.p0(i64 36, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %38) #8
  br label %160

160:                                              ; preds = %138, %134
  %161 = load ptr, ptr %20, align 8, !tbaa !5
  %162 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %161, ptr noundef nonnull align 4 dereferenceable(4) %162)
  %163 = load ptr, ptr %20, align 8, !tbaa !5
  %164 = load ptr, ptr %23, align 8, !tbaa !5
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %163, ptr noundef nonnull align 4 dereferenceable(4) %164)
  %165 = load ptr, ptr %20, align 8, !tbaa !5
  %166 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %165, ptr noundef nonnull align 4 dereferenceable(4) %166)
  br label %314

167:                                              ; preds = %15
  call void @llvm.lifetime.start.p0(i64 16, ptr %43) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %44) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %45, ptr align 16 %17, i64 16, i1 false), !tbaa.struct !11
  %168 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 0
  %169 = load double, ptr %168, align 16
  %170 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 1
  %171 = load double, ptr %170, align 8
  %172 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %16, double %169, double %171)
  %173 = getelementptr inbounds %"class.JPH::Vec3", ptr %44, i32 0, i32 0
  %174 = getelementptr inbounds %union.anon, ptr %173, i32 0, i32 0
  %175 = getelementptr inbounds { double, double }, ptr %174, i32 0, i32 0
  %176 = extractvalue { double, double } %172, 0
  store double %176, ptr %175, align 16
  %177 = getelementptr inbounds { double, double }, ptr %174, i32 0, i32 1
  %178 = extractvalue { double, double } %172, 1
  store double %178, ptr %177, align 8
  %179 = call { double, double } @_ZNK3JPH4Vec310NormalizedEv(ptr noundef nonnull align 16 dereferenceable(16) %44)
  %180 = getelementptr inbounds %"class.JPH::Vec3", ptr %43, i32 0, i32 0
  %181 = getelementptr inbounds %union.anon, ptr %180, i32 0, i32 0
  %182 = getelementptr inbounds { double, double }, ptr %181, i32 0, i32 0
  %183 = extractvalue { double, double } %179, 0
  store double %183, ptr %182, align 16
  %184 = getelementptr inbounds { double, double }, ptr %181, i32 0, i32 1
  %185 = extractvalue { double, double } %179, 1
  store double %185, ptr %184, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %46) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %47) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %48, ptr align 16 %18, i64 16, i1 false), !tbaa.struct !11
  %186 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 0
  %187 = load double, ptr %186, align 16
  %188 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 1
  %189 = load double, ptr %188, align 8
  %190 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %17, double %187, double %189)
  %191 = getelementptr inbounds %"class.JPH::Vec3", ptr %47, i32 0, i32 0
  %192 = getelementptr inbounds %union.anon, ptr %191, i32 0, i32 0
  %193 = getelementptr inbounds { double, double }, ptr %192, i32 0, i32 0
  %194 = extractvalue { double, double } %190, 0
  store double %194, ptr %193, align 16
  %195 = getelementptr inbounds { double, double }, ptr %192, i32 0, i32 1
  %196 = extractvalue { double, double } %190, 1
  store double %196, ptr %195, align 8
  %197 = call { double, double } @_ZNK3JPH4Vec310NormalizedEv(ptr noundef nonnull align 16 dereferenceable(16) %47)
  %198 = getelementptr inbounds %"class.JPH::Vec3", ptr %46, i32 0, i32 0
  %199 = getelementptr inbounds %union.anon, ptr %198, i32 0, i32 0
  %200 = getelementptr inbounds { double, double }, ptr %199, i32 0, i32 0
  %201 = extractvalue { double, double } %197, 0
  store double %201, ptr %200, align 16
  %202 = getelementptr inbounds { double, double }, ptr %199, i32 0, i32 1
  %203 = extractvalue { double, double } %197, 1
  store double %203, ptr %202, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %49) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %50) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %51, ptr align 16 %16, i64 16, i1 false), !tbaa.struct !11
  %204 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 0
  %205 = load double, ptr %204, align 16
  %206 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 1
  %207 = load double, ptr %206, align 8
  %208 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %18, double %205, double %207)
  %209 = getelementptr inbounds %"class.JPH::Vec3", ptr %50, i32 0, i32 0
  %210 = getelementptr inbounds %union.anon, ptr %209, i32 0, i32 0
  %211 = getelementptr inbounds { double, double }, ptr %210, i32 0, i32 0
  %212 = extractvalue { double, double } %208, 0
  store double %212, ptr %211, align 16
  %213 = getelementptr inbounds { double, double }, ptr %210, i32 0, i32 1
  %214 = extractvalue { double, double } %208, 1
  store double %214, ptr %213, align 8
  %215 = call { double, double } @_ZNK3JPH4Vec310NormalizedEv(ptr noundef nonnull align 16 dereferenceable(16) %50)
  %216 = getelementptr inbounds %"class.JPH::Vec3", ptr %49, i32 0, i32 0
  %217 = getelementptr inbounds %union.anon, ptr %216, i32 0, i32 0
  %218 = getelementptr inbounds { double, double }, ptr %217, i32 0, i32 0
  %219 = extractvalue { double, double } %215, 0
  store double %219, ptr %218, align 16
  %220 = getelementptr inbounds { double, double }, ptr %217, i32 0, i32 1
  %221 = extractvalue { double, double } %215, 1
  store double %221, ptr %220, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %50) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #8
  store i32 -1, ptr %52, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #8
  store i32 -1, ptr %53, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #8
  store i32 -1, ptr %54, align 4, !tbaa !9
  %222 = load ptr, ptr %20, align 8, !tbaa !5
  %223 = load ptr, ptr %21, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %55, ptr align 16 %16, i64 16, i1 false), !tbaa.struct !11
  %224 = load ptr, ptr %22, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %56, ptr align 16 %43, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %57, ptr align 16 %49, i64 16, i1 false), !tbaa.struct !11
  %225 = load ptr, ptr %25, align 8, !tbaa !5
  call void @_ZNSt8functionIFN3JPH4Vec3ES1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %58, ptr noundef nonnull align 8 dereferenceable(32) %13)
  %226 = load i32, ptr %27, align 4, !tbaa !9
  %227 = sub nsw i32 %226, 1
  %228 = getelementptr inbounds { double, double }, ptr %55, i32 0, i32 0
  %229 = load double, ptr %228, align 16
  %230 = getelementptr inbounds { double, double }, ptr %55, i32 0, i32 1
  %231 = load double, ptr %230, align 8
  %232 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 0
  %233 = load double, ptr %232, align 16
  %234 = getelementptr inbounds { double, double }, ptr %56, i32 0, i32 1
  %235 = load double, ptr %234, align 8
  %236 = getelementptr inbounds { double, double }, ptr %57, i32 0, i32 0
  %237 = load double, ptr %236, align 16
  %238 = getelementptr inbounds { double, double }, ptr %57, i32 0, i32 1
  %239 = load double, ptr %238, align 8
  invoke void @_ZN3JPH13DebugRenderer24Create8thSphereRecursiveERNS_5ArrayIjNS_12STLAllocatorIjEEEERNS1_INS0_6VertexENS2_IS6_EEEENS_4Vec3ERjSA_SB_SA_SB_RKNS_6Float2ESt8functionIFSA_SA_EEi(ptr noundef nonnull align 8 dereferenceable(320) %79, ptr noundef nonnull align 8 dereferenceable(24) %222, ptr noundef nonnull align 8 dereferenceable(24) %223, double %229, double %231, ptr noundef nonnull align 4 dereferenceable(4) %224, double %233, double %235, ptr noundef nonnull align 4 dereferenceable(4) %52, double %237, double %239, ptr noundef nonnull align 4 dereferenceable(4) %54, ptr noundef nonnull align 4 dereferenceable(8) %225, ptr noundef %58, i32 noundef %227)
          to label %240 unwind label %297

240:                                              ; preds = %167
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %58) #8
  %241 = load ptr, ptr %20, align 8, !tbaa !5
  %242 = load ptr, ptr %21, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %61, ptr align 16 %43, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %62, ptr align 16 %46, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %63, ptr align 16 %49, i64 16, i1 false), !tbaa.struct !11
  %243 = load ptr, ptr %25, align 8, !tbaa !5
  call void @_ZNSt8functionIFN3JPH4Vec3ES1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %64, ptr noundef nonnull align 8 dereferenceable(32) %13)
  %244 = load i32, ptr %27, align 4, !tbaa !9
  %245 = sub nsw i32 %244, 1
  %246 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 0
  %247 = load double, ptr %246, align 16
  %248 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 1
  %249 = load double, ptr %248, align 8
  %250 = getelementptr inbounds { double, double }, ptr %62, i32 0, i32 0
  %251 = load double, ptr %250, align 16
  %252 = getelementptr inbounds { double, double }, ptr %62, i32 0, i32 1
  %253 = load double, ptr %252, align 8
  %254 = getelementptr inbounds { double, double }, ptr %63, i32 0, i32 0
  %255 = load double, ptr %254, align 16
  %256 = getelementptr inbounds { double, double }, ptr %63, i32 0, i32 1
  %257 = load double, ptr %256, align 8
  invoke void @_ZN3JPH13DebugRenderer24Create8thSphereRecursiveERNS_5ArrayIjNS_12STLAllocatorIjEEEERNS1_INS0_6VertexENS2_IS6_EEEENS_4Vec3ERjSA_SB_SA_SB_RKNS_6Float2ESt8functionIFSA_SA_EEi(ptr noundef nonnull align 8 dereferenceable(320) %79, ptr noundef nonnull align 8 dereferenceable(24) %241, ptr noundef nonnull align 8 dereferenceable(24) %242, double %247, double %249, ptr noundef nonnull align 4 dereferenceable(4) %52, double %251, double %253, ptr noundef nonnull align 4 dereferenceable(4) %53, double %255, double %257, ptr noundef nonnull align 4 dereferenceable(4) %54, ptr noundef nonnull align 4 dereferenceable(8) %243, ptr noundef %64, i32 noundef %245)
          to label %258 unwind label %301

258:                                              ; preds = %240
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %64) #8
  %259 = load ptr, ptr %20, align 8, !tbaa !5
  %260 = load ptr, ptr %21, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %65, ptr align 16 %43, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %66, ptr align 16 %17, i64 16, i1 false), !tbaa.struct !11
  %261 = load ptr, ptr %23, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %67, ptr align 16 %46, i64 16, i1 false), !tbaa.struct !11
  %262 = load ptr, ptr %25, align 8, !tbaa !5
  call void @_ZNSt8functionIFN3JPH4Vec3ES1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %68, ptr noundef nonnull align 8 dereferenceable(32) %13)
  %263 = load i32, ptr %27, align 4, !tbaa !9
  %264 = sub nsw i32 %263, 1
  %265 = getelementptr inbounds { double, double }, ptr %65, i32 0, i32 0
  %266 = load double, ptr %265, align 16
  %267 = getelementptr inbounds { double, double }, ptr %65, i32 0, i32 1
  %268 = load double, ptr %267, align 8
  %269 = getelementptr inbounds { double, double }, ptr %66, i32 0, i32 0
  %270 = load double, ptr %269, align 16
  %271 = getelementptr inbounds { double, double }, ptr %66, i32 0, i32 1
  %272 = load double, ptr %271, align 8
  %273 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 0
  %274 = load double, ptr %273, align 16
  %275 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 1
  %276 = load double, ptr %275, align 8
  invoke void @_ZN3JPH13DebugRenderer24Create8thSphereRecursiveERNS_5ArrayIjNS_12STLAllocatorIjEEEERNS1_INS0_6VertexENS2_IS6_EEEENS_4Vec3ERjSA_SB_SA_SB_RKNS_6Float2ESt8functionIFSA_SA_EEi(ptr noundef nonnull align 8 dereferenceable(320) %79, ptr noundef nonnull align 8 dereferenceable(24) %259, ptr noundef nonnull align 8 dereferenceable(24) %260, double %266, double %268, ptr noundef nonnull align 4 dereferenceable(4) %52, double %270, double %272, ptr noundef nonnull align 4 dereferenceable(4) %261, double %274, double %276, ptr noundef nonnull align 4 dereferenceable(4) %53, ptr noundef nonnull align 4 dereferenceable(8) %262, ptr noundef %68, i32 noundef %264)
          to label %277 unwind label %305

277:                                              ; preds = %258
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %68) #8
  %278 = load ptr, ptr %20, align 8, !tbaa !5
  %279 = load ptr, ptr %21, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %69, ptr align 16 %49, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %70, ptr align 16 %46, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %71, ptr align 16 %18, i64 16, i1 false), !tbaa.struct !11
  %280 = load ptr, ptr %24, align 8, !tbaa !5
  %281 = load ptr, ptr %25, align 8, !tbaa !5
  call void @_ZNSt8functionIFN3JPH4Vec3ES1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %72, ptr noundef nonnull align 8 dereferenceable(32) %13)
  %282 = load i32, ptr %27, align 4, !tbaa !9
  %283 = sub nsw i32 %282, 1
  %284 = getelementptr inbounds { double, double }, ptr %69, i32 0, i32 0
  %285 = load double, ptr %284, align 16
  %286 = getelementptr inbounds { double, double }, ptr %69, i32 0, i32 1
  %287 = load double, ptr %286, align 8
  %288 = getelementptr inbounds { double, double }, ptr %70, i32 0, i32 0
  %289 = load double, ptr %288, align 16
  %290 = getelementptr inbounds { double, double }, ptr %70, i32 0, i32 1
  %291 = load double, ptr %290, align 8
  %292 = getelementptr inbounds { double, double }, ptr %71, i32 0, i32 0
  %293 = load double, ptr %292, align 16
  %294 = getelementptr inbounds { double, double }, ptr %71, i32 0, i32 1
  %295 = load double, ptr %294, align 8
  invoke void @_ZN3JPH13DebugRenderer24Create8thSphereRecursiveERNS_5ArrayIjNS_12STLAllocatorIjEEEERNS1_INS0_6VertexENS2_IS6_EEEENS_4Vec3ERjSA_SB_SA_SB_RKNS_6Float2ESt8functionIFSA_SA_EEi(ptr noundef nonnull align 8 dereferenceable(320) %79, ptr noundef nonnull align 8 dereferenceable(24) %278, ptr noundef nonnull align 8 dereferenceable(24) %279, double %285, double %287, ptr noundef nonnull align 4 dereferenceable(4) %54, double %289, double %291, ptr noundef nonnull align 4 dereferenceable(4) %53, double %293, double %295, ptr noundef nonnull align 4 dereferenceable(4) %280, ptr noundef nonnull align 4 dereferenceable(8) %281, ptr noundef %72, i32 noundef %283)
          to label %296 unwind label %309

296:                                              ; preds = %277
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %72) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #8
  br label %314

297:                                              ; preds = %167
  %298 = landingpad { ptr, i32 }
          cleanup
  %299 = extractvalue { ptr, i32 } %298, 0
  store ptr %299, ptr %59, align 8
  %300 = extractvalue { ptr, i32 } %298, 1
  store i32 %300, ptr %60, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %58) #8
  br label %313

301:                                              ; preds = %240
  %302 = landingpad { ptr, i32 }
          cleanup
  %303 = extractvalue { ptr, i32 } %302, 0
  store ptr %303, ptr %59, align 8
  %304 = extractvalue { ptr, i32 } %302, 1
  store i32 %304, ptr %60, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %64) #8
  br label %313

305:                                              ; preds = %258
  %306 = landingpad { ptr, i32 }
          cleanup
  %307 = extractvalue { ptr, i32 } %306, 0
  store ptr %307, ptr %59, align 8
  %308 = extractvalue { ptr, i32 } %306, 1
  store i32 %308, ptr %60, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %68) #8
  br label %313

309:                                              ; preds = %277
  %310 = landingpad { ptr, i32 }
          cleanup
  %311 = extractvalue { ptr, i32 } %310, 0
  store ptr %311, ptr %59, align 8
  %312 = extractvalue { ptr, i32 } %310, 1
  store i32 %312, ptr %60, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %72) #8
  br label %313

313:                                              ; preds = %309, %305, %301, %297
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #8
  br label %315

314:                                              ; preds = %296, %160
  ret void

315:                                              ; preds = %313
  %316 = load ptr, ptr %59, align 8
  %317 = load i32, ptr %60, align 4
  %318 = insertvalue { ptr, i32 } poison, ptr %316, 0
  %319 = insertvalue { ptr, i32 } %318, i32 %317, 1
  resume { ptr, i32 } %319
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(36)) #6 align 2

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

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

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

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

!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 = !{i64 0, i64 16, !12}
!12 = !{!7, !7, i64 0}
!13 = !{i64 0, i64 4, !14, i64 4, i64 4, !14, i64 8, i64 4, !14}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{i64 0, i64 4, !14, i64 4, i64 4, !14}
!17 = !{i64 0, i64 4, !12}


; 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.JPH::Color" = type { %union.anon.0 }
%union.anon.0 = type { i32 }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Float3" = type { float, float, float }
%"class.JPH::DebugRenderer::Vertex" = type { %"class.JPH::Float3", %"class.JPH::Float3", %"class.JPH::Float2", %"class.JPH::Color" }
%"class.JPH::Float2" = type { float, float }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }

@_ZN3JPH5Color6sWhiteE = external local_unnamed_addr global %"class.JPH::Color", align 4

; 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: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress 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) #2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec310NormalizedEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH13DebugRenderer24Create8thSphereRecursiveERNS_5ArrayIjNS_12STLAllocatorIjEEEERNS1_INS0_6VertexENS2_IS6_EEEENS_4Vec3ERjSA_SB_SA_SB_RKNS_6Float2ESt8functionIFSA_SA_EEi(ptr noundef nonnull align 8 dereferenceable(320) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, double %3, double %4, ptr noundef nonnull align 4 dereferenceable(4) %5, double %6, double %7, ptr noundef nonnull align 4 dereferenceable(4) %8, double %9, double %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef %13, i32 noundef %14) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca %"class.JPH::Float3", align 4
  %20 = alloca %"class.JPH::Float3", align 4
  %21 = alloca %"class.JPH::Vec3", align 16
  %22 = alloca %"class.JPH::DebugRenderer::Vertex", align 4
  %23 = alloca %"class.JPH::Float3", align 4
  %24 = alloca %"class.JPH::Float3", align 4
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca %"class.JPH::DebugRenderer::Vertex", align 4
  %27 = alloca %"class.JPH::Float3", align 4
  %28 = alloca %"class.JPH::Float3", align 4
  %29 = alloca %"class.JPH::Vec3", align 16
  %30 = alloca %"class.JPH::DebugRenderer::Vertex", align 4
  %31 = alloca %"class.JPH::Vec3", align 16
  %32 = alloca %"class.JPH::Vec3", align 16
  %33 = alloca %"class.JPH::Vec3", align 16
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca %"class.std::function", align 8
  %38 = alloca %"class.std::function", align 8
  %39 = alloca %"class.std::function", align 8
  %40 = alloca %"class.std::function", align 8
  store double %3, ptr %16, align 16
  %41 = getelementptr inbounds i8, ptr %16, i64 8
  store double %4, ptr %41, align 8
  store double %6, ptr %17, align 16
  %42 = getelementptr inbounds i8, ptr %17, i64 8
  store double %7, ptr %42, align 8
  store double %9, ptr %18, align 16
  %43 = getelementptr inbounds i8, ptr %18, i64 8
  store double %10, ptr %43, align 8
  %44 = icmp eq i32 %14, 0
  br i1 %44, label %45, label %91

45:                                               ; preds = %15
  %46 = load i32, ptr %5, align 4, !tbaa !5
  %47 = icmp eq i32 %46, -1
  br i1 %47, label %48, label %60

48:                                               ; preds = %45
  %49 = tail call noundef i64 @_ZNK3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %50 = trunc i64 %49 to i32
  store i32 %50, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %19) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %20) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #8
  %51 = tail call { double, double } @_ZNKSt8functionIFN3JPH4Vec3ES1_EEclES1_(ptr noundef nonnull align 8 dereferenceable(32) %13, double %3, double %4)
  %52 = extractvalue { double, double } %51, 0
  store double %52, ptr %21, align 16
  %53 = getelementptr inbounds i8, ptr %21, i64 8
  %54 = extractvalue { double, double } %51, 1
  store double %54, ptr %53, align 8
  call void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %21, ptr noundef nonnull %19)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #8
  call void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %16, ptr noundef nonnull %20)
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %22) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) %19, i64 12, i1 false), !tbaa.struct !9
  %55 = getelementptr inbounds i8, ptr %22, i64 12
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %55, ptr noundef nonnull align 4 dereferenceable(12) %20, i64 12, i1 false), !tbaa.struct !9
  %56 = getelementptr inbounds i8, ptr %22, i64 24
  %57 = load i64, ptr %12, align 4
  store i64 %57, ptr %56, align 4
  %58 = getelementptr inbounds i8, ptr %22, i64 32
  %59 = load i32, ptr @_ZN3JPH5Color6sWhiteE, align 4, !tbaa !12
  store i32 %59, ptr %58, align 4, !tbaa !12
  call void @_ZN3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(36) %22)
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %19) #8
  br label %60

60:                                               ; preds = %48, %45
  %61 = load i32, ptr %8, align 4, !tbaa !5
  %62 = icmp eq i32 %61, -1
  br i1 %62, label %63, label %75

63:                                               ; preds = %60
  %64 = call noundef i64 @_ZNK3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %65 = trunc i64 %64 to i32
  store i32 %65, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %23) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %24) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #8
  %.sroa.036.0.copyload = load double, ptr %17, align 16
  %.sroa.237.0.copyload = load double, ptr %42, align 8, !tbaa !12
  %66 = call { double, double } @_ZNKSt8functionIFN3JPH4Vec3ES1_EEclES1_(ptr noundef nonnull align 8 dereferenceable(32) %13, double %.sroa.036.0.copyload, double %.sroa.237.0.copyload)
  %67 = extractvalue { double, double } %66, 0
  store double %67, ptr %25, align 16
  %68 = getelementptr inbounds i8, ptr %25, i64 8
  %69 = extractvalue { double, double } %66, 1
  store double %69, ptr %68, align 8
  call void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %25, ptr noundef nonnull %23)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #8
  call void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %17, ptr noundef nonnull %24)
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %26) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %26, ptr noundef nonnull align 4 dereferenceable(12) %23, i64 12, i1 false), !tbaa.struct !9
  %70 = getelementptr inbounds i8, ptr %26, i64 12
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %70, ptr noundef nonnull align 4 dereferenceable(12) %24, i64 12, i1 false), !tbaa.struct !9
  %71 = getelementptr inbounds i8, ptr %26, i64 24
  %72 = load i64, ptr %12, align 4
  store i64 %72, ptr %71, align 4
  %73 = getelementptr inbounds i8, ptr %26, i64 32
  %74 = load i32, ptr @_ZN3JPH5Color6sWhiteE, align 4, !tbaa !12
  store i32 %74, ptr %73, align 4, !tbaa !12
  call void @_ZN3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(36) %26)
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %26) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %24) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %23) #8
  br label %75

75:                                               ; preds = %63, %60
  %76 = load i32, ptr %11, align 4, !tbaa !5
  %77 = icmp eq i32 %76, -1
  br i1 %77, label %78, label %90

78:                                               ; preds = %75
  %79 = call noundef i64 @_ZNK3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %80 = trunc i64 %79 to i32
  store i32 %80, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %27) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %28) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %29) #8
  %.sroa.034.0.copyload = load double, ptr %18, align 16
  %.sroa.235.0.copyload = load double, ptr %43, align 8, !tbaa !12
  %81 = call { double, double } @_ZNKSt8functionIFN3JPH4Vec3ES1_EEclES1_(ptr noundef nonnull align 8 dereferenceable(32) %13, double %.sroa.034.0.copyload, double %.sroa.235.0.copyload)
  %82 = extractvalue { double, double } %81, 0
  store double %82, ptr %29, align 16
  %83 = getelementptr inbounds i8, ptr %29, i64 8
  %84 = extractvalue { double, double } %81, 1
  store double %84, ptr %83, align 8
  call void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %29, ptr noundef nonnull %27)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %29) #8
  call void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %18, ptr noundef nonnull %28)
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %30) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %30, ptr noundef nonnull align 4 dereferenceable(12) %27, i64 12, i1 false), !tbaa.struct !9
  %85 = getelementptr inbounds i8, ptr %30, i64 12
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %85, ptr noundef nonnull align 4 dereferenceable(12) %28, i64 12, i1 false), !tbaa.struct !9
  %86 = getelementptr inbounds i8, ptr %30, i64 24
  %87 = load i64, ptr %12, align 4
  store i64 %87, ptr %86, align 4
  %88 = getelementptr inbounds i8, ptr %30, i64 32
  %89 = load i32, ptr @_ZN3JPH5Color6sWhiteE, align 4, !tbaa !12
  store i32 %89, ptr %88, align 4, !tbaa !12
  call void @_ZN3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(36) %30)
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %30) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %28) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %27) #8
  br label %90

90:                                               ; preds = %78, %75
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(4) %11)
  br label %127

91:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %31) #8
  %92 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %16, double %6, double %7)
  %93 = extractvalue { double, double } %92, 0
  store double %93, ptr %31, align 16
  %94 = getelementptr inbounds i8, ptr %31, i64 8
  %95 = extractvalue { double, double } %92, 1
  store double %95, ptr %94, align 8
  %96 = call { double, double } @_ZNK3JPH4Vec310NormalizedEv(ptr noundef nonnull align 16 dereferenceable(16) %31)
  %97 = extractvalue { double, double } %96, 0
  %98 = extractvalue { double, double } %96, 1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %31) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %32) #8
  %.sroa.026.0.copyload = load double, ptr %18, align 16
  %.sroa.227.0.copyload = load double, ptr %43, align 8, !tbaa !12
  %99 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %17, double %.sroa.026.0.copyload, double %.sroa.227.0.copyload)
  %100 = extractvalue { double, double } %99, 0
  store double %100, ptr %32, align 16
  %101 = getelementptr inbounds i8, ptr %32, i64 8
  %102 = extractvalue { double, double } %99, 1
  store double %102, ptr %101, align 8
  %103 = call { double, double } @_ZNK3JPH4Vec310NormalizedEv(ptr noundef nonnull align 16 dereferenceable(16) %32)
  %104 = extractvalue { double, double } %103, 0
  %105 = extractvalue { double, double } %103, 1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %33) #8
  %.sroa.023.0.copyload = load double, ptr %16, align 16
  %.sroa.224.0.copyload = load double, ptr %41, align 8, !tbaa !12
  %106 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %18, double %.sroa.023.0.copyload, double %.sroa.224.0.copyload)
  %107 = extractvalue { double, double } %106, 0
  store double %107, ptr %33, align 16
  %108 = getelementptr inbounds i8, ptr %33, i64 8
  %109 = extractvalue { double, double } %106, 1
  store double %109, ptr %108, align 8
  %110 = call { double, double } @_ZNK3JPH4Vec310NormalizedEv(ptr noundef nonnull align 16 dereferenceable(16) %33)
  %111 = extractvalue { double, double } %110, 0
  %112 = extractvalue { double, double } %110, 1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %33) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %34) #8
  store i32 -1, ptr %34, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %35) #8
  store i32 -1, ptr %35, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %36) #8
  store i32 -1, ptr %36, align 4, !tbaa !5
  %.sroa.021.0.copyload = load double, ptr %16, align 16
  %.sroa.222.0.copyload = load double, ptr %41, align 8, !tbaa !12
  call void @_ZNSt8functionIFN3JPH4Vec3ES1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef nonnull align 8 dereferenceable(32) %13)
  %113 = add nsw i32 %14, -1
  invoke void @_ZN3JPH13DebugRenderer24Create8thSphereRecursiveERNS_5ArrayIjNS_12STLAllocatorIjEEEERNS1_INS0_6VertexENS2_IS6_EEEENS_4Vec3ERjSA_SB_SA_SB_RKNS_6Float2ESt8functionIFSA_SA_EEi(ptr noundef nonnull align 8 dereferenceable(320) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, double %.sroa.021.0.copyload, double %.sroa.222.0.copyload, ptr noundef nonnull align 4 dereferenceable(4) %5, double %97, double %98, ptr noundef nonnull align 4 dereferenceable(4) %34, double %111, double %112, ptr noundef nonnull align 4 dereferenceable(4) %36, ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull %37, i32 noundef %113)
          to label %114 unwind label %118

114:                                              ; preds = %91
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %37) #8
  call void @_ZNSt8functionIFN3JPH4Vec3ES1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull align 8 dereferenceable(32) %13)
  invoke void @_ZN3JPH13DebugRenderer24Create8thSphereRecursiveERNS_5ArrayIjNS_12STLAllocatorIjEEEERNS1_INS0_6VertexENS2_IS6_EEEENS_4Vec3ERjSA_SB_SA_SB_RKNS_6Float2ESt8functionIFSA_SA_EEi(ptr noundef nonnull align 8 dereferenceable(320) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, double %97, double %98, ptr noundef nonnull align 4 dereferenceable(4) %34, double %104, double %105, ptr noundef nonnull align 4 dereferenceable(4) %35, double %111, double %112, ptr noundef nonnull align 4 dereferenceable(4) %36, ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull %38, i32 noundef %113)
          to label %115 unwind label %120

115:                                              ; preds = %114
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %38) #8
  %.sroa.07.0.copyload = load double, ptr %17, align 16
  %.sroa.28.0.copyload = load double, ptr %42, align 8, !tbaa !12
  call void @_ZNSt8functionIFN3JPH4Vec3ES1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef nonnull align 8 dereferenceable(32) %13)
  invoke void @_ZN3JPH13DebugRenderer24Create8thSphereRecursiveERNS_5ArrayIjNS_12STLAllocatorIjEEEERNS1_INS0_6VertexENS2_IS6_EEEENS_4Vec3ERjSA_SB_SA_SB_RKNS_6Float2ESt8functionIFSA_SA_EEi(ptr noundef nonnull align 8 dereferenceable(320) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, double %97, double %98, ptr noundef nonnull align 4 dereferenceable(4) %34, double %.sroa.07.0.copyload, double %.sroa.28.0.copyload, ptr noundef nonnull align 4 dereferenceable(4) %8, double %104, double %105, ptr noundef nonnull align 4 dereferenceable(4) %35, ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull %39, i32 noundef %113)
          to label %116 unwind label %122

116:                                              ; preds = %115
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %39) #8
  %.sroa.0.0.copyload = load double, ptr %18, align 16
  %.sroa.2.0.copyload = load double, ptr %43, align 8, !tbaa !12
  call void @_ZNSt8functionIFN3JPH4Vec3ES1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(32) %40, ptr noundef nonnull align 8 dereferenceable(32) %13)
  invoke void @_ZN3JPH13DebugRenderer24Create8thSphereRecursiveERNS_5ArrayIjNS_12STLAllocatorIjEEEERNS1_INS0_6VertexENS2_IS6_EEEENS_4Vec3ERjSA_SB_SA_SB_RKNS_6Float2ESt8functionIFSA_SA_EEi(ptr noundef nonnull align 8 dereferenceable(320) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, double %111, double %112, ptr noundef nonnull align 4 dereferenceable(4) %36, double %104, double %105, ptr noundef nonnull align 4 dereferenceable(4) %35, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull %40, i32 noundef %113)
          to label %117 unwind label %124

117:                                              ; preds = %116
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %40) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %35) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %34) #8
  br label %127

118:                                              ; preds = %91
  %119 = landingpad { ptr, i32 }
          cleanup
  br label %126

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

122:                                              ; preds = %115
  %123 = landingpad { ptr, i32 }
          cleanup
  br label %126

124:                                              ; preds = %116
  %125 = landingpad { ptr, i32 }
          cleanup
  br label %126

126:                                              ; preds = %124, %122, %120, %118
  %.sink = phi ptr [ %40, %124 ], [ %39, %122 ], [ %38, %120 ], [ %37, %118 ]
  %.pn = phi { ptr, i32 } [ %125, %124 ], [ %123, %122 ], [ %121, %120 ], [ %119, %118 ]
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %.sink) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %35) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %34) #8
  resume { ptr, i32 } %.pn

127:                                              ; preds = %117, %90
  ret void
}

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 4, !10, i64 4, i64 4, !10, i64 8, i64 4, !10}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !7, i64 0}
!12 = !{!7, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass