; LLVM IR from jrouwe/JoltPhysics :: Jolt/Physics/Collision/Shape (PlaneShape)

; 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.3 }
%union.anon.3 = type { <4 x float> }
%"class.JPH::Vec3" = type { %union.anon.5 }
%union.anon.5 = type { <4 x float> }
%"struct.JPH::AssertLastParam" = type { i8 }
%"class.JPH::Plane" = type { %"class.JPH::Vec4" }
%"class.JPH::ConvexShape::SupportBuffer" = type { [4160 x i8] }
%"class.JPH::CollideShapeResult" = type { %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, %"class.JPH::SubShapeID", %"class.JPH::SubShapeID", %"class.JPH::BodyID", %"class.JPH::StaticArray.6", %"class.JPH::StaticArray.6" }
%"class.JPH::SubShapeID" = type { i32 }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::StaticArray.6" = type { i32, [12 x i8], [32 x %"struct.JPH::StaticArray<JPH::Vec3, 32>::Storage"] }
%"struct.JPH::StaticArray<JPH::Vec3, 32>::Storage" = type { [16 x i8] }
%"class.JPH::PlaneShape" = type { %"class.JPH::Shape.base", %"class.JPH::Plane", %"class.JPH::RefConst", float, %"class.JPH::AABox" }
%"class.JPH::Shape.base" = type <{ ptr, %"class.JPH::RefTarget.4", [4 x i8], i64, i8, i8 }>
%"class.JPH::RefTarget.4" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::CollideShapeSettings" = type <{ %"class.JPH::CollideSettingsBase", float, i8, [11 x i8] }>
%"class.JPH::CollideSettingsBase" = type { i8, i8, float, float, %"class.JPH::Vec3" }

@.str.3 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [41 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16)) #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 } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16)) #3 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH5Plane14SignedDistanceENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16), double, double) #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i32 @_ZN3JPH16TransformedShape10sGetBodyIDEPKS0_(ptr noundef) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH5Plane6ScaledENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16), double, double) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH5Plane14GetTransformedERKNS_5Mat44E(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(64)) #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZNK3JPH5Shape7GetTypeEv(ptr noundef nonnull align 8 dereferenceable(26)) #7 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH5Mat4411Multiply3x3ENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64), double, double) #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)) #8 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH11StaticArrayINS_4Vec3ELj32EE5emptyEv(ptr noundef nonnull align 16 dereferenceable(528)) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZN3JPHL18sGetSupportingFaceEPKNS_11ConvexShapeENS_4Vec3ERKNS_5PlaneERKNS_5Mat44ERNS_11StaticArrayIS3_Lj32EEE(ptr noundef, double, double, ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(528)) #6

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH10PlaneShape21sCollideConvexVsPlaneEPKNS_5ShapeES3_NS_4Vec3ES4_RKNS_5Mat44ES7_RKNS_17SubShapeIDCreatorESA_RKNS_20CollideShapeSettingsERNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEERKNS_11ShapeFilterE(ptr noundef %0, ptr noundef %1, double %2, double %3, double %4, double %5, ptr noundef nonnull align 16 dereferenceable(64) %6, ptr noundef nonnull align 16 dereferenceable(64) %7, ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 16 dereferenceable(37) %10, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(12) %12) #1 align 2 personality ptr @__gxx_personality_v0 {
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca %"struct.JPH::AssertLastParam", align 1
  %26 = alloca %"struct.JPH::AssertLastParam", align 1
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca %"class.JPH::Plane", align 16
  %30 = alloca %"class.JPH::Vec3", align 16
  %31 = alloca %"class.JPH::Plane", align 16
  %32 = alloca %"class.JPH::Mat44", align 16
  %33 = alloca %"class.JPH::Mat44", align 16
  %34 = alloca %"class.JPH::Vec3", align 16
  %35 = alloca %"class.JPH::ConvexShape::SupportBuffer", align 16
  %36 = alloca ptr, align 8
  %37 = alloca %"class.JPH::Vec3", align 16
  %38 = alloca %"class.JPH::Vec3", align 16
  %39 = alloca %"class.JPH::Vec3", align 16
  %40 = alloca float, align 4
  %41 = alloca %"class.JPH::Vec3", align 16
  %42 = alloca float, align 4
  %43 = alloca float, align 4
  %44 = alloca %"class.JPH::Vec3", align 16
  %45 = alloca %"class.JPH::Vec3", align 16
  %46 = alloca %"class.JPH::Vec3", align 16
  %47 = alloca %"class.JPH::Vec3", align 16
  %48 = alloca %"class.JPH::Vec3", align 16
  %49 = alloca %"class.JPH::Vec3", align 16
  %50 = alloca %"class.JPH::Vec3", align 16
  %51 = alloca %"class.JPH::Vec3", align 16
  %52 = alloca %"class.JPH::CollideShapeResult", align 16
  %53 = alloca %"class.JPH::Vec3", align 16
  %54 = alloca %"class.JPH::Vec3", align 16
  %55 = alloca %"class.JPH::Vec3", align 16
  %56 = alloca %"class.JPH::BodyID", align 4
  %57 = alloca %"class.JPH::SubShapeID", align 4
  %58 = alloca %"class.JPH::Vec3", align 16
  %59 = alloca %"class.JPH::Vec3", align 16
  %60 = alloca ptr, align 8
  %61 = alloca i32, align 4
  %62 = alloca %"class.JPH::Vec3", align 16
  %63 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 0
  store double %2, ptr %63, align 16
  %64 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 1
  store double %3, ptr %64, align 8
  %65 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  store double %4, ptr %65, align 16
  %66 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  store double %5, ptr %66, align 8
  store ptr %0, ptr %16, align 8, !tbaa !5
  store ptr %1, ptr %17, align 8, !tbaa !5
  store ptr %6, ptr %18, align 8, !tbaa !5
  store ptr %7, ptr %19, align 8, !tbaa !5
  store ptr %8, ptr %20, align 8, !tbaa !5
  store ptr %9, ptr %21, align 8, !tbaa !5
  store ptr %10, ptr %22, align 8, !tbaa !5
  store ptr %11, ptr %23, align 8, !tbaa !5
  store ptr %12, ptr %24, align 8, !tbaa !5
  br label %67

67:                                               ; preds = %13
  %68 = load ptr, ptr %16, align 8, !tbaa !5
  %69 = call noundef zeroext i8 @_ZNK3JPH5Shape7GetTypeEv(ptr noundef nonnull align 8 dereferenceable(26) %68)
  %70 = icmp eq i8 %69, 0
  br i1 %70, label %74, label %71

71:                                               ; preds = %67
  %72 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.8, ptr noundef @.str.3, i32 noundef 450)
  br i1 %72, label %73, label %74

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

74:                                               ; preds = %73, %71, %67
  br label %75

75:                                               ; preds = %74
  br label %76

76:                                               ; preds = %75
  %77 = load ptr, ptr %17, align 8, !tbaa !5
  %78 = call noundef zeroext i8 @_ZNK3JPH5Shape7GetTypeEv(ptr noundef nonnull align 8 dereferenceable(26) %77)
  %79 = icmp eq i8 %78, 10
  br i1 %79, label %83, label %80

80:                                               ; preds = %76
  %81 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.9, ptr noundef @.str.3, i32 noundef 451)
  br i1 %81, label %82, label %83

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

83:                                               ; preds = %82, %80, %76
  br label %84

84:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #10
  %85 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %85, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #10
  %86 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %86, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #10
  %87 = load ptr, ptr %28, align 8, !tbaa !5
  %88 = getelementptr inbounds %"class.JPH::PlaneShape", ptr %87, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %30, ptr align 16 %15, i64 16, i1 false), !tbaa.struct !11
  %89 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %90 = load double, ptr %89, align 16
  %91 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %92 = load double, ptr %91, align 8
  %93 = call { double, double } @_ZNK3JPH5Plane6ScaledENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %88, double %90, double %92)
  %94 = getelementptr inbounds %"class.JPH::Plane", ptr %29, i32 0, i32 0
  %95 = getelementptr inbounds %"class.JPH::Vec4", ptr %94, i32 0, i32 0
  %96 = getelementptr inbounds %union.anon.3, ptr %95, i32 0, i32 0
  %97 = getelementptr inbounds { double, double }, ptr %96, i32 0, i32 0
  %98 = extractvalue { double, double } %93, 0
  store double %98, ptr %97, align 16
  %99 = getelementptr inbounds { double, double }, ptr %96, i32 0, i32 1
  %100 = extractvalue { double, double } %93, 1
  store double %100, ptr %99, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr %32) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr %33) #10
  %101 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZNK3JPH5Mat4427InversedRotationTranslationEv(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %33, ptr noundef nonnull align 16 dereferenceable(64) %101)
  %102 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %32, ptr noundef nonnull align 16 dereferenceable(64) %33, ptr noundef nonnull align 16 dereferenceable(64) %102)
  %103 = call { double, double } @_ZNK3JPH5Plane14GetTransformedERKNS_5Mat44E(ptr noundef nonnull align 16 dereferenceable(16) %29, ptr noundef nonnull align 16 dereferenceable(64) %32)
  %104 = getelementptr inbounds %"class.JPH::Plane", ptr %31, i32 0, i32 0
  %105 = getelementptr inbounds %"class.JPH::Vec4", ptr %104, i32 0, i32 0
  %106 = getelementptr inbounds %union.anon.3, ptr %105, i32 0, i32 0
  %107 = getelementptr inbounds { double, double }, ptr %106, i32 0, i32 0
  %108 = extractvalue { double, double } %103, 0
  store double %108, ptr %107, align 16
  %109 = getelementptr inbounds { double, double }, ptr %106, i32 0, i32 1
  %110 = extractvalue { double, double } %103, 1
  store double %110, ptr %109, align 8
  call void @llvm.lifetime.end.p0(i64 64, ptr %33) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %32) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #10
  %111 = call { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16) %31)
  %112 = getelementptr inbounds %"class.JPH::Vec3", ptr %34, i32 0, i32 0
  %113 = getelementptr inbounds %union.anon.5, ptr %112, i32 0, i32 0
  %114 = getelementptr inbounds { double, double }, ptr %113, i32 0, i32 0
  %115 = extractvalue { double, double } %111, 0
  store double %115, ptr %114, align 16
  %116 = getelementptr inbounds { double, double }, ptr %113, i32 0, i32 1
  %117 = extractvalue { double, double } %111, 1
  store double %117, ptr %116, align 8
  call void @llvm.lifetime.start.p0(i64 4160, ptr %35) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #10
  %118 = load ptr, ptr %27, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %37, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !11
  %119 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %120 = load double, ptr %119, align 16
  %121 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %122 = load double, ptr %121, align 8
  %123 = load ptr, ptr %118, align 8, !tbaa !13
  %124 = getelementptr inbounds ptr, ptr %123, i64 35
  %125 = load ptr, ptr %124, align 8
  %126 = call noundef ptr %125(ptr noundef nonnull align 8 dereferenceable(44) %118, i32 noundef 2, ptr noundef nonnull align 16 dereferenceable(4160) %35, double %120, double %122)
  store ptr %126, ptr %36, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #10
  %127 = load ptr, ptr %36, align 8, !tbaa !5
  %128 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %34)
  %129 = getelementptr inbounds %"class.JPH::Vec3", ptr %39, i32 0, i32 0
  %130 = getelementptr inbounds %union.anon.5, ptr %129, i32 0, i32 0
  %131 = getelementptr inbounds { double, double }, ptr %130, i32 0, i32 0
  %132 = extractvalue { double, double } %128, 0
  store double %132, ptr %131, align 16
  %133 = getelementptr inbounds { double, double }, ptr %130, i32 0, i32 1
  %134 = extractvalue { double, double } %128, 1
  store double %134, ptr %133, align 8
  %135 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 0
  %136 = load double, ptr %135, align 16
  %137 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 1
  %138 = load double, ptr %137, align 8
  %139 = load ptr, ptr %127, align 8, !tbaa !13
  %140 = getelementptr inbounds ptr, ptr %139, i64 2
  %141 = load ptr, ptr %140, align 8
  %142 = call { double, double } %141(ptr noundef nonnull align 8 dereferenceable(8) %127, double %136, double %138)
  %143 = getelementptr inbounds %"class.JPH::Vec3", ptr %38, i32 0, i32 0
  %144 = getelementptr inbounds %union.anon.5, ptr %143, i32 0, i32 0
  %145 = getelementptr inbounds { double, double }, ptr %144, i32 0, i32 0
  %146 = extractvalue { double, double } %142, 0
  store double %146, ptr %145, align 16
  %147 = getelementptr inbounds { double, double }, ptr %144, i32 0, i32 1
  %148 = extractvalue { double, double } %142, 1
  store double %148, ptr %147, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %41, ptr align 16 %38, i64 16, i1 false), !tbaa.struct !11
  %149 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %150 = load double, ptr %149, align 16
  %151 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %152 = load double, ptr %151, align 8
  %153 = call noundef float @_ZNK3JPH5Plane14SignedDistanceENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %31, double %150, double %152)
  store float %153, ptr %40, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #10
  %154 = load ptr, ptr %36, align 8, !tbaa !5
  %155 = load ptr, ptr %154, align 8, !tbaa !13
  %156 = getelementptr inbounds ptr, ptr %155, i64 3
  %157 = load ptr, ptr %156, align 8
  %158 = call noundef float %157(ptr noundef nonnull align 8 dereferenceable(8) %154)
  store float %158, ptr %42, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #10
  %159 = load float, ptr %40, align 4, !tbaa !15
  %160 = fneg float %159
  %161 = load float, ptr %42, align 4, !tbaa !15
  %162 = fadd float %160, %161
  store float %162, ptr %43, align 4, !tbaa !15
  %163 = load float, ptr %43, align 4, !tbaa !15
  %164 = load ptr, ptr %22, align 8, !tbaa !5
  %165 = getelementptr inbounds %"class.JPH::CollideShapeSettings", ptr %164, i32 0, i32 1
  %166 = load float, ptr %165, align 16, !tbaa !17
  %167 = fneg float %166
  %168 = fcmp ogt float %163, %167
  br i1 %168, label %169, label %329

169:                                              ; preds = %84
  call void @llvm.lifetime.start.p0(i64 16, ptr %44) #10
  %170 = load ptr, ptr %18, align 8, !tbaa !5
  %171 = load float, ptr %42, align 4, !tbaa !15
  %172 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %34, float noundef %171)
  %173 = getelementptr inbounds %"class.JPH::Vec3", ptr %46, i32 0, i32 0
  %174 = getelementptr inbounds %union.anon.5, ptr %173, i32 0, i32 0
  %175 = getelementptr inbounds { double, double }, ptr %174, i32 0, i32 0
  %176 = extractvalue { double, double } %172, 0
  store double %176, ptr %175, align 16
  %177 = getelementptr inbounds { double, double }, ptr %174, i32 0, i32 1
  %178 = extractvalue { double, double } %172, 1
  store double %178, ptr %177, align 8
  %179 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 0
  %180 = load double, ptr %179, align 16
  %181 = getelementptr inbounds { double, double }, ptr %46, i32 0, i32 1
  %182 = load double, ptr %181, align 8
  %183 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %38, double %180, double %182)
  %184 = getelementptr inbounds %"class.JPH::Vec3", ptr %45, i32 0, i32 0
  %185 = getelementptr inbounds %union.anon.5, ptr %184, i32 0, i32 0
  %186 = getelementptr inbounds { double, double }, ptr %185, i32 0, i32 0
  %187 = extractvalue { double, double } %183, 0
  store double %187, ptr %186, align 16
  %188 = getelementptr inbounds { double, double }, ptr %185, i32 0, i32 1
  %189 = extractvalue { double, double } %183, 1
  store double %189, ptr %188, align 8
  %190 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 0
  %191 = load double, ptr %190, align 16
  %192 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 1
  %193 = load double, ptr %192, align 8
  %194 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %170, double %191, double %193)
  %195 = getelementptr inbounds %"class.JPH::Vec3", ptr %44, i32 0, i32 0
  %196 = getelementptr inbounds %union.anon.5, ptr %195, i32 0, i32 0
  %197 = getelementptr inbounds { double, double }, ptr %196, i32 0, i32 0
  %198 = extractvalue { double, double } %194, 0
  store double %198, ptr %197, align 16
  %199 = getelementptr inbounds { double, double }, ptr %196, i32 0, i32 1
  %200 = extractvalue { double, double } %194, 1
  store double %200, ptr %199, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %47) #10
  %201 = load ptr, ptr %18, align 8, !tbaa !5
  %202 = load float, ptr %40, align 4, !tbaa !15
  %203 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %34, float noundef %202)
  %204 = getelementptr inbounds %"class.JPH::Vec3", ptr %49, i32 0, i32 0
  %205 = getelementptr inbounds %union.anon.5, ptr %204, i32 0, i32 0
  %206 = getelementptr inbounds { double, double }, ptr %205, i32 0, i32 0
  %207 = extractvalue { double, double } %203, 0
  store double %207, ptr %206, align 16
  %208 = getelementptr inbounds { double, double }, ptr %205, i32 0, i32 1
  %209 = extractvalue { double, double } %203, 1
  store double %209, ptr %208, align 8
  %210 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 0
  %211 = load double, ptr %210, align 16
  %212 = getelementptr inbounds { double, double }, ptr %49, i32 0, i32 1
  %213 = load double, ptr %212, align 8
  %214 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %38, double %211, double %213)
  %215 = getelementptr inbounds %"class.JPH::Vec3", ptr %48, i32 0, i32 0
  %216 = getelementptr inbounds %union.anon.5, ptr %215, i32 0, i32 0
  %217 = getelementptr inbounds { double, double }, ptr %216, i32 0, i32 0
  %218 = extractvalue { double, double } %214, 0
  store double %218, ptr %217, align 16
  %219 = getelementptr inbounds { double, double }, ptr %216, i32 0, i32 1
  %220 = extractvalue { double, double } %214, 1
  store double %220, ptr %219, align 8
  %221 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 0
  %222 = load double, ptr %221, align 16
  %223 = getelementptr inbounds { double, double }, ptr %48, i32 0, i32 1
  %224 = load double, ptr %223, align 8
  %225 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %201, double %222, double %224)
  %226 = getelementptr inbounds %"class.JPH::Vec3", ptr %47, i32 0, i32 0
  %227 = getelementptr inbounds %union.anon.5, ptr %226, i32 0, i32 0
  %228 = getelementptr inbounds { double, double }, ptr %227, i32 0, i32 0
  %229 = extractvalue { double, double } %225, 0
  store double %229, ptr %228, align 16
  %230 = getelementptr inbounds { double, double }, ptr %227, i32 0, i32 1
  %231 = extractvalue { double, double } %225, 1
  store double %231, ptr %230, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %50) #10
  %232 = load ptr, ptr %18, align 8, !tbaa !5
  %233 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %34)
  %234 = getelementptr inbounds %"class.JPH::Vec3", ptr %51, i32 0, i32 0
  %235 = getelementptr inbounds %union.anon.5, ptr %234, i32 0, i32 0
  %236 = getelementptr inbounds { double, double }, ptr %235, i32 0, i32 0
  %237 = extractvalue { double, double } %233, 0
  store double %237, ptr %236, align 16
  %238 = getelementptr inbounds { double, double }, ptr %235, i32 0, i32 1
  %239 = extractvalue { double, double } %233, 1
  store double %239, ptr %238, align 8
  %240 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 0
  %241 = load double, ptr %240, align 16
  %242 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 1
  %243 = load double, ptr %242, align 8
  %244 = call { double, double } @_ZNK3JPH5Mat4411Multiply3x3ENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %232, double %241, double %243)
  %245 = getelementptr inbounds %"class.JPH::Vec3", ptr %50, i32 0, i32 0
  %246 = getelementptr inbounds %union.anon.5, ptr %245, i32 0, i32 0
  %247 = getelementptr inbounds { double, double }, ptr %246, i32 0, i32 0
  %248 = extractvalue { double, double } %244, 0
  store double %248, ptr %247, align 16
  %249 = getelementptr inbounds { double, double }, ptr %246, i32 0, i32 1
  %250 = extractvalue { double, double } %244, 1
  store double %250, ptr %249, align 8
  call void @llvm.lifetime.start.p0(i64 1120, ptr %52) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %53, ptr align 16 %44, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %54, ptr align 16 %47, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %55, ptr align 16 %50, i64 16, i1 false), !tbaa.struct !11
  %251 = load float, ptr %43, align 4, !tbaa !15
  %252 = load ptr, ptr %20, align 8, !tbaa !5
  %253 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH17SubShapeIDCreator5GetIDEv(ptr noundef nonnull align 4 dereferenceable(8) %252)
  %254 = load ptr, ptr %21, align 8, !tbaa !5
  %255 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH17SubShapeIDCreator5GetIDEv(ptr noundef nonnull align 4 dereferenceable(8) %254)
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #10
  %256 = load ptr, ptr %23, align 8, !tbaa !5
  %257 = call noundef ptr @_ZNK3JPH18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEE10GetContextEv(ptr noundef nonnull align 8 dereferenceable(24) %256)
  %258 = call i32 @_ZN3JPH16TransformedShape10sGetBodyIDEPKS0_(ptr noundef %257)
  %259 = getelementptr inbounds %"class.JPH::BodyID", ptr %56, i32 0, i32 0
  store i32 %258, ptr %259, align 4
  %260 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 0
  %261 = load double, ptr %260, align 16
  %262 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 1
  %263 = load double, ptr %262, align 8
  %264 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 0
  %265 = load double, ptr %264, align 16
  %266 = getelementptr inbounds { double, double }, ptr %54, i32 0, i32 1
  %267 = load double, ptr %266, align 8
  %268 = getelementptr inbounds { double, double }, ptr %55, i32 0, i32 0
  %269 = load double, ptr %268, align 16
  %270 = getelementptr inbounds { double, double }, ptr %55, i32 0, i32 1
  %271 = load double, ptr %270, align 8
  call void @_ZN3JPH18CollideShapeResultC2ENS_4Vec3ES1_S1_fRKNS_10SubShapeIDES4_RKNS_6BodyIDE(ptr noundef nonnull align 16 dereferenceable(1120) %52, double %261, double %263, double %265, double %267, double %269, double %271, float noundef %251, ptr noundef nonnull align 4 dereferenceable(4) %253, ptr noundef nonnull align 4 dereferenceable(4) %255, ptr noundef nonnull align 4 dereferenceable(4) %56)
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #10
  %272 = load ptr, ptr %22, align 8, !tbaa !5
  %273 = getelementptr inbounds %"class.JPH::CollideSettingsBase", ptr %272, i32 0, i32 1
  %274 = load i8, ptr %273, align 1, !tbaa !24
  %275 = icmp eq i8 %274, 0
  br i1 %275, label %276, label %322

276:                                              ; preds = %169
  %277 = load ptr, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #10
  call void @llvm.memset.p0.i64(ptr align 4 %57, i8 0, i64 4, i1 false)
  call void @_ZN3JPH10SubShapeIDC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %57) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %58, ptr align 16 %34, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %59, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !11
  %278 = load ptr, ptr %18, align 8, !tbaa !5
  %279 = getelementptr inbounds %"class.JPH::CollideShapeResult", ptr %52, i32 0, i32 7
  %280 = getelementptr inbounds { double, double }, ptr %58, i32 0, i32 0
  %281 = load double, ptr %280, align 16
  %282 = getelementptr inbounds { double, double }, ptr %58, i32 0, i32 1
  %283 = load double, ptr %282, align 8
  %284 = getelementptr inbounds { double, double }, ptr %59, i32 0, i32 0
  %285 = load double, ptr %284, align 16
  %286 = getelementptr inbounds { double, double }, ptr %59, i32 0, i32 1
  %287 = load double, ptr %286, align 8
  %288 = load ptr, ptr %277, align 8, !tbaa !13
  %289 = getelementptr inbounds ptr, ptr %288, i64 12
  %290 = load ptr, ptr %289, align 8
  invoke void %290(ptr noundef nonnull align 8 dereferenceable(26) %277, ptr noundef nonnull align 4 dereferenceable(4) %57, double %281, double %283, double %285, double %287, ptr noundef nonnull align 16 dereferenceable(64) %278, ptr noundef nonnull align 16 dereferenceable(528) %279)
          to label %291 unwind label %313

291:                                              ; preds = %276
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #10
  %292 = getelementptr inbounds %"class.JPH::CollideShapeResult", ptr %52, i32 0, i32 7
  %293 = invoke noundef zeroext i1 @_ZNK3JPH11StaticArrayINS_4Vec3ELj32EE5emptyEv(ptr noundef nonnull align 16 dereferenceable(528) %292)
          to label %294 unwind label %317

294:                                              ; preds = %291
  br i1 %293, label %321, label %295

295:                                              ; preds = %294
  %296 = load ptr, ptr %27, align 8, !tbaa !5
  %297 = load ptr, ptr %18, align 8, !tbaa !5
  %298 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %297)
          to label %299 unwind label %317

299:                                              ; preds = %295
  %300 = getelementptr inbounds %"class.JPH::Vec3", ptr %62, i32 0, i32 0
  %301 = getelementptr inbounds %union.anon.5, ptr %300, i32 0, i32 0
  %302 = getelementptr inbounds { double, double }, ptr %301, i32 0, i32 0
  %303 = extractvalue { double, double } %298, 0
  store double %303, ptr %302, align 16
  %304 = getelementptr inbounds { double, double }, ptr %301, i32 0, i32 1
  %305 = extractvalue { double, double } %298, 1
  store double %305, ptr %304, align 8
  %306 = load ptr, ptr %19, align 8, !tbaa !5
  %307 = getelementptr inbounds %"class.JPH::CollideShapeResult", ptr %52, i32 0, i32 8
  %308 = getelementptr inbounds { double, double }, ptr %62, i32 0, i32 0
  %309 = load double, ptr %308, align 16
  %310 = getelementptr inbounds { double, double }, ptr %62, i32 0, i32 1
  %311 = load double, ptr %310, align 8
  invoke void @_ZN3JPHL18sGetSupportingFaceEPKNS_11ConvexShapeENS_4Vec3ERKNS_5PlaneERKNS_5Mat44ERNS_11StaticArrayIS3_Lj32EEE(ptr noundef %296, double %309, double %311, ptr noundef nonnull align 16 dereferenceable(16) %29, ptr noundef nonnull align 16 dereferenceable(64) %306, ptr noundef nonnull align 16 dereferenceable(528) %307)
          to label %312 unwind label %317

312:                                              ; preds = %299
  br label %321

313:                                              ; preds = %276
  %314 = landingpad { ptr, i32 }
          cleanup
  %315 = extractvalue { ptr, i32 } %314, 0
  store ptr %315, ptr %60, align 8
  %316 = extractvalue { ptr, i32 } %314, 1
  store i32 %316, ptr %61, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #10
  br label %328

317:                                              ; preds = %322, %299, %295, %291
  %318 = landingpad { ptr, i32 }
          cleanup
  %319 = extractvalue { ptr, i32 } %318, 0
  store ptr %319, ptr %60, align 8
  %320 = extractvalue { ptr, i32 } %318, 1
  store i32 %320, ptr %61, align 4
  br label %328

321:                                              ; preds = %312, %294
  br label %322

322:                                              ; preds = %321, %169
  %323 = load ptr, ptr %23, align 8, !tbaa !5
  %324 = load ptr, ptr %323, align 8, !tbaa !13
  %325 = getelementptr inbounds ptr, ptr %324, i64 6
  %326 = load ptr, ptr %325, align 8
  invoke void %326(ptr noundef nonnull align 8 dereferenceable(24) %323, ptr noundef nonnull align 16 dereferenceable(1120) %52)
          to label %327 unwind label %317

327:                                              ; preds = %322
  call void @_ZN3JPH18CollideShapeResultD2Ev(ptr noundef nonnull align 16 dereferenceable(1120) %52) #10
  call void @llvm.lifetime.end.p0(i64 1120, ptr %52) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %50) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #10
  br label %329

328:                                              ; preds = %317, %313
  call void @_ZN3JPH18CollideShapeResultD2Ev(ptr noundef nonnull align 16 dereferenceable(1120) %52) #10
  call void @llvm.lifetime.end.p0(i64 1120, ptr %52) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %50) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #10
  call void @llvm.lifetime.end.p0(i64 4160, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #10
  br label %330

329:                                              ; preds = %327, %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #10
  call void @llvm.lifetime.end.p0(i64 4160, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #10
  ret void

330:                                              ; preds = %328
  %331 = load ptr, ptr %60, align 8
  %332 = load i32, ptr %61, align 4
  %333 = insertvalue { ptr, i32 } poison, ptr %331, 0
  %334 = insertvalue { ptr, i32 } %333, i32 %332, 1
  resume { ptr, i32 } %334
}

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = { 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 = { 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 #9 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #10 = { 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 = !{i64 2158189524}
!10 = !{i64 2158189908}
!11 = !{i64 0, i64 16, !12}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{!18, !16, i64 32}
!18 = !{!"_ZTSN3JPH20CollideShapeSettingsE", !19, i64 0, !16, i64 32, !23, i64 36}
!19 = !{!"_ZTSN3JPH19CollideSettingsBaseE", !20, i64 0, !21, i64 1, !16, i64 4, !16, i64 8, !22, i64 16}
!20 = !{!"_ZTSN3JPH15EActiveEdgeModeE", !7, i64 0}
!21 = !{!"_ZTSN3JPH17ECollectFacesModeE", !7, i64 0}
!22 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!23 = !{!"_ZTSN3JPH13EBackFaceModeE", !7, i64 0}
!24 = !{!19, !21, i64 1}


; 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.3 }
%union.anon.3 = type { <4 x float> }
%"class.JPH::Plane" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec3" = type { %union.anon.5 }
%union.anon.5 = type { <4 x float> }
%"class.JPH::ConvexShape::SupportBuffer" = type { [4160 x i8] }
%"class.JPH::CollideShapeResult" = type { %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, %"class.JPH::SubShapeID", %"class.JPH::SubShapeID", %"class.JPH::BodyID", %"class.JPH::StaticArray.6", %"class.JPH::StaticArray.6" }
%"class.JPH::SubShapeID" = type { i32 }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::StaticArray.6" = type { i32, [12 x i8], [32 x %"struct.JPH::StaticArray<JPH::Vec3, 32>::Storage"] }
%"struct.JPH::StaticArray<JPH::Vec3, 32>::Storage" = type { [16 x i8] }

@.str.3 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [41 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH5Plane14SignedDistanceENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i32 @_ZN3JPH16TransformedShape10sGetBodyIDEPKS0_(ptr noundef) local_unnamed_addr #4 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZNK3JPH5Shape7GetTypeEv(ptr noundef nonnull align 8 dereferenceable(26)) local_unnamed_addr #5 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH5Mat4411Multiply3x3ENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64), double, double) local_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 #6 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH11StaticArrayINS_4Vec3ELj32EE5emptyEv(ptr noundef nonnull align 16 dereferenceable(528)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZN3JPHL18sGetSupportingFaceEPKNS_11ConvexShapeENS_4Vec3ERKNS_5PlaneERKNS_5Mat44ERNS_11StaticArrayIS3_Lj32EEE(ptr noundef, double, double, ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(528)) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH10PlaneShape21sCollideConvexVsPlaneEPKNS_5ShapeES3_NS_4Vec3ES4_RKNS_5Mat44ES7_RKNS_17SubShapeIDCreatorESA_RKNS_20CollideShapeSettingsERNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEERKNS_11ShapeFilterE(ptr noundef nonnull %0, ptr noundef %1, double %2, double %3, double %4, double %5, ptr noundef nonnull align 16 dereferenceable(64) %6, ptr noundef nonnull align 16 dereferenceable(64) %7, ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %9, ptr nocapture noundef nonnull readonly align 16 dereferenceable(37) %10, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr nocapture noundef nonnull readnone align 8 dereferenceable(12) %12) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %14 = alloca %"class.JPH::Plane", align 16
  %15 = alloca %"class.JPH::Plane", align 16
  %16 = alloca %"class.JPH::Mat44", align 16
  %17 = alloca %"class.JPH::Mat44", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca %"class.JPH::ConvexShape::SupportBuffer", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca %"class.JPH::CollideShapeResult", align 16
  %22 = alloca %"class.JPH::BodyID", align 4
  %23 = alloca %"class.JPH::SubShapeID", align 4
  %24 = tail call noundef zeroext i8 @_ZNK3JPH5Shape7GetTypeEv(ptr noundef nonnull align 8 dereferenceable(26) %0)
  %25 = icmp eq i8 %24, 0
  br i1 %25, label %29, label %26

26:                                               ; preds = %13
  %27 = tail call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.3, i32 noundef 450)
  br i1 %27, label %28, label %29

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

29:                                               ; preds = %28, %26, %13
  %30 = tail call noundef zeroext i8 @_ZNK3JPH5Shape7GetTypeEv(ptr noundef nonnull align 8 dereferenceable(26) %1)
  %31 = icmp eq i8 %30, 10
  br i1 %31, label %35, label %32

32:                                               ; preds = %29
  %33 = tail call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.3, i32 noundef 451)
  br i1 %33, label %34, label %35

34:                                               ; preds = %32
  tail call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #8, !srcloc !6
  br label %35

35:                                               ; preds = %29, %32, %34
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #8
  %36 = getelementptr inbounds i8, ptr %1, i64 32
  %37 = tail call { double, double } @_ZNK3JPH5Plane6ScaledENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %36, double %4, double %5)
  %38 = extractvalue { double, double } %37, 0
  store double %38, ptr %14, align 16
  %39 = getelementptr inbounds i8, ptr %14, i64 8
  %40 = extractvalue { double, double } %37, 1
  store double %40, ptr %39, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %16) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %17) #8
  call void @_ZNK3JPH5Mat4427InversedRotationTranslationEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %17, ptr noundef nonnull align 16 dereferenceable(64) %6)
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %16, ptr noundef nonnull align 16 dereferenceable(64) %17, ptr noundef nonnull align 16 dereferenceable(64) %7)
  %41 = call { double, double } @_ZNK3JPH5Plane14GetTransformedERKNS_5Mat44E(ptr noundef nonnull align 16 dereferenceable(16) %14, ptr noundef nonnull align 16 dereferenceable(64) %16)
  %42 = extractvalue { double, double } %41, 0
  store double %42, ptr %15, align 16
  %43 = getelementptr inbounds i8, ptr %15, i64 8
  %44 = extractvalue { double, double } %41, 1
  store double %44, ptr %43, align 8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %16) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #8
  %45 = call { double, double } @_ZNK3JPH5Plane9GetNormalEv(ptr noundef nonnull align 16 dereferenceable(16) %15)
  %46 = extractvalue { double, double } %45, 0
  store double %46, ptr %18, align 16
  %47 = getelementptr inbounds i8, ptr %18, i64 8
  %48 = extractvalue { double, double } %45, 1
  store double %48, ptr %47, align 8
  call void @llvm.lifetime.start.p0(i64 4160, ptr nonnull %19) #8
  %49 = load ptr, ptr %0, align 8, !tbaa !7
  %50 = getelementptr inbounds i8, ptr %49, i64 280
  %51 = load ptr, ptr %50, align 8
  %52 = call noundef ptr %51(ptr noundef nonnull align 8 dereferenceable(44) %0, i32 noundef 2, ptr noundef nonnull align 16 dereferenceable(4160) %19, double %2, double %3)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #8
  %53 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %18)
  %54 = extractvalue { double, double } %53, 0
  %55 = extractvalue { double, double } %53, 1
  %56 = load ptr, ptr %52, align 8, !tbaa !7
  %57 = getelementptr inbounds i8, ptr %56, i64 16
  %58 = load ptr, ptr %57, align 8
  %59 = call { double, double } %58(ptr noundef nonnull align 8 dereferenceable(8) %52, double %54, double %55)
  %60 = extractvalue { double, double } %59, 0
  store double %60, ptr %20, align 16
  %61 = getelementptr inbounds i8, ptr %20, i64 8
  %62 = extractvalue { double, double } %59, 1
  store double %62, ptr %61, align 8
  %63 = call noundef float @_ZNK3JPH5Plane14SignedDistanceENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(16) %15, double %60, double %62)
  %64 = load ptr, ptr %52, align 8, !tbaa !7
  %65 = getelementptr inbounds i8, ptr %64, i64 24
  %66 = load ptr, ptr %65, align 8
  %67 = call noundef float %66(ptr noundef nonnull align 8 dereferenceable(8) %52)
  %68 = fsub float %67, %63
  %69 = getelementptr inbounds i8, ptr %10, i64 32
  %70 = load float, ptr %69, align 16, !tbaa !10
  %71 = fneg float %70
  %72 = fcmp ogt float %68, %71
  br i1 %72, label %73, label %128

73:                                               ; preds = %35
  %74 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %18, float noundef %67)
  %75 = extractvalue { double, double } %74, 0
  %76 = extractvalue { double, double } %74, 1
  %77 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %20, double %75, double %76)
  %78 = extractvalue { double, double } %77, 0
  %79 = extractvalue { double, double } %77, 1
  %80 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %6, double %78, double %79)
  %81 = extractvalue { double, double } %80, 0
  %82 = extractvalue { double, double } %80, 1
  %83 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %18, float noundef %63)
  %84 = extractvalue { double, double } %83, 0
  %85 = extractvalue { double, double } %83, 1
  %86 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %20, double %84, double %85)
  %87 = extractvalue { double, double } %86, 0
  %88 = extractvalue { double, double } %86, 1
  %89 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %6, double %87, double %88)
  %90 = extractvalue { double, double } %89, 0
  %91 = extractvalue { double, double } %89, 1
  %92 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %18)
  %93 = extractvalue { double, double } %92, 0
  %94 = extractvalue { double, double } %92, 1
  %95 = call { double, double } @_ZNK3JPH5Mat4411Multiply3x3ENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %6, double %93, double %94)
  %96 = extractvalue { double, double } %95, 0
  %97 = extractvalue { double, double } %95, 1
  call void @llvm.lifetime.start.p0(i64 1120, ptr nonnull %21) #8
  %98 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH17SubShapeIDCreator5GetIDEv(ptr noundef nonnull align 4 dereferenceable(8) %8)
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH17SubShapeIDCreator5GetIDEv(ptr noundef nonnull align 4 dereferenceable(8) %9)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #8
  %100 = call noundef ptr @_ZNK3JPH18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEE10GetContextEv(ptr noundef nonnull align 8 dereferenceable(24) %11)
  %101 = call i32 @_ZN3JPH16TransformedShape10sGetBodyIDEPKS0_(ptr noundef %100)
  store i32 %101, ptr %22, align 4
  call void @_ZN3JPH18CollideShapeResultC2ENS_4Vec3ES1_S1_fRKNS_10SubShapeIDES4_RKNS_6BodyIDE(ptr noundef nonnull align 16 dereferenceable(1120) %21, double %81, double %82, double %90, double %91, double %96, double %97, float noundef %68, ptr noundef nonnull align 4 dereferenceable(4) %98, ptr noundef nonnull align 4 dereferenceable(4) %99, ptr noundef nonnull align 4 dereferenceable(4) %22)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #8
  %102 = getelementptr inbounds i8, ptr %10, i64 1
  %103 = load i8, ptr %102, align 1, !tbaa !19
  %104 = icmp eq i8 %103, 0
  br i1 %104, label %105, label %122

105:                                              ; preds = %73
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #8
  store i32 0, ptr %23, align 4
  call void @_ZN3JPH10SubShapeIDC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %23) #8
  %.sroa.03.0.copyload = load double, ptr %18, align 16
  %.sroa.24.0.copyload = load double, ptr %47, align 8, !tbaa !20
  %106 = getelementptr inbounds i8, ptr %21, i64 64
  %107 = load ptr, ptr %0, align 8, !tbaa !7
  %108 = getelementptr inbounds i8, ptr %107, i64 96
  %109 = load ptr, ptr %108, align 8
  invoke void %109(ptr noundef nonnull align 8 dereferenceable(26) %0, ptr noundef nonnull align 4 dereferenceable(4) %23, double %.sroa.03.0.copyload, double %.sroa.24.0.copyload, double %2, double %3, ptr noundef nonnull align 16 dereferenceable(64) %6, ptr noundef nonnull align 16 dereferenceable(528) %106)
          to label %110 unwind label %118

110:                                              ; preds = %105
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #8
  %111 = call noundef zeroext i1 @_ZNK3JPH11StaticArrayINS_4Vec3ELj32EE5emptyEv(ptr noundef nonnull align 16 dereferenceable(528) %106)
  br i1 %111, label %122, label %112

112:                                              ; preds = %110
  %113 = invoke { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %6)
          to label %114 unwind label %120

114:                                              ; preds = %112
  %115 = extractvalue { double, double } %113, 0
  %116 = extractvalue { double, double } %113, 1
  %117 = getelementptr inbounds i8, ptr %21, i64 592
  invoke void @_ZN3JPHL18sGetSupportingFaceEPKNS_11ConvexShapeENS_4Vec3ERKNS_5PlaneERKNS_5Mat44ERNS_11StaticArrayIS3_Lj32EEE(ptr noundef nonnull %0, double %115, double %116, ptr noundef nonnull align 16 dereferenceable(16) %14, ptr noundef nonnull align 16 dereferenceable(64) %7, ptr noundef nonnull align 16 dereferenceable(528) %117)
          to label %122 unwind label %120

118:                                              ; preds = %105
  %119 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #8
  br label %127

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

122:                                              ; preds = %110, %114, %73
  %123 = load ptr, ptr %11, align 8, !tbaa !7
  %124 = getelementptr inbounds i8, ptr %123, i64 48
  %125 = load ptr, ptr %124, align 8
  invoke void %125(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 16 dereferenceable(1120) %21)
          to label %126 unwind label %120

126:                                              ; preds = %122
  call void @_ZN3JPH18CollideShapeResultD2Ev(ptr noundef nonnull align 16 dereferenceable(1120) %21) #8
  call void @llvm.lifetime.end.p0(i64 1120, ptr nonnull %21) #8
  br label %128

127:                                              ; preds = %120, %118
  %.pn = phi { ptr, i32 } [ %121, %120 ], [ %119, %118 ]
  call void @_ZN3JPH18CollideShapeResultD2Ev(ptr noundef nonnull align 16 dereferenceable(1120) %21) #8
  call void @llvm.lifetime.end.p0(i64 1120, ptr nonnull %21) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 4160, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #8
  resume { ptr, i32 } %.pn

128:                                              ; preds = %126, %35
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 4160, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #8
  ret void
}

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { 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 = { 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 #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 = { 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 #7 = { 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 #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 = !{i64 2158189524}
!6 = !{i64 2158189908}
!7 = !{!8, !8, i64 0}
!8 = !{!"vtable pointer", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !16, i64 32}
!11 = !{!"_ZTSN3JPH20CollideShapeSettingsE", !12, i64 0, !16, i64 32, !18, i64 36}
!12 = !{!"_ZTSN3JPH19CollideSettingsBaseE", !13, i64 0, !15, i64 1, !16, i64 4, !16, i64 8, !17, i64 16}
!13 = !{!"_ZTSN3JPH15EActiveEdgeModeE", !14, i64 0}
!14 = !{!"omnipotent char", !9, i64 0}
!15 = !{!"_ZTSN3JPH17ECollectFacesModeE", !14, i64 0}
!16 = !{!"float", !14, i64 0}
!17 = !{!"_ZTSN3JPH4Vec3E", !14, i64 0}
!18 = !{!"_ZTSN3JPH13EBackFaceModeE", !14, i64 0}
!19 = !{!12, !15, i64 1}
!20 = !{!14, !14, i64 0}


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