; LLVM IR from yangfengzzz/DigitalVox3 :: vox.render/runtime/animation/sampling_job.ll (ZN3vox9animation13SamplingCache6ResizeEi)

; 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.vox::animation::SamplingCache" = type { ptr, float, i32, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [102 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [55 x i8], align 1
@__PRETTY_FUNCTION__._ZN3vox9animation13SamplingCache6ResizeEi = external hidden unnamed_addr constant [48 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [35 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vox9animation13SamplingCache6ResizeEi(ptr noundef nonnull align 8 dereferenceable(104) %0, i32 noundef %1) #3 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  %11 = load ptr, ptr %3, align 8
  call void @_ZN3vox9animation13SamplingCache10InvalidateEv(ptr noundef nonnull align 8 dereferenceable(104) %11)
  %12 = call noundef ptr @_ZN3vox6memory17default_allocatorEv()
  %13 = getelementptr inbounds %"class.vox::animation::SamplingCache", ptr %11, i32 0, i32 3
  %14 = load ptr, ptr %13, align 8, !tbaa !11
  %15 = load ptr, ptr %12, align 8, !tbaa !14
  %16 = getelementptr inbounds ptr, ptr %15, i64 3
  %17 = load ptr, ptr %16, align 8
  call void %17(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef %14)
  %18 = load i32, ptr %4, align 4, !tbaa !9
  %19 = add nsw i32 %18, 3
  %20 = sdiv i32 %19, 4
  %21 = getelementptr inbounds %"class.vox::animation::SamplingCache", ptr %11, i32 0, i32 2
  store i32 %20, ptr %21, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %22 = getelementptr inbounds %"class.vox::animation::SamplingCache", ptr %11, i32 0, i32 2
  %23 = load i32, ptr %22, align 4, !tbaa !16
  %24 = mul nsw i32 %23, 4
  %25 = sext i32 %24 to i64
  store i64 %25, ptr %5, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %26 = getelementptr inbounds %"class.vox::animation::SamplingCache", ptr %11, i32 0, i32 2
  %27 = load i32, ptr %26, align 4, !tbaa !16
  %28 = add nsw i32 %27, 7
  %29 = sdiv i32 %28, 8
  %30 = sext i32 %29 to i64
  store i64 %30, ptr %6, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %31 = getelementptr inbounds %"class.vox::animation::SamplingCache", ptr %11, i32 0, i32 2
  %32 = load i32, ptr %31, align 4, !tbaa !16
  %33 = sext i32 %32 to i64
  %34 = mul i64 128, %33
  %35 = getelementptr inbounds %"class.vox::animation::SamplingCache", ptr %11, i32 0, i32 2
  %36 = load i32, ptr %35, align 4, !tbaa !16
  %37 = sext i32 %36 to i64
  %38 = mul i64 160, %37
  %39 = add i64 %34, %38
  %40 = getelementptr inbounds %"class.vox::animation::SamplingCache", ptr %11, i32 0, i32 2
  %41 = load i32, ptr %40, align 4, !tbaa !16
  %42 = sext i32 %41 to i64
  %43 = mul i64 128, %42
  %44 = add i64 %39, %43
  %45 = load i64, ptr %5, align 8, !tbaa !17
  %46 = mul i64 4, %45
  %47 = mul i64 %46, 2
  %48 = mul i64 %47, 3
  %49 = add i64 %44, %48
  %50 = load i64, ptr %6, align 8, !tbaa !17
  %51 = mul i64 3, %50
  %52 = add i64 %49, %51
  store i64 %52, ptr %7, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %53 = call noundef ptr @_ZN3vox6memory17default_allocatorEv()
  store ptr %53, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = load i64, ptr %7, align 8, !tbaa !17
  %56 = load ptr, ptr %54, align 8, !tbaa !14
  %57 = getelementptr inbounds ptr, ptr %56, i64 2
  %58 = load ptr, ptr %57, align 8
  %59 = call noundef ptr %58(ptr noundef nonnull align 8 dereferenceable(8) %54, i64 noundef %55, i64 noundef 16)
  store ptr %59, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %60, ptr %10, align 8, !tbaa !5
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  %62 = getelementptr inbounds %"class.vox::animation::SamplingCache", ptr %11, i32 0, i32 3
  store ptr %61, ptr %62, align 8, !tbaa !11
  %63 = getelementptr inbounds %"class.vox::animation::SamplingCache", ptr %11, i32 0, i32 3
  %64 = load ptr, ptr %63, align 8, !tbaa !11
  %65 = call noundef zeroext i1 @_ZN3vox9IsAlignedINS_9animation8internal15InterpSoaFloat3EEEbPT_m(ptr noundef %64, i64 noundef 16)
  br i1 %65, label %66, label %67

66:                                               ; preds = %2
  br label %69

67:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 407, ptr noundef @__PRETTY_FUNCTION__._ZN3vox9animation13SamplingCache6ResizeEi) #7
  unreachable

68:                                               ; No predecessors!
  br label %69

69:                                               ; preds = %68, %66
  %70 = getelementptr inbounds %"class.vox::animation::SamplingCache", ptr %11, i32 0, i32 2
  %71 = load i32, ptr %70, align 4, !tbaa !16
  %72 = sext i32 %71 to i64
  %73 = mul i64 128, %72
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  %75 = getelementptr inbounds i8, ptr %74, i64 %73
  store ptr %75, ptr %10, align 8, !tbaa !5
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  %77 = getelementptr inbounds %"class.vox::animation::SamplingCache", ptr %11, i32 0, i32 4
  store ptr %76, ptr %77, align 8, !tbaa !19
  %78 = getelementptr inbounds %"class.vox::animation::SamplingCache", ptr %11, i32 0, i32 4
  %79 = load ptr, ptr %78, align 8, !tbaa !19
  %80 = call noundef zeroext i1 @_ZN3vox9IsAlignedINS_9animation8internal19InterpSoaQuaternionEEEbPT_m(ptr noundef %79, i64 noundef 16)
  br i1 %80, label %81, label %82

81:                                               ; preds = %69
  br label %84

82:                                               ; preds = %69
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 410, ptr noundef @__PRETTY_FUNCTION__._ZN3vox9animation13SamplingCache6ResizeEi) #7
  unreachable

83:                                               ; No predecessors!
  br label %84

84:                                               ; preds = %83, %81
  %85 = getelementptr inbounds %"class.vox::animation::SamplingCache", ptr %11, i32 0, i32 2
  %86 = load i32, ptr %85, align 4, !tbaa !16
  %87 = sext i32 %86 to i64
  %88 = mul i64 160, %87
  %89 = load ptr, ptr %10, align 8, !tbaa !5
  %90 = getelementptr inbounds i8, ptr %89, i64 %88
  store ptr %90, ptr %10, align 8, !tbaa !5
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  %92 = getelementptr inbounds %"class.vox::animation::SamplingCache", ptr %11, i32 0, i32 5
  store ptr %91, ptr %92, align 8, !tbaa !20
  %93 = getelementptr inbounds %"class.vox::animation::SamplingCache", ptr %11, i32 0, i32 5
  %94 = load ptr, ptr %93, align 8, !tbaa !20
  %95 = call noundef zeroext i1 @_ZN3vox9IsAlignedINS_9animation8internal15InterpSoaFloat3EEEbPT_m(ptr noundef %94, i64 noundef 16)
  br i1 %95, label %96, label %97

96:                                               ; preds = %84
  br label %99

97:                                               ; preds = %84
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 413, ptr noundef @__PRETTY_FUNCTION__._ZN3vox9animation13SamplingCache6ResizeEi) #7
  unreachable

98:                                               ; No predecessors!
  br label %99

99:                                               ; preds = %98, %96
  %100 = getelementptr inbounds %"class.vox::animation::SamplingCache", ptr %11, i32 0, i32 2
  %101 = load i32, ptr %100, align 4, !tbaa !16
  %102 = sext i32 %101 to i64
  %103 = mul i64 128, %102
  %104 = load ptr, ptr %10, align 8, !tbaa !5
  %105 = getelementptr inbounds i8, ptr %104, i64 %103
  store ptr %105, ptr %10, align 8, !tbaa !5
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  %107 = getelementptr inbounds %"class.vox::animation::SamplingCache", ptr %11, i32 0, i32 6
  store ptr %106, ptr %107, align 8, !tbaa !21
  %108 = getelementptr inbounds %"class.vox::animation::SamplingCache", ptr %11, i32 0, i32 6
  %109 = load ptr, ptr %108, align 8, !tbaa !21
  %110 = call noundef zeroext i1 @_ZN3vox9IsAlignedIiEEbPT_m(ptr noundef %109, i64 noundef 4)
  br i1 %110, label %111, label %112

111:                                              ; preds = %99
  br label %114

112:                                              ; preds = %99
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 417, ptr noundef @__PRETTY_FUNCTION__._ZN3vox9animation13SamplingCache6ResizeEi) #7
  unreachable

113:                                              ; No predecessors!
  br label %114

114:                                              ; preds = %113, %111
  %115 = load i64, ptr %5, align 8, !tbaa !17
  %116 = mul i64 4, %115
  %117 = mul i64 %116, 2
  %118 = load ptr, ptr %10, align 8, !tbaa !5
  %119 = getelementptr inbounds i8, ptr %118, i64 %117
  store ptr %119, ptr %10, align 8, !tbaa !5
  %120 = load ptr, ptr %10, align 8, !tbaa !5
  %121 = getelementptr inbounds %"class.vox::animation::SamplingCache", ptr %11, i32 0, i32 7
  store ptr %120, ptr %121, align 8, !tbaa !22
  %122 = load i64, ptr %5, align 8, !tbaa !17
  %123 = mul i64 4, %122
  %124 = mul i64 %123, 2
  %125 = load ptr, ptr %10, align 8, !tbaa !5
  %126 = getelementptr inbounds i8, ptr %125, i64 %124
  store ptr %126, ptr %10, align 8, !tbaa !5
  %127 = load ptr, ptr %10, align 8, !tbaa !5
  %128 = getelementptr inbounds %"class.vox::animation::SamplingCache", ptr %11, i32 0, i32 8
  store ptr %127, ptr %128, align 8, !tbaa !23
  %129 = load i64, ptr %5, align 8, !tbaa !17
  %130 = mul i64 4, %129
  %131 = mul i64 %130, 2
  %132 = load ptr, ptr %10, align 8, !tbaa !5
  %133 = getelementptr inbounds i8, ptr %132, i64 %131
  store ptr %133, ptr %10, align 8, !tbaa !5
  %134 = load ptr, ptr %10, align 8, !tbaa !5
  %135 = getelementptr inbounds %"class.vox::animation::SamplingCache", ptr %11, i32 0, i32 12
  store ptr %134, ptr %135, align 8, !tbaa !24
  %136 = getelementptr inbounds %"class.vox::animation::SamplingCache", ptr %11, i32 0, i32 12
  %137 = load ptr, ptr %136, align 8, !tbaa !24
  %138 = call noundef zeroext i1 @_ZN3vox9IsAlignedIhEEbPT_m(ptr noundef %137, i64 noundef 1)
  br i1 %138, label %139, label %140

139:                                              ; preds = %114
  br label %142

140:                                              ; preds = %114
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 425, ptr noundef @__PRETTY_FUNCTION__._ZN3vox9animation13SamplingCache6ResizeEi) #7
  unreachable

141:                                              ; No predecessors!
  br label %142

142:                                              ; preds = %141, %139
  %143 = load i64, ptr %6, align 8, !tbaa !17
  %144 = mul i64 1, %143
  %145 = load ptr, ptr %10, align 8, !tbaa !5
  %146 = getelementptr inbounds i8, ptr %145, i64 %144
  store ptr %146, ptr %10, align 8, !tbaa !5
  %147 = load ptr, ptr %10, align 8, !tbaa !5
  %148 = getelementptr inbounds %"class.vox::animation::SamplingCache", ptr %11, i32 0, i32 13
  store ptr %147, ptr %148, align 8, !tbaa !25
  %149 = load i64, ptr %6, align 8, !tbaa !17
  %150 = mul i64 1, %149
  %151 = load ptr, ptr %10, align 8, !tbaa !5
  %152 = getelementptr inbounds i8, ptr %151, i64 %150
  store ptr %152, ptr %10, align 8, !tbaa !5
  %153 = load ptr, ptr %10, align 8, !tbaa !5
  %154 = getelementptr inbounds %"class.vox::animation::SamplingCache", ptr %11, i32 0, i32 14
  store ptr %153, ptr %154, align 8, !tbaa !26
  %155 = load i64, ptr %6, align 8, !tbaa !17
  %156 = mul i64 1, %155
  %157 = load ptr, ptr %10, align 8, !tbaa !5
  %158 = getelementptr inbounds i8, ptr %157, i64 %156
  store ptr %158, ptr %10, align 8, !tbaa !5
  %159 = load ptr, ptr %10, align 8, !tbaa !5
  %160 = load ptr, ptr %9, align 8, !tbaa !5
  %161 = load i64, ptr %7, align 8, !tbaa !17
  %162 = getelementptr inbounds i8, ptr %160, i64 %161
  %163 = icmp eq ptr %159, %162
  br i1 %163, label %164, label %165

164:                                              ; preds = %142
  br label %167

165:                                              ; preds = %142
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 432, ptr noundef @__PRETTY_FUNCTION__._ZN3vox9animation13SamplingCache6ResizeEi) #7
  unreachable

166:                                              ; No predecessors!
  br label %167

167:                                              ; preds = %166, %164
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  ret void
}

declare noundef ptr @_ZN3vox6memory17default_allocatorEv() #4

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3vox9IsAlignedINS_9animation8internal15InterpSoaFloat3EEEbPT_m(ptr noundef, i64 noundef) #5

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3vox9IsAlignedINS_9animation8internal19InterpSoaQuaternionEEEbPT_m(ptr noundef, i64 noundef) #5

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3vox9IsAlignedIiEEbPT_m(ptr noundef, i64 noundef) #5

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3vox9IsAlignedIhEEbPT_m(ptr noundef, i64 noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn nounwind "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 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { noreturn 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 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 16}
!12 = !{!"_ZTSN3vox9animation13SamplingCacheE", !6, i64 0, !13, i64 8, !10, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !10, i64 64, !10, i64 68, !10, i64 72, !6, i64 80, !6, i64 88, !6, i64 96}
!13 = !{!"float", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"vtable pointer", !8, i64 0}
!16 = !{!12, !10, i64 12}
!17 = !{!18, !18, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!12, !6, i64 24}
!20 = !{!12, !6, i64 32}
!21 = !{!12, !6, i64 40}
!22 = !{!12, !6, i64 48}
!23 = !{!12, !6, i64 56}
!24 = !{!12, !6, i64 80}
!25 = !{!12, !6, i64 88}
!26 = !{!12, !6, i64 96}


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

@.str.1 = external hidden unnamed_addr constant [102 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [55 x i8], align 1
@__PRETTY_FUNCTION__._ZN3vox9animation13SamplingCache6ResizeEi = external hidden unnamed_addr constant [48 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [35 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3vox9animation13SamplingCache10InvalidateEv(ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vox9animation13SamplingCache6ResizeEi(ptr noundef nonnull align 8 dereferenceable(104) %0, i32 noundef %1) local_unnamed_addr #2 align 2 {
  tail call void @_ZN3vox9animation13SamplingCache10InvalidateEv(ptr noundef nonnull align 8 dereferenceable(104) %0)
  %3 = tail call noundef ptr @_ZN3vox6memory17default_allocatorEv()
  %4 = getelementptr inbounds i8, ptr %0, i64 16
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = load ptr, ptr %3, align 8, !tbaa !12
  %7 = getelementptr inbounds i8, ptr %6, i64 24
  %8 = load ptr, ptr %7, align 8
  tail call void %8(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef %5)
  %9 = add nsw i32 %1, 3
  %10 = sdiv i32 %9, 4
  %11 = getelementptr inbounds i8, ptr %0, i64 12
  store i32 %10, ptr %11, align 4, !tbaa !14
  %12 = shl nsw i32 %10, 2
  %13 = sext i32 %12 to i64
  %14 = add nsw i32 %10, 7
  %15 = sdiv i32 %14, 8
  %16 = sext i32 %15 to i64
  %17 = sext i32 %10 to i64
  %18 = mul nsw i64 %17, 416
  %19 = shl nsw i64 %13, 3
  %20 = mul nsw i64 %13, 24
  %21 = add nsw i64 %20, %18
  %22 = mul nsw i64 %16, 3
  %23 = add nsw i64 %21, %22
  %24 = tail call noundef ptr @_ZN3vox6memory17default_allocatorEv()
  %25 = load ptr, ptr %24, align 8, !tbaa !12
  %26 = getelementptr inbounds i8, ptr %25, i64 16
  %27 = load ptr, ptr %26, align 8
  %28 = tail call noundef ptr %27(ptr noundef nonnull align 8 dereferenceable(8) %24, i64 noundef %23, i64 noundef 16)
  store ptr %28, ptr %4, align 8, !tbaa !5
  %29 = tail call noundef zeroext i1 @_ZN3vox9IsAlignedINS_9animation8internal15InterpSoaFloat3EEEbPT_m(ptr noundef %28, i64 noundef 16)
  br i1 %29, label %31, label %30

30:                                               ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 407, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3vox9animation13SamplingCache6ResizeEi) #5
  unreachable

31:                                               ; preds = %2
  %32 = load i32, ptr %11, align 4, !tbaa !14
  %33 = sext i32 %32 to i64
  %34 = shl nsw i64 %33, 7
  %35 = getelementptr inbounds i8, ptr %28, i64 %34
  %36 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %35, ptr %36, align 8, !tbaa !15
  %37 = tail call noundef zeroext i1 @_ZN3vox9IsAlignedINS_9animation8internal19InterpSoaQuaternionEEEbPT_m(ptr noundef %35, i64 noundef 16)
  br i1 %37, label %39, label %38

38:                                               ; preds = %31
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 410, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3vox9animation13SamplingCache6ResizeEi) #5
  unreachable

39:                                               ; preds = %31
  %40 = load i32, ptr %11, align 4, !tbaa !14
  %41 = sext i32 %40 to i64
  %42 = mul nsw i64 %41, 160
  %43 = getelementptr inbounds i8, ptr %35, i64 %42
  %44 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr %43, ptr %44, align 8, !tbaa !16
  %45 = tail call noundef zeroext i1 @_ZN3vox9IsAlignedINS_9animation8internal15InterpSoaFloat3EEEbPT_m(ptr noundef %43, i64 noundef 16)
  br i1 %45, label %47, label %46

46:                                               ; preds = %39
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 413, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3vox9animation13SamplingCache6ResizeEi) #5
  unreachable

47:                                               ; preds = %39
  %48 = load i32, ptr %11, align 4, !tbaa !14
  %49 = sext i32 %48 to i64
  %50 = shl nsw i64 %49, 7
  %51 = getelementptr inbounds i8, ptr %43, i64 %50
  %52 = getelementptr inbounds i8, ptr %0, i64 40
  store ptr %51, ptr %52, align 8, !tbaa !17
  %53 = tail call noundef zeroext i1 @_ZN3vox9IsAlignedIiEEbPT_m(ptr noundef %51, i64 noundef 4)
  br i1 %53, label %55, label %54

54:                                               ; preds = %47
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 417, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3vox9animation13SamplingCache6ResizeEi) #5
  unreachable

55:                                               ; preds = %47
  %56 = getelementptr inbounds i8, ptr %51, i64 %19
  %57 = getelementptr inbounds i8, ptr %0, i64 48
  store ptr %56, ptr %57, align 8, !tbaa !18
  %58 = getelementptr inbounds i8, ptr %56, i64 %19
  %59 = getelementptr inbounds i8, ptr %0, i64 56
  store ptr %58, ptr %59, align 8, !tbaa !19
  %60 = getelementptr inbounds i8, ptr %58, i64 %19
  %61 = getelementptr inbounds i8, ptr %0, i64 80
  store ptr %60, ptr %61, align 8, !tbaa !20
  %62 = tail call noundef zeroext i1 @_ZN3vox9IsAlignedIhEEbPT_m(ptr noundef %60, i64 noundef 1)
  br i1 %62, label %64, label %63

63:                                               ; preds = %55
  tail call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 425, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3vox9animation13SamplingCache6ResizeEi) #5
  unreachable

64:                                               ; preds = %55
  %65 = getelementptr inbounds i8, ptr %60, i64 %16
  %66 = getelementptr inbounds i8, ptr %0, i64 88
  store ptr %65, ptr %66, align 8, !tbaa !21
  %67 = getelementptr inbounds i8, ptr %65, i64 %16
  %68 = getelementptr inbounds i8, ptr %0, i64 96
  store ptr %67, ptr %68, align 8, !tbaa !22
  %69 = getelementptr inbounds i8, ptr %67, i64 %16
  %70 = getelementptr inbounds i8, ptr %28, i64 %23
  %71 = icmp eq ptr %69, %70
  br i1 %71, label %73, label %72

72:                                               ; preds = %64
  tail call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, i32 noundef 432, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3vox9animation13SamplingCache6ResizeEi) #5
  unreachable

73:                                               ; preds = %64
  ret void
}

declare noundef ptr @_ZN3vox6memory17default_allocatorEv() local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3vox9IsAlignedINS_9animation8internal15InterpSoaFloat3EEEbPT_m(ptr noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3vox9IsAlignedINS_9animation8internal19InterpSoaQuaternionEEEbPT_m(ptr noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3vox9IsAlignedIiEEbPT_m(ptr noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3vox9IsAlignedIhEEbPT_m(ptr noundef, i64 noundef) local_unnamed_addr #4

attributes #0 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn 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 16}
!6 = !{!"_ZTSN3vox9animation13SamplingCacheE", !7, i64 0, !10, i64 8, !11, i64 12, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !11, i64 64, !11, i64 68, !11, i64 72, !7, i64 80, !7, i64 88, !7, i64 96}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"vtable pointer", !9, i64 0}
!14 = !{!6, !11, i64 12}
!15 = !{!6, !7, i64 24}
!16 = !{!6, !7, i64 32}
!17 = !{!6, !7, i64 40}
!18 = !{!6, !7, i64 48}
!19 = !{!6, !7, i64 56}
!20 = !{!6, !7, i64 80}
!21 = !{!6, !7, i64 88}
!22 = !{!6, !7, i64 96}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass