; LLVM IR from erincatto/box2d :: src (geometry)

; 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.b2CastOutput = type { %struct.b2Vec2, %struct.b2Vec2, float, i32, i8 }
%struct.b2Vec2 = type { float, float }
%struct.b2RayCastInput = type { %struct.b2Vec2, %struct.b2Vec2, float }
%struct.b2Segment = type { %struct.b2Vec2, %struct.b2Vec2 }

; 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: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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: inlinehint nounwind uwtable
declare hidden <2 x float> @b2Sub(<2 x float>, <2 x float>) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @b2Dot(<2 x float>, <2 x float>) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2MulAdd(<2 x float>, float noundef, <2 x float>) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @b2Cross(<2 x float>, <2 x float>) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2GetLengthAndNormalize(ptr noundef, <2 x float>) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2Neg(<2 x float>) #3

; Function Attrs: nounwind uwtable
define dso_local void @b2RayCastSegment(ptr dead_on_unwind noalias writable sret(%struct.b2CastOutput) align 4 %0, ptr noundef %1, ptr noundef %2, i1 noundef zeroext %3) #4 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  %8 = alloca float, align 4
  %9 = alloca %struct.b2Vec2, align 4
  %10 = alloca %struct.b2Vec2, align 4
  %11 = alloca i32, align 4
  %12 = alloca %struct.b2Vec2, align 4
  %13 = alloca %struct.b2Vec2, align 4
  %14 = alloca %struct.b2Vec2, align 4
  %15 = alloca %struct.b2Vec2, align 4
  %16 = alloca %struct.b2Vec2, align 4
  %17 = alloca float, align 4
  %18 = alloca %struct.b2Vec2, align 4
  %19 = alloca %struct.b2Vec2, align 4
  %20 = alloca float, align 4
  %21 = alloca %struct.b2Vec2, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca %struct.b2Vec2, align 4
  %25 = alloca float, align 4
  %26 = alloca %struct.b2Vec2, align 4
  %27 = alloca %struct.b2Vec2, align 4
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %28 = zext i1 %3 to i8
  store i8 %28, ptr %7, align 1, !tbaa !9
  %29 = load i8, ptr %7, align 1, !tbaa !9, !range !11, !noundef !12
  %30 = trunc i8 %29 to i1
  br i1 %30, label %31, label %56

31:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.b2RayCastInput, ptr %32, i32 0, i32 0
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.b2Segment, ptr %34, i32 0, i32 0
  %36 = load <2 x float>, ptr %33, align 4
  %37 = load <2 x float>, ptr %35, align 4
  %38 = call <2 x float> @b2Sub(<2 x float> %36, <2 x float> %37)
  store <2 x float> %38, ptr %9, align 4
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.b2Segment, ptr %39, i32 0, i32 1
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.b2Segment, ptr %41, i32 0, i32 0
  %43 = load <2 x float>, ptr %40, align 4
  %44 = load <2 x float>, ptr %42, align 4
  %45 = call <2 x float> @b2Sub(<2 x float> %43, <2 x float> %44)
  store <2 x float> %45, ptr %10, align 4
  %46 = load <2 x float>, ptr %9, align 4
  %47 = load <2 x float>, ptr %10, align 4
  %48 = call float @b2Cross(<2 x float> %46, <2 x float> %47)
  store float %48, ptr %8, align 4, !tbaa !13
  %49 = load float, ptr %8, align 4, !tbaa !13
  %50 = fcmp olt float %49, 0.000000e+00
  br i1 %50, label %51, label %52

51:                                               ; preds = %31
  call void @llvm.memset.p0.i64(ptr align 4 %0, i8 0, i64 28, i1 false)
  store i32 1, ptr %11, align 4
  br label %53

52:                                               ; preds = %31
  store i32 0, ptr %11, align 4
  br label %53

53:                                               ; preds = %52, %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  %54 = load i32, ptr %11, align 4
  switch i32 %54, label %136 [
    i32 0, label %55
    i32 1, label %135
  ]

55:                                               ; preds = %53
  br label %56

56:                                               ; preds = %55, %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.b2RayCastInput, ptr %57, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %58, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.b2RayCastInput, ptr %59, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %60, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.b2Segment, ptr %61, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %62, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.b2Segment, ptr %63, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %64, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %65 = load <2 x float>, ptr %15, align 4
  %66 = load <2 x float>, ptr %14, align 4
  %67 = call <2 x float> @b2Sub(<2 x float> %65, <2 x float> %66)
  store <2 x float> %67, ptr %16, align 4
  call void @llvm.memset.p0.i64(ptr align 4 %0, i8 0, i64 28, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %68 = load <2 x float>, ptr %16, align 4
  %69 = call <2 x float> @b2GetLengthAndNormalize(ptr noundef %17, <2 x float> %68)
  store <2 x float> %69, ptr %18, align 4
  %70 = load float, ptr %17, align 4, !tbaa !13
  %71 = fcmp oeq float %70, 0.000000e+00
  br i1 %71, label %72, label %73

72:                                               ; preds = %56
  store i32 1, ptr %11, align 4
  br label %134

73:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %74 = load <2 x float>, ptr %18, align 4
  %75 = call <2 x float> @b2RightPerp(<2 x float> %74)
  store <2 x float> %75, ptr %19, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %76 = load <2 x float>, ptr %14, align 4
  %77 = load <2 x float>, ptr %12, align 4
  %78 = call <2 x float> @b2Sub(<2 x float> %76, <2 x float> %77)
  store <2 x float> %78, ptr %21, align 4
  %79 = load <2 x float>, ptr %19, align 4
  %80 = load <2 x float>, ptr %21, align 4
  %81 = call float @b2Dot(<2 x float> %79, <2 x float> %80)
  store float %81, ptr %20, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %82 = load <2 x float>, ptr %19, align 4
  %83 = load <2 x float>, ptr %13, align 4
  %84 = call float @b2Dot(<2 x float> %82, <2 x float> %83)
  store float %84, ptr %22, align 4, !tbaa !13
  %85 = load float, ptr %22, align 4, !tbaa !13
  %86 = fcmp oeq float %85, 0.000000e+00
  br i1 %86, label %87, label %88

87:                                               ; preds = %73
  store i32 1, ptr %11, align 4
  br label %133

88:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %89 = load float, ptr %20, align 4, !tbaa !13
  %90 = load float, ptr %22, align 4, !tbaa !13
  %91 = fdiv float %89, %90
  store float %91, ptr %23, align 4, !tbaa !13
  %92 = load float, ptr %23, align 4, !tbaa !13
  %93 = fcmp olt float %92, 0.000000e+00
  br i1 %93, label %100, label %94

94:                                               ; preds = %88
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.b2RayCastInput, ptr %95, i32 0, i32 2
  %97 = load float, ptr %96, align 4, !tbaa !16
  %98 = load float, ptr %23, align 4, !tbaa !13
  %99 = fcmp olt float %97, %98
  br i1 %99, label %100, label %101

100:                                              ; preds = %94, %88
  store i32 1, ptr %11, align 4
  br label %132

101:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %102 = load float, ptr %23, align 4, !tbaa !13
  %103 = load <2 x float>, ptr %12, align 4
  %104 = load <2 x float>, ptr %13, align 4
  %105 = call <2 x float> @b2MulAdd(<2 x float> %103, float noundef %102, <2 x float> %104)
  store <2 x float> %105, ptr %24, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %106 = load <2 x float>, ptr %24, align 4
  %107 = load <2 x float>, ptr %14, align 4
  %108 = call <2 x float> @b2Sub(<2 x float> %106, <2 x float> %107)
  store <2 x float> %108, ptr %26, align 4
  %109 = load <2 x float>, ptr %26, align 4
  %110 = load <2 x float>, ptr %18, align 4
  %111 = call float @b2Dot(<2 x float> %109, <2 x float> %110)
  store float %111, ptr %25, align 4, !tbaa !13
  %112 = load float, ptr %25, align 4, !tbaa !13
  %113 = fcmp olt float %112, 0.000000e+00
  br i1 %113, label %118, label %114

114:                                              ; preds = %101
  %115 = load float, ptr %17, align 4, !tbaa !13
  %116 = load float, ptr %25, align 4, !tbaa !13
  %117 = fcmp olt float %115, %116
  br i1 %117, label %118, label %119

118:                                              ; preds = %114, %101
  store i32 1, ptr %11, align 4
  br label %131

119:                                              ; preds = %114
  %120 = load float, ptr %20, align 4, !tbaa !13
  %121 = fcmp ogt float %120, 0.000000e+00
  br i1 %121, label %122, label %125

122:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  %123 = load <2 x float>, ptr %19, align 4
  %124 = call <2 x float> @b2Neg(<2 x float> %123)
  store <2 x float> %124, ptr %27, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %27, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  br label %125

125:                                              ; preds = %122, %119
  %126 = load float, ptr %23, align 4, !tbaa !13
  %127 = getelementptr inbounds %struct.b2CastOutput, ptr %0, i32 0, i32 2
  store float %126, ptr %127, align 4, !tbaa !19
  %128 = getelementptr inbounds %struct.b2CastOutput, ptr %0, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %128, ptr align 4 %24, i64 8, i1 false), !tbaa.struct !15
  %129 = getelementptr inbounds %struct.b2CastOutput, ptr %0, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %129, ptr align 4 %19, i64 8, i1 false), !tbaa.struct !15
  %130 = getelementptr inbounds %struct.b2CastOutput, ptr %0, i32 0, i32 4
  store i8 1, ptr %130, align 4, !tbaa !22
  store i32 1, ptr %11, align 4
  br label %131

131:                                              ; preds = %125, %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %132

132:                                              ; preds = %131, %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %133

133:                                              ; preds = %132, %87
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %134

134:                                              ; preds = %133, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %135

135:                                              ; preds = %134, %53
  ret void

136:                                              ; preds = %53
  unreachable
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2RightPerp(<2 x float>) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint 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 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_Bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{i64 0, i64 4, !13, i64 4, i64 4, !13}
!16 = !{!17, !14, i64 16}
!17 = !{!"b2RayCastInput", !18, i64 0, !18, i64 8, !14, i64 16}
!18 = !{!"b2Vec2", !14, i64 0, !14, i64 4}
!19 = !{!20, !14, i64 16}
!20 = !{!"b2CastOutput", !18, i64 0, !18, i64 8, !14, i64 16, !21, i64 20, !10, i64 24}
!21 = !{!"int", !7, i64 0}
!22 = !{!20, !10, i64 24}


; 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.b2CastOutput = type { %struct.b2Vec2, %struct.b2Vec2, float, i32, i8 }
%struct.b2Vec2 = 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2Sub(<2 x float>, <2 x float>) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @b2Dot(<2 x float>, <2 x float>) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2MulAdd(<2 x float>, float noundef, <2 x float>) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @b2Cross(<2 x float>, <2 x float>) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2GetLengthAndNormalize(ptr noundef, <2 x float>) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2Neg(<2 x float>) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @b2RayCastSegment(ptr dead_on_unwind noalias nocapture writable writeonly sret(%struct.b2CastOutput) align 4 %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, i1 noundef zeroext %3) local_unnamed_addr #3 {
  %5 = alloca float, align 4
  br i1 %3, label %6, label %.thread

6:                                                ; preds = %4
  %7 = load <2 x float>, ptr %1, align 4
  %8 = load <2 x float>, ptr %2, align 4
  %9 = tail call <2 x float> @b2Sub(<2 x float> %7, <2 x float> %8)
  %10 = getelementptr inbounds i8, ptr %2, i64 8
  %11 = load <2 x float>, ptr %10, align 4
  %12 = load <2 x float>, ptr %2, align 4
  %13 = tail call <2 x float> @b2Sub(<2 x float> %11, <2 x float> %12)
  %14 = tail call float @b2Cross(<2 x float> %9, <2 x float> %13)
  %15 = fcmp olt float %14, 0.000000e+00
  br i1 %15, label %16, label %.thread

16:                                               ; preds = %6
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(28) %0, i8 0, i64 28, i1 false)
  br label %52

.thread:                                          ; preds = %6, %4
  %.sroa.025.0.copyload = load <2 x float>, ptr %1, align 4
  %17 = getelementptr inbounds i8, ptr %1, i64 8
  %.sroa.023.0.copyload = load <2 x float>, ptr %17, align 4
  %.sroa.020.0.copyload = load <2 x float>, ptr %2, align 4
  %18 = getelementptr inbounds i8, ptr %2, i64 8
  %.sroa.019.0.copyload = load <2 x float>, ptr %18, align 4
  %19 = tail call <2 x float> @b2Sub(<2 x float> %.sroa.019.0.copyload, <2 x float> %.sroa.020.0.copyload)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(28) %0, i8 0, i64 28, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  %20 = call <2 x float> @b2GetLengthAndNormalize(ptr noundef nonnull %5, <2 x float> %19)
  %21 = load float, ptr %5, align 4, !tbaa !5
  %22 = fcmp oeq float %21, 0.000000e+00
  br i1 %22, label %51, label %23

23:                                               ; preds = %.thread
  %24 = call <2 x float> @b2RightPerp(<2 x float> %20)
  %25 = call <2 x float> @b2Sub(<2 x float> %.sroa.020.0.copyload, <2 x float> %.sroa.025.0.copyload)
  %26 = call float @b2Dot(<2 x float> %24, <2 x float> %25)
  %27 = call float @b2Dot(<2 x float> %24, <2 x float> %.sroa.023.0.copyload)
  %28 = fcmp oeq float %27, 0.000000e+00
  br i1 %28, label %51, label %29

29:                                               ; preds = %23
  %30 = fdiv float %26, %27
  %31 = fcmp olt float %30, 0.000000e+00
  br i1 %31, label %51, label %32

32:                                               ; preds = %29
  %33 = getelementptr inbounds i8, ptr %1, i64 16
  %34 = load float, ptr %33, align 4, !tbaa !9
  %35 = fcmp olt float %34, %30
  br i1 %35, label %51, label %36

36:                                               ; preds = %32
  %37 = call <2 x float> @b2MulAdd(<2 x float> %.sroa.025.0.copyload, float noundef %30, <2 x float> %.sroa.023.0.copyload)
  %38 = call <2 x float> @b2Sub(<2 x float> %37, <2 x float> %.sroa.020.0.copyload)
  %39 = call float @b2Dot(<2 x float> %38, <2 x float> %20)
  %40 = fcmp olt float %39, 0.000000e+00
  %41 = load float, ptr %5, align 4
  %42 = fcmp olt float %41, %39
  %or.cond = select i1 %40, i1 true, i1 %42
  br i1 %or.cond, label %51, label %43

43:                                               ; preds = %36
  %44 = fcmp ogt float %26, 0.000000e+00
  br i1 %44, label %45, label %47

45:                                               ; preds = %43
  %46 = call <2 x float> @b2Neg(<2 x float> %24)
  br label %47

47:                                               ; preds = %45, %43
  %.sroa.013.0 = phi <2 x float> [ %46, %45 ], [ %24, %43 ]
  %48 = getelementptr inbounds i8, ptr %0, i64 16
  store float %30, ptr %48, align 4, !tbaa !12
  %49 = getelementptr inbounds i8, ptr %0, i64 8
  store <2 x float> %37, ptr %49, align 4
  store <2 x float> %.sroa.013.0, ptr %0, align 4
  %50 = getelementptr inbounds i8, ptr %0, i64 24
  store i8 1, ptr %50, align 4, !tbaa !16
  br label %51

51:                                               ; preds = %23, %47, %36, %29, %32, %.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  br label %52

52:                                               ; preds = %16, %51
  ret void
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2RightPerp(<2 x float>) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { inlinehint 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 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 16}
!10 = !{!"b2RayCastInput", !11, i64 0, !11, i64 8, !6, i64 16}
!11 = !{!"b2Vec2", !6, i64 0, !6, i64 4}
!12 = !{!13, !6, i64 16}
!13 = !{!"b2CastOutput", !11, i64 0, !11, i64 8, !6, i64 16, !14, i64 20, !15, i64 24}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_Bool", !7, i64 0}
!16 = !{!13, !15, i64 24}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass