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

%"struct.JPH::AssertLastParam" = type { i8 }
%"class.JPH::TrackedVehicleController" = type { %"class.JPH::VehicleController", float, float, float, float, %"class.JPH::VehicleEngine", %"class.JPH::VehicleTransmission", [2 x %"class.JPH::VehicleTrack"] }
%"class.JPH::VehicleController" = type { ptr, ptr }
%"class.JPH::VehicleEngine" = type <{ %"class.JPH::VehicleEngineSettings", float, [4 x i8] }>
%"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::VehicleTransmission" = type <{ %"class.JPH::VehicleTransmissionSettings", i32, float, float, float, float, [4 x i8] }>
%"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::VehicleTrack" = type <{ %"class.JPH::VehicleTrackSettings", float, [4 x i8] }>
%"class.JPH::VehicleTrackSettings" = type { i32, %"class.JPH::Array.5", float, float, float, float }
%"class.JPH::Array.5" = type { i64, i64, ptr }
%"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 }

@_ZTVN3JPH24TrackedVehicleControllerE = external dso_local unnamed_addr constant { [11 x ptr] }, align 8
@.str.2 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [102 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [127 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [28 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: mustprogress uwtable
define dso_local void @_ZN3JPH24TrackedVehicleControllerC2ERKNS_32TrackedVehicleControllerSettingsERNS_17VehicleConstraintE(ptr noundef nonnull align 8 dereferenceable(304) %0, ptr noundef nonnull align 8 dereferenceable(240) %1, ptr noundef nonnull align 16 dereferenceable(408) %2) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"struct.JPH::AssertLastParam", align 1
  %10 = alloca %"struct.JPH::AssertLastParam", align 1
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca float, align 4
  %15 = alloca %"struct.JPH::AssertLastParam", align 1
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca float, align 4
  %20 = alloca %"struct.JPH::AssertLastParam", align 1
  %21 = alloca %"struct.JPH::AssertLastParam", align 1
  %22 = alloca %"struct.JPH::AssertLastParam", align 1
  %23 = alloca %"struct.JPH::AssertLastParam", align 1
  %24 = alloca %"struct.JPH::AssertLastParam", align 1
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca %"struct.JPH::AssertLastParam", align 1
  %28 = alloca %"struct.JPH::AssertLastParam", align 1
  %29 = alloca %"struct.JPH::AssertLastParam", align 1
  %30 = alloca %"struct.JPH::AssertLastParam", align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %31 = load ptr, ptr %4, align 8
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN3JPH17VehicleControllerC2ERNS_17VehicleConstraintE(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 16 dereferenceable(408) %32)
  store ptr getelementptr inbounds inrange(-16, 72) ({ [11 x ptr] }, ptr @_ZTVN3JPH24TrackedVehicleControllerE, i32 0, i32 0, i32 2), ptr %31, align 8, !tbaa !9
  %33 = getelementptr inbounds %"class.JPH::TrackedVehicleController", ptr %31, i32 0, i32 1
  store float 0.000000e+00, ptr %33, align 8, !tbaa !11
  %34 = getelementptr inbounds %"class.JPH::TrackedVehicleController", ptr %31, i32 0, i32 2
  store float 1.000000e+00, ptr %34, align 4, !tbaa !25
  %35 = getelementptr inbounds %"class.JPH::TrackedVehicleController", ptr %31, i32 0, i32 3
  store float 1.000000e+00, ptr %35, align 8, !tbaa !26
  %36 = getelementptr inbounds %"class.JPH::TrackedVehicleController", ptr %31, i32 0, i32 4
  store float 0.000000e+00, ptr %36, align 4, !tbaa !27
  %37 = getelementptr inbounds %"class.JPH::TrackedVehicleController", ptr %31, i32 0, i32 5
  invoke void @_ZN3JPH13VehicleEngineC2Ev(ptr noundef nonnull align 8 dereferenceable(52) %37)
          to label %38 unwind label %64

38:                                               ; preds = %3
  %39 = getelementptr inbounds %"class.JPH::TrackedVehicleController", ptr %31, i32 0, i32 6
  invoke void @_ZN3JPH19VehicleTransmissionC2Ev(ptr noundef nonnull align 8 dereferenceable(100) %39)
          to label %40 unwind label %68

40:                                               ; preds = %38
  %41 = getelementptr inbounds %"class.JPH::TrackedVehicleController", ptr %31, i32 0, i32 7
  %42 = getelementptr inbounds [2 x %"class.JPH::VehicleTrack"], ptr %41, i32 0, i32 0
  %43 = getelementptr inbounds %"class.JPH::VehicleTrack", ptr %42, i64 2
  br label %44

44:                                               ; preds = %44, %40
  %45 = phi ptr [ %42, %40 ], [ %46, %44 ]
  call void @_ZN3JPH12VehicleTrackC2Ev(ptr noundef nonnull align 8 dereferenceable(52) %45) #5
  %46 = getelementptr inbounds %"class.JPH::VehicleTrack", ptr %45, i64 1
  %47 = icmp eq ptr %46, %43
  br i1 %47, label %48, label %44

48:                                               ; preds = %44
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %"class.JPH::TrackedVehicleControllerSettings", ptr %49, i32 0, i32 1
  %51 = getelementptr inbounds %"class.JPH::TrackedVehicleController", ptr %31, i32 0, i32 5
  %52 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN3JPH21VehicleEngineSettingsaSERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %51, ptr noundef nonnull align 8 dereferenceable(48) %50)
          to label %53 unwind label %72

53:                                               ; preds = %48
  br label %54

54:                                               ; preds = %53
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %"class.JPH::TrackedVehicleControllerSettings", ptr %55, i32 0, i32 1
  %57 = getelementptr inbounds %"class.JPH::VehicleEngineSettings", ptr %56, i32 0, i32 1
  %58 = load float, ptr %57, align 4, !tbaa !28
  %59 = fcmp oge float %58, 0.000000e+00
  br i1 %59, label %76, label %60

60:                                               ; preds = %54
  %61 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 129)
          to label %62 unwind label %72

62:                                               ; preds = %60
  br i1 %61, label %63, label %76

63:                                               ; preds = %62
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #5, !srcloc !35
  br label %76

64:                                               ; preds = %3
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %7, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %8, align 4
  br label %347

68:                                               ; preds = %38
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %7, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %8, align 4
  br label %346

72:                                               ; preds = %255, %238, %215, %202, %100, %95, %89, %60, %48
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %7, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %8, align 4
  br label %338

76:                                               ; preds = %63, %62, %54
  br label %77

77:                                               ; preds = %76
  br label %78

78:                                               ; preds = %77
  br label %79

79:                                               ; preds = %78
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds %"class.JPH::TrackedVehicleControllerSettings", ptr %80, i32 0, i32 1
  %82 = getelementptr inbounds %"class.JPH::VehicleEngineSettings", ptr %81, i32 0, i32 1
  %83 = load float, ptr %82, align 4, !tbaa !28
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds %"class.JPH::TrackedVehicleControllerSettings", ptr %84, i32 0, i32 1
  %86 = getelementptr inbounds %"class.JPH::VehicleEngineSettings", ptr %85, i32 0, i32 2
  %87 = load float, ptr %86, align 8, !tbaa !36
  %88 = fcmp ole float %83, %87
  br i1 %88, label %93, label %89

89:                                               ; preds = %79
  %90 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.4, ptr noundef @.str.3, i32 noundef 130)
          to label %91 unwind label %72

91:                                               ; preds = %89
  br i1 %90, label %92, label %93

92:                                               ; preds = %91
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #5, !srcloc !37
  br label %93

93:                                               ; preds = %92, %91, %79
  br label %94

94:                                               ; preds = %93
  br label %95

95:                                               ; preds = %94
  %96 = getelementptr inbounds %"class.JPH::TrackedVehicleController", ptr %31, i32 0, i32 5
  %97 = getelementptr inbounds %"class.JPH::TrackedVehicleController", ptr %31, i32 0, i32 5
  %98 = getelementptr inbounds %"class.JPH::VehicleEngineSettings", ptr %97, i32 0, i32 1
  %99 = load float, ptr %98, align 4, !tbaa !38
  invoke void @_ZN3JPH13VehicleEngine13SetCurrentRPMEf(ptr noundef nonnull align 8 dereferenceable(52) %96, float noundef %99)
          to label %100 unwind label %72

100:                                              ; preds = %95
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds %"class.JPH::TrackedVehicleControllerSettings", ptr %101, i32 0, i32 2
  %103 = getelementptr inbounds %"class.JPH::TrackedVehicleController", ptr %31, i32 0, i32 6
  %104 = invoke noundef nonnull align 8 dereferenceable(80) ptr @_ZN3JPH27VehicleTransmissionSettingsaSERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %103, ptr noundef nonnull align 8 dereferenceable(80) %102)
          to label %105 unwind label %72

105:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = getelementptr inbounds %"class.JPH::TrackedVehicleControllerSettings", ptr %106, i32 0, i32 2
  %108 = getelementptr inbounds %"class.JPH::VehicleTransmissionSettings", ptr %107, i32 0, i32 1
  store ptr %108, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %109 = load ptr, ptr %11, align 8, !tbaa !5
  %110 = invoke noundef ptr @_ZNK3JPH5ArrayIfNS_12STLAllocatorIfEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %109)
          to label %111 unwind label %120

111:                                              ; preds = %105
  store ptr %110, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %112 = load ptr, ptr %11, align 8, !tbaa !5
  %113 = invoke noundef ptr @_ZNK3JPH5ArrayIfNS_12STLAllocatorIfEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %112)
          to label %114 unwind label %124

114:                                              ; preds = %111
  store ptr %113, ptr %13, align 8, !tbaa !5
  br label %115

115:                                              ; preds = %145, %114
  %116 = load ptr, ptr %12, align 8, !tbaa !5
  %117 = load ptr, ptr %13, align 8, !tbaa !5
  %118 = icmp ne ptr %116, %117
  br i1 %118, label %128, label %119

119:                                              ; preds = %115
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %150

120:                                              ; preds = %105
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %7, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %8, align 4
  br label %149

124:                                              ; preds = %111
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %7, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %8, align 4
  br label %148

128:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %129 = load ptr, ptr %12, align 8, !tbaa !5
  %130 = load float, ptr %129, align 4, !tbaa !39
  store float %130, ptr %14, align 4, !tbaa !39
  br label %131

131:                                              ; preds = %128
  %132 = load float, ptr %14, align 4, !tbaa !39
  %133 = fcmp ogt float %132, 0.000000e+00
  br i1 %133, label %142, label %134

134:                                              ; preds = %131
  %135 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.5, ptr noundef @.str.3, i32 noundef 137)
          to label %136 unwind label %138

136:                                              ; preds = %134
  br i1 %135, label %137, label %142

137:                                              ; preds = %136
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #5, !srcloc !40
  br label %142

138:                                              ; preds = %134
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %7, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %148

142:                                              ; preds = %137, %136, %131
  br label %143

143:                                              ; preds = %142
  br label %144

144:                                              ; preds = %143
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %145

145:                                              ; preds = %144
  %146 = load ptr, ptr %12, align 8, !tbaa !5
  %147 = getelementptr inbounds float, ptr %146, i32 1
  store ptr %147, ptr %12, align 8, !tbaa !5
  br label %115

148:                                              ; preds = %138, %124
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %149

149:                                              ; preds = %148, %120
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %338

150:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = getelementptr inbounds %"class.JPH::TrackedVehicleControllerSettings", ptr %151, i32 0, i32 2
  %153 = getelementptr inbounds %"class.JPH::VehicleTransmissionSettings", ptr %152, i32 0, i32 2
  store ptr %153, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %154 = load ptr, ptr %16, align 8, !tbaa !5
  %155 = invoke noundef ptr @_ZNK3JPH5ArrayIfNS_12STLAllocatorIfEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %154)
          to label %156 unwind label %165

156:                                              ; preds = %150
  store ptr %155, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %157 = load ptr, ptr %16, align 8, !tbaa !5
  %158 = invoke noundef ptr @_ZNK3JPH5ArrayIfNS_12STLAllocatorIfEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %157)
          to label %159 unwind label %169

159:                                              ; preds = %156
  store ptr %158, ptr %18, align 8, !tbaa !5
  br label %160

160:                                              ; preds = %190, %159
  %161 = load ptr, ptr %17, align 8, !tbaa !5
  %162 = load ptr, ptr %18, align 8, !tbaa !5
  %163 = icmp ne ptr %161, %162
  br i1 %163, label %173, label %164

164:                                              ; preds = %160
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %195

165:                                              ; preds = %150
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %7, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %8, align 4
  br label %194

169:                                              ; preds = %156
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %7, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %8, align 4
  br label %193

173:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %174 = load ptr, ptr %17, align 8, !tbaa !5
  %175 = load float, ptr %174, align 4, !tbaa !39
  store float %175, ptr %19, align 4, !tbaa !39
  br label %176

176:                                              ; preds = %173
  %177 = load float, ptr %19, align 4, !tbaa !39
  %178 = fcmp olt float %177, 0.000000e+00
  br i1 %178, label %187, label %179

179:                                              ; preds = %176
  %180 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.6, ptr noundef @.str.3, i32 noundef 139)
          to label %181 unwind label %183

181:                                              ; preds = %179
  br i1 %180, label %182, label %187

182:                                              ; preds = %181
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #5, !srcloc !41
  br label %187

183:                                              ; preds = %179
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %7, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %193

187:                                              ; preds = %182, %181, %176
  br label %188

188:                                              ; preds = %187
  br label %189

189:                                              ; preds = %188
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %190

190:                                              ; preds = %189
  %191 = load ptr, ptr %17, align 8, !tbaa !5
  %192 = getelementptr inbounds float, ptr %191, i32 1
  store ptr %192, ptr %17, align 8, !tbaa !5
  br label %160

193:                                              ; preds = %183, %169
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %194

194:                                              ; preds = %193, %165
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %338

195:                                              ; preds = %164
  br label %196

196:                                              ; preds = %195
  %197 = load ptr, ptr %5, align 8, !tbaa !5
  %198 = getelementptr inbounds %"class.JPH::TrackedVehicleControllerSettings", ptr %197, i32 0, i32 2
  %199 = getelementptr inbounds %"class.JPH::VehicleTransmissionSettings", ptr %198, i32 0, i32 3
  %200 = load float, ptr %199, align 8, !tbaa !42
  %201 = fcmp oge float %200, 0.000000e+00
  br i1 %201, label %206, label %202

202:                                              ; preds = %196
  %203 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.7, ptr noundef @.str.3, i32 noundef 141)
          to label %204 unwind label %72

204:                                              ; preds = %202
  br i1 %203, label %205, label %206

205:                                              ; preds = %204
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #5, !srcloc !43
  br label %206

206:                                              ; preds = %205, %204, %196
  br label %207

207:                                              ; preds = %206
  br label %208

208:                                              ; preds = %207
  br label %209

209:                                              ; preds = %208
  %210 = load ptr, ptr %5, align 8, !tbaa !5
  %211 = getelementptr inbounds %"class.JPH::TrackedVehicleControllerSettings", ptr %210, i32 0, i32 2
  %212 = getelementptr inbounds %"class.JPH::VehicleTransmissionSettings", ptr %211, i32 0, i32 7
  %213 = load float, ptr %212, align 8, !tbaa !44
  %214 = fcmp ogt float %213, 0.000000e+00
  br i1 %214, label %219, label %215

215:                                              ; preds = %209
  %216 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.8, ptr noundef @.str.3, i32 noundef 142)
          to label %217 unwind label %72

217:                                              ; preds = %215
  br i1 %216, label %218, label %219

218:                                              ; preds = %217
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #5, !srcloc !45
  br label %219

219:                                              ; preds = %218, %217, %209
  br label %220

220:                                              ; preds = %219
  br label %221

221:                                              ; preds = %220
  br label %222

222:                                              ; preds = %221
  %223 = load ptr, ptr %5, align 8, !tbaa !5
  %224 = getelementptr inbounds %"class.JPH::TrackedVehicleControllerSettings", ptr %223, i32 0, i32 2
  %225 = getelementptr inbounds %"class.JPH::VehicleTransmissionSettings", ptr %224, i32 0, i32 0
  %226 = load i8, ptr %225, align 8, !tbaa !46
  %227 = icmp ne i8 %226, 0
  br i1 %227, label %242, label %228

228:                                              ; preds = %222
  %229 = load ptr, ptr %5, align 8, !tbaa !5
  %230 = getelementptr inbounds %"class.JPH::TrackedVehicleControllerSettings", ptr %229, i32 0, i32 2
  %231 = getelementptr inbounds %"class.JPH::VehicleTransmissionSettings", ptr %230, i32 0, i32 6
  %232 = load float, ptr %231, align 4, !tbaa !47
  %233 = load ptr, ptr %5, align 8, !tbaa !5
  %234 = getelementptr inbounds %"class.JPH::TrackedVehicleControllerSettings", ptr %233, i32 0, i32 1
  %235 = getelementptr inbounds %"class.JPH::VehicleEngineSettings", ptr %234, i32 0, i32 2
  %236 = load float, ptr %235, align 8, !tbaa !36
  %237 = fcmp olt float %232, %236
  br i1 %237, label %242, label %238

238:                                              ; preds = %228
  %239 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.9, ptr noundef @.str.3, i32 noundef 143)
          to label %240 unwind label %72

240:                                              ; preds = %238
  br i1 %239, label %241, label %242

241:                                              ; preds = %240
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #5, !srcloc !48
  br label %242

242:                                              ; preds = %241, %240, %228, %222
  br label %243

243:                                              ; preds = %242
  br label %244

244:                                              ; preds = %243
  br label %245

245:                                              ; preds = %244
  %246 = load ptr, ptr %5, align 8, !tbaa !5
  %247 = getelementptr inbounds %"class.JPH::TrackedVehicleControllerSettings", ptr %246, i32 0, i32 2
  %248 = getelementptr inbounds %"class.JPH::VehicleTransmissionSettings", ptr %247, i32 0, i32 6
  %249 = load float, ptr %248, align 4, !tbaa !47
  %250 = load ptr, ptr %5, align 8, !tbaa !5
  %251 = getelementptr inbounds %"class.JPH::TrackedVehicleControllerSettings", ptr %250, i32 0, i32 2
  %252 = getelementptr inbounds %"class.JPH::VehicleTransmissionSettings", ptr %251, i32 0, i32 7
  %253 = load float, ptr %252, align 8, !tbaa !44
  %254 = fcmp ogt float %249, %253
  br i1 %254, label %259, label %255

255:                                              ; preds = %245
  %256 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.10, ptr noundef @.str.3, i32 noundef 144)
          to label %257 unwind label %72

257:                                              ; preds = %255
  br i1 %256, label %258, label %259

258:                                              ; preds = %257
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #5, !srcloc !49
  br label %259

259:                                              ; preds = %258, %257, %245
  br label %260

260:                                              ; preds = %259
  br label %261

261:                                              ; preds = %260
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  store i32 0, ptr %25, align 4, !tbaa !50
  br label %262

262:                                              ; preds = %334, %261
  %263 = load i32, ptr %25, align 4, !tbaa !50
  %264 = zext i32 %263 to i64
  %265 = getelementptr inbounds %"class.JPH::TrackedVehicleController", ptr %31, i32 0, i32 7
  %266 = call noundef i64 @_ZSt4sizeIN3JPH12VehicleTrackELm2EEmRAT0__KT_(ptr noundef nonnull align 8 dereferenceable(112) %265) #5
  %267 = icmp ult i64 %264, %266
  br i1 %267, label %269, label %268

268:                                              ; preds = %262
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %337

269:                                              ; preds = %262
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  %270 = load ptr, ptr %5, align 8, !tbaa !5
  %271 = getelementptr inbounds %"class.JPH::TrackedVehicleControllerSettings", ptr %270, i32 0, i32 3
  %272 = load i32, ptr %25, align 4, !tbaa !50
  %273 = zext i32 %272 to i64
  %274 = getelementptr inbounds [2 x %"class.JPH::VehicleTrackSettings"], ptr %271, i64 0, i64 %273
  store ptr %274, ptr %26, align 8, !tbaa !5
  %275 = load ptr, ptr %26, align 8, !tbaa !5
  %276 = getelementptr inbounds %"class.JPH::TrackedVehicleController", ptr %31, i32 0, i32 7
  %277 = load i32, ptr %25, align 4, !tbaa !50
  %278 = zext i32 %277 to i64
  %279 = getelementptr inbounds [2 x %"class.JPH::VehicleTrack"], ptr %276, i64 0, i64 %278
  %280 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN3JPH20VehicleTrackSettingsaSERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %279, ptr noundef nonnull align 8 dereferenceable(48) %275)
          to label %281 unwind label %291

281:                                              ; preds = %269
  br label %282

282:                                              ; preds = %281
  %283 = load ptr, ptr %26, align 8, !tbaa !5
  %284 = getelementptr inbounds %"class.JPH::VehicleTrackSettings", ptr %283, i32 0, i32 2
  %285 = load float, ptr %284, align 8, !tbaa !51
  %286 = fcmp oge float %285, 0.000000e+00
  br i1 %286, label %295, label %287

287:                                              ; preds = %282
  %288 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.11, ptr noundef @.str.3, i32 noundef 151)
          to label %289 unwind label %291

289:                                              ; preds = %287
  br i1 %288, label %290, label %295

290:                                              ; preds = %289
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #5, !srcloc !54
  br label %295

291:                                              ; preds = %327, %315, %303, %287, %269
  %292 = landingpad { ptr, i32 }
          cleanup
  %293 = extractvalue { ptr, i32 } %292, 0
  store ptr %293, ptr %7, align 8
  %294 = extractvalue { ptr, i32 } %292, 1
  store i32 %294, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %338

295:                                              ; preds = %290, %289, %282
  br label %296

296:                                              ; preds = %295
  br label %297

297:                                              ; preds = %296
  br label %298

298:                                              ; preds = %297
  %299 = load ptr, ptr %26, align 8, !tbaa !5
  %300 = getelementptr inbounds %"class.JPH::VehicleTrackSettings", ptr %299, i32 0, i32 3
  %301 = load float, ptr %300, align 4, !tbaa !55
  %302 = fcmp oge float %301, 0.000000e+00
  br i1 %302, label %307, label %303

303:                                              ; preds = %298
  %304 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.12, ptr noundef @.str.3, i32 noundef 152)
          to label %305 unwind label %291

305:                                              ; preds = %303
  br i1 %304, label %306, label %307

306:                                              ; preds = %305
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #5, !srcloc !56
  br label %307

307:                                              ; preds = %306, %305, %298
  br label %308

308:                                              ; preds = %307
  br label %309

309:                                              ; preds = %308
  br label %310

310:                                              ; preds = %309
  %311 = load ptr, ptr %26, align 8, !tbaa !5
  %312 = getelementptr inbounds %"class.JPH::VehicleTrackSettings", ptr %311, i32 0, i32 4
  %313 = load float, ptr %312, align 8, !tbaa !57
  %314 = fcmp oge float %313, 0.000000e+00
  br i1 %314, label %319, label %315

315:                                              ; preds = %310
  %316 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.13, ptr noundef @.str.3, i32 noundef 153)
          to label %317 unwind label %291

317:                                              ; preds = %315
  br i1 %316, label %318, label %319

318:                                              ; preds = %317
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #5, !srcloc !58
  br label %319

319:                                              ; preds = %318, %317, %310
  br label %320

320:                                              ; preds = %319
  br label %321

321:                                              ; preds = %320
  br label %322

322:                                              ; preds = %321
  %323 = load ptr, ptr %26, align 8, !tbaa !5
  %324 = getelementptr inbounds %"class.JPH::VehicleTrackSettings", ptr %323, i32 0, i32 5
  %325 = load float, ptr %324, align 4, !tbaa !59
  %326 = fcmp ogt float %325, 0.000000e+00
  br i1 %326, label %331, label %327

327:                                              ; preds = %322
  %328 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.14, ptr noundef @.str.3, i32 noundef 154)
          to label %329 unwind label %291

329:                                              ; preds = %327
  br i1 %328, label %330, label %331

330:                                              ; preds = %329
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #5, !srcloc !60
  br label %331

331:                                              ; preds = %330, %329, %322
  br label %332

332:                                              ; preds = %331
  br label %333

333:                                              ; preds = %332
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  br label %334

334:                                              ; preds = %333
  %335 = load i32, ptr %25, align 4, !tbaa !50
  %336 = add i32 %335, 1
  store i32 %336, ptr %25, align 4, !tbaa !50
  br label %262, !llvm.loop !61

337:                                              ; preds = %268
  ret void

338:                                              ; preds = %291, %194, %149, %72
  %339 = getelementptr inbounds [2 x %"class.JPH::VehicleTrack"], ptr %41, i32 0, i32 0
  %340 = getelementptr inbounds %"class.JPH::VehicleTrack", ptr %339, i64 2
  br label %341

341:                                              ; preds = %341, %338
  %342 = phi ptr [ %340, %338 ], [ %343, %341 ]
  %343 = getelementptr inbounds %"class.JPH::VehicleTrack", ptr %342, i64 -1
  call void @_ZN3JPH20VehicleTrackSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(52) %343) #5
  %344 = icmp eq ptr %343, %339
  br i1 %344, label %345, label %341

345:                                              ; preds = %341
  call void @_ZN3JPH27VehicleTransmissionSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(100) %39) #5
  br label %346

346:                                              ; preds = %345, %68
  call void @_ZN3JPH21VehicleEngineSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(52) %37) #5
  br label %347

347:                                              ; preds = %346, %64
  call void @_ZN3JPH17VehicleControllerD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #5
  br label %348

348:                                              ; preds = %347
  %349 = load ptr, ptr %7, align 8
  %350 = load i32, ptr %8, align 4
  %351 = insertvalue { ptr, i32 } poison, ptr %349, 0
  %352 = insertvalue { ptr, i32 } %351, i32 %350, 1
  resume { ptr, i32 } %352
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH17VehicleControllerC2ERNS_17VehicleConstraintE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(408)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH13VehicleEngineC2Ev(ptr noundef nonnull align 8 dereferenceable(52)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH19VehicleTransmissionC2Ev(ptr noundef nonnull align 8 dereferenceable(100)) unnamed_addr #3 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) #3

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH17VehicleControllerD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) 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 = { 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 = { 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 = { 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 #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, !14, i64 16}
!12 = !{!"_ZTSN3JPH24TrackedVehicleControllerE", !13, i64 0, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28, !15, i64 32, !20, i64 88, !7, i64 192}
!13 = !{!"_ZTSN3JPH17VehicleControllerE", !6, i64 8}
!14 = !{!"float", !7, i64 0}
!15 = !{!"_ZTSN3JPH13VehicleEngineE", !16, i64 0, !14, i64 48}
!16 = !{!"_ZTSN3JPH21VehicleEngineSettingsE", !14, i64 0, !14, i64 4, !14, i64 8, !17, i64 16, !14, i64 40, !14, i64 44}
!17 = !{!"_ZTSN3JPH11LinearCurveE", !18, i64 0}
!18 = !{!"_ZTSN3JPH5ArrayINS_11LinearCurve5PointENS_12STLAllocatorIS2_EEEE", !19, i64 0, !19, i64 8, !6, i64 16}
!19 = !{!"long", !7, i64 0}
!20 = !{!"_ZTSN3JPH19VehicleTransmissionE", !21, i64 0, !24, i64 80, !14, i64 84, !14, i64 88, !14, i64 92, !14, i64 96}
!21 = !{!"_ZTSN3JPH27VehicleTransmissionSettingsE", !22, i64 0, !23, i64 8, !23, i64 32, !14, i64 56, !14, i64 60, !14, i64 64, !14, i64 68, !14, i64 72, !14, i64 76}
!22 = !{!"_ZTSN3JPH17ETransmissionModeE", !7, i64 0}
!23 = !{!"_ZTSN3JPH5ArrayIfNS_12STLAllocatorIfEEEE", !19, i64 0, !19, i64 8, !6, i64 16}
!24 = !{!"int", !7, i64 0}
!25 = !{!12, !14, i64 20}
!26 = !{!12, !14, i64 24}
!27 = !{!12, !14, i64 28}
!28 = !{!29, !14, i64 20}
!29 = !{!"_ZTSN3JPH32TrackedVehicleControllerSettingsE", !30, i64 0, !16, i64 16, !21, i64 64, !7, i64 144}
!30 = !{!"_ZTSN3JPH25VehicleControllerSettingsE", !31, i64 0, !32, i64 8}
!31 = !{!"_ZTSN3JPH18SerializableObjectE"}
!32 = !{!"_ZTSN3JPH9RefTargetINS_25VehicleControllerSettingsEEE", !33, i64 0}
!33 = !{!"_ZTSSt6atomicIjE", !34, i64 0}
!34 = !{!"_ZTSSt13__atomic_baseIjE", !24, i64 0}
!35 = !{i64 2159612724}
!36 = !{!29, !14, i64 24}
!37 = !{i64 2159613146}
!38 = !{!16, !14, i64 4}
!39 = !{!14, !14, i64 0}
!40 = !{i64 2159613472}
!41 = !{i64 2159613798}
!42 = !{!29, !14, i64 120}
!43 = !{i64 2159614196}
!44 = !{!29, !14, i64 136}
!45 = !{i64 2159614596}
!46 = !{!29, !22, i64 64}
!47 = !{!29, !14, i64 132}
!48 = !{i64 2159615158}
!49 = !{i64 2159615622}
!50 = !{!24, !24, i64 0}
!51 = !{!52, !14, i64 32}
!52 = !{!"_ZTSN3JPH20VehicleTrackSettingsE", !24, i64 0, !53, i64 8, !14, i64 32, !14, i64 36, !14, i64 40, !14, i64 44}
!53 = !{!"_ZTSN3JPH5ArrayIjNS_12STLAllocatorIjEEEE", !19, i64 0, !19, i64 8, !6, i64 16}
!54 = !{i64 2159615968}
!55 = !{!52, !14, i64 36}
!56 = !{i64 2159616328}
!57 = !{!52, !14, i64 40}
!58 = !{i64 2159616688}
!59 = !{!52, !14, i64 44}
!60 = !{i64 2159617052}
!61 = distinct !{!61, !62}
!62 = !{!"llvm.loop.mustprogress"}


; 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::VehicleTrackSettings" = type { i32, %"class.JPH::Array.5", float, float, float, float }
%"class.JPH::Array.5" = type { i64, i64, ptr }
%"class.JPH::VehicleTrack" = type <{ %"class.JPH::VehicleTrackSettings", float, [4 x i8] }>

@_ZTVN3JPH24TrackedVehicleControllerE = external dso_local unnamed_addr constant { [11 x ptr] }, align 8
@.str.2 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [102 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [127 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [28 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH24TrackedVehicleControllerC2ERKNS_32TrackedVehicleControllerSettingsERNS_17VehicleConstraintE(ptr noundef nonnull align 8 dereferenceable(304) %0, ptr noundef nonnull align 8 dereferenceable(240) %1, ptr noundef nonnull align 16 dereferenceable(408) %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZN3JPH17VehicleControllerC2ERNS_17VehicleConstraintE(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 16 dereferenceable(408) %2)
  store ptr getelementptr inbounds inrange(-16, 72) (i8, ptr @_ZTVN3JPH24TrackedVehicleControllerE, i64 16), ptr %0, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 16
  store <4 x float> <float 0.000000e+00, float 1.000000e+00, float 1.000000e+00, float 0.000000e+00>, ptr %4, align 8, !tbaa !8
  %5 = getelementptr inbounds i8, ptr %0, i64 32
  invoke void @_ZN3JPH13VehicleEngineC2Ev(ptr noundef nonnull align 8 dereferenceable(52) %5)
          to label %6 unwind label %19

6:                                                ; preds = %3
  %7 = getelementptr inbounds i8, ptr %0, i64 88
  invoke void @_ZN3JPH19VehicleTransmissionC2Ev(ptr noundef nonnull align 8 dereferenceable(100) %7)
          to label %8 unwind label %21

8:                                                ; preds = %6
  %.ptr = getelementptr inbounds i8, ptr %0, i64 192
  tail call void @_ZN3JPH12VehicleTrackC2Ev(ptr noundef nonnull align 8 dereferenceable(52) %.ptr) #4
  %.ptr.1 = getelementptr inbounds i8, ptr %0, i64 248
  tail call void @_ZN3JPH12VehicleTrackC2Ev(ptr noundef nonnull align 8 dereferenceable(52) %.ptr.1) #4
  %9 = getelementptr inbounds i8, ptr %1, i64 16
  %10 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN3JPH21VehicleEngineSettingsaSERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(48) %9)
          to label %11 unwind label %23

11:                                               ; preds = %8
  %12 = getelementptr inbounds i8, ptr %1, i64 20
  %13 = load float, ptr %12, align 4, !tbaa !11
  %14 = fcmp ult float %13, 0.000000e+00
  br i1 %14, label %15, label %25

15:                                               ; preds = %11
  %16 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef 129)
          to label %17 unwind label %23

17:                                               ; preds = %15
  br i1 %16, label %18, label %25

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

19:                                               ; preds = %3
  %20 = landingpad { ptr, i32 }
          cleanup
  br label %151

21:                                               ; preds = %6
  %22 = landingpad { ptr, i32 }
          cleanup
  br label %150

23:                                               ; preds = %98, %89, %78, %70, %37, %34, %30, %15, %8
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %149

25:                                               ; preds = %11, %17, %18
  %26 = load float, ptr %12, align 4, !tbaa !11
  %27 = getelementptr inbounds i8, ptr %1, i64 24
  %28 = load float, ptr %27, align 8, !tbaa !28
  %29 = fcmp ugt float %26, %28
  br i1 %29, label %30, label %34

30:                                               ; preds = %25
  %31 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.3, i32 noundef 130)
          to label %32 unwind label %23

32:                                               ; preds = %30
  br i1 %31, label %33, label %34

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

34:                                               ; preds = %33, %32, %25
  %35 = getelementptr inbounds i8, ptr %0, i64 36
  %36 = load float, ptr %35, align 4, !tbaa !30
  invoke void @_ZN3JPH13VehicleEngine13SetCurrentRPMEf(ptr noundef nonnull align 8 dereferenceable(52) %5, float noundef %36)
          to label %37 unwind label %23

37:                                               ; preds = %34
  %38 = getelementptr inbounds i8, ptr %1, i64 64
  %39 = invoke noundef nonnull align 8 dereferenceable(80) ptr @_ZN3JPH27VehicleTransmissionSettingsaSERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %7, ptr noundef nonnull align 8 dereferenceable(80) %38)
          to label %40 unwind label %23

40:                                               ; preds = %37
  %41 = getelementptr inbounds i8, ptr %1, i64 72
  %42 = tail call noundef ptr @_ZNK3JPH5ArrayIfNS_12STLAllocatorIfEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %41)
  %43 = tail call noundef ptr @_ZNK3JPH5ArrayIfNS_12STLAllocatorIfEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %41)
  %.not61 = icmp eq ptr %42, %43
  br i1 %.not61, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %55, %40
  %44 = getelementptr inbounds i8, ptr %1, i64 96
  %45 = tail call noundef ptr @_ZNK3JPH5ArrayIfNS_12STLAllocatorIfEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %44)
  %46 = tail call noundef ptr @_ZNK3JPH5ArrayIfNS_12STLAllocatorIfEEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %44)
  %.not5163 = icmp eq ptr %45, %46
  br i1 %.not5163, label %._crit_edge67, label %.lr.ph66

.lr.ph:                                           ; preds = %40, %55
  %.04562 = phi ptr [ %56, %55 ], [ %42, %40 ]
  %47 = load float, ptr %.04562, align 4, !tbaa !8
  %48 = fcmp ogt float %47, 0.000000e+00
  br i1 %48, label %55, label %49

49:                                               ; preds = %.lr.ph
  %50 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3, i32 noundef 137)
          to label %51 unwind label %53

51:                                               ; preds = %49
  br i1 %50, label %52, label %55

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

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

55:                                               ; preds = %52, %51, %.lr.ph
  %56 = getelementptr inbounds i8, ptr %.04562, i64 4
  %.not = icmp eq ptr %56, %43
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge67:                                    ; preds = %68, %._crit_edge
  %57 = getelementptr inbounds i8, ptr %1, i64 120
  %58 = load float, ptr %57, align 8, !tbaa !32
  %59 = fcmp ult float %58, 0.000000e+00
  br i1 %59, label %70, label %74

.lr.ph66:                                         ; preds = %._crit_edge, %68
  %.04664 = phi ptr [ %69, %68 ], [ %45, %._crit_edge ]
  %60 = load float, ptr %.04664, align 4, !tbaa !8
  %61 = fcmp olt float %60, 0.000000e+00
  br i1 %61, label %68, label %62

62:                                               ; preds = %.lr.ph66
  %63 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.3, i32 noundef 139)
          to label %64 unwind label %66

64:                                               ; preds = %62
  br i1 %63, label %65, label %68

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

66:                                               ; preds = %62
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %149

68:                                               ; preds = %65, %64, %.lr.ph66
  %69 = getelementptr inbounds i8, ptr %.04664, i64 4
  %.not51 = icmp eq ptr %69, %46
  br i1 %.not51, label %._crit_edge67, label %.lr.ph66

70:                                               ; preds = %._crit_edge67
  %71 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.3, i32 noundef 141)
          to label %72 unwind label %23

72:                                               ; preds = %70
  br i1 %71, label %73, label %74

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

74:                                               ; preds = %._crit_edge67, %72, %73
  %75 = getelementptr inbounds i8, ptr %1, i64 136
  %76 = load float, ptr %75, align 8, !tbaa !35
  %77 = fcmp ogt float %76, 0.000000e+00
  br i1 %77, label %82, label %78

78:                                               ; preds = %74
  %79 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.3, i32 noundef 142)
          to label %80 unwind label %23

80:                                               ; preds = %78
  br i1 %79, label %81, label %82

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

82:                                               ; preds = %74, %80, %81
  %83 = load i8, ptr %38, align 8, !tbaa !37
  %.not52 = icmp eq i8 %83, 0
  br i1 %.not52, label %84, label %93

84:                                               ; preds = %82
  %85 = getelementptr inbounds i8, ptr %1, i64 132
  %86 = load float, ptr %85, align 4, !tbaa !38
  %87 = load float, ptr %27, align 8, !tbaa !28
  %88 = fcmp olt float %86, %87
  br i1 %88, label %93, label %89

89:                                               ; preds = %84
  %90 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.3, i32 noundef 143)
          to label %91 unwind label %23

91:                                               ; preds = %89
  br i1 %90, label %92, label %93

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

93:                                               ; preds = %82, %84, %91, %92
  %94 = getelementptr inbounds i8, ptr %1, i64 132
  %95 = load float, ptr %94, align 4, !tbaa !38
  %96 = load float, ptr %75, align 8, !tbaa !35
  %97 = fcmp ogt float %95, %96
  br i1 %97, label %102, label %98

98:                                               ; preds = %93
  %99 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.3, i32 noundef 144)
          to label %100 unwind label %23

100:                                              ; preds = %98
  br i1 %99, label %101, label %102

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

102:                                              ; preds = %101, %100, %93
  %103 = tail call noundef i64 @_ZSt4sizeIN3JPH12VehicleTrackELm2EEmRAT0__KT_(ptr noundef nonnull align 8 dereferenceable(112) %.ptr) #4
  %.not72 = icmp eq i64 %103, 0
  br i1 %.not72, label %._crit_edge71, label %.lr.ph70

.lr.ph70:                                         ; preds = %102
  %104 = getelementptr inbounds i8, ptr %1, i64 144
  br label %105

._crit_edge71:                                    ; preds = %144, %102
  ret void

105:                                              ; preds = %.lr.ph70, %144
  %106 = phi i64 [ 0, %.lr.ph70 ], [ %146, %144 ]
  %.04168 = phi i32 [ 0, %.lr.ph70 ], [ %145, %144 ]
  %107 = getelementptr inbounds [2 x %"class.JPH::VehicleTrackSettings"], ptr %104, i64 0, i64 %106
  %108 = getelementptr inbounds [2 x %"class.JPH::VehicleTrack"], ptr %.ptr, i64 0, i64 %106
  %109 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN3JPH20VehicleTrackSettingsaSERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %108, ptr noundef nonnull align 8 dereferenceable(48) %107)
          to label %110 unwind label %118

110:                                              ; preds = %105
  %111 = getelementptr inbounds i8, ptr %107, i64 32
  %112 = load float, ptr %111, align 8, !tbaa !41
  %113 = fcmp ult float %112, 0.000000e+00
  br i1 %113, label %114, label %120

114:                                              ; preds = %110
  %115 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.3, i32 noundef 151)
          to label %116 unwind label %118

116:                                              ; preds = %114
  br i1 %115, label %117, label %120

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

118:                                              ; preds = %140, %132, %124, %114, %105
  %119 = landingpad { ptr, i32 }
          cleanup
  br label %149

120:                                              ; preds = %110, %116, %117
  %121 = getelementptr inbounds i8, ptr %107, i64 36
  %122 = load float, ptr %121, align 4, !tbaa !45
  %123 = fcmp ult float %122, 0.000000e+00
  br i1 %123, label %124, label %128

124:                                              ; preds = %120
  %125 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.3, i32 noundef 152)
          to label %126 unwind label %118

126:                                              ; preds = %124
  br i1 %125, label %127, label %128

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

128:                                              ; preds = %120, %126, %127
  %129 = getelementptr inbounds i8, ptr %107, i64 40
  %130 = load float, ptr %129, align 8, !tbaa !47
  %131 = fcmp ult float %130, 0.000000e+00
  br i1 %131, label %132, label %136

132:                                              ; preds = %128
  %133 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.3, i32 noundef 153)
          to label %134 unwind label %118

134:                                              ; preds = %132
  br i1 %133, label %135, label %136

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

136:                                              ; preds = %128, %134, %135
  %137 = getelementptr inbounds i8, ptr %107, i64 44
  %138 = load float, ptr %137, align 4, !tbaa !49
  %139 = fcmp ogt float %138, 0.000000e+00
  br i1 %139, label %144, label %140

140:                                              ; preds = %136
  %141 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.3, i32 noundef 154)
          to label %142 unwind label %118

142:                                              ; preds = %140
  br i1 %141, label %143, label %144

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

144:                                              ; preds = %143, %142, %136
  %145 = add i32 %.04168, 1
  %146 = zext i32 %145 to i64
  %147 = tail call noundef i64 @_ZSt4sizeIN3JPH12VehicleTrackELm2EEmRAT0__KT_(ptr noundef nonnull align 8 dereferenceable(112) %.ptr) #4
  %148 = icmp ugt i64 %147, %146
  br i1 %148, label %105, label %._crit_edge71, !llvm.loop !51

149:                                              ; preds = %118, %66, %53, %23
  %.pn = phi { ptr, i32 } [ %54, %53 ], [ %67, %66 ], [ %119, %118 ], [ %24, %23 ]
  tail call void @_ZN3JPH20VehicleTrackSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(52) %.ptr.1) #4
  tail call void @_ZN3JPH20VehicleTrackSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(52) %.ptr) #4
  tail call void @_ZN3JPH27VehicleTransmissionSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(100) %7) #4
  br label %150

150:                                              ; preds = %149, %21
  %.pn.pn = phi { ptr, i32 } [ %.pn, %149 ], [ %22, %21 ]
  tail call void @_ZN3JPH21VehicleEngineSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(52) %5) #4
  br label %151

151:                                              ; preds = %150, %19
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %150 ], [ %20, %19 ]
  tail call void @_ZN3JPH17VehicleControllerD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #4
  resume { ptr, i32 } %.pn.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH17VehicleControllerC2ERNS_17VehicleConstraintE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(408)) unnamed_addr #1 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZN3JPH21VehicleEngineSettingsaSERKS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 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 #2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZSt4sizeIN3JPH12VehicleTrackELm2EEmRAT0__KT_(ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZN3JPH20VehicleTrackSettingsaSERKS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) local_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 #3 align 2

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

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

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

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 = { 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 = { 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 #3 = { 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 #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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"float", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !9, i64 20}
!12 = !{!"_ZTSN3JPH32TrackedVehicleControllerSettingsE", !13, i64 0, !19, i64 16, !24, i64 64, !10, 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", !10, i64 0}
!19 = !{!"_ZTSN3JPH21VehicleEngineSettingsE", !9, i64 0, !9, i64 4, !9, i64 8, !20, i64 16, !9, i64 40, !9, i64 44}
!20 = !{!"_ZTSN3JPH11LinearCurveE", !21, i64 0}
!21 = !{!"_ZTSN3JPH5ArrayINS_11LinearCurve5PointENS_12STLAllocatorIS2_EEEE", !22, i64 0, !22, i64 8, !23, i64 16}
!22 = !{!"long", !10, i64 0}
!23 = !{!"any pointer", !10, i64 0}
!24 = !{!"_ZTSN3JPH27VehicleTransmissionSettingsE", !25, i64 0, !26, i64 8, !26, i64 32, !9, i64 56, !9, i64 60, !9, i64 64, !9, i64 68, !9, i64 72, !9, i64 76}
!25 = !{!"_ZTSN3JPH17ETransmissionModeE", !10, i64 0}
!26 = !{!"_ZTSN3JPH5ArrayIfNS_12STLAllocatorIfEEEE", !22, i64 0, !22, i64 8, !23, i64 16}
!27 = !{i64 2159612724}
!28 = !{!12, !9, i64 24}
!29 = !{i64 2159613146}
!30 = !{!19, !9, i64 4}
!31 = !{i64 2159613472}
!32 = !{!12, !9, i64 120}
!33 = !{i64 2159613798}
!34 = !{i64 2159614196}
!35 = !{!12, !9, i64 136}
!36 = !{i64 2159614596}
!37 = !{!12, !25, i64 64}
!38 = !{!12, !9, i64 132}
!39 = !{i64 2159615158}
!40 = !{i64 2159615622}
!41 = !{!42, !9, i64 32}
!42 = !{!"_ZTSN3JPH20VehicleTrackSettingsE", !18, i64 0, !43, i64 8, !9, i64 32, !9, i64 36, !9, i64 40, !9, i64 44}
!43 = !{!"_ZTSN3JPH5ArrayIjNS_12STLAllocatorIjEEEE", !22, i64 0, !22, i64 8, !23, i64 16}
!44 = !{i64 2159615968}
!45 = !{!42, !9, i64 36}
!46 = !{i64 2159616328}
!47 = !{!42, !9, i64 40}
!48 = !{i64 2159616688}
!49 = !{!42, !9, i64 44}
!50 = !{i64 2159617052}
!51 = distinct !{!51, !52}
!52 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass