; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/Character (CharacterPlanetTest)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.Test::ProcessInputParams" = type { float, ptr, %struct.CameraState }
%struct.CameraState = type <{ %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, [12 x i8] }>
%class.CharacterPlanetTest = type <{ %class.Test, %"class.JPH::PhysicsStepListener", %"class.JPH::CharacterContactListener", %"class.JPH::Ref", [8 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", i8, i8, [14 x i8] }>
%class.Test = type { ptr, ptr, ptr, ptr, ptr, ptr, i8, %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.JPH::PhysicsStepListener" = type { ptr }
%"class.JPH::CharacterContactListener" = type { ptr }
%"class.JPH::Ref" = type { ptr }

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec35sZeroEv() #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef, double, double) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN19CharacterPlanetTest12ProcessInputERKN4Test18ProcessInputParamsE(ptr noundef nonnull align 16 dereferenceable(178) %0, ptr noundef nonnull align 16 dereferenceable(80) %1) unnamed_addr #4 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.JPH::Vec3", align 16
  %6 = alloca %"class.JPH::Vec3", align 16
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca %"class.JPH::Vec3", align 16
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = alloca %"class.JPH::Vec3", align 16
  %24 = alloca %"class.JPH::Vec3", align 16
  %25 = alloca %"class.JPH::Vec3", align 16
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %26 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #9
  %27 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %28 = getelementptr inbounds %"class.JPH::Vec3", ptr %5, i32 0, i32 0
  %29 = getelementptr inbounds %union.anon, ptr %28, i32 0, i32 0
  %30 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %31 = extractvalue { double, double } %27, 0
  store double %31, ptr %30, align 16
  %32 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %33 = extractvalue { double, double } %27, 1
  store double %33, ptr %32, align 8
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %"class.Test::ProcessInputParams", ptr %34, i32 0, i32 1
  %36 = load ptr, ptr %35, align 8, !tbaa !9
  %37 = load ptr, ptr %36, align 8, !tbaa !14
  %38 = getelementptr inbounds ptr, ptr %37, i64 5
  %39 = load ptr, ptr %38, align 8
  %40 = call noundef zeroext i1 %39(ptr noundef nonnull align 8 dereferenceable(8) %36, i32 noundef 48)
  br i1 %40, label %41, label %42

41:                                               ; preds = %2
  call void @_ZN3JPH4Vec34SetZEf(ptr noundef nonnull align 16 dereferenceable(16) %5, float noundef -1.000000e+00)
  br label %42

42:                                               ; preds = %41, %2
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds %"class.Test::ProcessInputParams", ptr %43, i32 0, i32 1
  %45 = load ptr, ptr %44, align 8, !tbaa !9
  %46 = load ptr, ptr %45, align 8, !tbaa !14
  %47 = getelementptr inbounds ptr, ptr %46, i64 5
  %48 = load ptr, ptr %47, align 8
  %49 = call noundef zeroext i1 %48(ptr noundef nonnull align 8 dereferenceable(8) %45, i32 noundef 49)
  br i1 %49, label %50, label %51

50:                                               ; preds = %42
  call void @_ZN3JPH4Vec34SetZEf(ptr noundef nonnull align 16 dereferenceable(16) %5, float noundef 1.000000e+00)
  br label %51

51:                                               ; preds = %50, %42
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %"class.Test::ProcessInputParams", ptr %52, i32 0, i32 1
  %54 = load ptr, ptr %53, align 8, !tbaa !9
  %55 = load ptr, ptr %54, align 8, !tbaa !14
  %56 = getelementptr inbounds ptr, ptr %55, i64 5
  %57 = load ptr, ptr %56, align 8
  %58 = call noundef zeroext i1 %57(ptr noundef nonnull align 8 dereferenceable(8) %54, i32 noundef 50)
  br i1 %58, label %59, label %60

59:                                               ; preds = %51
  call void @_ZN3JPH4Vec34SetXEf(ptr noundef nonnull align 16 dereferenceable(16) %5, float noundef 1.000000e+00)
  br label %60

60:                                               ; preds = %59, %51
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds %"class.Test::ProcessInputParams", ptr %61, i32 0, i32 1
  %63 = load ptr, ptr %62, align 8, !tbaa !9
  %64 = load ptr, ptr %63, align 8, !tbaa !14
  %65 = getelementptr inbounds ptr, ptr %64, i64 5
  %66 = load ptr, ptr %65, align 8
  %67 = call noundef zeroext i1 %66(ptr noundef nonnull align 8 dereferenceable(8) %63, i32 noundef 51)
  br i1 %67, label %68, label %69

68:                                               ; preds = %60
  call void @_ZN3JPH4Vec34SetXEf(ptr noundef nonnull align 16 dereferenceable(16) %5, float noundef -1.000000e+00)
  br label %69

69:                                               ; preds = %68, %60
  %70 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %71 = getelementptr inbounds %"class.JPH::Vec3", ptr %6, i32 0, i32 0
  %72 = getelementptr inbounds %union.anon, ptr %71, i32 0, i32 0
  %73 = getelementptr inbounds { double, double }, ptr %72, i32 0, i32 0
  %74 = extractvalue { double, double } %70, 0
  store double %74, ptr %73, align 16
  %75 = getelementptr inbounds { double, double }, ptr %72, i32 0, i32 1
  %76 = extractvalue { double, double } %70, 1
  store double %76, ptr %75, align 8
  %77 = getelementptr inbounds { double, double }, ptr %6, i32 0, i32 0
  %78 = load double, ptr %77, align 16
  %79 = getelementptr inbounds { double, double }, ptr %6, i32 0, i32 1
  %80 = load double, ptr %79, align 8
  %81 = call noundef zeroext i1 @_ZNK3JPH4Vec3neES0_(ptr noundef nonnull align 16 dereferenceable(16) %5, double %78, double %80)
  br i1 %81, label %82, label %90

82:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #9
  %83 = call { double, double } @_ZNK3JPH4Vec310NormalizedEv(ptr noundef nonnull align 16 dereferenceable(16) %5)
  %84 = getelementptr inbounds %"class.JPH::Vec3", ptr %7, i32 0, i32 0
  %85 = getelementptr inbounds %union.anon, ptr %84, i32 0, i32 0
  %86 = getelementptr inbounds { double, double }, ptr %85, i32 0, i32 0
  %87 = extractvalue { double, double } %83, 0
  store double %87, ptr %86, align 16
  %88 = getelementptr inbounds { double, double }, ptr %85, i32 0, i32 1
  %89 = extractvalue { double, double } %83, 1
  store double %89, ptr %88, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 %7, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #9
  br label %90

90:                                               ; preds = %82, %69
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 %5, i64 16, i1 false), !tbaa.struct !16
  %91 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 0
  %92 = load double, ptr %91, align 16
  %93 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 1
  %94 = load double, ptr %93, align 8
  %95 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef 2.500000e-01, double %92, double %94)
  %96 = getelementptr inbounds %"class.JPH::Vec3", ptr %10, i32 0, i32 0
  %97 = getelementptr inbounds %union.anon, ptr %96, i32 0, i32 0
  %98 = getelementptr inbounds { double, double }, ptr %97, i32 0, i32 0
  %99 = extractvalue { double, double } %95, 0
  store double %99, ptr %98, align 16
  %100 = getelementptr inbounds { double, double }, ptr %97, i32 0, i32 1
  %101 = extractvalue { double, double } %95, 1
  store double %101, ptr %100, align 8
  %102 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %10, float noundef 6.000000e+00)
  %103 = getelementptr inbounds %"class.JPH::Vec3", ptr %9, i32 0, i32 0
  %104 = getelementptr inbounds %union.anon, ptr %103, i32 0, i32 0
  %105 = getelementptr inbounds { double, double }, ptr %104, i32 0, i32 0
  %106 = extractvalue { double, double } %102, 0
  store double %106, ptr %105, align 16
  %107 = getelementptr inbounds { double, double }, ptr %104, i32 0, i32 1
  %108 = extractvalue { double, double } %102, 1
  store double %108, ptr %107, align 8
  %109 = getelementptr inbounds %class.CharacterPlanetTest, ptr %26, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %13, ptr align 16 %109, i64 16, i1 false), !tbaa.struct !16
  %110 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 0
  %111 = load double, ptr %110, align 16
  %112 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 1
  %113 = load double, ptr %112, align 8
  %114 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef 7.500000e-01, double %111, double %113)
  %115 = getelementptr inbounds %"class.JPH::Vec3", ptr %12, i32 0, i32 0
  %116 = getelementptr inbounds %union.anon, ptr %115, i32 0, i32 0
  %117 = getelementptr inbounds { double, double }, ptr %116, i32 0, i32 0
  %118 = extractvalue { double, double } %114, 0
  store double %118, ptr %117, align 16
  %119 = getelementptr inbounds { double, double }, ptr %116, i32 0, i32 1
  %120 = extractvalue { double, double } %114, 1
  store double %120, ptr %119, align 8
  %121 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  %122 = load double, ptr %121, align 16
  %123 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  %124 = load double, ptr %123, align 8
  %125 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %9, double %122, double %124)
  %126 = getelementptr inbounds %"class.JPH::Vec3", ptr %8, i32 0, i32 0
  %127 = getelementptr inbounds %union.anon, ptr %126, i32 0, i32 0
  %128 = getelementptr inbounds { double, double }, ptr %127, i32 0, i32 0
  %129 = extractvalue { double, double } %125, 0
  store double %129, ptr %128, align 16
  %130 = getelementptr inbounds { double, double }, ptr %127, i32 0, i32 1
  %131 = extractvalue { double, double } %125, 1
  store double %131, ptr %130, align 8
  %132 = getelementptr inbounds %class.CharacterPlanetTest, ptr %26, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %132, ptr align 16 %8, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #9
  %133 = getelementptr inbounds %class.CharacterPlanetTest, ptr %26, i32 0, i32 3
  %134 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %133)
  %135 = call { double, double } @_ZNK3JPH13CharacterBase5GetUpEv(ptr noundef nonnull align 16 dereferenceable(144) %134)
  %136 = getelementptr inbounds %"class.JPH::Vec3", ptr %14, i32 0, i32 0
  %137 = getelementptr inbounds %union.anon, ptr %136, i32 0, i32 0
  %138 = getelementptr inbounds { double, double }, ptr %137, i32 0, i32 0
  %139 = extractvalue { double, double } %135, 0
  store double %139, ptr %138, align 16
  %140 = getelementptr inbounds { double, double }, ptr %137, i32 0, i32 1
  %141 = extractvalue { double, double } %135, 1
  store double %141, ptr %140, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #9
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = getelementptr inbounds %"class.Test::ProcessInputParams", ptr %142, i32 0, i32 2
  %144 = getelementptr inbounds %struct.CameraState, ptr %143, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !16
  %145 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %146 = load double, ptr %145, align 16
  %147 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %148 = load double, ptr %147, align 8
  %149 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %144, double %146, double %148)
  %150 = getelementptr inbounds %"class.JPH::Vec3", ptr %16, i32 0, i32 0
  %151 = getelementptr inbounds %union.anon, ptr %150, i32 0, i32 0
  %152 = getelementptr inbounds { double, double }, ptr %151, i32 0, i32 0
  %153 = extractvalue { double, double } %149, 0
  store double %153, ptr %152, align 16
  %154 = getelementptr inbounds { double, double }, ptr %151, i32 0, i32 1
  %155 = extractvalue { double, double } %149, 1
  store double %155, ptr %154, align 8
  %156 = call { double, double } @_ZN3JPH4Vec36sAxisZEv()
  %157 = getelementptr inbounds %"class.JPH::Vec3", ptr %18, i32 0, i32 0
  %158 = getelementptr inbounds %union.anon, ptr %157, i32 0, i32 0
  %159 = getelementptr inbounds { double, double }, ptr %158, i32 0, i32 0
  %160 = extractvalue { double, double } %156, 0
  store double %160, ptr %159, align 16
  %161 = getelementptr inbounds { double, double }, ptr %158, i32 0, i32 1
  %162 = extractvalue { double, double } %156, 1
  store double %162, ptr %161, align 8
  %163 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %164 = load double, ptr %163, align 16
  %165 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %166 = load double, ptr %165, align 8
  %167 = call { double, double } @_ZNK3JPH4Vec312NormalizedOrES0_(ptr noundef nonnull align 16 dereferenceable(16) %16, double %164, double %166)
  %168 = getelementptr inbounds %"class.JPH::Vec3", ptr %15, i32 0, i32 0
  %169 = getelementptr inbounds %union.anon, ptr %168, i32 0, i32 0
  %170 = getelementptr inbounds { double, double }, ptr %169, i32 0, i32 0
  %171 = extractvalue { double, double } %167, 0
  store double %171, ptr %170, align 16
  %172 = getelementptr inbounds { double, double }, ptr %169, i32 0, i32 1
  %173 = extractvalue { double, double } %167, 1
  store double %173, ptr %172, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %21, ptr align 16 %15, i64 16, i1 false), !tbaa.struct !16
  %174 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %175 = load double, ptr %174, align 16
  %176 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %177 = load double, ptr %176, align 8
  %178 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %175, double %177)
  %179 = getelementptr inbounds %"class.JPH::Vec3", ptr %20, i32 0, i32 0
  %180 = getelementptr inbounds %union.anon, ptr %179, i32 0, i32 0
  %181 = getelementptr inbounds { double, double }, ptr %180, i32 0, i32 0
  %182 = extractvalue { double, double } %178, 0
  store double %182, ptr %181, align 16
  %183 = getelementptr inbounds { double, double }, ptr %180, i32 0, i32 1
  %184 = extractvalue { double, double } %178, 1
  store double %184, ptr %183, align 8
  %185 = call { double, double } @_ZN3JPH4Vec36sAxisXEv()
  %186 = getelementptr inbounds %"class.JPH::Vec3", ptr %22, i32 0, i32 0
  %187 = getelementptr inbounds %union.anon, ptr %186, i32 0, i32 0
  %188 = getelementptr inbounds { double, double }, ptr %187, i32 0, i32 0
  %189 = extractvalue { double, double } %185, 0
  store double %189, ptr %188, align 16
  %190 = getelementptr inbounds { double, double }, ptr %187, i32 0, i32 1
  %191 = extractvalue { double, double } %185, 1
  store double %191, ptr %190, align 8
  %192 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %193 = load double, ptr %192, align 16
  %194 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %195 = load double, ptr %194, align 8
  %196 = call { double, double } @_ZNK3JPH4Vec312NormalizedOrES0_(ptr noundef nonnull align 16 dereferenceable(16) %20, double %193, double %195)
  %197 = getelementptr inbounds %"class.JPH::Vec3", ptr %19, i32 0, i32 0
  %198 = getelementptr inbounds %union.anon, ptr %197, i32 0, i32 0
  %199 = getelementptr inbounds { double, double }, ptr %198, i32 0, i32 0
  %200 = extractvalue { double, double } %196, 0
  store double %200, ptr %199, align 16
  %201 = getelementptr inbounds { double, double }, ptr %198, i32 0, i32 1
  %202 = extractvalue { double, double } %196, 1
  store double %202, ptr %201, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #9
  %203 = getelementptr inbounds %class.CharacterPlanetTest, ptr %26, i32 0, i32 5
  %204 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %203)
  %205 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %15, float noundef %204)
  %206 = getelementptr inbounds %"class.JPH::Vec3", ptr %24, i32 0, i32 0
  %207 = getelementptr inbounds %union.anon, ptr %206, i32 0, i32 0
  %208 = getelementptr inbounds { double, double }, ptr %207, i32 0, i32 0
  %209 = extractvalue { double, double } %205, 0
  store double %209, ptr %208, align 16
  %210 = getelementptr inbounds { double, double }, ptr %207, i32 0, i32 1
  %211 = extractvalue { double, double } %205, 1
  store double %211, ptr %210, align 8
  %212 = getelementptr inbounds %class.CharacterPlanetTest, ptr %26, i32 0, i32 5
  %213 = call noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %212)
  %214 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %19, float noundef %213)
  %215 = getelementptr inbounds %"class.JPH::Vec3", ptr %25, i32 0, i32 0
  %216 = getelementptr inbounds %union.anon, ptr %215, i32 0, i32 0
  %217 = getelementptr inbounds { double, double }, ptr %216, i32 0, i32 0
  %218 = extractvalue { double, double } %214, 0
  store double %218, ptr %217, align 16
  %219 = getelementptr inbounds { double, double }, ptr %216, i32 0, i32 1
  %220 = extractvalue { double, double } %214, 1
  store double %220, ptr %219, align 8
  %221 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %222 = load double, ptr %221, align 16
  %223 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %224 = load double, ptr %223, align 8
  %225 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %24, double %222, double %224)
  %226 = getelementptr inbounds %"class.JPH::Vec3", ptr %23, i32 0, i32 0
  %227 = getelementptr inbounds %union.anon, ptr %226, i32 0, i32 0
  %228 = getelementptr inbounds { double, double }, ptr %227, i32 0, i32 0
  %229 = extractvalue { double, double } %225, 0
  store double %229, ptr %228, align 16
  %230 = getelementptr inbounds { double, double }, ptr %227, i32 0, i32 1
  %231 = extractvalue { double, double } %225, 1
  store double %231, ptr %230, align 8
  %232 = getelementptr inbounds %class.CharacterPlanetTest, ptr %26, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %232, ptr align 16 %23, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #9
  %233 = load ptr, ptr %4, align 8, !tbaa !5
  %234 = getelementptr inbounds %"class.Test::ProcessInputParams", ptr %233, i32 0, i32 1
  %235 = load ptr, ptr %234, align 8, !tbaa !9
  %236 = getelementptr inbounds %class.CharacterPlanetTest, ptr %26, i32 0, i32 8
  %237 = call noundef zeroext i1 @_ZNK8Keyboard24IsKeyPressedAndTriggeredE4EKeyRb(ptr noundef nonnull align 8 dereferenceable(8) %235, i32 noundef 45, ptr noundef nonnull align 1 dereferenceable(1) %236)
  %238 = getelementptr inbounds %class.CharacterPlanetTest, ptr %26, i32 0, i32 7
  %239 = zext i1 %237 to i8
  store i8 %239, ptr %238, align 16, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #9
  ret void
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH4Vec34SetZEf(ptr noundef nonnull align 16 dereferenceable(16), float noundef) #5 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH4Vec34SetXEf(ptr noundef nonnull align 16 dereferenceable(16), float noundef) #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH4Vec3neES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #6 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec310NormalizedEv(ptr noundef nonnull align 16 dereferenceable(16)) #6 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16), float noundef) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK3JPH13CharacterBase5GetUpEv(ptr noundef nonnull align 16 dereferenceable(144)) #7 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec312NormalizedOrES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #6 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec36sAxisZEv() #6 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec36sAxisXEv() #6 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16)) #5 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16)) #8 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK8Keyboard24IsKeyPressedAndTriggeredE4EKeyRb(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, ptr noundef nonnull align 1 dereferenceable(1)) #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { alwaysinline mustprogress 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 #6 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { 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, !6, i64 8}
!10 = !{!"_ZTSN4Test18ProcessInputParamsE", !11, i64 0, !6, i64 8, !12, i64 16}
!11 = !{!"float", !7, i64 0}
!12 = !{!"_ZTS11CameraState", !13, i64 0, !13, i64 16, !13, i64 32, !11, i64 48}
!13 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"vtable pointer", !8, i64 0}
!16 = !{i64 0, i64 16, !17}
!17 = !{!7, !7, i64 0}
!18 = !{!19, !21, i64 176}
!19 = !{!"_ZTS19CharacterPlanetTest", !20, i64 0, !27, i64 112, !28, i64 120, !29, i64 128, !13, i64 144, !13, i64 160, !21, i64 176, !21, i64 177}
!20 = !{!"_ZTS4Test", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !21, i64 48, !22, i64 56}
!21 = !{!"bool", !7, i64 0}
!22 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !23, i64 0}
!23 = !{!"_ZTSSt10_HashtableIN3JPH6BodyIDESt4pairIKS1_NSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEEESaISB_ENSt8__detail10_Select1stESt8equal_toIS1_ESt4hashIS1_ENSD_18_Mod_range_hashingENSD_20_Default_ranged_hashENSD_20_Prime_rehash_policyENSD_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !24, i64 8, !25, i64 16, !24, i64 24, !26, i64 32, !6, i64 48}
!24 = !{!"long", !7, i64 0}
!25 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!26 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !11, i64 0, !24, i64 8}
!27 = !{!"_ZTSN3JPH19PhysicsStepListenerE"}
!28 = !{!"_ZTSN3JPH24CharacterContactListenerE"}
!29 = !{!"_ZTSN3JPH3RefINS_16CharacterVirtualEEE", !6, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec35sZeroEv() local_unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef, double, double) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN19CharacterPlanetTest12ProcessInputERKN4Test18ProcessInputParamsE(ptr noundef nonnull align 16 dereferenceable(178) %0, ptr noundef nonnull align 16 dereferenceable(80) %1) unnamed_addr #3 align 2 {
  %3 = alloca %"class.JPH::Vec3", align 16
  %4 = alloca %"class.JPH::Vec3", align 16
  %5 = alloca %"class.JPH::Vec3", align 16
  %6 = alloca %"class.JPH::Vec3", align 16
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Vec3", align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #8
  %12 = tail call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %13 = extractvalue { double, double } %12, 0
  store double %13, ptr %3, align 16
  %14 = getelementptr inbounds i8, ptr %3, i64 8
  %15 = extractvalue { double, double } %12, 1
  store double %15, ptr %14, align 8
  %16 = getelementptr inbounds i8, ptr %1, i64 8
  %17 = load ptr, ptr %16, align 8, !tbaa !5
  %18 = load ptr, ptr %17, align 8, !tbaa !13
  %19 = getelementptr inbounds i8, ptr %18, i64 40
  %20 = load ptr, ptr %19, align 8
  %21 = tail call noundef zeroext i1 %20(ptr noundef nonnull align 8 dereferenceable(8) %17, i32 noundef 48)
  br i1 %21, label %22, label %23

22:                                               ; preds = %2
  call void @_ZN3JPH4Vec34SetZEf(ptr noundef nonnull align 16 dereferenceable(16) %3, float noundef -1.000000e+00)
  br label %23

23:                                               ; preds = %22, %2
  %24 = load ptr, ptr %16, align 8, !tbaa !5
  %25 = load ptr, ptr %24, align 8, !tbaa !13
  %26 = getelementptr inbounds i8, ptr %25, i64 40
  %27 = load ptr, ptr %26, align 8
  %28 = call noundef zeroext i1 %27(ptr noundef nonnull align 8 dereferenceable(8) %24, i32 noundef 49)
  br i1 %28, label %29, label %30

29:                                               ; preds = %23
  call void @_ZN3JPH4Vec34SetZEf(ptr noundef nonnull align 16 dereferenceable(16) %3, float noundef 1.000000e+00)
  br label %30

30:                                               ; preds = %29, %23
  %31 = load ptr, ptr %16, align 8, !tbaa !5
  %32 = load ptr, ptr %31, align 8, !tbaa !13
  %33 = getelementptr inbounds i8, ptr %32, i64 40
  %34 = load ptr, ptr %33, align 8
  %35 = call noundef zeroext i1 %34(ptr noundef nonnull align 8 dereferenceable(8) %31, i32 noundef 50)
  br i1 %35, label %36, label %37

36:                                               ; preds = %30
  call void @_ZN3JPH4Vec34SetXEf(ptr noundef nonnull align 16 dereferenceable(16) %3, float noundef 1.000000e+00)
  br label %37

37:                                               ; preds = %36, %30
  %38 = load ptr, ptr %16, align 8, !tbaa !5
  %39 = load ptr, ptr %38, align 8, !tbaa !13
  %40 = getelementptr inbounds i8, ptr %39, i64 40
  %41 = load ptr, ptr %40, align 8
  %42 = call noundef zeroext i1 %41(ptr noundef nonnull align 8 dereferenceable(8) %38, i32 noundef 51)
  br i1 %42, label %43, label %44

43:                                               ; preds = %37
  call void @_ZN3JPH4Vec34SetXEf(ptr noundef nonnull align 16 dereferenceable(16) %3, float noundef -1.000000e+00)
  br label %44

44:                                               ; preds = %43, %37
  %45 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %46 = extractvalue { double, double } %45, 0
  %47 = extractvalue { double, double } %45, 1
  %48 = call noundef zeroext i1 @_ZNK3JPH4Vec3neES0_(ptr noundef nonnull align 16 dereferenceable(16) %3, double %46, double %47)
  br i1 %48, label %49, label %._crit_edge

._crit_edge:                                      ; preds = %44
  %.sroa.014.0.copyload.pre = load double, ptr %3, align 16
  %.sroa.215.0.copyload.pre = load double, ptr %14, align 8, !tbaa !15
  br label %53

49:                                               ; preds = %44
  %50 = call { double, double } @_ZNK3JPH4Vec310NormalizedEv(ptr noundef nonnull align 16 dereferenceable(16) %3)
  %51 = extractvalue { double, double } %50, 0
  %52 = extractvalue { double, double } %50, 1
  store double %51, ptr %3, align 16
  store double %52, ptr %14, align 8, !tbaa !15
  br label %53

53:                                               ; preds = %._crit_edge, %49
  %.sroa.215.0.copyload = phi double [ %.sroa.215.0.copyload.pre, %._crit_edge ], [ %52, %49 ]
  %.sroa.014.0.copyload = phi double [ %.sroa.014.0.copyload.pre, %._crit_edge ], [ %51, %49 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #8
  %54 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef 2.500000e-01, double %.sroa.014.0.copyload, double %.sroa.215.0.copyload)
  %55 = extractvalue { double, double } %54, 0
  store double %55, ptr %5, align 16
  %56 = getelementptr inbounds i8, ptr %5, i64 8
  %57 = extractvalue { double, double } %54, 1
  store double %57, ptr %56, align 8
  %58 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %5, float noundef 6.000000e+00)
  %59 = extractvalue { double, double } %58, 0
  store double %59, ptr %4, align 16
  %60 = getelementptr inbounds i8, ptr %4, i64 8
  %61 = extractvalue { double, double } %58, 1
  store double %61, ptr %60, align 8
  %62 = getelementptr inbounds i8, ptr %0, i64 144
  %.sroa.010.0.copyload = load double, ptr %62, align 16
  %.sroa.211.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 152
  %.sroa.211.0.copyload = load double, ptr %.sroa.211.0..sroa_idx, align 8, !tbaa !15
  %63 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef 7.500000e-01, double %.sroa.010.0.copyload, double %.sroa.211.0.copyload)
  %64 = extractvalue { double, double } %63, 0
  %65 = extractvalue { double, double } %63, 1
  %66 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %4, double %64, double %65)
  %67 = extractvalue { double, double } %66, 0
  %68 = extractvalue { double, double } %66, 1
  store double %67, ptr %62, align 16
  store double %68, ptr %.sroa.211.0..sroa_idx, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #8
  %69 = getelementptr inbounds i8, ptr %0, i64 128
  %70 = call noundef ptr @_ZNK3JPH3RefINS_16CharacterVirtualEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %69)
  %71 = call { double, double } @_ZNK3JPH13CharacterBase5GetUpEv(ptr noundef nonnull align 16 dereferenceable(144) %70)
  %72 = extractvalue { double, double } %71, 0
  store double %72, ptr %6, align 16
  %73 = getelementptr inbounds i8, ptr %6, i64 8
  %74 = extractvalue { double, double } %71, 1
  store double %74, ptr %73, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #8
  %75 = getelementptr inbounds i8, ptr %1, i64 32
  %76 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %75, double %72, double %74)
  %77 = extractvalue { double, double } %76, 0
  store double %77, ptr %8, align 16
  %78 = getelementptr inbounds i8, ptr %8, i64 8
  %79 = extractvalue { double, double } %76, 1
  store double %79, ptr %78, align 8
  %80 = call { double, double } @_ZN3JPH4Vec36sAxisZEv()
  %81 = extractvalue { double, double } %80, 0
  %82 = extractvalue { double, double } %80, 1
  %83 = call { double, double } @_ZNK3JPH4Vec312NormalizedOrES0_(ptr noundef nonnull align 16 dereferenceable(16) %8, double %81, double %82)
  %84 = extractvalue { double, double } %83, 0
  store double %84, ptr %7, align 16
  %85 = getelementptr inbounds i8, ptr %7, i64 8
  %86 = extractvalue { double, double } %83, 1
  store double %86, ptr %85, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #8
  %87 = call { double, double } @_ZNK3JPH4Vec35CrossES0_(ptr noundef nonnull align 16 dereferenceable(16) %6, double %84, double %86)
  %88 = extractvalue { double, double } %87, 0
  store double %88, ptr %10, align 16
  %89 = getelementptr inbounds i8, ptr %10, i64 8
  %90 = extractvalue { double, double } %87, 1
  store double %90, ptr %89, align 8
  %91 = call { double, double } @_ZN3JPH4Vec36sAxisXEv()
  %92 = extractvalue { double, double } %91, 0
  %93 = extractvalue { double, double } %91, 1
  %94 = call { double, double } @_ZNK3JPH4Vec312NormalizedOrES0_(ptr noundef nonnull align 16 dereferenceable(16) %10, double %92, double %93)
  %95 = extractvalue { double, double } %94, 0
  store double %95, ptr %9, align 16
  %96 = getelementptr inbounds i8, ptr %9, i64 8
  %97 = extractvalue { double, double } %94, 1
  store double %97, ptr %96, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #8
  %98 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %62)
  %99 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %7, float noundef %98)
  %100 = extractvalue { double, double } %99, 0
  store double %100, ptr %11, align 16
  %101 = getelementptr inbounds i8, ptr %11, i64 8
  %102 = extractvalue { double, double } %99, 1
  store double %102, ptr %101, align 8
  %103 = call noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %62)
  %104 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %9, float noundef %103)
  %105 = extractvalue { double, double } %104, 0
  %106 = extractvalue { double, double } %104, 1
  %107 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %105, double %106)
  %108 = extractvalue { double, double } %107, 0
  %109 = extractvalue { double, double } %107, 1
  %110 = getelementptr inbounds i8, ptr %0, i64 160
  store double %108, ptr %110, align 16
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 168
  store double %109, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #8
  %111 = load ptr, ptr %16, align 8, !tbaa !5
  %112 = getelementptr inbounds i8, ptr %0, i64 177
  %113 = call noundef zeroext i1 @_ZNK8Keyboard24IsKeyPressedAndTriggeredE4EKeyRb(ptr noundef nonnull align 8 dereferenceable(8) %111, i32 noundef 45, ptr noundef nonnull align 1 dereferenceable(1) %112)
  %114 = getelementptr inbounds i8, ptr %0, i64 176
  %115 = zext i1 %113 to i8
  store i8 %115, ptr %114, align 16, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #8
  ret void
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH4Vec34SetZEf(ptr noundef nonnull align 16 dereferenceable(16), float noundef) local_unnamed_addr #4 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH4Vec34SetXEf(ptr noundef nonnull align 16 dereferenceable(16), float noundef) local_unnamed_addr #4 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH4Vec3neES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #5 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK3JPH13CharacterBase5GetUpEv(ptr noundef nonnull align 16 dereferenceable(144)) local_unnamed_addr #6 align 2

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec36sAxisZEv() local_unnamed_addr #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec36sAxisXEv() local_unnamed_addr #5 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK8Keyboard24IsKeyPressedAndTriggeredE4EKeyRb(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { alwaysinline 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 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 8}
!6 = !{!"_ZTSN4Test18ProcessInputParamsE", !7, i64 0, !10, i64 8, !11, i64 16}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_ZTS11CameraState", !12, i64 0, !12, i64 16, !12, i64 32, !7, i64 48}
!12 = !{!"_ZTSN3JPH4Vec3E", !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !9, i64 0}
!15 = !{!8, !8, i64 0}
!16 = !{!17, !19, i64 176}
!17 = !{!"_ZTS19CharacterPlanetTest", !18, i64 0, !25, i64 112, !26, i64 120, !27, i64 128, !12, i64 144, !12, i64 160, !19, i64 176, !19, i64 177}
!18 = !{!"_ZTS4Test", !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !19, i64 48, !20, i64 56}
!19 = !{!"bool", !8, i64 0}
!20 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !21, i64 0}
!21 = !{!"_ZTSSt10_HashtableIN3JPH6BodyIDESt4pairIKS1_NSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEEESaISB_ENSt8__detail10_Select1stESt8equal_toIS1_ESt4hashIS1_ENSD_18_Mod_range_hashingENSD_20_Default_ranged_hashENSD_20_Prime_rehash_policyENSD_17_Hashtable_traitsILb1ELb0ELb1EEEE", !10, i64 0, !22, i64 8, !23, i64 16, !22, i64 24, !24, i64 32, !10, i64 48}
!22 = !{!"long", !8, i64 0}
!23 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !10, i64 0}
!24 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !7, i64 0, !22, i64 8}
!25 = !{!"_ZTSN3JPH19PhysicsStepListenerE"}
!26 = !{!"_ZTSN3JPH24CharacterContactListenerE"}
!27 = !{!"_ZTSN3JPH3RefINS_16CharacterVirtualEEE", !10, i64 0}


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