; LLVM IR from yangfengzzz/DigitalVox3 :: vox.render/geometry/skinning_job.ll (ZN3vox8geometry14SkinningPNOIT1ERKNS0_11SkinningJobE)

; 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.vox::geometry::SkinningJob" = type { i32, i32, %"struct.vox::span", %"struct.vox::span", %"struct.vox::span.0", i64, %"struct.vox::span.1", i64, %"struct.vox::span.1", i64, %"struct.vox::span.1", i64, %"struct.vox::span.1", i64, %"struct.vox::span.2", i64, %"struct.vox::span.2", i64, %"struct.vox::span.2", i64 }
%"struct.vox::span" = type { ptr, i64 }
%"struct.vox::span.0" = type { ptr, i64 }
%"struct.vox::span.1" = type { ptr, i64 }
%"struct.vox::span.2" = type { ptr, i64 }

@.str = external hidden unnamed_addr constant [75 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [93 x i8], align 1
@__PRETTY_FUNCTION__._ZN3vox8geometry14SkinningPNOIT1ERKNS0_11SkinningJobE = external hidden unnamed_addr constant [56 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: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3vox4spanIKfE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; 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 @_ZN3vox8geometry14SkinningPNOIT1ERKNS0_11SkinningJobE(ptr noundef nonnull align 8 dereferenceable(232) %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i16, align 2
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca <4 x float>, align 16
  %12 = alloca <4 x float>, align 16
  %13 = alloca i16, align 2
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca <4 x float>, align 16
  %17 = alloca <4 x float>, align 16
  store ptr %0, ptr %2, align 8, !tbaa !5
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  %19 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %18, i32 0, i32 0
  %20 = load i32, ptr %19, align 8, !tbaa !9
  %21 = icmp ne i32 %20, 0
  br i1 %21, label %22, label %30

22:                                               ; preds = %1
  %23 = load ptr, ptr %2, align 8, !tbaa !5
  %24 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %23, i32 0, i32 8
  %25 = call noundef zeroext i1 @_ZNK3vox4spanIKfE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %24)
  br i1 %25, label %30, label %26

26:                                               ; preds = %22
  %27 = load ptr, ptr %2, align 8, !tbaa !5
  %28 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %27, i32 0, i32 10
  %29 = call noundef zeroext i1 @_ZNK3vox4spanIKfE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %28)
  br label %30

30:                                               ; preds = %26, %22, %1
  %31 = phi i1 [ false, %22 ], [ false, %1 ], [ %29, %26 ]
  br i1 %31, label %32, label %33

32:                                               ; preds = %30
  br label %35

33:                                               ; preds = %30
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 415, ptr noundef @__PRETTY_FUNCTION__._ZN3vox8geometry14SkinningPNOIT1ERKNS0_11SkinningJobE) #5
  unreachable

34:                                               ; No predecessors!
  br label %35

35:                                               ; preds = %34, %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %36 = load ptr, ptr %2, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %36, i32 0, i32 4
  %38 = call noundef ptr @_ZNK3vox4spanIKtE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %37)
  store ptr %38, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %39 = load ptr, ptr %2, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %39, i32 0, i32 8
  %41 = call noundef ptr @_ZNK3vox4spanIKfE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %40)
  store ptr %41, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %42 = load ptr, ptr %2, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %42, i32 0, i32 14
  %44 = call noundef ptr @_ZNK3vox4spanIfE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %43)
  store ptr %44, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %45 = load ptr, ptr %2, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %45, i32 0, i32 0
  %47 = load i32, ptr %46, align 8, !tbaa !9
  %48 = sub nsw i32 %47, 1
  store i32 %48, ptr %6, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !17
  br label %49

49:                                               ; preds = %93, %35
  %50 = load i32, ptr %7, align 4, !tbaa !17
  %51 = load i32, ptr %6, align 4, !tbaa !17
  %52 = icmp slt i32 %50, %51
  br i1 %52, label %54, label %53

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

54:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 2, ptr %8) #6
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds i16, ptr %55, i64 0
  %57 = load i16, ptr %56, align 2, !tbaa !18
  store i16 %57, ptr %8, align 2, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %58 = load ptr, ptr %2, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %58, i32 0, i32 2
  %60 = load i16, ptr %8, align 2, !tbaa !18
  %61 = zext i16 %60 to i64
  %62 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %59, i64 noundef %61)
  store ptr %62, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %63, ptr %10, align 8, !tbaa !5
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = call noundef <4 x float> @_ZN3vox4math11simd_float48LoadPtrUEPKf(ptr noundef %65)
  store <4 x float> %66, ptr %11, align 16, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = load <4 x float>, ptr %11, align 16, !tbaa !20
  %69 = call noundef <4 x float> @_ZN3vox4math14TransformPointERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64) %67, <4 x float> noundef %68)
  store <4 x float> %69, ptr %12, align 16, !tbaa !20
  %70 = load <4 x float>, ptr %12, align 16, !tbaa !20
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN3vox4math10Store3PtrUEDv4_fPf(<4 x float> noundef %70, ptr noundef %71)
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %73 = ptrtoint ptr %72 to i64
  %74 = load ptr, ptr %2, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %74, i32 0, i32 5
  %76 = load i64, ptr %75, align 8, !tbaa !21
  %77 = add i64 %73, %76
  %78 = inttoptr i64 %77 to ptr
  store ptr %78, ptr %3, align 8, !tbaa !5
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = ptrtoint ptr %79 to i64
  %81 = load ptr, ptr %2, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %81, i32 0, i32 9
  %83 = load i64, ptr %82, align 8, !tbaa !22
  %84 = add i64 %80, %83
  %85 = inttoptr i64 %84 to ptr
  store ptr %85, ptr %4, align 8, !tbaa !5
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = ptrtoint ptr %86 to i64
  %88 = load ptr, ptr %2, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %88, i32 0, i32 15
  %90 = load i64, ptr %89, align 8, !tbaa !23
  %91 = add i64 %87, %90
  %92 = inttoptr i64 %91 to ptr
  store ptr %92, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  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 2, ptr %8) #6
  br label %93

93:                                               ; preds = %54
  %94 = load i32, ptr %7, align 4, !tbaa !17
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %7, align 4, !tbaa !17
  br label %49, !llvm.loop !24

96:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 2, ptr %13) #6
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  %98 = getelementptr inbounds i16, ptr %97, i64 0
  %99 = load i16, ptr %98, align 2, !tbaa !18
  store i16 %99, ptr %13, align 2, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %100 = load ptr, ptr %2, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %100, i32 0, i32 2
  %102 = load i16, ptr %13, align 2, !tbaa !18
  %103 = zext i16 %102 to i64
  %104 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %101, i64 noundef %103)
  store ptr %104, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %105 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %105, ptr %15, align 8, !tbaa !5
  %106 = load ptr, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #6
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = call noundef <4 x float> @_ZN3vox4math11simd_float49Load3PtrUEPKf(ptr noundef %107)
  store <4 x float> %108, ptr %16, align 16, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #6
  %109 = load ptr, ptr %14, align 8, !tbaa !5
  %110 = load <4 x float>, ptr %16, align 16, !tbaa !20
  %111 = call noundef <4 x float> @_ZN3vox4math14TransformPointERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64) %109, <4 x float> noundef %110)
  store <4 x float> %111, ptr %17, align 16, !tbaa !20
  %112 = load <4 x float>, ptr %17, align 16, !tbaa !20
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN3vox4math10Store3PtrUEDv4_fPf(<4 x float> noundef %112, ptr noundef %113)
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  ret void
}

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math11simd_float48LoadPtrUEPKf(ptr noundef) #4

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math14TransformPointERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64), <4 x float> noundef) #4

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3vox4math10Store3PtrUEDv4_fPf(<4 x float> noundef, ptr noundef) #4

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math11simd_float49Load3PtrUEPKf(ptr noundef) #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSN3vox8geometry11SkinningJobE", !11, i64 0, !11, i64 4, !12, i64 8, !12, i64 24, !14, i64 40, !13, i64 56, !15, i64 64, !13, i64 80, !15, i64 88, !13, i64 104, !15, i64 112, !13, i64 128, !15, i64 136, !13, i64 152, !16, i64 160, !13, i64 176, !16, i64 184, !13, i64 200, !16, i64 208, !13, i64 224}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTSN3vox4spanIKNS_4math8Float4x4EEE", !6, i64 0, !13, i64 8}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTSN3vox4spanIKtEE", !6, i64 0, !13, i64 8}
!15 = !{!"_ZTSN3vox4spanIKfEE", !6, i64 0, !13, i64 8}
!16 = !{!"_ZTSN3vox4spanIfEE", !6, i64 0, !13, i64 8}
!17 = !{!11, !11, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"short", !7, i64 0}
!20 = !{!7, !7, i64 0}
!21 = !{!10, !13, i64 56}
!22 = !{!10, !13, i64 104}
!23 = !{!10, !13, i64 176}
!24 = distinct !{!24, !25}
!25 = !{!"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"

@.str = external hidden unnamed_addr constant [75 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [93 x i8], align 1
@__PRETTY_FUNCTION__._ZN3vox8geometry14SkinningPNOIT1ERKNS0_11SkinningJobE = external hidden unnamed_addr constant [56 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3vox4spanIKfE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vox8geometry14SkinningPNOIT1ERKNS0_11SkinningJobE(ptr noundef nonnull align 8 dereferenceable(232) %0) local_unnamed_addr #1 {
  %2 = load i32, ptr %0, align 8, !tbaa !5
  %.not = icmp eq i32 %2, 0
  br i1 %.not, label %.critedge, label %3

3:                                                ; preds = %1
  %4 = getelementptr inbounds i8, ptr %0, i64 88
  %5 = tail call noundef zeroext i1 @_ZNK3vox4spanIKfE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  br i1 %5, label %.critedge, label %6

6:                                                ; preds = %3
  %7 = getelementptr inbounds i8, ptr %0, i64 112
  %8 = tail call noundef zeroext i1 @_ZNK3vox4spanIKfE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  br i1 %8, label %9, label %.critedge

.critedge:                                        ; preds = %3, %1, %6
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 415, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3vox8geometry14SkinningPNOIT1ERKNS0_11SkinningJobE) #4
  unreachable

9:                                                ; preds = %6
  %10 = getelementptr inbounds i8, ptr %0, i64 40
  %11 = tail call noundef ptr @_ZNK3vox4spanIKtE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
  %12 = tail call noundef ptr @_ZNK3vox4spanIKfE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %13 = getelementptr inbounds i8, ptr %0, i64 160
  %14 = tail call noundef ptr @_ZNK3vox4spanIfE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %13)
  %15 = load i32, ptr %0, align 8, !tbaa !5
  %16 = icmp sgt i32 %15, 1
  br i1 %16, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %9
  %17 = getelementptr inbounds i8, ptr %0, i64 8
  %18 = getelementptr inbounds i8, ptr %0, i64 56
  %19 = getelementptr inbounds i8, ptr %0, i64 104
  %20 = getelementptr inbounds i8, ptr %0, i64 176
  %21 = add nsw i32 %15, -2
  br label %28

._crit_edge:                                      ; preds = %28, %9
  %.036.lcssa = phi ptr [ %14, %9 ], [ %45, %28 ]
  %.035.lcssa = phi ptr [ %12, %9 ], [ %41, %28 ]
  %.0.lcssa = phi ptr [ %11, %9 ], [ %37, %28 ]
  %22 = load i16, ptr %.0.lcssa, align 2, !tbaa !16
  %23 = getelementptr inbounds i8, ptr %0, i64 8
  %24 = zext i16 %22 to i64
  %25 = tail call noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %23, i64 noundef %24)
  %26 = tail call noundef <4 x float> @_ZN3vox4math11simd_float49Load3PtrUEPKf(ptr noundef %.035.lcssa)
  %27 = tail call noundef <4 x float> @_ZN3vox4math14TransformPointERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64) %25, <4 x float> noundef %26)
  tail call void @_ZN3vox4math10Store3PtrUEDv4_fPf(<4 x float> noundef %27, ptr noundef %.036.lcssa)
  ret void

28:                                               ; preds = %.lr.ph, %28
  %.041 = phi ptr [ %11, %.lr.ph ], [ %37, %28 ]
  %.03540 = phi ptr [ %12, %.lr.ph ], [ %41, %28 ]
  %.03639 = phi ptr [ %14, %.lr.ph ], [ %45, %28 ]
  %.03738 = phi i32 [ 0, %.lr.ph ], [ %46, %28 ]
  %29 = load i16, ptr %.041, align 2, !tbaa !16
  %30 = zext i16 %29 to i64
  %31 = tail call noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %17, i64 noundef %30)
  %32 = tail call noundef <4 x float> @_ZN3vox4math11simd_float48LoadPtrUEPKf(ptr noundef %.03540)
  %33 = tail call noundef <4 x float> @_ZN3vox4math14TransformPointERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64) %31, <4 x float> noundef %32)
  tail call void @_ZN3vox4math10Store3PtrUEDv4_fPf(<4 x float> noundef %33, ptr noundef %.03639)
  %34 = ptrtoint ptr %.041 to i64
  %35 = load i64, ptr %18, align 8, !tbaa !18
  %36 = add i64 %35, %34
  %37 = inttoptr i64 %36 to ptr
  %38 = ptrtoint ptr %.03540 to i64
  %39 = load i64, ptr %19, align 8, !tbaa !19
  %40 = add i64 %39, %38
  %41 = inttoptr i64 %40 to ptr
  %42 = ptrtoint ptr %.03639 to i64
  %43 = load i64, ptr %20, align 8, !tbaa !20
  %44 = add i64 %43, %42
  %45 = inttoptr i64 %44 to ptr
  %46 = add nuw nsw i32 %.03738, 1
  %exitcond.not = icmp eq i32 %.03738, %21
  br i1 %exitcond.not, label %._crit_edge, label %28, !llvm.loop !21
}

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

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

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math11simd_float48LoadPtrUEPKf(ptr noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math14TransformPointERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64), <4 x float> noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3vox4math10Store3PtrUEDv4_fPf(<4 x float> noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math11simd_float49Load3PtrUEPKf(ptr noundef) local_unnamed_addr #3

attributes #0 = { 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 #1 = { mustprogress uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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, !7, i64 0}
!6 = !{!"_ZTSN3vox8geometry11SkinningJobE", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 24, !13, i64 40, !12, i64 56, !14, i64 64, !12, i64 80, !14, i64 88, !12, i64 104, !14, i64 112, !12, i64 128, !14, i64 136, !12, i64 152, !15, i64 160, !12, i64 176, !15, i64 184, !12, i64 200, !15, i64 208, !12, i64 224}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN3vox4spanIKNS_4math8Float4x4EEE", !11, i64 0, !12, i64 8}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!"_ZTSN3vox4spanIKtEE", !11, i64 0, !12, i64 8}
!14 = !{!"_ZTSN3vox4spanIKfEE", !11, i64 0, !12, i64 8}
!15 = !{!"_ZTSN3vox4spanIfEE", !11, i64 0, !12, i64 8}
!16 = !{!17, !17, i64 0}
!17 = !{!"short", !8, i64 0}
!18 = !{!6, !12, i64 56}
!19 = !{!6, !12, i64 104}
!20 = !{!6, !12, i64 176}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}


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