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

; 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::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.8 }
%union.anon.8 = type { <4 x float> }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec3" = type { %union.anon.7 }
%union.anon.7 = type { <4 x float> }
%"class.JPH::CompoundShape" = type <{ %"class.JPH::Shape.base", [6 x i8], %"class.JPH::Vec3", %"class.JPH::AABox", %"class.JPH::Array.11", float, [4 x i8] }>
%"class.JPH::Shape.base" = type <{ ptr, %"class.JPH::RefTarget.10", [4 x i8], i64, i8, i8 }>
%"class.JPH::RefTarget.10" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::Array.11" = type { i64, i64, ptr }
%"struct.JPH::CompoundShape::SubShape" = type <{ %"class.JPH::RefConst.9", %"class.JPH::Float3", %"class.JPH::Float3", i32, i8, [3 x i8] }>
%"class.JPH::RefConst.9" = type { ptr }
%"class.JPH::Float3" = type { float, float, float }

; 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 nounwind uwtable
declare dso_local noundef ptr @_ZNK3JPH5ArrayINS_13CompoundShape8SubShapeENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH13CompoundShape17GetMassPropertiesEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::MassProperties") align 16 %0, ptr noundef nonnull align 16 dereferenceable(108) %1) unnamed_addr #3 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca %"class.JPH::Mat44", align 16
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.JPH::MassProperties", align 16
  %10 = alloca %"class.JPH::Mat44", align 16
  %11 = alloca %"class.JPH::Quat", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Vec4", align 16
  store ptr %1, ptr %3, align 8, !tbaa !5
  %14 = load ptr, ptr %3, align 8
  call void @_ZN3JPH14MassPropertiesC2Ev(ptr noundef nonnull align 16 dereferenceable(80) %0)
  %15 = getelementptr inbounds %"class.JPH::MassProperties", ptr %0, i32 0, i32 0
  store float 0.000000e+00, ptr %15, align 16, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 64, ptr %4) #8
  call void @_ZN3JPH5Mat445sZeroEv(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %4)
  %16 = getelementptr inbounds %"class.JPH::MassProperties", ptr %0, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %16, ptr align 16 %4, i64 64, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 64, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  %17 = getelementptr inbounds %"class.JPH::CompoundShape", ptr %14, i32 0, i32 4
  store ptr %17, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = call noundef ptr @_ZNK3JPH5ArrayINS_13CompoundShape8SubShapeENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %18)
  store ptr %19, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = call noundef ptr @_ZNK3JPH5ArrayINS_13CompoundShape8SubShapeENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %20)
  store ptr %21, ptr %7, align 8, !tbaa !5
  br label %22

22:                                               ; preds = %68, %2
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  %25 = icmp ne ptr %23, %24
  br i1 %25, label %27, label %26

26:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  br label %71

27:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %28, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 80, ptr %9) #8
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.JPH::CompoundShape::SubShape", ptr %29, i32 0, i32 0
  %31 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %30)
  %32 = load ptr, ptr %31, align 8, !tbaa !15
  %33 = getelementptr inbounds ptr, ptr %32, i64 8
  %34 = load ptr, ptr %33, align 8
  call void %34(ptr dead_on_unwind writable sret(%"class.JPH::MassProperties") align 16 %9, ptr noundef nonnull align 8 dereferenceable(26) %31)
  call void @llvm.lifetime.start.p0(i64 64, ptr %10) #8
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = call { double, double } @_ZNK3JPH13CompoundShape8SubShape11GetRotationEv(ptr noundef nonnull align 8 dereferenceable(37) %35)
  %37 = getelementptr inbounds %"class.JPH::Quat", ptr %11, i32 0, i32 0
  %38 = getelementptr inbounds %"class.JPH::Vec4", ptr %37, i32 0, i32 0
  %39 = getelementptr inbounds %union.anon.8, ptr %38, i32 0, i32 0
  %40 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 0
  %41 = extractvalue { double, double } %36, 0
  store double %41, ptr %40, align 16
  %42 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 1
  %43 = extractvalue { double, double } %36, 1
  store double %43, ptr %42, align 8
  %44 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 0
  %45 = load double, ptr %44, align 16
  %46 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 1
  %47 = load double, ptr %46, align 8
  call void @_ZN3JPH5Mat449sRotationENS_4QuatE(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %10, double %45, double %47)
  call void @_ZN3JPH14MassProperties6RotateERKNS_5Mat44E(ptr noundef nonnull align 16 dereferenceable(80) %9, ptr noundef nonnull align 16 dereferenceable(64) %10)
  call void @llvm.lifetime.end.p0(i64 64, ptr %10) #8
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = call { double, double } @_ZNK3JPH13CompoundShape8SubShape14GetPositionCOMEv(ptr noundef nonnull align 8 dereferenceable(37) %48)
  %50 = getelementptr inbounds %"class.JPH::Vec3", ptr %12, i32 0, i32 0
  %51 = getelementptr inbounds %union.anon.7, ptr %50, i32 0, i32 0
  %52 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 0
  %53 = extractvalue { double, double } %49, 0
  store double %53, ptr %52, align 16
  %54 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 1
  %55 = extractvalue { double, double } %49, 1
  store double %55, ptr %54, align 8
  %56 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  %57 = load double, ptr %56, align 16
  %58 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  %59 = load double, ptr %58, align 8
  call void @_ZN3JPH14MassProperties9TranslateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(80) %9, double %57, double %59)
  %60 = getelementptr inbounds %"class.JPH::MassProperties", ptr %9, i32 0, i32 0
  %61 = load float, ptr %60, align 16, !tbaa !9
  %62 = getelementptr inbounds %"class.JPH::MassProperties", ptr %0, i32 0, i32 0
  %63 = load float, ptr %62, align 16, !tbaa !9
  %64 = fadd float %63, %61
  store float %64, ptr %62, align 16, !tbaa !9
  %65 = getelementptr inbounds %"class.JPH::MassProperties", ptr %9, i32 0, i32 1
  %66 = getelementptr inbounds %"class.JPH::MassProperties", ptr %0, i32 0, i32 1
  %67 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5Mat44pLERKS0_(ptr noundef nonnull align 16 dereferenceable(64) %66, ptr noundef nonnull align 16 dereferenceable(64) %65)
  call void @llvm.lifetime.end.p0(i64 80, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %68

68:                                               ; preds = %27
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.JPH::CompoundShape::SubShape", ptr %69, i32 1
  store ptr %70, ptr %6, align 8, !tbaa !5
  br label %22

71:                                               ; preds = %26
  %72 = getelementptr inbounds %"class.JPH::MassProperties", ptr %0, i32 0, i32 1
  call void @_ZN3JPH4Vec4C2Effff(ptr noundef nonnull align 16 dereferenceable(16) %13, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
  %73 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 0
  %74 = load double, ptr %73, align 16
  %75 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 1
  %76 = load double, ptr %75, align 8
  call void @_ZN3JPH5Mat4410SetColumn4EjNS_4Vec4E(ptr noundef nonnull align 16 dereferenceable(64) %72, i32 noundef 3, double %74, double %76)
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH14MassPropertiesC2Ev(ptr noundef nonnull align 16 dereferenceable(80)) unnamed_addr #4 align 2

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

declare void @_ZN3JPH14MassProperties6RotateERKNS_5Mat44E(ptr noundef nonnull align 16 dereferenceable(80), ptr noundef nonnull align 16 dereferenceable(64)) #6

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

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

declare void @_ZN3JPH14MassProperties9TranslateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(80), double, double) #6

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5Mat44pLERKS0_(ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64)) #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat4410SetColumn4EjNS_4Vec4E(ptr noundef nonnull align 16 dereferenceable(64), i32 noundef, double, double) #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec4C2Effff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef, float noundef) unnamed_addr #7 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 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 #3 = { 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 = { 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 = { 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 = { "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"="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 #8 = { nounwind }

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

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


; 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::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.8 }
%union.anon.8 = 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 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 nounwind uwtable
declare dso_local noundef ptr @_ZNK3JPH5ArrayINS_13CompoundShape8SubShapeENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH13CompoundShape17GetMassPropertiesEv(ptr dead_on_unwind noalias nonnull writable sret(%"class.JPH::MassProperties") align 16 %0, ptr noundef nonnull align 16 dereferenceable(108) %1) unnamed_addr #3 align 2 {
  %3 = alloca %"class.JPH::Mat44", align 16
  %4 = alloca %"class.JPH::MassProperties", align 16
  %5 = alloca %"class.JPH::Mat44", align 16
  %6 = alloca %"class.JPH::Vec4", align 16
  tail call void @_ZN3JPH14MassPropertiesC2Ev(ptr noundef nonnull align 16 dereferenceable(80) %0)
  store float 0.000000e+00, ptr %0, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #8
  call void @_ZN3JPH5Mat445sZeroEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %3)
  %7 = getelementptr inbounds i8, ptr %0, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %7, ptr noundef nonnull align 16 dereferenceable(64) %3, i64 64, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #8
  %8 = getelementptr inbounds i8, ptr %1, i64 80
  %9 = call noundef ptr @_ZNK3JPH5ArrayINS_13CompoundShape8SubShapeENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  %10 = call noundef ptr @_ZNK3JPH5ArrayINS_13CompoundShape8SubShapeENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  %.not12 = icmp eq ptr %9, %10
  br i1 %.not12, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %11 = getelementptr inbounds i8, ptr %4, i64 16
  br label %15

._crit_edge:                                      ; preds = %15, %2
  call void @_ZN3JPH4Vec4C2Effff(ptr noundef nonnull align 16 dereferenceable(16) %6, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
  %12 = load double, ptr %6, align 16
  %13 = getelementptr inbounds i8, ptr %6, i64 8
  %14 = load double, ptr %13, align 8
  call void @_ZN3JPH5Mat4410SetColumn4EjNS_4Vec4E(ptr noundef nonnull align 16 dereferenceable(64) %7, i32 noundef 3, double %12, double %14)
  ret void

15:                                               ; preds = %.lr.ph, %15
  %.013 = phi ptr [ %9, %.lr.ph ], [ %30, %15 ]
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %4) #8
  %16 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %.013)
  %17 = load ptr, ptr %16, align 8, !tbaa !13
  %18 = getelementptr inbounds i8, ptr %17, i64 64
  %19 = load ptr, ptr %18, align 8
  call void %19(ptr dead_on_unwind nonnull writable sret(%"class.JPH::MassProperties") align 16 %4, ptr noundef nonnull align 8 dereferenceable(26) %16)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #8
  %20 = call { double, double } @_ZNK3JPH13CompoundShape8SubShape11GetRotationEv(ptr noundef nonnull align 8 dereferenceable(37) %.013)
  %21 = extractvalue { double, double } %20, 0
  %22 = extractvalue { double, double } %20, 1
  call void @_ZN3JPH5Mat449sRotationENS_4QuatE(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %5, double %21, double %22)
  call void @_ZN3JPH14MassProperties6RotateERKNS_5Mat44E(ptr noundef nonnull align 16 dereferenceable(80) %4, ptr noundef nonnull align 16 dereferenceable(64) %5)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #8
  %23 = call { double, double } @_ZNK3JPH13CompoundShape8SubShape14GetPositionCOMEv(ptr noundef nonnull align 8 dereferenceable(37) %.013)
  %24 = extractvalue { double, double } %23, 0
  %25 = extractvalue { double, double } %23, 1
  call void @_ZN3JPH14MassProperties9TranslateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(80) %4, double %24, double %25)
  %26 = load float, ptr %4, align 16, !tbaa !5
  %27 = load float, ptr %0, align 16, !tbaa !5
  %28 = fadd float %26, %27
  store float %28, ptr %0, align 16, !tbaa !5
  %29 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5Mat44pLERKS0_(ptr noundef nonnull align 16 dereferenceable(64) %7, ptr noundef nonnull align 16 dereferenceable(64) %11)
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #8
  %30 = getelementptr inbounds i8, ptr %.013, i64 40
  %.not = icmp eq ptr %30, %10
  br i1 %.not, label %._crit_edge, label %15
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH14MassPropertiesC2Ev(ptr noundef nonnull align 16 dereferenceable(80)) unnamed_addr #4 align 2

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

declare void @_ZN3JPH14MassProperties6RotateERKNS_5Mat44E(ptr noundef nonnull align 16 dereferenceable(80), ptr noundef nonnull align 16 dereferenceable(64)) local_unnamed_addr #6

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

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

declare void @_ZN3JPH14MassProperties9TranslateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(80), double, double) local_unnamed_addr #6

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5Mat44pLERKS0_(ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64)) local_unnamed_addr #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat4410SetColumn4EjNS_4Vec4E(ptr noundef nonnull align 16 dereferenceable(64), i32 noundef, double, double) local_unnamed_addr #5 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 = { 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 = { 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 = { "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"="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 #8 = { nounwind }

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass