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

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

%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.0 }
%union.anon.0 = type { <4 x float> }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::CollideConvexVsTriangles" = type { ptr, ptr, ptr, %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Mat44", %"class.JPH::Mat44", %"class.JPH::AABox", %"class.JPH::AABox", %"class.JPH::SubShapeID", float, [8 x i8], %"class.JPH::ConvexShape::SupportBuffer", %"class.JPH::ConvexShape::SupportBuffer", ptr, ptr }
%"class.JPH::SubShapeID" = type { i32 }
%"class.JPH::ConvexShape::SupportBuffer" = type { [4160 x i8] }
%"class.JPH::CollideShapeSettings" = type <{ %"class.JPH::CollideSettingsBase", float, i8, [11 x i8] }>
%"class.JPH::CollideSettingsBase" = type { i8, i8, float, float, %"class.JPH::Vec3" }

; 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: mustprogress uwtable
define dso_local void @_ZN3JPH24CollideConvexVsTrianglesC2EPKNS_11ConvexShapeENS_4Vec3ES4_RKNS_5Mat44ES7_RKNS_10SubShapeIDERKNS_20CollideShapeSettingsERNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEE(ptr noundef nonnull align 16 dereferenceable(8608) %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(4) %8, ptr noundef nonnull align 16 dereferenceable(37) %9, ptr noundef nonnull align 8 dereferenceable(24) %10) unnamed_addr #1 align 2 {
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %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 %"class.JPH::Mat44", align 16
  %22 = alloca %"class.JPH::Mat44", align 16
  %23 = alloca %"class.JPH::Mat44", align 16
  %24 = alloca %"class.JPH::AABox", align 16
  %25 = alloca %"class.JPH::AABox", align 16
  %26 = alloca %"class.JPH::Vec3", align 16
  %27 = alloca %"class.JPH::Vec3", align 16
  %28 = alloca %"class.JPH::AABox", align 16
  %29 = alloca %"class.JPH::Vec3", align 16
  %30 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  store double %2, ptr %30, align 16
  %31 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  store double %3, ptr %31, align 8
  %32 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 0
  store double %4, ptr %32, align 16
  %33 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 1
  store double %5, ptr %33, align 8
  store ptr %0, ptr %14, align 8, !tbaa !5
  store ptr %1, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  store ptr %8, ptr %18, align 8, !tbaa !5
  store ptr %9, ptr %19, align 8, !tbaa !5
  store ptr %10, ptr %20, align 8, !tbaa !5
  %34 = load ptr, ptr %14, align 8
  %35 = getelementptr inbounds %"class.JPH::CollideConvexVsTriangles", ptr %34, i32 0, i32 0
  %36 = load ptr, ptr %19, align 8, !tbaa !5
  store ptr %36, ptr %35, align 16, !tbaa !5
  %37 = getelementptr inbounds %"class.JPH::CollideConvexVsTriangles", ptr %34, i32 0, i32 1
  %38 = load ptr, ptr %20, align 8, !tbaa !5
  store ptr %38, ptr %37, align 8, !tbaa !5
  %39 = getelementptr inbounds %"class.JPH::CollideConvexVsTriangles", ptr %34, i32 0, i32 2
  %40 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %40, ptr %39, align 16, !tbaa !9
  %41 = getelementptr inbounds %"class.JPH::CollideConvexVsTriangles", ptr %34, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %41, ptr align 16 %12, i64 16, i1 false), !tbaa.struct !18
  %42 = getelementptr inbounds %"class.JPH::CollideConvexVsTriangles", ptr %34, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %42, ptr align 16 %13, i64 16, i1 false), !tbaa.struct !18
  %43 = getelementptr inbounds %"class.JPH::CollideConvexVsTriangles", ptr %34, i32 0, i32 5
  %44 = load ptr, ptr %16, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %43, ptr align 16 %44, i64 64, i1 false), !tbaa.struct !20
  %45 = getelementptr inbounds %"class.JPH::CollideConvexVsTriangles", ptr %34, i32 0, i32 6
  %46 = getelementptr inbounds %"class.JPH::CollideConvexVsTriangles", ptr %34, i32 0, i32 7
  call void @_ZN3JPH5AABoxC2Ev(ptr noundef nonnull align 16 dereferenceable(32) %46)
  %47 = getelementptr inbounds %"class.JPH::CollideConvexVsTriangles", ptr %34, i32 0, i32 8
  call void @_ZN3JPH5AABoxC2Ev(ptr noundef nonnull align 16 dereferenceable(32) %47)
  %48 = getelementptr inbounds %"class.JPH::CollideConvexVsTriangles", ptr %34, i32 0, i32 9
  %49 = load ptr, ptr %18, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %48, ptr align 4 %49, i64 4, i1 false), !tbaa.struct !21
  %50 = getelementptr inbounds %"class.JPH::CollideConvexVsTriangles", ptr %34, i32 0, i32 12
  %51 = getelementptr inbounds %"class.JPH::CollideConvexVsTriangles", ptr %34, i32 0, i32 13
  %52 = getelementptr inbounds %"class.JPH::CollideConvexVsTriangles", ptr %34, i32 0, i32 14
  store ptr null, ptr %52, align 16, !tbaa !23
  %53 = getelementptr inbounds %"class.JPH::CollideConvexVsTriangles", ptr %34, i32 0, i32 15
  store ptr null, ptr %53, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #6
  %54 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZNK3JPH5Mat4427InversedRotationTranslationEv(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %21, ptr noundef nonnull align 16 dereferenceable(64) %54)
  call void @llvm.lifetime.start.p0(i64 64, ptr %22) #6
  %55 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %22, ptr noundef nonnull align 16 dereferenceable(64) %21, ptr noundef nonnull align 16 dereferenceable(64) %55)
  call void @llvm.lifetime.start.p0(i64 64, ptr %23) #6
  call void @_ZNK3JPH5Mat4427InversedRotationTranslationEv(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %23, ptr noundef nonnull align 16 dereferenceable(64) %22)
  %56 = getelementptr inbounds %"class.JPH::CollideConvexVsTriangles", ptr %34, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %56, ptr align 16 %23, i64 64, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 64, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #6
  %57 = load ptr, ptr %15, align 8, !tbaa !5
  %58 = load ptr, ptr %57, align 8, !tbaa !25
  %59 = getelementptr inbounds ptr, ptr %58, i64 4
  %60 = load ptr, ptr %59, align 8
  call void %60(ptr dead_on_unwind writable sret(%"class.JPH::AABox") align 16 %25, ptr noundef nonnull align 8 dereferenceable(26) %57)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %26, ptr align 16 %12, i64 16, i1 false), !tbaa.struct !18
  %61 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %62 = load double, ptr %61, align 16
  %63 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %64 = load double, ptr %63, align 8
  call void @_ZNK3JPH5AABox6ScaledENS_4Vec3E(ptr dead_on_unwind writable sret(%"class.JPH::AABox") align 16 %24, ptr noundef nonnull align 16 dereferenceable(32) %25, double %62, double %64)
  %65 = getelementptr inbounds %"class.JPH::CollideConvexVsTriangles", ptr %34, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %65, ptr align 16 %24, i64 32, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #6
  %66 = getelementptr inbounds %"class.JPH::CollideConvexVsTriangles", ptr %34, i32 0, i32 7
  %67 = load ptr, ptr %19, align 8, !tbaa !5
  %68 = getelementptr inbounds %"class.JPH::CollideShapeSettings", ptr %67, i32 0, i32 1
  %69 = load float, ptr %68, align 16, !tbaa !28
  %70 = call { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef %69)
  %71 = getelementptr inbounds %"class.JPH::Vec3", ptr %27, i32 0, i32 0
  %72 = getelementptr inbounds %union.anon, ptr %71, i32 0, i32 0
  %73 = getelementptr inbounds { double, double }, ptr %72, i32 0, i32 0
  %74 = extractvalue { double, double } %70, 0
  store double %74, ptr %73, align 16
  %75 = getelementptr inbounds { double, double }, ptr %72, i32 0, i32 1
  %76 = extractvalue { double, double } %70, 1
  store double %76, ptr %75, align 8
  %77 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %78 = load double, ptr %77, align 16
  %79 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %80 = load double, ptr %79, align 8
  call void @_ZN3JPH5AABox8ExpandByENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %66, double %78, double %80)
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #6
  %81 = getelementptr inbounds %"class.JPH::CollideConvexVsTriangles", ptr %34, i32 0, i32 7
  call void @_ZNK3JPH5AABox11TransformedERKNS_5Mat44E(ptr dead_on_unwind writable sret(%"class.JPH::AABox") align 16 %28, ptr noundef nonnull align 16 dereferenceable(32) %81, ptr noundef nonnull align 16 dereferenceable(64) %22)
  %82 = getelementptr inbounds %"class.JPH::CollideConvexVsTriangles", ptr %34, i32 0, i32 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %82, ptr align 16 %28, i64 32, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %29, ptr align 16 %13, i64 16, i1 false), !tbaa.struct !18
  %83 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %84 = load double, ptr %83, align 16
  %85 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %86 = load double, ptr %85, align 8
  %87 = call noundef zeroext i1 @_ZN3JPH12ScaleHelpers11IsInsideOutENS_4Vec3E(double %84, double %86)
  %88 = zext i1 %87 to i64
  %89 = select i1 %87, float -1.000000e+00, float 1.000000e+00
  %90 = getelementptr inbounds %"class.JPH::CollideConvexVsTriangles", ptr %34, i32 0, i32 10
  store float %89, ptr %90, align 4, !tbaa !34
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #6
  ret void
}

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

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

; Function Attrs: alwaysinline mustprogress 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: mustprogress uwtable
declare dso_local void @_ZNK3JPH5AABox6ScaledENS_4Vec3E(ptr dead_on_unwind noalias writable sret(%"class.JPH::AABox") align 16, ptr noundef nonnull align 16 dereferenceable(32), double, double) #1 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH5AABox11TransformedERKNS_5Mat44E(ptr dead_on_unwind noalias writable sret(%"class.JPH::AABox") align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(64)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH12ScaleHelpers11IsInsideOutENS_4Vec3E(double, double) #5

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"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="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 = { 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 #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 16}
!10 = !{!"_ZTSN3JPH24CollideConvexVsTrianglesE", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 32, !11, i64 48, !12, i64 64, !12, i64 128, !13, i64 192, !13, i64 224, !14, i64 256, !16, i64 260, !17, i64 272, !17, i64 4432, !6, i64 8592, !6, i64 8600}
!11 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!12 = !{!"_ZTSN3JPH5Mat44E", !7, i64 0}
!13 = !{!"_ZTSN3JPH5AABoxE", !11, i64 0, !11, i64 16}
!14 = !{!"_ZTSN3JPH10SubShapeIDE", !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{!"_ZTSN3JPH11ConvexShape13SupportBufferE", !7, i64 0}
!18 = !{i64 0, i64 16, !19}
!19 = !{!7, !7, i64 0}
!20 = !{i64 0, i64 64, !19}
!21 = !{i64 0, i64 4, !22}
!22 = !{!15, !15, i64 0}
!23 = !{!10, !6, i64 8592}
!24 = !{!10, !6, i64 8600}
!25 = !{!26, !26, i64 0}
!26 = !{!"vtable pointer", !8, i64 0}
!27 = !{i64 0, i64 16, !19, i64 16, i64 16, !19}
!28 = !{!29, !16, i64 32}
!29 = !{!"_ZTSN3JPH20CollideShapeSettingsE", !30, i64 0, !16, i64 32, !33, i64 36}
!30 = !{!"_ZTSN3JPH19CollideSettingsBaseE", !31, i64 0, !32, i64 1, !16, i64 4, !16, i64 8, !11, i64 16}
!31 = !{!"_ZTSN3JPH15EActiveEdgeModeE", !7, i64 0}
!32 = !{!"_ZTSN3JPH17ECollectFacesModeE", !7, i64 0}
!33 = !{!"_ZTSN3JPH13EBackFaceModeE", !7, i64 0}
!34 = !{!10, !16, i64 260}


; 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.0 }
%union.anon.0 = type { <4 x float> }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH24CollideConvexVsTrianglesC2EPKNS_11ConvexShapeENS_4Vec3ES4_RKNS_5Mat44ES7_RKNS_10SubShapeIDERKNS_20CollideShapeSettingsERNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEE(ptr noundef nonnull align 16 dereferenceable(8608) %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 nocapture noundef nonnull readonly align 4 dereferenceable(4) %8, ptr noundef nonnull align 16 dereferenceable(37) %9, ptr noundef nonnull align 8 dereferenceable(24) %10) unnamed_addr #1 align 2 {
  %12 = alloca %"class.JPH::Mat44", align 16
  %13 = alloca %"class.JPH::Mat44", align 16
  %14 = alloca %"class.JPH::Mat44", align 16
  %15 = alloca %"class.JPH::AABox", align 16
  %16 = alloca %"class.JPH::AABox", align 16
  %17 = alloca %"class.JPH::AABox", align 16
  store ptr %9, ptr %0, align 16, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %10, ptr %18, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %1, ptr %19, align 16, !tbaa !9
  %20 = getelementptr inbounds i8, ptr %0, i64 32
  store double %2, ptr %20, align 16
  %.sroa.316.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 40
  store double %3, ptr %.sroa.316.0..sroa_idx, align 8, !tbaa !18
  %21 = getelementptr inbounds i8, ptr %0, i64 48
  store double %4, ptr %21, align 16
  %.sroa.3.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 56
  store double %5, ptr %.sroa.3.0..sroa_idx, align 8, !tbaa !18
  %22 = getelementptr inbounds i8, ptr %0, i64 64
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %22, ptr noundef nonnull align 16 dereferenceable(64) %6, i64 64, i1 false), !tbaa.struct !19
  %23 = getelementptr inbounds i8, ptr %0, i64 192
  tail call void @_ZN3JPH5AABoxC2Ev(ptr noundef nonnull align 16 dereferenceable(32) %23)
  %24 = getelementptr inbounds i8, ptr %0, i64 224
  tail call void @_ZN3JPH5AABoxC2Ev(ptr noundef nonnull align 16 dereferenceable(32) %24)
  %25 = getelementptr inbounds i8, ptr %0, i64 256
  %26 = load i32, ptr %8, align 4, !tbaa !20
  store i32 %26, ptr %25, align 16, !tbaa !20
  %27 = getelementptr inbounds i8, ptr %0, i64 8592
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %27, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #7
  call void @_ZNK3JPH5Mat4427InversedRotationTranslationEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %12, ptr noundef nonnull align 16 dereferenceable(64) %7)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #7
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %13, ptr noundef nonnull align 16 dereferenceable(64) %12, ptr noundef nonnull align 16 dereferenceable(64) %6)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %14) #7
  call void @_ZNK3JPH5Mat4427InversedRotationTranslationEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %14, ptr noundef nonnull align 16 dereferenceable(64) %13)
  %28 = getelementptr inbounds i8, ptr %0, i64 128
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %28, ptr noundef nonnull align 16 dereferenceable(64) %14, i64 64, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #7
  %29 = load ptr, ptr %1, align 8, !tbaa !21
  %30 = getelementptr inbounds i8, ptr %29, i64 32
  %31 = load ptr, ptr %30, align 8
  call void %31(ptr dead_on_unwind nonnull writable sret(%"class.JPH::AABox") align 16 %16, ptr noundef nonnull align 8 dereferenceable(26) %1)
  call void @_ZNK3JPH5AABox6ScaledENS_4Vec3E(ptr dead_on_unwind nonnull writable sret(%"class.JPH::AABox") align 16 %15, ptr noundef nonnull align 16 dereferenceable(32) %16, double %2, double %3)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %23, ptr noundef nonnull align 16 dereferenceable(32) %15, i64 32, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #7
  %32 = getelementptr inbounds i8, ptr %9, i64 32
  %33 = load float, ptr %32, align 16, !tbaa !24
  %34 = call { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef %33)
  %35 = extractvalue { double, double } %34, 0
  %36 = extractvalue { double, double } %34, 1
  call void @_ZN3JPH5AABox8ExpandByENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %23, double %35, double %36)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #7
  call void @_ZNK3JPH5AABox11TransformedERKNS_5Mat44E(ptr dead_on_unwind nonnull writable sret(%"class.JPH::AABox") align 16 %17, ptr noundef nonnull align 16 dereferenceable(32) %23, ptr noundef nonnull align 16 dereferenceable(64) %13)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %24, ptr noundef nonnull align 16 dereferenceable(32) %17, i64 32, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #7
  %37 = call noundef zeroext i1 @_ZN3JPH12ScaleHelpers11IsInsideOutENS_4Vec3E(double %4, double %5)
  %38 = select i1 %37, float -1.000000e+00, float 1.000000e+00
  %39 = getelementptr inbounds i8, ptr %0, i64 260
  store float %38, ptr %39, align 4, !tbaa !30
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #7
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH5AABoxC2Ev(ptr noundef nonnull align 16 dereferenceable(32)) unnamed_addr #1 align 2

; 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 #3 align 2

; Function Attrs: alwaysinline mustprogress 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 #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH5AABox6ScaledENS_4Vec3E(ptr dead_on_unwind noalias writable sret(%"class.JPH::AABox") align 16, ptr noundef nonnull align 16 dereferenceable(32), double, double) local_unnamed_addr #1 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef) local_unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH12ScaleHelpers11IsInsideOutENS_4Vec3E(double, double) local_unnamed_addr #5

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

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { 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, !6, i64 16}
!10 = !{!"_ZTSN3JPH24CollideConvexVsTrianglesE", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 32, !11, i64 48, !12, i64 64, !12, i64 128, !13, i64 192, !13, i64 224, !14, i64 256, !16, i64 260, !17, i64 272, !17, i64 4432, !6, i64 8592, !6, i64 8600}
!11 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!12 = !{!"_ZTSN3JPH5Mat44E", !7, i64 0}
!13 = !{!"_ZTSN3JPH5AABoxE", !11, i64 0, !11, i64 16}
!14 = !{!"_ZTSN3JPH10SubShapeIDE", !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{!"_ZTSN3JPH11ConvexShape13SupportBufferE", !7, i64 0}
!18 = !{!7, !7, i64 0}
!19 = !{i64 0, i64 64, !18}
!20 = !{!15, !15, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"vtable pointer", !8, i64 0}
!23 = !{i64 0, i64 16, !18, i64 16, i64 16, !18}
!24 = !{!25, !16, i64 32}
!25 = !{!"_ZTSN3JPH20CollideShapeSettingsE", !26, i64 0, !16, i64 32, !29, i64 36}
!26 = !{!"_ZTSN3JPH19CollideSettingsBaseE", !27, i64 0, !28, i64 1, !16, i64 4, !16, i64 8, !11, i64 16}
!27 = !{!"_ZTSN3JPH15EActiveEdgeModeE", !7, i64 0}
!28 = !{!"_ZTSN3JPH17ECollectFacesModeE", !7, i64 0}
!29 = !{!"_ZTSN3JPH13EBackFaceModeE", !7, i64 0}
!30 = !{!10, !16, i64 260}


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