; LLVM IR from erincatto/box2d-lite :: src/Joint.ll (ZN5Joint12ApplyImpulseEv)

; 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.Vec2 = type { float, float }
%struct.Joint = type { %struct.Mat22, %struct.Vec2, %struct.Vec2, %struct.Vec2, %struct.Vec2, %struct.Vec2, %struct.Vec2, ptr, ptr, float, float }
%struct.Mat22 = type { %struct.Vec2, %struct.Vec2 }
%struct.Body = type { %struct.Vec2, float, %struct.Vec2, float, %struct.Vec2, float, %struct.Vec2, float, 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: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZmlRK5Mat22RK4Vec2(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(8)) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZmiRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZplRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZmlfRK4Vec2(float noundef, ptr noundef nonnull align 4 dereferenceable(8)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Vec2mIERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3 align 2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Joint12ApplyImpulseEv(ptr noundef nonnull align 8 dereferenceable(88) %0) #6 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca %struct.Vec2, align 4
  %4 = alloca %struct.Vec2, align 4
  %5 = alloca %struct.Vec2, align 4
  %6 = alloca %struct.Vec2, align 4
  %7 = alloca %struct.Vec2, align 4
  %8 = alloca %struct.Vec2, align 4
  %9 = alloca %struct.Vec2, align 4
  %10 = alloca %struct.Vec2, align 4
  %11 = alloca %struct.Vec2, align 4
  %12 = alloca %struct.Vec2, align 4
  %13 = alloca %struct.Vec2, align 4
  %14 = alloca %struct.Vec2, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %15 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %16 = getelementptr inbounds %struct.Joint, ptr %15, i32 0, i32 8
  %17 = load ptr, ptr %16, align 8, !tbaa !9
  %18 = getelementptr inbounds %struct.Body, ptr %17, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %19 = getelementptr inbounds %struct.Joint, ptr %15, i32 0, i32 8
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  %21 = getelementptr inbounds %struct.Body, ptr %20, i32 0, i32 3
  %22 = load float, ptr %21, align 4, !tbaa !14
  %23 = getelementptr inbounds %struct.Joint, ptr %15, i32 0, i32 4
  %24 = call <2 x float> @_Z5CrossfRK4Vec2(float noundef %22, ptr noundef nonnull align 4 dereferenceable(8) %23)
  store <2 x float> %24, ptr %6, align 4
  %25 = call <2 x float> @_ZplRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %18, ptr noundef nonnull align 4 dereferenceable(8) %6)
  store <2 x float> %25, ptr %5, align 4
  %26 = getelementptr inbounds %struct.Joint, ptr %15, i32 0, i32 7
  %27 = load ptr, ptr %26, align 8, !tbaa !16
  %28 = getelementptr inbounds %struct.Body, ptr %27, i32 0, i32 2
  %29 = call <2 x float> @_ZmiRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %28)
  store <2 x float> %29, ptr %4, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %30 = getelementptr inbounds %struct.Joint, ptr %15, i32 0, i32 7
  %31 = load ptr, ptr %30, align 8, !tbaa !16
  %32 = getelementptr inbounds %struct.Body, ptr %31, i32 0, i32 3
  %33 = load float, ptr %32, align 4, !tbaa !14
  %34 = getelementptr inbounds %struct.Joint, ptr %15, i32 0, i32 3
  %35 = call <2 x float> @_Z5CrossfRK4Vec2(float noundef %33, ptr noundef nonnull align 4 dereferenceable(8) %34)
  store <2 x float> %35, ptr %7, align 4
  %36 = call <2 x float> @_ZmiRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %7)
  store <2 x float> %36, ptr %3, align 4
  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.start.p0(i64 8, ptr %8) #7
  call void @_ZN4Vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %8)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %37 = getelementptr inbounds %struct.Joint, ptr %15, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %38 = getelementptr inbounds %struct.Joint, ptr %15, i32 0, i32 5
  %39 = call <2 x float> @_ZmiRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %38, ptr noundef nonnull align 4 dereferenceable(8) %3)
  store <2 x float> %39, ptr %11, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %40 = getelementptr inbounds %struct.Joint, ptr %15, i32 0, i32 10
  %41 = load float, ptr %40, align 4, !tbaa !17
  %42 = getelementptr inbounds %struct.Joint, ptr %15, i32 0, i32 6
  %43 = call <2 x float> @_ZmlfRK4Vec2(float noundef %41, ptr noundef nonnull align 4 dereferenceable(8) %42)
  store <2 x float> %43, ptr %12, align 4
  %44 = call <2 x float> @_ZmiRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %12)
  store <2 x float> %44, ptr %10, align 4
  %45 = call <2 x float> @_ZmlRK5Mat22RK4Vec2(ptr noundef nonnull align 4 dereferenceable(16) %37, ptr noundef nonnull align 4 dereferenceable(8) %10)
  store <2 x float> %45, ptr %9, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %9, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %46 = getelementptr inbounds %struct.Joint, ptr %15, i32 0, i32 7
  %47 = load ptr, ptr %46, align 8, !tbaa !16
  %48 = getelementptr inbounds %struct.Body, ptr %47, i32 0, i32 9
  %49 = load float, ptr %48, align 4, !tbaa !20
  %50 = call <2 x float> @_ZmlfRK4Vec2(float noundef %49, ptr noundef nonnull align 4 dereferenceable(8) %8)
  store <2 x float> %50, ptr %13, align 4
  %51 = getelementptr inbounds %struct.Joint, ptr %15, i32 0, i32 7
  %52 = load ptr, ptr %51, align 8, !tbaa !16
  %53 = getelementptr inbounds %struct.Body, ptr %52, i32 0, i32 2
  call void @_ZN4Vec2mIERKS_(ptr noundef nonnull align 4 dereferenceable(8) %53, ptr noundef nonnull align 4 dereferenceable(8) %13)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  %54 = getelementptr inbounds %struct.Joint, ptr %15, i32 0, i32 7
  %55 = load ptr, ptr %54, align 8, !tbaa !16
  %56 = getelementptr inbounds %struct.Body, ptr %55, i32 0, i32 11
  %57 = load float, ptr %56, align 4, !tbaa !21
  %58 = getelementptr inbounds %struct.Joint, ptr %15, i32 0, i32 3
  %59 = call noundef float @_Z5CrossRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %58, ptr noundef nonnull align 4 dereferenceable(8) %8)
  %60 = getelementptr inbounds %struct.Joint, ptr %15, i32 0, i32 7
  %61 = load ptr, ptr %60, align 8, !tbaa !16
  %62 = getelementptr inbounds %struct.Body, ptr %61, i32 0, i32 3
  %63 = load float, ptr %62, align 4, !tbaa !14
  %64 = fneg float %57
  %65 = call float @llvm.fmuladd.f32(float %64, float %59, float %63)
  store float %65, ptr %62, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %66 = getelementptr inbounds %struct.Joint, ptr %15, i32 0, i32 8
  %67 = load ptr, ptr %66, align 8, !tbaa !9
  %68 = getelementptr inbounds %struct.Body, ptr %67, i32 0, i32 9
  %69 = load float, ptr %68, align 4, !tbaa !20
  %70 = call <2 x float> @_ZmlfRK4Vec2(float noundef %69, ptr noundef nonnull align 4 dereferenceable(8) %8)
  store <2 x float> %70, ptr %14, align 4
  %71 = getelementptr inbounds %struct.Joint, ptr %15, i32 0, i32 8
  %72 = load ptr, ptr %71, align 8, !tbaa !9
  %73 = getelementptr inbounds %struct.Body, ptr %72, i32 0, i32 2
  call void @_ZN4Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %73, ptr noundef nonnull align 4 dereferenceable(8) %14)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  %74 = getelementptr inbounds %struct.Joint, ptr %15, i32 0, i32 8
  %75 = load ptr, ptr %74, align 8, !tbaa !9
  %76 = getelementptr inbounds %struct.Body, ptr %75, i32 0, i32 11
  %77 = load float, ptr %76, align 4, !tbaa !21
  %78 = getelementptr inbounds %struct.Joint, ptr %15, i32 0, i32 4
  %79 = call noundef float @_Z5CrossRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %78, ptr noundef nonnull align 4 dereferenceable(8) %8)
  %80 = getelementptr inbounds %struct.Joint, ptr %15, i32 0, i32 8
  %81 = load ptr, ptr %80, align 8, !tbaa !9
  %82 = getelementptr inbounds %struct.Body, ptr %81, i32 0, i32 3
  %83 = load float, ptr %82, align 4, !tbaa !14
  %84 = call float @llvm.fmuladd.f32(float %77, float %79, float %83)
  store float %84, ptr %82, align 4, !tbaa !14
  %85 = getelementptr inbounds %struct.Joint, ptr %15, i32 0, i32 6
  call void @_ZN4Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %85, ptr noundef nonnull align 4 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_Z5CrossfRK4Vec2(float noundef, ptr noundef nonnull align 4 dereferenceable(8)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #3 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint 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 = { 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 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #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, !6, i64 72}
!10 = !{!"_ZTS5Joint", !11, i64 0, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !6, i64 64, !6, i64 72, !13, i64 80, !13, i64 84}
!11 = !{!"_ZTS5Mat22", !12, i64 0, !12, i64 8}
!12 = !{!"_ZTS4Vec2", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!15, !13, i64 20}
!15 = !{!"_ZTS4Body", !12, i64 0, !13, i64 8, !12, i64 12, !13, i64 20, !12, i64 24, !13, i64 32, !12, i64 36, !13, i64 44, !13, i64 48, !13, i64 52, !13, i64 56, !13, i64 60}
!16 = !{!10, !6, i64 64}
!17 = !{!10, !13, i64 84}
!18 = !{i64 0, i64 4, !19, i64 4, i64 4, !19}
!19 = !{!13, !13, i64 0}
!20 = !{!15, !13, i64 52}
!21 = !{!15, !13, i64 60}


; 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.Vec2 = type { 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: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZmlRK5Mat22RK4Vec2(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZmiRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZplRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZmlfRK4Vec2(float noundef, ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Vec2mIERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Joint12ApplyImpulseEv(ptr noundef nonnull align 8 dereferenceable(88) %0) local_unnamed_addr #5 align 2 {
  %2 = alloca %struct.Vec2, align 8
  %3 = alloca %struct.Vec2, align 8
  %4 = alloca %struct.Vec2, align 8
  %5 = alloca %struct.Vec2, align 8
  %6 = alloca %struct.Vec2, align 8
  %7 = alloca %struct.Vec2, align 8
  %8 = alloca %struct.Vec2, align 8
  %9 = alloca %struct.Vec2, align 8
  %10 = alloca %struct.Vec2, align 8
  %11 = alloca %struct.Vec2, align 8
  %12 = alloca %struct.Vec2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %13 = getelementptr inbounds i8, ptr %0, i64 72
  %14 = load ptr, ptr %13, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %14, i64 12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %16 = getelementptr inbounds i8, ptr %14, i64 20
  %17 = load float, ptr %16, align 4, !tbaa !13
  %18 = getelementptr inbounds i8, ptr %0, i64 40
  %19 = tail call <2 x float> @_Z5CrossfRK4Vec2(float noundef %17, ptr noundef nonnull align 4 dereferenceable(8) %18)
  store <2 x float> %19, ptr %5, align 8
  %20 = call <2 x float> @_ZplRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(8) %5)
  store <2 x float> %20, ptr %4, align 8
  %21 = getelementptr inbounds i8, ptr %0, i64 64
  %22 = load ptr, ptr %21, align 8, !tbaa !15
  %23 = getelementptr inbounds i8, ptr %22, i64 12
  %24 = call <2 x float> @_ZmiRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %23)
  store <2 x float> %24, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %25 = load ptr, ptr %21, align 8, !tbaa !15
  %26 = getelementptr inbounds i8, ptr %25, i64 20
  %27 = load float, ptr %26, align 4, !tbaa !13
  %28 = getelementptr inbounds i8, ptr %0, i64 32
  %29 = call <2 x float> @_Z5CrossfRK4Vec2(float noundef %27, ptr noundef nonnull align 4 dereferenceable(8) %28)
  store <2 x float> %29, ptr %6, align 8
  %30 = call <2 x float> @_ZmiRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %6)
  store <2 x float> %30, ptr %2, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  call void @_ZN4Vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %7)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %31 = getelementptr inbounds i8, ptr %0, i64 48
  %32 = call <2 x float> @_ZmiRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %31, ptr noundef nonnull align 4 dereferenceable(8) %2)
  store <2 x float> %32, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %33 = getelementptr inbounds i8, ptr %0, i64 84
  %34 = load float, ptr %33, align 4, !tbaa !16
  %35 = getelementptr inbounds i8, ptr %0, i64 56
  %36 = call <2 x float> @_ZmlfRK4Vec2(float noundef %34, ptr noundef nonnull align 4 dereferenceable(8) %35)
  store <2 x float> %36, ptr %10, align 8
  %37 = call <2 x float> @_ZmiRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %10)
  store <2 x float> %37, ptr %8, align 8
  %38 = call <2 x float> @_ZmlRK5Mat22RK4Vec2(ptr noundef nonnull align 4 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(8) %8)
  store <2 x float> %38, ptr %7, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %39 = load ptr, ptr %21, align 8, !tbaa !15
  %40 = getelementptr inbounds i8, ptr %39, i64 52
  %41 = load float, ptr %40, align 4, !tbaa !17
  %42 = call <2 x float> @_ZmlfRK4Vec2(float noundef %41, ptr noundef nonnull align 4 dereferenceable(8) %7)
  store <2 x float> %42, ptr %11, align 8
  %43 = load ptr, ptr %21, align 8, !tbaa !15
  %44 = getelementptr inbounds i8, ptr %43, i64 12
  call void @_ZN4Vec2mIERKS_(ptr noundef nonnull align 4 dereferenceable(8) %44, ptr noundef nonnull align 4 dereferenceable(8) %11)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  %45 = load ptr, ptr %21, align 8, !tbaa !15
  %46 = getelementptr inbounds i8, ptr %45, i64 60
  %47 = load float, ptr %46, align 4, !tbaa !18
  %48 = call noundef float @_Z5CrossRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %28, ptr noundef nonnull align 4 dereferenceable(8) %7)
  %49 = load ptr, ptr %21, align 8, !tbaa !15
  %50 = getelementptr inbounds i8, ptr %49, i64 20
  %51 = load float, ptr %50, align 4, !tbaa !13
  %52 = fneg float %47
  %53 = call float @llvm.fmuladd.f32(float %52, float %48, float %51)
  store float %53, ptr %50, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %54 = load ptr, ptr %13, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %54, i64 52
  %56 = load float, ptr %55, align 4, !tbaa !17
  %57 = call <2 x float> @_ZmlfRK4Vec2(float noundef %56, ptr noundef nonnull align 4 dereferenceable(8) %7)
  store <2 x float> %57, ptr %12, align 8
  %58 = load ptr, ptr %13, align 8, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %58, i64 12
  call void @_ZN4Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %59, ptr noundef nonnull align 4 dereferenceable(8) %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  %60 = load ptr, ptr %13, align 8, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %60, i64 60
  %62 = load float, ptr %61, align 4, !tbaa !18
  %63 = call noundef float @_Z5CrossRK4Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %18, ptr noundef nonnull align 4 dereferenceable(8) %7)
  %64 = load ptr, ptr %13, align 8, !tbaa !5
  %65 = getelementptr inbounds i8, ptr %64, i64 20
  %66 = load float, ptr %65, align 4, !tbaa !13
  %67 = call float @llvm.fmuladd.f32(float %62, float %63, float %66)
  store float %67, ptr %65, align 4, !tbaa !13
  call void @_ZN4Vec2pLERKS_(ptr noundef nonnull align 4 dereferenceable(8) %35, ptr noundef nonnull align 4 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_Z5CrossfRK4Vec2(float noundef, ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #2 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint 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 = { 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 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #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, !12, i64 72}
!6 = !{!"_ZTS5Joint", !7, i64 0, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !8, i64 48, !8, i64 56, !12, i64 64, !12, i64 72, !9, i64 80, !9, i64 84}
!7 = !{!"_ZTS5Mat22", !8, i64 0, !8, i64 8}
!8 = !{!"_ZTS4Vec2", !9, i64 0, !9, i64 4}
!9 = !{!"float", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"any pointer", !10, i64 0}
!13 = !{!14, !9, i64 20}
!14 = !{!"_ZTS4Body", !8, i64 0, !9, i64 8, !8, i64 12, !9, i64 20, !8, i64 24, !9, i64 32, !8, i64 36, !9, i64 44, !9, i64 48, !9, i64 52, !9, i64 56, !9, i64 60}
!15 = !{!6, !12, i64 64}
!16 = !{!6, !9, i64 84}
!17 = !{!14, !9, i64 52}
!18 = !{!14, !9, i64 60}


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