; LLVM IR from yangfengzzz/DigitalVox3 :: vox.render/geometry/skinning_job.ll (ZN3vox8geometry15SkinningPNNOITNERKNS0_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::math::Float4x4" = type { [4 x <4 x float>] }
%"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.1 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [104 x i8], align 1
@__PRETTY_FUNCTION__._ZN3vox8geometry15SkinningPNNOITNERKNS0_11SkinningJobE = external hidden unnamed_addr constant [57 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

; 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) #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) #3

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

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

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3vox4mathplERKNS0_8Float4x4ES3_(ptr dead_on_unwind noalias writable sret(%"struct.vox::math::Float4x4") align 16, ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64)) #4

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3vox4math14ColumnMultiplyERKNS0_8Float4x4EDv4_f(ptr dead_on_unwind noalias writable sret(%"struct.vox::math::Float4x4") align 16, ptr noundef nonnull align 16 dereferenceable(64), <4 x float> noundef) #4

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vox8geometry15SkinningPNNOITNERKNS0_11SkinningJobE(ptr noundef nonnull align 8 dereferenceable(232) %0) #6 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca <4 x float>, align 16
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca <4 x float>, align 16
  %14 = alloca %"struct.vox::math::Float4x4", align 16
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca <4 x float>, align 16
  %18 = alloca %"struct.vox::math::Float4x4", align 16
  %19 = alloca %"struct.vox::math::Float4x4", align 16
  %20 = alloca %"struct.vox::math::Float4x4", align 16
  %21 = alloca %"struct.vox::math::Float4x4", align 16
  %22 = alloca ptr, align 8
  %23 = alloca <4 x float>, align 16
  %24 = alloca <4 x float>, align 16
  %25 = alloca <4 x float>, align 16
  %26 = alloca <4 x float>, align 16
  %27 = alloca <4 x float>, align 16
  %28 = alloca %"struct.vox::math::Float4x4", align 16
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca <4 x float>, align 16
  %32 = alloca %"struct.vox::math::Float4x4", align 16
  %33 = alloca %"struct.vox::math::Float4x4", align 16
  %34 = alloca %"struct.vox::math::Float4x4", align 16
  %35 = alloca %"struct.vox::math::Float4x4", align 16
  %36 = alloca ptr, align 8
  %37 = alloca <4 x float>, align 16
  %38 = alloca <4 x float>, align 16
  %39 = alloca <4 x float>, align 16
  %40 = alloca <4 x float>, align 16
  store ptr %0, ptr %2, align 8, !tbaa !5
  %41 = load ptr, ptr %2, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %41, i32 0, i32 0
  %43 = load i32, ptr %42, align 8, !tbaa !9
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %45, label %57

45:                                               ; preds = %1
  %46 = load ptr, ptr %2, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %46, i32 0, i32 8
  %48 = call noundef zeroext i1 @_ZNK3vox4spanIKfE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %47)
  br i1 %48, label %57, label %49

49:                                               ; preds = %45
  %50 = load ptr, ptr %2, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %50, i32 0, i32 10
  %52 = call noundef zeroext i1 @_ZNK3vox4spanIKfE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %51)
  br i1 %52, label %57, label %53

53:                                               ; preds = %49
  %54 = load ptr, ptr %2, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %54, i32 0, i32 12
  %56 = call noundef zeroext i1 @_ZNK3vox4spanIKfE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %55)
  br label %57

57:                                               ; preds = %53, %49, %45, %1
  %58 = phi i1 [ false, %49 ], [ false, %45 ], [ false, %1 ], [ %56, %53 ]
  br i1 %58, label %59, label %60

59:                                               ; preds = %57
  br label %62

60:                                               ; preds = %57
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 436, ptr noundef @__PRETTY_FUNCTION__._ZN3vox8geometry15SkinningPNNOITNERKNS0_11SkinningJobE) #7
  unreachable

61:                                               ; No predecessors!
  br label %62

62:                                               ; preds = %61, %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #8
  %63 = load ptr, ptr %2, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %63, i32 0, i32 4
  %65 = call noundef ptr @_ZNK3vox4spanIKtE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %64)
  store ptr %65, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  %66 = load ptr, ptr %2, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %66, i32 0, i32 8
  %68 = call noundef ptr @_ZNK3vox4spanIKfE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %67)
  store ptr %68, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  %69 = load ptr, ptr %2, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %69, i32 0, i32 14
  %71 = call noundef ptr @_ZNK3vox4spanIfE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %70)
  store ptr %71, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %72 = load ptr, ptr %2, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %72, i32 0, i32 10
  %74 = call noundef ptr @_ZNK3vox4spanIKfE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %73)
  store ptr %74, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %75 = load ptr, ptr %2, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %75, i32 0, i32 16
  %77 = call noundef ptr @_ZNK3vox4spanIfE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %76)
  store ptr %77, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #8
  %78 = call noundef <4 x float> @_ZN3vox4math11simd_float43oneEv()
  store <4 x float> %78, ptr %8, align 16, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %79 = load ptr, ptr %2, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %79, i32 0, i32 6
  %81 = call noundef ptr @_ZNK3vox4spanIKfE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %80)
  store ptr %81, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %82 = load ptr, ptr %2, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %82, i32 0, i32 0
  %84 = load i32, ptr %83, align 8, !tbaa !9
  %85 = sub nsw i32 %84, 1
  store i32 %85, ptr %10, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %11, align 4, !tbaa !18
  br label %86

86:                                               ; preds = %203, %62
  %87 = load i32, ptr %11, align 4, !tbaa !18
  %88 = load i32, ptr %10, align 4, !tbaa !18
  %89 = icmp slt i32 %87, %88
  br i1 %89, label %91, label %90

90:                                               ; preds = %86
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %206

91:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #8
  %92 = load ptr, ptr %9, align 8, !tbaa !5
  %93 = getelementptr inbounds float, ptr %92, i64 0
  %94 = call noundef <4 x float> @_ZN3vox4math11simd_float49Load1PtrUEPKf(ptr noundef %93)
  store <4 x float> %94, ptr %13, align 16, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 64, ptr %14) #8
  %95 = load ptr, ptr %2, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %95, i32 0, i32 2
  %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 !19
  %100 = zext i16 %99 to i64
  %101 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %96, i64 noundef %100)
  %102 = load <4 x float>, ptr %13, align 16, !tbaa !17
  call void @_ZN3vox4math14ColumnMultiplyERKNS0_8Float4x4EDv4_f(ptr dead_on_unwind writable sret(%"struct.vox::math::Float4x4") align 16 %14, ptr noundef nonnull align 16 dereferenceable(64) %101, <4 x float> noundef %102)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %103 = load ptr, ptr %2, align 8, !tbaa !5
  %104 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %103, i32 0, i32 1
  %105 = load i32, ptr %104, align 4, !tbaa !21
  %106 = sub nsw i32 %105, 1
  store i32 %106, ptr %15, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 1, ptr %16, align 4, !tbaa !18
  br label %107

107:                                              ; preds = %131, %91
  %108 = load i32, ptr %16, align 4, !tbaa !18
  %109 = load i32, ptr %15, align 4, !tbaa !18
  %110 = icmp slt i32 %108, %109
  br i1 %110, label %112, label %111

111:                                              ; preds = %107
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %134

112:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #8
  %113 = load ptr, ptr %9, align 8, !tbaa !5
  %114 = load i32, ptr %16, align 4, !tbaa !18
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds float, ptr %113, i64 %115
  %117 = call noundef <4 x float> @_ZN3vox4math11simd_float49Load1PtrUEPKf(ptr noundef %116)
  store <4 x float> %117, ptr %17, align 16, !tbaa !17
  %118 = load <4 x float>, ptr %13, align 16, !tbaa !17
  %119 = load <4 x float>, ptr %17, align 16, !tbaa !17
  %120 = fadd <4 x float> %118, %119
  store <4 x float> %120, ptr %13, align 16, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 64, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr %19) #8
  %121 = load ptr, ptr %2, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %121, i32 0, i32 2
  %123 = load ptr, ptr %3, align 8, !tbaa !5
  %124 = load i32, ptr %16, align 4, !tbaa !18
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds i16, ptr %123, i64 %125
  %127 = load i16, ptr %126, align 2, !tbaa !19
  %128 = zext i16 %127 to i64
  %129 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %122, i64 noundef %128)
  %130 = load <4 x float>, ptr %17, align 16, !tbaa !17
  call void @_ZN3vox4math14ColumnMultiplyERKNS0_8Float4x4EDv4_f(ptr dead_on_unwind writable sret(%"struct.vox::math::Float4x4") align 16 %19, ptr noundef nonnull align 16 dereferenceable(64) %129, <4 x float> noundef %130)
  call void @_ZN3vox4mathplERKNS0_8Float4x4ES3_(ptr dead_on_unwind writable sret(%"struct.vox::math::Float4x4") align 16 %18, ptr noundef nonnull align 16 dereferenceable(64) %14, ptr noundef nonnull align 16 dereferenceable(64) %19)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %14, ptr align 16 %18, i64 64, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 64, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #8
  br label %131

131:                                              ; preds = %112
  %132 = load i32, ptr %16, align 4, !tbaa !18
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %16, align 4, !tbaa !18
  br label %107, !llvm.loop !23

134:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #8
  %135 = load ptr, ptr %2, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %135, i32 0, i32 2
  %137 = load ptr, ptr %3, align 8, !tbaa !5
  %138 = load i32, ptr %15, align 4, !tbaa !18
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds i16, ptr %137, i64 %139
  %141 = load i16, ptr %140, align 2, !tbaa !19
  %142 = zext i16 %141 to i64
  %143 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %136, i64 noundef %142)
  %144 = load <4 x float>, ptr %8, align 16, !tbaa !17
  %145 = load <4 x float>, ptr %13, align 16, !tbaa !17
  %146 = fsub <4 x float> %144, %145
  call void @_ZN3vox4math14ColumnMultiplyERKNS0_8Float4x4EDv4_f(ptr dead_on_unwind writable sret(%"struct.vox::math::Float4x4") align 16 %21, ptr noundef nonnull align 16 dereferenceable(64) %143, <4 x float> noundef %146)
  call void @_ZN3vox4mathplERKNS0_8Float4x4ES3_(ptr dead_on_unwind writable sret(%"struct.vox::math::Float4x4") align 16 %20, ptr noundef nonnull align 16 dereferenceable(64) %14, ptr noundef nonnull align 16 dereferenceable(64) %21)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %14, ptr align 16 %20, i64 64, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  store ptr %14, ptr %22, align 8, !tbaa !5
  %147 = load ptr, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #8
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  %149 = call noundef <4 x float> @_ZN3vox4math11simd_float48LoadPtrUEPKf(ptr noundef %148)
  store <4 x float> %149, ptr %23, align 16, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #8
  %150 = load <4 x float>, ptr %23, align 16, !tbaa !17
  %151 = call noundef <4 x float> @_ZN3vox4math14TransformPointERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64) %14, <4 x float> noundef %150)
  store <4 x float> %151, ptr %24, align 16, !tbaa !17
  %152 = load <4 x float>, ptr %24, align 16, !tbaa !17
  %153 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN3vox4math10Store3PtrUEDv4_fPf(<4 x float> noundef %152, ptr noundef %153)
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #8
  %154 = load ptr, ptr %6, align 8, !tbaa !5
  %155 = call noundef <4 x float> @_ZN3vox4math11simd_float48LoadPtrUEPKf(ptr noundef %154)
  store <4 x float> %155, ptr %25, align 16, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #8
  %156 = load ptr, ptr %22, align 8, !tbaa !5
  %157 = load <4 x float>, ptr %25, align 16, !tbaa !17
  %158 = call noundef <4 x float> @_ZN3vox4math15TransformVectorERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64) %156, <4 x float> noundef %157)
  store <4 x float> %158, ptr %26, align 16, !tbaa !17
  %159 = load <4 x float>, ptr %26, align 16, !tbaa !17
  %160 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN3vox4math10Store3PtrUEDv4_fPf(<4 x float> noundef %159, ptr noundef %160)
  %161 = load ptr, ptr %3, align 8, !tbaa !5
  %162 = ptrtoint ptr %161 to i64
  %163 = load ptr, ptr %2, align 8, !tbaa !5
  %164 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %163, i32 0, i32 5
  %165 = load i64, ptr %164, align 8, !tbaa !25
  %166 = add i64 %162, %165
  %167 = inttoptr i64 %166 to ptr
  store ptr %167, ptr %3, align 8, !tbaa !5
  %168 = load ptr, ptr %4, align 8, !tbaa !5
  %169 = ptrtoint ptr %168 to i64
  %170 = load ptr, ptr %2, align 8, !tbaa !5
  %171 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %170, i32 0, i32 9
  %172 = load i64, ptr %171, align 8, !tbaa !26
  %173 = add i64 %169, %172
  %174 = inttoptr i64 %173 to ptr
  store ptr %174, ptr %4, align 8, !tbaa !5
  %175 = load ptr, ptr %5, align 8, !tbaa !5
  %176 = ptrtoint ptr %175 to i64
  %177 = load ptr, ptr %2, align 8, !tbaa !5
  %178 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %177, i32 0, i32 15
  %179 = load i64, ptr %178, align 8, !tbaa !27
  %180 = add i64 %176, %179
  %181 = inttoptr i64 %180 to ptr
  store ptr %181, ptr %5, align 8, !tbaa !5
  %182 = load ptr, ptr %6, align 8, !tbaa !5
  %183 = ptrtoint ptr %182 to i64
  %184 = load ptr, ptr %2, align 8, !tbaa !5
  %185 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %184, i32 0, i32 11
  %186 = load i64, ptr %185, align 8, !tbaa !28
  %187 = add i64 %183, %186
  %188 = inttoptr i64 %187 to ptr
  store ptr %188, ptr %6, align 8, !tbaa !5
  %189 = load ptr, ptr %7, align 8, !tbaa !5
  %190 = ptrtoint ptr %189 to i64
  %191 = load ptr, ptr %2, align 8, !tbaa !5
  %192 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %191, i32 0, i32 17
  %193 = load i64, ptr %192, align 8, !tbaa !29
  %194 = add i64 %190, %193
  %195 = inttoptr i64 %194 to ptr
  store ptr %195, ptr %7, align 8, !tbaa !5
  %196 = load ptr, ptr %9, align 8, !tbaa !5
  %197 = ptrtoint ptr %196 to i64
  %198 = load ptr, ptr %2, align 8, !tbaa !5
  %199 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %198, i32 0, i32 7
  %200 = load i64, ptr %199, align 8, !tbaa !30
  %201 = add i64 %197, %200
  %202 = inttoptr i64 %201 to ptr
  store ptr %202, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #8
  br label %203

203:                                              ; preds = %134
  %204 = load i32, ptr %11, align 4, !tbaa !18
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %11, align 4, !tbaa !18
  br label %86, !llvm.loop !31

206:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #8
  %207 = load ptr, ptr %9, align 8, !tbaa !5
  %208 = getelementptr inbounds float, ptr %207, i64 0
  %209 = call noundef <4 x float> @_ZN3vox4math11simd_float49Load1PtrUEPKf(ptr noundef %208)
  store <4 x float> %209, ptr %27, align 16, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 64, ptr %28) #8
  %210 = load ptr, ptr %2, align 8, !tbaa !5
  %211 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %210, i32 0, i32 2
  %212 = load ptr, ptr %3, align 8, !tbaa !5
  %213 = getelementptr inbounds i16, ptr %212, i64 0
  %214 = load i16, ptr %213, align 2, !tbaa !19
  %215 = zext i16 %214 to i64
  %216 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %211, i64 noundef %215)
  %217 = load <4 x float>, ptr %27, align 16, !tbaa !17
  call void @_ZN3vox4math14ColumnMultiplyERKNS0_8Float4x4EDv4_f(ptr dead_on_unwind writable sret(%"struct.vox::math::Float4x4") align 16 %28, ptr noundef nonnull align 16 dereferenceable(64) %216, <4 x float> noundef %217)
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  %218 = load ptr, ptr %2, align 8, !tbaa !5
  %219 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %218, i32 0, i32 1
  %220 = load i32, ptr %219, align 4, !tbaa !21
  %221 = sub nsw i32 %220, 1
  store i32 %221, ptr %29, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  store i32 1, ptr %30, align 4, !tbaa !18
  br label %222

222:                                              ; preds = %246, %206
  %223 = load i32, ptr %30, align 4, !tbaa !18
  %224 = load i32, ptr %29, align 4, !tbaa !18
  %225 = icmp slt i32 %223, %224
  br i1 %225, label %227, label %226

226:                                              ; preds = %222
  store i32 8, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  br label %249

227:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #8
  %228 = load ptr, ptr %9, align 8, !tbaa !5
  %229 = load i32, ptr %30, align 4, !tbaa !18
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds float, ptr %228, i64 %230
  %232 = call noundef <4 x float> @_ZN3vox4math11simd_float49Load1PtrUEPKf(ptr noundef %231)
  store <4 x float> %232, ptr %31, align 16, !tbaa !17
  %233 = load <4 x float>, ptr %27, align 16, !tbaa !17
  %234 = load <4 x float>, ptr %31, align 16, !tbaa !17
  %235 = fadd <4 x float> %233, %234
  store <4 x float> %235, ptr %27, align 16, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 64, ptr %32) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr %33) #8
  %236 = load ptr, ptr %2, align 8, !tbaa !5
  %237 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %236, i32 0, i32 2
  %238 = load ptr, ptr %3, align 8, !tbaa !5
  %239 = load i32, ptr %30, align 4, !tbaa !18
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds i16, ptr %238, i64 %240
  %242 = load i16, ptr %241, align 2, !tbaa !19
  %243 = zext i16 %242 to i64
  %244 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %237, i64 noundef %243)
  %245 = load <4 x float>, ptr %31, align 16, !tbaa !17
  call void @_ZN3vox4math14ColumnMultiplyERKNS0_8Float4x4EDv4_f(ptr dead_on_unwind writable sret(%"struct.vox::math::Float4x4") align 16 %33, ptr noundef nonnull align 16 dereferenceable(64) %244, <4 x float> noundef %245)
  call void @_ZN3vox4mathplERKNS0_8Float4x4ES3_(ptr dead_on_unwind writable sret(%"struct.vox::math::Float4x4") align 16 %32, ptr noundef nonnull align 16 dereferenceable(64) %28, ptr noundef nonnull align 16 dereferenceable(64) %33)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %28, ptr align 16 %32, i64 64, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 64, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #8
  br label %246

246:                                              ; preds = %227
  %247 = load i32, ptr %30, align 4, !tbaa !18
  %248 = add nsw i32 %247, 1
  store i32 %248, ptr %30, align 4, !tbaa !18
  br label %222, !llvm.loop !32

249:                                              ; preds = %226
  call void @llvm.lifetime.start.p0(i64 64, ptr %34) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr %35) #8
  %250 = load ptr, ptr %2, align 8, !tbaa !5
  %251 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %250, i32 0, i32 2
  %252 = load ptr, ptr %3, align 8, !tbaa !5
  %253 = load i32, ptr %29, align 4, !tbaa !18
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds i16, ptr %252, i64 %254
  %256 = load i16, ptr %255, align 2, !tbaa !19
  %257 = zext i16 %256 to i64
  %258 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %251, i64 noundef %257)
  %259 = load <4 x float>, ptr %8, align 16, !tbaa !17
  %260 = load <4 x float>, ptr %27, align 16, !tbaa !17
  %261 = fsub <4 x float> %259, %260
  call void @_ZN3vox4math14ColumnMultiplyERKNS0_8Float4x4EDv4_f(ptr dead_on_unwind writable sret(%"struct.vox::math::Float4x4") align 16 %35, ptr noundef nonnull align 16 dereferenceable(64) %258, <4 x float> noundef %261)
  call void @_ZN3vox4mathplERKNS0_8Float4x4ES3_(ptr dead_on_unwind writable sret(%"struct.vox::math::Float4x4") align 16 %34, ptr noundef nonnull align 16 dereferenceable(64) %28, ptr noundef nonnull align 16 dereferenceable(64) %35)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %28, ptr align 16 %34, i64 64, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 64, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %34) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #8
  store ptr %28, ptr %36, align 8, !tbaa !5
  %262 = load ptr, ptr %36, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #8
  %263 = load ptr, ptr %4, align 8, !tbaa !5
  %264 = call noundef <4 x float> @_ZN3vox4math11simd_float49Load3PtrUEPKf(ptr noundef %263)
  store <4 x float> %264, ptr %37, align 16, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #8
  %265 = load <4 x float>, ptr %37, align 16, !tbaa !17
  %266 = call noundef <4 x float> @_ZN3vox4math14TransformPointERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64) %28, <4 x float> noundef %265)
  store <4 x float> %266, ptr %38, align 16, !tbaa !17
  %267 = load <4 x float>, ptr %38, align 16, !tbaa !17
  %268 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN3vox4math10Store3PtrUEDv4_fPf(<4 x float> noundef %267, ptr noundef %268)
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #8
  %269 = load ptr, ptr %6, align 8, !tbaa !5
  %270 = call noundef <4 x float> @_ZN3vox4math11simd_float49Load3PtrUEPKf(ptr noundef %269)
  store <4 x float> %270, ptr %39, align 16, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #8
  %271 = load ptr, ptr %36, align 8, !tbaa !5
  %272 = load <4 x float>, ptr %39, align 16, !tbaa !17
  %273 = call noundef <4 x float> @_ZN3vox4math15TransformVectorERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64) %271, <4 x float> noundef %272)
  store <4 x float> %273, ptr %40, align 16, !tbaa !17
  %274 = load <4 x float>, ptr %40, align 16, !tbaa !17
  %275 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN3vox4math10Store3PtrUEDv4_fPf(<4 x float> noundef %274, ptr noundef %275)
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  ret void
}

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 = { 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 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { noreturn nounwind }
attributes #8 = { 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 = !{!7, !7, i64 0}
!18 = !{!11, !11, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"short", !7, i64 0}
!21 = !{!10, !11, i64 4}
!22 = !{i64 0, i64 64, !17}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!10, !13, i64 56}
!26 = !{!10, !13, i64 104}
!27 = !{!10, !13, i64 176}
!28 = !{!10, !13, i64 128}
!29 = !{!10, !13, i64 200}
!30 = !{!10, !13, i64 80}
!31 = distinct !{!31, !24}
!32 = distinct !{!32, !24}


; 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.vox::math::Float4x4" = type { [4 x <4 x float>] }

@.str.1 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [104 x i8], align 1
@__PRETTY_FUNCTION__._ZN3vox8geometry15SkinningPNNOITNERKNS0_11SkinningJobE = external hidden unnamed_addr constant [57 x i8], align 1

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

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

; Function Attrs: mustprogress 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) 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 #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3vox4spanIfE5beginEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #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) local_unnamed_addr #1 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

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3vox4mathplERKNS0_8Float4x4ES3_(ptr dead_on_unwind noalias writable sret(%"struct.vox::math::Float4x4") align 16, ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64)) local_unnamed_addr #4

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3vox4math14ColumnMultiplyERKNS0_8Float4x4EDv4_f(ptr dead_on_unwind noalias writable sret(%"struct.vox::math::Float4x4") align 16, ptr noundef nonnull align 16 dereferenceable(64), <4 x float> noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vox8geometry15SkinningPNNOITNERKNS0_11SkinningJobE(ptr noundef nonnull align 8 dereferenceable(232) %0) local_unnamed_addr #6 {
  %2 = alloca %"struct.vox::math::Float4x4", align 16
  %3 = alloca %"struct.vox::math::Float4x4", align 16
  %4 = alloca %"struct.vox::math::Float4x4", align 16
  %5 = alloca %"struct.vox::math::Float4x4", align 16
  %6 = alloca %"struct.vox::math::Float4x4", align 16
  %7 = alloca %"struct.vox::math::Float4x4", align 16
  %8 = alloca %"struct.vox::math::Float4x4", align 16
  %9 = alloca %"struct.vox::math::Float4x4", align 16
  %10 = alloca %"struct.vox::math::Float4x4", align 16
  %11 = alloca %"struct.vox::math::Float4x4", align 16
  %12 = load i32, ptr %0, align 8, !tbaa !5
  %.not = icmp eq i32 %12, 0
  br i1 %.not, label %.critedge, label %13

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

16:                                               ; preds = %13
  %17 = getelementptr inbounds i8, ptr %0, i64 112
  %18 = tail call noundef zeroext i1 @_ZNK3vox4spanIKfE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
  br i1 %18, label %.critedge, label %19

19:                                               ; preds = %16
  %20 = getelementptr inbounds i8, ptr %0, i64 136
  %21 = tail call noundef zeroext i1 @_ZNK3vox4spanIKfE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %20)
  br i1 %21, label %22, label %.critedge

.critedge:                                        ; preds = %16, %13, %1, %19
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 436, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3vox8geometry15SkinningPNNOITNERKNS0_11SkinningJobE) #7
  unreachable

22:                                               ; preds = %19
  %23 = getelementptr inbounds i8, ptr %0, i64 40
  %24 = tail call noundef ptr @_ZNK3vox4spanIKtE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %23)
  %25 = tail call noundef ptr @_ZNK3vox4spanIKfE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %14)
  %26 = getelementptr inbounds i8, ptr %0, i64 160
  %27 = tail call noundef ptr @_ZNK3vox4spanIfE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %26)
  %28 = tail call noundef ptr @_ZNK3vox4spanIKfE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
  %29 = getelementptr inbounds i8, ptr %0, i64 184
  %30 = tail call noundef ptr @_ZNK3vox4spanIfE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %29)
  %31 = tail call noundef <4 x float> @_ZN3vox4math11simd_float43oneEv()
  %32 = getelementptr inbounds i8, ptr %0, i64 64
  %33 = tail call noundef ptr @_ZNK3vox4spanIKfE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %32)
  %34 = load i32, ptr %0, align 8, !tbaa !5
  %35 = icmp sgt i32 %34, 1
  br i1 %35, label %.lr.ph109, label %._crit_edge110

.lr.ph109:                                        ; preds = %22
  %36 = getelementptr inbounds i8, ptr %0, i64 8
  %37 = getelementptr inbounds i8, ptr %0, i64 4
  %38 = getelementptr inbounds i8, ptr %0, i64 56
  %39 = getelementptr inbounds i8, ptr %0, i64 104
  %40 = getelementptr inbounds i8, ptr %0, i64 176
  %41 = getelementptr inbounds i8, ptr %0, i64 128
  %42 = getelementptr inbounds i8, ptr %0, i64 200
  %43 = getelementptr inbounds i8, ptr %0, i64 80
  %44 = add nsw i32 %34, -2
  br label %54

._crit_edge110:                                   ; preds = %._crit_edge, %22
  %.091.lcssa = phi ptr [ %33, %22 ], [ %95, %._crit_edge ]
  %.090.lcssa = phi ptr [ %30, %22 ], [ %91, %._crit_edge ]
  %.089.lcssa = phi ptr [ %28, %22 ], [ %87, %._crit_edge ]
  %.088.lcssa = phi ptr [ %27, %22 ], [ %83, %._crit_edge ]
  %.087.lcssa = phi ptr [ %25, %22 ], [ %79, %._crit_edge ]
  %.0.lcssa = phi ptr [ %24, %22 ], [ %75, %._crit_edge ]
  %45 = call noundef <4 x float> @_ZN3vox4math11simd_float49Load1PtrUEPKf(ptr noundef %.091.lcssa)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #8
  %46 = getelementptr inbounds i8, ptr %0, i64 8
  %47 = load i16, ptr %.0.lcssa, align 2, !tbaa !16
  %48 = zext i16 %47 to i64
  %49 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %46, i64 noundef %48)
  call void @_ZN3vox4math14ColumnMultiplyERKNS0_8Float4x4EDv4_f(ptr dead_on_unwind nonnull writable sret(%"struct.vox::math::Float4x4") align 16 %7, ptr noundef nonnull align 16 dereferenceable(64) %49, <4 x float> noundef %45)
  %50 = getelementptr inbounds i8, ptr %0, i64 4
  %51 = load i32, ptr %50, align 4, !tbaa !18
  %52 = add i32 %51, -1
  %53 = icmp sgt i32 %51, 2
  br i1 %53, label %.lr.ph120.preheader, label %._crit_edge121

.lr.ph120.preheader:                              ; preds = %._crit_edge110
  %wide.trip.count135 = zext nneg i32 %52 to i64
  br label %.lr.ph120

54:                                               ; preds = %.lr.ph109, %._crit_edge
  %.0107 = phi ptr [ %24, %.lr.ph109 ], [ %75, %._crit_edge ]
  %.087106 = phi ptr [ %25, %.lr.ph109 ], [ %79, %._crit_edge ]
  %.088105 = phi ptr [ %27, %.lr.ph109 ], [ %83, %._crit_edge ]
  %.089104 = phi ptr [ %28, %.lr.ph109 ], [ %87, %._crit_edge ]
  %.090103 = phi ptr [ %30, %.lr.ph109 ], [ %91, %._crit_edge ]
  %.091102 = phi ptr [ %33, %.lr.ph109 ], [ %95, %._crit_edge ]
  %.093101 = phi i32 [ 0, %.lr.ph109 ], [ %96, %._crit_edge ]
  %55 = call noundef <4 x float> @_ZN3vox4math11simd_float49Load1PtrUEPKf(ptr noundef %.091102)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %2) #8
  %56 = load i16, ptr %.0107, align 2, !tbaa !16
  %57 = zext i16 %56 to i64
  %58 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %36, i64 noundef %57)
  call void @_ZN3vox4math14ColumnMultiplyERKNS0_8Float4x4EDv4_f(ptr dead_on_unwind nonnull writable sret(%"struct.vox::math::Float4x4") align 16 %2, ptr noundef nonnull align 16 dereferenceable(64) %58, <4 x float> noundef %55)
  %59 = load i32, ptr %37, align 4, !tbaa !18
  %60 = add i32 %59, -1
  %61 = icmp sgt i32 %59, 2
  br i1 %61, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %54
  %wide.trip.count = zext nneg i32 %60 to i64
  br label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %54
  %.095.lcssa = phi <4 x float> [ %55, %54 ], [ %99, %.lr.ph ]
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #8
  %62 = sext i32 %60 to i64
  %63 = getelementptr inbounds i16, ptr %.0107, i64 %62
  %64 = load i16, ptr %63, align 2, !tbaa !16
  %65 = zext i16 %64 to i64
  %66 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %36, i64 noundef %65)
  %67 = fsub <4 x float> %31, %.095.lcssa
  call void @_ZN3vox4math14ColumnMultiplyERKNS0_8Float4x4EDv4_f(ptr dead_on_unwind nonnull writable sret(%"struct.vox::math::Float4x4") align 16 %6, ptr noundef nonnull align 16 dereferenceable(64) %66, <4 x float> noundef %67)
  call void @_ZN3vox4mathplERKNS0_8Float4x4ES3_(ptr dead_on_unwind nonnull writable sret(%"struct.vox::math::Float4x4") align 16 %5, ptr noundef nonnull align 16 dereferenceable(64) %2, ptr noundef nonnull align 16 dereferenceable(64) %6)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %2, ptr noundef nonnull align 16 dereferenceable(64) %5, i64 64, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #8
  %68 = call noundef <4 x float> @_ZN3vox4math11simd_float48LoadPtrUEPKf(ptr noundef %.087106)
  %69 = call noundef <4 x float> @_ZN3vox4math14TransformPointERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64) %2, <4 x float> noundef %68)
  call void @_ZN3vox4math10Store3PtrUEDv4_fPf(<4 x float> noundef %69, ptr noundef %.088105)
  %70 = call noundef <4 x float> @_ZN3vox4math11simd_float48LoadPtrUEPKf(ptr noundef %.089104)
  %71 = call noundef <4 x float> @_ZN3vox4math15TransformVectorERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64) %2, <4 x float> noundef %70)
  call void @_ZN3vox4math10Store3PtrUEDv4_fPf(<4 x float> noundef %71, ptr noundef %.090103)
  %72 = ptrtoint ptr %.0107 to i64
  %73 = load i64, ptr %38, align 8, !tbaa !21
  %74 = add i64 %73, %72
  %75 = inttoptr i64 %74 to ptr
  %76 = ptrtoint ptr %.087106 to i64
  %77 = load i64, ptr %39, align 8, !tbaa !22
  %78 = add i64 %77, %76
  %79 = inttoptr i64 %78 to ptr
  %80 = ptrtoint ptr %.088105 to i64
  %81 = load i64, ptr %40, align 8, !tbaa !23
  %82 = add i64 %81, %80
  %83 = inttoptr i64 %82 to ptr
  %84 = ptrtoint ptr %.089104 to i64
  %85 = load i64, ptr %41, align 8, !tbaa !24
  %86 = add i64 %85, %84
  %87 = inttoptr i64 %86 to ptr
  %88 = ptrtoint ptr %.090103 to i64
  %89 = load i64, ptr %42, align 8, !tbaa !25
  %90 = add i64 %89, %88
  %91 = inttoptr i64 %90 to ptr
  %92 = ptrtoint ptr %.091102 to i64
  %93 = load i64, ptr %43, align 8, !tbaa !26
  %94 = add i64 %93, %92
  %95 = inttoptr i64 %94 to ptr
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #8
  %96 = add nuw nsw i32 %.093101, 1
  %exitcond131.not = icmp eq i32 %.093101, %44
  br i1 %exitcond131.not, label %._crit_edge110, label %54, !llvm.loop !27

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %.095100 = phi <4 x float> [ %55, %.lr.ph.preheader ], [ %99, %.lr.ph ]
  %97 = getelementptr inbounds float, ptr %.091102, i64 %indvars.iv
  %98 = call noundef <4 x float> @_ZN3vox4math11simd_float49Load1PtrUEPKf(ptr noundef nonnull %97)
  %99 = fadd <4 x float> %.095100, %98
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #8
  %100 = getelementptr inbounds i16, ptr %.0107, i64 %indvars.iv
  %101 = load i16, ptr %100, align 2, !tbaa !16
  %102 = zext i16 %101 to i64
  %103 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %36, i64 noundef %102)
  call void @_ZN3vox4math14ColumnMultiplyERKNS0_8Float4x4EDv4_f(ptr dead_on_unwind nonnull writable sret(%"struct.vox::math::Float4x4") align 16 %4, ptr noundef nonnull align 16 dereferenceable(64) %103, <4 x float> noundef %98)
  call void @_ZN3vox4mathplERKNS0_8Float4x4ES3_(ptr dead_on_unwind nonnull writable sret(%"struct.vox::math::Float4x4") align 16 %3, ptr noundef nonnull align 16 dereferenceable(64) %2, ptr noundef nonnull align 16 dereferenceable(64) %4)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %2, ptr noundef nonnull align 16 dereferenceable(64) %3, i64 64, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !29

._crit_edge121:                                   ; preds = %.lr.ph120, %._crit_edge110
  %.094.lcssa = phi <4 x float> [ %45, %._crit_edge110 ], [ %116, %.lr.ph120 ]
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #8
  %104 = sext i32 %52 to i64
  %105 = getelementptr inbounds i16, ptr %.0.lcssa, i64 %104
  %106 = load i16, ptr %105, align 2, !tbaa !16
  %107 = zext i16 %106 to i64
  %108 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %46, i64 noundef %107)
  %109 = fsub <4 x float> %31, %.094.lcssa
  call void @_ZN3vox4math14ColumnMultiplyERKNS0_8Float4x4EDv4_f(ptr dead_on_unwind nonnull writable sret(%"struct.vox::math::Float4x4") align 16 %11, ptr noundef nonnull align 16 dereferenceable(64) %108, <4 x float> noundef %109)
  call void @_ZN3vox4mathplERKNS0_8Float4x4ES3_(ptr dead_on_unwind nonnull writable sret(%"struct.vox::math::Float4x4") align 16 %10, ptr noundef nonnull align 16 dereferenceable(64) %7, ptr noundef nonnull align 16 dereferenceable(64) %11)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %7, ptr noundef nonnull align 16 dereferenceable(64) %10, i64 64, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #8
  %110 = call noundef <4 x float> @_ZN3vox4math11simd_float49Load3PtrUEPKf(ptr noundef %.087.lcssa)
  %111 = call noundef <4 x float> @_ZN3vox4math14TransformPointERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64) %7, <4 x float> noundef %110)
  call void @_ZN3vox4math10Store3PtrUEDv4_fPf(<4 x float> noundef %111, ptr noundef %.088.lcssa)
  %112 = call noundef <4 x float> @_ZN3vox4math11simd_float49Load3PtrUEPKf(ptr noundef %.089.lcssa)
  %113 = call noundef <4 x float> @_ZN3vox4math15TransformVectorERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64) %7, <4 x float> noundef %112)
  call void @_ZN3vox4math10Store3PtrUEDv4_fPf(<4 x float> noundef %113, ptr noundef %.090.lcssa)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #8
  ret void

.lr.ph120:                                        ; preds = %.lr.ph120.preheader, %.lr.ph120
  %indvars.iv132 = phi i64 [ 1, %.lr.ph120.preheader ], [ %indvars.iv.next133, %.lr.ph120 ]
  %.094117 = phi <4 x float> [ %45, %.lr.ph120.preheader ], [ %116, %.lr.ph120 ]
  %114 = getelementptr inbounds float, ptr %.091.lcssa, i64 %indvars.iv132
  %115 = call noundef <4 x float> @_ZN3vox4math11simd_float49Load1PtrUEPKf(ptr noundef nonnull %114)
  %116 = fadd <4 x float> %.094117, %115
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #8
  %117 = getelementptr inbounds i16, ptr %.0.lcssa, i64 %indvars.iv132
  %118 = load i16, ptr %117, align 2, !tbaa !16
  %119 = zext i16 %118 to i64
  %120 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %46, i64 noundef %119)
  call void @_ZN3vox4math14ColumnMultiplyERKNS0_8Float4x4EDv4_f(ptr dead_on_unwind nonnull writable sret(%"struct.vox::math::Float4x4") align 16 %9, ptr noundef nonnull align 16 dereferenceable(64) %120, <4 x float> noundef %115)
  call void @_ZN3vox4mathplERKNS0_8Float4x4ES3_(ptr dead_on_unwind nonnull writable sret(%"struct.vox::math::Float4x4") align 16 %8, ptr noundef nonnull align 16 dereferenceable(64) %7, ptr noundef nonnull align 16 dereferenceable(64) %9)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %7, ptr noundef nonnull align 16 dereferenceable(64) %8, i64 64, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #8
  %indvars.iv.next133 = add nuw nsw i64 %indvars.iv132, 1
  %exitcond136.not = icmp eq i64 %indvars.iv.next133, %wide.trip.count135
  br i1 %exitcond136.not, label %._crit_edge121, label %.lr.ph120, !llvm.loop !30
}

attributes #0 = { mustprogress 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 = { 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 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { noreturn nounwind }
attributes #8 = { 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, !7, i64 4}
!19 = !{i64 0, i64 64, !20}
!20 = !{!8, !8, i64 0}
!21 = !{!6, !12, i64 56}
!22 = !{!6, !12, i64 104}
!23 = !{!6, !12, i64 176}
!24 = !{!6, !12, i64 128}
!25 = !{!6, !12, i64 200}
!26 = !{!6, !12, i64 80}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
!30 = distinct !{!30, !28}


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