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

; 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::Float3" = type { float, float, float }
%"class.JPH::Ref.17" = type { ptr }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::Array.14" = type { i64, i64, ptr }
%"class.JPH::Float2" = type { float, float }
%"class.JPH::DebugRenderer::Vertex" = type { %"class.JPH::Float3", %"class.JPH::Float3", %"class.JPH::Float2", %"class.JPH::Color" }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }

@_ZN3JPH5Color6sWhiteE = external global %"class.JPH::Color", align 4
@__const._ZN3JPH13DebugRenderer14CreateCylinderEffffi.nt = external hidden unnamed_addr constant %"class.JPH::Float3", align 4
@__const._ZN3JPH13DebugRenderer14CreateCylinderEffffi.nb = external hidden unnamed_addr constant %"class.JPH::Float3", 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 } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #1 align 2

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef) unnamed_addr #1 align 2

; 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: 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
define dso_local void @_ZN3JPH13DebugRenderer14CreateCylinderEffffi(ptr dead_on_unwind noalias writable sret(%"class.JPH::Ref.17") align 8 %0, ptr noundef nonnull align 8 dereferenceable(320) %1, float noundef %2, float noundef %3, float noundef %4, float noundef %5, i32 noundef %6) #7 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"class.JPH::Array", align 8
  %16 = alloca %"class.JPH::Array.14", align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"class.JPH::Float2", align 4
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %"class.JPH::Float3", align 4
  %24 = alloca %"class.JPH::Float3", align 4
  %25 = alloca %"class.JPH::DebugRenderer::Vertex", align 4
  %26 = alloca %"class.JPH::DebugRenderer::Vertex", align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca float, align 4
  %31 = alloca float, align 4
  %32 = alloca float, 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::Vec3", align 16
  %38 = alloca %"class.JPH::Float3", align 4
  %39 = alloca %"class.JPH::Vec3", align 16
  %40 = alloca %"class.JPH::Vec3", align 16
  %41 = alloca %"class.JPH::Vec3", align 16
  %42 = alloca %"class.JPH::Vec3", align 16
  %43 = alloca %"class.JPH::Vec3", align 16
  %44 = alloca %"class.JPH::DebugRenderer::Vertex", align 4
  %45 = alloca %"class.JPH::DebugRenderer::Vertex", align 4
  %46 = alloca %"class.JPH::DebugRenderer::Vertex", align 4
  %47 = alloca %"class.JPH::DebugRenderer::Vertex", align 4
  %48 = alloca i32, align 4
  %49 = alloca i32, align 4
  %50 = alloca i32, align 4
  %51 = alloca i32, align 4
  %52 = alloca i32, align 4
  %53 = alloca i32, align 4
  %54 = alloca i32, align 4
  %55 = alloca i32, align 4
  %56 = alloca i32, align 4
  %57 = alloca i32, align 4
  %58 = alloca i32, align 4
  %59 = alloca i32, align 4
  store ptr %0, ptr %8, align 8
  store ptr %1, ptr %9, align 8, !tbaa !5
  store float %2, ptr %10, align 4, !tbaa !9
  store float %3, ptr %11, align 4, !tbaa !9
  store float %4, ptr %12, align 4, !tbaa !9
  store float %5, ptr %13, align 4, !tbaa !9
  store i32 %6, ptr %14, align 4, !tbaa !11
  %60 = load ptr, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #8
  call void @_ZN3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #8
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 0, ptr %17, align 4, !tbaa !11
  br label %61

61:                                               ; preds = %364, %7
  %62 = load i32, ptr %17, align 4, !tbaa !11
  %63 = icmp slt i32 %62, 4
  br i1 %63, label %65, label %64

64:                                               ; preds = %61
  store i32 2, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %372

65:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %66 = load i32, ptr %17, align 4, !tbaa !11
  %67 = and i32 %66, 1
  %68 = icmp eq i32 %67, 0
  br i1 %68, label %69, label %71

69:                                               ; preds = %65
  invoke void @_ZN3JPH6Float2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %19, float noundef 2.500000e-01, float noundef 7.500000e-01)
          to label %70 unwind label %101

70:                                               ; preds = %69
  br label %73

71:                                               ; preds = %65
  invoke void @_ZN3JPH6Float2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %19, float noundef 2.500000e-01, float noundef 2.500000e-01)
          to label %72 unwind label %101

72:                                               ; preds = %71
  br label %73

73:                                               ; preds = %72, %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %74 = invoke noundef i64 @_ZNK3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %75 unwind label %105

75:                                               ; preds = %73
  %76 = trunc i64 %74 to i32
  store i32 %76, ptr %22, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 12, ptr %23) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 @__const._ZN3JPH13DebugRenderer14CreateCylinderEffffi.nt, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 @__const._ZN3JPH13DebugRenderer14CreateCylinderEffffi.nb, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 36, ptr %25) #8
  %77 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %25, i32 0, i32 0
  %78 = load float, ptr %10, align 4, !tbaa !9
  invoke void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %77, float noundef 0.000000e+00, float noundef %78, float noundef 0.000000e+00)
          to label %79 unwind label %109

79:                                               ; preds = %75
  %80 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %25, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %80, ptr align 4 %23, i64 12, i1 false), !tbaa.struct !13
  %81 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %25, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %81, ptr align 4 %19, i64 8, i1 false), !tbaa.struct !14
  %82 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %25, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %82, ptr align 4 @_ZN3JPH5Color6sWhiteE, i64 4, i1 false), !tbaa.struct !15
  invoke void @_ZN3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 4 dereferenceable(36) %25)
          to label %83 unwind label %109

83:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 36, ptr %25) #8
  call void @llvm.lifetime.start.p0(i64 36, ptr %26) #8
  %84 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %26, i32 0, i32 0
  %85 = load float, ptr %11, align 4, !tbaa !9
  invoke void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %84, float noundef 0.000000e+00, float noundef %85, float noundef 0.000000e+00)
          to label %86 unwind label %113

86:                                               ; preds = %83
  %87 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %26, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %87, ptr align 4 %24, i64 12, i1 false), !tbaa.struct !13
  %88 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %26, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %88, ptr align 4 %19, i64 8, i1 false), !tbaa.struct !14
  %89 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %26, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %89, ptr align 4 @_ZN3JPH5Color6sWhiteE, i64 4, i1 false), !tbaa.struct !15
  invoke void @_ZN3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 4 dereferenceable(36) %26)
          to label %90 unwind label %113

90:                                               ; preds = %86
  call void @llvm.lifetime.end.p0(i64 36, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %91 = invoke noundef i64 @_ZNK3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %92 unwind label %117

92:                                               ; preds = %90
  %93 = trunc i64 %91 to i32
  store i32 %93, ptr %27, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  %94 = load i32, ptr %14, align 4, !tbaa !11
  %95 = shl i32 1, %94
  store i32 %95, ptr %28, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  store i32 0, ptr %29, align 4, !tbaa !11
  br label %96

96:                                               ; preds = %223, %92
  %97 = load i32, ptr %29, align 4, !tbaa !11
  %98 = load i32, ptr %28, align 4, !tbaa !11
  %99 = icmp sle i32 %97, %98
  br i1 %99, label %121, label %100

100:                                              ; preds = %96
  store i32 5, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %272

101:                                              ; preds = %71, %69
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %20, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %21, align 4
  br label %371

105:                                              ; preds = %73
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %20, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %21, align 4
  br label %370

109:                                              ; preds = %79, %75
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %20, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 36, ptr %25) #8
  br label %369

113:                                              ; preds = %86, %83
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %20, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 36, ptr %26) #8
  br label %369

117:                                              ; preds = %90
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %20, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %21, align 4
  br label %368

121:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  %122 = load i32, ptr %17, align 4, !tbaa !11
  %123 = sitofp i32 %122 to float
  %124 = load i32, ptr %29, align 4, !tbaa !11
  %125 = sitofp i32 %124 to float
  %126 = load i32, ptr %28, align 4, !tbaa !11
  %127 = sitofp i32 %126 to float
  %128 = fdiv float %125, %127
  %129 = fadd float %123, %128
  %130 = fmul float 0x3FF921FB60000000, %129
  store float %130, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  %131 = load float, ptr %30, align 4, !tbaa !9
  %132 = invoke noundef float @_ZN3JPH3SinEf(float noundef %131)
          to label %133 unwind label %226

133:                                              ; preds = %121
  store float %132, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  %134 = load float, ptr %30, align 4, !tbaa !9
  %135 = invoke noundef float @_ZN3JPH3CosEf(float noundef %134)
          to label %136 unwind label %230

136:                                              ; preds = %133
  store float %135, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %33) #8
  %137 = load float, ptr %12, align 4, !tbaa !9
  %138 = load float, ptr %31, align 4, !tbaa !9
  %139 = fmul float %137, %138
  %140 = load float, ptr %10, align 4, !tbaa !9
  %141 = load float, ptr %12, align 4, !tbaa !9
  %142 = load float, ptr %32, align 4, !tbaa !9
  %143 = fmul float %141, %142
  invoke void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %33, float noundef %139, float noundef %140, float noundef %143)
          to label %144 unwind label %234

144:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 12, ptr %34) #8
  %145 = load float, ptr %13, align 4, !tbaa !9
  %146 = load float, ptr %31, align 4, !tbaa !9
  %147 = fmul float %145, %146
  %148 = load float, ptr %11, align 4, !tbaa !9
  %149 = load float, ptr %13, align 4, !tbaa !9
  %150 = load float, ptr %32, align 4, !tbaa !9
  %151 = fmul float %149, %150
  invoke void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %34, float noundef %147, float noundef %148, float noundef %151)
          to label %152 unwind label %238

152:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #8
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %36, ptr noundef nonnull align 4 dereferenceable(12) %33)
          to label %153 unwind label %242

153:                                              ; preds = %152
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %37, ptr noundef nonnull align 4 dereferenceable(12) %34)
          to label %154 unwind label %242

154:                                              ; preds = %153
  %155 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %156 = load double, ptr %155, align 16
  %157 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %158 = load double, ptr %157, align 8
  %159 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %36, double %156, double %158)
          to label %160 unwind label %242

160:                                              ; preds = %154
  %161 = getelementptr inbounds %"class.JPH::Vec3", ptr %35, i32 0, i32 0
  %162 = getelementptr inbounds %union.anon, ptr %161, i32 0, i32 0
  %163 = getelementptr inbounds { double, double }, ptr %162, i32 0, i32 0
  %164 = extractvalue { double, double } %159, 0
  store double %164, ptr %163, align 16
  %165 = getelementptr inbounds { double, double }, ptr %162, i32 0, i32 1
  %166 = extractvalue { double, double } %159, 1
  store double %166, ptr %165, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %38) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #8
  %167 = load float, ptr %31, align 4, !tbaa !9
  %168 = load float, ptr %32, align 4, !tbaa !9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %42, float noundef %167, float noundef 0.000000e+00, float noundef %168)
          to label %169 unwind label %246

169:                                              ; preds = %160
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %43, ptr align 16 %35, i64 16, i1 false), !tbaa.struct !17
  %170 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 0
  %171 = load double, ptr %170, align 16
  %172 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 1
  %173 = load double, ptr %172, align 8
  %174 = invoke { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %42, double %171, double %173)
          to label %175 unwind label %246

175:                                              ; preds = %169
  %176 = getelementptr inbounds %"class.JPH::Vec3", ptr %41, i32 0, i32 0
  %177 = getelementptr inbounds %union.anon, ptr %176, i32 0, i32 0
  %178 = getelementptr inbounds { double, double }, ptr %177, i32 0, i32 0
  %179 = extractvalue { double, double } %174, 0
  store double %179, ptr %178, align 16
  %180 = getelementptr inbounds { double, double }, ptr %177, i32 0, i32 1
  %181 = extractvalue { double, double } %174, 1
  store double %181, ptr %180, align 8
  %182 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %183 = load double, ptr %182, align 16
  %184 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %185 = load double, ptr %184, align 8
  %186 = invoke { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %35, double %183, double %185)
          to label %187 unwind label %246

187:                                              ; preds = %175
  %188 = getelementptr inbounds %"class.JPH::Vec3", ptr %40, i32 0, i32 0
  %189 = getelementptr inbounds %union.anon, ptr %188, i32 0, i32 0
  %190 = getelementptr inbounds { double, double }, ptr %189, i32 0, i32 0
  %191 = extractvalue { double, double } %186, 0
  store double %191, ptr %190, align 16
  %192 = getelementptr inbounds { double, double }, ptr %189, i32 0, i32 1
  %193 = extractvalue { double, double } %186, 1
  store double %193, ptr %192, align 8
  %194 = invoke { double, double } @_ZNK3JPH4Vec310NormalizedEv(ptr noundef nonnull align 16 dereferenceable(16) %40)
          to label %195 unwind label %246

195:                                              ; preds = %187
  %196 = getelementptr inbounds %"class.JPH::Vec3", ptr %39, i32 0, i32 0
  %197 = getelementptr inbounds %union.anon, ptr %196, i32 0, i32 0
  %198 = getelementptr inbounds { double, double }, ptr %197, i32 0, i32 0
  %199 = extractvalue { double, double } %194, 0
  store double %199, ptr %198, align 16
  %200 = getelementptr inbounds { double, double }, ptr %197, i32 0, i32 1
  %201 = extractvalue { double, double } %194, 1
  store double %201, ptr %200, align 8
  invoke void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %39, ptr noundef %38)
          to label %202 unwind label %246

202:                                              ; preds = %195
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #8
  call void @llvm.lifetime.start.p0(i64 36, ptr %44) #8
  %203 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %44, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %203, ptr align 4 %33, i64 12, i1 false), !tbaa.struct !13
  %204 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %44, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %204, ptr align 4 %23, i64 12, i1 false), !tbaa.struct !13
  %205 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %44, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %205, ptr align 4 %19, i64 8, i1 false), !tbaa.struct !14
  %206 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %44, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %206, ptr align 4 @_ZN3JPH5Color6sWhiteE, i64 4, i1 false), !tbaa.struct !15
  invoke void @_ZN3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 4 dereferenceable(36) %44)
          to label %207 unwind label %250

207:                                              ; preds = %202
  call void @llvm.lifetime.end.p0(i64 36, ptr %44) #8
  call void @llvm.lifetime.start.p0(i64 36, ptr %45) #8
  %208 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %45, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %208, ptr align 4 %34, i64 12, i1 false), !tbaa.struct !13
  %209 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %45, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %209, ptr align 4 %24, i64 12, i1 false), !tbaa.struct !13
  %210 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %45, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %210, ptr align 4 %19, i64 8, i1 false), !tbaa.struct !14
  %211 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %45, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %211, ptr align 4 @_ZN3JPH5Color6sWhiteE, i64 4, i1 false), !tbaa.struct !15
  invoke void @_ZN3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 4 dereferenceable(36) %45)
          to label %212 unwind label %254

212:                                              ; preds = %207
  call void @llvm.lifetime.end.p0(i64 36, ptr %45) #8
  call void @llvm.lifetime.start.p0(i64 36, ptr %46) #8
  %213 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %46, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %213, ptr align 4 %33, i64 12, i1 false), !tbaa.struct !13
  %214 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %46, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %214, ptr align 4 %38, i64 12, i1 false), !tbaa.struct !13
  %215 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %46, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %215, ptr align 4 %19, i64 8, i1 false), !tbaa.struct !14
  %216 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %46, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %216, ptr align 4 @_ZN3JPH5Color6sWhiteE, i64 4, i1 false), !tbaa.struct !15
  invoke void @_ZN3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 4 dereferenceable(36) %46)
          to label %217 unwind label %258

217:                                              ; preds = %212
  call void @llvm.lifetime.end.p0(i64 36, ptr %46) #8
  call void @llvm.lifetime.start.p0(i64 36, ptr %47) #8
  %218 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %47, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %218, ptr align 4 %34, i64 12, i1 false), !tbaa.struct !13
  %219 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %47, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %219, ptr align 4 %38, i64 12, i1 false), !tbaa.struct !13
  %220 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %47, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %220, ptr align 4 %19, i64 8, i1 false), !tbaa.struct !14
  %221 = getelementptr inbounds %"class.JPH::DebugRenderer::Vertex", ptr %47, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %221, ptr align 4 @_ZN3JPH5Color6sWhiteE, i64 4, i1 false), !tbaa.struct !15
  invoke void @_ZN3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 4 dereferenceable(36) %47)
          to label %222 unwind label %262

222:                                              ; preds = %217
  call void @llvm.lifetime.end.p0(i64 36, ptr %47) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  br label %223

223:                                              ; preds = %222
  %224 = load i32, ptr %29, align 4, !tbaa !11
  %225 = add nsw i32 %224, 1
  store i32 %225, ptr %29, align 4, !tbaa !11
  br label %96, !llvm.loop !18

226:                                              ; preds = %121
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %20, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %21, align 4
  br label %271

230:                                              ; preds = %133
  %231 = landingpad { ptr, i32 }
          cleanup
  %232 = extractvalue { ptr, i32 } %231, 0
  store ptr %232, ptr %20, align 8
  %233 = extractvalue { ptr, i32 } %231, 1
  store i32 %233, ptr %21, align 4
  br label %270

234:                                              ; preds = %136
  %235 = landingpad { ptr, i32 }
          cleanup
  %236 = extractvalue { ptr, i32 } %235, 0
  store ptr %236, ptr %20, align 8
  %237 = extractvalue { ptr, i32 } %235, 1
  store i32 %237, ptr %21, align 4
  br label %269

238:                                              ; preds = %144
  %239 = landingpad { ptr, i32 }
          cleanup
  %240 = extractvalue { ptr, i32 } %239, 0
  store ptr %240, ptr %20, align 8
  %241 = extractvalue { ptr, i32 } %239, 1
  store i32 %241, ptr %21, align 4
  br label %268

242:                                              ; preds = %154, %153, %152
  %243 = landingpad { ptr, i32 }
          cleanup
  %244 = extractvalue { ptr, i32 } %243, 0
  store ptr %244, ptr %20, align 8
  %245 = extractvalue { ptr, i32 } %243, 1
  store i32 %245, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #8
  br label %267

246:                                              ; preds = %195, %187, %175, %169, %160
  %247 = landingpad { ptr, i32 }
          cleanup
  %248 = extractvalue { ptr, i32 } %247, 0
  store ptr %248, ptr %20, align 8
  %249 = extractvalue { ptr, i32 } %247, 1
  store i32 %249, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #8
  br label %266

250:                                              ; preds = %202
  %251 = landingpad { ptr, i32 }
          cleanup
  %252 = extractvalue { ptr, i32 } %251, 0
  store ptr %252, ptr %20, align 8
  %253 = extractvalue { ptr, i32 } %251, 1
  store i32 %253, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 36, ptr %44) #8
  br label %266

254:                                              ; preds = %207
  %255 = landingpad { ptr, i32 }
          cleanup
  %256 = extractvalue { ptr, i32 } %255, 0
  store ptr %256, ptr %20, align 8
  %257 = extractvalue { ptr, i32 } %255, 1
  store i32 %257, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 36, ptr %45) #8
  br label %266

258:                                              ; preds = %212
  %259 = landingpad { ptr, i32 }
          cleanup
  %260 = extractvalue { ptr, i32 } %259, 0
  store ptr %260, ptr %20, align 8
  %261 = extractvalue { ptr, i32 } %259, 1
  store i32 %261, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 36, ptr %46) #8
  br label %266

262:                                              ; preds = %217
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %20, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 36, ptr %47) #8
  br label %266

266:                                              ; preds = %262, %258, %254, %250, %246
  call void @llvm.lifetime.end.p0(i64 12, ptr %38) #8
  br label %267

267:                                              ; preds = %266, %242
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #8
  br label %268

268:                                              ; preds = %267, %238
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #8
  br label %269

269:                                              ; preds = %268, %234
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #8
  br label %270

270:                                              ; preds = %269, %230
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  br label %271

271:                                              ; preds = %270, %226
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %367

272:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #8
  store i32 0, ptr %48, align 4, !tbaa !11
  br label %273

273:                                              ; preds = %315, %272
  %274 = load i32, ptr %48, align 4, !tbaa !11
  %275 = load i32, ptr %28, align 4, !tbaa !11
  %276 = icmp slt i32 %274, %275
  br i1 %276, label %278, label %277

277:                                              ; preds = %273
  store i32 8, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #8
  br label %363

278:                                              ; preds = %273
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #8
  %279 = load i32, ptr %27, align 4, !tbaa !11
  %280 = load i32, ptr %48, align 4, !tbaa !11
  %281 = mul nsw i32 4, %280
  %282 = add i32 %279, %281
  store i32 %282, ptr %49, align 4, !tbaa !11
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %283 unwind label %318

283:                                              ; preds = %278
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 4 dereferenceable(4) %49)
          to label %284 unwind label %318

284:                                              ; preds = %283
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #8
  %285 = load i32, ptr %49, align 4, !tbaa !11
  %286 = add i32 %285, 4
  store i32 %286, ptr %50, align 4, !tbaa !11
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 4 dereferenceable(4) %50)
          to label %287 unwind label %322

287:                                              ; preds = %284
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #8
  %288 = load i32, ptr %22, align 4, !tbaa !11
  %289 = add i32 %288, 1
  store i32 %289, ptr %51, align 4, !tbaa !11
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 4 dereferenceable(4) %51)
          to label %290 unwind label %326

290:                                              ; preds = %287
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #8
  %291 = load i32, ptr %49, align 4, !tbaa !11
  %292 = add i32 %291, 5
  store i32 %292, ptr %52, align 4, !tbaa !11
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 4 dereferenceable(4) %52)
          to label %293 unwind label %330

293:                                              ; preds = %290
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #8
  %294 = load i32, ptr %49, align 4, !tbaa !11
  %295 = add i32 %294, 1
  store i32 %295, ptr %53, align 4, !tbaa !11
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 4 dereferenceable(4) %53)
          to label %296 unwind label %334

296:                                              ; preds = %293
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #8
  %297 = load i32, ptr %49, align 4, !tbaa !11
  %298 = add i32 %297, 2
  store i32 %298, ptr %54, align 4, !tbaa !11
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 4 dereferenceable(4) %54)
          to label %299 unwind label %338

299:                                              ; preds = %296
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #8
  %300 = load i32, ptr %49, align 4, !tbaa !11
  %301 = add i32 %300, 3
  store i32 %301, ptr %55, align 4, !tbaa !11
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 4 dereferenceable(4) %55)
          to label %302 unwind label %342

302:                                              ; preds = %299
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #8
  %303 = load i32, ptr %49, align 4, !tbaa !11
  %304 = add i32 %303, 7
  store i32 %304, ptr %56, align 4, !tbaa !11
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 4 dereferenceable(4) %56)
          to label %305 unwind label %346

305:                                              ; preds = %302
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #8
  %306 = load i32, ptr %49, align 4, !tbaa !11
  %307 = add i32 %306, 2
  store i32 %307, ptr %57, align 4, !tbaa !11
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 4 dereferenceable(4) %57)
          to label %308 unwind label %350

308:                                              ; preds = %305
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %58) #8
  %309 = load i32, ptr %49, align 4, !tbaa !11
  %310 = add i32 %309, 7
  store i32 %310, ptr %58, align 4, !tbaa !11
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 4 dereferenceable(4) %58)
          to label %311 unwind label %354

311:                                              ; preds = %308
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #8
  %312 = load i32, ptr %49, align 4, !tbaa !11
  %313 = add i32 %312, 6
  store i32 %313, ptr %59, align 4, !tbaa !11
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 4 dereferenceable(4) %59)
          to label %314 unwind label %358

314:                                              ; preds = %311
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #8
  br label %315

315:                                              ; preds = %314
  %316 = load i32, ptr %48, align 4, !tbaa !11
  %317 = add nsw i32 %316, 1
  store i32 %317, ptr %48, align 4, !tbaa !11
  br label %273, !llvm.loop !20

318:                                              ; preds = %283, %278
  %319 = landingpad { ptr, i32 }
          cleanup
  %320 = extractvalue { ptr, i32 } %319, 0
  store ptr %320, ptr %20, align 8
  %321 = extractvalue { ptr, i32 } %319, 1
  store i32 %321, ptr %21, align 4
  br label %362

322:                                              ; preds = %284
  %323 = landingpad { ptr, i32 }
          cleanup
  %324 = extractvalue { ptr, i32 } %323, 0
  store ptr %324, ptr %20, align 8
  %325 = extractvalue { ptr, i32 } %323, 1
  store i32 %325, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #8
  br label %362

326:                                              ; preds = %287
  %327 = landingpad { ptr, i32 }
          cleanup
  %328 = extractvalue { ptr, i32 } %327, 0
  store ptr %328, ptr %20, align 8
  %329 = extractvalue { ptr, i32 } %327, 1
  store i32 %329, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #8
  br label %362

330:                                              ; preds = %290
  %331 = landingpad { ptr, i32 }
          cleanup
  %332 = extractvalue { ptr, i32 } %331, 0
  store ptr %332, ptr %20, align 8
  %333 = extractvalue { ptr, i32 } %331, 1
  store i32 %333, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #8
  br label %362

334:                                              ; preds = %293
  %335 = landingpad { ptr, i32 }
          cleanup
  %336 = extractvalue { ptr, i32 } %335, 0
  store ptr %336, ptr %20, align 8
  %337 = extractvalue { ptr, i32 } %335, 1
  store i32 %337, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #8
  br label %362

338:                                              ; preds = %296
  %339 = landingpad { ptr, i32 }
          cleanup
  %340 = extractvalue { ptr, i32 } %339, 0
  store ptr %340, ptr %20, align 8
  %341 = extractvalue { ptr, i32 } %339, 1
  store i32 %341, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #8
  br label %362

342:                                              ; preds = %299
  %343 = landingpad { ptr, i32 }
          cleanup
  %344 = extractvalue { ptr, i32 } %343, 0
  store ptr %344, ptr %20, align 8
  %345 = extractvalue { ptr, i32 } %343, 1
  store i32 %345, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #8
  br label %362

346:                                              ; preds = %302
  %347 = landingpad { ptr, i32 }
          cleanup
  %348 = extractvalue { ptr, i32 } %347, 0
  store ptr %348, ptr %20, align 8
  %349 = extractvalue { ptr, i32 } %347, 1
  store i32 %349, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #8
  br label %362

350:                                              ; preds = %305
  %351 = landingpad { ptr, i32 }
          cleanup
  %352 = extractvalue { ptr, i32 } %351, 0
  store ptr %352, ptr %20, align 8
  %353 = extractvalue { ptr, i32 } %351, 1
  store i32 %353, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #8
  br label %362

354:                                              ; preds = %308
  %355 = landingpad { ptr, i32 }
          cleanup
  %356 = extractvalue { ptr, i32 } %355, 0
  store ptr %356, ptr %20, align 8
  %357 = extractvalue { ptr, i32 } %355, 1
  store i32 %357, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #8
  br label %362

358:                                              ; preds = %311
  %359 = landingpad { ptr, i32 }
          cleanup
  %360 = extractvalue { ptr, i32 } %359, 0
  store ptr %360, ptr %20, align 8
  %361 = extractvalue { ptr, i32 } %359, 1
  store i32 %361, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #8
  br label %362

362:                                              ; preds = %358, %354, %350, %346, %342, %338, %334, %330, %326, %322, %318
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #8
  br label %367

363:                                              ; preds = %277
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %364

364:                                              ; preds = %363
  %365 = load i32, ptr %17, align 4, !tbaa !11
  %366 = add nsw i32 %365, 1
  store i32 %366, ptr %17, align 4, !tbaa !11
  br label %61, !llvm.loop !21

367:                                              ; preds = %362, %271
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %368

368:                                              ; preds = %367, %117
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  br label %369

369:                                              ; preds = %368, %113, %109
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #8
  br label %370

370:                                              ; preds = %369, %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %371

371:                                              ; preds = %370, %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %378

372:                                              ; preds = %64
  invoke void @_ZN3JPH13DebugRenderer19CreateTriangleBatchERKNS_5ArrayINS0_6VertexENS_12STLAllocatorIS2_EEEERKNS1_IjNS3_IjEEEE(ptr dead_on_unwind writable sret(%"class.JPH::Ref.17") align 8 %0, ptr noundef nonnull align 8 dereferenceable(320) %60, ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %373 unwind label %374

373:                                              ; preds = %372
  store i32 1, ptr %18, align 4
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #8
  call void @_ZN3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #8
  ret void

374:                                              ; preds = %372
  %375 = landingpad { ptr, i32 }
          cleanup
  %376 = extractvalue { ptr, i32 } %375, 0
  store ptr %376, ptr %20, align 8
  %377 = extractvalue { ptr, i32 } %375, 1
  store i32 %377, ptr %21, align 4
  br label %378

378:                                              ; preds = %374, %371
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #8
  call void @_ZN3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #8
  br label %379

379:                                              ; preds = %378
  %380 = load ptr, ptr %20, align 8
  %381 = load i32, ptr %21, align 4
  %382 = insertvalue { ptr, i32 } poison, ptr %380, 0
  %383 = insertvalue { ptr, i32 } %382, i32 %381, 1
  resume { ptr, i32 } %383
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZN3JPH3SinEf(float noundef) #4

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZN3JPH3CosEf(float noundef) #4

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(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 @_ZN3JPH13DebugRenderer19CreateTriangleBatchERKNS_5ArrayINS0_6VertexENS_12STLAllocatorIS2_EEEERKNS1_IjNS3_IjEEEE(ptr dead_on_unwind noalias writable sret(%"class.JPH::Ref.17") align 8, ptr noundef nonnull align 8 dereferenceable(320), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #7 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 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 = { 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 = { 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 #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 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 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9}
!14 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}
!15 = !{i64 0, i64 4, !16}
!16 = !{!7, !7, i64 0}
!17 = !{i64 0, i64 16, !16}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}


; 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::Float3" = type { float, float, float }
%"class.JPH::Ref.17" = type { ptr }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::Array.14" = type { i64, i64, ptr }
%"class.JPH::Float2" = type { float, float }
%"class.JPH::DebugRenderer::Vertex" = type { %"class.JPH::Float3", %"class.JPH::Float3", %"class.JPH::Float2", %"class.JPH::Color" }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }

@_ZN3JPH5Color6sWhiteE = external local_unnamed_addr global %"class.JPH::Color", align 4
@__const._ZN3JPH13DebugRenderer14CreateCylinderEffffi.nt = external hidden unnamed_addr constant %"class.JPH::Float3", align 4
@__const._ZN3JPH13DebugRenderer14CreateCylinderEffffi.nb = external hidden unnamed_addr constant %"class.JPH::Float3", 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 } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef) unnamed_addr #1 align 2

; 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: 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
define dso_local void @_ZN3JPH13DebugRenderer14CreateCylinderEffffi(ptr dead_on_unwind noalias writable sret(%"class.JPH::Ref.17") align 8 %0, ptr noundef nonnull align 8 dereferenceable(320) %1, float noundef %2, float noundef %3, float noundef %4, float noundef %5, i32 noundef %6) local_unnamed_addr #7 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca %"class.JPH::Array", align 8
  %9 = alloca %"class.JPH::Array.14", align 8
  %10 = alloca %"class.JPH::Float2", align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.JPH::DebugRenderer::Vertex", align 4
  %13 = alloca %"class.JPH::DebugRenderer::Vertex", align 4
  %14 = alloca %"class.JPH::Float3", align 4
  %15 = alloca %"class.JPH::Float3", align 4
  %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::Vec3", align 16
  %21 = alloca %"class.JPH::Vec3", align 16
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = alloca %"class.JPH::DebugRenderer::Vertex", align 4
  %24 = alloca %"class.JPH::DebugRenderer::Vertex", align 4
  %25 = alloca %"class.JPH::DebugRenderer::Vertex", align 4
  %26 = alloca %"class.JPH::DebugRenderer::Vertex", align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #9
  call void @_ZN3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #9
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  %38 = getelementptr inbounds i8, ptr %12, i64 12
  %39 = getelementptr inbounds i8, ptr %12, i64 24
  %40 = getelementptr inbounds i8, ptr %12, i64 32
  %41 = getelementptr inbounds i8, ptr %13, i64 12
  %42 = getelementptr inbounds i8, ptr %13, i64 24
  %43 = getelementptr inbounds i8, ptr %13, i64 32
  %44 = shl nuw i32 1, %6
  %.not57 = icmp eq i32 %6, 31
  %45 = sitofp i32 %44 to float
  %46 = getelementptr inbounds i8, ptr %18, i64 8
  %47 = getelementptr inbounds i8, ptr %16, i64 8
  %48 = getelementptr inbounds i8, ptr %21, i64 8
  %49 = getelementptr inbounds i8, ptr %20, i64 8
  %50 = getelementptr inbounds i8, ptr %23, i64 12
  %51 = getelementptr inbounds i8, ptr %23, i64 24
  %52 = getelementptr inbounds i8, ptr %23, i64 32
  %53 = getelementptr inbounds i8, ptr %24, i64 12
  %54 = getelementptr inbounds i8, ptr %24, i64 24
  %55 = getelementptr inbounds i8, ptr %24, i64 32
  %56 = getelementptr inbounds i8, ptr %25, i64 12
  %57 = getelementptr inbounds i8, ptr %25, i64 24
  %58 = getelementptr inbounds i8, ptr %25, i64 32
  %59 = getelementptr inbounds i8, ptr %26, i64 12
  %60 = getelementptr inbounds i8, ptr %26, i64 24
  %61 = getelementptr inbounds i8, ptr %26, i64 32
  %smax = call i32 @llvm.smax.i32(i32 %44, i32 0)
  %smax63 = call i32 @llvm.smax.i32(i32 %44, i32 1)
  br label %63

62:                                               ; preds = %._crit_edge
  invoke void @_ZN3JPH13DebugRenderer19CreateTriangleBatchERKNS_5ArrayINS0_6VertexENS_12STLAllocatorIS2_EEEERKNS1_IjNS3_IjEEEE(ptr dead_on_unwind writable sret(%"class.JPH::Ref.17") align 8 %0, ptr noundef nonnull align 8 dereferenceable(320) %1, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %207 unwind label %208

63:                                               ; preds = %7, %._crit_edge
  %.03561 = phi i32 [ 0, %7 ], [ %147, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #9
  %64 = and i32 %.03561, 1
  %65 = icmp eq i32 %64, 0
  %. = select i1 %65, float 7.500000e-01, float 2.500000e-01
  call void @_ZN3JPH6Float2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %10, float noundef 2.500000e-01, float noundef %.)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #9
  %66 = call noundef i64 @_ZNK3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  %67 = trunc i64 %66 to i32
  store i32 %67, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %12) #9
  call void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %12, float noundef 0.000000e+00, float noundef %2, float noundef 0.000000e+00)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %38, ptr noundef nonnull align 4 dereferenceable(12) @__const._ZN3JPH13DebugRenderer14CreateCylinderEffffi.nt, i64 12, i1 false), !tbaa.struct !9
  %68 = load i64, ptr %10, align 8
  store i64 %68, ptr %39, align 4
  %69 = load i32, ptr @_ZN3JPH5Color6sWhiteE, align 4, !tbaa !12
  store i32 %69, ptr %40, align 4, !tbaa !12
  invoke void @_ZN3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 4 dereferenceable(36) %12)
          to label %70 unwind label %77

70:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %13) #9
  call void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %13, float noundef 0.000000e+00, float noundef %3, float noundef 0.000000e+00)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %41, ptr noundef nonnull align 4 dereferenceable(12) @__const._ZN3JPH13DebugRenderer14CreateCylinderEffffi.nb, i64 12, i1 false), !tbaa.struct !9
  %71 = load i64, ptr %10, align 8
  store i64 %71, ptr %42, align 4
  %72 = load i32, ptr @_ZN3JPH5Color6sWhiteE, align 4, !tbaa !12
  store i32 %72, ptr %43, align 4, !tbaa !12
  invoke void @_ZN3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 4 dereferenceable(36) %13)
          to label %73 unwind label %79

73:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %13) #9
  %74 = call noundef i64 @_ZNK3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  %75 = trunc i64 %74 to i32
  br i1 %.not57, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %73
  %76 = uitofp nneg i32 %.03561 to float
  br label %81

.preheader:                                       ; preds = %127
  br i1 %.not57, label %._crit_edge, label %.lr.ph60

77:                                               ; preds = %63
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %12) #9
  br label %206

79:                                               ; preds = %70
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %13) #9
  br label %206

81:                                               ; preds = %.lr.ph, %127
  %.04558 = phi i32 [ 0, %.lr.ph ], [ %128, %127 ]
  %82 = uitofp nneg i32 %.04558 to float
  %83 = fdiv float %82, %45
  %84 = fadd float %83, %76
  %85 = fmul float %84, 0x3FF921FB60000000
  %86 = invoke noundef float @_ZN3JPH3SinEf(float noundef %85)
          to label %87 unwind label %129

87:                                               ; preds = %81
  %88 = invoke noundef float @_ZN3JPH3CosEf(float noundef %85)
          to label %89 unwind label %131

89:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #9
  %90 = fmul float %86, %4
  %91 = fmul float %88, %4
  call void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %14, float noundef %90, float noundef %2, float noundef %91)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #9
  %92 = fmul float %86, %5
  %93 = fmul float %88, %5
  call void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %15, float noundef %92, float noundef %3, float noundef %93)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #9
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %17, ptr noundef nonnull align 4 dereferenceable(12) %14)
          to label %94 unwind label %133

94:                                               ; preds = %89
  invoke void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %18, ptr noundef nonnull align 4 dereferenceable(12) %15)
          to label %95 unwind label %133

95:                                               ; preds = %94
  %96 = load double, ptr %18, align 16
  %97 = load double, ptr %46, align 8
  %98 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %17, double %96, double %97)
          to label %99 unwind label %133

99:                                               ; preds = %95
  %100 = extractvalue { double, double } %98, 0
  store double %100, ptr %16, align 16
  %101 = extractvalue { double, double } %98, 1
  store double %101, ptr %47, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %19) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %22, float noundef %86, float noundef 0.000000e+00, float noundef %88)
          to label %102 unwind label %135

102:                                              ; preds = %99
  %.sroa.0.0.copyload = load double, ptr %16, align 16
  %.sroa.2.0.copyload = load double, ptr %47, align 8, !tbaa !12
  %103 = invoke { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %22, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload)
          to label %104 unwind label %135

104:                                              ; preds = %102
  %105 = extractvalue { double, double } %103, 0
  %106 = extractvalue { double, double } %103, 1
  %107 = invoke { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %16, double %105, double %106)
          to label %108 unwind label %135

108:                                              ; preds = %104
  %109 = extractvalue { double, double } %107, 0
  store double %109, ptr %21, align 16
  %110 = extractvalue { double, double } %107, 1
  store double %110, ptr %48, align 8
  %111 = invoke { double, double } @_ZNK3JPH4Vec310NormalizedEv(ptr noundef nonnull align 16 dereferenceable(16) %21)
          to label %112 unwind label %135

112:                                              ; preds = %108
  %113 = extractvalue { double, double } %111, 0
  store double %113, ptr %20, align 16
  %114 = extractvalue { double, double } %111, 1
  store double %114, ptr %49, align 8
  invoke void @_ZNK3JPH4Vec311StoreFloat3EPNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16) %20, ptr noundef nonnull %19)
          to label %115 unwind label %135

115:                                              ; preds = %112
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #9
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %23) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %23, ptr noundef nonnull align 4 dereferenceable(12) %14, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %50, ptr noundef nonnull align 4 dereferenceable(12) @__const._ZN3JPH13DebugRenderer14CreateCylinderEffffi.nt, i64 12, i1 false), !tbaa.struct !9
  %116 = load i64, ptr %10, align 8
  store i64 %116, ptr %51, align 4
  %117 = load i32, ptr @_ZN3JPH5Color6sWhiteE, align 4, !tbaa !12
  store i32 %117, ptr %52, align 4, !tbaa !12
  invoke void @_ZN3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 4 dereferenceable(36) %23)
          to label %118 unwind label %137

118:                                              ; preds = %115
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %23) #9
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %24) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %24, ptr noundef nonnull align 4 dereferenceable(12) %15, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %53, ptr noundef nonnull align 4 dereferenceable(12) @__const._ZN3JPH13DebugRenderer14CreateCylinderEffffi.nb, i64 12, i1 false), !tbaa.struct !9
  %119 = load i64, ptr %10, align 8
  store i64 %119, ptr %54, align 4
  %120 = load i32, ptr @_ZN3JPH5Color6sWhiteE, align 4, !tbaa !12
  store i32 %120, ptr %55, align 4, !tbaa !12
  invoke void @_ZN3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 4 dereferenceable(36) %24)
          to label %121 unwind label %139

121:                                              ; preds = %118
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %24) #9
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %25) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %25, ptr noundef nonnull align 4 dereferenceable(12) %14, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %56, ptr noundef nonnull align 4 dereferenceable(12) %19, i64 12, i1 false), !tbaa.struct !9
  %122 = load i64, ptr %10, align 8
  store i64 %122, ptr %57, align 4
  %123 = load i32, ptr @_ZN3JPH5Color6sWhiteE, align 4, !tbaa !12
  store i32 %123, ptr %58, align 4, !tbaa !12
  invoke void @_ZN3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 4 dereferenceable(36) %25)
          to label %124 unwind label %141

124:                                              ; preds = %121
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %25) #9
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %26) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %26, ptr noundef nonnull align 4 dereferenceable(12) %15, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %59, ptr noundef nonnull align 4 dereferenceable(12) %19, i64 12, i1 false), !tbaa.struct !9
  %125 = load i64, ptr %10, align 8
  store i64 %125, ptr %60, align 4
  %126 = load i32, ptr @_ZN3JPH5Color6sWhiteE, align 4, !tbaa !12
  store i32 %126, ptr %61, align 4, !tbaa !12
  invoke void @_ZN3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 4 dereferenceable(36) %26)
          to label %127 unwind label %143

127:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %26) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %19) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #9
  %128 = add nuw i32 %.04558, 1
  %exitcond.not = icmp eq i32 %.04558, %smax
  br i1 %exitcond.not, label %.preheader, label %81, !llvm.loop !13

129:                                              ; preds = %81
  %130 = landingpad { ptr, i32 }
          cleanup
  br label %206

131:                                              ; preds = %87
  %132 = landingpad { ptr, i32 }
          cleanup
  br label %206

133:                                              ; preds = %95, %94, %89
  %134 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #9
  br label %146

135:                                              ; preds = %112, %108, %104, %102, %99
  %136 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #9
  br label %145

137:                                              ; preds = %115
  %138 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %23) #9
  br label %145

139:                                              ; preds = %118
  %140 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %24) #9
  br label %145

141:                                              ; preds = %121
  %142 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %25) #9
  br label %145

143:                                              ; preds = %124
  %144 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %26) #9
  br label %145

145:                                              ; preds = %143, %141, %139, %137, %135
  %.pn49 = phi { ptr, i32 } [ %144, %143 ], [ %142, %141 ], [ %140, %139 ], [ %138, %137 ], [ %136, %135 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %19) #9
  br label %146

146:                                              ; preds = %145, %133
  %.pn49.pn = phi { ptr, i32 } [ %.pn49, %145 ], [ %134, %133 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #9
  br label %206

._crit_edge:                                      ; preds = %181, %73, %.preheader
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  %147 = add nuw nsw i32 %.03561, 1
  %exitcond65.not = icmp eq i32 %147, 4
  br i1 %exitcond65.not, label %62, label %63, !llvm.loop !15

.lr.ph60:                                         ; preds = %.preheader, %181
  %.059 = phi i32 [ %182, %181 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #9
  %148 = shl nsw i32 %.059, 2
  %149 = add i32 %148, %75
  store i32 %149, ptr %27, align 4, !tbaa !5
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %150 unwind label %183

150:                                              ; preds = %.lr.ph60
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 4 dereferenceable(4) %27)
          to label %151 unwind label %183

151:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %28) #9
  %152 = load i32, ptr %27, align 4, !tbaa !5
  %153 = add i32 %152, 4
  store i32 %153, ptr %28, align 4, !tbaa !5
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 4 dereferenceable(4) %28)
          to label %154 unwind label %185

154:                                              ; preds = %151
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %29) #9
  %155 = load i32, ptr %11, align 4, !tbaa !5
  %156 = add i32 %155, 1
  store i32 %156, ptr %29, align 4, !tbaa !5
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 4 dereferenceable(4) %29)
          to label %157 unwind label %187

157:                                              ; preds = %154
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %30) #9
  %158 = load i32, ptr %27, align 4, !tbaa !5
  %159 = add i32 %158, 5
  store i32 %159, ptr %30, align 4, !tbaa !5
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 4 dereferenceable(4) %30)
          to label %160 unwind label %189

160:                                              ; preds = %157
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %30) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %31) #9
  %161 = load i32, ptr %27, align 4, !tbaa !5
  %162 = add i32 %161, 1
  store i32 %162, ptr %31, align 4, !tbaa !5
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 4 dereferenceable(4) %31)
          to label %163 unwind label %191

163:                                              ; preds = %160
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %31) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %32) #9
  %164 = load i32, ptr %27, align 4, !tbaa !5
  %165 = add i32 %164, 2
  store i32 %165, ptr %32, align 4, !tbaa !5
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 4 dereferenceable(4) %32)
          to label %166 unwind label %193

166:                                              ; preds = %163
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %32) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %33) #9
  %167 = load i32, ptr %27, align 4, !tbaa !5
  %168 = add i32 %167, 3
  store i32 %168, ptr %33, align 4, !tbaa !5
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 4 dereferenceable(4) %33)
          to label %169 unwind label %195

169:                                              ; preds = %166
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %33) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %34) #9
  %170 = load i32, ptr %27, align 4, !tbaa !5
  %171 = add i32 %170, 7
  store i32 %171, ptr %34, align 4, !tbaa !5
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 4 dereferenceable(4) %34)
          to label %172 unwind label %197

172:                                              ; preds = %169
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %34) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %35) #9
  %173 = load i32, ptr %27, align 4, !tbaa !5
  %174 = add i32 %173, 2
  store i32 %174, ptr %35, align 4, !tbaa !5
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 4 dereferenceable(4) %35)
          to label %175 unwind label %199

175:                                              ; preds = %172
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %35) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %36) #9
  %176 = load i32, ptr %27, align 4, !tbaa !5
  %177 = add i32 %176, 7
  store i32 %177, ptr %36, align 4, !tbaa !5
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 4 dereferenceable(4) %36)
          to label %178 unwind label %201

178:                                              ; preds = %175
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %37) #9
  %179 = load i32, ptr %27, align 4, !tbaa !5
  %180 = add i32 %179, 6
  store i32 %180, ptr %37, align 4, !tbaa !5
  invoke void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 4 dereferenceable(4) %37)
          to label %181 unwind label %203

181:                                              ; preds = %178
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %37) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #9
  %182 = add nuw nsw i32 %.059, 1
  %exitcond64.not = icmp eq i32 %182, %smax63
  br i1 %exitcond64.not, label %._crit_edge, label %.lr.ph60, !llvm.loop !16

183:                                              ; preds = %150, %.lr.ph60
  %184 = landingpad { ptr, i32 }
          cleanup
  br label %205

185:                                              ; preds = %151
  %186 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #9
  br label %205

187:                                              ; preds = %154
  %188 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #9
  br label %205

189:                                              ; preds = %157
  %190 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %30) #9
  br label %205

191:                                              ; preds = %160
  %192 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %31) #9
  br label %205

193:                                              ; preds = %163
  %194 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %32) #9
  br label %205

195:                                              ; preds = %166
  %196 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %33) #9
  br label %205

197:                                              ; preds = %169
  %198 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %34) #9
  br label %205

199:                                              ; preds = %172
  %200 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %35) #9
  br label %205

201:                                              ; preds = %175
  %202 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #9
  br label %205

203:                                              ; preds = %178
  %204 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %37) #9
  br label %205

205:                                              ; preds = %203, %201, %199, %197, %195, %193, %191, %189, %187, %185, %183
  %.pn = phi { ptr, i32 } [ %204, %203 ], [ %202, %201 ], [ %200, %199 ], [ %198, %197 ], [ %196, %195 ], [ %194, %193 ], [ %192, %191 ], [ %190, %189 ], [ %188, %187 ], [ %186, %185 ], [ %184, %183 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #9
  br label %206

206:                                              ; preds = %205, %131, %146, %129, %79, %77
  %.pn49.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %80, %79 ], [ %78, %77 ], [ %.pn, %205 ], [ %130, %129 ], [ %.pn49.pn, %146 ], [ %132, %131 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  br label %210

207:                                              ; preds = %62
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #9
  call void @_ZN3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #9
  ret void

208:                                              ; preds = %62
  %209 = landingpad { ptr, i32 }
          cleanup
  br label %210

210:                                              ; preds = %208, %206
  %.pn49.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn49.pn.pn.pn.pn.pn, %206 ], [ %209, %208 ]
  call void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #9
  call void @_ZN3JPH5ArrayINS_13DebugRenderer6VertexENS_12STLAllocatorIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #9
  resume { ptr, i32 } %.pn49.pn.pn.pn.pn.pn.pn
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH6Float3C2Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZN3JPH3SinEf(float noundef) local_unnamed_addr #4

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZN3JPH3CosEf(float noundef) local_unnamed_addr #4

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec3C2ERKNS_6Float3E(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayIjNS_12STLAllocatorIjEEE9push_backEOj(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 @_ZN3JPH13DebugRenderer19CreateTriangleBatchERKNS_5ArrayINS0_6VertexENS_12STLAllocatorIS2_EEEERKNS1_IjNS3_IjEEEE(ptr dead_on_unwind noalias writable sret(%"class.JPH::Ref.17") align 8, ptr noundef nonnull align 8 dereferenceable(320), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #7 align 2

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #8

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 = { 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 = { 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 #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 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { 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}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


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