; LLVM IR from jrouwe/JoltPhysics :: Jolt/Physics/Body/Body.ll (ZNK3JPH4Body27GetSoftBodyCreationSettingsEv)

; 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::SoftBodyCreationSettings" = type <{ %"class.JPH::RefConst.4", [8 x i8], %"class.JPH::Vec3", %"class.JPH::Quat", i64, i16, [6 x i8], %"class.JPH::CollisionGroup", i32, float, float, float, float, float, float, i8, i8, i8, i8 }>
%"class.JPH::RefConst.4" = type { ptr }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.0 }
%union.anon.0 = type { <4 x float> }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst.1", i32, i32 }
%"class.JPH::RefConst.1" = type { ptr }
%"struct.JPH::AssertLastParam" = type { i8 }
%"class.JPH::Body" = type <{ %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::AABox", %"class.JPH::RefConst", ptr, i64, %"class.JPH::CollisionGroup", float, float, %"class.JPH::BodyID", i16, i8, %"class.JPH::BroadPhaseLayer", i8, %"struct.std::atomic.2", [6 x i8] }>
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::BroadPhaseLayer" = type { i8 }
%"struct.std::atomic.2" = type { %"struct.std::__atomic_base.3" }
%"struct.std::__atomic_base.3" = type { i8 }

@.str.3 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [13 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH4Body10IsSoftBodyEv(ptr noundef nonnull align 16 dereferenceable(122)) #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: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH16MotionProperties16GetGravityFactorEv(ptr noundef nonnull align 16 dereferenceable(182)) #1 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZNK3JPH4Body14GetObjectLayerEv(ptr noundef nonnull align 16 dereferenceable(122)) #1 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Body11GetFrictionEv(ptr noundef nonnull align 16 dereferenceable(122)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Body14GetRestitutionEv(ptr noundef nonnull align 16 dereferenceable(122)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH16MotionProperties16GetLinearDampingEv(ptr noundef nonnull align 16 dereferenceable(182)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH16MotionProperties20GetMaxLinearVelocityEv(ptr noundef nonnull align 16 dereferenceable(182)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH4Body27GetSoftBodyCreationSettingsEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::SoftBodyCreationSettings") align 16 %0, ptr noundef nonnull align 16 dereferenceable(122) %1) #5 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.JPH::AssertLastParam", align 1
  %6 = alloca i1, align 1
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.JPH::Quat", align 16
  %11 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %12 = load ptr, ptr %4, align 8
  br label %13

13:                                               ; preds = %2
  %14 = call noundef zeroext i1 @_ZNK3JPH4Body10IsSoftBodyEv(ptr noundef nonnull align 16 dereferenceable(122) %12)
  br i1 %14, label %18, label %15

15:                                               ; preds = %13
  %16 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.13, ptr noundef @.str.3, i32 noundef 400)
  br i1 %16, label %17, label %18

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

18:                                               ; preds = %17, %15, %13
  br label %19

19:                                               ; preds = %18
  store i1 false, ptr %6, align 1
  call void @_ZN3JPH24SoftBodyCreationSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(111) %0)
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #6
  %20 = invoke { double, double } @_ZNK3JPH4Body11GetPositionEv(ptr noundef nonnull align 16 dereferenceable(122) %12)
          to label %21 unwind label %90

21:                                               ; preds = %19
  %22 = getelementptr inbounds %"class.JPH::Vec3", ptr %7, i32 0, i32 0
  %23 = getelementptr inbounds %union.anon, ptr %22, i32 0, i32 0
  %24 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %25 = extractvalue { double, double } %20, 0
  store double %25, ptr %24, align 16
  %26 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %27 = extractvalue { double, double } %20, 1
  store double %27, ptr %26, align 8
  %28 = getelementptr inbounds %"class.JPH::SoftBodyCreationSettings", ptr %0, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %28, ptr align 16 %7, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  %29 = invoke { double, double } @_ZNK3JPH4Body11GetRotationEv(ptr noundef nonnull align 16 dereferenceable(122) %12)
          to label %30 unwind label %94

30:                                               ; preds = %21
  %31 = getelementptr inbounds %"class.JPH::Quat", ptr %10, i32 0, i32 0
  %32 = getelementptr inbounds %"class.JPH::Vec4", ptr %31, i32 0, i32 0
  %33 = getelementptr inbounds %union.anon.0, ptr %32, i32 0, i32 0
  %34 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %35 = extractvalue { double, double } %29, 0
  store double %35, ptr %34, align 16
  %36 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %37 = extractvalue { double, double } %29, 1
  store double %37, ptr %36, align 8
  %38 = getelementptr inbounds %"class.JPH::SoftBodyCreationSettings", ptr %0, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %38, ptr align 16 %10, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  %39 = getelementptr inbounds %"class.JPH::Body", ptr %12, i32 0, i32 5
  %40 = load i64, ptr %39, align 16, !tbaa !12
  %41 = getelementptr inbounds %"class.JPH::SoftBodyCreationSettings", ptr %0, i32 0, i32 4
  store i64 %40, ptr %41, align 16, !tbaa !31
  %42 = invoke noundef zeroext i16 @_ZNK3JPH4Body14GetObjectLayerEv(ptr noundef nonnull align 16 dereferenceable(122) %12)
          to label %43 unwind label %98

43:                                               ; preds = %30
  %44 = getelementptr inbounds %"class.JPH::SoftBodyCreationSettings", ptr %0, i32 0, i32 5
  store i16 %42, ptr %44, align 8, !tbaa !35
  %45 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3JPH4Body17GetCollisionGroupEv(ptr noundef nonnull align 16 dereferenceable(122) %12)
          to label %46 unwind label %98

46:                                               ; preds = %43
  %47 = getelementptr inbounds %"class.JPH::SoftBodyCreationSettings", ptr %0, i32 0, i32 7
  %48 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3JPH14CollisionGroupaSERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %47, ptr noundef nonnull align 8 dereferenceable(16) %45)
          to label %49 unwind label %98

49:                                               ; preds = %46
  %50 = invoke noundef float @_ZNK3JPH4Body11GetFrictionEv(ptr noundef nonnull align 16 dereferenceable(122) %12)
          to label %51 unwind label %98

51:                                               ; preds = %49
  %52 = getelementptr inbounds %"class.JPH::SoftBodyCreationSettings", ptr %0, i32 0, i32 12
  store float %50, ptr %52, align 16, !tbaa !36
  %53 = invoke noundef float @_ZNK3JPH4Body14GetRestitutionEv(ptr noundef nonnull align 16 dereferenceable(122) %12)
          to label %54 unwind label %98

54:                                               ; preds = %51
  %55 = getelementptr inbounds %"class.JPH::SoftBodyCreationSettings", ptr %0, i32 0, i32 11
  store float %53, ptr %55, align 4, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %56 = getelementptr inbounds %"class.JPH::Body", ptr %12, i32 0, i32 4
  %57 = load ptr, ptr %56, align 8, !tbaa !38
  store ptr %57, ptr %11, align 8, !tbaa !5
  %58 = load ptr, ptr %11, align 8, !tbaa !5
  %59 = invoke noundef i32 @_ZNK3JPH24SoftBodyMotionProperties16GetNumIterationsEv(ptr noundef nonnull align 16 dereferenceable(372) %58)
          to label %60 unwind label %102

60:                                               ; preds = %54
  %61 = getelementptr inbounds %"class.JPH::SoftBodyCreationSettings", ptr %0, i32 0, i32 8
  store i32 %59, ptr %61, align 16, !tbaa !39
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  %63 = invoke noundef float @_ZNK3JPH16MotionProperties16GetLinearDampingEv(ptr noundef nonnull align 16 dereferenceable(182) %62)
          to label %64 unwind label %102

64:                                               ; preds = %60
  %65 = getelementptr inbounds %"class.JPH::SoftBodyCreationSettings", ptr %0, i32 0, i32 9
  store float %63, ptr %65, align 4, !tbaa !40
  %66 = load ptr, ptr %11, align 8, !tbaa !5
  %67 = invoke noundef float @_ZNK3JPH16MotionProperties20GetMaxLinearVelocityEv(ptr noundef nonnull align 16 dereferenceable(182) %66)
          to label %68 unwind label %102

68:                                               ; preds = %64
  %69 = getelementptr inbounds %"class.JPH::SoftBodyCreationSettings", ptr %0, i32 0, i32 10
  store float %67, ptr %69, align 8, !tbaa !41
  %70 = load ptr, ptr %11, align 8, !tbaa !5
  %71 = invoke noundef float @_ZNK3JPH16MotionProperties16GetGravityFactorEv(ptr noundef nonnull align 16 dereferenceable(182) %70)
          to label %72 unwind label %102

72:                                               ; preds = %68
  %73 = getelementptr inbounds %"class.JPH::SoftBodyCreationSettings", ptr %0, i32 0, i32 14
  store float %71, ptr %73, align 8, !tbaa !42
  %74 = load ptr, ptr %11, align 8, !tbaa !5
  %75 = invoke noundef float @_ZNK3JPH24SoftBodyMotionProperties11GetPressureEv(ptr noundef nonnull align 16 dereferenceable(372) %74)
          to label %76 unwind label %102

76:                                               ; preds = %72
  %77 = getelementptr inbounds %"class.JPH::SoftBodyCreationSettings", ptr %0, i32 0, i32 13
  store float %75, ptr %77, align 4, !tbaa !43
  %78 = load ptr, ptr %11, align 8, !tbaa !5
  %79 = invoke noundef zeroext i1 @_ZNK3JPH24SoftBodyMotionProperties17GetUpdatePositionEv(ptr noundef nonnull align 16 dereferenceable(372) %78)
          to label %80 unwind label %102

80:                                               ; preds = %76
  %81 = getelementptr inbounds %"class.JPH::SoftBodyCreationSettings", ptr %0, i32 0, i32 15
  %82 = zext i1 %79 to i8
  store i8 %82, ptr %81, align 4, !tbaa !44
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = invoke noundef ptr @_ZNK3JPH24SoftBodyMotionProperties11GetSettingsEv(ptr noundef nonnull align 16 dereferenceable(372) %83)
          to label %85 unwind label %102

85:                                               ; preds = %80
  %86 = getelementptr inbounds %"class.JPH::SoftBodyCreationSettings", ptr %0, i32 0, i32 0
  %87 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH8RefConstINS_22SoftBodySharedSettingsEEaSEPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %86, ptr noundef %84)
          to label %88 unwind label %102

88:                                               ; preds = %85
  store i1 true, ptr %6, align 1
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  %89 = load i1, ptr %6, align 1
  br i1 %89, label %107, label %106

90:                                               ; preds = %19
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %8, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  br label %108

94:                                               ; preds = %21
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %8, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  br label %108

98:                                               ; preds = %51, %49, %46, %43, %30
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %8, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %9, align 4
  br label %108

102:                                              ; preds = %85, %80, %76, %72, %68, %64, %60, %54
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %8, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %108

106:                                              ; preds = %88
  call void @_ZN3JPH24SoftBodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(111) %0) #6
  br label %107

107:                                              ; preds = %106, %88
  ret void

108:                                              ; preds = %102, %98, %94, %90
  call void @_ZN3JPH24SoftBodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(111) %0) #6
  br label %109

109:                                              ; preds = %108
  %110 = load ptr, ptr %8, align 8
  %111 = load i32, ptr %9, align 4
  %112 = insertvalue { ptr, i32 } poison, ptr %110, 0
  %113 = insertvalue { ptr, i32 } %112, i32 %111, 1
  resume { ptr, i32 } %113
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH24SoftBodyCreationSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(111)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3JPH24SoftBodyMotionProperties16GetNumIterationsEv(ptr noundef nonnull align 16 dereferenceable(372)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH24SoftBodyMotionProperties11GetPressureEv(ptr noundef nonnull align 16 dereferenceable(372)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH24SoftBodyMotionProperties17GetUpdatePositionEv(ptr noundef nonnull align 16 dereferenceable(372)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK3JPH24SoftBodyMotionProperties11GetSettingsEv(ptr noundef nonnull align 16 dereferenceable(372)) #5 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH24SoftBodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(111)) unnamed_addr #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 #5 = { 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 = !{i64 2158443972}
!10 = !{i64 0, i64 16, !11}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !19, i64 80}
!13 = !{!"_ZTSN3JPH4BodyE", !14, i64 0, !15, i64 16, !17, i64 32, !18, i64 64, !6, i64 72, !19, i64 80, !20, i64 88, !23, i64 104, !23, i64 108, !24, i64 112, !25, i64 116, !26, i64 118, !27, i64 119, !28, i64 120, !29, i64 121}
!14 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!15 = !{!"_ZTSN3JPH4QuatE", !16, i64 0}
!16 = !{!"_ZTSN3JPH4Vec4E", !7, i64 0}
!17 = !{!"_ZTSN3JPH5AABoxE", !14, i64 0, !14, i64 16}
!18 = !{!"_ZTSN3JPH8RefConstINS_5ShapeEEE", !6, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!"_ZTSN3JPH14CollisionGroupE", !21, i64 0, !22, i64 8, !22, i64 12}
!21 = !{!"_ZTSN3JPH8RefConstINS_11GroupFilterEEE", !6, i64 0}
!22 = !{!"int", !7, i64 0}
!23 = !{!"float", !7, i64 0}
!24 = !{!"_ZTSN3JPH6BodyIDE", !22, i64 0}
!25 = !{!"short", !7, i64 0}
!26 = !{!"_ZTSN3JPH9EBodyTypeE", !7, i64 0}
!27 = !{!"_ZTSN3JPH15BroadPhaseLayerE", !7, i64 0}
!28 = !{!"_ZTSN3JPH11EMotionTypeE", !7, i64 0}
!29 = !{!"_ZTSSt6atomicIhE", !30, i64 0}
!30 = !{!"_ZTSSt13__atomic_baseIhE", !7, i64 0}
!31 = !{!32, !19, i64 48}
!32 = !{!"_ZTSN3JPH24SoftBodyCreationSettingsE", !33, i64 0, !14, i64 16, !15, i64 32, !19, i64 48, !25, i64 56, !20, i64 64, !22, i64 80, !23, i64 84, !23, i64 88, !23, i64 92, !23, i64 96, !23, i64 100, !23, i64 104, !34, i64 108, !34, i64 109, !34, i64 110}
!33 = !{!"_ZTSN3JPH8RefConstINS_22SoftBodySharedSettingsEEE", !6, i64 0}
!34 = !{!"bool", !7, i64 0}
!35 = !{!32, !25, i64 56}
!36 = !{!32, !23, i64 96}
!37 = !{!32, !23, i64 92}
!38 = !{!13, !6, i64 72}
!39 = !{!32, !22, i64 80}
!40 = !{!32, !23, i64 84}
!41 = !{!32, !23, i64 88}
!42 = !{!32, !23, i64 104}
!43 = !{!32, !23, i64 100}
!44 = !{!32, !34, i64 108}


; 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::SoftBodyCreationSettings" = type <{ %"class.JPH::RefConst.4", [8 x i8], %"class.JPH::Vec3", %"class.JPH::Quat", i64, i16, [6 x i8], %"class.JPH::CollisionGroup", i32, float, float, float, float, float, float, i8, i8, i8, i8 }>
%"class.JPH::RefConst.4" = type { ptr }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.0 }
%union.anon.0 = type { <4 x float> }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst.1", i32, i32 }
%"class.JPH::RefConst.1" = type { ptr }

@.str.3 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [13 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH4Body10IsSoftBodyEv(ptr noundef nonnull align 16 dereferenceable(122)) local_unnamed_addr #0 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 #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH16MotionProperties16GetGravityFactorEv(ptr noundef nonnull align 16 dereferenceable(182)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZNK3JPH4Body14GetObjectLayerEv(ptr noundef nonnull align 16 dereferenceable(122)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Body11GetFrictionEv(ptr noundef nonnull align 16 dereferenceable(122)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Body14GetRestitutionEv(ptr noundef nonnull align 16 dereferenceable(122)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH16MotionProperties16GetLinearDampingEv(ptr noundef nonnull align 16 dereferenceable(182)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH16MotionProperties20GetMaxLinearVelocityEv(ptr noundef nonnull align 16 dereferenceable(182)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH4Body27GetSoftBodyCreationSettingsEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::SoftBodyCreationSettings") align 16 %0, ptr noundef nonnull align 16 dereferenceable(122) %1) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = tail call noundef zeroext i1 @_ZNK3JPH4Body10IsSoftBodyEv(ptr noundef nonnull align 16 dereferenceable(122) %1)
  br i1 %3, label %7, label %4

4:                                                ; preds = %2
  %5 = tail call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.3, i32 noundef 400)
  br i1 %5, label %6, label %7

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

7:                                                ; preds = %2, %4, %6
  tail call void @_ZN3JPH24SoftBodyCreationSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(111) %0)
  %8 = invoke { double, double } @_ZNK3JPH4Body11GetPositionEv(ptr noundef nonnull align 16 dereferenceable(122) %1)
          to label %9 unwind label %49

9:                                                ; preds = %7
  %10 = extractvalue { double, double } %8, 0
  %11 = extractvalue { double, double } %8, 1
  %12 = getelementptr inbounds i8, ptr %0, i64 16
  store double %10, ptr %12, align 16
  %.sroa.59.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 24
  store double %11, ptr %.sroa.59.0..sroa_idx, align 8, !tbaa !6
  %13 = invoke { double, double } @_ZNK3JPH4Body11GetRotationEv(ptr noundef nonnull align 16 dereferenceable(122) %1)
          to label %14 unwind label %51

14:                                               ; preds = %9
  %15 = extractvalue { double, double } %13, 0
  %16 = extractvalue { double, double } %13, 1
  %17 = getelementptr inbounds i8, ptr %0, i64 32
  store double %15, ptr %17, align 16
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 40
  store double %16, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !6
  %18 = getelementptr inbounds i8, ptr %1, i64 80
  %19 = load i64, ptr %18, align 16, !tbaa !9
  %20 = getelementptr inbounds i8, ptr %0, i64 48
  store i64 %19, ptr %20, align 16, !tbaa !29
  %21 = tail call noundef zeroext i16 @_ZNK3JPH4Body14GetObjectLayerEv(ptr noundef nonnull align 16 dereferenceable(122) %1)
  %22 = getelementptr inbounds i8, ptr %0, i64 56
  store i16 %21, ptr %22, align 8, !tbaa !33
  %23 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3JPH4Body17GetCollisionGroupEv(ptr noundef nonnull align 16 dereferenceable(122) %1)
  %24 = getelementptr inbounds i8, ptr %0, i64 64
  %25 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3JPH14CollisionGroupaSERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %26 unwind label %53

26:                                               ; preds = %14
  %27 = tail call noundef float @_ZNK3JPH4Body11GetFrictionEv(ptr noundef nonnull align 16 dereferenceable(122) %1)
  %28 = getelementptr inbounds i8, ptr %0, i64 96
  store float %27, ptr %28, align 16, !tbaa !34
  %29 = tail call noundef float @_ZNK3JPH4Body14GetRestitutionEv(ptr noundef nonnull align 16 dereferenceable(122) %1)
  %30 = getelementptr inbounds i8, ptr %0, i64 92
  store float %29, ptr %30, align 4, !tbaa !35
  %31 = getelementptr inbounds i8, ptr %1, i64 72
  %32 = load ptr, ptr %31, align 8, !tbaa !36
  %33 = tail call noundef i32 @_ZNK3JPH24SoftBodyMotionProperties16GetNumIterationsEv(ptr noundef nonnull align 16 dereferenceable(372) %32)
  %34 = getelementptr inbounds i8, ptr %0, i64 80
  store i32 %33, ptr %34, align 16, !tbaa !37
  %35 = tail call noundef float @_ZNK3JPH16MotionProperties16GetLinearDampingEv(ptr noundef nonnull align 16 dereferenceable(182) %32)
  %36 = getelementptr inbounds i8, ptr %0, i64 84
  store float %35, ptr %36, align 4, !tbaa !38
  %37 = tail call noundef float @_ZNK3JPH16MotionProperties20GetMaxLinearVelocityEv(ptr noundef nonnull align 16 dereferenceable(182) %32)
  %38 = getelementptr inbounds i8, ptr %0, i64 88
  store float %37, ptr %38, align 8, !tbaa !39
  %39 = tail call noundef float @_ZNK3JPH16MotionProperties16GetGravityFactorEv(ptr noundef nonnull align 16 dereferenceable(182) %32)
  %40 = getelementptr inbounds i8, ptr %0, i64 104
  store float %39, ptr %40, align 8, !tbaa !40
  %41 = tail call noundef float @_ZNK3JPH24SoftBodyMotionProperties11GetPressureEv(ptr noundef nonnull align 16 dereferenceable(372) %32)
  %42 = getelementptr inbounds i8, ptr %0, i64 100
  store float %41, ptr %42, align 4, !tbaa !41
  %43 = tail call noundef zeroext i1 @_ZNK3JPH24SoftBodyMotionProperties17GetUpdatePositionEv(ptr noundef nonnull align 16 dereferenceable(372) %32)
  %44 = getelementptr inbounds i8, ptr %0, i64 108
  %45 = zext i1 %43 to i8
  store i8 %45, ptr %44, align 4, !tbaa !42
  %46 = invoke noundef ptr @_ZNK3JPH24SoftBodyMotionProperties11GetSettingsEv(ptr noundef nonnull align 16 dereferenceable(372) %32)
          to label %47 unwind label %55

47:                                               ; preds = %26
  %48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH8RefConstINS_22SoftBodySharedSettingsEEaSEPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef %46)
          to label %57 unwind label %55

49:                                               ; preds = %7
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %58

51:                                               ; preds = %9
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %58

53:                                               ; preds = %14
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %58

55:                                               ; preds = %47, %26
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %58

57:                                               ; preds = %47
  ret void

58:                                               ; preds = %55, %53, %51, %49
  %.pn = phi { ptr, i32 } [ %56, %55 ], [ %54, %53 ], [ %52, %51 ], [ %50, %49 ]
  tail call void @_ZN3JPH24SoftBodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(111) %0) #4
  resume { ptr, i32 } %.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH24SoftBodyCreationSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(111)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3JPH24SoftBodyMotionProperties16GetNumIterationsEv(ptr noundef nonnull align 16 dereferenceable(372)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK3JPH24SoftBodyMotionProperties11GetSettingsEv(ptr noundef nonnull align 16 dereferenceable(372)) local_unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH24SoftBodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(111)) unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { 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 2158443972}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !17, i64 80}
!10 = !{!"_ZTSN3JPH4BodyE", !11, i64 0, !12, i64 16, !14, i64 32, !15, i64 64, !16, i64 72, !17, i64 80, !18, i64 88, !21, i64 104, !21, i64 108, !22, i64 112, !23, i64 116, !24, i64 118, !25, i64 119, !26, i64 120, !27, i64 121}
!11 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!12 = !{!"_ZTSN3JPH4QuatE", !13, i64 0}
!13 = !{!"_ZTSN3JPH4Vec4E", !7, i64 0}
!14 = !{!"_ZTSN3JPH5AABoxE", !11, i64 0, !11, i64 16}
!15 = !{!"_ZTSN3JPH8RefConstINS_5ShapeEEE", !16, i64 0}
!16 = !{!"any pointer", !7, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_ZTSN3JPH14CollisionGroupE", !19, i64 0, !20, i64 8, !20, i64 12}
!19 = !{!"_ZTSN3JPH8RefConstINS_11GroupFilterEEE", !16, i64 0}
!20 = !{!"int", !7, i64 0}
!21 = !{!"float", !7, i64 0}
!22 = !{!"_ZTSN3JPH6BodyIDE", !20, i64 0}
!23 = !{!"short", !7, i64 0}
!24 = !{!"_ZTSN3JPH9EBodyTypeE", !7, i64 0}
!25 = !{!"_ZTSN3JPH15BroadPhaseLayerE", !7, i64 0}
!26 = !{!"_ZTSN3JPH11EMotionTypeE", !7, i64 0}
!27 = !{!"_ZTSSt6atomicIhE", !28, i64 0}
!28 = !{!"_ZTSSt13__atomic_baseIhE", !7, i64 0}
!29 = !{!30, !17, i64 48}
!30 = !{!"_ZTSN3JPH24SoftBodyCreationSettingsE", !31, i64 0, !11, i64 16, !12, i64 32, !17, i64 48, !23, i64 56, !18, i64 64, !20, i64 80, !21, i64 84, !21, i64 88, !21, i64 92, !21, i64 96, !21, i64 100, !21, i64 104, !32, i64 108, !32, i64 109, !32, i64 110}
!31 = !{!"_ZTSN3JPH8RefConstINS_22SoftBodySharedSettingsEEE", !16, i64 0}
!32 = !{!"bool", !7, i64 0}
!33 = !{!30, !23, i64 56}
!34 = !{!30, !21, i64 96}
!35 = !{!30, !21, i64 92}
!36 = !{!10, !16, i64 72}
!37 = !{!30, !20, i64 80}
!38 = !{!30, !21, i64 84}
!39 = !{!30, !21, i64 88}
!40 = !{!30, !21, i64 104}
!41 = !{!30, !21, i64 100}
!42 = !{!30, !32, i64 108}


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