; LLVM IR from aap/librw :: src/anim.ll (ZN2rw9Animation17streamWriteLegacyEPNS_6StreamE)

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

%"struct.rw::Quat" = type { float, float, float, float }
%"struct.rw::Animation" = type { ptr, i32, i32, float, ptr, ptr }
%"struct.rw::AnimInterpolatorInfo" = type { i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"struct.rw::HAnimKeyFrame" = type { ptr, float, %"struct.rw::Quat", %"struct.rw::V3d" }
%"struct.rw::V3d" = type { float, float, float }

@.str.1 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1
@__PRETTY_FUNCTION__._ZN2rw9Animation17streamWriteLegacyEPNS_6StreamE = external hidden unnamed_addr constant [48 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: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZN2rw4conjERKNS_4QuatE(ptr noundef nonnull align 4 dereferenceable(16)) #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) #3

declare noundef i32 @_ZN2rw6Stream8writeI32Ei(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4

declare noundef i32 @_ZN2rw6Stream8writeF32Ef(ptr noundef nonnull align 8 dereferenceable(8), float noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN2rw9Animation17streamWriteLegacyEPNS_6StreamE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef %1) #5 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"struct.rw::Quat", align 4
  %8 = alloca %"struct.rw::Quat", align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %9 = load ptr, ptr %3, align 8
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  %11 = getelementptr inbounds %"struct.rw::Animation", ptr %9, i32 0, i32 1
  %12 = load i32, ptr %11, align 8, !tbaa !9
  %13 = call noundef i32 @_ZN2rw6Stream8writeI32Ei(ptr noundef nonnull align 8 dereferenceable(8) %10, i32 noundef %12)
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = getelementptr inbounds %"struct.rw::Animation", ptr %9, i32 0, i32 2
  %16 = load i32, ptr %15, align 4, !tbaa !13
  %17 = call noundef i32 @_ZN2rw6Stream8writeI32Ei(ptr noundef nonnull align 8 dereferenceable(8) %14, i32 noundef %16)
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %"struct.rw::Animation", ptr %9, i32 0, i32 3
  %20 = load float, ptr %19, align 8, !tbaa !14
  %21 = call noundef i32 @_ZN2rw6Stream8writeF32Ef(ptr noundef nonnull align 8 dereferenceable(8) %18, float noundef %20)
  %22 = getelementptr inbounds %"struct.rw::Animation", ptr %9, i32 0, i32 0
  %23 = load ptr, ptr %22, align 8, !tbaa !15
  %24 = getelementptr inbounds %"struct.rw::AnimInterpolatorInfo", ptr %23, i32 0, i32 0
  %25 = load i32, ptr %24, align 8, !tbaa !16
  %26 = icmp eq i32 %25, 1
  br i1 %26, label %27, label %28

27:                                               ; preds = %2
  br label %30

28:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 160, ptr noundef @__PRETTY_FUNCTION__._ZN2rw9Animation17streamWriteLegacyEPNS_6StreamE) #6
  unreachable

29:                                               ; No predecessors!
  br label %30

30:                                               ; preds = %29, %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %31 = getelementptr inbounds %"struct.rw::Animation", ptr %9, i32 0, i32 4
  %32 = load ptr, ptr %31, align 8, !tbaa !18
  store ptr %32, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !19
  br label %33

33:                                               ; preds = %107, %30
  %34 = load i32, ptr %6, align 4, !tbaa !19
  %35 = getelementptr inbounds %"struct.rw::Animation", ptr %9, i32 0, i32 1
  %36 = load i32, ptr %35, align 8, !tbaa !9
  %37 = icmp slt i32 %34, %36
  br i1 %37, label %39, label %38

38:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %110

39:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #7
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = load i32, ptr %6, align 4, !tbaa !19
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds %"struct.rw::HAnimKeyFrame", ptr %40, i64 %42
  %44 = getelementptr inbounds %"struct.rw::HAnimKeyFrame", ptr %43, i32 0, i32 2
  %45 = call { <2 x float>, <2 x float> } @_ZN2rw4conjERKNS_4QuatE(ptr noundef nonnull align 4 dereferenceable(16) %44)
  %46 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %7, i32 0, i32 0
  %47 = extractvalue { <2 x float>, <2 x float> } %45, 0
  store <2 x float> %47, ptr %46, align 4
  %48 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %7, i32 0, i32 1
  %49 = extractvalue { <2 x float>, <2 x float> } %45, 1
  store <2 x float> %49, ptr %48, align 4
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = load i32, ptr %6, align 4, !tbaa !19
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds %"struct.rw::HAnimKeyFrame", ptr %50, i64 %52
  %54 = getelementptr inbounds %"struct.rw::HAnimKeyFrame", ptr %53, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %54, ptr align 4 %7, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #7
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = load i32, ptr %6, align 4, !tbaa !19
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds %"struct.rw::HAnimKeyFrame", ptr %56, i64 %58
  %60 = getelementptr inbounds %"struct.rw::HAnimKeyFrame", ptr %59, i32 0, i32 2
  %61 = call noundef i32 @_ZN2rw6Stream7write32EPKvj(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef %60, i32 noundef 16)
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #7
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = load i32, ptr %6, align 4, !tbaa !19
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds %"struct.rw::HAnimKeyFrame", ptr %62, i64 %64
  %66 = getelementptr inbounds %"struct.rw::HAnimKeyFrame", ptr %65, i32 0, i32 2
  %67 = call { <2 x float>, <2 x float> } @_ZN2rw4conjERKNS_4QuatE(ptr noundef nonnull align 4 dereferenceable(16) %66)
  %68 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %8, i32 0, i32 0
  %69 = extractvalue { <2 x float>, <2 x float> } %67, 0
  store <2 x float> %69, ptr %68, align 4
  %70 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %8, i32 0, i32 1
  %71 = extractvalue { <2 x float>, <2 x float> } %67, 1
  store <2 x float> %71, ptr %70, align 4
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = load i32, ptr %6, align 4, !tbaa !19
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds %"struct.rw::HAnimKeyFrame", ptr %72, i64 %74
  %76 = getelementptr inbounds %"struct.rw::HAnimKeyFrame", ptr %75, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %76, ptr align 4 %8, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #7
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = load i32, ptr %6, align 4, !tbaa !19
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds %"struct.rw::HAnimKeyFrame", ptr %78, i64 %80
  %82 = getelementptr inbounds %"struct.rw::HAnimKeyFrame", ptr %81, i32 0, i32 3
  %83 = call noundef i32 @_ZN2rw6Stream7write32EPKvj(ptr noundef nonnull align 8 dereferenceable(8) %77, ptr noundef %82, i32 noundef 12)
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = load i32, ptr %6, align 4, !tbaa !19
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds %"struct.rw::HAnimKeyFrame", ptr %85, i64 %87
  %89 = getelementptr inbounds %"struct.rw::HAnimKeyFrame", ptr %88, i32 0, i32 1
  %90 = load float, ptr %89, align 8, !tbaa !22
  %91 = call noundef i32 @_ZN2rw6Stream8writeF32Ef(ptr noundef nonnull align 8 dereferenceable(8) %84, float noundef %90)
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = load i32, ptr %6, align 4, !tbaa !19
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds %"struct.rw::HAnimKeyFrame", ptr %93, i64 %95
  %97 = getelementptr inbounds %"struct.rw::HAnimKeyFrame", ptr %96, i32 0, i32 0
  %98 = load ptr, ptr %97, align 8, !tbaa !26
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = ptrtoint ptr %98 to i64
  %101 = ptrtoint ptr %99 to i64
  %102 = sub i64 %100, %101
  %103 = sdiv exact i64 %102, 40
  %104 = mul nsw i64 %103, 36
  %105 = trunc i64 %104 to i32
  %106 = call noundef i32 @_ZN2rw6Stream8writeI32Ei(ptr noundef nonnull align 8 dereferenceable(8) %92, i32 noundef %105)
  br label %107

107:                                              ; preds = %39
  %108 = load i32, ptr %6, align 4, !tbaa !19
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %6, align 4, !tbaa !19
  br label %33, !llvm.loop !27

110:                                              ; preds = %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  ret i1 true
}

declare noundef i32 @_ZN2rw6Stream7write32EPKvj(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i32 noundef) #4

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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { noreturn nounwind }
attributes #7 = { 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 8}
!10 = !{!"_ZTSN2rw9AnimationE", !6, i64 0, !11, i64 8, !11, i64 12, !12, i64 16, !6, i64 24, !6, i64 32}
!11 = !{!"int", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!10, !11, i64 12}
!14 = !{!10, !12, i64 16}
!15 = !{!10, !6, i64 0}
!16 = !{!17, !11, i64 0}
!17 = !{!"_ZTSN2rw20AnimInterpolatorInfoE", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72}
!18 = !{!10, !6, i64 24}
!19 = !{!11, !11, i64 0}
!20 = !{i64 0, i64 4, !21, i64 4, i64 4, !21, i64 8, i64 4, !21, i64 12, i64 4, !21}
!21 = !{!12, !12, i64 0}
!22 = !{!23, !12, i64 8}
!23 = !{!"_ZTSN2rw13HAnimKeyFrameE", !6, i64 0, !12, i64 8, !24, i64 12, !25, i64 28}
!24 = !{!"_ZTSN2rw4QuatE", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!25 = !{!"_ZTSN2rw3V3dE", !12, i64 0, !12, i64 4, !12, i64 8}
!26 = !{!23, !6, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}


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

%"struct.rw::HAnimKeyFrame" = type { ptr, float, %"struct.rw::Quat", %"struct.rw::V3d" }
%"struct.rw::Quat" = type { float, float, float, float }
%"struct.rw::V3d" = type { float, float, float }

@.str.1 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1
@__PRETTY_FUNCTION__._ZN2rw9Animation17streamWriteLegacyEPNS_6StreamE = external hidden unnamed_addr constant [48 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: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZN2rw4conjERKNS_4QuatE(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #1

declare noundef i32 @_ZN2rw6Stream8writeI32Ei(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2

declare noundef i32 @_ZN2rw6Stream8writeF32Ef(ptr noundef nonnull align 8 dereferenceable(8), float noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN2rw9Animation17streamWriteLegacyEPNS_6StreamE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(40) %0, ptr noundef nonnull %1) local_unnamed_addr #3 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 8
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = tail call noundef i32 @_ZN2rw6Stream8writeI32Ei(ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %4)
  %6 = getelementptr inbounds i8, ptr %0, i64 12
  %7 = load i32, ptr %6, align 4, !tbaa !12
  %8 = tail call noundef i32 @_ZN2rw6Stream8writeI32Ei(ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %7)
  %9 = getelementptr inbounds i8, ptr %0, i64 16
  %10 = load float, ptr %9, align 8, !tbaa !13
  %11 = tail call noundef i32 @_ZN2rw6Stream8writeF32Ef(ptr noundef nonnull align 8 dereferenceable(8) %1, float noundef %10)
  %12 = load ptr, ptr %0, align 8, !tbaa !14
  %13 = load i32, ptr %12, align 8, !tbaa !15
  %14 = icmp eq i32 %13, 1
  br i1 %14, label %16, label %15

15:                                               ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 160, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN2rw9Animation17streamWriteLegacyEPNS_6StreamE) #4
  unreachable

16:                                               ; preds = %2
  %17 = getelementptr inbounds i8, ptr %0, i64 24
  %18 = load ptr, ptr %17, align 8, !tbaa !17
  %19 = load i32, ptr %3, align 8, !tbaa !5
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %16
  %21 = ptrtoint ptr %18 to i64
  br label %22

._crit_edge:                                      ; preds = %22, %16
  ret i1 true

22:                                               ; preds = %.lr.ph, %22
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %22 ]
  %23 = getelementptr inbounds %"struct.rw::HAnimKeyFrame", ptr %18, i64 %indvars.iv
  %24 = getelementptr inbounds i8, ptr %23, i64 12
  %25 = tail call { <2 x float>, <2 x float> } @_ZN2rw4conjERKNS_4QuatE(ptr noundef nonnull align 4 dereferenceable(16) %24)
  %26 = extractvalue { <2 x float>, <2 x float> } %25, 0
  %27 = extractvalue { <2 x float>, <2 x float> } %25, 1
  store <2 x float> %26, ptr %24, align 4
  %.sroa.42.0..sroa_idx = getelementptr inbounds i8, ptr %23, i64 20
  store <2 x float> %27, ptr %.sroa.42.0..sroa_idx, align 4
  %28 = tail call noundef i32 @_ZN2rw6Stream7write32EPKvj(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %24, i32 noundef 16)
  %29 = tail call { <2 x float>, <2 x float> } @_ZN2rw4conjERKNS_4QuatE(ptr noundef nonnull align 4 dereferenceable(16) %24)
  %30 = extractvalue { <2 x float>, <2 x float> } %29, 0
  %31 = extractvalue { <2 x float>, <2 x float> } %29, 1
  store <2 x float> %30, ptr %24, align 4
  store <2 x float> %31, ptr %.sroa.42.0..sroa_idx, align 4
  %32 = getelementptr inbounds i8, ptr %23, i64 28
  %33 = tail call noundef i32 @_ZN2rw6Stream7write32EPKvj(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %32, i32 noundef 12)
  %34 = getelementptr inbounds i8, ptr %23, i64 8
  %35 = load float, ptr %34, align 8, !tbaa !18
  %36 = tail call noundef i32 @_ZN2rw6Stream8writeF32Ef(ptr noundef nonnull align 8 dereferenceable(8) %1, float noundef %35)
  %37 = load ptr, ptr %23, align 8, !tbaa !22
  %38 = ptrtoint ptr %37 to i64
  %39 = sub i64 %38, %21
  %40 = sdiv exact i64 %39, 40
  %41 = trunc i64 %40 to i32
  %42 = mul i32 %41, 36
  %43 = tail call noundef i32 @_ZN2rw6Stream8writeI32Ei(ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %42)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %44 = load i32, ptr %3, align 8, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = icmp slt i64 %indvars.iv.next, %45
  br i1 %46, label %22, label %._crit_edge, !llvm.loop !23
}

declare noundef i32 @_ZN2rw6Stream7write32EPKvj(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i32 noundef) local_unnamed_addr #2

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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "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 = { "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"="64" "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 = { 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, !10, i64 8}
!6 = !{!"_ZTSN2rw9AnimationE", !7, i64 0, !10, i64 8, !10, i64 12, !11, i64 16, !7, i64 24, !7, i64 32}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"float", !8, i64 0}
!12 = !{!6, !10, i64 12}
!13 = !{!6, !11, i64 16}
!14 = !{!6, !7, i64 0}
!15 = !{!16, !10, i64 0}
!16 = !{!"_ZTSN2rw20AnimInterpolatorInfoE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72}
!17 = !{!6, !7, i64 24}
!18 = !{!19, !11, i64 8}
!19 = !{!"_ZTSN2rw13HAnimKeyFrameE", !7, i64 0, !11, i64 8, !20, i64 12, !21, i64 28}
!20 = !{!"_ZTSN2rw4QuatE", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12}
!21 = !{!"_ZTSN2rw3V3dE", !11, i64 0, !11, i64 4, !11, i64 8}
!22 = !{!19, !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


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