; LLVM IR from jrouwe/JoltPhysics :: Jolt/Skeleton/SkeletonMapper.ll (ZNK3JPH14SkeletonMapper3MapEPKNS_5Mat44ES3_PS1_)

; 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::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Vec3" = type { %union.anon.22 }
%union.anon.22 = type { <4 x float> }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"struct.JPH::AssertLastParam" = type { i8 }
%"class.JPH::SkeletonMapper" = type { %"class.JPH::RefTarget", %"class.JPH::Array", %"class.JPH::Array.0", %"class.JPH::Array.3", %"class.JPH::Array.6" }
%"class.JPH::RefTarget" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::Array.0" = type { i64, i64, ptr }
%"class.JPH::Array.3" = type { i64, i64, ptr }
%"class.JPH::Array.6" = type { i64, i64, ptr }
%"class.JPH::SkeletonMapper::Mapping" = type { i32, i32, %"class.JPH::Mat44", %"class.JPH::Mat44" }
%"class.JPH::SkeletonMapper::Chain" = type { %"class.JPH::Array.16", %"class.JPH::Array.16" }
%"class.JPH::Array.16" = type { i64, i64, ptr }
%"class.JPH::SkeletonMapper::Unmapped" = type { i32, i32 }
%"class.JPH::SkeletonMapper::Locked" = type { i32, i32, %"class.JPH::Vec3" }

@.str.1 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [38 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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64)) #2 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH14SkeletonMapper3MapEPKNS_5Mat44ES3_PS1_(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #7 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"class.JPH::Mat44", align 16
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"class.JPH::Mat44", align 16
  %21 = alloca i32, align 4
  %22 = alloca %"class.JPH::Mat44", align 16
  %23 = alloca %"class.JPH::Vec3", align 16
  %24 = alloca %"class.JPH::Vec3", align 16
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca %"class.JPH::Vec3", align 16
  %27 = alloca %"class.JPH::Vec3", align 16
  %28 = alloca %"class.JPH::Vec3", align 16
  %29 = alloca %"class.JPH::Quat", align 16
  %30 = alloca %"class.JPH::Vec3", align 16
  %31 = alloca %"class.JPH::Vec3", align 16
  %32 = alloca %"class.JPH::Mat44", align 16
  %33 = alloca %"class.JPH::Mat44", align 16
  %34 = alloca %"class.JPH::Quat", align 16
  %35 = alloca %"class.JPH::Mat44", align 16
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca %"class.JPH::Mat44", align 16
  %40 = alloca ptr, align 8
  %41 = alloca ptr, align 8
  %42 = alloca ptr, align 8
  %43 = alloca ptr, align 8
  %44 = alloca %"struct.JPH::AssertLastParam", align 1
  %45 = alloca %"class.JPH::Mat44", align 16
  %46 = alloca ptr, align 8
  %47 = alloca ptr, align 8
  %48 = alloca ptr, align 8
  %49 = alloca ptr, align 8
  %50 = alloca %"class.JPH::Vec3", align 16
  %51 = alloca %"class.JPH::Vec3", align 16
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %52 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  %53 = getelementptr inbounds %"class.JPH::SkeletonMapper", ptr %52, i32 0, i32 1
  store ptr %53, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = call noundef ptr @_ZNK3JPH5ArrayINS_14SkeletonMapper7MappingENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %54)
  store ptr %55, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  %56 = load ptr, ptr %9, align 8, !tbaa !5
  %57 = call noundef ptr @_ZNK3JPH5ArrayINS_14SkeletonMapper7MappingENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %56)
  store ptr %57, ptr %11, align 8, !tbaa !5
  br label %58

58:                                               ; preds = %79, %4
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = icmp ne ptr %59, %60
  br i1 %61, label %63, label %62

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

63:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %64, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr %13) #9
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = load ptr, ptr %12, align 8, !tbaa !5
  %67 = getelementptr inbounds %"class.JPH::SkeletonMapper::Mapping", ptr %66, i32 0, i32 0
  %68 = load i32, ptr %67, align 16, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds %"class.JPH::Mat44", ptr %65, i64 %69
  %71 = load ptr, ptr %12, align 8, !tbaa !5
  %72 = getelementptr inbounds %"class.JPH::SkeletonMapper::Mapping", ptr %71, i32 0, i32 2
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %13, ptr noundef nonnull align 16 dereferenceable(64) %70, ptr noundef nonnull align 16 dereferenceable(64) %72)
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = load ptr, ptr %12, align 8, !tbaa !5
  %75 = getelementptr inbounds %"class.JPH::SkeletonMapper::Mapping", ptr %74, i32 0, i32 1
  %76 = load i32, ptr %75, align 4, !tbaa !13
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds %"class.JPH::Mat44", ptr %73, i64 %77
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %78, ptr align 16 %13, i64 64, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 64, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  br label %79

79:                                               ; preds = %63
  %80 = load ptr, ptr %10, align 8, !tbaa !5
  %81 = getelementptr inbounds %"class.JPH::SkeletonMapper::Mapping", ptr %80, i32 1
  store ptr %81, ptr %10, align 8, !tbaa !5
  br label %58

82:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  %83 = getelementptr inbounds %"class.JPH::SkeletonMapper", ptr %52, i32 0, i32 2
  store ptr %83, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  %84 = load ptr, ptr %14, align 8, !tbaa !5
  %85 = call noundef ptr @_ZNK3JPH5ArrayINS_14SkeletonMapper5ChainENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %84)
  store ptr %85, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  %86 = load ptr, ptr %14, align 8, !tbaa !5
  %87 = call noundef ptr @_ZNK3JPH5ArrayINS_14SkeletonMapper5ChainENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %86)
  store ptr %87, ptr %16, align 8, !tbaa !5
  br label %88

88:                                               ; preds = %251, %82
  %89 = load ptr, ptr %15, align 8, !tbaa !5
  %90 = load ptr, ptr %16, align 8, !tbaa !5
  %91 = icmp ne ptr %89, %90
  br i1 %91, label %93, label %92

92:                                               ; preds = %88
  store i32 4, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  br label %254

93:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  %94 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %94, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  %96 = load ptr, ptr %18, align 8, !tbaa !5
  %97 = getelementptr inbounds %"class.JPH::SkeletonMapper::Chain", ptr %96, i32 0, i32 1
  %98 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH5ArrayIiNS_12STLAllocatorIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %97)
  %99 = load i32, ptr %98, align 4, !tbaa !16
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds %"class.JPH::Mat44", ptr %95, i64 %100
  store ptr %101, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #9
  %102 = load ptr, ptr %19, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %20, ptr align 16 %102, i64 64, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
  store i32 1, ptr %21, align 4, !tbaa !16
  br label %103

103:                                              ; preds = %121, %93
  %104 = load i32, ptr %21, align 4, !tbaa !16
  %105 = load ptr, ptr %18, align 8, !tbaa !5
  %106 = getelementptr inbounds %"class.JPH::SkeletonMapper::Chain", ptr %105, i32 0, i32 1
  %107 = call noundef i64 @_ZNK3JPH5ArrayIiNS_12STLAllocatorIiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %106)
  %108 = trunc i64 %107 to i32
  %109 = icmp slt i32 %104, %108
  br i1 %109, label %111, label %110

110:                                              ; preds = %103
  store i32 6, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  br label %124

111:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 64, ptr %22) #9
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = load ptr, ptr %18, align 8, !tbaa !5
  %114 = getelementptr inbounds %"class.JPH::SkeletonMapper::Chain", ptr %113, i32 0, i32 1
  %115 = load i32, ptr %21, align 4, !tbaa !16
  %116 = sext i32 %115 to i64
  %117 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %114, i64 noundef %116)
  %118 = load i32, ptr %117, align 4, !tbaa !16
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds %"class.JPH::Mat44", ptr %112, i64 %119
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %22, ptr noundef nonnull align 16 dereferenceable(64) %20, ptr noundef nonnull align 16 dereferenceable(64) %120)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %20, ptr align 16 %22, i64 64, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #9
  br label %121

121:                                              ; preds = %111
  %122 = load i32, ptr %21, align 4, !tbaa !16
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %21, align 4, !tbaa !16
  br label %103, !llvm.loop !17

124:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #9
  %125 = call { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %20)
  %126 = getelementptr inbounds %"class.JPH::Vec3", ptr %24, i32 0, i32 0
  %127 = getelementptr inbounds %union.anon.22, 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 = load ptr, ptr %19, align 8, !tbaa !5
  %133 = call { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %132)
  %134 = getelementptr inbounds %"class.JPH::Vec3", ptr %25, i32 0, i32 0
  %135 = getelementptr inbounds %union.anon.22, ptr %134, i32 0, i32 0
  %136 = getelementptr inbounds { double, double }, ptr %135, i32 0, i32 0
  %137 = extractvalue { double, double } %133, 0
  store double %137, ptr %136, align 16
  %138 = getelementptr inbounds { double, double }, ptr %135, i32 0, i32 1
  %139 = extractvalue { double, double } %133, 1
  store double %139, ptr %138, align 8
  %140 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %141 = load double, ptr %140, align 16
  %142 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %143 = load double, ptr %142, align 8
  %144 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %24, double %141, double %143)
  %145 = getelementptr inbounds %"class.JPH::Vec3", ptr %23, i32 0, i32 0
  %146 = getelementptr inbounds %union.anon.22, ptr %145, i32 0, i32 0
  %147 = getelementptr inbounds { double, double }, ptr %146, i32 0, i32 0
  %148 = extractvalue { double, double } %144, 0
  store double %148, ptr %147, align 16
  %149 = getelementptr inbounds { double, double }, ptr %146, i32 0, i32 1
  %150 = extractvalue { double, double } %144, 1
  store double %150, ptr %149, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #9
  %151 = load ptr, ptr %6, align 8, !tbaa !5
  %152 = load ptr, ptr %18, align 8, !tbaa !5
  %153 = getelementptr inbounds %"class.JPH::SkeletonMapper::Chain", ptr %152, i32 0, i32 0
  %154 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH5ArrayIiNS_12STLAllocatorIiEEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %153)
  %155 = load i32, ptr %154, align 4, !tbaa !16
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds %"class.JPH::Mat44", ptr %151, i64 %156
  %158 = call { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %157)
  %159 = getelementptr inbounds %"class.JPH::Vec3", ptr %27, i32 0, i32 0
  %160 = getelementptr inbounds %union.anon.22, ptr %159, i32 0, i32 0
  %161 = getelementptr inbounds { double, double }, ptr %160, i32 0, i32 0
  %162 = extractvalue { double, double } %158, 0
  store double %162, ptr %161, align 16
  %163 = getelementptr inbounds { double, double }, ptr %160, i32 0, i32 1
  %164 = extractvalue { double, double } %158, 1
  store double %164, ptr %163, align 8
  %165 = load ptr, ptr %6, align 8, !tbaa !5
  %166 = load ptr, ptr %18, align 8, !tbaa !5
  %167 = getelementptr inbounds %"class.JPH::SkeletonMapper::Chain", ptr %166, i32 0, i32 0
  %168 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH5ArrayIiNS_12STLAllocatorIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %167)
  %169 = load i32, ptr %168, align 4, !tbaa !16
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds %"class.JPH::Mat44", ptr %165, i64 %170
  %172 = call { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %171)
  %173 = getelementptr inbounds %"class.JPH::Vec3", ptr %28, i32 0, i32 0
  %174 = getelementptr inbounds %union.anon.22, ptr %173, i32 0, i32 0
  %175 = getelementptr inbounds { double, double }, ptr %174, i32 0, i32 0
  %176 = extractvalue { double, double } %172, 0
  store double %176, ptr %175, align 16
  %177 = getelementptr inbounds { double, double }, ptr %174, i32 0, i32 1
  %178 = extractvalue { double, double } %172, 1
  store double %178, ptr %177, align 8
  %179 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %180 = load double, ptr %179, align 16
  %181 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %182 = load double, ptr %181, align 8
  %183 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %27, double %180, double %182)
  %184 = getelementptr inbounds %"class.JPH::Vec3", ptr %26, i32 0, i32 0
  %185 = getelementptr inbounds %union.anon.22, ptr %184, i32 0, i32 0
  %186 = getelementptr inbounds { double, double }, ptr %185, i32 0, i32 0
  %187 = extractvalue { double, double } %183, 0
  store double %187, ptr %186, align 16
  %188 = getelementptr inbounds { double, double }, ptr %185, i32 0, i32 1
  %189 = extractvalue { double, double } %183, 1
  store double %189, ptr %188, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %30, ptr align 16 %23, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %31, ptr align 16 %26, i64 16, i1 false), !tbaa.struct !19
  %190 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %191 = load double, ptr %190, align 16
  %192 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %193 = load double, ptr %192, align 8
  %194 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %195 = load double, ptr %194, align 16
  %196 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %197 = load double, ptr %196, align 8
  %198 = call { double, double } @_ZN3JPH4Quat7sFromToENS_4Vec3ES1_(double %191, double %193, double %195, double %197)
  %199 = getelementptr inbounds %"class.JPH::Quat", ptr %29, i32 0, i32 0
  %200 = getelementptr inbounds %"class.JPH::Vec4", ptr %199, i32 0, i32 0
  %201 = getelementptr inbounds %union.anon, ptr %200, i32 0, i32 0
  %202 = getelementptr inbounds { double, double }, ptr %201, i32 0, i32 0
  %203 = extractvalue { double, double } %198, 0
  store double %203, ptr %202, align 16
  %204 = getelementptr inbounds { double, double }, ptr %201, i32 0, i32 1
  %205 = extractvalue { double, double } %198, 1
  store double %205, ptr %204, align 8
  %206 = load ptr, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr %32) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr %33) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %34, ptr align 16 %29, i64 16, i1 false), !tbaa.struct !19
  %207 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %208 = load double, ptr %207, align 16
  %209 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %210 = load double, ptr %209, align 8
  call void @_ZN3JPH5Mat449sRotationENS_4QuatE(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %33, double %208, double %210)
  call void @llvm.lifetime.start.p0(i64 64, ptr %35) #9
  %211 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZNK3JPH5Mat4411GetRotationEv(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %35, ptr noundef nonnull align 16 dereferenceable(64) %211)
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %32, ptr noundef nonnull align 16 dereferenceable(64) %33, ptr noundef nonnull align 16 dereferenceable(64) %35)
  call void @_ZN3JPH5Mat4411SetRotationERKS0_(ptr noundef nonnull align 16 dereferenceable(64) %206, ptr noundef nonnull align 16 dereferenceable(64) %32)
  call void @llvm.lifetime.end.p0(i64 64, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %32) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #9
  store i32 1, ptr %36, align 4, !tbaa !16
  br label %212

212:                                              ; preds = %247, %124
  %213 = load i32, ptr %36, align 4, !tbaa !16
  %214 = load ptr, ptr %18, align 8, !tbaa !5
  %215 = getelementptr inbounds %"class.JPH::SkeletonMapper::Chain", ptr %214, i32 0, i32 1
  %216 = call noundef i64 @_ZNK3JPH5ArrayIiNS_12STLAllocatorIiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %215)
  %217 = trunc i64 %216 to i32
  %218 = sub nsw i32 %217, 1
  %219 = icmp slt i32 %213, %218
  br i1 %219, label %221, label %220

220:                                              ; preds = %212
  store i32 9, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #9
  br label %250

221:                                              ; preds = %212
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #9
  %222 = load ptr, ptr %18, align 8, !tbaa !5
  %223 = getelementptr inbounds %"class.JPH::SkeletonMapper::Chain", ptr %222, i32 0, i32 1
  %224 = load i32, ptr %36, align 4, !tbaa !16
  %225 = sub nsw i32 %224, 1
  %226 = sext i32 %225 to i64
  %227 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %223, i64 noundef %226)
  %228 = load i32, ptr %227, align 4, !tbaa !16
  store i32 %228, ptr %37, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #9
  %229 = load ptr, ptr %18, align 8, !tbaa !5
  %230 = getelementptr inbounds %"class.JPH::SkeletonMapper::Chain", ptr %229, i32 0, i32 1
  %231 = load i32, ptr %36, align 4, !tbaa !16
  %232 = sext i32 %231 to i64
  %233 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %230, i64 noundef %232)
  %234 = load i32, ptr %233, align 4, !tbaa !16
  store i32 %234, ptr %38, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 64, ptr %39) #9
  %235 = load ptr, ptr %8, align 8, !tbaa !5
  %236 = load i32, ptr %37, align 4, !tbaa !16
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds %"class.JPH::Mat44", ptr %235, i64 %237
  %239 = load ptr, ptr %7, align 8, !tbaa !5
  %240 = load i32, ptr %38, align 4, !tbaa !16
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds %"class.JPH::Mat44", ptr %239, i64 %241
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %39, ptr noundef nonnull align 16 dereferenceable(64) %238, ptr noundef nonnull align 16 dereferenceable(64) %242)
  %243 = load ptr, ptr %8, align 8, !tbaa !5
  %244 = load i32, ptr %38, align 4, !tbaa !16
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds %"class.JPH::Mat44", ptr %243, i64 %245
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %246, ptr align 16 %39, i64 64, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 64, ptr %39) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #9
  br label %247

247:                                              ; preds = %221
  %248 = load i32, ptr %36, align 4, !tbaa !16
  %249 = add nsw i32 %248, 1
  store i32 %249, ptr %36, align 4, !tbaa !16
  br label %212, !llvm.loop !20

250:                                              ; preds = %220
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  br label %251

251:                                              ; preds = %250
  %252 = load ptr, ptr %15, align 8, !tbaa !5
  %253 = getelementptr inbounds %"class.JPH::SkeletonMapper::Chain", ptr %252, i32 1
  store ptr %253, ptr %15, align 8, !tbaa !5
  br label %88

254:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #9
  %255 = getelementptr inbounds %"class.JPH::SkeletonMapper", ptr %52, i32 0, i32 3
  store ptr %255, ptr %40, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #9
  %256 = load ptr, ptr %40, align 8, !tbaa !5
  %257 = call noundef ptr @_ZNK3JPH5ArrayINS_14SkeletonMapper8UnmappedENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %256)
  store ptr %257, ptr %41, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #9
  %258 = load ptr, ptr %40, align 8, !tbaa !5
  %259 = call noundef ptr @_ZNK3JPH5ArrayINS_14SkeletonMapper8UnmappedENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %258)
  store ptr %259, ptr %42, align 8, !tbaa !5
  br label %260

260:                                              ; preds = %318, %254
  %261 = load ptr, ptr %41, align 8, !tbaa !5
  %262 = load ptr, ptr %42, align 8, !tbaa !5
  %263 = icmp ne ptr %261, %262
  br i1 %263, label %265, label %264

264:                                              ; preds = %260
  store i32 12, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #9
  br label %321

265:                                              ; preds = %260
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #9
  %266 = load ptr, ptr %41, align 8, !tbaa !5
  store ptr %266, ptr %43, align 8, !tbaa !5
  %267 = load ptr, ptr %43, align 8, !tbaa !5
  %268 = getelementptr inbounds %"class.JPH::SkeletonMapper::Unmapped", ptr %267, i32 0, i32 1
  %269 = load i32, ptr %268, align 4, !tbaa !21
  %270 = icmp sge i32 %269, 0
  br i1 %270, label %271, label %304

271:                                              ; preds = %265
  br label %272

272:                                              ; preds = %271
  %273 = load ptr, ptr %43, align 8, !tbaa !5
  %274 = getelementptr inbounds %"class.JPH::SkeletonMapper::Unmapped", ptr %273, i32 0, i32 1
  %275 = load i32, ptr %274, align 4, !tbaa !21
  %276 = load ptr, ptr %43, align 8, !tbaa !5
  %277 = getelementptr inbounds %"class.JPH::SkeletonMapper::Unmapped", ptr %276, i32 0, i32 0
  %278 = load i32, ptr %277, align 4, !tbaa !23
  %279 = icmp slt i32 %275, %278
  br i1 %279, label %283, label %280

280:                                              ; preds = %272
  %281 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jS1_NS_15AssertLastParamE(ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 201, ptr noundef @.str.8)
  br i1 %281, label %282, label %283

282:                                              ; preds = %280
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #9, !srcloc !24
  br label %283

283:                                              ; preds = %282, %280, %272
  br label %284

284:                                              ; preds = %283
  br label %285

285:                                              ; preds = %284
  call void @llvm.lifetime.start.p0(i64 64, ptr %45) #9
  %286 = load ptr, ptr %8, align 8, !tbaa !5
  %287 = load ptr, ptr %43, align 8, !tbaa !5
  %288 = getelementptr inbounds %"class.JPH::SkeletonMapper::Unmapped", ptr %287, i32 0, i32 1
  %289 = load i32, ptr %288, align 4, !tbaa !21
  %290 = sext i32 %289 to i64
  %291 = getelementptr inbounds %"class.JPH::Mat44", ptr %286, i64 %290
  %292 = load ptr, ptr %7, align 8, !tbaa !5
  %293 = load ptr, ptr %43, align 8, !tbaa !5
  %294 = getelementptr inbounds %"class.JPH::SkeletonMapper::Unmapped", ptr %293, i32 0, i32 0
  %295 = load i32, ptr %294, align 4, !tbaa !23
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds %"class.JPH::Mat44", ptr %292, i64 %296
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %45, ptr noundef nonnull align 16 dereferenceable(64) %291, ptr noundef nonnull align 16 dereferenceable(64) %297)
  %298 = load ptr, ptr %8, align 8, !tbaa !5
  %299 = load ptr, ptr %43, align 8, !tbaa !5
  %300 = getelementptr inbounds %"class.JPH::SkeletonMapper::Unmapped", ptr %299, i32 0, i32 0
  %301 = load i32, ptr %300, align 4, !tbaa !23
  %302 = sext i32 %301 to i64
  %303 = getelementptr inbounds %"class.JPH::Mat44", ptr %298, i64 %302
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %303, ptr align 16 %45, i64 64, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 64, ptr %45) #9
  br label %317

304:                                              ; preds = %265
  %305 = load ptr, ptr %7, align 8, !tbaa !5
  %306 = load ptr, ptr %43, align 8, !tbaa !5
  %307 = getelementptr inbounds %"class.JPH::SkeletonMapper::Unmapped", ptr %306, i32 0, i32 0
  %308 = load i32, ptr %307, align 4, !tbaa !23
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds %"class.JPH::Mat44", ptr %305, i64 %309
  %311 = load ptr, ptr %8, align 8, !tbaa !5
  %312 = load ptr, ptr %43, align 8, !tbaa !5
  %313 = getelementptr inbounds %"class.JPH::SkeletonMapper::Unmapped", ptr %312, i32 0, i32 0
  %314 = load i32, ptr %313, align 4, !tbaa !23
  %315 = sext i32 %314 to i64
  %316 = getelementptr inbounds %"class.JPH::Mat44", ptr %311, i64 %315
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %316, ptr align 16 %310, i64 64, i1 false), !tbaa.struct !14
  br label %317

317:                                              ; preds = %304, %285
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #9
  br label %318

318:                                              ; preds = %317
  %319 = load ptr, ptr %41, align 8, !tbaa !5
  %320 = getelementptr inbounds %"class.JPH::SkeletonMapper::Unmapped", ptr %319, i32 1
  store ptr %320, ptr %41, align 8, !tbaa !5
  br label %260

321:                                              ; preds = %264
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #9
  %322 = getelementptr inbounds %"class.JPH::SkeletonMapper", ptr %52, i32 0, i32 4
  store ptr %322, ptr %46, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #9
  %323 = load ptr, ptr %46, align 8, !tbaa !5
  %324 = call noundef ptr @_ZNK3JPH5ArrayINS_14SkeletonMapper6LockedENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %323)
  store ptr %324, ptr %47, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #9
  %325 = load ptr, ptr %46, align 8, !tbaa !5
  %326 = call noundef ptr @_ZNK3JPH5ArrayINS_14SkeletonMapper6LockedENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %325)
  store ptr %326, ptr %48, align 8, !tbaa !5
  br label %327

327:                                              ; preds = %363, %321
  %328 = load ptr, ptr %47, align 8, !tbaa !5
  %329 = load ptr, ptr %48, align 8, !tbaa !5
  %330 = icmp ne ptr %328, %329
  br i1 %330, label %332, label %331

331:                                              ; preds = %327
  store i32 16, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #9
  br label %366

332:                                              ; preds = %327
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #9
  %333 = load ptr, ptr %47, align 8, !tbaa !5
  store ptr %333, ptr %49, align 8, !tbaa !5
  %334 = load ptr, ptr %8, align 8, !tbaa !5
  %335 = load ptr, ptr %49, align 8, !tbaa !5
  %336 = getelementptr inbounds %"class.JPH::SkeletonMapper::Locked", ptr %335, i32 0, i32 0
  %337 = load i32, ptr %336, align 16, !tbaa !25
  %338 = sext i32 %337 to i64
  %339 = getelementptr inbounds %"class.JPH::Mat44", ptr %334, i64 %338
  %340 = load ptr, ptr %8, align 8, !tbaa !5
  %341 = load ptr, ptr %49, align 8, !tbaa !5
  %342 = getelementptr inbounds %"class.JPH::SkeletonMapper::Locked", ptr %341, i32 0, i32 1
  %343 = load i32, ptr %342, align 4, !tbaa !28
  %344 = sext i32 %343 to i64
  %345 = getelementptr inbounds %"class.JPH::Mat44", ptr %340, i64 %344
  %346 = load ptr, ptr %49, align 8, !tbaa !5
  %347 = getelementptr inbounds %"class.JPH::SkeletonMapper::Locked", ptr %346, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %51, ptr align 16 %347, i64 16, i1 false), !tbaa.struct !19
  %348 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 0
  %349 = load double, ptr %348, align 16
  %350 = getelementptr inbounds { double, double }, ptr %51, i32 0, i32 1
  %351 = load double, ptr %350, align 8
  %352 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %345, double %349, double %351)
  %353 = getelementptr inbounds %"class.JPH::Vec3", ptr %50, i32 0, i32 0
  %354 = getelementptr inbounds %union.anon.22, ptr %353, i32 0, i32 0
  %355 = getelementptr inbounds { double, double }, ptr %354, i32 0, i32 0
  %356 = extractvalue { double, double } %352, 0
  store double %356, ptr %355, align 16
  %357 = getelementptr inbounds { double, double }, ptr %354, i32 0, i32 1
  %358 = extractvalue { double, double } %352, 1
  store double %358, ptr %357, align 8
  %359 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 0
  %360 = load double, ptr %359, align 16
  %361 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 1
  %362 = load double, ptr %361, align 8
  call void @_ZN3JPH5Mat4414SetTranslationENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %339, double %360, double %362)
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #9
  br label %363

363:                                              ; preds = %332
  %364 = load ptr, ptr %47, align 8, !tbaa !5
  %365 = getelementptr inbounds %"class.JPH::SkeletonMapper::Locked", ptr %364, i32 1
  store ptr %365, ptr %47, align 8, !tbaa !5
  br label %327

366:                                              ; preds = %331
  ret void
}

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

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

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

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

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

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

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH5Mat4411SetRotationERKS0_(ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64)) #8 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat449sRotationENS_4QuatE(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, double, double) #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK3JPH5Mat4411GetRotationEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(64)) #5 align 2

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

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat4414SetTranslationENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64), double, double) #5 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #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 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 #8 = { 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 #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, !11, i64 0}
!10 = !{!"_ZTSN3JPH14SkeletonMapper7MappingE", !11, i64 0, !11, i64 4, !12, i64 16, !12, i64 80}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTSN3JPH5Mat44E", !7, i64 0}
!13 = !{!10, !11, i64 4}
!14 = !{i64 0, i64 64, !15}
!15 = !{!7, !7, i64 0}
!16 = !{!11, !11, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{i64 0, i64 16, !15}
!20 = distinct !{!20, !18}
!21 = !{!22, !11, i64 4}
!22 = !{!"_ZTSN3JPH14SkeletonMapper8UnmappedE", !11, i64 0, !11, i64 4}
!23 = !{!22, !11, i64 0}
!24 = !{i64 2157113150}
!25 = !{!26, !11, i64 0}
!26 = !{!"_ZTSN3JPH14SkeletonMapper6LockedE", !11, i64 0, !11, i64 4, !27, i64 16}
!27 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!28 = !{!26, !11, i64 4}


; 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::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Vec3" = type { %union.anon.22 }
%union.anon.22 = type { <4 x float> }

@.str.1 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [38 x i8], align 1

; 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: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jS1_NS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64)) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress 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) #6

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH14SkeletonMapper3MapEPKNS_5Mat44ES3_PS1_(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #7 align 2 {
  %5 = alloca %"class.JPH::Mat44", align 16
  %6 = alloca %"class.JPH::Mat44", align 16
  %7 = alloca %"class.JPH::Mat44", align 16
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca %"class.JPH::Mat44", align 16
  %11 = alloca %"class.JPH::Mat44", align 16
  %12 = alloca %"class.JPH::Mat44", align 16
  %13 = alloca %"class.JPH::Mat44", align 16
  %14 = alloca %"class.JPH::Mat44", align 16
  %15 = getelementptr inbounds i8, ptr %0, i64 8
  %16 = tail call noundef ptr @_ZNK3JPH5ArrayINS_14SkeletonMapper7MappingENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %15)
  %17 = tail call noundef ptr @_ZNK3JPH5ArrayINS_14SkeletonMapper7MappingENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %15)
  %.not102 = icmp eq ptr %16, %17
  br i1 %.not102, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %4
  %18 = getelementptr inbounds i8, ptr %0, i64 32
  %19 = call noundef ptr @_ZNK3JPH5ArrayINS_14SkeletonMapper5ChainENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %18)
  %20 = call noundef ptr @_ZNK3JPH5ArrayINS_14SkeletonMapper5ChainENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %18)
  %.not99112 = icmp eq ptr %19, %20
  br i1 %.not99112, label %._crit_edge116, label %.lr.ph115

.lr.ph115:                                        ; preds = %._crit_edge
  %21 = getelementptr inbounds i8, ptr %8, i64 8
  %22 = getelementptr inbounds i8, ptr %9, i64 8
  br label %35

.lr.ph:                                           ; preds = %4, %.lr.ph
  %.0103 = phi ptr [ %31, %.lr.ph ], [ %16, %4 ]
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #9
  %23 = load i32, ptr %.0103, align 16, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds %"class.JPH::Mat44", ptr %1, i64 %24
  %26 = getelementptr inbounds i8, ptr %.0103, i64 16
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %5, ptr noundef nonnull align 16 dereferenceable(64) %25, ptr noundef nonnull align 16 dereferenceable(64) %26)
  %27 = getelementptr inbounds i8, ptr %.0103, i64 4
  %28 = load i32, ptr %27, align 4, !tbaa !11
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds %"class.JPH::Mat44", ptr %3, i64 %29
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %30, ptr noundef nonnull align 16 dereferenceable(64) %5, i64 64, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #9
  %31 = getelementptr inbounds i8, ptr %.0103, i64 144
  %.not = icmp eq ptr %31, %17
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge116:                                   ; preds = %._crit_edge111, %._crit_edge
  %32 = getelementptr inbounds i8, ptr %0, i64 56
  %33 = call noundef ptr @_ZNK3JPH5ArrayINS_14SkeletonMapper8UnmappedENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %32)
  %34 = call noundef ptr @_ZNK3JPH5ArrayINS_14SkeletonMapper8UnmappedENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %32)
  %.not100117 = icmp eq ptr %33, %34
  br i1 %.not100117, label %._crit_edge121, label %.lr.ph120

35:                                               ; preds = %.lr.ph115, %._crit_edge111
  %.093113 = phi ptr [ %19, %.lr.ph115 ], [ %83, %._crit_edge111 ]
  %36 = getelementptr inbounds i8, ptr %.093113, i64 24
  %37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH5ArrayIiNS_12STLAllocatorIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %36)
  %38 = load i32, ptr %37, align 4, !tbaa !14
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds %"class.JPH::Mat44", ptr %3, i64 %39
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %6, ptr noundef nonnull align 16 dereferenceable(64) %40, i64 64, i1 false), !tbaa.struct !12
  %41 = call noundef i64 @_ZNK3JPH5ArrayIiNS_12STLAllocatorIiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %36)
  %42 = trunc i64 %41 to i32
  %43 = icmp sgt i32 %42, 1
  br i1 %43, label %.lr.ph106, label %._crit_edge107

._crit_edge107:                                   ; preds = %.lr.ph106, %35
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #9
  %44 = call { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %6)
  %45 = extractvalue { double, double } %44, 0
  store double %45, ptr %8, align 16
  %46 = extractvalue { double, double } %44, 1
  store double %46, ptr %21, align 8
  %47 = call { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %40)
  %48 = extractvalue { double, double } %47, 0
  %49 = extractvalue { double, double } %47, 1
  %50 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %8, double %48, double %49)
  %51 = extractvalue { double, double } %50, 0
  %52 = extractvalue { double, double } %50, 1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #9
  %53 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH5ArrayIiNS_12STLAllocatorIiEEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %.093113)
  %54 = load i32, ptr %53, align 4, !tbaa !14
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds %"class.JPH::Mat44", ptr %1, i64 %55
  %57 = call { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %56)
  %58 = extractvalue { double, double } %57, 0
  store double %58, ptr %9, align 16
  %59 = extractvalue { double, double } %57, 1
  store double %59, ptr %22, align 8
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH5ArrayIiNS_12STLAllocatorIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %.093113)
  %61 = load i32, ptr %60, align 4, !tbaa !14
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds %"class.JPH::Mat44", ptr %1, i64 %62
  %64 = call { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %63)
  %65 = extractvalue { double, double } %64, 0
  %66 = extractvalue { double, double } %64, 1
  %67 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %9, double %65, double %66)
  %68 = extractvalue { double, double } %67, 0
  %69 = extractvalue { double, double } %67, 1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #9
  %70 = call { double, double } @_ZN3JPH4Quat7sFromToENS_4Vec3ES1_(double %51, double %52, double %68, double %69)
  %71 = extractvalue { double, double } %70, 0
  %72 = extractvalue { double, double } %70, 1
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #9
  call void @_ZN3JPH5Mat449sRotationENS_4QuatE(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %11, double %71, double %72)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #9
  call void @_ZNK3JPH5Mat4411GetRotationEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %12, ptr noundef nonnull align 16 dereferenceable(64) %40)
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %10, ptr noundef nonnull align 16 dereferenceable(64) %11, ptr noundef nonnull align 16 dereferenceable(64) %12)
  call void @_ZN3JPH5Mat4411SetRotationERKS0_(ptr noundef nonnull align 16 dereferenceable(64) %40, ptr noundef nonnull align 16 dereferenceable(64) %10)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #9
  %73 = call noundef i64 @_ZNK3JPH5ArrayIiNS_12STLAllocatorIiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %36)
  %74 = trunc i64 %73 to i32
  %75 = icmp sgt i32 %74, 2
  br i1 %75, label %.lr.ph110, label %._crit_edge111

.lr.ph106:                                        ; preds = %35, %.lr.ph106
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph106 ], [ 1, %35 ]
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #9
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %indvars.iv)
  %77 = load i32, ptr %76, align 4, !tbaa !14
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds %"class.JPH::Mat44", ptr %2, i64 %78
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %7, ptr noundef nonnull align 16 dereferenceable(64) %6, ptr noundef nonnull align 16 dereferenceable(64) %79)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %6, ptr noundef nonnull align 16 dereferenceable(64) %7, i64 64, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %80 = call noundef i64 @_ZNK3JPH5ArrayIiNS_12STLAllocatorIiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %36)
  %sext = shl i64 %80, 32
  %81 = ashr exact i64 %sext, 32
  %82 = icmp slt i64 %indvars.iv.next, %81
  br i1 %82, label %.lr.ph106, label %._crit_edge107, !llvm.loop !15

._crit_edge111:                                   ; preds = %.lr.ph110, %._crit_edge107
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #9
  %83 = getelementptr inbounds i8, ptr %.093113, i64 48
  %.not99 = icmp eq ptr %83, %20
  br i1 %.not99, label %._crit_edge116, label %35

.lr.ph110:                                        ; preds = %._crit_edge107, %.lr.ph110
  %indvars.iv128 = phi i64 [ %indvars.iv.next129, %.lr.ph110 ], [ 1, %._crit_edge107 ]
  %84 = add nsw i64 %indvars.iv128, -1
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %84)
  %86 = load i32, ptr %85, align 4, !tbaa !14
  %87 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %indvars.iv128)
  %88 = load i32, ptr %87, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #9
  %89 = sext i32 %86 to i64
  %90 = getelementptr inbounds %"class.JPH::Mat44", ptr %3, i64 %89
  %91 = sext i32 %88 to i64
  %92 = getelementptr inbounds %"class.JPH::Mat44", ptr %2, i64 %91
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %13, ptr noundef nonnull align 16 dereferenceable(64) %90, ptr noundef nonnull align 16 dereferenceable(64) %92)
  %93 = getelementptr inbounds %"class.JPH::Mat44", ptr %3, i64 %91
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %93, ptr noundef nonnull align 16 dereferenceable(64) %13, i64 64, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #9
  %indvars.iv.next129 = add nuw nsw i64 %indvars.iv128, 1
  %94 = call noundef i64 @_ZNK3JPH5ArrayIiNS_12STLAllocatorIiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %36)
  %95 = shl i64 %94, 32
  %sext131 = add i64 %95, -4294967296
  %96 = ashr exact i64 %sext131, 32
  %97 = icmp slt i64 %indvars.iv.next129, %96
  br i1 %97, label %.lr.ph110, label %._crit_edge111, !llvm.loop !17

._crit_edge121:                                   ; preds = %124, %._crit_edge116
  %98 = getelementptr inbounds i8, ptr %0, i64 80
  %99 = call noundef ptr @_ZNK3JPH5ArrayINS_14SkeletonMapper6LockedENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %98)
  %100 = call noundef ptr @_ZNK3JPH5ArrayINS_14SkeletonMapper6LockedENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %98)
  %.not101122 = icmp eq ptr %99, %100
  br i1 %.not101122, label %._crit_edge126, label %.lr.ph125

.lr.ph120:                                        ; preds = %._crit_edge116, %124
  %.096118 = phi ptr [ %125, %124 ], [ %33, %._crit_edge116 ]
  %101 = getelementptr inbounds i8, ptr %.096118, i64 4
  %102 = load i32, ptr %101, align 4, !tbaa !18
  %103 = icmp sgt i32 %102, -1
  %104 = load i32, ptr %.096118, align 4, !tbaa !20
  br i1 %103, label %105, label %120

105:                                              ; preds = %.lr.ph120
  %106 = icmp slt i32 %102, %104
  br i1 %106, label %110, label %107

107:                                              ; preds = %105
  %108 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jS1_NS_15AssertLastParamE(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, i32 noundef 201, ptr noundef nonnull @.str.8)
  br i1 %108, label %109, label %110

109:                                              ; preds = %107
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #9, !srcloc !21
  br label %110

110:                                              ; preds = %109, %107, %105
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %14) #9
  %111 = load i32, ptr %101, align 4, !tbaa !18
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds %"class.JPH::Mat44", ptr %3, i64 %112
  %114 = load i32, ptr %.096118, align 4, !tbaa !20
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds %"class.JPH::Mat44", ptr %2, i64 %115
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %14, ptr noundef nonnull align 16 dereferenceable(64) %113, ptr noundef nonnull align 16 dereferenceable(64) %116)
  %117 = load i32, ptr %.096118, align 4, !tbaa !20
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds %"class.JPH::Mat44", ptr %3, i64 %118
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %119, ptr noundef nonnull align 16 dereferenceable(64) %14, i64 64, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #9
  br label %124

120:                                              ; preds = %.lr.ph120
  %121 = sext i32 %104 to i64
  %122 = getelementptr inbounds %"class.JPH::Mat44", ptr %2, i64 %121
  %123 = getelementptr inbounds %"class.JPH::Mat44", ptr %3, i64 %121
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %123, ptr noundef nonnull align 16 dereferenceable(64) %122, i64 64, i1 false), !tbaa.struct !12
  br label %124

124:                                              ; preds = %120, %110
  %125 = getelementptr inbounds i8, ptr %.096118, i64 8
  %.not100 = icmp eq ptr %125, %34
  br i1 %.not100, label %._crit_edge121, label %.lr.ph120

._crit_edge126:                                   ; preds = %.lr.ph125, %._crit_edge121
  ret void

.lr.ph125:                                        ; preds = %._crit_edge121, %.lr.ph125
  %.097123 = phi ptr [ %137, %.lr.ph125 ], [ %99, %._crit_edge121 ]
  %126 = load i32, ptr %.097123, align 16, !tbaa !22
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds %"class.JPH::Mat44", ptr %3, i64 %127
  %129 = getelementptr inbounds i8, ptr %.097123, i64 4
  %130 = load i32, ptr %129, align 4, !tbaa !25
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds %"class.JPH::Mat44", ptr %3, i64 %131
  %133 = getelementptr inbounds i8, ptr %.097123, i64 16
  %.sroa.0.0.copyload = load double, ptr %133, align 16
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %.097123, i64 24
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !13
  %134 = call { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %132, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload)
  %135 = extractvalue { double, double } %134, 0
  %136 = extractvalue { double, double } %134, 1
  call void @_ZN3JPH5Mat4414SetTranslationENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %128, double %135, double %136)
  %137 = getelementptr inbounds i8, ptr %.097123, i64 32
  %.not101 = icmp eq ptr %137, %100
  br i1 %.not101, label %._crit_edge126, label %.lr.ph125
}

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

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

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

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

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

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

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

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat449sRotationENS_4QuatE(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, double, double) local_unnamed_addr #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK3JPH5Mat4411GetRotationEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(64)) local_unnamed_addr #5 align 2

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #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 = { 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 #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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 #8 = { 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 #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, !7, i64 0}
!6 = !{!"_ZTSN3JPH14SkeletonMapper7MappingE", !7, i64 0, !7, i64 4, !10, i64 16, !10, i64 80}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN3JPH5Mat44E", !8, i64 0}
!11 = !{!6, !7, i64 4}
!12 = !{i64 0, i64 64, !13}
!13 = !{!8, !8, i64 0}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = !{!19, !7, i64 4}
!19 = !{!"_ZTSN3JPH14SkeletonMapper8UnmappedE", !7, i64 0, !7, i64 4}
!20 = !{!19, !7, i64 0}
!21 = !{i64 2157113150}
!22 = !{!23, !7, i64 0}
!23 = !{!"_ZTSN3JPH14SkeletonMapper6LockedE", !7, i64 0, !7, i64 4, !24, i64 16}
!24 = !{!"_ZTSN3JPH4Vec3E", !8, i64 0}
!25 = !{!23, !7, i64 4}


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