; LLVM IR from yangfengzzz/DigitalVox3 :: vox.render/geometry/skinning_job.ll (ZN3vox8geometry15SkinningPNNOIT3ERKNS0_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__._ZN3vox8geometry15SkinningPNNOIT3ERKNS0_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: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math6SplatXEDv4_f(<4 x float> noundef) #4

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vox8geometry15SkinningPNNOIT3ERKNS0_11SkinningJobE(ptr noundef nonnull align 8 dereferenceable(232) %0) #5 {
  %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 <4 x float>, align 16
  %13 = alloca <4 x float>, align 16
  %14 = alloca <4 x float>, align 16
  %15 = alloca i16, align 2
  %16 = alloca i16, align 2
  %17 = alloca i16, align 2
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca <4 x float>, align 16
  %22 = alloca %"struct.vox::math::Float4x4", align 16
  %23 = alloca %"struct.vox::math::Float4x4", align 16
  %24 = alloca %"struct.vox::math::Float4x4", align 16
  %25 = alloca %"struct.vox::math::Float4x4", align 16
  %26 = alloca %"struct.vox::math::Float4x4", align 16
  %27 = alloca ptr, align 8
  %28 = alloca <4 x float>, align 16
  %29 = alloca <4 x float>, align 16
  %30 = alloca <4 x float>, align 16
  %31 = alloca <4 x float>, align 16
  %32 = alloca <4 x float>, align 16
  %33 = alloca <4 x float>, align 16
  %34 = alloca i16, align 2
  %35 = alloca i16, align 2
  %36 = alloca i16, align 2
  %37 = alloca ptr, align 8
  %38 = alloca ptr, align 8
  %39 = alloca ptr, align 8
  %40 = alloca <4 x float>, align 16
  %41 = alloca %"struct.vox::math::Float4x4", align 16
  %42 = alloca %"struct.vox::math::Float4x4", align 16
  %43 = alloca %"struct.vox::math::Float4x4", align 16
  %44 = alloca %"struct.vox::math::Float4x4", align 16
  %45 = alloca %"struct.vox::math::Float4x4", align 16
  %46 = alloca ptr, align 8
  %47 = alloca <4 x float>, align 16
  %48 = alloca <4 x float>, align 16
  %49 = alloca <4 x float>, align 16
  %50 = alloca <4 x float>, align 16
  store ptr %0, ptr %2, align 8, !tbaa !5
  %51 = load ptr, ptr %2, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %51, i32 0, i32 0
  %53 = load i32, ptr %52, align 8, !tbaa !9
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %55, label %67

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

59:                                               ; preds = %55
  %60 = load ptr, ptr %2, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %60, i32 0, i32 10
  %62 = call noundef zeroext i1 @_ZNK3vox4spanIKfE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %61)
  br i1 %62, label %67, label %63

63:                                               ; preds = %59
  %64 = load ptr, ptr %2, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %64, i32 0, i32 12
  %66 = call noundef zeroext i1 @_ZNK3vox4spanIKfE5emptyEv(ptr noundef nonnull align 8 dereferenceable(16) %65)
  br label %67

67:                                               ; preds = %63, %59, %55, %1
  %68 = phi i1 [ false, %59 ], [ false, %55 ], [ false, %1 ], [ %66, %63 ]
  br i1 %68, label %69, label %70

69:                                               ; preds = %67
  br label %72

70:                                               ; preds = %67
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 426, ptr noundef @__PRETTY_FUNCTION__._ZN3vox8geometry15SkinningPNNOIT3ERKNS0_11SkinningJobE) #6
  unreachable

71:                                               ; No predecessors!
  br label %72

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

96:                                               ; preds = %199, %72
  %97 = load i32, ptr %11, align 4, !tbaa !18
  %98 = load i32, ptr %10, align 4, !tbaa !18
  %99 = icmp slt i32 %97, %98
  br i1 %99, label %101, label %100

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

101:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #7
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = call noundef <4 x float> @_ZN3vox4math11simd_float48LoadPtrUEPKf(ptr noundef %102)
  store <4 x float> %103, ptr %12, align 16, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #7
  %104 = load <4 x float>, ptr %12, align 16, !tbaa !17
  %105 = call noundef <4 x float> @_ZN3vox4math6SplatXEDv4_f(<4 x float> noundef %104)
  store <4 x float> %105, ptr %13, align 16, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #7
  %106 = load <4 x float>, ptr %12, align 16, !tbaa !17
  %107 = call noundef <4 x float> @_ZN3vox4math6SplatYEDv4_f(<4 x float> noundef %106)
  store <4 x float> %107, ptr %14, align 16, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2, ptr %15) #7
  %108 = load ptr, ptr %3, align 8, !tbaa !5
  %109 = getelementptr inbounds i16, ptr %108, i64 0
  %110 = load i16, ptr %109, align 2, !tbaa !19
  store i16 %110, ptr %15, align 2, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 2, ptr %16) #7
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  %112 = getelementptr inbounds i16, ptr %111, i64 1
  %113 = load i16, ptr %112, align 2, !tbaa !19
  store i16 %113, ptr %16, align 2, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 2, ptr %17) #7
  %114 = load ptr, ptr %3, align 8, !tbaa !5
  %115 = getelementptr inbounds i16, ptr %114, i64 2
  %116 = load i16, ptr %115, align 2, !tbaa !19
  store i16 %116, ptr %17, align 2, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %117 = load ptr, ptr %2, align 8, !tbaa !5
  %118 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %117, i32 0, i32 2
  %119 = load i16, ptr %15, align 2, !tbaa !19
  %120 = zext i16 %119 to i64
  %121 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %118, i64 noundef %120)
  store ptr %121, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %122 = load ptr, ptr %2, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %122, i32 0, i32 2
  %124 = load i16, ptr %16, align 2, !tbaa !19
  %125 = zext i16 %124 to i64
  %126 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %123, i64 noundef %125)
  store ptr %126, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %127 = load ptr, ptr %2, align 8, !tbaa !5
  %128 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %127, i32 0, i32 2
  %129 = load i16, ptr %17, align 2, !tbaa !19
  %130 = zext i16 %129 to i64
  %131 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %128, i64 noundef %130)
  store ptr %131, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #7
  %132 = load <4 x float>, ptr %8, align 16, !tbaa !17
  %133 = load <4 x float>, ptr %13, align 16, !tbaa !17
  %134 = load <4 x float>, ptr %14, align 16, !tbaa !17
  %135 = fadd <4 x float> %133, %134
  %136 = fsub <4 x float> %132, %135
  store <4 x float> %136, ptr %21, align 16, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 64, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %24) #7
  %137 = load ptr, ptr %18, align 8, !tbaa !5
  %138 = 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 %24, ptr noundef nonnull align 16 dereferenceable(64) %137, <4 x float> noundef %138)
  call void @llvm.lifetime.start.p0(i64 64, ptr %25) #7
  %139 = load ptr, ptr %19, align 8, !tbaa !5
  %140 = load <4 x float>, ptr %14, align 16, !tbaa !17
  call void @_ZN3vox4math14ColumnMultiplyERKNS0_8Float4x4EDv4_f(ptr dead_on_unwind writable sret(%"struct.vox::math::Float4x4") align 16 %25, ptr noundef nonnull align 16 dereferenceable(64) %139, <4 x float> noundef %140)
  call void @_ZN3vox4mathplERKNS0_8Float4x4ES3_(ptr dead_on_unwind writable sret(%"struct.vox::math::Float4x4") align 16 %23, ptr noundef nonnull align 16 dereferenceable(64) %24, ptr noundef nonnull align 16 dereferenceable(64) %25)
  call void @llvm.lifetime.start.p0(i64 64, ptr %26) #7
  %141 = load ptr, ptr %20, align 8, !tbaa !5
  %142 = load <4 x float>, ptr %21, align 16, !tbaa !17
  call void @_ZN3vox4math14ColumnMultiplyERKNS0_8Float4x4EDv4_f(ptr dead_on_unwind writable sret(%"struct.vox::math::Float4x4") align 16 %26, ptr noundef nonnull align 16 dereferenceable(64) %141, <4 x float> noundef %142)
  call void @_ZN3vox4mathplERKNS0_8Float4x4ES3_(ptr dead_on_unwind writable sret(%"struct.vox::math::Float4x4") align 16 %22, ptr noundef nonnull align 16 dereferenceable(64) %23, ptr noundef nonnull align 16 dereferenceable(64) %26)
  call void @llvm.lifetime.end.p0(i64 64, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  store ptr %22, ptr %27, align 8, !tbaa !5
  %143 = load ptr, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #7
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = call noundef <4 x float> @_ZN3vox4math11simd_float48LoadPtrUEPKf(ptr noundef %144)
  store <4 x float> %145, ptr %28, align 16, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #7
  %146 = load <4 x float>, ptr %28, align 16, !tbaa !17
  %147 = call noundef <4 x float> @_ZN3vox4math14TransformPointERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64) %22, <4 x float> noundef %146)
  store <4 x float> %147, ptr %29, align 16, !tbaa !17
  %148 = load <4 x float>, ptr %29, align 16, !tbaa !17
  %149 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN3vox4math10Store3PtrUEDv4_fPf(<4 x float> noundef %148, ptr noundef %149)
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #7
  %150 = load ptr, ptr %6, align 8, !tbaa !5
  %151 = call noundef <4 x float> @_ZN3vox4math11simd_float48LoadPtrUEPKf(ptr noundef %150)
  store <4 x float> %151, ptr %30, align 16, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #7
  %152 = load ptr, ptr %27, align 8, !tbaa !5
  %153 = load <4 x float>, ptr %30, align 16, !tbaa !17
  %154 = call noundef <4 x float> @_ZN3vox4math15TransformVectorERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64) %152, <4 x float> noundef %153)
  store <4 x float> %154, ptr %31, align 16, !tbaa !17
  %155 = load <4 x float>, ptr %31, align 16, !tbaa !17
  %156 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN3vox4math10Store3PtrUEDv4_fPf(<4 x float> noundef %155, ptr noundef %156)
  %157 = load ptr, ptr %3, align 8, !tbaa !5
  %158 = ptrtoint ptr %157 to i64
  %159 = load ptr, ptr %2, align 8, !tbaa !5
  %160 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %159, i32 0, i32 5
  %161 = load i64, ptr %160, align 8, !tbaa !21
  %162 = add i64 %158, %161
  %163 = inttoptr i64 %162 to ptr
  store ptr %163, ptr %3, align 8, !tbaa !5
  %164 = load ptr, ptr %4, align 8, !tbaa !5
  %165 = ptrtoint ptr %164 to i64
  %166 = load ptr, ptr %2, align 8, !tbaa !5
  %167 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %166, i32 0, i32 9
  %168 = load i64, ptr %167, align 8, !tbaa !22
  %169 = add i64 %165, %168
  %170 = inttoptr i64 %169 to ptr
  store ptr %170, ptr %4, align 8, !tbaa !5
  %171 = load ptr, ptr %5, align 8, !tbaa !5
  %172 = ptrtoint ptr %171 to i64
  %173 = load ptr, ptr %2, align 8, !tbaa !5
  %174 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %173, i32 0, i32 15
  %175 = load i64, ptr %174, align 8, !tbaa !23
  %176 = add i64 %172, %175
  %177 = inttoptr i64 %176 to ptr
  store ptr %177, ptr %5, align 8, !tbaa !5
  %178 = load ptr, ptr %6, align 8, !tbaa !5
  %179 = ptrtoint ptr %178 to i64
  %180 = load ptr, ptr %2, align 8, !tbaa !5
  %181 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %180, i32 0, i32 11
  %182 = load i64, ptr %181, align 8, !tbaa !24
  %183 = add i64 %179, %182
  %184 = inttoptr i64 %183 to ptr
  store ptr %184, ptr %6, align 8, !tbaa !5
  %185 = load ptr, ptr %7, align 8, !tbaa !5
  %186 = ptrtoint ptr %185 to i64
  %187 = load ptr, ptr %2, align 8, !tbaa !5
  %188 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %187, i32 0, i32 17
  %189 = load i64, ptr %188, align 8, !tbaa !25
  %190 = add i64 %186, %189
  %191 = inttoptr i64 %190 to ptr
  store ptr %191, ptr %7, align 8, !tbaa !5
  %192 = load ptr, ptr %9, align 8, !tbaa !5
  %193 = ptrtoint ptr %192 to i64
  %194 = load ptr, ptr %2, align 8, !tbaa !5
  %195 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %194, i32 0, i32 7
  %196 = load i64, ptr %195, align 8, !tbaa !26
  %197 = add i64 %193, %196
  %198 = inttoptr i64 %197 to ptr
  store ptr %198, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  br label %199

199:                                              ; preds = %101
  %200 = load i32, ptr %11, align 4, !tbaa !18
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %11, align 4, !tbaa !18
  br label %96, !llvm.loop !27

202:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #7
  %203 = load ptr, ptr %9, align 8, !tbaa !5
  %204 = getelementptr inbounds float, ptr %203, i64 0
  %205 = call noundef <4 x float> @_ZN3vox4math11simd_float49Load1PtrUEPKf(ptr noundef %204)
  store <4 x float> %205, ptr %32, align 16, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #7
  %206 = load ptr, ptr %9, align 8, !tbaa !5
  %207 = getelementptr inbounds float, ptr %206, i64 1
  %208 = call noundef <4 x float> @_ZN3vox4math11simd_float49Load1PtrUEPKf(ptr noundef %207)
  store <4 x float> %208, ptr %33, align 16, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2, ptr %34) #7
  %209 = load ptr, ptr %3, align 8, !tbaa !5
  %210 = getelementptr inbounds i16, ptr %209, i64 0
  %211 = load i16, ptr %210, align 2, !tbaa !19
  store i16 %211, ptr %34, align 2, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 2, ptr %35) #7
  %212 = load ptr, ptr %3, align 8, !tbaa !5
  %213 = getelementptr inbounds i16, ptr %212, i64 1
  %214 = load i16, ptr %213, align 2, !tbaa !19
  store i16 %214, ptr %35, align 2, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 2, ptr %36) #7
  %215 = load ptr, ptr %3, align 8, !tbaa !5
  %216 = getelementptr inbounds i16, ptr %215, i64 2
  %217 = load i16, ptr %216, align 2, !tbaa !19
  store i16 %217, ptr %36, align 2, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #7
  %218 = load ptr, ptr %2, align 8, !tbaa !5
  %219 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %218, i32 0, i32 2
  %220 = load i16, ptr %34, align 2, !tbaa !19
  %221 = zext i16 %220 to i64
  %222 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %219, i64 noundef %221)
  store ptr %222, ptr %37, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #7
  %223 = load ptr, ptr %2, align 8, !tbaa !5
  %224 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %223, i32 0, i32 2
  %225 = load i16, ptr %35, align 2, !tbaa !19
  %226 = zext i16 %225 to i64
  %227 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %224, i64 noundef %226)
  store ptr %227, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #7
  %228 = load ptr, ptr %2, align 8, !tbaa !5
  %229 = getelementptr inbounds %"struct.vox::geometry::SkinningJob", ptr %228, i32 0, i32 2
  %230 = load i16, ptr %36, align 2, !tbaa !19
  %231 = zext i16 %230 to i64
  %232 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %229, i64 noundef %231)
  store ptr %232, ptr %39, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #7
  %233 = load <4 x float>, ptr %8, align 16, !tbaa !17
  %234 = load <4 x float>, ptr %32, align 16, !tbaa !17
  %235 = load <4 x float>, ptr %33, align 16, !tbaa !17
  %236 = fadd <4 x float> %234, %235
  %237 = fsub <4 x float> %233, %236
  store <4 x float> %237, ptr %40, align 16, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 64, ptr %41) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %42) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %43) #7
  %238 = load ptr, ptr %37, align 8, !tbaa !5
  %239 = load <4 x float>, ptr %32, align 16, !tbaa !17
  call void @_ZN3vox4math14ColumnMultiplyERKNS0_8Float4x4EDv4_f(ptr dead_on_unwind writable sret(%"struct.vox::math::Float4x4") align 16 %43, ptr noundef nonnull align 16 dereferenceable(64) %238, <4 x float> noundef %239)
  call void @llvm.lifetime.start.p0(i64 64, ptr %44) #7
  %240 = load ptr, ptr %38, align 8, !tbaa !5
  %241 = load <4 x float>, ptr %33, align 16, !tbaa !17
  call void @_ZN3vox4math14ColumnMultiplyERKNS0_8Float4x4EDv4_f(ptr dead_on_unwind writable sret(%"struct.vox::math::Float4x4") align 16 %44, ptr noundef nonnull align 16 dereferenceable(64) %240, <4 x float> noundef %241)
  call void @_ZN3vox4mathplERKNS0_8Float4x4ES3_(ptr dead_on_unwind writable sret(%"struct.vox::math::Float4x4") align 16 %42, ptr noundef nonnull align 16 dereferenceable(64) %43, ptr noundef nonnull align 16 dereferenceable(64) %44)
  call void @llvm.lifetime.start.p0(i64 64, ptr %45) #7
  %242 = load ptr, ptr %39, align 8, !tbaa !5
  %243 = load <4 x float>, ptr %40, align 16, !tbaa !17
  call void @_ZN3vox4math14ColumnMultiplyERKNS0_8Float4x4EDv4_f(ptr dead_on_unwind writable sret(%"struct.vox::math::Float4x4") align 16 %45, ptr noundef nonnull align 16 dereferenceable(64) %242, <4 x float> noundef %243)
  call void @_ZN3vox4mathplERKNS0_8Float4x4ES3_(ptr dead_on_unwind writable sret(%"struct.vox::math::Float4x4") align 16 %41, ptr noundef nonnull align 16 dereferenceable(64) %42, ptr noundef nonnull align 16 dereferenceable(64) %45)
  call void @llvm.lifetime.end.p0(i64 64, ptr %45) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %44) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %43) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %42) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #7
  store ptr %41, ptr %46, align 8, !tbaa !5
  %244 = load ptr, ptr %46, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %47) #7
  %245 = load ptr, ptr %4, align 8, !tbaa !5
  %246 = call noundef <4 x float> @_ZN3vox4math11simd_float49Load3PtrUEPKf(ptr noundef %245)
  store <4 x float> %246, ptr %47, align 16, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr %48) #7
  %247 = load <4 x float>, ptr %47, align 16, !tbaa !17
  %248 = call noundef <4 x float> @_ZN3vox4math14TransformPointERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64) %41, <4 x float> noundef %247)
  store <4 x float> %248, ptr %48, align 16, !tbaa !17
  %249 = load <4 x float>, ptr %48, align 16, !tbaa !17
  %250 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN3vox4math10Store3PtrUEDv4_fPf(<4 x float> noundef %249, ptr noundef %250)
  call void @llvm.lifetime.start.p0(i64 16, ptr %49) #7
  %251 = load ptr, ptr %6, align 8, !tbaa !5
  %252 = call noundef <4 x float> @_ZN3vox4math11simd_float49Load3PtrUEPKf(ptr noundef %251)
  store <4 x float> %252, ptr %49, align 16, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr %50) #7
  %253 = load ptr, ptr %46, align 8, !tbaa !5
  %254 = load <4 x float>, ptr %49, align 16, !tbaa !17
  %255 = call noundef <4 x float> @_ZN3vox4math15TransformVectorERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64) %253, <4 x float> noundef %254)
  store <4 x float> %255, ptr %50, align 16, !tbaa !17
  %256 = load <4 x float>, ptr %50, align 16, !tbaa !17
  %257 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN3vox4math10Store3PtrUEDv4_fPf(<4 x float> noundef %256, ptr noundef %257)
  call void @llvm.lifetime.end.p0(i64 16, ptr %50) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %48) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  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 = { 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 #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 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, !13, i64 56}
!22 = !{!10, !13, i64 104}
!23 = !{!10, !13, i64 176}
!24 = !{!10, !13, i64 128}
!25 = !{!10, !13, i64 200}
!26 = !{!10, !13, i64 80}
!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.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__._ZN3vox8geometry15SkinningPNNOIT3ERKNS0_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: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef <4 x float> @_ZN3vox4math6SplatXEDv4_f(<4 x float> noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3vox8geometry15SkinningPNNOIT3ERKNS0_11SkinningJobE(ptr noundef nonnull align 8 dereferenceable(232) %0) local_unnamed_addr #5 {
  %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 426, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3vox8geometry15SkinningPNNOIT3ERKNS0_11SkinningJobE) #6
  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.ph, label %._crit_edge

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

._crit_edge:                                      ; preds = %65, %22
  %.090.lcssa = phi ptr [ %33, %22 ], [ %109, %65 ]
  %.089.lcssa = phi ptr [ %30, %22 ], [ %105, %65 ]
  %.088.lcssa = phi ptr [ %28, %22 ], [ %101, %65 ]
  %.087.lcssa = phi ptr [ %27, %22 ], [ %97, %65 ]
  %.086.lcssa = phi ptr [ %25, %22 ], [ %93, %65 ]
  %.0.lcssa = phi ptr [ %24, %22 ], [ %89, %65 ]
  %44 = call noundef <4 x float> @_ZN3vox4math11simd_float49Load1PtrUEPKf(ptr noundef %.090.lcssa)
  %45 = getelementptr inbounds i8, ptr %.090.lcssa, i64 4
  %46 = call noundef <4 x float> @_ZN3vox4math11simd_float49Load1PtrUEPKf(ptr noundef nonnull %45)
  %47 = load i16, ptr %.0.lcssa, align 2, !tbaa !16
  %48 = getelementptr inbounds i8, ptr %.0.lcssa, i64 2
  %49 = load i16, ptr %48, align 2, !tbaa !16
  %50 = getelementptr inbounds i8, ptr %.0.lcssa, i64 4
  %51 = load i16, ptr %50, align 2, !tbaa !16
  %52 = getelementptr inbounds i8, ptr %0, i64 8
  %53 = zext i16 %47 to i64
  %54 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %52, i64 noundef %53)
  %55 = zext i16 %49 to i64
  %56 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %52, i64 noundef %55)
  %57 = zext i16 %51 to i64
  %58 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %52, i64 noundef %57)
  %59 = fadd <4 x float> %44, %46
  %60 = fsub <4 x float> %31, %59
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #7
  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) %54, <4 x float> noundef %44)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #7
  call void @_ZN3vox4math14ColumnMultiplyERKNS0_8Float4x4EDv4_f(ptr dead_on_unwind nonnull writable sret(%"struct.vox::math::Float4x4") align 16 %10, ptr noundef nonnull align 16 dereferenceable(64) %56, <4 x float> noundef %46)
  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) %9, ptr noundef nonnull align 16 dereferenceable(64) %10)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #7
  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) %58, <4 x float> noundef %60)
  call void @_ZN3vox4mathplERKNS0_8Float4x4ES3_(ptr dead_on_unwind nonnull writable sret(%"struct.vox::math::Float4x4") align 16 %7, ptr noundef nonnull align 16 dereferenceable(64) %8, ptr noundef nonnull align 16 dereferenceable(64) %11)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #7
  %61 = call noundef <4 x float> @_ZN3vox4math11simd_float49Load3PtrUEPKf(ptr noundef %.086.lcssa)
  %62 = call noundef <4 x float> @_ZN3vox4math14TransformPointERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64) %7, <4 x float> noundef %61)
  call void @_ZN3vox4math10Store3PtrUEDv4_fPf(<4 x float> noundef %62, ptr noundef %.087.lcssa)
  %63 = call noundef <4 x float> @_ZN3vox4math11simd_float49Load3PtrUEPKf(ptr noundef %.088.lcssa)
  %64 = call noundef <4 x float> @_ZN3vox4math15TransformVectorERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64) %7, <4 x float> noundef %63)
  call void @_ZN3vox4math10Store3PtrUEDv4_fPf(<4 x float> noundef %64, ptr noundef %.089.lcssa)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #7
  ret void

65:                                               ; preds = %.lr.ph, %65
  %.098 = phi ptr [ %24, %.lr.ph ], [ %89, %65 ]
  %.08697 = phi ptr [ %25, %.lr.ph ], [ %93, %65 ]
  %.08796 = phi ptr [ %27, %.lr.ph ], [ %97, %65 ]
  %.08895 = phi ptr [ %28, %.lr.ph ], [ %101, %65 ]
  %.08994 = phi ptr [ %30, %.lr.ph ], [ %105, %65 ]
  %.09093 = phi ptr [ %33, %.lr.ph ], [ %109, %65 ]
  %.09192 = phi i32 [ 0, %.lr.ph ], [ %110, %65 ]
  %66 = call noundef <4 x float> @_ZN3vox4math11simd_float48LoadPtrUEPKf(ptr noundef %.09093)
  %67 = call noundef <4 x float> @_ZN3vox4math6SplatXEDv4_f(<4 x float> noundef %66)
  %68 = call noundef <4 x float> @_ZN3vox4math6SplatYEDv4_f(<4 x float> noundef %66)
  %69 = load i16, ptr %.098, align 2, !tbaa !16
  %70 = getelementptr inbounds i8, ptr %.098, i64 2
  %71 = load i16, ptr %70, align 2, !tbaa !16
  %72 = getelementptr inbounds i8, ptr %.098, i64 4
  %73 = load i16, ptr %72, align 2, !tbaa !16
  %74 = zext i16 %69 to i64
  %75 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %36, i64 noundef %74)
  %76 = zext i16 %71 to i64
  %77 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %36, i64 noundef %76)
  %78 = zext i16 %73 to i64
  %79 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNK3vox4spanIKNS_4math8Float4x4EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %36, i64 noundef %78)
  %80 = fadd <4 x float> %67, %68
  %81 = fsub <4 x float> %31, %80
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #7
  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) %75, <4 x float> noundef %67)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #7
  call void @_ZN3vox4math14ColumnMultiplyERKNS0_8Float4x4EDv4_f(ptr dead_on_unwind nonnull writable sret(%"struct.vox::math::Float4x4") align 16 %5, ptr noundef nonnull align 16 dereferenceable(64) %77, <4 x float> noundef %68)
  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) %4, ptr noundef nonnull align 16 dereferenceable(64) %5)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #7
  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) %79, <4 x float> noundef %81)
  call void @_ZN3vox4mathplERKNS0_8Float4x4ES3_(ptr dead_on_unwind nonnull writable sret(%"struct.vox::math::Float4x4") align 16 %2, ptr noundef nonnull align 16 dereferenceable(64) %3, ptr noundef nonnull align 16 dereferenceable(64) %6)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #7
  %82 = call noundef <4 x float> @_ZN3vox4math11simd_float48LoadPtrUEPKf(ptr noundef %.08697)
  %83 = call noundef <4 x float> @_ZN3vox4math14TransformPointERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64) %2, <4 x float> noundef %82)
  call void @_ZN3vox4math10Store3PtrUEDv4_fPf(<4 x float> noundef %83, ptr noundef %.08796)
  %84 = call noundef <4 x float> @_ZN3vox4math11simd_float48LoadPtrUEPKf(ptr noundef %.08895)
  %85 = call noundef <4 x float> @_ZN3vox4math15TransformVectorERKNS0_8Float4x4EDv4_f(ptr noundef nonnull align 16 dereferenceable(64) %2, <4 x float> noundef %84)
  call void @_ZN3vox4math10Store3PtrUEDv4_fPf(<4 x float> noundef %85, ptr noundef %.08994)
  %86 = ptrtoint ptr %.098 to i64
  %87 = load i64, ptr %37, align 8, !tbaa !18
  %88 = add i64 %87, %86
  %89 = inttoptr i64 %88 to ptr
  %90 = ptrtoint ptr %.08697 to i64
  %91 = load i64, ptr %38, align 8, !tbaa !19
  %92 = add i64 %91, %90
  %93 = inttoptr i64 %92 to ptr
  %94 = ptrtoint ptr %.08796 to i64
  %95 = load i64, ptr %39, align 8, !tbaa !20
  %96 = add i64 %95, %94
  %97 = inttoptr i64 %96 to ptr
  %98 = ptrtoint ptr %.08895 to i64
  %99 = load i64, ptr %40, align 8, !tbaa !21
  %100 = add i64 %99, %98
  %101 = inttoptr i64 %100 to ptr
  %102 = ptrtoint ptr %.08994 to i64
  %103 = load i64, ptr %41, align 8, !tbaa !22
  %104 = add i64 %103, %102
  %105 = inttoptr i64 %104 to ptr
  %106 = ptrtoint ptr %.09093 to i64
  %107 = load i64, ptr %42, align 8, !tbaa !23
  %108 = add i64 %107, %106
  %109 = inttoptr i64 %108 to ptr
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #7
  %110 = add nuw nsw i32 %.09192, 1
  %exitcond.not = icmp eq i32 %.09192, %43
  br i1 %exitcond.not, label %._crit_edge, label %65, !llvm.loop !24
}

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 uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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, !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 = !{!6, !12, i64 128}
!22 = !{!6, !12, i64 200}
!23 = !{!6, !12, i64 80}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


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