; LLVM IR from ashishzero/karma :: src/modules/core/lin_maths.ll (Z8mat3_mulRK4Mat3S1_)

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

%union.Mat3 = type { [3 x %union.Vec3] }
%union.Vec3 = type { %struct.anon }
%struct.anon = type { float, float, float }

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z8vec3_dot4Vec3S_(<2 x float>, float, <2 x float>, float) #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z14mat3_transposeRK4Mat3(ptr dead_on_unwind noalias writable sret(%union.Mat3) align 4, ptr noundef nonnull align 4 dereferenceable(36)) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8mat3_mulRK4Mat3S1_(ptr dead_on_unwind noalias writable sret(%union.Mat3) align 4 %0, ptr noundef nonnull align 4 dereferenceable(36) %1, ptr noundef nonnull align 4 dereferenceable(36) %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %union.Mat3, align 4
  %7 = alloca %union.Vec3, align 4
  %8 = alloca %union.Vec3, align 4
  %9 = alloca { <2 x float>, float }, align 4
  %10 = alloca { <2 x float>, float }, align 4
  %11 = alloca %union.Vec3, align 4
  %12 = alloca %union.Vec3, align 4
  %13 = alloca { <2 x float>, float }, align 4
  %14 = alloca { <2 x float>, float }, align 4
  %15 = alloca %union.Vec3, align 4
  %16 = alloca %union.Vec3, align 4
  %17 = alloca { <2 x float>, float }, align 4
  %18 = alloca { <2 x float>, float }, align 4
  %19 = alloca %union.Vec3, align 4
  %20 = alloca %union.Vec3, align 4
  %21 = alloca { <2 x float>, float }, align 4
  %22 = alloca { <2 x float>, float }, align 4
  %23 = alloca %union.Vec3, align 4
  %24 = alloca %union.Vec3, align 4
  %25 = alloca { <2 x float>, float }, align 4
  %26 = alloca { <2 x float>, float }, align 4
  %27 = alloca %union.Vec3, align 4
  %28 = alloca %union.Vec3, align 4
  %29 = alloca { <2 x float>, float }, align 4
  %30 = alloca { <2 x float>, float }, align 4
  %31 = alloca %union.Vec3, align 4
  %32 = alloca %union.Vec3, align 4
  %33 = alloca { <2 x float>, float }, align 4
  %34 = alloca { <2 x float>, float }, align 4
  %35 = alloca %union.Vec3, align 4
  %36 = alloca %union.Vec3, align 4
  %37 = alloca { <2 x float>, float }, align 4
  %38 = alloca { <2 x float>, float }, align 4
  %39 = alloca %union.Vec3, align 4
  %40 = alloca %union.Vec3, align 4
  %41 = alloca { <2 x float>, float }, align 4
  %42 = alloca { <2 x float>, float }, align 4
  store ptr %1, ptr %4, align 8, !tbaa !5
  store ptr %2, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 36, ptr %6) #4
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_Z14mat3_transposeRK4Mat3(ptr dead_on_unwind writable sret(%union.Mat3) align 4 %6, ptr noundef nonnull align 4 dereferenceable(36) %43)
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds [3 x %union.Vec3], ptr %44, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %45, i64 12, i1 false), !tbaa.struct !9
  %46 = getelementptr inbounds [3 x %union.Vec3], ptr %6, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %46, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %7, i64 12, i1 false)
  %47 = getelementptr inbounds { <2 x float>, float }, ptr %9, i32 0, i32 0
  %48 = load <2 x float>, ptr %47, align 4
  %49 = getelementptr inbounds { <2 x float>, float }, ptr %9, i32 0, i32 1
  %50 = load float, ptr %49, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %8, i64 12, i1 false)
  %51 = getelementptr inbounds { <2 x float>, float }, ptr %10, i32 0, i32 0
  %52 = load <2 x float>, ptr %51, align 4
  %53 = getelementptr inbounds { <2 x float>, float }, ptr %10, i32 0, i32 1
  %54 = load float, ptr %53, align 4
  %55 = call noundef float @_Z8vec3_dot4Vec3S_(<2 x float> %48, float %50, <2 x float> %52, float %54)
  %56 = getelementptr inbounds [3 x [3 x float]], ptr %0, i64 0, i64 0
  %57 = getelementptr inbounds [3 x float], ptr %56, i64 0, i64 0
  store float %55, ptr %57, align 4, !tbaa !10
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds [3 x %union.Vec3], ptr %58, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %59, i64 12, i1 false), !tbaa.struct !9
  %60 = getelementptr inbounds [3 x %union.Vec3], ptr %6, i64 0, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %60, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %11, i64 12, i1 false)
  %61 = getelementptr inbounds { <2 x float>, float }, ptr %13, i32 0, i32 0
  %62 = load <2 x float>, ptr %61, align 4
  %63 = getelementptr inbounds { <2 x float>, float }, ptr %13, i32 0, i32 1
  %64 = load float, ptr %63, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %12, i64 12, i1 false)
  %65 = getelementptr inbounds { <2 x float>, float }, ptr %14, i32 0, i32 0
  %66 = load <2 x float>, ptr %65, align 4
  %67 = getelementptr inbounds { <2 x float>, float }, ptr %14, i32 0, i32 1
  %68 = load float, ptr %67, align 4
  %69 = call noundef float @_Z8vec3_dot4Vec3S_(<2 x float> %62, float %64, <2 x float> %66, float %68)
  %70 = getelementptr inbounds [3 x [3 x float]], ptr %0, i64 0, i64 0
  %71 = getelementptr inbounds [3 x float], ptr %70, i64 0, i64 1
  store float %69, ptr %71, align 4, !tbaa !10
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds [3 x %union.Vec3], ptr %72, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %73, i64 12, i1 false), !tbaa.struct !9
  %74 = getelementptr inbounds [3 x %union.Vec3], ptr %6, i64 0, i64 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %74, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %15, i64 12, i1 false)
  %75 = getelementptr inbounds { <2 x float>, float }, ptr %17, i32 0, i32 0
  %76 = load <2 x float>, ptr %75, align 4
  %77 = getelementptr inbounds { <2 x float>, float }, ptr %17, i32 0, i32 1
  %78 = load float, ptr %77, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %16, i64 12, i1 false)
  %79 = getelementptr inbounds { <2 x float>, float }, ptr %18, i32 0, i32 0
  %80 = load <2 x float>, ptr %79, align 4
  %81 = getelementptr inbounds { <2 x float>, float }, ptr %18, i32 0, i32 1
  %82 = load float, ptr %81, align 4
  %83 = call noundef float @_Z8vec3_dot4Vec3S_(<2 x float> %76, float %78, <2 x float> %80, float %82)
  %84 = getelementptr inbounds [3 x [3 x float]], ptr %0, i64 0, i64 0
  %85 = getelementptr inbounds [3 x float], ptr %84, i64 0, i64 2
  store float %83, ptr %85, align 4, !tbaa !10
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds [3 x %union.Vec3], ptr %86, i64 0, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %87, i64 12, i1 false), !tbaa.struct !9
  %88 = getelementptr inbounds [3 x %union.Vec3], ptr %6, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %88, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %19, i64 12, i1 false)
  %89 = getelementptr inbounds { <2 x float>, float }, ptr %21, i32 0, i32 0
  %90 = load <2 x float>, ptr %89, align 4
  %91 = getelementptr inbounds { <2 x float>, float }, ptr %21, i32 0, i32 1
  %92 = load float, ptr %91, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %20, i64 12, i1 false)
  %93 = getelementptr inbounds { <2 x float>, float }, ptr %22, i32 0, i32 0
  %94 = load <2 x float>, ptr %93, align 4
  %95 = getelementptr inbounds { <2 x float>, float }, ptr %22, i32 0, i32 1
  %96 = load float, ptr %95, align 4
  %97 = call noundef float @_Z8vec3_dot4Vec3S_(<2 x float> %90, float %92, <2 x float> %94, float %96)
  %98 = getelementptr inbounds [3 x [3 x float]], ptr %0, i64 0, i64 1
  %99 = getelementptr inbounds [3 x float], ptr %98, i64 0, i64 0
  store float %97, ptr %99, align 4, !tbaa !10
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = getelementptr inbounds [3 x %union.Vec3], ptr %100, i64 0, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %101, i64 12, i1 false), !tbaa.struct !9
  %102 = getelementptr inbounds [3 x %union.Vec3], ptr %6, i64 0, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %102, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %23, i64 12, i1 false)
  %103 = getelementptr inbounds { <2 x float>, float }, ptr %25, i32 0, i32 0
  %104 = load <2 x float>, ptr %103, align 4
  %105 = getelementptr inbounds { <2 x float>, float }, ptr %25, i32 0, i32 1
  %106 = load float, ptr %105, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %24, i64 12, i1 false)
  %107 = getelementptr inbounds { <2 x float>, float }, ptr %26, i32 0, i32 0
  %108 = load <2 x float>, ptr %107, align 4
  %109 = getelementptr inbounds { <2 x float>, float }, ptr %26, i32 0, i32 1
  %110 = load float, ptr %109, align 4
  %111 = call noundef float @_Z8vec3_dot4Vec3S_(<2 x float> %104, float %106, <2 x float> %108, float %110)
  %112 = getelementptr inbounds [3 x [3 x float]], ptr %0, i64 0, i64 1
  %113 = getelementptr inbounds [3 x float], ptr %112, i64 0, i64 1
  store float %111, ptr %113, align 4, !tbaa !10
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = getelementptr inbounds [3 x %union.Vec3], ptr %114, i64 0, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %115, i64 12, i1 false), !tbaa.struct !9
  %116 = getelementptr inbounds [3 x %union.Vec3], ptr %6, i64 0, i64 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %116, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 4 %27, i64 12, i1 false)
  %117 = getelementptr inbounds { <2 x float>, float }, ptr %29, i32 0, i32 0
  %118 = load <2 x float>, ptr %117, align 4
  %119 = getelementptr inbounds { <2 x float>, float }, ptr %29, i32 0, i32 1
  %120 = load float, ptr %119, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 %28, i64 12, i1 false)
  %121 = getelementptr inbounds { <2 x float>, float }, ptr %30, i32 0, i32 0
  %122 = load <2 x float>, ptr %121, align 4
  %123 = getelementptr inbounds { <2 x float>, float }, ptr %30, i32 0, i32 1
  %124 = load float, ptr %123, align 4
  %125 = call noundef float @_Z8vec3_dot4Vec3S_(<2 x float> %118, float %120, <2 x float> %122, float %124)
  %126 = getelementptr inbounds [3 x [3 x float]], ptr %0, i64 0, i64 1
  %127 = getelementptr inbounds [3 x float], ptr %126, i64 0, i64 2
  store float %125, ptr %127, align 4, !tbaa !10
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = getelementptr inbounds [3 x %union.Vec3], ptr %128, i64 0, i64 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 4 %129, i64 12, i1 false), !tbaa.struct !9
  %130 = getelementptr inbounds [3 x %union.Vec3], ptr %6, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %130, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %31, i64 12, i1 false)
  %131 = getelementptr inbounds { <2 x float>, float }, ptr %33, i32 0, i32 0
  %132 = load <2 x float>, ptr %131, align 4
  %133 = getelementptr inbounds { <2 x float>, float }, ptr %33, i32 0, i32 1
  %134 = load float, ptr %133, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 4 %32, i64 12, i1 false)
  %135 = getelementptr inbounds { <2 x float>, float }, ptr %34, i32 0, i32 0
  %136 = load <2 x float>, ptr %135, align 4
  %137 = getelementptr inbounds { <2 x float>, float }, ptr %34, i32 0, i32 1
  %138 = load float, ptr %137, align 4
  %139 = call noundef float @_Z8vec3_dot4Vec3S_(<2 x float> %132, float %134, <2 x float> %136, float %138)
  %140 = getelementptr inbounds [3 x [3 x float]], ptr %0, i64 0, i64 2
  %141 = getelementptr inbounds [3 x float], ptr %140, i64 0, i64 0
  store float %139, ptr %141, align 4, !tbaa !10
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = getelementptr inbounds [3 x %union.Vec3], ptr %142, i64 0, i64 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 4 %143, i64 12, i1 false), !tbaa.struct !9
  %144 = getelementptr inbounds [3 x %union.Vec3], ptr %6, i64 0, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 4 %144, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 4 %35, i64 12, i1 false)
  %145 = getelementptr inbounds { <2 x float>, float }, ptr %37, i32 0, i32 0
  %146 = load <2 x float>, ptr %145, align 4
  %147 = getelementptr inbounds { <2 x float>, float }, ptr %37, i32 0, i32 1
  %148 = load float, ptr %147, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 4 %36, i64 12, i1 false)
  %149 = getelementptr inbounds { <2 x float>, float }, ptr %38, i32 0, i32 0
  %150 = load <2 x float>, ptr %149, align 4
  %151 = getelementptr inbounds { <2 x float>, float }, ptr %38, i32 0, i32 1
  %152 = load float, ptr %151, align 4
  %153 = call noundef float @_Z8vec3_dot4Vec3S_(<2 x float> %146, float %148, <2 x float> %150, float %152)
  %154 = getelementptr inbounds [3 x [3 x float]], ptr %0, i64 0, i64 2
  %155 = getelementptr inbounds [3 x float], ptr %154, i64 0, i64 1
  store float %153, ptr %155, align 4, !tbaa !10
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  %157 = getelementptr inbounds [3 x %union.Vec3], ptr %156, i64 0, i64 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %39, ptr align 4 %157, i64 12, i1 false), !tbaa.struct !9
  %158 = getelementptr inbounds [3 x %union.Vec3], ptr %6, i64 0, i64 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 4 %158, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %41, ptr align 4 %39, i64 12, i1 false)
  %159 = getelementptr inbounds { <2 x float>, float }, ptr %41, i32 0, i32 0
  %160 = load <2 x float>, ptr %159, align 4
  %161 = getelementptr inbounds { <2 x float>, float }, ptr %41, i32 0, i32 1
  %162 = load float, ptr %161, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 %40, i64 12, i1 false)
  %163 = getelementptr inbounds { <2 x float>, float }, ptr %42, i32 0, i32 0
  %164 = load <2 x float>, ptr %163, align 4
  %165 = getelementptr inbounds { <2 x float>, float }, ptr %42, i32 0, i32 1
  %166 = load float, ptr %165, align 4
  %167 = call noundef float @_Z8vec3_dot4Vec3S_(<2 x float> %160, float %162, <2 x float> %164, float %166)
  %168 = getelementptr inbounds [3 x [3 x float]], ptr %0, i64 0, i64 2
  %169 = getelementptr inbounds [3 x float], ptr %168, i64 0, i64 2
  store float %167, ptr %169, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 36, ptr %6) #4
  ret void
}

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


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

%union.Mat3 = type { [3 x %union.Vec3] }
%union.Vec3 = type { %struct.anon }
%struct.anon = type { float, float, float }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z8vec3_dot4Vec3S_(<2 x float>, float, <2 x float>, float) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z14mat3_transposeRK4Mat3(ptr dead_on_unwind noalias writable sret(%union.Mat3) align 4, ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8mat3_mulRK4Mat3S1_(ptr dead_on_unwind noalias nocapture writable writeonly sret(%union.Mat3) align 4 %0, ptr nocapture noundef nonnull readonly align 4 dereferenceable(36) %1, ptr noundef nonnull align 4 dereferenceable(36) %2) local_unnamed_addr #2 {
  %4 = alloca %union.Mat3, align 8
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %4) #3
  call void @_Z14mat3_transposeRK4Mat3(ptr dead_on_unwind nonnull writable sret(%union.Mat3) align 4 %4, ptr noundef nonnull align 4 dereferenceable(36) %2)
  %.sroa.069.0.copyload = load <2 x float>, ptr %1, align 4
  %.sroa.270.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 8
  %.sroa.270.0.copyload = load float, ptr %.sroa.270.0..sroa_idx, align 4, !tbaa !5
  %.sroa.067.0.copyload = load <2 x float>, ptr %4, align 8
  %.sroa.268.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 8
  %.sroa.268.0.copyload = load float, ptr %.sroa.268.0..sroa_idx, align 8, !tbaa !5
  %5 = call noundef float @_Z8vec3_dot4Vec3S_(<2 x float> %.sroa.069.0.copyload, float %.sroa.270.0.copyload, <2 x float> %.sroa.067.0.copyload, float %.sroa.268.0.copyload)
  store float %5, ptr %0, align 4, !tbaa !5
  %.sroa.061.0.copyload = load <2 x float>, ptr %1, align 4
  %.sroa.262.0.copyload = load float, ptr %.sroa.270.0..sroa_idx, align 4, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %4, i64 12
  %.sroa.059.0.copyload = load <2 x float>, ptr %6, align 4
  %.sroa.260.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 20
  %.sroa.260.0.copyload = load float, ptr %.sroa.260.0..sroa_idx, align 4, !tbaa !5
  %7 = call noundef float @_Z8vec3_dot4Vec3S_(<2 x float> %.sroa.061.0.copyload, float %.sroa.262.0.copyload, <2 x float> %.sroa.059.0.copyload, float %.sroa.260.0.copyload)
  %8 = getelementptr inbounds i8, ptr %0, i64 4
  store float %7, ptr %8, align 4, !tbaa !5
  %.sroa.053.0.copyload = load <2 x float>, ptr %1, align 4
  %.sroa.254.0.copyload = load float, ptr %.sroa.270.0..sroa_idx, align 4, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %4, i64 24
  %.sroa.051.0.copyload = load <2 x float>, ptr %9, align 8
  %.sroa.252.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 32
  %.sroa.252.0.copyload = load float, ptr %.sroa.252.0..sroa_idx, align 8, !tbaa !5
  %10 = call noundef float @_Z8vec3_dot4Vec3S_(<2 x float> %.sroa.053.0.copyload, float %.sroa.254.0.copyload, <2 x float> %.sroa.051.0.copyload, float %.sroa.252.0.copyload)
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  store float %10, ptr %11, align 4, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %1, i64 12
  %.sroa.045.0.copyload = load <2 x float>, ptr %12, align 4
  %.sroa.246.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 20
  %.sroa.246.0.copyload = load float, ptr %.sroa.246.0..sroa_idx, align 4, !tbaa !5
  %.sroa.043.0.copyload = load <2 x float>, ptr %4, align 8
  %.sroa.244.0.copyload = load float, ptr %.sroa.268.0..sroa_idx, align 8, !tbaa !5
  %13 = call noundef float @_Z8vec3_dot4Vec3S_(<2 x float> %.sroa.045.0.copyload, float %.sroa.246.0.copyload, <2 x float> %.sroa.043.0.copyload, float %.sroa.244.0.copyload)
  %14 = getelementptr inbounds i8, ptr %0, i64 12
  store float %13, ptr %14, align 4, !tbaa !5
  %.sroa.037.0.copyload = load <2 x float>, ptr %12, align 4
  %.sroa.238.0.copyload = load float, ptr %.sroa.246.0..sroa_idx, align 4, !tbaa !5
  %.sroa.035.0.copyload = load <2 x float>, ptr %6, align 4
  %.sroa.236.0.copyload = load float, ptr %.sroa.260.0..sroa_idx, align 4, !tbaa !5
  %15 = call noundef float @_Z8vec3_dot4Vec3S_(<2 x float> %.sroa.037.0.copyload, float %.sroa.238.0.copyload, <2 x float> %.sroa.035.0.copyload, float %.sroa.236.0.copyload)
  %16 = getelementptr inbounds i8, ptr %0, i64 16
  store float %15, ptr %16, align 4, !tbaa !5
  %.sroa.029.0.copyload = load <2 x float>, ptr %12, align 4
  %.sroa.230.0.copyload = load float, ptr %.sroa.246.0..sroa_idx, align 4, !tbaa !5
  %.sroa.027.0.copyload = load <2 x float>, ptr %9, align 8
  %.sroa.228.0.copyload = load float, ptr %.sroa.252.0..sroa_idx, align 8, !tbaa !5
  %17 = call noundef float @_Z8vec3_dot4Vec3S_(<2 x float> %.sroa.029.0.copyload, float %.sroa.230.0.copyload, <2 x float> %.sroa.027.0.copyload, float %.sroa.228.0.copyload)
  %18 = getelementptr inbounds i8, ptr %0, i64 20
  store float %17, ptr %18, align 4, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %1, i64 24
  %.sroa.021.0.copyload = load <2 x float>, ptr %19, align 4
  %.sroa.222.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 32
  %.sroa.222.0.copyload = load float, ptr %.sroa.222.0..sroa_idx, align 4, !tbaa !5
  %.sroa.019.0.copyload = load <2 x float>, ptr %4, align 8
  %.sroa.220.0.copyload = load float, ptr %.sroa.268.0..sroa_idx, align 8, !tbaa !5
  %20 = call noundef float @_Z8vec3_dot4Vec3S_(<2 x float> %.sroa.021.0.copyload, float %.sroa.222.0.copyload, <2 x float> %.sroa.019.0.copyload, float %.sroa.220.0.copyload)
  %21 = getelementptr inbounds i8, ptr %0, i64 24
  store float %20, ptr %21, align 4, !tbaa !5
  %.sroa.013.0.copyload = load <2 x float>, ptr %19, align 4
  %.sroa.214.0.copyload = load float, ptr %.sroa.222.0..sroa_idx, align 4, !tbaa !5
  %.sroa.011.0.copyload = load <2 x float>, ptr %6, align 4
  %.sroa.212.0.copyload = load float, ptr %.sroa.260.0..sroa_idx, align 4, !tbaa !5
  %22 = call noundef float @_Z8vec3_dot4Vec3S_(<2 x float> %.sroa.013.0.copyload, float %.sroa.214.0.copyload, <2 x float> %.sroa.011.0.copyload, float %.sroa.212.0.copyload)
  %23 = getelementptr inbounds i8, ptr %0, i64 28
  store float %22, ptr %23, align 4, !tbaa !5
  %.sroa.05.0.copyload = load <2 x float>, ptr %19, align 4
  %.sroa.26.0.copyload = load float, ptr %.sroa.222.0..sroa_idx, align 4, !tbaa !5
  %.sroa.03.0.copyload = load <2 x float>, ptr %9, align 8
  %.sroa.24.0.copyload = load float, ptr %.sroa.252.0..sroa_idx, align 8, !tbaa !5
  %24 = call noundef float @_Z8vec3_dot4Vec3S_(<2 x float> %.sroa.05.0.copyload, float %.sroa.26.0.copyload, <2 x float> %.sroa.03.0.copyload, float %.sroa.24.0.copyload)
  %25 = getelementptr inbounds i8, ptr %0, i64 32
  store float %24, ptr %25, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %4) #3
  ret void
}

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass