; LLVM IR from jrouwe/JoltPhysics :: Jolt/Physics/Constraints (SixDOFConstraint)

; 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::SixDOFConstraintSettings" = type <{ %"class.JPH::TwoBodyConstraintSettings", i32, [4 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", [6 x float], i8, [3 x i8], [6 x float], [6 x float], [3 x %"class.JPH::SpringSettings"], [6 x %"class.JPH::MotorSettings"], [8 x i8] }>
%"class.JPH::TwoBodyConstraintSettings" = type { %"class.JPH::ConstraintSettings" }
%"class.JPH::ConstraintSettings" = type { %"class.JPH::SerializableObject", %"class.JPH::RefTarget", i8, i32, i32, i32, float, i64 }
%"class.JPH::SerializableObject" = type { ptr }
%"class.JPH::RefTarget" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::SpringSettings" = type { i8, %union.anon.2, float }
%union.anon.2 = type { float }
%"class.JPH::MotorSettings" = type { %"class.JPH::SpringSettings", float, 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: mustprogress uwtable
define dso_local void @_ZN3JPH24SixDOFConstraintSettings18RestoreBinaryStateERNS_8StreamInE(ptr noundef nonnull align 16 dereferenceable(432) %0, ptr noundef nonnull align 8 dereferenceable(8) %1) unnamed_addr #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %13 = load ptr, ptr %3, align 8
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3JPH18ConstraintSettings18RestoreBinaryStateERNS_8StreamInE(ptr noundef nonnull align 8 dereferenceable(40) %13, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %"class.JPH::SixDOFConstraintSettings", ptr %13, i32 0, i32 1
  call void @_ZN3JPH8StreamIn4ReadINS_16EConstraintSpaceETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %"class.JPH::SixDOFConstraintSettings", ptr %13, i32 0, i32 3
  call void @_ZN3JPH8StreamIn4ReadERNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 16 dereferenceable(16) %18)
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %"class.JPH::SixDOFConstraintSettings", ptr %13, i32 0, i32 4
  call void @_ZN3JPH8StreamIn4ReadERNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 16 dereferenceable(16) %20)
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %"class.JPH::SixDOFConstraintSettings", ptr %13, i32 0, i32 5
  call void @_ZN3JPH8StreamIn4ReadERNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 16 dereferenceable(16) %22)
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %"class.JPH::SixDOFConstraintSettings", ptr %13, i32 0, i32 6
  call void @_ZN3JPH8StreamIn4ReadERNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 16 dereferenceable(16) %24)
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %"class.JPH::SixDOFConstraintSettings", ptr %13, i32 0, i32 7
  call void @_ZN3JPH8StreamIn4ReadERNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 16 dereferenceable(16) %26)
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %"class.JPH::SixDOFConstraintSettings", ptr %13, i32 0, i32 8
  call void @_ZN3JPH8StreamIn4ReadERNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 16 dereferenceable(16) %28)
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %"class.JPH::SixDOFConstraintSettings", ptr %13, i32 0, i32 9
  call void @_ZN3JPH8StreamIn4ReadIA6_fTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 4 dereferenceable(24) %30)
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %"class.JPH::SixDOFConstraintSettings", ptr %13, i32 0, i32 10
  call void @_ZN3JPH8StreamIn4ReadINS_10ESwingTypeETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 1 dereferenceable(1) %32)
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %"class.JPH::SixDOFConstraintSettings", ptr %13, i32 0, i32 12
  call void @_ZN3JPH8StreamIn4ReadIA6_fTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 4 dereferenceable(24) %34)
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %"class.JPH::SixDOFConstraintSettings", ptr %13, i32 0, i32 13
  call void @_ZN3JPH8StreamIn4ReadIA6_fTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 4 dereferenceable(24) %36)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %37 = getelementptr inbounds %"class.JPH::SixDOFConstraintSettings", ptr %13, i32 0, i32 14
  store ptr %37, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds [3 x %"class.JPH::SpringSettings"], ptr %38, i64 0, i64 0
  store ptr %39, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds [3 x %"class.JPH::SpringSettings"], ptr %40, i64 0, i64 0
  %42 = getelementptr inbounds %"class.JPH::SpringSettings", ptr %41, i64 3
  store ptr %42, ptr %7, align 8, !tbaa !5
  br label %43

43:                                               ; preds = %52, %2
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = icmp ne ptr %44, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %55

48:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %49, ptr %8, align 8, !tbaa !5
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3JPH14SpringSettings18RestoreBinaryStateERNS_8StreamInE(ptr noundef nonnull align 4 dereferenceable(12) %50, ptr noundef nonnull align 8 dereferenceable(8) %51)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %52

52:                                               ; preds = %48
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = getelementptr inbounds %"class.JPH::SpringSettings", ptr %53, i32 1
  store ptr %54, ptr %6, align 8, !tbaa !5
  br label %43

55:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %56 = getelementptr inbounds %"class.JPH::SixDOFConstraintSettings", ptr %13, i32 0, i32 15
  store ptr %56, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = getelementptr inbounds [6 x %"class.JPH::MotorSettings"], ptr %57, i64 0, i64 0
  store ptr %58, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  %60 = getelementptr inbounds [6 x %"class.JPH::MotorSettings"], ptr %59, i64 0, i64 0
  %61 = getelementptr inbounds %"class.JPH::MotorSettings", ptr %60, i64 6
  store ptr %61, ptr %11, align 8, !tbaa !5
  br label %62

62:                                               ; preds = %71, %55
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  %64 = load ptr, ptr %11, align 8, !tbaa !5
  %65 = icmp ne ptr %63, %64
  br i1 %65, label %67, label %66

66:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %74

67:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %68 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %68, ptr %12, align 8, !tbaa !5
  %69 = load ptr, ptr %12, align 8, !tbaa !5
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3JPH13MotorSettings18RestoreBinaryStateERNS_8StreamInE(ptr noundef nonnull align 4 dereferenceable(28) %69, ptr noundef nonnull align 8 dereferenceable(8) %70)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %71

71:                                               ; preds = %67
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  %73 = getelementptr inbounds %"class.JPH::MotorSettings", ptr %72, i32 1
  store ptr %73, ptr %10, align 8, !tbaa !5
  br label %62

74:                                               ; preds = %66
  ret void
}

declare void @_ZN3JPH18ConstraintSettings18RestoreBinaryStateERNS_8StreamInE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH8StreamIn4ReadIA6_fTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(24)) #1 align 2

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

declare void @_ZN3JPH14SpringSettings18RestoreBinaryStateERNS_8StreamInE(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8)) #2

declare void @_ZN3JPH13MotorSettings18RestoreBinaryStateERNS_8StreamInE(ptr noundef nonnull align 4 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(8)) #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 = { "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"="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 = { 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"}


; 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"

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH24SixDOFConstraintSettings18RestoreBinaryStateERNS_8StreamInE(ptr noundef nonnull align 16 dereferenceable(432) %0, ptr noundef nonnull align 8 dereferenceable(8) %1) unnamed_addr #0 align 2 {
.preheader.preheader:
  tail call void @_ZN3JPH18ConstraintSettings18RestoreBinaryStateERNS_8StreamInE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %2 = getelementptr inbounds i8, ptr %0, i64 40
  tail call void @_ZN3JPH8StreamIn4ReadINS_16EConstraintSpaceETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %3 = getelementptr inbounds i8, ptr %0, i64 48
  tail call void @_ZN3JPH8StreamIn4ReadERNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 16 dereferenceable(16) %3)
  %4 = getelementptr inbounds i8, ptr %0, i64 64
  tail call void @_ZN3JPH8StreamIn4ReadERNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 16 dereferenceable(16) %4)
  %5 = getelementptr inbounds i8, ptr %0, i64 80
  tail call void @_ZN3JPH8StreamIn4ReadERNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 16 dereferenceable(16) %5)
  %6 = getelementptr inbounds i8, ptr %0, i64 96
  tail call void @_ZN3JPH8StreamIn4ReadERNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 16 dereferenceable(16) %6)
  %7 = getelementptr inbounds i8, ptr %0, i64 112
  tail call void @_ZN3JPH8StreamIn4ReadERNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 16 dereferenceable(16) %7)
  %8 = getelementptr inbounds i8, ptr %0, i64 128
  tail call void @_ZN3JPH8StreamIn4ReadERNS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 16 dereferenceable(16) %8)
  %9 = getelementptr inbounds i8, ptr %0, i64 144
  tail call void @_ZN3JPH8StreamIn4ReadIA6_fTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(24) %9)
  %10 = getelementptr inbounds i8, ptr %0, i64 168
  tail call void @_ZN3JPH8StreamIn4ReadINS_10ESwingTypeETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 1 dereferenceable(1) %10)
  %11 = getelementptr inbounds i8, ptr %0, i64 172
  tail call void @_ZN3JPH8StreamIn4ReadIA6_fTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(24) %11)
  %12 = getelementptr inbounds i8, ptr %0, i64 196
  tail call void @_ZN3JPH8StreamIn4ReadIA6_fTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(24) %12)
  %.0.ptr = getelementptr inbounds i8, ptr %0, i64 220
  tail call void @_ZN3JPH14SpringSettings18RestoreBinaryStateERNS_8StreamInE(ptr noundef nonnull align 4 dereferenceable(12) %.0.ptr, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %.0.ptr.1 = getelementptr inbounds i8, ptr %0, i64 232
  tail call void @_ZN3JPH14SpringSettings18RestoreBinaryStateERNS_8StreamInE(ptr noundef nonnull align 4 dereferenceable(12) %.0.ptr.1, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %.0.ptr.2 = getelementptr inbounds i8, ptr %0, i64 244
  tail call void @_ZN3JPH14SpringSettings18RestoreBinaryStateERNS_8StreamInE(ptr noundef nonnull align 4 dereferenceable(12) %.0.ptr.2, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %.029.ptr = getelementptr inbounds i8, ptr %0, i64 256
  tail call void @_ZN3JPH13MotorSettings18RestoreBinaryStateERNS_8StreamInE(ptr noundef nonnull align 4 dereferenceable(28) %.029.ptr, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %.029.ptr.1 = getelementptr inbounds i8, ptr %0, i64 284
  tail call void @_ZN3JPH13MotorSettings18RestoreBinaryStateERNS_8StreamInE(ptr noundef nonnull align 4 dereferenceable(28) %.029.ptr.1, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %.029.ptr.2 = getelementptr inbounds i8, ptr %0, i64 312
  tail call void @_ZN3JPH13MotorSettings18RestoreBinaryStateERNS_8StreamInE(ptr noundef nonnull align 4 dereferenceable(28) %.029.ptr.2, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %.029.ptr.3 = getelementptr inbounds i8, ptr %0, i64 340
  tail call void @_ZN3JPH13MotorSettings18RestoreBinaryStateERNS_8StreamInE(ptr noundef nonnull align 4 dereferenceable(28) %.029.ptr.3, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %.029.ptr.4 = getelementptr inbounds i8, ptr %0, i64 368
  tail call void @_ZN3JPH13MotorSettings18RestoreBinaryStateERNS_8StreamInE(ptr noundef nonnull align 4 dereferenceable(28) %.029.ptr.4, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %.029.ptr.5 = getelementptr inbounds i8, ptr %0, i64 396
  tail call void @_ZN3JPH13MotorSettings18RestoreBinaryStateERNS_8StreamInE(ptr noundef nonnull align 4 dereferenceable(28) %.029.ptr.5, ptr noundef nonnull align 8 dereferenceable(8) %1)
  ret void
}

declare void @_ZN3JPH18ConstraintSettings18RestoreBinaryStateERNS_8StreamInE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH8StreamIn4ReadINS_16EConstraintSpaceETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH8StreamIn4ReadIA6_fTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(24)) local_unnamed_addr #0 align 2

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

declare void @_ZN3JPH14SpringSettings18RestoreBinaryStateERNS_8StreamInE(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

declare void @_ZN3JPH13MotorSettings18RestoreBinaryStateERNS_8StreamInE(ptr noundef nonnull align 4 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

attributes #0 = { 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 #1 = { "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 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" }

!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)"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,SROAPass,SimplifyCFGPass,TailCallElimPass