; LLVM IR from jrouwe/JoltPhysics :: Jolt/Physics/Vehicle (TrackedVehicleController)

; 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.std::initializer_list" = type { ptr, i64 }
%"class.JPH::TrackedVehicleControllerSettings" = type { %"class.JPH::VehicleControllerSettings.base", %"class.JPH::VehicleEngineSettings", %"class.JPH::VehicleTransmissionSettings", [2 x %"class.JPH::VehicleTrackSettings"] }
%"class.JPH::VehicleControllerSettings.base" = type <{ %"class.JPH::SerializableObject", %"class.JPH::RefTarget" }>
%"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::VehicleEngineSettings" = type { float, float, float, %"class.JPH::LinearCurve", float, float }
%"class.JPH::LinearCurve" = type { %"class.JPH::Array" }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::VehicleTransmissionSettings" = type { i8, %"class.JPH::Array.2", %"class.JPH::Array.2", float, float, float, float, float, float }
%"class.JPH::Array.2" = type { i64, i64, ptr }
%"class.JPH::VehicleTrackSettings" = type { i32, %"class.JPH::Array.5", float, float, float, float }
%"class.JPH::Array.5" = type { i64, i64, ptr }

@_ZTVN3JPH32TrackedVehicleControllerSettingsE = external dso_local unnamed_addr constant { [9 x ptr] }, align 8

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH32TrackedVehicleControllerSettingsC2Ev(ptr noundef nonnull align 8 dereferenceable(240) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::initializer_list", align 8
  %6 = alloca [4 x float], align 4
  %7 = alloca %"class.std::initializer_list", align 8
  %8 = alloca [2 x float], align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %9 = load ptr, ptr %2, align 8
  call void @_ZN3JPH25VehicleControllerSettingsC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %9) #5
  store ptr getelementptr inbounds inrange(-16, 56) ({ [9 x ptr] }, ptr @_ZTVN3JPH32TrackedVehicleControllerSettingsE, i32 0, i32 0, i32 2), ptr %9, align 8, !tbaa !9
  %10 = getelementptr inbounds %"class.JPH::TrackedVehicleControllerSettings", ptr %9, i32 0, i32 1
  invoke void @_ZN3JPH21VehicleEngineSettingsC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %10)
          to label %11 unwind label %56

11:                                               ; preds = %1
  %12 = getelementptr inbounds %"class.JPH::TrackedVehicleControllerSettings", ptr %9, i32 0, i32 2
  invoke void @_ZN3JPH27VehicleTransmissionSettingsC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %12)
          to label %13 unwind label %60

13:                                               ; preds = %11
  %14 = getelementptr inbounds %"class.JPH::TrackedVehicleControllerSettings", ptr %9, i32 0, i32 3
  %15 = getelementptr inbounds [2 x %"class.JPH::VehicleTrackSettings"], ptr %14, i32 0, i32 0
  %16 = getelementptr inbounds %"class.JPH::VehicleTrackSettings", ptr %15, i64 2
  br label %17

17:                                               ; preds = %17, %13
  %18 = phi ptr [ %15, %13 ], [ %19, %17 ]
  call void @_ZN3JPH20VehicleTrackSettingsC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #5
  %19 = getelementptr inbounds %"class.JPH::VehicleTrackSettings", ptr %18, i64 1
  %20 = icmp eq ptr %19, %16
  br i1 %20, label %21, label %17

21:                                               ; preds = %17
  %22 = getelementptr inbounds %"class.JPH::TrackedVehicleControllerSettings", ptr %9, i32 0, i32 1
  %23 = getelementptr inbounds %"class.JPH::VehicleEngineSettings", ptr %22, i32 0, i32 1
  store float 5.000000e+02, ptr %23, align 4, !tbaa !11
  %24 = getelementptr inbounds %"class.JPH::TrackedVehicleControllerSettings", ptr %9, i32 0, i32 1
  %25 = getelementptr inbounds %"class.JPH::VehicleEngineSettings", ptr %24, i32 0, i32 2
  store float 4.000000e+03, ptr %25, align 8, !tbaa !27
  %26 = getelementptr inbounds %"class.JPH::TrackedVehicleControllerSettings", ptr %9, i32 0, i32 1
  %27 = getelementptr inbounds %"class.JPH::VehicleEngineSettings", ptr %26, i32 0, i32 0
  store float 5.000000e+02, ptr %27, align 8, !tbaa !28
  %28 = getelementptr inbounds %"class.JPH::TrackedVehicleControllerSettings", ptr %9, i32 0, i32 2
  %29 = getelementptr inbounds %"class.JPH::VehicleTransmissionSettings", ptr %28, i32 0, i32 7
  store float 1.000000e+03, ptr %29, align 8, !tbaa !29
  %30 = getelementptr inbounds %"class.JPH::TrackedVehicleControllerSettings", ptr %9, i32 0, i32 2
  %31 = getelementptr inbounds %"class.JPH::VehicleTransmissionSettings", ptr %30, i32 0, i32 6
  store float 3.500000e+03, ptr %31, align 4, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #5
  store float 4.000000e+00, ptr %6, align 4, !tbaa !31
  %32 = getelementptr inbounds float, ptr %6, i64 1
  store float 3.000000e+00, ptr %32, align 4, !tbaa !31
  %33 = getelementptr inbounds float, ptr %6, i64 2
  store float 2.000000e+00, ptr %33, align 4, !tbaa !31
  %34 = getelementptr inbounds float, ptr %6, i64 3
  store float 1.000000e+00, ptr %34, align 4, !tbaa !31
  %35 = getelementptr inbounds %"class.std::initializer_list", ptr %5, i32 0, i32 0
  store ptr %6, ptr %35, align 8, !tbaa !32
  %36 = getelementptr inbounds %"class.std::initializer_list", ptr %5, i32 0, i32 1
  store i64 4, ptr %36, align 8, !tbaa !34
  %37 = getelementptr inbounds %"class.JPH::TrackedVehicleControllerSettings", ptr %9, i32 0, i32 2
  %38 = getelementptr inbounds %"class.JPH::VehicleTransmissionSettings", ptr %37, i32 0, i32 1
  %39 = getelementptr inbounds { ptr, i64 }, ptr %5, i32 0, i32 0
  %40 = load ptr, ptr %39, align 8
  %41 = getelementptr inbounds { ptr, i64 }, ptr %5, i32 0, i32 1
  %42 = load i64, ptr %41, align 8
  %43 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEaSESt16initializer_listIfE(ptr noundef nonnull align 8 dereferenceable(24) %38, ptr %40, i64 %42)
          to label %44 unwind label %64

44:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store float -4.000000e+00, ptr %8, align 4, !tbaa !31
  %45 = getelementptr inbounds float, ptr %8, i64 1
  store float -3.000000e+00, ptr %45, align 4, !tbaa !31
  %46 = getelementptr inbounds %"class.std::initializer_list", ptr %7, i32 0, i32 0
  store ptr %8, ptr %46, align 8, !tbaa !32
  %47 = getelementptr inbounds %"class.std::initializer_list", ptr %7, i32 0, i32 1
  store i64 2, ptr %47, align 8, !tbaa !34
  %48 = getelementptr inbounds %"class.JPH::TrackedVehicleControllerSettings", ptr %9, i32 0, i32 2
  %49 = getelementptr inbounds %"class.JPH::VehicleTransmissionSettings", ptr %48, i32 0, i32 2
  %50 = getelementptr inbounds { ptr, i64 }, ptr %7, i32 0, i32 0
  %51 = load ptr, ptr %50, align 8
  %52 = getelementptr inbounds { ptr, i64 }, ptr %7, i32 0, i32 1
  %53 = load i64, ptr %52, align 8
  %54 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEaSESt16initializer_listIfE(ptr noundef nonnull align 8 dereferenceable(24) %49, ptr %51, i64 %53)
          to label %55 unwind label %68

55:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  ret void

56:                                               ; preds = %1
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %3, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %4, align 4
  br label %81

60:                                               ; preds = %11
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %3, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %4, align 4
  br label %80

64:                                               ; preds = %21
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %3, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  br label %72

68:                                               ; preds = %44
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %3, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %72

72:                                               ; preds = %68, %64
  %73 = getelementptr inbounds [2 x %"class.JPH::VehicleTrackSettings"], ptr %14, i32 0, i32 0
  %74 = getelementptr inbounds %"class.JPH::VehicleTrackSettings", ptr %73, i64 2
  br label %75

75:                                               ; preds = %75, %72
  %76 = phi ptr [ %74, %72 ], [ %77, %75 ]
  %77 = getelementptr inbounds %"class.JPH::VehicleTrackSettings", ptr %76, i64 -1
  call void @_ZN3JPH20VehicleTrackSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %77) #5
  %78 = icmp eq ptr %77, %73
  br i1 %78, label %79, label %75

79:                                               ; preds = %75
  call void @_ZN3JPH27VehicleTransmissionSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %12) #5
  br label %80

80:                                               ; preds = %79, %60
  call void @_ZN3JPH21VehicleEngineSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #5
  br label %81

81:                                               ; preds = %80, %56
  call void @_ZN3JPH25VehicleControllerSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %9) #5
  br label %82

82:                                               ; preds = %81
  %83 = load ptr, ptr %3, align 8
  %84 = load i32, ptr %4, align 4
  %85 = insertvalue { ptr, i32 } poison, ptr %83, 0
  %86 = insertvalue { ptr, i32 } %85, i32 %84, 1
  resume { ptr, i32 } %86
}

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

declare void @_ZN3JPH21VehicleEngineSettingsC1Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3

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

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { "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 = { 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, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !20, i64 20}
!12 = !{!"_ZTSN3JPH32TrackedVehicleControllerSettingsE", !13, i64 0, !19, i64 16, !24, i64 64, !7, i64 144}
!13 = !{!"_ZTSN3JPH25VehicleControllerSettingsE", !14, i64 0, !15, i64 8}
!14 = !{!"_ZTSN3JPH18SerializableObjectE"}
!15 = !{!"_ZTSN3JPH9RefTargetINS_25VehicleControllerSettingsEEE", !16, i64 0}
!16 = !{!"_ZTSSt6atomicIjE", !17, i64 0}
!17 = !{!"_ZTSSt13__atomic_baseIjE", !18, i64 0}
!18 = !{!"int", !7, i64 0}
!19 = !{!"_ZTSN3JPH21VehicleEngineSettingsE", !20, i64 0, !20, i64 4, !20, i64 8, !21, i64 16, !20, i64 40, !20, i64 44}
!20 = !{!"float", !7, i64 0}
!21 = !{!"_ZTSN3JPH11LinearCurveE", !22, i64 0}
!22 = !{!"_ZTSN3JPH5ArrayINS_11LinearCurve5PointENS_12STLAllocatorIS2_EEEE", !23, i64 0, !23, i64 8, !6, i64 16}
!23 = !{!"long", !7, i64 0}
!24 = !{!"_ZTSN3JPH27VehicleTransmissionSettingsE", !25, i64 0, !26, i64 8, !26, i64 32, !20, i64 56, !20, i64 60, !20, i64 64, !20, i64 68, !20, i64 72, !20, i64 76}
!25 = !{!"_ZTSN3JPH17ETransmissionModeE", !7, i64 0}
!26 = !{!"_ZTSN3JPH5ArrayIfNS_12STLAllocatorIfEEEE", !23, i64 0, !23, i64 8, !6, i64 16}
!27 = !{!12, !20, i64 24}
!28 = !{!12, !20, i64 16}
!29 = !{!12, !20, i64 136}
!30 = !{!12, !20, i64 132}
!31 = !{!20, !20, i64 0}
!32 = !{!33, !6, i64 0}
!33 = !{!"_ZTSSt16initializer_listIfE", !6, i64 0, !23, i64 8}
!34 = !{!33, !23, i64 8}


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

@_ZTVN3JPH32TrackedVehicleControllerSettingsE = external dso_local unnamed_addr constant { [9 x ptr] }, align 8

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH32TrackedVehicleControllerSettingsC2Ev(ptr noundef nonnull align 8 dereferenceable(240) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca [4 x float], align 16
  %3 = alloca [2 x float], align 8
  tail call void @_ZN3JPH25VehicleControllerSettingsC2Ev(ptr noundef nonnull align 8 dereferenceable(12) %0) #5
  store ptr getelementptr inbounds inrange(-16, 56) (i8, ptr @_ZTVN3JPH32TrackedVehicleControllerSettingsE, i64 16), ptr %0, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 16
  invoke void @_ZN3JPH21VehicleEngineSettingsC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %4)
          to label %5 unwind label %15

5:                                                ; preds = %1
  %6 = getelementptr inbounds i8, ptr %0, i64 64
  invoke void @_ZN3JPH27VehicleTransmissionSettingsC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %6)
          to label %.preheader.preheader unwind label %17

.preheader.preheader:                             ; preds = %5
  %.ptr = getelementptr inbounds i8, ptr %0, i64 144
  tail call void @_ZN3JPH20VehicleTrackSettingsC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %.ptr) #5
  %.ptr.1 = getelementptr inbounds i8, ptr %0, i64 192
  tail call void @_ZN3JPH20VehicleTrackSettingsC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %.ptr.1) #5
  %7 = getelementptr inbounds i8, ptr %0, i64 24
  store float 4.000000e+03, ptr %7, align 8, !tbaa !8
  store <2 x float> <float 5.000000e+02, float 5.000000e+02>, ptr %4, align 8, !tbaa !26
  %8 = getelementptr inbounds i8, ptr %0, i64 132
  store <2 x float> <float 3.500000e+03, float 1.000000e+03>, ptr %8, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  store <4 x float> <float 4.000000e+00, float 3.000000e+00, float 2.000000e+00, float 1.000000e+00>, ptr %2, align 16, !tbaa !26
  %9 = getelementptr inbounds i8, ptr %0, i64 72
  %10 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEaSESt16initializer_listIfE(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr nonnull %2, i64 4)
          to label %11 unwind label %19

11:                                               ; preds = %.preheader.preheader
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  store <2 x float> <float -4.000000e+00, float -3.000000e+00>, ptr %3, align 8, !tbaa !26
  %12 = getelementptr inbounds i8, ptr %0, i64 96
  %13 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH5ArrayIfNS_12STLAllocatorIfEEEaSESt16initializer_listIfE(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr nonnull %3, i64 2)
          to label %14 unwind label %21

14:                                               ; preds = %11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  ret void

15:                                               ; preds = %1
  %16 = landingpad { ptr, i32 }
          cleanup
  br label %25

17:                                               ; preds = %5
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %24

19:                                               ; preds = %.preheader.preheader
  %20 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  br label %23

21:                                               ; preds = %11
  %22 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %23

23:                                               ; preds = %21, %19
  %.pn = phi { ptr, i32 } [ %22, %21 ], [ %20, %19 ]
  call void @_ZN3JPH20VehicleTrackSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %.ptr.1) #5
  call void @_ZN3JPH20VehicleTrackSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %.ptr) #5
  call void @_ZN3JPH27VehicleTransmissionSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %6) #5
  br label %24

24:                                               ; preds = %23, %17
  %.pn.pn = phi { ptr, i32 } [ %.pn, %23 ], [ %18, %17 ]
  call void @_ZN3JPH21VehicleEngineSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  br label %25

25:                                               ; preds = %24, %15
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %24 ], [ %16, %15 ]
  call void @_ZN3JPH25VehicleControllerSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(12) %0) #5
  resume { ptr, i32 } %.pn.pn.pn
}

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

declare void @_ZN3JPH21VehicleEngineSettingsC1Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3

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

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { "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 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !18, i64 24}
!9 = !{!"_ZTSN3JPH32TrackedVehicleControllerSettingsE", !10, i64 0, !17, i64 16, !23, i64 64, !16, i64 144}
!10 = !{!"_ZTSN3JPH25VehicleControllerSettingsE", !11, i64 0, !12, i64 8}
!11 = !{!"_ZTSN3JPH18SerializableObjectE"}
!12 = !{!"_ZTSN3JPH9RefTargetINS_25VehicleControllerSettingsEEE", !13, i64 0}
!13 = !{!"_ZTSSt6atomicIjE", !14, i64 0}
!14 = !{!"_ZTSSt13__atomic_baseIjE", !15, i64 0}
!15 = !{!"int", !16, i64 0}
!16 = !{!"omnipotent char", !7, i64 0}
!17 = !{!"_ZTSN3JPH21VehicleEngineSettingsE", !18, i64 0, !18, i64 4, !18, i64 8, !19, i64 16, !18, i64 40, !18, i64 44}
!18 = !{!"float", !16, i64 0}
!19 = !{!"_ZTSN3JPH11LinearCurveE", !20, i64 0}
!20 = !{!"_ZTSN3JPH5ArrayINS_11LinearCurve5PointENS_12STLAllocatorIS2_EEEE", !21, i64 0, !21, i64 8, !22, i64 16}
!21 = !{!"long", !16, i64 0}
!22 = !{!"any pointer", !16, i64 0}
!23 = !{!"_ZTSN3JPH27VehicleTransmissionSettingsE", !24, i64 0, !25, i64 8, !25, i64 32, !18, i64 56, !18, i64 60, !18, i64 64, !18, i64 68, !18, i64 72, !18, i64 76}
!24 = !{!"_ZTSN3JPH17ETransmissionModeE", !16, i64 0}
!25 = !{!"_ZTSN3JPH5ArrayIfNS_12STLAllocatorIfEEEE", !21, i64 0, !21, i64 8, !22, i64 16}
!26 = !{!18, !18, i64 0}


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