; LLVM IR from jdeokkim/ferox :: src (world)

; 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.frRay_ = type { %struct.frVector2_, %struct.frVector2_, float }
%struct.frVector2_ = type { float, float }
%struct.frAABB_ = type { float, float, float, float }
%struct.frRaycastHashQueryCtx_ = type { ptr, ptr, %struct.frRay_, ptr }
%struct.frWorld_ = type { %struct.anon, %struct.anon.0, ptr, ptr, float, float, %struct.frCollisionHandler_, %struct.frVector2_ }
%struct.anon = type { ptr, i64, i64 }
%struct.anon.0 = type { ptr, i64, i32, i32 }
%struct.frCollisionHandler_ = type { ptr, ptr }

; 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: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

declare void @frClearSpatialHash(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @frComputeWorldRaycast(ptr noundef %0, ptr noundef byval(%struct.frRay_) align 8 %1, ptr noundef %2, ptr noundef %3) #3 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %struct.frAABB_, align 4
  %10 = alloca %struct.frVector2_, align 4
  %11 = alloca %struct.frVector2_, align 4
  %12 = alloca %struct.frVector2_, align 4
  %13 = alloca %struct.frVector2_, align 4
  %14 = alloca %struct.frAABB_, align 4
  %15 = alloca %struct.frRaycastHashQueryCtx_, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  store ptr %3, ptr %7, align 8, !tbaa !5
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = icmp eq ptr %16, null
  br i1 %17, label %21, label %18

18:                                               ; preds = %4
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = icmp eq ptr %19, null
  br i1 %20, label %21, label %22

21:                                               ; preds = %18, %4
  br label %113

22:                                               ; preds = %18
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.frWorld_, ptr %23, i32 0, i32 2
  %25 = load ptr, ptr %24, align 8, !tbaa !9
  call void @frClearSpatialHash(ptr noundef %25)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !18
  br label %26

26:                                               ; preds = %57, %22
  %27 = load i32, ptr %8, align 4, !tbaa !18
  %28 = sext i32 %27 to i64
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.frWorld_, ptr %29, i32 0, i32 0
  %31 = getelementptr inbounds %struct.anon, ptr %30, i32 0, i32 1
  %32 = load i64, ptr %31, align 8, !tbaa !19
  %33 = icmp ult i64 %28, %32
  br i1 %33, label %35, label %34

34:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %60

35:                                               ; preds = %26
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.frWorld_, ptr %36, i32 0, i32 2
  %38 = load ptr, ptr %37, align 8, !tbaa !9
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.frWorld_, ptr %39, i32 0, i32 0
  %41 = getelementptr inbounds %struct.anon, ptr %40, i32 0, i32 0
  %42 = load ptr, ptr %41, align 8, !tbaa !20
  %43 = load i32, ptr %8, align 4, !tbaa !18
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds ptr, ptr %42, i64 %44
  %46 = load ptr, ptr %45, align 8, !tbaa !5
  %47 = call { <2 x float>, <2 x float> } @frGetBodyAABB(ptr noundef %46)
  %48 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %9, i32 0, i32 0
  %49 = extractvalue { <2 x float>, <2 x float> } %47, 0
  store <2 x float> %49, ptr %48, align 4
  %50 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %9, i32 0, i32 1
  %51 = extractvalue { <2 x float>, <2 x float> } %47, 1
  store <2 x float> %51, ptr %50, align 4
  %52 = load i32, ptr %8, align 4, !tbaa !18
  %53 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %9, i32 0, i32 0
  %54 = load <2 x float>, ptr %53, align 4
  %55 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %9, i32 0, i32 1
  %56 = load <2 x float>, ptr %55, align 4
  call void @frInsertIntoSpatialHash(ptr noundef %38, <2 x float> %54, <2 x float> %56, i32 noundef %52)
  br label %57

57:                                               ; preds = %35
  %58 = load i32, ptr %8, align 4, !tbaa !18
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %8, align 4, !tbaa !18
  br label %26, !llvm.loop !21

60:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %61 = getelementptr inbounds %struct.frRay_, ptr %1, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 8 %61, i64 8, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %62 = getelementptr inbounds %struct.frRay_, ptr %1, i32 0, i32 0
  %63 = getelementptr inbounds %struct.frRay_, ptr %1, i32 0, i32 1
  %64 = load <2 x float>, ptr %63, align 8
  %65 = call <2 x float> @frVector2Normalize(<2 x float> %64)
  store <2 x float> %65, ptr %13, align 4
  %66 = getelementptr inbounds %struct.frRay_, ptr %1, i32 0, i32 2
  %67 = load float, ptr %66, align 8, !tbaa !25
  %68 = load <2 x float>, ptr %13, align 4
  %69 = call <2 x float> @frVector2ScalarMultiply(<2 x float> %68, float noundef %67)
  store <2 x float> %69, ptr %12, align 4
  %70 = load <2 x float>, ptr %62, align 8
  %71 = load <2 x float>, ptr %12, align 4
  %72 = call <2 x float> @frVector2Add(<2 x float> %70, <2 x float> %71)
  store <2 x float> %72, ptr %11, align 4
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.frWorld_, ptr %73, i32 0, i32 2
  %75 = load ptr, ptr %74, align 8, !tbaa !9
  %76 = getelementptr inbounds %struct.frAABB_, ptr %14, i32 0, i32 0
  %77 = getelementptr inbounds %struct.frVector2_, ptr %10, i32 0, i32 0
  %78 = load float, ptr %77, align 4, !tbaa !27
  %79 = getelementptr inbounds %struct.frVector2_, ptr %11, i32 0, i32 0
  %80 = load float, ptr %79, align 4, !tbaa !27
  %81 = call float @llvm.minnum.f32(float %78, float %80)
  store float %81, ptr %76, align 4, !tbaa !28
  %82 = getelementptr inbounds %struct.frAABB_, ptr %14, i32 0, i32 1
  %83 = getelementptr inbounds %struct.frVector2_, ptr %10, i32 0, i32 1
  %84 = load float, ptr %83, align 4, !tbaa !30
  %85 = getelementptr inbounds %struct.frVector2_, ptr %11, i32 0, i32 1
  %86 = load float, ptr %85, align 4, !tbaa !30
  %87 = call float @llvm.minnum.f32(float %84, float %86)
  store float %87, ptr %82, align 4, !tbaa !31
  %88 = getelementptr inbounds %struct.frAABB_, ptr %14, i32 0, i32 2
  %89 = getelementptr inbounds %struct.frVector2_, ptr %11, i32 0, i32 0
  %90 = load float, ptr %89, align 4, !tbaa !27
  %91 = getelementptr inbounds %struct.frVector2_, ptr %10, i32 0, i32 0
  %92 = load float, ptr %91, align 4, !tbaa !27
  %93 = fsub float %90, %92
  %94 = call float @llvm.fabs.f32(float %93)
  store float %94, ptr %88, align 4, !tbaa !32
  %95 = getelementptr inbounds %struct.frAABB_, ptr %14, i32 0, i32 3
  %96 = getelementptr inbounds %struct.frVector2_, ptr %11, i32 0, i32 1
  %97 = load float, ptr %96, align 4, !tbaa !30
  %98 = getelementptr inbounds %struct.frVector2_, ptr %10, i32 0, i32 1
  %99 = load float, ptr %98, align 4, !tbaa !30
  %100 = fsub float %97, %99
  %101 = call float @llvm.fabs.f32(float %100)
  store float %101, ptr %95, align 4, !tbaa !33
  %102 = getelementptr inbounds %struct.frRaycastHashQueryCtx_, ptr %15, i32 0, i32 0
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %103, ptr %102, align 8, !tbaa !34
  %104 = getelementptr inbounds %struct.frRaycastHashQueryCtx_, ptr %15, i32 0, i32 1
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %105, ptr %104, align 8, !tbaa !36
  %106 = getelementptr inbounds %struct.frRaycastHashQueryCtx_, ptr %15, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %106, ptr align 8 %1, i64 20, i1 false), !tbaa.struct !37
  %107 = getelementptr inbounds %struct.frRaycastHashQueryCtx_, ptr %15, i32 0, i32 3
  %108 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %108, ptr %107, align 8, !tbaa !38
  %109 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %14, i32 0, i32 0
  %110 = load <2 x float>, ptr %109, align 4
  %111 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %14, i32 0, i32 1
  %112 = load <2 x float>, ptr %111, align 4
  call void @frQuerySpatialHash(ptr noundef %75, <2 x float> %110, <2 x float> %112, ptr noundef @frRaycastHashQueryCallback, ptr noundef %15)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %113

113:                                              ; preds = %60, %21
  ret void
}

declare void @frInsertIntoSpatialHash(ptr noundef, <2 x float>, <2 x float>, i32 noundef) #2

declare { <2 x float>, <2 x float> } @frGetBodyAABB(ptr noundef) #2

; Function Attrs: alwaysinline nounwind uwtable
declare <2 x float> @frVector2Add(<2 x float>, <2 x float>) #4

; Function Attrs: alwaysinline nounwind uwtable
declare <2 x float> @frVector2ScalarMultiply(<2 x float>, float noundef) #4

; Function Attrs: alwaysinline nounwind uwtable
declare <2 x float> @frVector2Normalize(<2 x float>) #4

declare void @frQuerySpatialHash(ptr noundef, <2 x float>, <2 x float>, ptr noundef, ptr noundef) #2

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

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

; Function Attrs: nounwind uwtable
declare hidden zeroext i1 @frRaycastHashQueryCallback(i32, ptr) #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { alwaysinline 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #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/C++ TBAA"}
!9 = !{!10, !6, i64 48}
!10 = !{!"frWorld_", !11, i64 0, !13, i64 24, !6, i64 48, !6, i64 56, !15, i64 64, !15, i64 68, !16, i64 72, !17, i64 88}
!11 = !{!"", !6, i64 0, !12, i64 8, !12, i64 16}
!12 = !{!"long", !7, i64 0}
!13 = !{!"", !6, i64 0, !12, i64 8, !14, i64 16, !14, i64 20}
!14 = !{!"int", !7, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!"frCollisionHandler_", !6, i64 0, !6, i64 8}
!17 = !{!"frVector2_", !15, i64 0, !15, i64 4}
!18 = !{!14, !14, i64 0}
!19 = !{!10, !12, i64 8}
!20 = !{!10, !6, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{i64 0, i64 4, !24, i64 4, i64 4, !24}
!24 = !{!15, !15, i64 0}
!25 = !{!26, !15, i64 16}
!26 = !{!"frRay_", !17, i64 0, !17, i64 8, !15, i64 16}
!27 = !{!17, !15, i64 0}
!28 = !{!29, !15, i64 0}
!29 = !{!"frAABB_", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!30 = !{!17, !15, i64 4}
!31 = !{!29, !15, i64 4}
!32 = !{!29, !15, i64 8}
!33 = !{!29, !15, i64 12}
!34 = !{!35, !6, i64 0}
!35 = !{!"frRaycastHashQueryCtx_", !6, i64 0, !6, i64 8, !26, i64 16, !6, i64 40}
!36 = !{!35, !6, i64 8}
!37 = !{i64 0, i64 4, !24, i64 4, i64 4, !24, i64 8, i64 4, !24, i64 12, i64 4, !24, i64 16, i64 4, !24}
!38 = !{!35, !6, i64 40}


; 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.frRay_ = type { %struct.frVector2_, %struct.frVector2_, float }
%struct.frVector2_ = type { float, float }
%struct.frRaycastHashQueryCtx_ = type { ptr, ptr, %struct.frRay_, ptr }

; Function Attrs: mustprogress 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

declare void @frClearSpatialHash(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @frComputeWorldRaycast(ptr noundef %0, ptr nocapture noundef readonly byval(%struct.frRay_) align 8 %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #2 {
  %5 = alloca %struct.frRaycastHashQueryCtx_, align 8
  %6 = icmp eq ptr %0, null
  %7 = icmp eq ptr %2, null
  %or.cond = or i1 %6, %7
  br i1 %or.cond, label %38, label %8

8:                                                ; preds = %4
  %9 = getelementptr inbounds i8, ptr %0, i64 48
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  tail call void @frClearSpatialHash(ptr noundef %10) #6
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = load i64, ptr %11, align 8, !tbaa !17
  %.not = icmp eq i64 %12, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %8
  %13 = getelementptr inbounds i8, ptr %1, i64 8
  %14 = load <2 x float>, ptr %13, align 8
  %15 = tail call <2 x float> @frVector2Normalize(<2 x float> %14)
  %16 = getelementptr inbounds i8, ptr %1, i64 16
  %17 = load float, ptr %16, align 8, !tbaa !18
  %18 = tail call <2 x float> @frVector2ScalarMultiply(<2 x float> %15, float noundef %17)
  %19 = load <2 x float>, ptr %1, align 8
  %20 = tail call <2 x float> @frVector2Add(<2 x float> %19, <2 x float> %18)
  %21 = load ptr, ptr %9, align 8, !tbaa !5
  %22 = tail call <2 x float> @llvm.minnum.v2f32(<2 x float> %19, <2 x float> %20)
  %23 = fsub <2 x float> %20, %19
  %24 = tail call <2 x float> @llvm.fabs.v2f32(<2 x float> %23)
  store ptr %2, ptr %5, align 8, !tbaa !20
  %25 = getelementptr inbounds i8, ptr %5, i64 8
  store ptr %0, ptr %25, align 8, !tbaa !22
  %26 = getelementptr inbounds i8, ptr %5, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %26, ptr noundef nonnull align 8 dereferenceable(20) %1, i64 20, i1 false), !tbaa.struct !23
  %27 = getelementptr inbounds i8, ptr %5, i64 40
  store ptr %3, ptr %27, align 8, !tbaa !25
  call void @frQuerySpatialHash(ptr noundef %21, <2 x float> %22, <2 x float> %24, ptr noundef nonnull @frRaycastHashQueryCallback, ptr noundef nonnull %5) #6
  br label %38

.lr.ph:                                           ; preds = %8, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %8 ]
  %28 = load ptr, ptr %9, align 8, !tbaa !5
  %29 = load ptr, ptr %0, align 8, !tbaa !26
  %30 = getelementptr inbounds ptr, ptr %29, i64 %indvars.iv
  %31 = load ptr, ptr %30, align 8, !tbaa !27
  %32 = tail call { <2 x float>, <2 x float> } @frGetBodyAABB(ptr noundef %31) #6
  %33 = extractvalue { <2 x float>, <2 x float> } %32, 0
  %34 = extractvalue { <2 x float>, <2 x float> } %32, 1
  %35 = trunc nuw nsw i64 %indvars.iv to i32
  tail call void @frInsertIntoSpatialHash(ptr noundef %28, <2 x float> %33, <2 x float> %34, i32 noundef %35) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %36 = load i64, ptr %11, align 8, !tbaa !17
  %37 = icmp ugt i64 %36, %indvars.iv.next
  br i1 %37, label %.lr.ph, label %._crit_edge, !llvm.loop !28

38:                                               ; preds = %4, %._crit_edge
  ret void
}

declare void @frInsertIntoSpatialHash(ptr noundef, <2 x float>, <2 x float>, i32 noundef) local_unnamed_addr #1

declare { <2 x float>, <2 x float> } @frGetBodyAABB(ptr noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline nounwind uwtable
declare <2 x float> @frVector2Add(<2 x float>, <2 x float>) local_unnamed_addr #3

; Function Attrs: alwaysinline nounwind uwtable
declare <2 x float> @frVector2ScalarMultiply(<2 x float>, float noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline nounwind uwtable
declare <2 x float> @frVector2Normalize(<2 x float>) local_unnamed_addr #3

declare void @frQuerySpatialHash(ptr noundef, <2 x float>, <2 x float>, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden zeroext i1 @frRaycastHashQueryCallback(i32, ptr) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x float> @llvm.fabs.v2f32(<2 x float>) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x float> @llvm.minnum.v2f32(<2 x float>, <2 x float>) #5

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 = { alwaysinline 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"="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 = { 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, !8, i64 48}
!6 = !{!"frWorld_", !7, i64 0, !12, i64 24, !8, i64 48, !8, i64 56, !14, i64 64, !14, i64 68, !15, i64 72, !16, i64 88}
!7 = !{!"", !8, i64 0, !11, i64 8, !11, i64 16}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!"", !8, i64 0, !11, i64 8, !13, i64 16, !13, i64 20}
!13 = !{!"int", !9, i64 0}
!14 = !{!"float", !9, i64 0}
!15 = !{!"frCollisionHandler_", !8, i64 0, !8, i64 8}
!16 = !{!"frVector2_", !14, i64 0, !14, i64 4}
!17 = !{!6, !11, i64 8}
!18 = !{!19, !14, i64 16}
!19 = !{!"frRay_", !16, i64 0, !16, i64 8, !14, i64 16}
!20 = !{!21, !8, i64 0}
!21 = !{!"frRaycastHashQueryCtx_", !8, i64 0, !8, i64 8, !19, i64 16, !8, i64 40}
!22 = !{!21, !8, i64 8}
!23 = !{i64 0, i64 4, !24, i64 4, i64 4, !24, i64 8, i64 4, !24, i64 12, i64 4, !24, i64 16, i64 4, !24}
!24 = !{!14, !14, i64 0}
!25 = !{!21, !8, i64 40}
!26 = !{!6, !8, i64 0}
!27 = !{!8, !8, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalDCEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass