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

; 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.Quat = type { [4 x float] }
%union.Mat4 = type { [4 x %union.Vec4] }
%union.Vec4 = type { %struct.anon.3 }
%struct.anon.3 = type { float, float, float, float }
%union.Vec3 = type { %struct.anon }
%struct.anon = type { float, float, float }
%struct.anon.6 = type { %union.Vec3, 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: 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 { <2 x float>, float } @_Z14vec3_normalize4Vec3(<2 x float>, float) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local { <2 x float>, <2 x float> } @_Z4vec44Vec3f(<2 x float>, float, float noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_Z9quat_mat4RK4Mat4(ptr noundef nonnull align 4 dereferenceable(64)) #2

; Function Attrs: mustprogress uwtable
define dso_local { <2 x float>, <2 x float> } @_Z19quat_mat4_normalizeRK4Mat4(ptr noundef nonnull align 4 dereferenceable(64) %0) #2 {
  %2 = alloca %union.Quat, align 4
  %3 = alloca ptr, align 8
  %4 = alloca %union.Mat4, align 4
  %5 = alloca %union.Vec4, align 4
  %6 = alloca %union.Vec3, align 4
  %7 = alloca %union.Vec3, align 4
  %8 = alloca { <2 x float>, float }, align 4
  %9 = alloca { <2 x float>, float }, align 8
  %10 = alloca { <2 x float>, float }, align 4
  %11 = alloca %union.Vec4, align 4
  %12 = alloca %union.Vec3, align 4
  %13 = alloca %union.Vec3, align 4
  %14 = alloca { <2 x float>, float }, align 4
  %15 = alloca { <2 x float>, float }, align 8
  %16 = alloca { <2 x float>, float }, align 4
  %17 = alloca %union.Vec4, align 4
  %18 = alloca %union.Vec3, align 4
  %19 = alloca %union.Vec3, align 4
  %20 = alloca { <2 x float>, float }, align 4
  %21 = alloca { <2 x float>, float }, align 8
  %22 = alloca { <2 x float>, float }, align 4
  %23 = alloca %union.Vec4, align 4
  %24 = alloca %union.Vec3, align 4
  %25 = alloca %union.Vec3, align 4
  %26 = alloca { <2 x float>, float }, align 4
  %27 = alloca { <2 x float>, float }, align 8
  %28 = alloca { <2 x float>, float }, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #4
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = getelementptr inbounds [4 x %union.Vec4], ptr %29, i64 0, i64 0
  %31 = getelementptr inbounds %struct.anon.6, ptr %30, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %31, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %7, i64 12, i1 false)
  %32 = getelementptr inbounds { <2 x float>, float }, ptr %8, i32 0, i32 0
  %33 = load <2 x float>, ptr %32, align 4
  %34 = getelementptr inbounds { <2 x float>, float }, ptr %8, i32 0, i32 1
  %35 = load float, ptr %34, align 4
  %36 = call { <2 x float>, float } @_Z14vec3_normalize4Vec3(<2 x float> %33, float %35)
  %37 = getelementptr inbounds %union.Vec3, ptr %6, i32 0, i32 0
  store { <2 x float>, float } %36, ptr %9, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 8 %9, i64 12, i1 false)
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = getelementptr inbounds [4 x %union.Vec4], ptr %38, i64 0, i64 0
  %40 = getelementptr inbounds %struct.anon.3, ptr %39, i32 0, i32 3
  %41 = load float, ptr %40, align 4, !tbaa !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %6, i64 12, i1 false)
  %42 = getelementptr inbounds { <2 x float>, float }, ptr %10, i32 0, i32 0
  %43 = load <2 x float>, ptr %42, align 4
  %44 = getelementptr inbounds { <2 x float>, float }, ptr %10, i32 0, i32 1
  %45 = load float, ptr %44, align 4
  %46 = call { <2 x float>, <2 x float> } @_Z4vec44Vec3f(<2 x float> %43, float %45, float noundef %41)
  %47 = getelementptr inbounds %union.Vec4, ptr %5, i32 0, i32 0
  %48 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %47, i32 0, i32 0
  %49 = extractvalue { <2 x float>, <2 x float> } %46, 0
  store <2 x float> %49, ptr %48, align 4
  %50 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %47, i32 0, i32 1
  %51 = extractvalue { <2 x float>, <2 x float> } %46, 1
  store <2 x float> %51, ptr %50, align 4
  %52 = getelementptr inbounds [4 x %union.Vec4], ptr %4, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %52, ptr align 4 %5, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #4
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = getelementptr inbounds [4 x %union.Vec4], ptr %53, i64 0, i64 1
  %55 = getelementptr inbounds %struct.anon.6, ptr %54, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %55, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %13, i64 12, i1 false)
  %56 = getelementptr inbounds { <2 x float>, float }, ptr %14, i32 0, i32 0
  %57 = load <2 x float>, ptr %56, align 4
  %58 = getelementptr inbounds { <2 x float>, float }, ptr %14, i32 0, i32 1
  %59 = load float, ptr %58, align 4
  %60 = call { <2 x float>, float } @_Z14vec3_normalize4Vec3(<2 x float> %57, float %59)
  %61 = getelementptr inbounds %union.Vec3, ptr %12, i32 0, i32 0
  store { <2 x float>, float } %60, ptr %15, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %61, ptr align 8 %15, i64 12, i1 false)
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = getelementptr inbounds [4 x %union.Vec4], ptr %62, i64 0, i64 1
  %64 = getelementptr inbounds %struct.anon.3, ptr %63, i32 0, i32 3
  %65 = load float, ptr %64, align 4, !tbaa !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %12, i64 12, i1 false)
  %66 = getelementptr inbounds { <2 x float>, float }, ptr %16, i32 0, i32 0
  %67 = load <2 x float>, ptr %66, align 4
  %68 = getelementptr inbounds { <2 x float>, float }, ptr %16, i32 0, i32 1
  %69 = load float, ptr %68, align 4
  %70 = call { <2 x float>, <2 x float> } @_Z4vec44Vec3f(<2 x float> %67, float %69, float noundef %65)
  %71 = getelementptr inbounds %union.Vec4, ptr %11, i32 0, i32 0
  %72 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %71, i32 0, i32 0
  %73 = extractvalue { <2 x float>, <2 x float> } %70, 0
  store <2 x float> %73, ptr %72, align 4
  %74 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %71, i32 0, i32 1
  %75 = extractvalue { <2 x float>, <2 x float> } %70, 1
  store <2 x float> %75, ptr %74, align 4
  %76 = getelementptr inbounds [4 x %union.Vec4], ptr %4, i64 0, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %76, ptr align 4 %11, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #4
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = getelementptr inbounds [4 x %union.Vec4], ptr %77, i64 0, i64 2
  %79 = getelementptr inbounds %struct.anon.6, ptr %78, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %79, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %19, i64 12, i1 false)
  %80 = getelementptr inbounds { <2 x float>, float }, ptr %20, i32 0, i32 0
  %81 = load <2 x float>, ptr %80, align 4
  %82 = getelementptr inbounds { <2 x float>, float }, ptr %20, i32 0, i32 1
  %83 = load float, ptr %82, align 4
  %84 = call { <2 x float>, float } @_Z14vec3_normalize4Vec3(<2 x float> %81, float %83)
  %85 = getelementptr inbounds %union.Vec3, ptr %18, i32 0, i32 0
  store { <2 x float>, float } %84, ptr %21, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %85, ptr align 8 %21, i64 12, i1 false)
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  %87 = getelementptr inbounds [4 x %union.Vec4], ptr %86, i64 0, i64 2
  %88 = getelementptr inbounds %struct.anon.3, ptr %87, i32 0, i32 3
  %89 = load float, ptr %88, align 4, !tbaa !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %18, i64 12, i1 false)
  %90 = getelementptr inbounds { <2 x float>, float }, ptr %22, i32 0, i32 0
  %91 = load <2 x float>, ptr %90, align 4
  %92 = getelementptr inbounds { <2 x float>, float }, ptr %22, i32 0, i32 1
  %93 = load float, ptr %92, align 4
  %94 = call { <2 x float>, <2 x float> } @_Z4vec44Vec3f(<2 x float> %91, float %93, float noundef %89)
  %95 = getelementptr inbounds %union.Vec4, ptr %17, i32 0, i32 0
  %96 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %95, i32 0, i32 0
  %97 = extractvalue { <2 x float>, <2 x float> } %94, 0
  store <2 x float> %97, ptr %96, align 4
  %98 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %95, i32 0, i32 1
  %99 = extractvalue { <2 x float>, <2 x float> } %94, 1
  store <2 x float> %99, ptr %98, align 4
  %100 = getelementptr inbounds [4 x %union.Vec4], ptr %4, i64 0, i64 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %100, ptr align 4 %17, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #4
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = getelementptr inbounds [4 x %union.Vec4], ptr %101, i64 0, i64 3
  %103 = getelementptr inbounds %struct.anon.6, ptr %102, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %103, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %25, i64 12, i1 false)
  %104 = getelementptr inbounds { <2 x float>, float }, ptr %26, i32 0, i32 0
  %105 = load <2 x float>, ptr %104, align 4
  %106 = getelementptr inbounds { <2 x float>, float }, ptr %26, i32 0, i32 1
  %107 = load float, ptr %106, align 4
  %108 = call { <2 x float>, float } @_Z14vec3_normalize4Vec3(<2 x float> %105, float %107)
  %109 = getelementptr inbounds %union.Vec3, ptr %24, i32 0, i32 0
  store { <2 x float>, float } %108, ptr %27, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %109, ptr align 8 %27, i64 12, i1 false)
  %110 = load ptr, ptr %3, align 8, !tbaa !5
  %111 = getelementptr inbounds [4 x %union.Vec4], ptr %110, i64 0, i64 3
  %112 = getelementptr inbounds %struct.anon.3, ptr %111, i32 0, i32 3
  %113 = load float, ptr %112, align 4, !tbaa !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %24, i64 12, i1 false)
  %114 = getelementptr inbounds { <2 x float>, float }, ptr %28, i32 0, i32 0
  %115 = load <2 x float>, ptr %114, align 4
  %116 = getelementptr inbounds { <2 x float>, float }, ptr %28, i32 0, i32 1
  %117 = load float, ptr %116, align 4
  %118 = call { <2 x float>, <2 x float> } @_Z4vec44Vec3f(<2 x float> %115, float %117, float noundef %113)
  %119 = getelementptr inbounds %union.Vec4, ptr %23, i32 0, i32 0
  %120 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %119, i32 0, i32 0
  %121 = extractvalue { <2 x float>, <2 x float> } %118, 0
  store <2 x float> %121, ptr %120, align 4
  %122 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %119, i32 0, i32 1
  %123 = extractvalue { <2 x float>, <2 x float> } %118, 1
  store <2 x float> %123, ptr %122, align 4
  %124 = getelementptr inbounds [4 x %union.Vec4], ptr %4, i64 0, i64 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %124, ptr align 4 %23, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #4
  %125 = call { <2 x float>, <2 x float> } @_Z9quat_mat4RK4Mat4(ptr noundef nonnull align 4 dereferenceable(64) %4)
  %126 = getelementptr inbounds %union.Quat, ptr %2, i32 0, i32 0
  %127 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %126, i32 0, i32 0
  %128 = extractvalue { <2 x float>, <2 x float> } %125, 0
  store <2 x float> %128, ptr %127, align 4
  %129 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %126, i32 0, i32 1
  %130 = extractvalue { <2 x float>, <2 x float> } %125, 1
  store <2 x float> %130, ptr %129, align 4
  call void @llvm.lifetime.end.p0(i64 64, ptr %4) #4
  %131 = getelementptr inbounds %union.Quat, ptr %2, i32 0, i32 0
  %132 = load { <2 x float>, <2 x float> }, ptr %131, align 4
  ret { <2 x float>, <2 x float> } %132
}

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { inlinehint 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 #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}
!11 = !{i64 0, i64 16, !10}


; 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.Mat4 = type { [4 x %union.Vec4] }
%union.Vec4 = type { %struct.anon.3 }
%struct.anon.3 = type { float, float, float, float }

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, float } @_Z14vec3_normalize4Vec3(<2 x float>, float) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local { <2 x float>, <2 x float> } @_Z4vec44Vec3f(<2 x float>, float, float noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_Z9quat_mat4RK4Mat4(ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local { <2 x float>, <2 x float> } @_Z19quat_mat4_normalizeRK4Mat4(ptr nocapture noundef nonnull readonly align 4 dereferenceable(64) %0) local_unnamed_addr #1 {
  %2 = alloca %union.Mat4, align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %2) #3
  %.sroa.046.0.copyload = load <2 x float>, ptr %0, align 4
  %.sroa.247.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 8
  %.sroa.247.0.copyload = load float, ptr %.sroa.247.0..sroa_idx, align 4, !tbaa !5
  %3 = tail call { <2 x float>, float } @_Z14vec3_normalize4Vec3(<2 x float> %.sroa.046.0.copyload, float %.sroa.247.0.copyload)
  %.fca.0.extract40 = extractvalue { <2 x float>, float } %3, 0
  %.fca.1.extract41 = extractvalue { <2 x float>, float } %3, 1
  %4 = getelementptr inbounds i8, ptr %0, i64 12
  %5 = load float, ptr %4, align 4, !tbaa !5
  %6 = tail call { <2 x float>, <2 x float> } @_Z4vec44Vec3f(<2 x float> %.fca.0.extract40, float %.fca.1.extract41, float noundef %5)
  %7 = extractvalue { <2 x float>, <2 x float> } %6, 0
  %8 = extractvalue { <2 x float>, <2 x float> } %6, 1
  store <2 x float> %7, ptr %2, align 8
  %.sroa.451.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 8
  store <2 x float> %8, ptr %.sroa.451.0..sroa_idx, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 16
  %.sroa.032.0.copyload = load <2 x float>, ptr %9, align 4
  %.sroa.233.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 24
  %.sroa.233.0.copyload = load float, ptr %.sroa.233.0..sroa_idx, align 4, !tbaa !5
  %10 = tail call { <2 x float>, float } @_Z14vec3_normalize4Vec3(<2 x float> %.sroa.032.0.copyload, float %.sroa.233.0.copyload)
  %.fca.0.extract26 = extractvalue { <2 x float>, float } %10, 0
  %.fca.1.extract27 = extractvalue { <2 x float>, float } %10, 1
  %11 = getelementptr inbounds i8, ptr %0, i64 28
  %12 = load float, ptr %11, align 4, !tbaa !5
  %13 = tail call { <2 x float>, <2 x float> } @_Z4vec44Vec3f(<2 x float> %.fca.0.extract26, float %.fca.1.extract27, float noundef %12)
  %14 = extractvalue { <2 x float>, <2 x float> } %13, 0
  %15 = extractvalue { <2 x float>, <2 x float> } %13, 1
  %16 = getelementptr inbounds i8, ptr %2, i64 16
  store <2 x float> %14, ptr %16, align 8
  %.sroa.437.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 24
  store <2 x float> %15, ptr %.sroa.437.0..sroa_idx, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %0, i64 32
  %.sroa.018.0.copyload = load <2 x float>, ptr %17, align 4
  %.sroa.219.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 40
  %.sroa.219.0.copyload = load float, ptr %.sroa.219.0..sroa_idx, align 4, !tbaa !5
  %18 = tail call { <2 x float>, float } @_Z14vec3_normalize4Vec3(<2 x float> %.sroa.018.0.copyload, float %.sroa.219.0.copyload)
  %.fca.0.extract12 = extractvalue { <2 x float>, float } %18, 0
  %.fca.1.extract13 = extractvalue { <2 x float>, float } %18, 1
  %19 = getelementptr inbounds i8, ptr %0, i64 44
  %20 = load float, ptr %19, align 4, !tbaa !5
  %21 = tail call { <2 x float>, <2 x float> } @_Z4vec44Vec3f(<2 x float> %.fca.0.extract12, float %.fca.1.extract13, float noundef %20)
  %22 = extractvalue { <2 x float>, <2 x float> } %21, 0
  %23 = extractvalue { <2 x float>, <2 x float> } %21, 1
  %24 = getelementptr inbounds i8, ptr %2, i64 32
  store <2 x float> %22, ptr %24, align 8
  %.sroa.423.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 40
  store <2 x float> %23, ptr %.sroa.423.0..sroa_idx, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %0, i64 48
  %.sroa.05.0.copyload = load <2 x float>, ptr %25, align 4
  %.sroa.26.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 56
  %.sroa.26.0.copyload = load float, ptr %.sroa.26.0..sroa_idx, align 4, !tbaa !5
  %26 = tail call { <2 x float>, float } @_Z14vec3_normalize4Vec3(<2 x float> %.sroa.05.0.copyload, float %.sroa.26.0.copyload)
  %.fca.0.extract = extractvalue { <2 x float>, float } %26, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %26, 1
  %27 = getelementptr inbounds i8, ptr %0, i64 60
  %28 = load float, ptr %27, align 4, !tbaa !5
  %29 = tail call { <2 x float>, <2 x float> } @_Z4vec44Vec3f(<2 x float> %.fca.0.extract, float %.fca.1.extract, float noundef %28)
  %30 = extractvalue { <2 x float>, <2 x float> } %29, 0
  %31 = extractvalue { <2 x float>, <2 x float> } %29, 1
  %32 = getelementptr inbounds i8, ptr %2, i64 48
  store <2 x float> %30, ptr %32, align 8
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 56
  store <2 x float> %31, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !5
  %33 = call { <2 x float>, <2 x float> } @_Z9quat_mat4RK4Mat4(ptr noundef nonnull align 4 dereferenceable(64) %2)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #3
  ret { <2 x float>, <2 x float> } %33
}

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