; LLVM IR from ESPboy-edu/ESPboy_tinyphysicsengine :: programs (hello)

; 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.TPE_Vec3 = type { i32, i32, i32 }

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

; Function Attrs: nounwind uwtable
declare dso_local { i64, i32 } @TPE_vec3(i32 noundef, i32 noundef, i32 noundef) #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @TPE_vec3Len(i64, i32) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @TPE_nonZero(i32 noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local { i64, i32 } @TPE_vec3Minus(i64, i32, i64, i32) #1

; Function Attrs: nounwind uwtable
declare dso_local { i64, i32 } @TPE_vec3Plus(i64, i32, i64, i32) #1

; Function Attrs: nounwind uwtable
declare dso_local { i64, i32 } @TPE_vec3Project(i64, i32, i64, i32) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @TPE_vec3Dot(i64, i32, i64, i32) #1

; Function Attrs: nounwind uwtable
declare dso_local { i64, i32 } @TPE_envInfiniteCylinder(i64, i32, i64, i32, i64, i32, i32 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local { i64, i32 } @TPE_envCylinder(i64 %0, i32 %1, i64 %2, i32 %3, i64 %4, i32 %5, i32 noundef %6) #1 {
  %8 = alloca %struct.TPE_Vec3, align 4
  %9 = alloca %struct.TPE_Vec3, align 4
  %10 = alloca { i64, i32 }, align 4
  %11 = alloca %struct.TPE_Vec3, align 4
  %12 = alloca { i64, i32 }, align 4
  %13 = alloca %struct.TPE_Vec3, align 4
  %14 = alloca { i64, i32 }, align 4
  %15 = alloca i32, align 4
  %16 = alloca %struct.TPE_Vec3, align 4
  %17 = alloca { i64, i32 }, align 4
  %18 = alloca { i64, i32 }, align 4
  %19 = alloca { i64, i32 }, align 8
  %20 = alloca %struct.TPE_Vec3, align 4
  %21 = alloca { i64, i32 }, align 4
  %22 = alloca { i64, i32 }, align 4
  %23 = alloca { i64, i32 }, align 8
  %24 = alloca %struct.TPE_Vec3, align 4
  %25 = alloca %struct.TPE_Vec3, align 4
  %26 = alloca { i64, i32 }, align 8
  %27 = alloca { i64, i32 }, align 4
  %28 = alloca { i64, i32 }, align 4
  %29 = alloca { i64, i32 }, align 4
  %30 = alloca { i64, i32 }, align 8
  %31 = alloca i32, align 4
  %32 = alloca { i64, i32 }, align 4
  %33 = alloca i32, align 4
  %34 = alloca { i64, i32 }, align 4
  %35 = alloca { i64, i32 }, align 4
  %36 = alloca { i64, i32 }, align 4
  %37 = alloca %struct.TPE_Vec3, align 4
  %38 = alloca i1, align 1
  %39 = alloca { i64, i32 }, align 4
  %40 = alloca { i64, i32 }, align 4
  %41 = alloca { i64, i32 }, align 8
  %42 = alloca %struct.TPE_Vec3, align 4
  %43 = alloca i1, align 1
  %44 = alloca { i64, i32 }, align 4
  %45 = alloca { i64, i32 }, align 4
  %46 = alloca { i64, i32 }, align 8
  %47 = alloca { i64, i32 }, align 4
  %48 = alloca { i64, i32 }, align 4
  %49 = alloca { i64, i32 }, align 8
  %50 = alloca { i64, i32 }, align 8
  %51 = getelementptr inbounds { i64, i32 }, ptr %10, i32 0, i32 0
  store i64 %0, ptr %51, align 4
  %52 = getelementptr inbounds { i64, i32 }, ptr %10, i32 0, i32 1
  store i32 %1, ptr %52, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %10, i64 12, i1 false)
  %53 = getelementptr inbounds { i64, i32 }, ptr %12, i32 0, i32 0
  store i64 %2, ptr %53, align 4
  %54 = getelementptr inbounds { i64, i32 }, ptr %12, i32 0, i32 1
  store i32 %3, ptr %54, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %12, i64 12, i1 false)
  %55 = getelementptr inbounds { i64, i32 }, ptr %14, i32 0, i32 0
  store i64 %4, ptr %55, align 4
  %56 = getelementptr inbounds { i64, i32 }, ptr %14, i32 0, i32 1
  store i32 %5, ptr %56, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %14, i64 12, i1 false)
  store i32 %6, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %9, i64 12, i1 false)
  %57 = getelementptr inbounds { i64, i32 }, ptr %17, i32 0, i32 0
  %58 = load i64, ptr %57, align 4
  %59 = getelementptr inbounds { i64, i32 }, ptr %17, i32 0, i32 1
  %60 = load i32, ptr %59, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %11, i64 12, i1 false)
  %61 = getelementptr inbounds { i64, i32 }, ptr %18, i32 0, i32 0
  %62 = load i64, ptr %61, align 4
  %63 = getelementptr inbounds { i64, i32 }, ptr %18, i32 0, i32 1
  %64 = load i32, ptr %63, align 4
  %65 = call { i64, i32 } @TPE_vec3Minus(i64 %58, i32 %60, i64 %62, i32 %64)
  store { i64, i32 } %65, ptr %19, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 8 %19, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %16, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %9, i64 12, i1 false)
  %66 = getelementptr inbounds { i64, i32 }, ptr %21, i32 0, i32 0
  %67 = load i64, ptr %66, align 4
  %68 = getelementptr inbounds { i64, i32 }, ptr %21, i32 0, i32 1
  %69 = load i32, ptr %68, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %13, i64 12, i1 false)
  %70 = getelementptr inbounds { i64, i32 }, ptr %22, i32 0, i32 0
  %71 = load i64, ptr %70, align 4
  %72 = getelementptr inbounds { i64, i32 }, ptr %22, i32 0, i32 1
  %73 = load i32, ptr %72, align 4
  %74 = call { i64, i32 } @TPE_vec3Project(i64 %67, i32 %69, i64 %71, i32 %73)
  store { i64, i32 } %74, ptr %23, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 8 %23, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #4
  %75 = call { i64, i32 } @TPE_vec3(i32 noundef 0, i32 noundef 0, i32 noundef 0)
  store { i64, i32 } %75, ptr %26, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 8 %26, i64 12, i1 false)
  %76 = load i32, ptr %15, align 4, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %9, i64 12, i1 false)
  %77 = getelementptr inbounds { i64, i32 }, ptr %27, i32 0, i32 0
  %78 = load i64, ptr %77, align 4
  %79 = getelementptr inbounds { i64, i32 }, ptr %27, i32 0, i32 1
  %80 = load i32, ptr %79, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %25, i64 12, i1 false)
  %81 = getelementptr inbounds { i64, i32 }, ptr %28, i32 0, i32 0
  %82 = load i64, ptr %81, align 4
  %83 = getelementptr inbounds { i64, i32 }, ptr %28, i32 0, i32 1
  %84 = load i32, ptr %83, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 4 %13, i64 12, i1 false)
  %85 = getelementptr inbounds { i64, i32 }, ptr %29, i32 0, i32 0
  %86 = load i64, ptr %85, align 4
  %87 = getelementptr inbounds { i64, i32 }, ptr %29, i32 0, i32 1
  %88 = load i32, ptr %87, align 4
  %89 = call { i64, i32 } @TPE_envInfiniteCylinder(i64 %78, i32 %80, i64 %82, i32 %84, i64 %86, i32 %88, i32 noundef %76)
  store { i64, i32 } %89, ptr %30, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 8 %30, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %24, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %13, i64 12, i1 false)
  %90 = getelementptr inbounds { i64, i32 }, ptr %32, i32 0, i32 0
  %91 = load i64, ptr %90, align 4
  %92 = getelementptr inbounds { i64, i32 }, ptr %32, i32 0, i32 1
  %93 = load i32, ptr %92, align 4
  %94 = call i32 @TPE_vec3Len(i64 %91, i32 %93)
  %95 = call i32 @TPE_nonZero(i32 noundef %94)
  store i32 %95, ptr %31, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 4 %20, i64 12, i1 false)
  %96 = getelementptr inbounds { i64, i32 }, ptr %34, i32 0, i32 0
  %97 = load i64, ptr %96, align 4
  %98 = getelementptr inbounds { i64, i32 }, ptr %34, i32 0, i32 1
  %99 = load i32, ptr %98, align 4
  %100 = call i32 @TPE_vec3Len(i64 %97, i32 %99)
  %101 = load i32, ptr %31, align 4, !tbaa !5
  %102 = sub nsw i32 %100, %101
  store i32 %102, ptr %33, align 4, !tbaa !5
  %103 = load i32, ptr %33, align 4, !tbaa !5
  %104 = icmp sgt i32 %103, 0
  br i1 %104, label %105, label %158

105:                                              ; preds = %7
  %106 = getelementptr inbounds %struct.TPE_Vec3, ptr %13, i32 0, i32 0
  %107 = load i32, ptr %106, align 4, !tbaa !10
  %108 = load i32, ptr %33, align 4, !tbaa !5
  %109 = mul nsw i32 %107, %108
  %110 = load i32, ptr %31, align 4, !tbaa !5
  %111 = sdiv i32 %109, %110
  %112 = getelementptr inbounds %struct.TPE_Vec3, ptr %13, i32 0, i32 0
  store i32 %111, ptr %112, align 4, !tbaa !10
  %113 = getelementptr inbounds %struct.TPE_Vec3, ptr %13, i32 0, i32 1
  %114 = load i32, ptr %113, align 4, !tbaa !12
  %115 = load i32, ptr %33, align 4, !tbaa !5
  %116 = mul nsw i32 %114, %115
  %117 = load i32, ptr %31, align 4, !tbaa !5
  %118 = sdiv i32 %116, %117
  %119 = getelementptr inbounds %struct.TPE_Vec3, ptr %13, i32 0, i32 1
  store i32 %118, ptr %119, align 4, !tbaa !12
  %120 = getelementptr inbounds %struct.TPE_Vec3, ptr %13, i32 0, i32 2
  %121 = load i32, ptr %120, align 4, !tbaa !13
  %122 = load i32, ptr %33, align 4, !tbaa !5
  %123 = mul nsw i32 %121, %122
  %124 = load i32, ptr %31, align 4, !tbaa !5
  %125 = sdiv i32 %123, %124
  %126 = getelementptr inbounds %struct.TPE_Vec3, ptr %13, i32 0, i32 2
  store i32 %125, ptr %126, align 4, !tbaa !13
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 4 %20, i64 12, i1 false)
  %127 = getelementptr inbounds { i64, i32 }, ptr %35, i32 0, i32 0
  %128 = load i64, ptr %127, align 4
  %129 = getelementptr inbounds { i64, i32 }, ptr %35, i32 0, i32 1
  %130 = load i32, ptr %129, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 4 %13, i64 12, i1 false)
  %131 = getelementptr inbounds { i64, i32 }, ptr %36, i32 0, i32 0
  %132 = load i64, ptr %131, align 4
  %133 = getelementptr inbounds { i64, i32 }, ptr %36, i32 0, i32 1
  %134 = load i32, ptr %133, align 4
  %135 = call i32 @TPE_vec3Dot(i64 %128, i32 %130, i64 %132, i32 %134)
  %136 = icmp sge i32 %135, 0
  store i1 false, ptr %38, align 1
  store i1 false, ptr %43, align 1
  br i1 %136, label %137, label %147

137:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 12, ptr %37) #4
  store i1 true, ptr %38, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %39, ptr align 4 %9, i64 12, i1 false)
  %138 = getelementptr inbounds { i64, i32 }, ptr %39, i32 0, i32 0
  %139 = load i64, ptr %138, align 4
  %140 = getelementptr inbounds { i64, i32 }, ptr %39, i32 0, i32 1
  %141 = load i32, ptr %140, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 4 %13, i64 12, i1 false)
  %142 = getelementptr inbounds { i64, i32 }, ptr %40, i32 0, i32 0
  %143 = load i64, ptr %142, align 4
  %144 = getelementptr inbounds { i64, i32 }, ptr %40, i32 0, i32 1
  %145 = load i32, ptr %144, align 4
  %146 = call { i64, i32 } @TPE_vec3Minus(i64 %139, i32 %141, i64 %143, i32 %145)
  store { i64, i32 } %146, ptr %41, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 8 %41, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %37, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 12, ptr %37) #4
  br label %157

147:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 12, ptr %42) #4
  store i1 true, ptr %43, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %44, ptr align 4 %9, i64 12, i1 false)
  %148 = getelementptr inbounds { i64, i32 }, ptr %44, i32 0, i32 0
  %149 = load i64, ptr %148, align 4
  %150 = getelementptr inbounds { i64, i32 }, ptr %44, i32 0, i32 1
  %151 = load i32, ptr %150, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %45, ptr align 4 %13, i64 12, i1 false)
  %152 = getelementptr inbounds { i64, i32 }, ptr %45, i32 0, i32 0
  %153 = load i64, ptr %152, align 4
  %154 = getelementptr inbounds { i64, i32 }, ptr %45, i32 0, i32 1
  %155 = load i32, ptr %154, align 4
  %156 = call { i64, i32 } @TPE_vec3Plus(i64 %149, i32 %151, i64 %153, i32 %155)
  store { i64, i32 } %156, ptr %46, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 8 %46, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %42, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 12, ptr %42) #4
  br label %157

157:                                              ; preds = %147, %137
  br label %158

158:                                              ; preds = %157, %7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %47, ptr align 4 %11, i64 12, i1 false)
  %159 = getelementptr inbounds { i64, i32 }, ptr %47, i32 0, i32 0
  %160 = load i64, ptr %159, align 4
  %161 = getelementptr inbounds { i64, i32 }, ptr %47, i32 0, i32 1
  %162 = load i32, ptr %161, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %48, ptr align 4 %9, i64 12, i1 false)
  %163 = getelementptr inbounds { i64, i32 }, ptr %48, i32 0, i32 0
  %164 = load i64, ptr %163, align 4
  %165 = getelementptr inbounds { i64, i32 }, ptr %48, i32 0, i32 1
  %166 = load i32, ptr %165, align 4
  %167 = call { i64, i32 } @TPE_vec3Plus(i64 %160, i32 %162, i64 %164, i32 %166)
  store { i64, i32 } %167, ptr %49, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 8 %49, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %50, ptr align 4 %8, i64 12, i1 false)
  %168 = load { i64, i32 }, ptr %50, align 8
  ret { i64, i32 } %168
}

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

; Function Attrs: nounwind uwtable
declare dso_local { i64, i32 } @TPE_vec3(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @TPE_vec3Len(i64, i32) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @TPE_nonZero(i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local { i64, i32 } @TPE_vec3Minus(i64, i32, i64, i32) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local { i64, i32 } @TPE_vec3Plus(i64, i32, i64, i32) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local { i64, i32 } @TPE_vec3Project(i64, i32, i64, i32) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @TPE_vec3Dot(i64, i32, i64, i32) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local { i64, i32 } @TPE_envInfiniteCylinder(i64, i32, i64, i32, i64, i32, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local { i64, i32 } @TPE_envCylinder(i64 %0, i32 %1, i64 %2, i32 %3, i64 %4, i32 %5, i32 noundef %6) local_unnamed_addr #0 {
  %8 = tail call { i64, i32 } @TPE_vec3Minus(i64 %0, i32 %1, i64 %2, i32 %3)
  %.fca.0.extract70 = extractvalue { i64, i32 } %8, 0
  %.fca.1.extract71 = extractvalue { i64, i32 } %8, 1
  %9 = tail call { i64, i32 } @TPE_vec3Project(i64 %.fca.0.extract70, i32 %.fca.1.extract71, i64 %4, i32 %5)
  %.fca.0.extract59 = extractvalue { i64, i32 } %9, 0
  %.fca.1.extract60 = extractvalue { i64, i32 } %9, 1
  %10 = tail call { i64, i32 } @TPE_vec3(i32 noundef 0, i32 noundef 0, i32 noundef 0)
  %.fca.0.extract51 = extractvalue { i64, i32 } %10, 0
  %.fca.1.extract52 = extractvalue { i64, i32 } %10, 1
  %11 = tail call { i64, i32 } @TPE_envInfiniteCylinder(i64 %.fca.0.extract70, i32 %.fca.1.extract71, i64 %.fca.0.extract51, i32 %.fca.1.extract52, i64 %4, i32 %5, i32 noundef %6)
  %.fca.0.extract41 = extractvalue { i64, i32 } %11, 0
  %.fca.1.extract42 = extractvalue { i64, i32 } %11, 1
  %12 = tail call i32 @TPE_vec3Len(i64 %4, i32 %5)
  %13 = tail call i32 @TPE_nonZero(i32 noundef %12)
  %14 = tail call i32 @TPE_vec3Len(i64 %.fca.0.extract59, i32 %.fca.1.extract60)
  %15 = sub nsw i32 %14, %13
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %17, label %30

17:                                               ; preds = %7
  %.sroa.083.0.extract.trunc = trunc i64 %4 to i32
  %.sroa.9.0.extract.shift = lshr i64 %4, 32
  %.sroa.9.0.extract.trunc = trunc nuw i64 %.sroa.9.0.extract.shift to i32
  %18 = mul nsw i32 %15, %.sroa.083.0.extract.trunc
  %19 = sdiv i32 %18, %13
  %20 = mul nsw i32 %15, %.sroa.9.0.extract.trunc
  %21 = sdiv i32 %20, %13
  %22 = mul nsw i32 %15, %5
  %23 = sdiv i32 %22, %13
  %.sroa.9.0.insert.ext103 = zext i32 %21 to i64
  %.sroa.9.0.insert.shift104 = shl nuw i64 %.sroa.9.0.insert.ext103, 32
  %.sroa.083.0.insert.ext87 = zext i32 %19 to i64
  %.sroa.083.0.insert.insert89 = or disjoint i64 %.sroa.9.0.insert.shift104, %.sroa.083.0.insert.ext87
  %24 = tail call i32 @TPE_vec3Dot(i64 %.fca.0.extract59, i32 %.fca.1.extract60, i64 %.sroa.083.0.insert.insert89, i32 %23)
  %25 = icmp sgt i32 %24, -1
  br i1 %25, label %26, label %28

26:                                               ; preds = %17
  %27 = tail call { i64, i32 } @TPE_vec3Minus(i64 %.fca.0.extract41, i32 %.fca.1.extract42, i64 %.sroa.083.0.insert.insert89, i32 %23)
  %.fca.0.extract16 = extractvalue { i64, i32 } %27, 0
  %.fca.1.extract17 = extractvalue { i64, i32 } %27, 1
  br label %30

28:                                               ; preds = %17
  %29 = tail call { i64, i32 } @TPE_vec3Plus(i64 %.fca.0.extract41, i32 %.fca.1.extract42, i64 %.sroa.083.0.insert.insert89, i32 %23)
  %.fca.0.extract7 = extractvalue { i64, i32 } %29, 0
  %.fca.1.extract8 = extractvalue { i64, i32 } %29, 1
  br label %30

30:                                               ; preds = %26, %28, %7
  %.sroa.0132.0 = phi i64 [ %.fca.0.extract16, %26 ], [ %.fca.0.extract7, %28 ], [ %.fca.0.extract41, %7 ]
  %.sroa.11138.0 = phi i32 [ %.fca.1.extract17, %26 ], [ %.fca.1.extract8, %28 ], [ %.fca.1.extract42, %7 ]
  %31 = tail call { i64, i32 } @TPE_vec3Plus(i64 %2, i32 %3, i64 %.sroa.0132.0, i32 %.sroa.11138.0)
  ret { i64, i32 } %31
}

attributes #0 = { 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 #1 = { inlinehint 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" }

!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)"}


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