; LLVM IR from paroj/gltut :: Tut 08 Getting Oriented/Interpolation.ll (Z5SlerpRKN3glm6detail5tquatIfEES4_f)

; 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.glm::detail::tquat" = type { float, float, float, float }

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local { <2 x float>, <2 x float> } @_Z5SlerpRKN3glm6detail5tquatIfEES4_f(ptr noundef nonnull align 4 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(16) %1, float noundef %2) #1 {
  %4 = alloca %"struct.glm::detail::tquat", align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca %"struct.glm::detail::tquat", align 4
  %16 = alloca %"struct.glm::detail::tquat", align 4
  %17 = alloca %"struct.glm::detail::tquat", align 4
  %18 = alloca %"struct.glm::detail::tquat", align 4
  %19 = alloca %"struct.glm::detail::tquat", align 4
  %20 = alloca float, align 4
  %21 = alloca %"struct.glm::detail::tquat", align 4
  %22 = alloca float, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store float %2, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = call noundef float @_ZN3glm3dotIfEET_RKNS_6detail5tquatIS1_EES6_(ptr noundef nonnull align 4 dereferenceable(16) %23, ptr noundef nonnull align 4 dereferenceable(16) %24)
  store float %25, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store float 0x3FEFFBE760000000, ptr %9, align 4, !tbaa !9
  %26 = load float, ptr %8, align 4, !tbaa !9
  %27 = fcmp ogt float %26, 0x3FEFFBE760000000
  br i1 %27, label %28, label %37

28:                                               ; preds = %3
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = load float, ptr %7, align 4, !tbaa !9
  %32 = call { <2 x float>, <2 x float> } @_Z4LerpRKN3glm6detail5tquatIfEES4_f(ptr noundef nonnull align 4 dereferenceable(16) %29, ptr noundef nonnull align 4 dereferenceable(16) %30, float noundef %31)
  %33 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %4, i32 0, i32 0
  %34 = extractvalue { <2 x float>, <2 x float> } %32, 0
  store <2 x float> %34, ptr %33, align 4
  %35 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %4, i32 0, i32 1
  %36 = extractvalue { <2 x float>, <2 x float> } %32, 1
  store <2 x float> %36, ptr %35, align 4
  store i32 1, ptr %10, align 4
  br label %86

37:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store float -1.000000e+00, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store float 1.000000e+00, ptr %12, align 4, !tbaa !9
  %38 = call noundef float @_ZN3glm5clampIfEET_RKS1_S3_S3_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %39 = load float, ptr %8, align 4, !tbaa !9
  %40 = call float @acosf(float noundef %39) #6
  store float %40, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %41 = load float, ptr %13, align 4, !tbaa !9
  %42 = load float, ptr %7, align 4, !tbaa !9
  %43 = fmul float %41, %42
  store float %43, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #6
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = call { <2 x float>, <2 x float> } @_ZN3glm6detailmlIfEENS0_5tquatIT_EERKS4_RKNS4_10value_typeE(ptr noundef nonnull align 4 dereferenceable(16) %45, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %47 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %17, i32 0, i32 0
  %48 = extractvalue { <2 x float>, <2 x float> } %46, 0
  store <2 x float> %48, ptr %47, align 4
  %49 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %17, i32 0, i32 1
  %50 = extractvalue { <2 x float>, <2 x float> } %46, 1
  store <2 x float> %50, ptr %49, align 4
  %51 = call { <2 x float>, <2 x float> } @_ZN3glm6detailngIfEENS0_5tquatIT_EERKS4_(ptr noundef nonnull align 4 dereferenceable(16) %17)
  %52 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %16, i32 0, i32 0
  %53 = extractvalue { <2 x float>, <2 x float> } %51, 0
  store <2 x float> %53, ptr %52, align 4
  %54 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %16, i32 0, i32 1
  %55 = extractvalue { <2 x float>, <2 x float> } %51, 1
  store <2 x float> %55, ptr %54, align 4
  %56 = call { <2 x float>, <2 x float> } @_ZN3glm6detailplIfEENS0_5tquatIT_EERKS4_S6_(ptr noundef nonnull align 4 dereferenceable(16) %44, ptr noundef nonnull align 4 dereferenceable(16) %16)
  %57 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %15, i32 0, i32 0
  %58 = extractvalue { <2 x float>, <2 x float> } %56, 0
  store <2 x float> %58, ptr %57, align 4
  %59 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %15, i32 0, i32 1
  %60 = extractvalue { <2 x float>, <2 x float> } %56, 1
  store <2 x float> %60, ptr %59, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #6
  %61 = call { <2 x float>, <2 x float> } @_ZN3glm9normalizeIfEENS_6detail5tquatIT_EERKS4_(ptr noundef nonnull align 4 dereferenceable(16) %15)
  %62 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %18, i32 0, i32 0
  %63 = extractvalue { <2 x float>, <2 x float> } %61, 0
  store <2 x float> %63, ptr %62, align 4
  %64 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %18, i32 0, i32 1
  %65 = extractvalue { <2 x float>, <2 x float> } %61, 1
  store <2 x float> %65, ptr %64, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %18, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %67 = load float, ptr %14, align 4, !tbaa !9
  %68 = call noundef float @_ZSt3cosf(float noundef %67)
  store float %68, ptr %20, align 4, !tbaa !9
  %69 = call { <2 x float>, <2 x float> } @_ZN3glm6detailmlIfEENS0_5tquatIT_EERKS4_RKNS4_10value_typeE(ptr noundef nonnull align 4 dereferenceable(16) %66, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %70 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %19, i32 0, i32 0
  %71 = extractvalue { <2 x float>, <2 x float> } %69, 0
  store <2 x float> %71, ptr %70, align 4
  %72 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %19, i32 0, i32 1
  %73 = extractvalue { <2 x float>, <2 x float> } %69, 1
  store <2 x float> %73, ptr %72, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %74 = load float, ptr %14, align 4, !tbaa !9
  %75 = call noundef float @_ZSt3sinf(float noundef %74)
  store float %75, ptr %22, align 4, !tbaa !9
  %76 = call { <2 x float>, <2 x float> } @_ZN3glm6detailmlIfEENS0_5tquatIT_EERKS4_RKNS4_10value_typeE(ptr noundef nonnull align 4 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(4) %22)
  %77 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %21, i32 0, i32 0
  %78 = extractvalue { <2 x float>, <2 x float> } %76, 0
  store <2 x float> %78, ptr %77, align 4
  %79 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %21, i32 0, i32 1
  %80 = extractvalue { <2 x float>, <2 x float> } %76, 1
  store <2 x float> %80, ptr %79, align 4
  %81 = call { <2 x float>, <2 x float> } @_ZN3glm6detailplIfEENS0_5tquatIT_EERKS4_S6_(ptr noundef nonnull align 4 dereferenceable(16) %19, ptr noundef nonnull align 4 dereferenceable(16) %21)
  %82 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %4, i32 0, i32 0
  %83 = extractvalue { <2 x float>, <2 x float> } %81, 0
  store <2 x float> %83, ptr %82, align 4
  %84 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %4, i32 0, i32 1
  %85 = extractvalue { <2 x float>, <2 x float> } %81, 1
  store <2 x float> %85, ptr %84, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %86

86:                                               ; preds = %37, %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  %87 = load { <2 x float>, <2 x float> }, ptr %4, align 4
  ret { <2 x float>, <2 x float> } %87
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3glm3dotIfEET_RKNS_6detail5tquatIS1_EES6_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZN3glm5clampIfEET_RKS1_S3_S3_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

; Function Attrs: nounwind
declare float @acosf(float noundef) #5

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3cosf(float noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3sinf(float noundef) #3

attributes #0 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint 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 #4 = { inlinehint mustprogress 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 #5 = { 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 #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 12, i64 4, !9}


; 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.glm::detail::tquat" = 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>, <2 x float> } @_Z4LerpRKN3glm6detail5tquatIfEES4_f(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16), float noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local { <2 x float>, <2 x float> } @_Z5SlerpRKN3glm6detail5tquatIfEES4_f(ptr noundef nonnull align 4 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(16) %1, float noundef %2) local_unnamed_addr #1 {
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca %"struct.glm::detail::tquat", align 8
  %8 = alloca %"struct.glm::detail::tquat", align 8
  %9 = alloca %"struct.glm::detail::tquat", align 8
  %10 = alloca %"struct.glm::detail::tquat", align 8
  %11 = alloca float, align 4
  %12 = alloca %"struct.glm::detail::tquat", align 8
  %13 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  %14 = tail call noundef float @_ZN3glm3dotIfEET_RKNS_6detail5tquatIS1_EES6_(ptr noundef nonnull align 4 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(16) %1)
  store float %14, ptr %4, align 4, !tbaa !5
  %15 = fcmp ogt float %14, 0x3FEFFBE760000000
  br i1 %15, label %16, label %18

16:                                               ; preds = %3
  %17 = tail call { <2 x float>, <2 x float> } @_Z4LerpRKN3glm6detail5tquatIfEES4_f(ptr noundef nonnull align 4 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(16) %1, float noundef %2)
  br label %49

18:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  store float -1.000000e+00, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  store float 1.000000e+00, ptr %6, align 4, !tbaa !5
  %19 = call noundef float @_ZN3glm5clampIfEET_RKS1_S3_S3_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  %20 = load float, ptr %4, align 4, !tbaa !5
  %21 = call float @acosf(float noundef %20) #5
  %22 = fmul float %21, %2
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #5
  %23 = call { <2 x float>, <2 x float> } @_ZN3glm6detailmlIfEENS0_5tquatIT_EERKS4_RKNS4_10value_typeE(ptr noundef nonnull align 4 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %24 = extractvalue { <2 x float>, <2 x float> } %23, 0
  store <2 x float> %24, ptr %9, align 8
  %25 = getelementptr inbounds i8, ptr %9, i64 8
  %26 = extractvalue { <2 x float>, <2 x float> } %23, 1
  store <2 x float> %26, ptr %25, align 8
  %27 = call { <2 x float>, <2 x float> } @_ZN3glm6detailngIfEENS0_5tquatIT_EERKS4_(ptr noundef nonnull align 4 dereferenceable(16) %9)
  %28 = extractvalue { <2 x float>, <2 x float> } %27, 0
  store <2 x float> %28, ptr %8, align 8
  %29 = getelementptr inbounds i8, ptr %8, i64 8
  %30 = extractvalue { <2 x float>, <2 x float> } %27, 1
  store <2 x float> %30, ptr %29, align 8
  %31 = call { <2 x float>, <2 x float> } @_ZN3glm6detailplIfEENS0_5tquatIT_EERKS4_S6_(ptr noundef nonnull align 4 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(16) %8)
  %32 = extractvalue { <2 x float>, <2 x float> } %31, 0
  store <2 x float> %32, ptr %7, align 8
  %33 = getelementptr inbounds i8, ptr %7, i64 8
  %34 = extractvalue { <2 x float>, <2 x float> } %31, 1
  store <2 x float> %34, ptr %33, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  %35 = call { <2 x float>, <2 x float> } @_ZN3glm9normalizeIfEENS_6detail5tquatIT_EERKS4_(ptr noundef nonnull align 4 dereferenceable(16) %7)
  %36 = extractvalue { <2 x float>, <2 x float> } %35, 0
  %37 = extractvalue { <2 x float>, <2 x float> } %35, 1
  store <2 x float> %36, ptr %7, align 8
  store <2 x float> %37, ptr %33, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  %38 = call noundef float @_ZSt3cosf(float noundef %22)
  store float %38, ptr %11, align 4, !tbaa !5
  %39 = call { <2 x float>, <2 x float> } @_ZN3glm6detailmlIfEENS0_5tquatIT_EERKS4_RKNS4_10value_typeE(ptr noundef nonnull align 4 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %40 = extractvalue { <2 x float>, <2 x float> } %39, 0
  store <2 x float> %40, ptr %10, align 8
  %41 = getelementptr inbounds i8, ptr %10, i64 8
  %42 = extractvalue { <2 x float>, <2 x float> } %39, 1
  store <2 x float> %42, ptr %41, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #5
  %43 = call noundef float @_ZSt3sinf(float noundef %22)
  store float %43, ptr %13, align 4, !tbaa !5
  %44 = call { <2 x float>, <2 x float> } @_ZN3glm6detailmlIfEENS0_5tquatIT_EERKS4_RKNS4_10value_typeE(ptr noundef nonnull align 4 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %45 = extractvalue { <2 x float>, <2 x float> } %44, 0
  store <2 x float> %45, ptr %12, align 8
  %46 = getelementptr inbounds i8, ptr %12, i64 8
  %47 = extractvalue { <2 x float>, <2 x float> } %44, 1
  store <2 x float> %47, ptr %46, align 8
  %48 = call { <2 x float>, <2 x float> } @_ZN3glm6detailplIfEENS0_5tquatIT_EERKS4_S6_(ptr noundef nonnull align 4 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(16) %12)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  br label %49

49:                                               ; preds = %18, %16
  %.pn = phi { <2 x float>, <2 x float> } [ %17, %16 ], [ %48, %18 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  ret { <2 x float>, <2 x float> } %.pn
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3glm3dotIfEET_RKNS_6detail5tquatIS1_EES6_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZN3glm5clampIfEET_RKS1_S3_S3_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @acosf(float noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZN3glm6detailplIfEENS0_5tquatIT_EERKS4_S6_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZN3glm6detailngIfEENS0_5tquatIT_EERKS4_(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZN3glm6detailmlIfEENS0_5tquatIT_EERKS4_RKNS4_10value_typeE(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZN3glm9normalizeIfEENS_6detail5tquatIT_EERKS4_(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3cosf(float noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3sinf(float noundef) local_unnamed_addr #2

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"="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 #3 = { inlinehint mustprogress 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 #4 = { mustprogress nofree nounwind willreturn memory(write) "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 = { 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


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