; LLVM IR from Sopiro/Muli :: src/geometry (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"

%"struct.muli::Vec2" = type { float, float }
%"struct.muli::RayCastInput" = type { %"struct.muli::Vec2", %"struct.muli::Vec2", float, float }
%"struct.muli::RayCastOutput" = type { %"struct.muli::Vec2", float }

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

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4muli14RayCastCapsuleERKNS_4Vec2ES2_fRKNS_12RayCastInputEPNS_13RayCastOutputE(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef nonnull align 4 dereferenceable(8) %1, float noundef %2, ptr noundef nonnull align 4 dereferenceable(24) %3, ptr noundef %4) #5 {
  %6 = alloca i1, align 1
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca float, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"struct.muli::Vec2", align 4
  %13 = alloca %"struct.muli::Vec2", align 4
  %14 = alloca %"struct.muli::Vec2", align 4
  %15 = alloca %"struct.muli::Vec2", align 4
  %16 = alloca %"struct.muli::Vec2", align 4
  %17 = alloca %"struct.muli::Vec2", align 4
  %18 = alloca %"struct.muli::Vec2", align 4
  %19 = alloca %"struct.muli::Vec2", align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca %"struct.muli::Vec2", align 4
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca i32, align 4
  %29 = alloca float, align 4
  %30 = alloca %"struct.muli::Vec2", align 4
  %31 = alloca %"struct.muli::Vec2", align 4
  %32 = alloca %"struct.muli::Vec2", align 4
  %33 = alloca %"struct.muli::Vec2", align 4
  %34 = alloca float, align 4
  %35 = alloca float, align 4
  %36 = alloca float, align 4
  %37 = alloca float, align 4
  %38 = alloca float, align 4
  %39 = alloca %"struct.muli::Vec2", align 4
  %40 = alloca %"struct.muli::Vec2", align 4
  %41 = alloca %"struct.muli::Vec2", align 4
  %42 = alloca %"struct.muli::Vec2", align 4
  %43 = alloca float, align 4
  %44 = alloca float, align 4
  %45 = alloca %"struct.muli::Vec2", align 4
  %46 = alloca float, align 4
  %47 = alloca %"struct.muli::Vec2", align 4
  %48 = alloca %"struct.muli::Vec2", align 4
  %49 = alloca float, align 4
  %50 = alloca %"struct.muli::Vec2", align 4
  %51 = alloca %"struct.muli::Vec2", align 4
  %52 = alloca float, align 4
  %53 = alloca float, align 4
  %54 = alloca float, align 4
  %55 = alloca float, align 4
  %56 = alloca %"struct.muli::Vec2", align 4
  %57 = alloca %"struct.muli::Vec2", align 4
  %58 = alloca %"struct.muli::Vec2", align 4
  %59 = alloca %"struct.muli::Vec2", align 4
  %60 = alloca float, align 4
  %61 = alloca float, align 4
  %62 = alloca float, align 4
  %63 = alloca float, align 4
  %64 = alloca %"struct.muli::Vec2", align 4
  %65 = alloca %"struct.muli::Vec2", align 4
  %66 = alloca %"struct.muli::Vec2", align 4
  %67 = alloca %"struct.muli::Vec2", align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store float %2, ptr %9, align 4, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %68 = load ptr, ptr %10, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.muli::RayCastInput", ptr %68, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %69, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.muli::RayCastInput", ptr %70, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %71, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %72, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %73, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %74 = call <2 x float> @_ZN4mulimiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %12)
  store <2 x float> %74, ptr %16, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %75 = call <2 x float> @_ZN4mulimiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(8) %14)
  store <2 x float> %75, ptr %17, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %76 = call <2 x float> @_ZN4muli5CrossEfRKNS_4Vec2E(float noundef 1.000000e+00, ptr noundef nonnull align 4 dereferenceable(8) %17)
  store <2 x float> %76, ptr %18, align 4
  %77 = call noundef float @_ZN4muli4Vec29NormalizeEv(ptr noundef nonnull align 4 dereferenceable(8) %18)
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %78 = call <2 x float> @_ZN4mulimiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %14)
  store <2 x float> %78, ptr %19, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %79 = load float, ptr %9, align 4, !tbaa !9
  %80 = load ptr, ptr %10, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.muli::RayCastInput", ptr %80, i32 0, i32 3
  %82 = load float, ptr %81, align 4, !tbaa !12
  %83 = fadd float %79, %82
  store float %83, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %84 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %19, ptr noundef nonnull align 4 dereferenceable(8) %18)
  store float %84, ptr %21, align 4, !tbaa !9
  %85 = load float, ptr %21, align 4, !tbaa !9
  %86 = call noundef float @_ZN4muli3AbsIfEET_S1_(float noundef %85)
  %87 = load float, ptr %20, align 4, !tbaa !9
  %88 = fcmp ole float %86, %87
  br i1 %88, label %89, label %206

89:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %90 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %19)
  store float %90, ptr %22, align 4, !tbaa !9
  %91 = load float, ptr %22, align 4, !tbaa !9
  %92 = fpext float %91 to double
  %93 = fcmp olt double %92, 0.000000e+00
  br i1 %93, label %94, label %147

94:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  %96 = call <2 x float> @_ZN4mulimiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %95)
  store <2 x float> %96, ptr %23, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %97 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %16)
  store float %97, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %98 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(8) %16)
  %99 = fmul float 2.000000e+00, %98
  store float %99, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %100 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(8) %23)
  %101 = load float, ptr %20, align 4, !tbaa !9
  %102 = load float, ptr %20, align 4, !tbaa !9
  %103 = fneg float %101
  %104 = call float @llvm.fmuladd.f32(float %103, float %102, float %100)
  store float %104, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %105 = load float, ptr %25, align 4, !tbaa !9
  %106 = load float, ptr %25, align 4, !tbaa !9
  %107 = load float, ptr %24, align 4, !tbaa !9
  %108 = fmul float 4.000000e+00, %107
  %109 = load float, ptr %26, align 4, !tbaa !9
  %110 = fmul float %108, %109
  %111 = fneg float %110
  %112 = call float @llvm.fmuladd.f32(float %105, float %106, float %111)
  store float %112, ptr %27, align 4, !tbaa !9
  %113 = load float, ptr %27, align 4, !tbaa !9
  %114 = fcmp olt float %113, 0.000000e+00
  br i1 %114, label %115, label %116

115:                                              ; preds = %94
  store i1 false, ptr %6, align 1
  store i32 1, ptr %28, align 4
  br label %146

116:                                              ; preds = %94
  %117 = load float, ptr %27, align 4, !tbaa !9
  %118 = call noundef float @_ZN4muli4SqrtEf(float noundef %117)
  store float %118, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  %119 = load float, ptr %25, align 4, !tbaa !9
  %120 = fneg float %119
  %121 = load float, ptr %27, align 4, !tbaa !9
  %122 = fsub float %120, %121
  %123 = load float, ptr %24, align 4, !tbaa !9
  %124 = fmul float 2.000000e+00, %123
  %125 = fdiv float %122, %124
  store float %125, ptr %29, align 4, !tbaa !9
  %126 = load float, ptr %29, align 4, !tbaa !9
  %127 = fcmp ole float 0.000000e+00, %126
  br i1 %127, label %128, label %144

128:                                              ; preds = %116
  %129 = load float, ptr %29, align 4, !tbaa !9
  %130 = load ptr, ptr %10, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.muli::RayCastInput", ptr %130, i32 0, i32 2
  %132 = load float, ptr %131, align 4, !tbaa !15
  %133 = fcmp ole float %129, %132
  br i1 %133, label %134, label %144

134:                                              ; preds = %128
  %135 = load float, ptr %29, align 4, !tbaa !9
  %136 = load ptr, ptr %11, align 8, !tbaa !5
  %137 = getelementptr inbounds %"struct.muli::RayCastOutput", ptr %136, i32 0, i32 1
  store float %135, ptr %137, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %138 = load float, ptr %29, align 4, !tbaa !9
  %139 = call <2 x float> @_ZN4mulimlERKNS_4Vec2Ef(ptr noundef nonnull align 4 dereferenceable(8) %16, float noundef %138)
  store <2 x float> %139, ptr %32, align 4
  %140 = call <2 x float> @_ZN4muliplERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(8) %32)
  store <2 x float> %140, ptr %31, align 4
  %141 = call <2 x float> @_ZN4muli9NormalizeINS_4Vec2EEET_RKS2_(ptr noundef nonnull align 4 dereferenceable(8) %31)
  store <2 x float> %141, ptr %30, align 4
  %142 = load ptr, ptr %11, align 8, !tbaa !5
  %143 = getelementptr inbounds %"struct.muli::RayCastOutput", ptr %142, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %143, ptr align 4 %30, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  store i1 true, ptr %6, align 1
  store i32 1, ptr %28, align 4
  br label %145

144:                                              ; preds = %128, %116
  store i1 false, ptr %6, align 1
  store i32 1, ptr %28, align 4
  br label %145

145:                                              ; preds = %144, %134
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %146

146:                                              ; preds = %145, %115
  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 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %205

147:                                              ; preds = %89
  %148 = load float, ptr %22, align 4, !tbaa !9
  %149 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %17)
  %150 = fcmp ogt float %148, %149
  br i1 %150, label %151, label %204

151:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %152 = load ptr, ptr %8, align 8, !tbaa !5
  %153 = call <2 x float> @_ZN4mulimiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %152)
  store <2 x float> %153, ptr %33, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  %154 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %16)
  store float %154, ptr %34, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  %155 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %33, ptr noundef nonnull align 4 dereferenceable(8) %16)
  %156 = fmul float 2.000000e+00, %155
  store float %156, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  %157 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %33, ptr noundef nonnull align 4 dereferenceable(8) %33)
  %158 = load float, ptr %20, align 4, !tbaa !9
  %159 = load float, ptr %20, align 4, !tbaa !9
  %160 = fneg float %158
  %161 = call float @llvm.fmuladd.f32(float %160, float %159, float %157)
  store float %161, ptr %36, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  %162 = load float, ptr %35, align 4, !tbaa !9
  %163 = load float, ptr %35, align 4, !tbaa !9
  %164 = load float, ptr %34, align 4, !tbaa !9
  %165 = fmul float 4.000000e+00, %164
  %166 = load float, ptr %36, align 4, !tbaa !9
  %167 = fmul float %165, %166
  %168 = fneg float %167
  %169 = call float @llvm.fmuladd.f32(float %162, float %163, float %168)
  store float %169, ptr %37, align 4, !tbaa !9
  %170 = load float, ptr %37, align 4, !tbaa !9
  %171 = fcmp olt float %170, 0.000000e+00
  br i1 %171, label %172, label %173

172:                                              ; preds = %151
  store i1 false, ptr %6, align 1
  store i32 1, ptr %28, align 4
  br label %203

173:                                              ; preds = %151
  %174 = load float, ptr %37, align 4, !tbaa !9
  %175 = call noundef float @_ZN4muli4SqrtEf(float noundef %174)
  store float %175, ptr %37, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #8
  %176 = load float, ptr %35, align 4, !tbaa !9
  %177 = fneg float %176
  %178 = load float, ptr %37, align 4, !tbaa !9
  %179 = fsub float %177, %178
  %180 = load float, ptr %34, align 4, !tbaa !9
  %181 = fmul float 2.000000e+00, %180
  %182 = fdiv float %179, %181
  store float %182, ptr %38, align 4, !tbaa !9
  %183 = load float, ptr %38, align 4, !tbaa !9
  %184 = fcmp ole float 0.000000e+00, %183
  br i1 %184, label %185, label %201

185:                                              ; preds = %173
  %186 = load float, ptr %38, align 4, !tbaa !9
  %187 = load ptr, ptr %10, align 8, !tbaa !5
  %188 = getelementptr inbounds %"struct.muli::RayCastInput", ptr %187, i32 0, i32 2
  %189 = load float, ptr %188, align 4, !tbaa !15
  %190 = fcmp ole float %186, %189
  br i1 %190, label %191, label %201

191:                                              ; preds = %185
  %192 = load float, ptr %38, align 4, !tbaa !9
  %193 = load ptr, ptr %11, align 8, !tbaa !5
  %194 = getelementptr inbounds %"struct.muli::RayCastOutput", ptr %193, i32 0, i32 1
  store float %192, ptr %194, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #8
  %195 = load float, ptr %38, align 4, !tbaa !9
  %196 = call <2 x float> @_ZN4mulimlERKNS_4Vec2Ef(ptr noundef nonnull align 4 dereferenceable(8) %16, float noundef %195)
  store <2 x float> %196, ptr %41, align 4
  %197 = call <2 x float> @_ZN4muliplERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %33, ptr noundef nonnull align 4 dereferenceable(8) %41)
  store <2 x float> %197, ptr %40, align 4
  %198 = call <2 x float> @_ZN4muli9NormalizeINS_4Vec2EEET_RKS2_(ptr noundef nonnull align 4 dereferenceable(8) %40)
  store <2 x float> %198, ptr %39, align 4
  %199 = load ptr, ptr %11, align 8, !tbaa !5
  %200 = getelementptr inbounds %"struct.muli::RayCastOutput", ptr %199, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %200, ptr align 4 %39, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  store i1 true, ptr %6, align 1
  store i32 1, ptr %28, align 4
  br label %202

201:                                              ; preds = %185, %173
  store i1 false, ptr %6, align 1
  store i32 1, ptr %28, align 4
  br label %202

202:                                              ; preds = %201, %191
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  br label %203

203:                                              ; preds = %202, %172
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  br label %205

204:                                              ; preds = %147
  store i1 false, ptr %6, align 1
  store i32 1, ptr %28, align 4
  br label %205

205:                                              ; preds = %204, %203, %146
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %366

206:                                              ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #8
  %207 = load float, ptr %20, align 4, !tbaa !9
  %208 = call <2 x float> @_ZN4mulimlERKNS_4Vec2Ef(ptr noundef nonnull align 4 dereferenceable(8) %18, float noundef %207)
  store <2 x float> %208, ptr %42, align 4
  %209 = load float, ptr %21, align 4, !tbaa !9
  %210 = fcmp ogt float %209, 0.000000e+00
  br i1 %210, label %211, label %212

211:                                              ; preds = %206
  call void @_ZN4muli4Vec2pLERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %42)
  call void @_ZN4muli4Vec2pLERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(8) %42)
  br label %213

212:                                              ; preds = %206
  call void @_ZN4muli4Vec2mIERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %42)
  call void @_ZN4muli4Vec2mIERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(8) %42)
  br label %213

213:                                              ; preds = %212, %211
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #8
  %214 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %18, ptr noundef nonnull align 4 dereferenceable(8) %16)
  store float %214, ptr %43, align 4, !tbaa !9
  %215 = load float, ptr %43, align 4, !tbaa !9
  %216 = fcmp oeq float %215, 0.000000e+00
  br i1 %216, label %217, label %218

217:                                              ; preds = %213
  store i1 false, ptr %6, align 1
  store i32 1, ptr %28, align 4
  br label %365

218:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #8
  %219 = call <2 x float> @_ZN4mulimiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %12)
  store <2 x float> %219, ptr %45, align 4
  %220 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %18, ptr noundef nonnull align 4 dereferenceable(8) %45)
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  store float %220, ptr %44, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #8
  %221 = load float, ptr %44, align 4, !tbaa !9
  %222 = load float, ptr %43, align 4, !tbaa !9
  %223 = fdiv float %221, %222
  store float %223, ptr %46, align 4, !tbaa !9
  %224 = load float, ptr %46, align 4, !tbaa !9
  %225 = fcmp olt float %224, 0.000000e+00
  br i1 %225, label %232, label %226

226:                                              ; preds = %218
  %227 = load ptr, ptr %10, align 8, !tbaa !5
  %228 = getelementptr inbounds %"struct.muli::RayCastInput", ptr %227, i32 0, i32 2
  %229 = load float, ptr %228, align 4, !tbaa !15
  %230 = load float, ptr %46, align 4, !tbaa !9
  %231 = fcmp olt float %229, %230
  br i1 %231, label %232, label %233

232:                                              ; preds = %226, %218
  store i1 false, ptr %6, align 1
  store i32 1, ptr %28, align 4
  br label %364

233:                                              ; preds = %226
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #8
  %234 = load float, ptr %46, align 4, !tbaa !9
  %235 = call <2 x float> @_ZN4mulimlEfRKNS_4Vec2E(float noundef %234, ptr noundef nonnull align 4 dereferenceable(8) %16)
  store <2 x float> %235, ptr %48, align 4
  %236 = call <2 x float> @_ZN4muliplERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %48)
  store <2 x float> %236, ptr %47, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #8
  %237 = call <2 x float> @_ZN4mulimiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %47, ptr noundef nonnull align 4 dereferenceable(8) %14)
  store <2 x float> %237, ptr %50, align 4
  %238 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %50, ptr noundef nonnull align 4 dereferenceable(8) %17)
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #8
  store float %238, ptr %49, align 4, !tbaa !9
  %239 = load float, ptr %49, align 4, !tbaa !9
  %240 = fcmp olt float %239, 0.000000e+00
  br i1 %240, label %241, label %293

241:                                              ; preds = %233
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #8
  %242 = load ptr, ptr %7, align 8, !tbaa !5
  %243 = call <2 x float> @_ZN4mulimiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %242)
  store <2 x float> %243, ptr %51, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #8
  %244 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %16)
  store float %244, ptr %52, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #8
  %245 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %51, ptr noundef nonnull align 4 dereferenceable(8) %16)
  %246 = fmul float 2.000000e+00, %245
  store float %246, ptr %53, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #8
  %247 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %51, ptr noundef nonnull align 4 dereferenceable(8) %51)
  %248 = load float, ptr %20, align 4, !tbaa !9
  %249 = load float, ptr %20, align 4, !tbaa !9
  %250 = fneg float %248
  %251 = call float @llvm.fmuladd.f32(float %250, float %249, float %247)
  store float %251, ptr %54, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #8
  %252 = load float, ptr %53, align 4, !tbaa !9
  %253 = load float, ptr %53, align 4, !tbaa !9
  %254 = load float, ptr %52, align 4, !tbaa !9
  %255 = fmul float 4.000000e+00, %254
  %256 = load float, ptr %54, align 4, !tbaa !9
  %257 = fmul float %255, %256
  %258 = fneg float %257
  %259 = call float @llvm.fmuladd.f32(float %252, float %253, float %258)
  store float %259, ptr %55, align 4, !tbaa !9
  %260 = load float, ptr %55, align 4, !tbaa !9
  %261 = fcmp olt float %260, 0.000000e+00
  br i1 %261, label %262, label %263

262:                                              ; preds = %241
  store i1 false, ptr %6, align 1
  store i32 1, ptr %28, align 4
  br label %292

263:                                              ; preds = %241
  %264 = load float, ptr %55, align 4, !tbaa !9
  %265 = call noundef float @_ZN4muli4SqrtEf(float noundef %264)
  store float %265, ptr %55, align 4, !tbaa !9
  %266 = load float, ptr %53, align 4, !tbaa !9
  %267 = fneg float %266
  %268 = load float, ptr %55, align 4, !tbaa !9
  %269 = fsub float %267, %268
  %270 = load float, ptr %52, align 4, !tbaa !9
  %271 = fmul float 2.000000e+00, %270
  %272 = fdiv float %269, %271
  store float %272, ptr %46, align 4, !tbaa !9
  %273 = load float, ptr %46, align 4, !tbaa !9
  %274 = fcmp ole float 0.000000e+00, %273
  br i1 %274, label %275, label %291

275:                                              ; preds = %263
  %276 = load float, ptr %46, align 4, !tbaa !9
  %277 = load ptr, ptr %10, align 8, !tbaa !5
  %278 = getelementptr inbounds %"struct.muli::RayCastInput", ptr %277, i32 0, i32 2
  %279 = load float, ptr %278, align 4, !tbaa !15
  %280 = fcmp ole float %276, %279
  br i1 %280, label %281, label %291

281:                                              ; preds = %275
  %282 = load float, ptr %46, align 4, !tbaa !9
  %283 = load ptr, ptr %11, align 8, !tbaa !5
  %284 = getelementptr inbounds %"struct.muli::RayCastOutput", ptr %283, i32 0, i32 1
  store float %282, ptr %284, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #8
  %285 = load float, ptr %46, align 4, !tbaa !9
  %286 = call <2 x float> @_ZN4mulimlERKNS_4Vec2Ef(ptr noundef nonnull align 4 dereferenceable(8) %16, float noundef %285)
  store <2 x float> %286, ptr %58, align 4
  %287 = call <2 x float> @_ZN4muliplERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %51, ptr noundef nonnull align 4 dereferenceable(8) %58)
  store <2 x float> %287, ptr %57, align 4
  %288 = call <2 x float> @_ZN4muli9NormalizeINS_4Vec2EEET_RKS2_(ptr noundef nonnull align 4 dereferenceable(8) %57)
  store <2 x float> %288, ptr %56, align 4
  %289 = load ptr, ptr %11, align 8, !tbaa !5
  %290 = getelementptr inbounds %"struct.muli::RayCastOutput", ptr %289, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %290, ptr align 4 %56, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #8
  store i1 true, ptr %6, align 1
  store i32 1, ptr %28, align 4
  br label %292

291:                                              ; preds = %275, %263
  store i1 false, ptr %6, align 1
  store i32 1, ptr %28, align 4
  br label %292

292:                                              ; preds = %291, %281, %262
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #8
  br label %363

293:                                              ; preds = %233
  %294 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %17)
  %295 = load float, ptr %49, align 4, !tbaa !9
  %296 = fcmp olt float %294, %295
  br i1 %296, label %297, label %349

297:                                              ; preds = %293
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #8
  %298 = load ptr, ptr %8, align 8, !tbaa !5
  %299 = call <2 x float> @_ZN4mulimiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %298)
  store <2 x float> %299, ptr %59, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #8
  %300 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %16)
  store float %300, ptr %60, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %61) #8
  %301 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %59, ptr noundef nonnull align 4 dereferenceable(8) %16)
  %302 = fmul float 2.000000e+00, %301
  store float %302, ptr %61, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %62) #8
  %303 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %59, ptr noundef nonnull align 4 dereferenceable(8) %59)
  %304 = load float, ptr %20, align 4, !tbaa !9
  %305 = load float, ptr %20, align 4, !tbaa !9
  %306 = fneg float %304
  %307 = call float @llvm.fmuladd.f32(float %306, float %305, float %303)
  store float %307, ptr %62, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %63) #8
  %308 = load float, ptr %61, align 4, !tbaa !9
  %309 = load float, ptr %61, align 4, !tbaa !9
  %310 = load float, ptr %60, align 4, !tbaa !9
  %311 = fmul float 4.000000e+00, %310
  %312 = load float, ptr %62, align 4, !tbaa !9
  %313 = fmul float %311, %312
  %314 = fneg float %313
  %315 = call float @llvm.fmuladd.f32(float %308, float %309, float %314)
  store float %315, ptr %63, align 4, !tbaa !9
  %316 = load float, ptr %63, align 4, !tbaa !9
  %317 = fcmp olt float %316, 0.000000e+00
  br i1 %317, label %318, label %319

318:                                              ; preds = %297
  store i1 false, ptr %6, align 1
  store i32 1, ptr %28, align 4
  br label %348

319:                                              ; preds = %297
  %320 = load float, ptr %63, align 4, !tbaa !9
  %321 = call noundef float @_ZN4muli4SqrtEf(float noundef %320)
  store float %321, ptr %63, align 4, !tbaa !9
  %322 = load float, ptr %61, align 4, !tbaa !9
  %323 = fneg float %322
  %324 = load float, ptr %63, align 4, !tbaa !9
  %325 = fsub float %323, %324
  %326 = load float, ptr %60, align 4, !tbaa !9
  %327 = fmul float 2.000000e+00, %326
  %328 = fdiv float %325, %327
  store float %328, ptr %46, align 4, !tbaa !9
  %329 = load float, ptr %46, align 4, !tbaa !9
  %330 = fcmp ole float 0.000000e+00, %329
  br i1 %330, label %331, label %347

331:                                              ; preds = %319
  %332 = load float, ptr %46, align 4, !tbaa !9
  %333 = load ptr, ptr %10, align 8, !tbaa !5
  %334 = getelementptr inbounds %"struct.muli::RayCastInput", ptr %333, i32 0, i32 2
  %335 = load float, ptr %334, align 4, !tbaa !15
  %336 = fcmp ole float %332, %335
  br i1 %336, label %337, label %347

337:                                              ; preds = %331
  %338 = load float, ptr %46, align 4, !tbaa !9
  %339 = load ptr, ptr %11, align 8, !tbaa !5
  %340 = getelementptr inbounds %"struct.muli::RayCastOutput", ptr %339, i32 0, i32 1
  store float %338, ptr %340, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %65) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %66) #8
  %341 = load float, ptr %46, align 4, !tbaa !9
  %342 = call <2 x float> @_ZN4mulimlERKNS_4Vec2Ef(ptr noundef nonnull align 4 dereferenceable(8) %16, float noundef %341)
  store <2 x float> %342, ptr %66, align 4
  %343 = call <2 x float> @_ZN4muliplERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %59, ptr noundef nonnull align 4 dereferenceable(8) %66)
  store <2 x float> %343, ptr %65, align 4
  %344 = call <2 x float> @_ZN4muli9NormalizeINS_4Vec2EEET_RKS2_(ptr noundef nonnull align 4 dereferenceable(8) %65)
  store <2 x float> %344, ptr %64, align 4
  %345 = load ptr, ptr %11, align 8, !tbaa !5
  %346 = getelementptr inbounds %"struct.muli::RayCastOutput", ptr %345, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %346, ptr align 4 %64, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #8
  store i1 true, ptr %6, align 1
  store i32 1, ptr %28, align 4
  br label %348

347:                                              ; preds = %331, %319
  store i1 false, ptr %6, align 1
  store i32 1, ptr %28, align 4
  br label %348

348:                                              ; preds = %347, %337, %318
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #8
  br label %363

349:                                              ; preds = %293
  %350 = load float, ptr %46, align 4, !tbaa !9
  %351 = load ptr, ptr %11, align 8, !tbaa !5
  %352 = getelementptr inbounds %"struct.muli::RayCastOutput", ptr %351, i32 0, i32 1
  store float %350, ptr %352, align 4, !tbaa !16
  %353 = load float, ptr %44, align 4, !tbaa !9
  %354 = fcmp ogt float %353, 0.000000e+00
  br i1 %354, label %355, label %359

355:                                              ; preds = %349
  call void @llvm.lifetime.start.p0(i64 8, ptr %67) #8
  %356 = call <2 x float> @_ZNK4muli4Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8) %18)
  store <2 x float> %356, ptr %67, align 4
  %357 = load ptr, ptr %11, align 8, !tbaa !5
  %358 = getelementptr inbounds %"struct.muli::RayCastOutput", ptr %357, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %358, ptr align 4 %67, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #8
  br label %362

359:                                              ; preds = %349
  %360 = load ptr, ptr %11, align 8, !tbaa !5
  %361 = getelementptr inbounds %"struct.muli::RayCastOutput", ptr %360, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %361, ptr align 4 %18, i64 8, i1 false), !tbaa.struct !11
  br label %362

362:                                              ; preds = %359, %355
  store i1 true, ptr %6, align 1
  store i32 1, ptr %28, align 4
  br label %363

363:                                              ; preds = %362, %348, %292
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #8
  br label %364

364:                                              ; preds = %363, %232
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #8
  br label %365

365:                                              ; preds = %364, %217
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  br label %366

366:                                              ; preds = %365, %205
  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 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  %367 = load i1, ptr %6, align 1
  ret i1 %367
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN4muli4Vec29NormalizeEv(ptr noundef nonnull align 4 dereferenceable(8)) #6 align 2

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { 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 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}
!12 = !{!13, !10, i64 20}
!13 = !{!"_ZTSN4muli12RayCastInputE", !14, i64 0, !14, i64 8, !10, i64 16, !10, i64 20}
!14 = !{!"_ZTSN4muli4Vec2E", !10, i64 0, !10, i64 4}
!15 = !{!13, !10, i64 16}
!16 = !{!17, !10, i64 8}
!17 = !{!"_ZTSN4muli13RayCastOutputE", !14, i64 0, !10, i64 8}


; 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.muli::Vec2" = type { float, float }

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) 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 nounwind uwtable
declare dso_local noundef float @_ZN4muli4SqrtEf(float noundef) local_unnamed_addr #2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4muli14RayCastCapsuleERKNS_4Vec2ES2_fRKNS_12RayCastInputEPNS_13RayCastOutputE(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef nonnull align 4 dereferenceable(8) %1, float noundef %2, ptr nocapture noundef nonnull readonly align 4 dereferenceable(24) %3, ptr nocapture noundef writeonly %4) local_unnamed_addr #4 {
  %6 = alloca %"struct.muli::Vec2", align 8
  %7 = alloca %"struct.muli::Vec2", align 8
  %8 = alloca %"struct.muli::Vec2", align 8
  %9 = alloca %"struct.muli::Vec2", align 8
  %10 = alloca %"struct.muli::Vec2", align 8
  %11 = alloca %"struct.muli::Vec2", align 8
  %12 = alloca %"struct.muli::Vec2", align 8
  %13 = alloca %"struct.muli::Vec2", align 8
  %14 = alloca %"struct.muli::Vec2", align 8
  %15 = alloca %"struct.muli::Vec2", align 8
  %16 = alloca %"struct.muli::Vec2", align 8
  %17 = alloca %"struct.muli::Vec2", align 8
  %18 = alloca %"struct.muli::Vec2", align 8
  %19 = alloca %"struct.muli::Vec2", align 8
  %20 = alloca %"struct.muli::Vec2", align 8
  %21 = alloca %"struct.muli::Vec2", align 8
  %22 = alloca %"struct.muli::Vec2", align 8
  %23 = alloca %"struct.muli::Vec2", align 8
  %24 = alloca %"struct.muli::Vec2", align 8
  %25 = alloca %"struct.muli::Vec2", align 8
  %26 = alloca %"struct.muli::Vec2", align 8
  %27 = alloca %"struct.muli::Vec2", align 8
  %28 = alloca %"struct.muli::Vec2", align 8
  %29 = alloca %"struct.muli::Vec2", align 8
  %30 = alloca %"struct.muli::Vec2", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %31 = load i64, ptr %3, align 4
  store i64 %31, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %32 = getelementptr inbounds i8, ptr %3, i64 8
  %33 = load i64, ptr %32, align 4
  store i64 %33, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %34 = load i64, ptr %0, align 4
  store i64 %34, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %35 = load i64, ptr %1, align 4
  store i64 %35, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %36 = call <2 x float> @_ZN4mulimiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %6)
  store <2 x float> %36, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %37 = call <2 x float> @_ZN4mulimiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %8)
  store <2 x float> %37, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %38 = call <2 x float> @_ZN4muli5CrossEfRKNS_4Vec2E(float noundef 1.000000e+00, ptr noundef nonnull align 4 dereferenceable(8) %11)
  store <2 x float> %38, ptr %12, align 8
  %39 = call noundef float @_ZN4muli4Vec29NormalizeEv(ptr noundef nonnull align 4 dereferenceable(8) %12)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %40 = call <2 x float> @_ZN4mulimiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %8)
  store <2 x float> %40, ptr %13, align 8
  %41 = getelementptr inbounds i8, ptr %3, i64 20
  %42 = load float, ptr %41, align 4, !tbaa !5
  %43 = fadd float %42, %2
  %44 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %12)
  %45 = call noundef float @_ZN4muli3AbsIfEET_S1_(float noundef %44)
  %46 = fcmp ugt float %45, %43
  br i1 %46, label %109, label %47

47:                                               ; preds = %5
  %48 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %13)
  %49 = fcmp olt float %48, 0.000000e+00
  br i1 %49, label %50, label %78

50:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  %51 = call <2 x float> @_ZN4mulimiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %0)
  store <2 x float> %51, ptr %14, align 8
  %52 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %10)
  %53 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %10)
  %54 = fmul float %53, 2.000000e+00
  %55 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %14)
  %56 = fneg float %43
  %57 = call float @llvm.fmuladd.f32(float %56, float %43, float %55)
  %58 = fmul float %52, -4.000000e+00
  %59 = fmul float %58, %57
  %60 = call float @llvm.fmuladd.f32(float %54, float %54, float %59)
  %61 = fcmp olt float %60, 0.000000e+00
  br i1 %61, label %77, label %62

62:                                               ; preds = %50
  %63 = call noundef float @_ZN4muli4SqrtEf(float noundef %60)
  %64 = fneg float %54
  %65 = fsub float %64, %63
  %66 = fmul float %52, 2.000000e+00
  %67 = fdiv float %65, %66
  %68 = fcmp ult float %67, 0.000000e+00
  %69 = getelementptr inbounds i8, ptr %3, i64 16
  %70 = load float, ptr %69, align 4
  %71 = fcmp ugt float %67, %70
  %or.cond = select i1 %68, i1 true, i1 %71
  br i1 %or.cond, label %77, label %72

72:                                               ; preds = %62
  %73 = getelementptr inbounds i8, ptr %4, i64 8
  store float %67, ptr %73, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  %74 = call <2 x float> @_ZN4mulimlERKNS_4Vec2Ef(ptr noundef nonnull align 4 dereferenceable(8) %10, float noundef %67)
  store <2 x float> %74, ptr %16, align 8
  %75 = call <2 x float> @_ZN4muliplERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %16)
  store <2 x float> %75, ptr %15, align 8
  %76 = call <2 x float> @_ZN4muli9NormalizeINS_4Vec2EEET_RKS2_(ptr noundef nonnull align 4 dereferenceable(8) %15)
  store <2 x float> %76, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  br label %77

77:                                               ; preds = %72, %62, %50
  %.1 = phi i1 [ false, %50 ], [ true, %72 ], [ false, %62 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  br label %200

78:                                               ; preds = %47
  %79 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %11)
  %80 = fcmp ogt float %48, %79
  br i1 %80, label %81, label %200

81:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  %82 = call <2 x float> @_ZN4mulimiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %1)
  store <2 x float> %82, ptr %17, align 8
  %83 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %10)
  %84 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %10)
  %85 = fmul float %84, 2.000000e+00
  %86 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %17)
  %87 = fneg float %43
  %88 = call float @llvm.fmuladd.f32(float %87, float %43, float %86)
  %89 = fmul float %83, -4.000000e+00
  %90 = fmul float %89, %88
  %91 = call float @llvm.fmuladd.f32(float %85, float %85, float %90)
  %92 = fcmp olt float %91, 0.000000e+00
  br i1 %92, label %108, label %93

93:                                               ; preds = %81
  %94 = call noundef float @_ZN4muli4SqrtEf(float noundef %91)
  %95 = fneg float %85
  %96 = fsub float %95, %94
  %97 = fmul float %83, 2.000000e+00
  %98 = fdiv float %96, %97
  %99 = fcmp ult float %98, 0.000000e+00
  %100 = getelementptr inbounds i8, ptr %3, i64 16
  %101 = load float, ptr %100, align 4
  %102 = fcmp ugt float %98, %101
  %or.cond124 = select i1 %99, i1 true, i1 %102
  br i1 %or.cond124, label %108, label %103

103:                                              ; preds = %93
  %104 = getelementptr inbounds i8, ptr %4, i64 8
  store float %98, ptr %104, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  %105 = call <2 x float> @_ZN4mulimlERKNS_4Vec2Ef(ptr noundef nonnull align 4 dereferenceable(8) %10, float noundef %98)
  store <2 x float> %105, ptr %19, align 8
  %106 = call <2 x float> @_ZN4muliplERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %19)
  store <2 x float> %106, ptr %18, align 8
  %107 = call <2 x float> @_ZN4muli9NormalizeINS_4Vec2EEET_RKS2_(ptr noundef nonnull align 4 dereferenceable(8) %18)
  store <2 x float> %107, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  br label %108

108:                                              ; preds = %103, %93, %81
  %.3 = phi i1 [ false, %81 ], [ true, %103 ], [ false, %93 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #7
  br label %200

109:                                              ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #7
  %110 = call <2 x float> @_ZN4mulimlERKNS_4Vec2Ef(ptr noundef nonnull align 4 dereferenceable(8) %12, float noundef %43)
  store <2 x float> %110, ptr %20, align 8
  %111 = fcmp ogt float %44, 0.000000e+00
  br i1 %111, label %112, label %113

112:                                              ; preds = %109
  call void @_ZN4muli4Vec2pLERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %20)
  call void @_ZN4muli4Vec2pLERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %20)
  br label %114

113:                                              ; preds = %109
  call void @_ZN4muli4Vec2mIERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %20)
  call void @_ZN4muli4Vec2mIERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %20)
  br label %114

114:                                              ; preds = %113, %112
  %115 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %10)
  %116 = fcmp oeq float %115, 0.000000e+00
  br i1 %116, label %199, label %117

117:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #7
  %118 = call <2 x float> @_ZN4mulimiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %6)
  store <2 x float> %118, ptr %21, align 8
  %119 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %21)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #7
  %120 = fdiv float %119, %115
  %121 = fcmp olt float %120, 0.000000e+00
  br i1 %121, label %199, label %122

122:                                              ; preds = %117
  %123 = getelementptr inbounds i8, ptr %3, i64 16
  %124 = load float, ptr %123, align 4, !tbaa !13
  %125 = fcmp olt float %124, %120
  br i1 %125, label %199, label %126

126:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #7
  %127 = call <2 x float> @_ZN4mulimlEfRKNS_4Vec2E(float noundef %120, ptr noundef nonnull align 4 dereferenceable(8) %10)
  store <2 x float> %127, ptr %23, align 8
  %128 = call <2 x float> @_ZN4muliplERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %23)
  store <2 x float> %128, ptr %22, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #7
  %129 = call <2 x float> @_ZN4mulimiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(8) %8)
  store <2 x float> %129, ptr %24, align 8
  %130 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(8) %11)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #7
  %131 = fcmp olt float %130, 0.000000e+00
  br i1 %131, label %132, label %159

132:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #7
  %133 = call <2 x float> @_ZN4mulimiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %0)
  store <2 x float> %133, ptr %25, align 8
  %134 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %10)
  %135 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(8) %10)
  %136 = fmul float %135, 2.000000e+00
  %137 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(8) %25)
  %138 = fneg float %43
  %139 = call float @llvm.fmuladd.f32(float %138, float %43, float %137)
  %140 = fmul float %134, -4.000000e+00
  %141 = fmul float %140, %139
  %142 = call float @llvm.fmuladd.f32(float %136, float %136, float %141)
  %143 = fcmp olt float %142, 0.000000e+00
  br i1 %143, label %158, label %144

144:                                              ; preds = %132
  %145 = call noundef float @_ZN4muli4SqrtEf(float noundef %142)
  %146 = fneg float %136
  %147 = fsub float %146, %145
  %148 = fmul float %134, 2.000000e+00
  %149 = fdiv float %147, %148
  %150 = fcmp ult float %149, 0.000000e+00
  %151 = load float, ptr %123, align 4
  %152 = fcmp ugt float %149, %151
  %or.cond126 = select i1 %150, i1 true, i1 %152
  br i1 %or.cond126, label %158, label %153

153:                                              ; preds = %144
  %154 = getelementptr inbounds i8, ptr %4, i64 8
  store float %149, ptr %154, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %27) #7
  %155 = call <2 x float> @_ZN4mulimlERKNS_4Vec2Ef(ptr noundef nonnull align 4 dereferenceable(8) %10, float noundef %149)
  store <2 x float> %155, ptr %27, align 8
  %156 = call <2 x float> @_ZN4muliplERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(8) %27)
  store <2 x float> %156, ptr %26, align 8
  %157 = call <2 x float> @_ZN4muli9NormalizeINS_4Vec2EEET_RKS2_(ptr noundef nonnull align 4 dereferenceable(8) %26)
  store <2 x float> %157, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #7
  br label %158

158:                                              ; preds = %144, %132, %153
  %.5 = phi i1 [ true, %153 ], [ false, %132 ], [ false, %144 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #7
  br label %198

159:                                              ; preds = %126
  %160 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %11)
  %161 = fcmp olt float %160, %130
  br i1 %161, label %162, label %189

162:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #7
  %163 = call <2 x float> @_ZN4mulimiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %1)
  store <2 x float> %163, ptr %28, align 8
  %164 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %10)
  %165 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %28, ptr noundef nonnull align 4 dereferenceable(8) %10)
  %166 = fmul float %165, 2.000000e+00
  %167 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %28, ptr noundef nonnull align 4 dereferenceable(8) %28)
  %168 = fneg float %43
  %169 = call float @llvm.fmuladd.f32(float %168, float %43, float %167)
  %170 = fmul float %164, -4.000000e+00
  %171 = fmul float %170, %169
  %172 = call float @llvm.fmuladd.f32(float %166, float %166, float %171)
  %173 = fcmp olt float %172, 0.000000e+00
  br i1 %173, label %188, label %174

174:                                              ; preds = %162
  %175 = call noundef float @_ZN4muli4SqrtEf(float noundef %172)
  %176 = fneg float %166
  %177 = fsub float %176, %175
  %178 = fmul float %164, 2.000000e+00
  %179 = fdiv float %177, %178
  %180 = fcmp ult float %179, 0.000000e+00
  %181 = load float, ptr %123, align 4
  %182 = fcmp ugt float %179, %181
  %or.cond128 = select i1 %180, i1 true, i1 %182
  br i1 %or.cond128, label %188, label %183

183:                                              ; preds = %174
  %184 = getelementptr inbounds i8, ptr %4, i64 8
  store float %179, ptr %184, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #7
  %185 = call <2 x float> @_ZN4mulimlERKNS_4Vec2Ef(ptr noundef nonnull align 4 dereferenceable(8) %10, float noundef %179)
  store <2 x float> %185, ptr %30, align 8
  %186 = call <2 x float> @_ZN4muliplERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %28, ptr noundef nonnull align 4 dereferenceable(8) %30)
  store <2 x float> %186, ptr %29, align 8
  %187 = call <2 x float> @_ZN4muli9NormalizeINS_4Vec2EEET_RKS2_(ptr noundef nonnull align 4 dereferenceable(8) %29)
  store <2 x float> %187, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #7
  br label %188

188:                                              ; preds = %174, %162, %183
  %.6 = phi i1 [ true, %183 ], [ false, %162 ], [ false, %174 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #7
  br label %198

189:                                              ; preds = %159
  %190 = getelementptr inbounds i8, ptr %4, i64 8
  store float %120, ptr %190, align 4, !tbaa !11
  %191 = fcmp ogt float %119, 0.000000e+00
  br i1 %191, label %192, label %195

192:                                              ; preds = %189
  %193 = call <2 x float> @_ZNK4muli4Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8) %12)
  %194 = bitcast <2 x float> %193 to i64
  br label %197

195:                                              ; preds = %189
  %196 = load i64, ptr %12, align 8
  br label %197

197:                                              ; preds = %195, %192
  %storemerge = phi i64 [ %196, %195 ], [ %194, %192 ]
  store i64 %storemerge, ptr %4, align 4
  br label %198

198:                                              ; preds = %197, %188, %158
  %.7 = phi i1 [ %.5, %158 ], [ %.6, %188 ], [ true, %197 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  br label %199

199:                                              ; preds = %198, %122, %117, %114
  %.9 = phi i1 [ false, %114 ], [ %.7, %198 ], [ false, %122 ], [ false, %117 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  br label %200

200:                                              ; preds = %77, %108, %78, %199
  %.10 = phi i1 [ %.9, %199 ], [ %.1, %77 ], [ %.3, %108 ], [ false, %78 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  ret i1 %.10
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN4muli4Vec29NormalizeEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #5 align 2

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { 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 20}
!6 = !{!"_ZTSN4muli12RayCastInputE", !7, i64 0, !7, i64 8, !8, i64 16, !8, i64 20}
!7 = !{!"_ZTSN4muli4Vec2E", !8, i64 0, !8, i64 4}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!12, !8, i64 8}
!12 = !{!"_ZTSN4muli13RayCastOutputE", !7, i64 0, !8, i64 8}
!13 = !{!6, !8, i64 16}


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