; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/SoftBody (SoftBodySkinnedConstraintTest)

; 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::Array" = type { i64, i64, ptr }
%"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.4 }
%union.anon.4 = type { <4 x float> }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK29SoftBodySkinnedConstraintTest17GetWorldSpacePoseEf(ptr dead_on_unwind noalias writable sret(%"class.JPH::Array") align 8 %0, ptr noundef nonnull align 8 dereferenceable(124) %1, float noundef %2) #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca float, align 4
  %7 = alloca i1, align 1
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.JPH::Mat44", align 16
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca i32, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca %"class.JPH::Mat44", align 16
  %16 = alloca %"class.JPH::Mat44", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::Mat44", align 16
  %19 = alloca i32, align 4
  %20 = alloca %"class.JPH::Mat44", align 16
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store float %2, ptr %6, align 4, !tbaa !9
  %21 = load ptr, ptr %5, align 8
  store i1 false, ptr %7, align 1
  call void @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  invoke void @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 11)
          to label %22 unwind label %35

22:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 64, ptr %10) #9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %11, float noundef 0.000000e+00, float noundef 2.000000e+01, float noundef -1.225000e+01)
          to label %23 unwind label %39

23:                                               ; preds = %22
  %24 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 0
  %25 = load double, ptr %24, align 16
  %26 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 1
  %27 = load double, ptr %26, align 8
  invoke void @_ZN3JPH5Mat4412sTranslationENS_4Vec3E(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %10, double %25, double %27)
          to label %28 unwind label %39

28:                                               ; preds = %23
  %29 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0)
          to label %30 unwind label %39

30:                                               ; preds = %28
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %29, ptr align 16 %10, i64 64, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 64, ptr %10) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  store i32 1, ptr %12, align 4, !tbaa !13
  br label %31

31:                                               ; preds = %69, %30
  %32 = load i32, ptr %12, align 4, !tbaa !13
  %33 = icmp slt i32 %32, 11
  br i1 %33, label %43, label %34

34:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  br label %91

35:                                               ; preds = %3
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %8, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %9, align 4
  br label %122

39:                                               ; preds = %28, %23, %22
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %8, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 64, ptr %10) #9
  br label %122

43:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  store float 2.000000e+00, ptr %14, align 4, !tbaa !9
  %44 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %45 unwind label %72

45:                                               ; preds = %43
  %46 = load float, ptr %44, align 4, !tbaa !9
  %47 = fmul float 2.500000e-01, %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  store float %47, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 64, ptr %15) #9
  %48 = load float, ptr %13, align 4, !tbaa !9
  %49 = load i32, ptr %12, align 4, !tbaa !13
  %50 = sitofp i32 %49 to float
  %51 = load float, ptr %6, align 4, !tbaa !9
  %52 = fmul float 2.000000e+00, %51
  %53 = call float @llvm.fmuladd.f32(float 0x3FE921FB60000000, float %50, float %52)
  %54 = invoke noundef float @_ZN3JPH3SinEf(float noundef %53)
          to label %55 unwind label %76

55:                                               ; preds = %45
  %56 = fmul float %48, %54
  invoke void @_ZN3JPH5Mat4410sRotationXEf(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %15, float noundef %56)
          to label %57 unwind label %76

57:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 64, ptr %16) #9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %17, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0x40039999A0000000)
          to label %58 unwind label %80

58:                                               ; preds = %57
  %59 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %60 = load double, ptr %59, align 16
  %61 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %62 = load double, ptr %61, align 8
  invoke void @_ZN3JPH5Mat4412sTranslationENS_4Vec3E(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %16, double %60, double %62)
          to label %63 unwind label %80

63:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 64, ptr %18) #9
  invoke void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %18, ptr noundef nonnull align 16 dereferenceable(64) %15, ptr noundef nonnull align 16 dereferenceable(64) %16)
          to label %64 unwind label %84

64:                                               ; preds = %63
  %65 = load i32, ptr %12, align 4, !tbaa !13
  %66 = sext i32 %65 to i64
  %67 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %66)
          to label %68 unwind label %84

68:                                               ; preds = %64
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %67, ptr align 16 %18, i64 64, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  br label %69

69:                                               ; preds = %68
  %70 = load i32, ptr %12, align 4, !tbaa !13
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %12, align 4, !tbaa !13
  br label %31, !llvm.loop !15

72:                                               ; preds = %43
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %8, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  br label %90

76:                                               ; preds = %55, %45
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %8, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %9, align 4
  br label %89

80:                                               ; preds = %58, %57
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %8, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %9, align 4
  br label %88

84:                                               ; preds = %64, %63
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %8, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #9
  br label %88

88:                                               ; preds = %84, %80
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #9
  br label %89

89:                                               ; preds = %88, %76
  call void @llvm.lifetime.end.p0(i64 64, ptr %15) #9
  br label %90

90:                                               ; preds = %89, %72
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  br label %122

91:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  store i32 1, ptr %19, align 4, !tbaa !13
  br label %92

92:                                               ; preds = %111, %91
  %93 = load i32, ptr %19, align 4, !tbaa !13
  %94 = icmp slt i32 %93, 11
  br i1 %94, label %96, label %95

95:                                               ; preds = %92
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  br label %118

96:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #9
  %97 = load i32, ptr %19, align 4, !tbaa !13
  %98 = sub nsw i32 %97, 1
  %99 = sext i32 %98 to i64
  %100 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %99)
          to label %101 unwind label %114

101:                                              ; preds = %96
  %102 = load i32, ptr %19, align 4, !tbaa !13
  %103 = sext i32 %102 to i64
  %104 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %103)
          to label %105 unwind label %114

105:                                              ; preds = %101
  invoke void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %20, ptr noundef nonnull align 16 dereferenceable(64) %100, ptr noundef nonnull align 16 dereferenceable(64) %104)
          to label %106 unwind label %114

106:                                              ; preds = %105
  %107 = load i32, ptr %19, align 4, !tbaa !13
  %108 = sext i32 %107 to i64
  %109 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %108)
          to label %110 unwind label %114

110:                                              ; preds = %106
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %109, ptr align 16 %20, i64 64, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #9
  br label %111

111:                                              ; preds = %110
  %112 = load i32, ptr %19, align 4, !tbaa !13
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %19, align 4, !tbaa !13
  br label %92, !llvm.loop !17

114:                                              ; preds = %106, %105, %101, %96
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %8, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  br label %122

118:                                              ; preds = %95
  store i1 true, ptr %7, align 1
  %119 = load i1, ptr %7, align 1
  br i1 %119, label %121, label %120

120:                                              ; preds = %118
  call void @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  br label %121

121:                                              ; preds = %120, %118
  ret void

122:                                              ; preds = %114, %90, %39, %35
  call void @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  br label %123

123:                                              ; preds = %122
  %124 = load ptr, ptr %8, align 8
  %125 = load i32, ptr %9, align 4
  %126 = insertvalue { ptr, i32 } poison, ptr %124, 0
  %127 = insertvalue { ptr, i32 } %126, i32 %125, 1
  resume { ptr, i32 } %127
}

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #7

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZN3JPH3SinEf(float noundef) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #8

; 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)) #5 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{i64 0, i64 64, !12}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


; 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::Array" = type { i64, i64, ptr }
%"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.4 }
%union.anon.4 = 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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK29SoftBodySkinnedConstraintTest17GetWorldSpacePoseEf(ptr dead_on_unwind noalias nonnull writable sret(%"class.JPH::Array") align 8 %0, ptr nocapture noundef nonnull readnone align 8 dereferenceable(124) %1, float noundef %2) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca float, align 4
  %5 = alloca %"class.JPH::Mat44", align 16
  %6 = alloca %"class.JPH::Vec3", align 16
  %7 = alloca float, align 4
  %8 = alloca %"class.JPH::Mat44", align 16
  %9 = alloca %"class.JPH::Mat44", align 16
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Mat44", align 16
  %12 = alloca %"class.JPH::Mat44", align 16
  store float %2, ptr %4, align 4, !tbaa !5
  tail call void @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  invoke void @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 11)
          to label %13 unwind label %21

13:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #9
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %6, float noundef 0.000000e+00, float noundef 2.000000e+01, float noundef -1.225000e+01)
  %14 = load double, ptr %6, align 16
  %15 = getelementptr inbounds i8, ptr %6, i64 8
  %16 = load double, ptr %15, align 8
  invoke void @_ZN3JPH5Mat4412sTranslationENS_4Vec3E(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %5, double %14, double %16)
          to label %17 unwind label %23

17:                                               ; preds = %13
  %18 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0)
          to label %19 unwind label %23

19:                                               ; preds = %17
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %18, ptr noundef nonnull align 16 dereferenceable(64) %5, i64 64, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #9
  %20 = getelementptr inbounds i8, ptr %10, i64 8
  br label %25

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

23:                                               ; preds = %17, %13
  %24 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #9
  br label %104

25:                                               ; preds = %19, %42
  %indvars.iv = phi i64 [ 1, %19 ], [ %indvars.iv.next, %42 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #9
  store float 2.000000e+00, ptr %7, align 4, !tbaa !5
  %26 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %27 = load float, ptr %26, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #9
  %28 = trunc nuw nsw i64 %indvars.iv to i32
  %29 = uitofp nneg i32 %28 to float
  %30 = load float, ptr %4, align 4, !tbaa !5
  %31 = fmul float %30, 2.000000e+00
  %32 = call float @llvm.fmuladd.f32(float %29, float 0x3FE921FB60000000, float %31)
  %33 = invoke noundef float @_ZN3JPH3SinEf(float noundef %32)
          to label %34 unwind label %44

34:                                               ; preds = %25
  %35 = fmul float %27, 2.500000e-01
  %36 = fmul float %35, %33
  invoke void @_ZN3JPH5Mat4410sRotationXEf(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %8, float noundef %36)
          to label %37 unwind label %44

37:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #9
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %10, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0x40039999A0000000)
  %38 = load double, ptr %10, align 16
  %39 = load double, ptr %20, align 8
  invoke void @_ZN3JPH5Mat4412sTranslationENS_4Vec3E(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %9, double %38, double %39)
          to label %40 unwind label %46

40:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #9
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %11, ptr noundef nonnull align 16 dereferenceable(64) %8, ptr noundef nonnull align 16 dereferenceable(64) %9)
  %41 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv)
          to label %42 unwind label %48

42:                                               ; preds = %40
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %41, ptr noundef nonnull align 16 dereferenceable(64) %11, i64 64, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 11
  br i1 %exitcond.not, label %.preheader.preheader, label %25, !llvm.loop !11

.preheader.preheader:                             ; preds = %42
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #9
  %43 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0)
          to label %52 unwind label %102

44:                                               ; preds = %34, %25
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %51

46:                                               ; preds = %37
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %50

48:                                               ; preds = %40
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #9
  br label %50

50:                                               ; preds = %48, %46
  %.pn = phi { ptr, i32 } [ %49, %48 ], [ %47, %46 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #9
  br label %51

51:                                               ; preds = %50, %44
  %.pn.pn = phi { ptr, i32 } [ %.pn, %50 ], [ %45, %44 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #9
  br label %104

52:                                               ; preds = %.preheader.preheader
  %53 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 1)
          to label %54 unwind label %102

54:                                               ; preds = %52
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %12, ptr noundef nonnull align 16 dereferenceable(64) %43, ptr noundef nonnull align 16 dereferenceable(64) %53)
  %55 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 1)
          to label %.preheader.1 unwind label %102

.preheader.1:                                     ; preds = %54
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %55, ptr noundef nonnull align 16 dereferenceable(64) %12, i64 64, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #9
  %56 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 1)
          to label %57 unwind label %102

57:                                               ; preds = %.preheader.1
  %58 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 2)
          to label %59 unwind label %102

59:                                               ; preds = %57
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %12, ptr noundef nonnull align 16 dereferenceable(64) %56, ptr noundef nonnull align 16 dereferenceable(64) %58)
  %60 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 2)
          to label %.preheader.2 unwind label %102

.preheader.2:                                     ; preds = %59
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %60, ptr noundef nonnull align 16 dereferenceable(64) %12, i64 64, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #9
  %61 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 2)
          to label %62 unwind label %102

62:                                               ; preds = %.preheader.2
  %63 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 3)
          to label %64 unwind label %102

64:                                               ; preds = %62
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %12, ptr noundef nonnull align 16 dereferenceable(64) %61, ptr noundef nonnull align 16 dereferenceable(64) %63)
  %65 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 3)
          to label %.preheader.3 unwind label %102

.preheader.3:                                     ; preds = %64
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %65, ptr noundef nonnull align 16 dereferenceable(64) %12, i64 64, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #9
  %66 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 3)
          to label %67 unwind label %102

67:                                               ; preds = %.preheader.3
  %68 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 4)
          to label %69 unwind label %102

69:                                               ; preds = %67
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %12, ptr noundef nonnull align 16 dereferenceable(64) %66, ptr noundef nonnull align 16 dereferenceable(64) %68)
  %70 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 4)
          to label %.preheader.4 unwind label %102

.preheader.4:                                     ; preds = %69
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %70, ptr noundef nonnull align 16 dereferenceable(64) %12, i64 64, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #9
  %71 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 4)
          to label %72 unwind label %102

72:                                               ; preds = %.preheader.4
  %73 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 5)
          to label %74 unwind label %102

74:                                               ; preds = %72
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %12, ptr noundef nonnull align 16 dereferenceable(64) %71, ptr noundef nonnull align 16 dereferenceable(64) %73)
  %75 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 5)
          to label %.preheader.5 unwind label %102

.preheader.5:                                     ; preds = %74
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %75, ptr noundef nonnull align 16 dereferenceable(64) %12, i64 64, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #9
  %76 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 5)
          to label %77 unwind label %102

77:                                               ; preds = %.preheader.5
  %78 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 6)
          to label %79 unwind label %102

79:                                               ; preds = %77
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %12, ptr noundef nonnull align 16 dereferenceable(64) %76, ptr noundef nonnull align 16 dereferenceable(64) %78)
  %80 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 6)
          to label %.preheader.6 unwind label %102

.preheader.6:                                     ; preds = %79
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %80, ptr noundef nonnull align 16 dereferenceable(64) %12, i64 64, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #9
  %81 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 6)
          to label %82 unwind label %102

82:                                               ; preds = %.preheader.6
  %83 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 7)
          to label %84 unwind label %102

84:                                               ; preds = %82
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %12, ptr noundef nonnull align 16 dereferenceable(64) %81, ptr noundef nonnull align 16 dereferenceable(64) %83)
  %85 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 7)
          to label %.preheader.7 unwind label %102

.preheader.7:                                     ; preds = %84
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %85, ptr noundef nonnull align 16 dereferenceable(64) %12, i64 64, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #9
  %86 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 7)
          to label %87 unwind label %102

87:                                               ; preds = %.preheader.7
  %88 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 8)
          to label %89 unwind label %102

89:                                               ; preds = %87
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %12, ptr noundef nonnull align 16 dereferenceable(64) %86, ptr noundef nonnull align 16 dereferenceable(64) %88)
  %90 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 8)
          to label %.preheader.8 unwind label %102

.preheader.8:                                     ; preds = %89
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %90, ptr noundef nonnull align 16 dereferenceable(64) %12, i64 64, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #9
  %91 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 8)
          to label %92 unwind label %102

92:                                               ; preds = %.preheader.8
  %93 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 9)
          to label %94 unwind label %102

94:                                               ; preds = %92
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %12, ptr noundef nonnull align 16 dereferenceable(64) %91, ptr noundef nonnull align 16 dereferenceable(64) %93)
  %95 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 9)
          to label %.preheader.9 unwind label %102

.preheader.9:                                     ; preds = %94
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %95, ptr noundef nonnull align 16 dereferenceable(64) %12, i64 64, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #9
  %96 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 9)
          to label %97 unwind label %102

97:                                               ; preds = %.preheader.9
  %98 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 10)
          to label %99 unwind label %102

99:                                               ; preds = %97
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %12, ptr noundef nonnull align 16 dereferenceable(64) %96, ptr noundef nonnull align 16 dereferenceable(64) %98)
  %100 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 10)
          to label %101 unwind label %102

101:                                              ; preds = %99
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %100, ptr noundef nonnull align 16 dereferenceable(64) %12, i64 64, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #9
  ret void

102:                                              ; preds = %99, %97, %.preheader.9, %94, %92, %.preheader.8, %89, %87, %.preheader.7, %84, %82, %.preheader.6, %79, %77, %.preheader.5, %74, %72, %.preheader.4, %69, %67, %.preheader.3, %64, %62, %.preheader.2, %59, %57, %.preheader.1, %54, %52, %.preheader.preheader
  %103 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #9
  br label %104

104:                                              ; preds = %102, %51, %23, %21
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %51 ], [ %103, %102 ], [ %24, %23 ], [ %22, %21 ]
  call void @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  resume { ptr, i32 } %.pn.pn.pn
}

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(64) ptr @_ZN3JPH5ArrayINS_5Mat44ENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #7

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZN3JPH3SinEf(float noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #8

; 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 #5 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { 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 #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 #8 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 64, !10}
!10 = !{!7, !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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