; LLVM IR from Slingshot-Physics/slingshot-community :: common/geometry/src (raycast)

; 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"

%class.Vector3 = type { [3 x float] }
%class.Matrix33 = type { [9 x float] }
%"struct.geometry::types::raycastResult_t" = type { i8, i32, [2 x %class.Vector3], [2 x float] }
%"struct.edbdmath::quadraticResult_t" = type { i32, [2 x float] }
%"struct.geometry::types::transform_t" = type { %class.Matrix33, %class.Matrix33, %class.Vector3 }
%"struct.geometry::types::shapeCylinder_t" = type { 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: mustprogress uwtable
declare dso_local void @_ZNK7Vector3miERKS_(ptr dead_on_unwind noalias writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8Matrix33coEv(ptr dead_on_unwind noalias writable sret(%class.Matrix33) align 4, ptr noundef nonnull align 4 dereferenceable(36)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8Matrix33mlERKS_(ptr dead_on_unwind noalias writable sret(%class.Matrix33) align 4, ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(36)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8Matrix339transposeEv(ptr dead_on_unwind noalias writable sret(%class.Matrix33) align 4, ptr noundef nonnull align 4 dereferenceable(36)) #1 align 2

; 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 void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind noalias writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(12)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #1 align 2

declare { i64, float } @_ZN8edbdmath14quadraticRootsEfff(float noundef, float noundef, float noundef) #2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8geometry5types15raycastResult_tC2Ev(ptr noundef nonnull align 4 dereferenceable(40)) unnamed_addr #5 align 2

declare void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(12)) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Vector3plERKS_(ptr dead_on_unwind noalias writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8geometry7raycastERK7Vector3S2_RKNS_5types11transform_tERKNS3_15shapeCylinder_tE(ptr dead_on_unwind noalias writable sret(%"struct.geometry::types::raycastResult_t") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(84) %3, ptr noundef nonnull align 4 dereferenceable(8) %4) #1 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %class.Vector3, align 4
  %12 = alloca %class.Matrix33, align 4
  %13 = alloca %class.Matrix33, align 4
  %14 = alloca %class.Matrix33, align 4
  %15 = alloca %class.Vector3, align 4
  %16 = alloca %class.Vector3, align 4
  %17 = alloca %class.Vector3, align 4
  %18 = alloca %class.Matrix33, align 4
  %19 = alloca %class.Vector3, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca %class.Vector3, align 4
  %24 = alloca %"struct.edbdmath::quadraticResult_t", align 4
  %25 = alloca { i64, float }, align 8
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca float, align 4
  %29 = alloca float, align 4
  %30 = alloca i8, align 1
  %31 = alloca i8, align 1
  %32 = alloca %"struct.geometry::types::raycastResult_t", align 4
  %33 = alloca ptr, align 8
  %34 = alloca %class.Vector3, align 4
  %35 = alloca %class.Vector3, align 4
  %36 = alloca %class.Vector3, align 4
  %37 = alloca %class.Vector3, align 4
  %38 = alloca %class.Vector3, align 4
  %39 = alloca %class.Vector3, align 4
  %40 = alloca %class.Vector3, align 4
  %41 = alloca %class.Vector3, align 4
  %42 = alloca %class.Vector3, align 4
  %43 = alloca %class.Vector3, align 4
  %44 = alloca ptr, align 8
  %45 = alloca i32, align 4
  %46 = alloca %class.Vector3, align 4
  %47 = alloca %class.Vector3, align 4
  %48 = alloca %class.Vector3, align 4
  %49 = alloca %class.Vector3, align 4
  %50 = alloca %class.Vector3, align 4
  %51 = alloca %class.Vector3, align 4
  %52 = alloca ptr, align 8
  %53 = alloca i32, align 4
  store ptr %0, ptr %6, align 8
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #8
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %11, ptr noundef nonnull align 4 dereferenceable(12) %54, ptr noundef nonnull align 4 dereferenceable(12) %55)
  call void @llvm.lifetime.start.p0(i64 36, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 36, ptr %13) #8
  %56 = load ptr, ptr %9, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.geometry::types::transform_t", ptr %56, i32 0, i32 0
  call void @_ZNK8Matrix33coEv(ptr dead_on_unwind writable sret(%class.Matrix33) align 4 %13, ptr noundef nonnull align 4 dereferenceable(36) %57)
  call void @llvm.lifetime.start.p0(i64 36, ptr %14) #8
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.geometry::types::transform_t", ptr %58, i32 0, i32 1
  call void @_ZNK8Matrix339transposeEv(ptr dead_on_unwind writable sret(%class.Matrix33) align 4 %14, ptr noundef nonnull align 4 dereferenceable(36) %59)
  call void @_ZNK8Matrix33mlERKS_(ptr dead_on_unwind writable sret(%class.Matrix33) align 4 %12, ptr noundef nonnull align 4 dereferenceable(36) %13, ptr noundef nonnull align 4 dereferenceable(36) %14)
  call void @llvm.lifetime.end.p0(i64 36, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 36, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #8
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.geometry::types::transform_t", ptr %61, i32 0, i32 2
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %16, ptr noundef nonnull align 4 dereferenceable(12) %60, ptr noundef nonnull align 4 dereferenceable(12) %62)
  call void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %15, ptr noundef nonnull align 4 dereferenceable(36) %12, ptr noundef nonnull align 4 dereferenceable(12) %16)
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #8
  call void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %17, ptr noundef nonnull align 4 dereferenceable(36) %12, ptr noundef nonnull align 4 dereferenceable(12) %11)
  call void @llvm.lifetime.start.p0(i64 36, ptr %18) #8
  call void @_ZN8Matrix33C2Efffffffff(ptr noundef nonnull align 4 dereferenceable(36) %18, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #8
  call void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %19, ptr noundef nonnull align 4 dereferenceable(36) %18, ptr noundef nonnull align 4 dereferenceable(12) %17)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %63 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %19)
  store float %63, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %64 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %15, ptr noundef nonnull align 4 dereferenceable(12) %19)
  %65 = fmul float 2.000000e+00, %64
  store float %65, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %23) #8
  call void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %23, ptr noundef nonnull align 4 dereferenceable(36) %18, ptr noundef nonnull align 4 dereferenceable(12) %15)
  %66 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %15, ptr noundef nonnull align 4 dereferenceable(12) %23)
  %67 = load ptr, ptr %10, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.geometry::types::shapeCylinder_t", ptr %67, i32 0, i32 0
  %69 = load float, ptr %68, align 4, !tbaa !11
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.geometry::types::shapeCylinder_t", ptr %70, i32 0, i32 0
  %72 = load float, ptr %71, align 4, !tbaa !11
  %73 = fneg float %69
  %74 = call float @llvm.fmuladd.f32(float %73, float %72, float %66)
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #8
  store float %74, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #8
  %75 = load float, ptr %20, align 4, !tbaa !9
  %76 = load float, ptr %21, align 4, !tbaa !9
  %77 = load float, ptr %22, align 4, !tbaa !9
  %78 = call { i64, float } @_ZN8edbdmath14quadraticRootsEfff(float noundef %75, float noundef %76, float noundef %77)
  store { i64, float } %78, ptr %25, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 8 %25, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %79 = load ptr, ptr %10, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.geometry::types::shapeCylinder_t", ptr %79, i32 0, i32 1
  %81 = load float, ptr %80, align 4, !tbaa !13
  %82 = fmul float -1.000000e+00, %81
  %83 = fdiv float %82, 2.000000e+00
  %84 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %15, i32 noundef 2)
  %85 = load float, ptr %84, align 4, !tbaa !9
  %86 = fsub float %83, %85
  %87 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %17, i32 noundef 2)
  %88 = load float, ptr %87, align 4, !tbaa !9
  %89 = fdiv float %86, %88
  store float %89, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.geometry::types::shapeCylinder_t", ptr %90, i32 0, i32 1
  %92 = load float, ptr %91, align 4, !tbaa !13
  %93 = fdiv float %92, 2.000000e+00
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %15, i32 noundef 2)
  %95 = load float, ptr %94, align 4, !tbaa !9
  %96 = fsub float %93, %95
  %97 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %17, i32 noundef 2)
  %98 = load float, ptr %97, align 4, !tbaa !9
  %99 = fdiv float %96, %98
  store float %99, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  %100 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 4 dereferenceable(4) %27)
  %101 = load float, ptr %100, align 4, !tbaa !9
  store float %101, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  %102 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 4 dereferenceable(4) %27)
  %103 = load float, ptr %102, align 4, !tbaa !9
  store float %103, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #8
  %104 = load float, ptr %20, align 4, !tbaa !9
  %105 = load float, ptr %21, align 4, !tbaa !9
  %106 = load float, ptr %22, align 4, !tbaa !9
  %107 = load float, ptr %29, align 4, !tbaa !9
  %108 = call noundef float @_ZN8edbdmath13quadraticEvalEffff(float noundef %104, float noundef %105, float noundef %106, float noundef %107)
  %109 = fcmp ole float %108, 0.000000e+00
  %110 = zext i1 %109 to i8
  store i8 %110, ptr %30, align 1, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 1, ptr %31) #8
  %111 = load float, ptr %20, align 4, !tbaa !9
  %112 = load float, ptr %21, align 4, !tbaa !9
  %113 = load float, ptr %22, align 4, !tbaa !9
  %114 = load float, ptr %28, align 4, !tbaa !9
  %115 = call noundef float @_ZN8edbdmath13quadraticEvalEffff(float noundef %111, float noundef %112, float noundef %113, float noundef %114)
  %116 = fcmp ole float %115, 0.000000e+00
  %117 = zext i1 %116 to i8
  store i8 %117, ptr %31, align 1, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 40, ptr %32) #8
  call void @_ZN8geometry5types15raycastResult_tC2Ev(ptr noundef nonnull align 4 dereferenceable(40) %32)
  %118 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %32, i32 0, i32 1
  store i32 0, ptr %118, align 4, !tbaa !16
  %119 = getelementptr inbounds %"struct.edbdmath::quadraticResult_t", ptr %24, i32 0, i32 0
  %120 = load i32, ptr %119, align 4, !tbaa !19
  %121 = icmp eq i32 %120, 0
  br i1 %121, label %122, label %158

122:                                              ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %123 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %32, i32 0, i32 1
  store ptr %123, ptr %33, align 8, !tbaa !5
  %124 = load ptr, ptr %33, align 8, !tbaa !5
  store i32 0, ptr %124, align 4, !tbaa !21
  %125 = load i8, ptr %30, align 1, !tbaa !14, !range !22, !noundef !23
  %126 = trunc i8 %125 to i1
  br i1 %126, label %127, label %138

127:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 12, ptr %34) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %35) #8
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %35, ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(12) %11)
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %34, ptr noundef nonnull align 4 dereferenceable(12) %35, ptr noundef nonnull align 4 dereferenceable(12) %128)
  %129 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %32, i32 0, i32 2
  %130 = load ptr, ptr %33, align 8, !tbaa !5
  %131 = load i32, ptr %130, align 4, !tbaa !21
  %132 = zext i32 %131 to i64
  %133 = getelementptr inbounds [2 x %class.Vector3], ptr %129, i64 0, i64 %132
  %134 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %133, ptr noundef nonnull align 4 dereferenceable(12) %34)
  call void @llvm.lifetime.end.p0(i64 12, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #8
  %135 = load ptr, ptr %33, align 8, !tbaa !5
  %136 = load i32, ptr %135, align 4, !tbaa !21
  %137 = add i32 %136, 1
  store i32 %137, ptr %135, align 4, !tbaa !21
  br label %138

138:                                              ; preds = %127, %122
  %139 = load i8, ptr %31, align 1, !tbaa !14, !range !22, !noundef !23
  %140 = trunc i8 %139 to i1
  br i1 %140, label %141, label %152

141:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 12, ptr %36) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %37) #8
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %37, ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(12) %11)
  %142 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %36, ptr noundef nonnull align 4 dereferenceable(12) %37, ptr noundef nonnull align 4 dereferenceable(12) %142)
  %143 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %32, i32 0, i32 2
  %144 = load ptr, ptr %33, align 8, !tbaa !5
  %145 = load i32, ptr %144, align 4, !tbaa !21
  %146 = zext i32 %145 to i64
  %147 = getelementptr inbounds [2 x %class.Vector3], ptr %143, i64 0, i64 %146
  %148 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %147, ptr noundef nonnull align 4 dereferenceable(12) %36)
  call void @llvm.lifetime.end.p0(i64 12, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %36) #8
  %149 = load ptr, ptr %33, align 8, !tbaa !5
  %150 = load i32, ptr %149, align 4, !tbaa !21
  %151 = add i32 %150, 1
  store i32 %151, ptr %149, align 4, !tbaa !21
  br label %152

152:                                              ; preds = %141, %138
  %153 = load ptr, ptr %33, align 8, !tbaa !5
  %154 = load i32, ptr %153, align 4, !tbaa !21
  %155 = icmp ugt i32 %154, 0
  %156 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %32, i32 0, i32 0
  %157 = zext i1 %155 to i8
  store i8 %157, ptr %156, align 4, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  br label %338

158:                                              ; preds = %5
  %159 = getelementptr inbounds %"struct.edbdmath::quadraticResult_t", ptr %24, i32 0, i32 0
  %160 = load i32, ptr %159, align 4, !tbaa !19
  %161 = icmp eq i32 %160, 1
  br i1 %161, label %162, label %219

162:                                              ; preds = %158
  %163 = getelementptr inbounds %"struct.edbdmath::quadraticResult_t", ptr %24, i32 0, i32 1
  %164 = getelementptr inbounds [2 x float], ptr %163, i64 0, i64 0
  %165 = load float, ptr %164, align 4, !tbaa !9
  %166 = load float, ptr %29, align 4, !tbaa !9
  %167 = fcmp ole float %165, %166
  br i1 %167, label %168, label %188

168:                                              ; preds = %162
  %169 = getelementptr inbounds %"struct.edbdmath::quadraticResult_t", ptr %24, i32 0, i32 1
  %170 = getelementptr inbounds [2 x float], ptr %169, i64 0, i64 0
  %171 = load float, ptr %170, align 4, !tbaa !9
  %172 = load float, ptr %28, align 4, !tbaa !9
  %173 = fcmp oge float %171, %172
  br i1 %173, label %174, label %188

174:                                              ; preds = %168
  %175 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %32, i32 0, i32 0
  store i8 1, ptr %175, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 12, ptr %38) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %39) #8
  %176 = getelementptr inbounds %"struct.edbdmath::quadraticResult_t", ptr %24, i32 0, i32 1
  %177 = getelementptr inbounds [2 x float], ptr %176, i64 0, i64 0
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %39, ptr noundef nonnull align 4 dereferenceable(4) %177, ptr noundef nonnull align 4 dereferenceable(12) %11)
  %178 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %38, ptr noundef nonnull align 4 dereferenceable(12) %39, ptr noundef nonnull align 4 dereferenceable(12) %178)
  %179 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %32, i32 0, i32 2
  %180 = getelementptr inbounds [2 x %class.Vector3], ptr %179, i64 0, i64 0
  %181 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %180, ptr noundef nonnull align 4 dereferenceable(12) %38)
  call void @llvm.lifetime.end.p0(i64 12, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %38) #8
  %182 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %32, i32 0, i32 1
  store i32 1, ptr %182, align 4, !tbaa !16
  %183 = getelementptr inbounds %"struct.edbdmath::quadraticResult_t", ptr %24, i32 0, i32 1
  %184 = getelementptr inbounds [2 x float], ptr %183, i64 0, i64 0
  %185 = load float, ptr %184, align 4, !tbaa !9
  %186 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %32, i32 0, i32 3
  %187 = getelementptr inbounds [2 x float], ptr %186, i64 0, i64 0
  store float %185, ptr %187, align 4, !tbaa !9
  br label %218

188:                                              ; preds = %168, %162
  %189 = load i8, ptr %30, align 1, !tbaa !14, !range !22, !noundef !23
  %190 = trunc i8 %189 to i1
  br i1 %190, label %191, label %201

191:                                              ; preds = %188
  %192 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %32, i32 0, i32 0
  store i8 1, ptr %192, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 12, ptr %40) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %41) #8
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %41, ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(12) %11)
  %193 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %40, ptr noundef nonnull align 4 dereferenceable(12) %41, ptr noundef nonnull align 4 dereferenceable(12) %193)
  %194 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %32, i32 0, i32 2
  %195 = getelementptr inbounds [2 x %class.Vector3], ptr %194, i64 0, i64 0
  %196 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %195, ptr noundef nonnull align 4 dereferenceable(12) %40)
  call void @llvm.lifetime.end.p0(i64 12, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %40) #8
  %197 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %32, i32 0, i32 1
  store i32 1, ptr %197, align 4, !tbaa !16
  %198 = load float, ptr %29, align 4, !tbaa !9
  %199 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %32, i32 0, i32 3
  %200 = getelementptr inbounds [2 x float], ptr %199, i64 0, i64 0
  store float %198, ptr %200, align 4, !tbaa !9
  br label %217

201:                                              ; preds = %188
  %202 = load i8, ptr %31, align 1, !tbaa !14, !range !22, !noundef !23
  %203 = trunc i8 %202 to i1
  br i1 %203, label %204, label %214

204:                                              ; preds = %201
  %205 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %32, i32 0, i32 0
  store i8 1, ptr %205, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 12, ptr %42) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %43) #8
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %43, ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(12) %11)
  %206 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %42, ptr noundef nonnull align 4 dereferenceable(12) %43, ptr noundef nonnull align 4 dereferenceable(12) %206)
  %207 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %32, i32 0, i32 2
  %208 = getelementptr inbounds [2 x %class.Vector3], ptr %207, i64 0, i64 0
  %209 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %208, ptr noundef nonnull align 4 dereferenceable(12) %42)
  call void @llvm.lifetime.end.p0(i64 12, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %42) #8
  %210 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %32, i32 0, i32 1
  store i32 1, ptr %210, align 4, !tbaa !16
  %211 = load float, ptr %28, align 4, !tbaa !9
  %212 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %32, i32 0, i32 3
  %213 = getelementptr inbounds [2 x float], ptr %212, i64 0, i64 0
  store float %211, ptr %213, align 4, !tbaa !9
  br label %216

214:                                              ; preds = %201
  %215 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %32, i32 0, i32 0
  store i8 0, ptr %215, align 4, !tbaa !24
  br label %216

216:                                              ; preds = %214, %204
  br label %217

217:                                              ; preds = %216, %191
  br label %218

218:                                              ; preds = %217, %174
  br label %337

219:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #8
  %220 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %32, i32 0, i32 1
  store ptr %220, ptr %44, align 8, !tbaa !5
  %221 = load ptr, ptr %44, align 8, !tbaa !5
  store i32 0, ptr %221, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #8
  store i32 0, ptr %45, align 4, !tbaa !21
  br label %222

222:                                              ; preds = %328, %219
  %223 = load i32, ptr %45, align 4, !tbaa !21
  %224 = getelementptr inbounds %"struct.edbdmath::quadraticResult_t", ptr %24, i32 0, i32 0
  %225 = load i32, ptr %224, align 4, !tbaa !19
  %226 = icmp ult i32 %223, %225
  br i1 %226, label %228, label %227

227:                                              ; preds = %222
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #8
  br label %331

228:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 12, ptr %46) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %47) #8
  %229 = getelementptr inbounds %"struct.edbdmath::quadraticResult_t", ptr %24, i32 0, i32 1
  %230 = load i32, ptr %45, align 4, !tbaa !21
  %231 = zext i32 %230 to i64
  %232 = getelementptr inbounds [2 x float], ptr %229, i64 0, i64 %231
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %47, ptr noundef nonnull align 4 dereferenceable(4) %232, ptr noundef nonnull align 4 dereferenceable(12) %11)
  %233 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %46, ptr noundef nonnull align 4 dereferenceable(12) %47, ptr noundef nonnull align 4 dereferenceable(12) %233)
  call void @llvm.lifetime.end.p0(i64 12, ptr %47) #8
  %234 = getelementptr inbounds %"struct.edbdmath::quadraticResult_t", ptr %24, i32 0, i32 1
  %235 = load i32, ptr %45, align 4, !tbaa !21
  %236 = zext i32 %235 to i64
  %237 = getelementptr inbounds [2 x float], ptr %234, i64 0, i64 %236
  %238 = load float, ptr %237, align 4, !tbaa !9
  %239 = load float, ptr %29, align 4, !tbaa !9
  %240 = fcmp ole float %238, %239
  br i1 %240, label %241, label %269

241:                                              ; preds = %228
  %242 = getelementptr inbounds %"struct.edbdmath::quadraticResult_t", ptr %24, i32 0, i32 1
  %243 = load i32, ptr %45, align 4, !tbaa !21
  %244 = zext i32 %243 to i64
  %245 = getelementptr inbounds [2 x float], ptr %242, i64 0, i64 %244
  %246 = load float, ptr %245, align 4, !tbaa !9
  %247 = load float, ptr %28, align 4, !tbaa !9
  %248 = fcmp oge float %246, %247
  br i1 %248, label %249, label %269

249:                                              ; preds = %241
  %250 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %32, i32 0, i32 2
  %251 = load ptr, ptr %44, align 8, !tbaa !5
  %252 = load i32, ptr %251, align 4, !tbaa !21
  %253 = zext i32 %252 to i64
  %254 = getelementptr inbounds [2 x %class.Vector3], ptr %250, i64 0, i64 %253
  %255 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %254, ptr noundef nonnull align 4 dereferenceable(12) %46)
  %256 = getelementptr inbounds %"struct.edbdmath::quadraticResult_t", ptr %24, i32 0, i32 1
  %257 = load i32, ptr %45, align 4, !tbaa !21
  %258 = zext i32 %257 to i64
  %259 = getelementptr inbounds [2 x float], ptr %256, i64 0, i64 %258
  %260 = load float, ptr %259, align 4, !tbaa !9
  %261 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %32, i32 0, i32 3
  %262 = load ptr, ptr %44, align 8, !tbaa !5
  %263 = load i32, ptr %262, align 4, !tbaa !21
  %264 = zext i32 %263 to i64
  %265 = getelementptr inbounds [2 x float], ptr %261, i64 0, i64 %264
  store float %260, ptr %265, align 4, !tbaa !9
  %266 = load ptr, ptr %44, align 8, !tbaa !5
  %267 = load i32, ptr %266, align 4, !tbaa !21
  %268 = add i32 %267, 1
  store i32 %268, ptr %266, align 4, !tbaa !21
  br label %327

269:                                              ; preds = %241, %228
  %270 = getelementptr inbounds %"struct.edbdmath::quadraticResult_t", ptr %24, i32 0, i32 1
  %271 = load i32, ptr %45, align 4, !tbaa !21
  %272 = zext i32 %271 to i64
  %273 = getelementptr inbounds [2 x float], ptr %270, i64 0, i64 %272
  %274 = load float, ptr %273, align 4, !tbaa !9
  %275 = load float, ptr %29, align 4, !tbaa !9
  %276 = fcmp oge float %274, %275
  br i1 %276, label %277, label %297

277:                                              ; preds = %269
  %278 = load i8, ptr %30, align 1, !tbaa !14, !range !22, !noundef !23
  %279 = trunc i8 %278 to i1
  br i1 %279, label %280, label %297

280:                                              ; preds = %277
  call void @llvm.lifetime.start.p0(i64 12, ptr %48) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %49) #8
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %49, ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(12) %11)
  %281 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %48, ptr noundef nonnull align 4 dereferenceable(12) %49, ptr noundef nonnull align 4 dereferenceable(12) %281)
  %282 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %32, i32 0, i32 2
  %283 = load ptr, ptr %44, align 8, !tbaa !5
  %284 = load i32, ptr %283, align 4, !tbaa !21
  %285 = zext i32 %284 to i64
  %286 = getelementptr inbounds [2 x %class.Vector3], ptr %282, i64 0, i64 %285
  %287 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %286, ptr noundef nonnull align 4 dereferenceable(12) %48)
  call void @llvm.lifetime.end.p0(i64 12, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %48) #8
  %288 = load float, ptr %29, align 4, !tbaa !9
  %289 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %32, i32 0, i32 3
  %290 = load ptr, ptr %44, align 8, !tbaa !5
  %291 = load i32, ptr %290, align 4, !tbaa !21
  %292 = zext i32 %291 to i64
  %293 = getelementptr inbounds [2 x float], ptr %289, i64 0, i64 %292
  store float %288, ptr %293, align 4, !tbaa !9
  %294 = load ptr, ptr %44, align 8, !tbaa !5
  %295 = load i32, ptr %294, align 4, !tbaa !21
  %296 = add i32 %295, 1
  store i32 %296, ptr %294, align 4, !tbaa !21
  br label %326

297:                                              ; preds = %277, %269
  %298 = getelementptr inbounds %"struct.edbdmath::quadraticResult_t", ptr %24, i32 0, i32 1
  %299 = load i32, ptr %45, align 4, !tbaa !21
  %300 = zext i32 %299 to i64
  %301 = getelementptr inbounds [2 x float], ptr %298, i64 0, i64 %300
  %302 = load float, ptr %301, align 4, !tbaa !9
  %303 = load float, ptr %28, align 4, !tbaa !9
  %304 = fcmp ole float %302, %303
  br i1 %304, label %305, label %325

305:                                              ; preds = %297
  %306 = load i8, ptr %31, align 1, !tbaa !14, !range !22, !noundef !23
  %307 = trunc i8 %306 to i1
  br i1 %307, label %308, label %325

308:                                              ; preds = %305
  call void @llvm.lifetime.start.p0(i64 12, ptr %50) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %51) #8
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %51, ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(12) %11)
  %309 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %50, ptr noundef nonnull align 4 dereferenceable(12) %51, ptr noundef nonnull align 4 dereferenceable(12) %309)
  %310 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %32, i32 0, i32 2
  %311 = load ptr, ptr %44, align 8, !tbaa !5
  %312 = load i32, ptr %311, align 4, !tbaa !21
  %313 = zext i32 %312 to i64
  %314 = getelementptr inbounds [2 x %class.Vector3], ptr %310, i64 0, i64 %313
  %315 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %314, ptr noundef nonnull align 4 dereferenceable(12) %50)
  call void @llvm.lifetime.end.p0(i64 12, ptr %51) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %50) #8
  %316 = load float, ptr %28, align 4, !tbaa !9
  %317 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %32, i32 0, i32 3
  %318 = load ptr, ptr %44, align 8, !tbaa !5
  %319 = load i32, ptr %318, align 4, !tbaa !21
  %320 = zext i32 %319 to i64
  %321 = getelementptr inbounds [2 x float], ptr %317, i64 0, i64 %320
  store float %316, ptr %321, align 4, !tbaa !9
  %322 = load ptr, ptr %44, align 8, !tbaa !5
  %323 = load i32, ptr %322, align 4, !tbaa !21
  %324 = add i32 %323, 1
  store i32 %324, ptr %322, align 4, !tbaa !21
  br label %325

325:                                              ; preds = %308, %305, %297
  br label %326

326:                                              ; preds = %325, %280
  br label %327

327:                                              ; preds = %326, %249
  call void @llvm.lifetime.end.p0(i64 12, ptr %46) #8
  br label %328

328:                                              ; preds = %327
  %329 = load i32, ptr %45, align 4, !tbaa !21
  %330 = add i32 %329, 1
  store i32 %330, ptr %45, align 4, !tbaa !21
  br label %222, !llvm.loop !25

331:                                              ; preds = %227
  %332 = load ptr, ptr %44, align 8, !tbaa !5
  %333 = load i32, ptr %332, align 4, !tbaa !21
  %334 = icmp ugt i32 %333, 0
  %335 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %32, i32 0, i32 0
  %336 = zext i1 %334 to i8
  store i8 %336, ptr %335, align 4, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #8
  br label %337

337:                                              ; preds = %331, %218
  br label %338

338:                                              ; preds = %337, %152
  call void @_ZN8geometry5types15raycastResult_tC2Ev(ptr noundef nonnull align 4 dereferenceable(40) %0)
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #8
  %339 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %0, i32 0, i32 1
  store ptr %339, ptr %52, align 8, !tbaa !5
  %340 = load ptr, ptr %52, align 8, !tbaa !5
  store i32 0, ptr %340, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #8
  store i32 0, ptr %53, align 4, !tbaa !21
  br label %341

341:                                              ; preds = %379, %338
  %342 = load i32, ptr %53, align 4, !tbaa !21
  %343 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %32, i32 0, i32 1
  %344 = load i32, ptr %343, align 4, !tbaa !16
  %345 = icmp ult i32 %342, %344
  br i1 %345, label %347, label %346

346:                                              ; preds = %341
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #8
  br label %382

347:                                              ; preds = %341
  %348 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %32, i32 0, i32 3
  %349 = load i32, ptr %53, align 4, !tbaa !21
  %350 = zext i32 %349 to i64
  %351 = getelementptr inbounds [2 x float], ptr %348, i64 0, i64 %350
  %352 = load float, ptr %351, align 4, !tbaa !9
  %353 = fcmp oge float %352, 0.000000e+00
  br i1 %353, label %354, label %378

354:                                              ; preds = %347
  %355 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %32, i32 0, i32 3
  %356 = load i32, ptr %53, align 4, !tbaa !21
  %357 = zext i32 %356 to i64
  %358 = getelementptr inbounds [2 x float], ptr %355, i64 0, i64 %357
  %359 = load float, ptr %358, align 4, !tbaa !9
  %360 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %0, i32 0, i32 3
  %361 = load ptr, ptr %52, align 8, !tbaa !5
  %362 = load i32, ptr %361, align 4, !tbaa !21
  %363 = zext i32 %362 to i64
  %364 = getelementptr inbounds [2 x float], ptr %360, i64 0, i64 %363
  store float %359, ptr %364, align 4, !tbaa !9
  %365 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %32, i32 0, i32 2
  %366 = load i32, ptr %53, align 4, !tbaa !21
  %367 = zext i32 %366 to i64
  %368 = getelementptr inbounds [2 x %class.Vector3], ptr %365, i64 0, i64 %367
  %369 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %0, i32 0, i32 2
  %370 = load ptr, ptr %52, align 8, !tbaa !5
  %371 = load i32, ptr %370, align 4, !tbaa !21
  %372 = zext i32 %371 to i64
  %373 = getelementptr inbounds [2 x %class.Vector3], ptr %369, i64 0, i64 %372
  %374 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %373, ptr noundef nonnull align 4 dereferenceable(12) %368)
  %375 = load ptr, ptr %52, align 8, !tbaa !5
  %376 = load i32, ptr %375, align 4, !tbaa !21
  %377 = add i32 %376, 1
  store i32 %377, ptr %375, align 4, !tbaa !21
  br label %378

378:                                              ; preds = %354, %347
  br label %379

379:                                              ; preds = %378
  %380 = load i32, ptr %53, align 4, !tbaa !21
  %381 = add i32 %380, 1
  store i32 %381, ptr %53, align 4, !tbaa !21
  br label %341, !llvm.loop !27

382:                                              ; preds = %346
  %383 = load ptr, ptr %52, align 8, !tbaa !5
  %384 = load i32, ptr %383, align 4, !tbaa !21
  %385 = icmp ugt i32 %384, 0
  %386 = getelementptr inbounds %"struct.geometry::types::raycastResult_t", ptr %0, i32 0, i32 0
  %387 = zext i1 %385 to i8
  store i8 %387, ptr %386, align 4, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 36, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 36, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #8
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8Matrix33C2Efffffffff(ptr noundef nonnull align 4 dereferenceable(36), float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) #6 align 2

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

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

declare noundef float @_ZN8edbdmath13quadraticEvalEffff(float noundef, float noundef, float noundef, float noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { 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 #7 = { 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 #8 = { 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 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN8geometry5types15shapeCylinder_tE", !10, i64 0, !10, i64 4}
!13 = !{!12, !10, i64 4}
!14 = !{!15, !15, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{!17, !18, i64 4}
!17 = !{!"_ZTSN8geometry5types15raycastResult_tE", !15, i64 0, !18, i64 4, !7, i64 8, !7, i64 32}
!18 = !{!"int", !7, i64 0}
!19 = !{!20, !18, i64 0}
!20 = !{!"_ZTSN8edbdmath17quadraticResult_tE", !18, i64 0, !7, i64 4}
!21 = !{!18, !18, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!17, !15, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}


; 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"

%class.Vector3 = type { [3 x float] }
%class.Matrix33 = type { [9 x float] }
%"struct.geometry::types::raycastResult_t" = type { i8, i32, [2 x %class.Vector3], [2 x float] }
%"struct.edbdmath::quadraticResult_t" = type { i32, [2 x 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 uwtable
declare dso_local void @_ZNK7Vector3miERKS_(ptr dead_on_unwind noalias writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8Matrix33coEv(ptr dead_on_unwind noalias writable sret(%class.Matrix33) align 4, ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8Matrix33mlERKS_(ptr dead_on_unwind noalias writable sret(%class.Matrix33) align 4, ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8Matrix339transposeEv(ptr dead_on_unwind noalias writable sret(%class.Matrix33) align 4, ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #1 align 2

; 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 void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind noalias writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1 align 2

declare { i64, float } @_ZN8edbdmath14quadraticRootsEfff(float noundef, float noundef, float noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8geometry5types15raycastResult_tC2Ev(ptr noundef nonnull align 4 dereferenceable(40)) unnamed_addr #4 align 2

declare void @_ZmlRKfRK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Vector3plERKS_(ptr dead_on_unwind noalias writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8geometry7raycastERK7Vector3S2_RKNS_5types11transform_tERKNS3_15shapeCylinder_tE(ptr dead_on_unwind noalias writable sret(%"struct.geometry::types::raycastResult_t") align 4 %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(84) %3, ptr nocapture noundef nonnull readonly align 4 dereferenceable(8) %4) local_unnamed_addr #1 {
  %6 = alloca %class.Vector3, align 4
  %7 = alloca %class.Matrix33, align 4
  %8 = alloca %class.Matrix33, align 4
  %9 = alloca %class.Matrix33, align 4
  %10 = alloca %class.Vector3, align 4
  %11 = alloca %class.Vector3, align 4
  %12 = alloca %class.Vector3, align 4
  %13 = alloca %class.Matrix33, align 4
  %14 = alloca %class.Vector3, align 4
  %15 = alloca %class.Vector3, align 4
  %16 = alloca %"struct.edbdmath::quadraticResult_t", align 8
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca %"struct.geometry::types::raycastResult_t", align 4
  %22 = alloca %class.Vector3, align 4
  %23 = alloca %class.Vector3, align 4
  %24 = alloca %class.Vector3, align 4
  %25 = alloca %class.Vector3, align 4
  %26 = alloca %class.Vector3, align 4
  %27 = alloca %class.Vector3, align 4
  %28 = alloca %class.Vector3, align 4
  %29 = alloca %class.Vector3, align 4
  %30 = alloca %class.Vector3, align 4
  %31 = alloca %class.Vector3, align 4
  %32 = alloca %class.Vector3, align 4
  %33 = alloca %class.Vector3, align 4
  %34 = alloca %class.Vector3, align 4
  %35 = alloca %class.Vector3, align 4
  %36 = alloca %class.Vector3, align 4
  %37 = alloca %class.Vector3, align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #7
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %6, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %1)
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %8) #7
  call void @_ZNK8Matrix33coEv(ptr dead_on_unwind nonnull writable sret(%class.Matrix33) align 4 %8, ptr noundef nonnull align 4 dereferenceable(36) %3)
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %9) #7
  %38 = getelementptr inbounds i8, ptr %3, i64 36
  call void @_ZNK8Matrix339transposeEv(ptr dead_on_unwind nonnull writable sret(%class.Matrix33) align 4 %9, ptr noundef nonnull align 4 dereferenceable(36) %38)
  call void @_ZNK8Matrix33mlERKS_(ptr dead_on_unwind nonnull writable sret(%class.Matrix33) align 4 %7, ptr noundef nonnull align 4 dereferenceable(36) %8, ptr noundef nonnull align 4 dereferenceable(36) %9)
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #7
  %39 = getelementptr inbounds i8, ptr %3, i64 72
  call void @_ZNK7Vector3miERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %11, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %39)
  call void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %10, ptr noundef nonnull align 4 dereferenceable(36) %7, ptr noundef nonnull align 4 dereferenceable(12) %11)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #7
  call void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %12, ptr noundef nonnull align 4 dereferenceable(36) %7, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %13) #7
  call void @_ZN8Matrix33C2Efffffffff(ptr noundef nonnull align 4 dereferenceable(36) %13, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #7
  call void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %14, ptr noundef nonnull align 4 dereferenceable(36) %13, ptr noundef nonnull align 4 dereferenceable(12) %12)
  %40 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %14)
  %41 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %14)
  %42 = fmul float %41, 2.000000e+00
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #7
  call void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %15, ptr noundef nonnull align 4 dereferenceable(36) %13, ptr noundef nonnull align 4 dereferenceable(12) %10)
  %43 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %15)
  %44 = load float, ptr %4, align 4, !tbaa !5
  %45 = fneg float %44
  %46 = call float @llvm.fmuladd.f32(float %45, float %44, float %43)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #7
  %47 = call { i64, float } @_ZN8edbdmath14quadraticRootsEfff(float noundef %40, float noundef %42, float noundef %46)
  %.fca.0.extract = extractvalue { i64, float } %47, 0
  %.fca.1.extract = extractvalue { i64, float } %47, 1
  store i64 %.fca.0.extract, ptr %16, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %16, i64 8
  store float %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #7
  %48 = getelementptr inbounds i8, ptr %4, i64 4
  %49 = load float, ptr %48, align 4, !tbaa !10
  %50 = fmul float %49, -5.000000e-01
  %51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %10, i32 noundef 2)
  %52 = load float, ptr %51, align 4, !tbaa !11
  %53 = fsub float %50, %52
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %12, i32 noundef 2)
  %55 = load float, ptr %54, align 4, !tbaa !11
  %56 = fdiv float %53, %55
  store float %56, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #7
  %57 = load float, ptr %48, align 4, !tbaa !10
  %58 = fmul float %57, 5.000000e-01
  %59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %10, i32 noundef 2)
  %60 = load float, ptr %59, align 4, !tbaa !11
  %61 = fsub float %58, %60
  %62 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %12, i32 noundef 2)
  %63 = load float, ptr %62, align 4, !tbaa !11
  %64 = fdiv float %61, %63
  store float %64, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #7
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  %66 = load float, ptr %65, align 4, !tbaa !11
  store float %66, ptr %19, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #7
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  %68 = load float, ptr %67, align 4, !tbaa !11
  store float %68, ptr %20, align 4, !tbaa !11
  %69 = call noundef float @_ZN8edbdmath13quadraticEvalEffff(float noundef %40, float noundef %42, float noundef %46, float noundef %68)
  %70 = fcmp ugt float %69, 0.000000e+00
  %71 = call noundef float @_ZN8edbdmath13quadraticEvalEffff(float noundef %40, float noundef %42, float noundef %46, float noundef %66)
  %72 = fcmp ugt float %71, 0.000000e+00
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %21) #7
  call void @_ZN8geometry5types15raycastResult_tC2Ev(ptr noundef nonnull align 4 dereferenceable(40) %21)
  %73 = getelementptr inbounds i8, ptr %21, i64 4
  store i32 0, ptr %73, align 4, !tbaa !12
  %74 = trunc i64 %.fca.0.extract to i32
  switch i32 %74, label %.lr.ph [
    i32 0, label %75
    i32 1, label %98
  ]

75:                                               ; preds = %5
  br i1 %70, label %84, label %76

76:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %22) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %23) #7
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %23, ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %22, ptr noundef nonnull align 4 dereferenceable(12) %23, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %77 = getelementptr inbounds i8, ptr %21, i64 8
  %78 = load i32, ptr %73, align 4, !tbaa !16
  %79 = zext i32 %78 to i64
  %80 = getelementptr inbounds [2 x %class.Vector3], ptr %77, i64 0, i64 %79
  %81 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %80, ptr noundef nonnull align 4 dereferenceable(12) %22)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %23) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #7
  %82 = load i32, ptr %73, align 4, !tbaa !16
  %83 = add i32 %82, 1
  store i32 %83, ptr %73, align 4, !tbaa !16
  br label %84

84:                                               ; preds = %76, %75
  %85 = phi i32 [ %83, %76 ], [ 0, %75 ]
  br i1 %72, label %94, label %86

86:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %24) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %25) #7
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %25, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %24, ptr noundef nonnull align 4 dereferenceable(12) %25, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %87 = getelementptr inbounds i8, ptr %21, i64 8
  %88 = load i32, ptr %73, align 4, !tbaa !16
  %89 = zext i32 %88 to i64
  %90 = getelementptr inbounds [2 x %class.Vector3], ptr %87, i64 0, i64 %89
  %91 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %90, ptr noundef nonnull align 4 dereferenceable(12) %24)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %25) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %24) #7
  %92 = load i32, ptr %73, align 4, !tbaa !16
  %93 = add i32 %92, 1
  store i32 %93, ptr %73, align 4, !tbaa !16
  br label %94

94:                                               ; preds = %86, %84
  %95 = phi i32 [ %93, %86 ], [ %85, %84 ]
  %96 = icmp ne i32 %95, 0
  %97 = zext i1 %96 to i8
  store i8 %97, ptr %21, align 4, !tbaa !17
  br label %162

98:                                               ; preds = %5
  %99 = lshr i64 %.fca.0.extract, 32
  %100 = trunc nuw i64 %99 to i32
  %101 = bitcast i32 %100 to float
  %102 = fcmp ult float %68, %101
  %103 = fcmp ugt float %66, %101
  %or.cond = select i1 %102, i1 true, i1 %103
  br i1 %or.cond, label %110, label %104

104:                                              ; preds = %98
  %105 = getelementptr inbounds i8, ptr %16, i64 4
  store i8 1, ptr %21, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %26) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %27) #7
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %27, ptr noundef nonnull align 4 dereferenceable(4) %105, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %26, ptr noundef nonnull align 4 dereferenceable(12) %27, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %106 = getelementptr inbounds i8, ptr %21, i64 8
  %107 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %106, ptr noundef nonnull align 4 dereferenceable(12) %26)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %27) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %26) #7
  store i32 1, ptr %73, align 4, !tbaa !12
  %108 = load float, ptr %105, align 4, !tbaa !11
  %109 = getelementptr inbounds i8, ptr %21, i64 32
  store float %108, ptr %109, align 4, !tbaa !11
  br label %162

110:                                              ; preds = %98
  br i1 %70, label %116, label %111

111:                                              ; preds = %110
  store i8 1, ptr %21, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %28) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %29) #7
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %29, ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %28, ptr noundef nonnull align 4 dereferenceable(12) %29, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %112 = getelementptr inbounds i8, ptr %21, i64 8
  %113 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %112, ptr noundef nonnull align 4 dereferenceable(12) %28)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %29) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %28) #7
  store i32 1, ptr %73, align 4, !tbaa !12
  %114 = load float, ptr %20, align 4, !tbaa !11
  %115 = getelementptr inbounds i8, ptr %21, i64 32
  store float %114, ptr %115, align 4, !tbaa !11
  br label %162

116:                                              ; preds = %110
  br i1 %72, label %122, label %117

117:                                              ; preds = %116
  store i8 1, ptr %21, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %30) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %31) #7
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %31, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %30, ptr noundef nonnull align 4 dereferenceable(12) %31, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %118 = getelementptr inbounds i8, ptr %21, i64 8
  %119 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %118, ptr noundef nonnull align 4 dereferenceable(12) %30)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %31) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %30) #7
  store i32 1, ptr %73, align 4, !tbaa !12
  %120 = load float, ptr %19, align 4, !tbaa !11
  %121 = getelementptr inbounds i8, ptr %21, i64 32
  store float %120, ptr %121, align 4, !tbaa !11
  br label %162

122:                                              ; preds = %116
  store i8 0, ptr %21, align 4, !tbaa !17
  br label %162

.lr.ph:                                           ; preds = %5
  %123 = getelementptr inbounds i8, ptr %16, i64 4
  %124 = getelementptr inbounds i8, ptr %21, i64 8
  %125 = getelementptr inbounds i8, ptr %21, i64 32
  br label %128

._crit_edge:                                      ; preds = %158
  %.pre = load i32, ptr %73, align 4, !tbaa !16
  %126 = icmp ne i32 %.pre, 0
  %127 = zext i1 %126 to i8
  store i8 %127, ptr %21, align 4, !tbaa !17
  br label %162

128:                                              ; preds = %.lr.ph, %158
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %158 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %32) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %33) #7
  %129 = getelementptr inbounds [2 x float], ptr %123, i64 0, i64 %indvars.iv
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %33, ptr noundef nonnull align 4 dereferenceable(4) %129, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %32, ptr noundef nonnull align 4 dereferenceable(12) %33, ptr noundef nonnull align 4 dereferenceable(12) %1)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %33) #7
  %130 = load float, ptr %129, align 4, !tbaa !11
  %131 = load float, ptr %20, align 4, !tbaa !11
  %132 = fcmp ugt float %130, %131
  %133 = load float, ptr %19, align 4
  %134 = fcmp ult float %130, %133
  %or.cond74 = select i1 %132, i1 true, i1 %134
  br i1 %or.cond74, label %140, label %135

135:                                              ; preds = %128
  %136 = load i32, ptr %73, align 4, !tbaa !16
  %137 = zext i32 %136 to i64
  %138 = getelementptr inbounds [2 x %class.Vector3], ptr %124, i64 0, i64 %137
  %139 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %138, ptr noundef nonnull align 4 dereferenceable(12) %32)
  br label %.sink.split

140:                                              ; preds = %128
  %141 = fcmp ult float %130, %131
  %brmerge = or i1 %70, %141
  br i1 %brmerge, label %147, label %142

142:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %34) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %35) #7
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %35, ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %34, ptr noundef nonnull align 4 dereferenceable(12) %35, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %143 = load i32, ptr %73, align 4, !tbaa !16
  %144 = zext i32 %143 to i64
  %145 = getelementptr inbounds [2 x %class.Vector3], ptr %124, i64 0, i64 %144
  %146 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %145, ptr noundef nonnull align 4 dereferenceable(12) %34)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %35) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %34) #7
  br label %.sink.split

147:                                              ; preds = %140
  %148 = fcmp ugt float %130, %133
  %brmerge76 = or i1 %72, %148
  br i1 %brmerge76, label %158, label %149

149:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %36) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %37) #7
  call void @_ZmlRKfRK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %37, ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @_ZNK7Vector3plERKS_(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %36, ptr noundef nonnull align 4 dereferenceable(12) %37, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %150 = load i32, ptr %73, align 4, !tbaa !16
  %151 = zext i32 %150 to i64
  %152 = getelementptr inbounds [2 x %class.Vector3], ptr %124, i64 0, i64 %151
  %153 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %152, ptr noundef nonnull align 4 dereferenceable(12) %36)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %37) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %36) #7
  br label %.sink.split

.sink.split:                                      ; preds = %135, %149, %142
  %.sink.in = phi ptr [ %20, %142 ], [ %19, %149 ], [ %129, %135 ]
  %.sink = load float, ptr %.sink.in, align 4, !tbaa !11
  %154 = load i32, ptr %73, align 4, !tbaa !16
  %155 = zext i32 %154 to i64
  %156 = getelementptr inbounds [2 x float], ptr %125, i64 0, i64 %155
  store float %.sink, ptr %156, align 4, !tbaa !11
  %157 = add i32 %154, 1
  store i32 %157, ptr %73, align 4, !tbaa !16
  br label %158

158:                                              ; preds = %.sink.split, %147
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %32) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %159 = load i32, ptr %16, align 8, !tbaa !18
  %160 = zext i32 %159 to i64
  %161 = icmp ult i64 %indvars.iv.next, %160
  br i1 %161, label %128, label %._crit_edge, !llvm.loop !20

162:                                              ; preds = %._crit_edge, %111, %122, %117, %104, %94
  call void @_ZN8geometry5types15raycastResult_tC2Ev(ptr noundef nonnull align 4 dereferenceable(40) %0)
  %163 = getelementptr inbounds i8, ptr %0, i64 4
  store i32 0, ptr %163, align 4, !tbaa !16
  %164 = load i32, ptr %73, align 4, !tbaa !12
  %.not82 = icmp eq i32 %164, 0
  br i1 %.not82, label %._crit_edge81, label %.lr.ph80

.lr.ph80:                                         ; preds = %162
  %165 = getelementptr inbounds i8, ptr %21, i64 32
  %166 = getelementptr inbounds i8, ptr %0, i64 32
  %167 = getelementptr inbounds i8, ptr %21, i64 8
  %168 = getelementptr inbounds i8, ptr %0, i64 8
  br label %172

._crit_edge81.loopexit:                           ; preds = %186
  %169 = icmp ne i32 %188, 0
  %170 = zext i1 %169 to i8
  br label %._crit_edge81

._crit_edge81:                                    ; preds = %._crit_edge81.loopexit, %162
  %171 = phi i8 [ %170, %._crit_edge81.loopexit ], [ 0, %162 ]
  store i8 %171, ptr %0, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #7
  ret void

172:                                              ; preds = %.lr.ph80, %186
  %173 = phi i32 [ %164, %.lr.ph80 ], [ %187, %186 ]
  %174 = phi i32 [ 0, %.lr.ph80 ], [ %188, %186 ]
  %indvars.iv84 = phi i64 [ 0, %.lr.ph80 ], [ %indvars.iv.next85, %186 ]
  %175 = getelementptr inbounds [2 x float], ptr %165, i64 0, i64 %indvars.iv84
  %176 = load float, ptr %175, align 4, !tbaa !11
  %177 = fcmp ult float %176, 0.000000e+00
  br i1 %177, label %186, label %178

178:                                              ; preds = %172
  %179 = zext i32 %174 to i64
  %180 = getelementptr inbounds [2 x float], ptr %166, i64 0, i64 %179
  store float %176, ptr %180, align 4, !tbaa !11
  %181 = getelementptr inbounds [2 x %class.Vector3], ptr %167, i64 0, i64 %indvars.iv84
  %182 = getelementptr inbounds [2 x %class.Vector3], ptr %168, i64 0, i64 %179
  %183 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %182, ptr noundef nonnull align 4 dereferenceable(12) %181)
  %184 = load i32, ptr %163, align 4, !tbaa !16
  %185 = add i32 %184, 1
  store i32 %185, ptr %163, align 4, !tbaa !16
  %.pre87 = load i32, ptr %73, align 4, !tbaa !12
  br label %186

186:                                              ; preds = %172, %178
  %187 = phi i32 [ %173, %172 ], [ %.pre87, %178 ]
  %188 = phi i32 [ %174, %172 ], [ %185, %178 ]
  %indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1
  %189 = zext i32 %187 to i64
  %190 = icmp ult i64 %indvars.iv.next85, %189
  br i1 %190, label %172, label %._crit_edge81.loopexit, !llvm.loop !22
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8Matrix33C2Efffffffff(ptr noundef nonnull align 4 dereferenceable(36), float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #6

declare noundef float @_ZN8edbdmath13quadraticEvalEffff(float noundef, float noundef, float noundef, 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"="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 #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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 #6 = { 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 #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, !7, i64 0}
!6 = !{!"_ZTSN8geometry5types15shapeCylinder_tE", !7, i64 0, !7, i64 4}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 4}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !15, i64 4}
!13 = !{!"_ZTSN8geometry5types15raycastResult_tE", !14, i64 0, !15, i64 4, !8, i64 8, !8, i64 32}
!14 = !{!"bool", !8, i64 0}
!15 = !{!"int", !8, i64 0}
!16 = !{!15, !15, i64 0}
!17 = !{!13, !14, i64 0}
!18 = !{!19, !15, i64 0}
!19 = !{!"_ZTSN8edbdmath17quadraticResult_tE", !15, i64 0, !8, i64 4}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass