; 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::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.13 }
%union.anon.13 = type { <4 x float> }
%"class.JPH::Color" = type { %union.anon.0 }
%union.anon.0 = type { i32 }
%"struct.JPH::AssertLastParam" = type { i8 }
%"struct.JPH::DebugRenderer::SwingConeLimits" = type { float, float }
%"class.JPH::HashTable<JPH::DebugRenderer::SwingConeLimits, std::pair<JPH::DebugRenderer::SwingConeLimits, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<JPH::DebugRenderer::SwingConeLimits, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::DebugRenderer::SwingConeLimitsHasher, std::equal_to<JPH::DebugRenderer::SwingConeLimits>>::iterator" = type { %"class.JPH::HashTable<JPH::DebugRenderer::SwingConeLimits, std::pair<JPH::DebugRenderer::SwingConeLimits, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<JPH::DebugRenderer::SwingConeLimits, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::DebugRenderer::SwingConeLimitsHasher, std::equal_to<JPH::DebugRenderer::SwingConeLimits>>::IteratorBase.base", [4 x i8] }
%"class.JPH::HashTable<JPH::DebugRenderer::SwingConeLimits, std::pair<JPH::DebugRenderer::SwingConeLimits, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<JPH::DebugRenderer::SwingConeLimits, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::DebugRenderer::SwingConeLimitsHasher, std::equal_to<JPH::DebugRenderer::SwingConeLimits>>::IteratorBase.base" = type <{ ptr, i32 }>
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::DebugRenderer" = type { ptr, %"class.JPH::Ref", %"class.JPH::Ref", %"class.JPH::Ref", %"class.JPH::Ref", %"class.JPH::Ref", %"class.JPH::Ref", %"class.JPH::Ref", %"class.JPH::UnorderedMap", %"class.JPH::UnorderedMap", %"class.JPH::UnorderedMap.1", %"class.JPH::UnorderedMap.1", %"class.JPH::UnorderedMap.5", %"class.JPH::UnorderedMap.5", %"class.JPH::UnorderedMap.9", %"class.JPH::UnorderedMap.9" }
%"class.JPH::Ref" = type { ptr }
%"class.JPH::UnorderedMap" = type { %"class.JPH::HashTable.base", [4 x i8] }
%"class.JPH::HashTable.base" = type <{ ptr, ptr, i32, i32, i32 }>
%"class.JPH::UnorderedMap.1" = type { %"class.JPH::HashTable.base.3", [4 x i8] }
%"class.JPH::HashTable.base.3" = type <{ ptr, ptr, i32, i32, i32 }>
%"class.JPH::UnorderedMap.5" = type { %"class.JPH::HashTable.base.7", [4 x i8] }
%"class.JPH::HashTable.base.7" = type <{ ptr, ptr, i32, i32, i32 }>
%"class.JPH::UnorderedMap.9" = type { %"class.JPH::HashTable.base.11", [4 x i8] }
%"class.JPH::HashTable.base.11" = type <{ ptr, ptr, i32, i32, i32 }>
%"struct.std::pair" = type { %"struct.JPH::DebugRenderer::SwingConeLimits", %"class.JPH::Ref" }

@.str.1 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [20 x i8], align 1

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) #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 #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64)) #4 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat446sScaleEf(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, float noundef) #5 align 2

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEeqEPKS2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #7 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH13DebugRenderer19DrawSwingConeLimitsERKNS_5Mat44EfffNS_5ColorENS0_11ECastShadowENS0_9EDrawModeE(ptr noundef nonnull align 8 dereferenceable(320) %0, ptr noundef nonnull align 16 dereferenceable(64) %1, float noundef %2, float noundef %3, float noundef %4, i32 %5, i32 noundef %6, i32 noundef %7) #8 align 2 {
  %9 = alloca %"class.JPH::Color", align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"struct.JPH::AssertLastParam", align 1
  %18 = alloca %"struct.JPH::AssertLastParam", align 1
  %19 = alloca %"struct.JPH::AssertLastParam", align 1
  %20 = alloca %"struct.JPH::DebugRenderer::SwingConeLimits", align 4
  %21 = alloca ptr, align 8
  %22 = alloca %"class.JPH::HashTable<JPH::DebugRenderer::SwingConeLimits, std::pair<JPH::DebugRenderer::SwingConeLimits, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<JPH::DebugRenderer::SwingConeLimits, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::DebugRenderer::SwingConeLimitsHasher, std::equal_to<JPH::DebugRenderer::SwingConeLimits>>::iterator", align 8
  %23 = alloca %"class.JPH::HashTable<JPH::DebugRenderer::SwingConeLimits, std::pair<JPH::DebugRenderer::SwingConeLimits, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<JPH::DebugRenderer::SwingConeLimits, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::DebugRenderer::SwingConeLimitsHasher, std::equal_to<JPH::DebugRenderer::SwingConeLimits>>::iterator", align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca i32, align 4
  %29 = alloca float, align 4
  %30 = alloca float, align 4
  %31 = alloca [64 x %"class.JPH::Vec3"], align 16
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca float, align 4
  %36 = alloca float, align 4
  %37 = alloca float, align 4
  %38 = alloca float, align 4
  %39 = alloca %"class.JPH::Vec3", align 16
  %40 = alloca float, align 4
  %41 = alloca %"class.JPH::Quat", align 16
  %42 = alloca %"class.JPH::Vec4", align 16
  %43 = alloca %"class.JPH::Vec3", align 16
  %44 = alloca %"class.JPH::Vec3", align 16
  %45 = alloca %"class.JPH::Mat44", align 16
  %46 = alloca %"class.JPH::Mat44", align 16
  %47 = alloca %"class.JPH::Color", align 4
  %48 = getelementptr inbounds %"class.JPH::Color", ptr %9, i32 0, i32 0
  %49 = getelementptr inbounds %union.anon.0, ptr %48, i32 0, i32 0
  store i32 %5, ptr %49, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store float %2, ptr %12, align 4, !tbaa !9
  store float %3, ptr %13, align 4, !tbaa !9
  store float %4, ptr %14, align 4, !tbaa !9
  store i32 %6, ptr %15, align 4, !tbaa !11
  store i32 %7, ptr %16, align 4, !tbaa !13
  %50 = load ptr, ptr %10, align 8
  br label %51

51:                                               ; preds = %8
  %52 = load float, ptr %12, align 4, !tbaa !9
  %53 = fcmp oge float %52, 0.000000e+00
  br i1 %53, label %54, label %57

54:                                               ; preds = %51
  %55 = load float, ptr %12, align 4, !tbaa !9
  %56 = fcmp ole float %55, 0x400921FB60000000
  br i1 %56, label %60, label %57

57:                                               ; preds = %54, %51
  %58 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 871)
  br i1 %58, label %59, label %60

59:                                               ; preds = %57
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #10, !srcloc !15
  br label %60

60:                                               ; preds = %59, %57, %54
  br label %61

61:                                               ; preds = %60
  br label %62

62:                                               ; preds = %61
  %63 = load float, ptr %13, align 4, !tbaa !9
  %64 = fcmp oge float %63, 0.000000e+00
  br i1 %64, label %65, label %68

65:                                               ; preds = %62
  %66 = load float, ptr %13, align 4, !tbaa !9
  %67 = fcmp ole float %66, 0x400921FB60000000
  br i1 %67, label %71, label %68

68:                                               ; preds = %65, %62
  %69 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 872)
  br i1 %69, label %70, label %71

70:                                               ; preds = %68
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #10, !srcloc !16
  br label %71

71:                                               ; preds = %70, %68, %65
  br label %72

72:                                               ; preds = %71
  br label %73

73:                                               ; preds = %72
  %74 = load float, ptr %14, align 4, !tbaa !9
  %75 = fcmp ogt float %74, 0.000000e+00
  br i1 %75, label %79, label %76

76:                                               ; preds = %73
  %77 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.8, ptr noundef @.str.1, i32 noundef 873)
  br i1 %77, label %78, label %79

78:                                               ; preds = %76
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #10, !srcloc !17
  br label %79

79:                                               ; preds = %78, %76, %73
  br label %80

80:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #10
  %81 = getelementptr inbounds %"struct.JPH::DebugRenderer::SwingConeLimits", ptr %20, i32 0, i32 0
  %82 = load float, ptr %12, align 4, !tbaa !9
  store float %82, ptr %81, align 4, !tbaa !18
  %83 = getelementptr inbounds %"struct.JPH::DebugRenderer::SwingConeLimits", ptr %20, i32 0, i32 1
  %84 = load float, ptr %13, align 4, !tbaa !9
  store float %84, ptr %83, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #10
  %85 = getelementptr inbounds %"class.JPH::DebugRenderer", ptr %50, i32 0, i32 8
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH12UnorderedMapINS_13DebugRenderer15SwingConeLimitsENS_3RefINS1_8GeometryEEENS1_21SwingConeLimitsHasherESt8equal_toIS2_EEixERKS2_(ptr noundef nonnull align 8 dereferenceable(28) %85, ptr noundef nonnull align 4 dereferenceable(8) %20)
  store ptr %86, ptr %21, align 8, !tbaa !5
  %87 = load ptr, ptr %21, align 8, !tbaa !5
  %88 = call noundef zeroext i1 @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEeqEPKS2_(ptr noundef nonnull align 8 dereferenceable(8) %87, ptr noundef null)
  br i1 %88, label %89, label %99

89:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #10
  %90 = getelementptr inbounds %"class.JPH::DebugRenderer", ptr %50, i32 0, i32 9
  call void @_ZN3JPH12UnorderedMapINS_13DebugRenderer15SwingConeLimitsENS_3RefINS1_8GeometryEEENS1_21SwingConeLimitsHasherESt8equal_toIS2_EE4findERKS2_(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<JPH::DebugRenderer::SwingConeLimits, std::pair<JPH::DebugRenderer::SwingConeLimits, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<JPH::DebugRenderer::SwingConeLimits, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::DebugRenderer::SwingConeLimitsHasher, std::equal_to<JPH::DebugRenderer::SwingConeLimits>>::iterator") align 8 %22, ptr noundef nonnull align 8 dereferenceable(28) %90, ptr noundef nonnull align 4 dereferenceable(8) %20)
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #10
  %91 = getelementptr inbounds %"class.JPH::DebugRenderer", ptr %50, i32 0, i32 9
  call void @_ZN3JPH9HashTableINS_13DebugRenderer15SwingConeLimitsESt4pairIS2_NS_3RefINS1_8GeometryEEEENS_18UnorderedMapDetailIS2_S6_EENS1_21SwingConeLimitsHasherESt8equal_toIS2_EE3endEv(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<JPH::DebugRenderer::SwingConeLimits, std::pair<JPH::DebugRenderer::SwingConeLimits, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<JPH::DebugRenderer::SwingConeLimits, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::DebugRenderer::SwingConeLimitsHasher, std::equal_to<JPH::DebugRenderer::SwingConeLimits>>::iterator") align 8 %23, ptr noundef nonnull align 8 dereferenceable(28) %91)
  %92 = call noundef zeroext i1 @_ZNK3JPH9HashTableINS_13DebugRenderer15SwingConeLimitsESt4pairIS2_NS_3RefINS1_8GeometryEEEENS_18UnorderedMapDetailIS2_S6_EENS1_21SwingConeLimitsHasherESt8equal_toIS2_EE12IteratorBaseISD_NSD_8iteratorEEneERKSF_(ptr noundef nonnull align 8 dereferenceable(12) %22, ptr noundef nonnull align 8 dereferenceable(12) %23)
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #10
  br i1 %92, label %93, label %98

93:                                               ; preds = %89
  %94 = call noundef ptr @_ZN3JPH9HashTableINS_13DebugRenderer15SwingConeLimitsESt4pairIS2_NS_3RefINS1_8GeometryEEEENS_18UnorderedMapDetailIS2_S6_EENS1_21SwingConeLimitsHasherESt8equal_toIS2_EE8iteratorptEv(ptr noundef nonnull align 8 dereferenceable(12) %22)
  %95 = getelementptr inbounds %"struct.std::pair", ptr %94, i32 0, i32 1
  %96 = load ptr, ptr %21, align 8, !tbaa !5
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_13DebugRenderer8GeometryEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(8) %96, ptr noundef nonnull align 8 dereferenceable(8) %95)
  br label %98

98:                                               ; preds = %93, %89
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #10
  br label %99

99:                                               ; preds = %98, %80
  %100 = load ptr, ptr %21, align 8, !tbaa !5
  %101 = call noundef zeroext i1 @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEeqEPKS2_(ptr noundef nonnull align 8 dereferenceable(8) %100, ptr noundef null)
  br i1 %101, label %102, label %244

102:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #10
  store i32 64, ptr %24, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #10
  store i32 32, ptr %25, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #10
  %103 = load float, ptr %13, align 4, !tbaa !9
  %104 = fmul float 5.000000e-01, %103
  %105 = call noundef float @_ZN3JPH3SinEf(float noundef %104)
  store float %105, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #10
  %106 = load float, ptr %12, align 4, !tbaa !9
  %107 = fmul float 5.000000e-01, %106
  %108 = call noundef float @_ZN3JPH3SinEf(float noundef %107)
  store float %108, ptr %27, align 4, !tbaa !9
  %109 = load float, ptr %26, align 4, !tbaa !9
  %110 = fcmp ole float %109, 0.000000e+00
  br i1 %110, label %111, label %114

111:                                              ; preds = %102
  %112 = load float, ptr %27, align 4, !tbaa !9
  %113 = fcmp ole float %112, 0.000000e+00
  br i1 %113, label %120, label %114

114:                                              ; preds = %111, %102
  %115 = load float, ptr %27, align 4, !tbaa !9
  %116 = fcmp oge float %115, 1.000000e+00
  br i1 %116, label %117, label %121

117:                                              ; preds = %114
  %118 = load float, ptr %26, align 4, !tbaa !9
  %119 = fcmp oge float %118, 1.000000e+00
  br i1 %119, label %120, label %121

120:                                              ; preds = %117, %111
  store i32 1, ptr %28, align 4
  br label %241

121:                                              ; preds = %117, %114
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #10
  %122 = load float, ptr %26, align 4, !tbaa !9
  %123 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %122)
  store float %123, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #10
  %124 = load float, ptr %27, align 4, !tbaa !9
  %125 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %124)
  store float %125, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1024, ptr %31) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #10
  store i32 0, ptr %32, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #10
  store i32 0, ptr %33, align 4, !tbaa !21
  br label %126

126:                                              ; preds = %233, %121
  %127 = load i32, ptr %33, align 4, !tbaa !21
  %128 = icmp slt i32 %127, 2
  br i1 %128, label %130, label %129

129:                                              ; preds = %126
  store i32 8, ptr %28, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #10
  br label %236

130:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #10
  store i32 0, ptr %34, align 4, !tbaa !21
  br label %131

131:                                              ; preds = %229, %130
  %132 = load i32, ptr %34, align 4, !tbaa !21
  %133 = load i32, ptr %25, align 4, !tbaa !21
  %134 = icmp slt i32 %132, %133
  br i1 %134, label %136, label %135

135:                                              ; preds = %131
  store i32 11, ptr %28, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #10
  br label %232

136:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #10
  %137 = load float, ptr %30, align 4, !tbaa !9
  %138 = load float, ptr %29, align 4, !tbaa !9
  %139 = fcmp ogt float %137, %138
  br i1 %139, label %140, label %167

140:                                              ; preds = %136
  %141 = load float, ptr %27, align 4, !tbaa !9
  %142 = load i32, ptr %34, align 4, !tbaa !21
  %143 = sitofp i32 %142 to float
  %144 = fmul float 2.000000e+00, %143
  %145 = load float, ptr %27, align 4, !tbaa !9
  %146 = fmul float %144, %145
  %147 = load i32, ptr %25, align 4, !tbaa !21
  %148 = sitofp i32 %147 to float
  %149 = fdiv float %146, %148
  %150 = fsub float %141, %149
  store float %150, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #10
  %151 = load float, ptr %29, align 4, !tbaa !9
  %152 = load float, ptr %29, align 4, !tbaa !9
  %153 = load float, ptr %30, align 4, !tbaa !9
  %154 = fdiv float %152, %153
  %155 = load float, ptr %35, align 4, !tbaa !9
  %156 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %155)
  %157 = fneg float %154
  %158 = call float @llvm.fmuladd.f32(float %157, float %156, float %151)
  store float %158, ptr %37, align 4, !tbaa !9
  %159 = load float, ptr %37, align 4, !tbaa !9
  %160 = fcmp ole float %159, 0.000000e+00
  br i1 %160, label %161, label %162

161:                                              ; preds = %140
  br label %165

162:                                              ; preds = %140
  %163 = load float, ptr %37, align 4, !tbaa !9
  %164 = call noundef float @_ZSt4sqrtf(float noundef %163)
  br label %165

165:                                              ; preds = %162, %161
  %166 = phi float [ 0.000000e+00, %161 ], [ %164, %162 ]
  store float %166, ptr %36, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #10
  br label %195

167:                                              ; preds = %136
  %168 = load float, ptr %26, align 4, !tbaa !9
  %169 = fneg float %168
  %170 = load i32, ptr %34, align 4, !tbaa !21
  %171 = sitofp i32 %170 to float
  %172 = fmul float 2.000000e+00, %171
  %173 = load float, ptr %26, align 4, !tbaa !9
  %174 = fmul float %172, %173
  %175 = load i32, ptr %25, align 4, !tbaa !21
  %176 = sitofp i32 %175 to float
  %177 = fdiv float %174, %176
  %178 = fadd float %169, %177
  store float %178, ptr %36, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #10
  %179 = load float, ptr %30, align 4, !tbaa !9
  %180 = load float, ptr %30, align 4, !tbaa !9
  %181 = load float, ptr %29, align 4, !tbaa !9
  %182 = fdiv float %180, %181
  %183 = load float, ptr %36, align 4, !tbaa !9
  %184 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %183)
  %185 = fneg float %182
  %186 = call float @llvm.fmuladd.f32(float %185, float %184, float %179)
  store float %186, ptr %38, align 4, !tbaa !9
  %187 = load float, ptr %38, align 4, !tbaa !9
  %188 = fcmp ole float %187, 0.000000e+00
  br i1 %188, label %189, label %190

189:                                              ; preds = %167
  br label %193

190:                                              ; preds = %167
  %191 = load float, ptr %38, align 4, !tbaa !9
  %192 = call noundef float @_ZSt4sqrtf(float noundef %191)
  br label %193

193:                                              ; preds = %190, %189
  %194 = phi float [ 0.000000e+00, %189 ], [ %192, %190 ]
  store float %194, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #10
  br label %195

195:                                              ; preds = %193, %165
  %196 = load i32, ptr %33, align 4, !tbaa !21
  %197 = icmp eq i32 %196, 1
  br i1 %197, label %198, label %203

198:                                              ; preds = %195
  %199 = load float, ptr %36, align 4, !tbaa !9
  %200 = fneg float %199
  store float %200, ptr %36, align 4, !tbaa !9
  %201 = load float, ptr %35, align 4, !tbaa !9
  %202 = fneg float %201
  store float %202, ptr %35, align 4, !tbaa !9
  br label %203

203:                                              ; preds = %198, %195
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #10
  %204 = load float, ptr %35, align 4, !tbaa !9
  %205 = load float, ptr %36, align 4, !tbaa !9
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %39, float noundef 0.000000e+00, float noundef %204, float noundef %205)
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #10
  %206 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %39)
  %207 = fsub float 1.000000e+00, %206
  %208 = call noundef float @_ZSt4sqrtf(float noundef %207)
  store float %208, ptr %40, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %43, ptr align 16 %39, i64 16, i1 false), !tbaa.struct !23
  %209 = load float, ptr %40, align 4, !tbaa !9
  %210 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 0
  %211 = load double, ptr %210, align 16
  %212 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 1
  %213 = load double, ptr %212, align 8
  call void @_ZN3JPH4Vec4C2ENS_4Vec3Ef(ptr noundef nonnull align 16 dereferenceable(16) %42, double %211, double %213, float noundef %209)
  %214 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 0
  %215 = load double, ptr %214, align 16
  %216 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 1
  %217 = load double, ptr %216, align 8
  call void @_ZN3JPH4QuatC2ENS_4Vec4E(ptr noundef nonnull align 16 dereferenceable(16) %41, double %215, double %217)
  call void @llvm.lifetime.start.p0(i64 16, ptr %44) #10
  %218 = call { double, double } @_ZNK3JPH4Quat11RotateAxisXEv(ptr noundef nonnull align 16 dereferenceable(16) %41)
  %219 = getelementptr inbounds %"class.JPH::Vec3", ptr %44, i32 0, i32 0
  %220 = getelementptr inbounds %union.anon, ptr %219, i32 0, i32 0
  %221 = getelementptr inbounds { double, double }, ptr %220, i32 0, i32 0
  %222 = extractvalue { double, double } %218, 0
  store double %222, ptr %221, align 16
  %223 = getelementptr inbounds { double, double }, ptr %220, i32 0, i32 1
  %224 = extractvalue { double, double } %218, 1
  store double %224, ptr %223, align 8
  %225 = load i32, ptr %32, align 4, !tbaa !21
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr %32, align 4, !tbaa !21
  %227 = sext i32 %225 to i64
  %228 = getelementptr inbounds [64 x %"class.JPH::Vec3"], ptr %31, i64 0, i64 %227
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %228, ptr align 16 %44, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #10
  br label %229

229:                                              ; preds = %203
  %230 = load i32, ptr %34, align 4, !tbaa !21
  %231 = add nsw i32 %230, 1
  store i32 %231, ptr %34, align 4, !tbaa !21
  br label %131, !llvm.loop !25

232:                                              ; preds = %135
  br label %233

233:                                              ; preds = %232
  %234 = load i32, ptr %33, align 4, !tbaa !21
  %235 = add nsw i32 %234, 1
  store i32 %235, ptr %33, align 4, !tbaa !21
  br label %126, !llvm.loop !27

236:                                              ; preds = %129
  %237 = getelementptr inbounds [64 x %"class.JPH::Vec3"], ptr %31, i64 0, i64 0
  %238 = call noundef ptr @_ZN3JPH13DebugRenderer24CreateSwingLimitGeometryEiPKNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(320) %50, i32 noundef 64, ptr noundef %237)
  %239 = load ptr, ptr %21, align 8, !tbaa !5
  %240 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_13DebugRenderer8GeometryEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %239, ptr noundef %238)
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #10
  call void @llvm.lifetime.end.p0(i64 1024, ptr %31) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #10
  store i32 0, ptr %28, align 4
  br label %241

241:                                              ; preds = %236, %120
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #10
  %242 = load i32, ptr %28, align 4
  switch i32 %242, label %253 [
    i32 0, label %243
  ]

243:                                              ; preds = %241
  br label %244

244:                                              ; preds = %243, %99
  call void @llvm.lifetime.start.p0(i64 64, ptr %45) #10
  %245 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr %46) #10
  %246 = load float, ptr %14, align 4, !tbaa !9
  call void @_ZN3JPH5Mat446sScaleEf(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %46, float noundef %246)
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %45, ptr noundef nonnull align 16 dereferenceable(64) %245, ptr noundef nonnull align 16 dereferenceable(64) %46)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %47, ptr align 4 %9, i64 4, i1 false), !tbaa.struct !28
  %247 = load ptr, ptr %21, align 8, !tbaa !5
  %248 = load i32, ptr %15, align 4, !tbaa !11
  %249 = load i32, ptr %16, align 4, !tbaa !13
  %250 = getelementptr inbounds %"class.JPH::Color", ptr %47, i32 0, i32 0
  %251 = getelementptr inbounds %union.anon.0, ptr %250, i32 0, i32 0
  %252 = load i32, ptr %251, align 4
  call void @_ZN3JPH13DebugRenderer12DrawGeometryERKNS_5Mat44ENS_5ColorERKNS_3RefINS0_8GeometryEEENS0_9ECullModeENS0_11ECastShadowENS0_9EDrawModeE(ptr noundef nonnull align 8 dereferenceable(320) %50, ptr noundef nonnull align 16 dereferenceable(64) %45, i32 %252, ptr noundef nonnull align 8 dereferenceable(8) %247, i32 noundef 2, i32 noundef %248, i32 noundef %249)
  call void @llvm.lifetime.end.p0(i64 64, ptr %46) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %45) #10
  store i32 0, ptr %28, align 4
  br label %253

253:                                              ; preds = %244, %241
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #10
  %254 = load i32, ptr %28, align 4
  switch i32 %254, label %256 [
    i32 0, label %255
    i32 1, label %255
  ]

255:                                              ; preds = %253, %253
  ret void

256:                                              ; preds = %253
  unreachable
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH9HashTableINS_13DebugRenderer15SwingConeLimitsESt4pairIS2_NS_3RefINS1_8GeometryEEEENS_18UnorderedMapDetailIS2_S6_EENS1_21SwingConeLimitsHasherESt8equal_toIS2_EE3endEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<JPH::DebugRenderer::SwingConeLimits, std::pair<JPH::DebugRenderer::SwingConeLimits, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<JPH::DebugRenderer::SwingConeLimits, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::DebugRenderer::SwingConeLimitsHasher, std::equal_to<JPH::DebugRenderer::SwingConeLimits>>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28)) #8 align 2

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #9

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) #7

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16)) #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH4QuatC2ENS_4Vec4E(ptr noundef nonnull align 16 dereferenceable(16), double, double) unnamed_addr #7 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { alwaysinline mustprogress nounwind 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 #5 = { 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 #6 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { 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 = !{!"_ZTSN3JPH13DebugRenderer11ECastShadowE", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTSN3JPH13DebugRenderer9EDrawModeE", !7, i64 0}
!15 = !{i64 2158313416}
!16 = !{i64 2158313820}
!17 = !{i64 2158314150}
!18 = !{!19, !10, i64 0}
!19 = !{!"_ZTSN3JPH13DebugRenderer15SwingConeLimitsE", !10, i64 0, !10, i64 4}
!20 = !{!19, !10, i64 4}
!21 = !{!22, !22, i64 0}
!22 = !{!"int", !7, i64 0}
!23 = !{i64 0, i64 16, !24}
!24 = !{!7, !7, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = !{i64 0, i64 4, !24}


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

%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.13 }
%union.anon.13 = type { <4 x float> }
%"struct.JPH::DebugRenderer::SwingConeLimits" = type { float, float }
%"class.JPH::HashTable<JPH::DebugRenderer::SwingConeLimits, std::pair<JPH::DebugRenderer::SwingConeLimits, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<JPH::DebugRenderer::SwingConeLimits, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::DebugRenderer::SwingConeLimitsHasher, std::equal_to<JPH::DebugRenderer::SwingConeLimits>>::iterator" = type { %"class.JPH::HashTable<JPH::DebugRenderer::SwingConeLimits, std::pair<JPH::DebugRenderer::SwingConeLimits, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<JPH::DebugRenderer::SwingConeLimits, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::DebugRenderer::SwingConeLimitsHasher, std::equal_to<JPH::DebugRenderer::SwingConeLimits>>::IteratorBase.base", [4 x i8] }
%"class.JPH::HashTable<JPH::DebugRenderer::SwingConeLimits, std::pair<JPH::DebugRenderer::SwingConeLimits, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<JPH::DebugRenderer::SwingConeLimits, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::DebugRenderer::SwingConeLimitsHasher, std::equal_to<JPH::DebugRenderer::SwingConeLimits>>::IteratorBase.base" = type <{ ptr, i32 }>
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }

@.str.1 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [20 x i8], align 1

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

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64)) local_unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat446sScaleEf(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, float noundef) local_unnamed_addr #4 align 2

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef) local_unnamed_addr #5

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH13DebugRenderer24CreateSwingLimitGeometryEiPKNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(320), i32 noundef, ptr noundef) local_unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH13DebugRenderer19DrawSwingConeLimitsERKNS_5Mat44EfffNS_5ColorENS0_11ECastShadowENS0_9EDrawModeE(ptr noundef nonnull align 8 dereferenceable(320) %0, ptr noundef nonnull align 16 dereferenceable(64) %1, float noundef %2, float noundef %3, float noundef %4, i32 %5, i32 noundef %6, i32 noundef %7) local_unnamed_addr #7 align 2 {
  %9 = alloca %"struct.JPH::DebugRenderer::SwingConeLimits", align 4
  %10 = alloca %"class.JPH::HashTable<JPH::DebugRenderer::SwingConeLimits, std::pair<JPH::DebugRenderer::SwingConeLimits, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<JPH::DebugRenderer::SwingConeLimits, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::DebugRenderer::SwingConeLimitsHasher, std::equal_to<JPH::DebugRenderer::SwingConeLimits>>::iterator", align 8
  %11 = alloca %"class.JPH::HashTable<JPH::DebugRenderer::SwingConeLimits, std::pair<JPH::DebugRenderer::SwingConeLimits, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<JPH::DebugRenderer::SwingConeLimits, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::DebugRenderer::SwingConeLimitsHasher, std::equal_to<JPH::DebugRenderer::SwingConeLimits>>::iterator", align 8
  %12 = alloca [64 x %"class.JPH::Vec3"], align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::Quat", align 16
  %15 = alloca %"class.JPH::Vec4", align 16
  %16 = alloca %"class.JPH::Mat44", align 16
  %17 = alloca %"class.JPH::Mat44", align 16
  %18 = fcmp oge float %2, 0.000000e+00
  %19 = fcmp ole float %2, 0x400921FB60000000
  %or.cond = and i1 %18, %19
  br i1 %or.cond, label %23, label %20

20:                                               ; preds = %8
  %21 = tail call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 871)
  br i1 %21, label %22, label %23

22:                                               ; preds = %20
  tail call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #9, !srcloc !5
  br label %23

23:                                               ; preds = %8, %22, %20
  %24 = fcmp oge float %3, 0.000000e+00
  %25 = fcmp ole float %3, 0x400921FB60000000
  %or.cond3 = and i1 %24, %25
  br i1 %or.cond3, label %29, label %26

26:                                               ; preds = %23
  %27 = tail call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, i32 noundef 872)
  br i1 %27, label %28, label %29

28:                                               ; preds = %26
  tail call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #9, !srcloc !6
  br label %29

29:                                               ; preds = %23, %28, %26
  %30 = fcmp ogt float %4, 0.000000e+00
  br i1 %30, label %34, label %31

31:                                               ; preds = %29
  %32 = tail call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.1, i32 noundef 873)
  br i1 %32, label %33, label %34

33:                                               ; preds = %31
  tail call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #9, !srcloc !7
  br label %34

34:                                               ; preds = %29, %31, %33
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #9
  store float %2, ptr %9, align 4, !tbaa !8
  %35 = getelementptr inbounds i8, ptr %9, i64 4
  store float %3, ptr %35, align 4, !tbaa !13
  %36 = getelementptr inbounds i8, ptr %0, i64 64
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH12UnorderedMapINS_13DebugRenderer15SwingConeLimitsENS_3RefINS1_8GeometryEEENS1_21SwingConeLimitsHasherESt8equal_toIS2_EEixERKS2_(ptr noundef nonnull align 8 dereferenceable(28) %36, ptr noundef nonnull align 4 dereferenceable(8) %9)
  %38 = call noundef zeroext i1 @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEeqEPKS2_(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef null)
  br i1 %38, label %39, label %47

39:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #9
  %40 = getelementptr inbounds i8, ptr %0, i64 96
  call void @_ZN3JPH12UnorderedMapINS_13DebugRenderer15SwingConeLimitsENS_3RefINS1_8GeometryEEENS1_21SwingConeLimitsHasherESt8equal_toIS2_EE4findERKS2_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<JPH::DebugRenderer::SwingConeLimits, std::pair<JPH::DebugRenderer::SwingConeLimits, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<JPH::DebugRenderer::SwingConeLimits, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::DebugRenderer::SwingConeLimitsHasher, std::equal_to<JPH::DebugRenderer::SwingConeLimits>>::iterator") align 8 %10, ptr noundef nonnull align 8 dereferenceable(28) %40, ptr noundef nonnull align 4 dereferenceable(8) %9)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #9
  call void @_ZN3JPH9HashTableINS_13DebugRenderer15SwingConeLimitsESt4pairIS2_NS_3RefINS1_8GeometryEEEENS_18UnorderedMapDetailIS2_S6_EENS1_21SwingConeLimitsHasherESt8equal_toIS2_EE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<JPH::DebugRenderer::SwingConeLimits, std::pair<JPH::DebugRenderer::SwingConeLimits, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<JPH::DebugRenderer::SwingConeLimits, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::DebugRenderer::SwingConeLimitsHasher, std::equal_to<JPH::DebugRenderer::SwingConeLimits>>::iterator") align 8 %11, ptr noundef nonnull align 8 dereferenceable(28) %40)
  %41 = call noundef zeroext i1 @_ZNK3JPH9HashTableINS_13DebugRenderer15SwingConeLimitsESt4pairIS2_NS_3RefINS1_8GeometryEEEENS_18UnorderedMapDetailIS2_S6_EENS1_21SwingConeLimitsHasherESt8equal_toIS2_EE12IteratorBaseISD_NSD_8iteratorEEneERKSF_(ptr noundef nonnull align 8 dereferenceable(12) %10, ptr noundef nonnull align 8 dereferenceable(12) %11)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  br i1 %41, label %42, label %46

42:                                               ; preds = %39
  %43 = call noundef ptr @_ZN3JPH9HashTableINS_13DebugRenderer15SwingConeLimitsESt4pairIS2_NS_3RefINS1_8GeometryEEEENS_18UnorderedMapDetailIS2_S6_EENS1_21SwingConeLimitsHasherESt8equal_toIS2_EE8iteratorptEv(ptr noundef nonnull align 8 dereferenceable(12) %10)
  %44 = getelementptr inbounds i8, ptr %43, i64 8
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_13DebugRenderer8GeometryEEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull align 8 dereferenceable(8) %44)
  br label %46

46:                                               ; preds = %42, %39
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #9
  br label %47

47:                                               ; preds = %46, %34
  %48 = call noundef zeroext i1 @_ZNK3JPH3RefINS_13DebugRenderer8GeometryEEeqEPKS2_(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef null)
  br i1 %48, label %49, label %156

49:                                               ; preds = %47
  %50 = fmul float %3, 5.000000e-01
  %51 = call noundef float @_ZN3JPH3SinEf(float noundef %50)
  %52 = fmul float %2, 5.000000e-01
  %53 = call noundef float @_ZN3JPH3SinEf(float noundef %52)
  %54 = fcmp ole float %51, 0.000000e+00
  %55 = fcmp ole float %53, 0.000000e+00
  %or.cond5 = and i1 %54, %55
  br i1 %or.cond5, label %157, label %56

56:                                               ; preds = %49
  %57 = fcmp oge float %53, 1.000000e+00
  %58 = fcmp oge float %51, 1.000000e+00
  %or.cond7 = and i1 %58, %57
  br i1 %or.cond7, label %157, label %59

59:                                               ; preds = %56
  %60 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %51)
  %61 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %53)
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %12) #9
  %62 = fcmp ogt float %61, %60
  %63 = fneg float %61
  %64 = fdiv float %63, %60
  %65 = fneg float %60
  %66 = fdiv float %65, %61
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %13, i64 8
  %67 = getelementptr inbounds i8, ptr %15, i64 8
  br i1 %62, label %.preheader.us.preheader, label %.preheader.preheader

.preheader.us.preheader:                          ; preds = %59, %78
  %indvars.iv92 = phi i64 [ %indvars.iv.next93, %78 ], [ 0, %59 ]
  %indvars96 = trunc i64 %indvars.iv92 to i32
  %68 = uitofp nneg i32 %indvars96 to float
  %69 = fmul float %68, 2.000000e+00
  %70 = fmul float %53, %69
  %71 = fmul float %70, 3.125000e-02
  %72 = fsub float %53, %71
  %73 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %72)
  %74 = call float @llvm.fmuladd.f32(float %66, float %73, float %60)
  %75 = fcmp ugt float %74, 0.000000e+00
  br i1 %75, label %76, label %78

76:                                               ; preds = %.preheader.us.preheader
  %77 = call noundef float @_ZSt4sqrtf(float noundef %74)
  br label %78

78:                                               ; preds = %76, %.preheader.us.preheader
  %.074.us.us = phi float [ %77, %76 ], [ 0.000000e+00, %.preheader.us.preheader ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #9
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %13, float noundef 0.000000e+00, float noundef %72, float noundef %.074.us.us)
  %79 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %13)
  %80 = fsub float 1.000000e+00, %79
  %81 = call noundef float @_ZSt4sqrtf(float noundef %80)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #9
  %.sroa.09.0.copyload.us.us = load double, ptr %13, align 16
  %.sroa.2.0.copyload.us.us = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !14
  call void @_ZN3JPH4Vec4C2ENS_4Vec3Ef(ptr noundef nonnull align 16 dereferenceable(16) %15, double %.sroa.09.0.copyload.us.us, double %.sroa.2.0.copyload.us.us, float noundef %81)
  %82 = load double, ptr %15, align 16
  %83 = load double, ptr %67, align 8
  call void @_ZN3JPH4QuatC2ENS_4Vec4E(ptr noundef nonnull align 16 dereferenceable(16) %14, double %82, double %83)
  %84 = call { double, double } @_ZNK3JPH4Quat11RotateAxisXEv(ptr noundef nonnull align 16 dereferenceable(16) %14)
  %85 = extractvalue { double, double } %84, 0
  %86 = extractvalue { double, double } %84, 1
  %indvars.iv.next93 = add nuw nsw i64 %indvars.iv92, 1
  %87 = getelementptr inbounds [64 x %"class.JPH::Vec3"], ptr %12, i64 0, i64 %indvars.iv92
  store double %85, ptr %87, align 16
  %.sroa.4.0..sroa_idx.us.us = getelementptr inbounds i8, ptr %87, i64 8
  store double %86, ptr %.sroa.4.0..sroa_idx.us.us, align 8, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #9
  %exitcond97.not = icmp eq i64 %indvars.iv.next93, 32
  br i1 %exitcond97.not, label %.split.us.us, label %.preheader.us.preheader, !llvm.loop !15

.split.us.us:                                     ; preds = %78, %98
  %indvars.iv92.1 = phi i64 [ %indvars.iv.next93.1, %98 ], [ 32, %78 ]
  %.07182.us.us.1 = phi i32 [ %110, %98 ], [ 0, %78 ]
  %88 = uitofp nneg i32 %.07182.us.us.1 to float
  %89 = fmul float %88, 2.000000e+00
  %90 = fmul float %53, %89
  %91 = fmul float %90, 3.125000e-02
  %92 = fsub float %53, %91
  %93 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %92)
  %94 = call float @llvm.fmuladd.f32(float %66, float %93, float %60)
  %95 = fcmp ugt float %94, 0.000000e+00
  br i1 %95, label %96, label %98

96:                                               ; preds = %.split.us.us
  %97 = call noundef float @_ZSt4sqrtf(float noundef %94)
  br label %98

98:                                               ; preds = %96, %.split.us.us
  %.074.us.us.1 = phi float [ %97, %96 ], [ 0.000000e+00, %.split.us.us ]
  %99 = fneg float %.074.us.us.1
  %100 = fneg float %92
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #9
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %13, float noundef 0.000000e+00, float noundef %100, float noundef %99)
  %101 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %13)
  %102 = fsub float 1.000000e+00, %101
  %103 = call noundef float @_ZSt4sqrtf(float noundef %102)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #9
  %.sroa.09.0.copyload.us.us.1 = load double, ptr %13, align 16
  %.sroa.2.0.copyload.us.us.1 = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !14
  call void @_ZN3JPH4Vec4C2ENS_4Vec3Ef(ptr noundef nonnull align 16 dereferenceable(16) %15, double %.sroa.09.0.copyload.us.us.1, double %.sroa.2.0.copyload.us.us.1, float noundef %103)
  %104 = load double, ptr %15, align 16
  %105 = load double, ptr %67, align 8
  call void @_ZN3JPH4QuatC2ENS_4Vec4E(ptr noundef nonnull align 16 dereferenceable(16) %14, double %104, double %105)
  %106 = call { double, double } @_ZNK3JPH4Quat11RotateAxisXEv(ptr noundef nonnull align 16 dereferenceable(16) %14)
  %107 = extractvalue { double, double } %106, 0
  %108 = extractvalue { double, double } %106, 1
  %indvars.iv.next93.1 = add nuw nsw i64 %indvars.iv92.1, 1
  %109 = getelementptr inbounds [64 x %"class.JPH::Vec3"], ptr %12, i64 0, i64 %indvars.iv92.1
  store double %107, ptr %109, align 16
  %.sroa.4.0..sroa_idx.us.us.1 = getelementptr inbounds i8, ptr %109, i64 8
  store double %108, ptr %.sroa.4.0..sroa_idx.us.us.1, align 8, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #9
  %110 = add nuw nsw i32 %.07182.us.us.1, 1
  %exitcond.195.not = icmp eq i32 %110, 32
  br i1 %exitcond.195.not, label %.critedge, label %.split.us.us, !llvm.loop !15

.critedge:                                        ; preds = %123, %98
  %111 = call noundef ptr @_ZN3JPH13DebugRenderer24CreateSwingLimitGeometryEiPKNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(320) %0, i32 noundef 64, ptr noundef nonnull %12)
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH3RefINS_13DebugRenderer8GeometryEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef %111)
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %12) #9
  br label %156

.split:                                           ; preds = %146, %123
  %indvars.iv.1 = phi i64 [ %indvars.iv.next.1, %123 ], [ 32, %146 ]
  %.07182.1 = phi i32 [ %135, %123 ], [ 0, %146 ]
  %113 = uitofp nneg i32 %.07182.1 to float
  %114 = fmul float %113, 2.000000e+00
  %115 = fmul float %51, %114
  %116 = fmul float %115, 3.125000e-02
  %117 = fsub float %116, %51
  %118 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %117)
  %119 = call float @llvm.fmuladd.f32(float %64, float %118, float %61)
  %120 = fcmp ugt float %119, 0.000000e+00
  br i1 %120, label %121, label %123

121:                                              ; preds = %.split
  %122 = call noundef float @_ZSt4sqrtf(float noundef %119)
  br label %123

123:                                              ; preds = %121, %.split
  %.072.1 = phi float [ 0.000000e+00, %.split ], [ %122, %121 ]
  %124 = fneg float %117
  %125 = fneg float %.072.1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #9
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %13, float noundef 0.000000e+00, float noundef %125, float noundef %124)
  %126 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %13)
  %127 = fsub float 1.000000e+00, %126
  %128 = call noundef float @_ZSt4sqrtf(float noundef %127)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #9
  %.sroa.09.0.copyload.1 = load double, ptr %13, align 16
  %.sroa.2.0.copyload.1 = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !14
  call void @_ZN3JPH4Vec4C2ENS_4Vec3Ef(ptr noundef nonnull align 16 dereferenceable(16) %15, double %.sroa.09.0.copyload.1, double %.sroa.2.0.copyload.1, float noundef %128)
  %129 = load double, ptr %15, align 16
  %130 = load double, ptr %67, align 8
  call void @_ZN3JPH4QuatC2ENS_4Vec4E(ptr noundef nonnull align 16 dereferenceable(16) %14, double %129, double %130)
  %131 = call { double, double } @_ZNK3JPH4Quat11RotateAxisXEv(ptr noundef nonnull align 16 dereferenceable(16) %14)
  %132 = extractvalue { double, double } %131, 0
  %133 = extractvalue { double, double } %131, 1
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv.1, 1
  %134 = getelementptr inbounds [64 x %"class.JPH::Vec3"], ptr %12, i64 0, i64 %indvars.iv.1
  store double %132, ptr %134, align 16
  %.sroa.4.0..sroa_idx.1 = getelementptr inbounds i8, ptr %134, i64 8
  store double %133, ptr %.sroa.4.0..sroa_idx.1, align 8, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #9
  %135 = add nuw nsw i32 %.07182.1, 1
  %exitcond.1.not = icmp eq i32 %135, 32
  br i1 %exitcond.1.not, label %.critedge, label %.split, !llvm.loop !15

.preheader.preheader:                             ; preds = %59, %146
  %indvars.iv = phi i64 [ %indvars.iv.next, %146 ], [ 0, %59 ]
  %indvars90 = trunc i64 %indvars.iv to i32
  %136 = uitofp nneg i32 %indvars90 to float
  %137 = fmul float %136, 2.000000e+00
  %138 = fmul float %51, %137
  %139 = fmul float %138, 3.125000e-02
  %140 = fsub float %139, %51
  %141 = call noundef float @_ZN3JPH6SquareIfEET_S1_(float noundef %140)
  %142 = call float @llvm.fmuladd.f32(float %64, float %141, float %61)
  %143 = fcmp ugt float %142, 0.000000e+00
  br i1 %143, label %144, label %146

144:                                              ; preds = %.preheader.preheader
  %145 = call noundef float @_ZSt4sqrtf(float noundef %142)
  br label %146

146:                                              ; preds = %144, %.preheader.preheader
  %.072 = phi float [ 0.000000e+00, %.preheader.preheader ], [ %145, %144 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #9
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %13, float noundef 0.000000e+00, float noundef %.072, float noundef %140)
  %147 = call noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16) %13)
  %148 = fsub float 1.000000e+00, %147
  %149 = call noundef float @_ZSt4sqrtf(float noundef %148)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #9
  %.sroa.09.0.copyload = load double, ptr %13, align 16
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !14
  call void @_ZN3JPH4Vec4C2ENS_4Vec3Ef(ptr noundef nonnull align 16 dereferenceable(16) %15, double %.sroa.09.0.copyload, double %.sroa.2.0.copyload, float noundef %149)
  %150 = load double, ptr %15, align 16
  %151 = load double, ptr %67, align 8
  call void @_ZN3JPH4QuatC2ENS_4Vec4E(ptr noundef nonnull align 16 dereferenceable(16) %14, double %150, double %151)
  %152 = call { double, double } @_ZNK3JPH4Quat11RotateAxisXEv(ptr noundef nonnull align 16 dereferenceable(16) %14)
  %153 = extractvalue { double, double } %152, 0
  %154 = extractvalue { double, double } %152, 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %155 = getelementptr inbounds [64 x %"class.JPH::Vec3"], ptr %12, i64 0, i64 %indvars.iv
  store double %153, ptr %155, align 16
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %155, i64 8
  store double %154, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #9
  %exitcond91.not = icmp eq i64 %indvars.iv.next, 32
  br i1 %exitcond91.not, label %.split, label %.preheader.preheader, !llvm.loop !15

156:                                              ; preds = %.critedge, %47
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %16) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %17) #9
  call void @_ZN3JPH5Mat446sScaleEf(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %17, float noundef %4)
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %16, ptr noundef nonnull align 16 dereferenceable(64) %1, ptr noundef nonnull align 16 dereferenceable(64) %17)
  call void @_ZN3JPH13DebugRenderer12DrawGeometryERKNS_5Mat44ENS_5ColorERKNS_3RefINS0_8GeometryEEENS0_9ECullModeENS0_11ECastShadowENS0_9EDrawModeE(ptr noundef nonnull align 8 dereferenceable(320) %0, ptr noundef nonnull align 16 dereferenceable(64) %16, i32 %5, ptr noundef nonnull align 8 dereferenceable(8) %37, i32 noundef 2, i32 noundef %6, i32 noundef %7)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %16) #9
  br label %157

157:                                              ; preds = %56, %49, %156
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH12UnorderedMapINS_13DebugRenderer15SwingConeLimitsENS_3RefINS1_8GeometryEEENS1_21SwingConeLimitsHasherESt8equal_toIS2_EE4findERKS2_(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<JPH::DebugRenderer::SwingConeLimits, std::pair<JPH::DebugRenderer::SwingConeLimits, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<JPH::DebugRenderer::SwingConeLimits, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::DebugRenderer::SwingConeLimitsHasher, std::equal_to<JPH::DebugRenderer::SwingConeLimits>>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH9HashTableINS_13DebugRenderer15SwingConeLimitsESt4pairIS2_NS_3RefINS1_8GeometryEEEENS_18UnorderedMapDetailIS2_S6_EENS1_21SwingConeLimitsHasherESt8equal_toIS2_EE12IteratorBaseISD_NSD_8iteratorEEneERKSF_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH9HashTableINS_13DebugRenderer15SwingConeLimitsESt4pairIS2_NS_3RefINS1_8GeometryEEEENS_18UnorderedMapDetailIS2_S6_EENS1_21SwingConeLimitsHasherESt8equal_toIS2_EE3endEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<JPH::DebugRenderer::SwingConeLimits, std::pair<JPH::DebugRenderer::SwingConeLimits, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::UnorderedMapDetail<JPH::DebugRenderer::SwingConeLimits, JPH::Ref<JPH::DebugRenderer::Geometry>>, JPH::DebugRenderer::SwingConeLimitsHasher, std::equal_to<JPH::DebugRenderer::SwingConeLimits>>::iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #7 align 2

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #8

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) local_unnamed_addr #6

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec38LengthSqEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #5 align 2

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { alwaysinline mustprogress nounwind 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 #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 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #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 = { mustprogress 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 = !{i64 2158313416}
!6 = !{i64 2158313820}
!7 = !{i64 2158314150}
!8 = !{!9, !10, i64 0}
!9 = !{!"_ZTSN3JPH13DebugRenderer15SwingConeLimitsE", !10, i64 0, !10, i64 4}
!10 = !{!"float", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!9, !10, i64 4}
!14 = !{!11, !11, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


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