; LLVM IR from devlinzhou/deterministic_physics :: UnrealDemo/Source/UnrealDemo/gphysics/src/collision (glacier_contact)

; 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.GVector3 = type { %class.GFloat, %class.GFloat, %class.GFloat }
%class.GFloat = type { i32 }
%class.GManifoldPoint = type <{ %class.GVector3, %class.GVector3, %class.GFloat, i32, i8, [3 x i8] }>
%class.GBroadPhasePair = type <{ i64, i32, [4 x i8], ptr, ptr, %class.GCollisionContact, i8, [7 x i8] }>
%class.GCollisionContact = type { i64, i32, i32, [16 x %class.GManifoldPoint] }
%class.GRigidBody = type <{ %class.GCObject, i8, [3 x i8], %class.GVector3, %class.GFloat, %class.GTransform_QT, %class.GFloat, %class.GFloat, %class.GMatrix3, %class.GMatrix3, %class.GMatrix3, %class.GVector3, %class.GFloat, %class.GFloat, %class.GVector3, %class.GFloat, %class.GFloat, [4 x i8] }>
%class.GCObject = type { ptr, %class.GCollisionShape, i32, i32, %class.GTransform_QT, %class.GTransform_QT, %class.GAABB, %class.GAABB, i32, ptr, i8, i32, %"class.std::set", %"class.std::vector" }
%class.GCollisionShape = type { i32, %class.GVector3, ptr }
%class.GAABB = type { %class.GVector3, %class.GVector3 }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<unsigned int, unsigned int, std::_Identity<unsigned int>, std::less<unsigned int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned int, unsigned int, std::_Identity<unsigned int>, std::less<unsigned int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.GTransform_QT = type { %class.GQuaternion, %class.GVector3 }
%class.GQuaternion = type { %class.GFloat, %class.GFloat, %class.GFloat, %class.GFloat }
%class.GMatrix3 = type { [3 x [3 x %class.GFloat]] }

; 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 nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN8GVector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #1 align 2

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

; Function Attrs: 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 { i64, i32 } @_ZN8GVector34ZeroEv() #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK8GVector3miERKS_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZN5GMath4ZeroEv() #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i32 @_ZNK6GFloatplES_(ptr noundef nonnull align 4 dereferenceable(4), i32) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15GBroadPhasePair12SeparatePairEP10GRigidBodyS1_b(ptr noundef nonnull align 8 dereferenceable(625) %0, ptr noundef %1, ptr noundef %2, i1 noundef zeroext %3) #4 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i8, align 1
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %class.GVector3, align 4
  %12 = alloca { i64, i32 }, align 8
  %13 = alloca %class.GManifoldPoint, align 4
  %14 = alloca %class.GVector3, align 4
  %15 = alloca { i64, i32 }, align 8
  %16 = alloca %class.GVector3, align 4
  %17 = alloca %class.GFloat, align 4
  %18 = alloca { i64, i32 }, align 8
  %19 = alloca %class.GVector3, align 4
  %20 = alloca { i64, i32 }, align 8
  %21 = alloca i32, align 4
  %22 = alloca %class.GManifoldPoint, align 4
  %23 = alloca %class.GVector3, align 4
  %24 = alloca { i64, i32 }, align 8
  %25 = alloca %class.GFloat, align 4
  %26 = alloca i32, align 4
  %27 = alloca %class.GManifoldPoint, align 4
  %28 = alloca %class.GVector3, align 4
  %29 = alloca { i64, i32 }, align 8
  %30 = alloca %class.GFloat, align 4
  %31 = alloca %class.GFloat, align 4
  %32 = alloca %class.GFloat, align 4
  %33 = alloca %class.GFloat, align 4
  %34 = alloca %class.GFloat, align 4
  %35 = alloca %class.GFloat, align 4
  %36 = alloca %class.GFloat, align 4
  %37 = alloca %class.GVector3, align 4
  %38 = alloca %class.GFloat, align 4
  %39 = alloca { i64, i32 }, align 8
  %40 = alloca %class.GFloat, align 4
  %41 = alloca %class.GFloat, align 4
  %42 = alloca %class.GFloat, align 4
  %43 = alloca %class.GFloat, align 4
  %44 = alloca %class.GFloat, align 4
  %45 = alloca %class.GFloat, align 4
  %46 = alloca %class.GVector3, align 4
  %47 = alloca %class.GVector3, align 4
  %48 = alloca %class.GFloat, align 4
  %49 = alloca { i64, i32 }, align 8
  %50 = alloca { i64, i32 }, align 8
  %51 = alloca %class.GVector3, align 4
  %52 = alloca %class.GVector3, align 4
  %53 = alloca %class.GFloat, align 4
  %54 = alloca { i64, i32 }, align 8
  %55 = alloca { i64, i32 }, align 8
  %56 = alloca %class.GVector3, align 4
  %57 = alloca %class.GFloat, align 4
  %58 = alloca { i64, i32 }, align 8
  %59 = alloca %class.GVector3, align 4
  %60 = alloca %class.GFloat, align 4
  %61 = alloca { i64, i32 }, align 8
  %62 = alloca %class.GVector3, align 4
  %63 = alloca { i64, i32 }, align 8
  %64 = alloca %class.GVector3, align 4
  %65 = alloca { i64, i32 }, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %66 = zext i1 %3 to i8
  store i8 %66, ptr %8, align 1, !tbaa !9
  %67 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %68 = getelementptr inbounds %class.GBroadPhasePair, ptr %67, i32 0, i32 5
  %69 = call noundef i32 @_ZNK17GCollisionContact13GetPointCountEv(ptr noundef nonnull align 8 dereferenceable(592) %68)
  store i32 %69, ptr %9, align 4, !tbaa !11
  %70 = load i32, ptr %9, align 4, !tbaa !11
  %71 = icmp sle i32 %70, 0
  br i1 %71, label %72, label %73

72:                                               ; preds = %4
  store i32 1, ptr %10, align 4
  br label %267

73:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #6
  %74 = call { i64, i32 } @_ZN8GVector34ZeroEv()
  store { i64, i32 } %74, ptr %12, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 8 %12, i64 12, i1 false)
  %75 = load i32, ptr %9, align 4, !tbaa !11
  %76 = icmp eq i32 %75, 1
  br i1 %76, label %77, label %94

77:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 36, ptr %13) #6
  %78 = getelementptr inbounds %class.GBroadPhasePair, ptr %67, i32 0, i32 5
  %79 = getelementptr inbounds %class.GCollisionContact, ptr %78, i32 0, i32 3
  %80 = getelementptr inbounds [16 x %class.GManifoldPoint], ptr %79, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 8 %80, i64 36, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #6
  %81 = load i8, ptr %8, align 1, !tbaa !9, !range !14, !noundef !15
  %82 = trunc i8 %81 to i1
  br i1 %82, label %83, label %86

83:                                               ; preds = %77
  %84 = getelementptr inbounds %class.GManifoldPoint, ptr %13, i32 0, i32 1
  %85 = call { i64, i32 } @_ZNK8GVector3ngEv(ptr noundef nonnull align 4 dereferenceable(12) %84)
  store { i64, i32 } %85, ptr %15, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 8 %15, i64 12, i1 false)
  br label %88

86:                                               ; preds = %77
  %87 = getelementptr inbounds %class.GManifoldPoint, ptr %13, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %87, i64 12, i1 false), !tbaa.struct !16
  br label %88

88:                                               ; preds = %86, %83
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #6
  %89 = getelementptr inbounds %class.GManifoldPoint, ptr %13, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %89, i64 4, i1 false), !tbaa.struct !17
  %90 = getelementptr inbounds %class.GFloat, ptr %17, i32 0, i32 0
  %91 = load i32, ptr %90, align 4
  %92 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %14, i32 %91)
  store { i64, i32 } %92, ptr %18, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 8 %18, i64 12, i1 false)
  %93 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN8GVector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %16)
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr %13) #6
  br label %169

94:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #6
  %95 = call { i64, i32 } @_ZN8GVector34ZeroEv()
  store { i64, i32 } %95, ptr %20, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 8 %20, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !11
  br label %96

96:                                               ; preds = %116, %94
  %97 = load i32, ptr %21, align 4, !tbaa !11
  %98 = load i32, ptr %9, align 4, !tbaa !11
  %99 = icmp slt i32 %97, %98
  br i1 %99, label %101, label %100

100:                                              ; preds = %96
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %119

101:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 36, ptr %22) #6
  %102 = getelementptr inbounds %class.GBroadPhasePair, ptr %67, i32 0, i32 5
  %103 = getelementptr inbounds %class.GCollisionContact, ptr %102, i32 0, i32 3
  %104 = load i32, ptr %21, align 4, !tbaa !11
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [16 x %class.GManifoldPoint], ptr %103, i64 0, i64 %105
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %106, i64 36, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 12, ptr %23) #6
  %107 = load i8, ptr %8, align 1, !tbaa !9, !range !14, !noundef !15
  %108 = trunc i8 %107 to i1
  br i1 %108, label %109, label %112

109:                                              ; preds = %101
  %110 = getelementptr inbounds %class.GManifoldPoint, ptr %22, i32 0, i32 1
  %111 = call { i64, i32 } @_ZNK8GVector3ngEv(ptr noundef nonnull align 4 dereferenceable(12) %110)
  store { i64, i32 } %111, ptr %24, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 8 %24, i64 12, i1 false)
  br label %114

112:                                              ; preds = %101
  %113 = getelementptr inbounds %class.GManifoldPoint, ptr %22, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %113, i64 12, i1 false), !tbaa.struct !16
  br label %114

114:                                              ; preds = %112, %109
  %115 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN8GVector3pLERKS_(ptr noundef nonnull align 4 dereferenceable(12) %19, ptr noundef nonnull align 4 dereferenceable(12) %23)
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr %22) #6
  br label %116

116:                                              ; preds = %114
  %117 = load i32, ptr %21, align 4, !tbaa !11
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %21, align 4, !tbaa !11
  br label %96, !llvm.loop !18

119:                                              ; preds = %100
  call void @_ZN8GVector39NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %19)
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %120 = call i32 @_ZN5GMath4ZeroEv()
  %121 = getelementptr inbounds %class.GFloat, ptr %25, i32 0, i32 0
  store i32 %120, ptr %121, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store i32 0, ptr %26, align 4, !tbaa !11
  br label %122

122:                                              ; preds = %161, %119
  %123 = load i32, ptr %26, align 4, !tbaa !11
  %124 = load i32, ptr %9, align 4, !tbaa !11
  %125 = icmp slt i32 %123, %124
  br i1 %125, label %127, label %126

126:                                              ; preds = %122
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %164

127:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 36, ptr %27) #6
  %128 = getelementptr inbounds %class.GBroadPhasePair, ptr %67, i32 0, i32 5
  %129 = getelementptr inbounds %class.GCollisionContact, ptr %128, i32 0, i32 3
  %130 = load i32, ptr %26, align 4, !tbaa !11
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [16 x %class.GManifoldPoint], ptr %129, i64 0, i64 %131
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %132, i64 36, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 12, ptr %28) #6
  %133 = load i8, ptr %8, align 1, !tbaa !9, !range !14, !noundef !15
  %134 = trunc i8 %133 to i1
  br i1 %134, label %135, label %138

135:                                              ; preds = %127
  %136 = getelementptr inbounds %class.GManifoldPoint, ptr %27, i32 0, i32 1
  %137 = call { i64, i32 } @_ZNK8GVector3ngEv(ptr noundef nonnull align 4 dereferenceable(12) %136)
  store { i64, i32 } %137, ptr %29, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 8 %29, i64 12, i1 false)
  br label %140

138:                                              ; preds = %127
  %139 = getelementptr inbounds %class.GManifoldPoint, ptr %27, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %139, i64 12, i1 false), !tbaa.struct !16
  br label %140

140:                                              ; preds = %138, %135
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %141 = call i32 @_ZN8GVector310DotProductERKS_S1_(ptr noundef nonnull align 4 dereferenceable(12) %19, ptr noundef nonnull align 4 dereferenceable(12) %28)
  %142 = getelementptr inbounds %class.GFloat, ptr %30, i32 0, i32 0
  store i32 %141, ptr %142, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %30, i64 4, i1 false), !tbaa.struct !17
  %143 = call i32 @_ZN5GMath7Makef32Eijj(i32 noundef 0, i32 noundef 1, i32 noundef 10)
  %144 = getelementptr inbounds %class.GFloat, ptr %33, i32 0, i32 0
  store i32 %143, ptr %144, align 4
  %145 = getelementptr inbounds %class.GFloat, ptr %32, i32 0, i32 0
  %146 = load i32, ptr %145, align 4
  %147 = getelementptr inbounds %class.GFloat, ptr %33, i32 0, i32 0
  %148 = load i32, ptr %147, align 4
  %149 = call i32 @_ZN5GMath3MaxE6GFloatS0_(i32 %146, i32 %148)
  %150 = getelementptr inbounds %class.GFloat, ptr %31, i32 0, i32 0
  store i32 %149, ptr %150, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  %151 = getelementptr inbounds %class.GManifoldPoint, ptr %27, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 4 %31, i64 4, i1 false), !tbaa.struct !17
  %152 = getelementptr inbounds %class.GFloat, ptr %35, i32 0, i32 0
  %153 = load i32, ptr %152, align 4
  %154 = call i32 @_ZNK6GFloatdvES_(ptr noundef nonnull align 4 dereferenceable(4) %151, i32 %153)
  %155 = getelementptr inbounds %class.GFloat, ptr %34, i32 0, i32 0
  store i32 %154, ptr %155, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 4 %34, i64 4, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 4 %25, i64 4, i1 false), !tbaa.struct !17
  %156 = getelementptr inbounds %class.GFloat, ptr %36, i32 0, i32 0
  %157 = load i32, ptr %156, align 4
  %158 = call noundef zeroext i1 @_ZNK6GFloatltES_(ptr noundef nonnull align 4 dereferenceable(4) %31, i32 %157)
  br i1 %158, label %159, label %160

159:                                              ; preds = %140
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %31, i64 4, i1 false), !tbaa.struct !17
  br label %160

160:                                              ; preds = %159, %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr %27) #6
  br label %161

161:                                              ; preds = %160
  %162 = load i32, ptr %26, align 4, !tbaa !11
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr %26, align 4, !tbaa !11
  br label %122, !llvm.loop !20

164:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 12, ptr %37) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 4 %25, i64 4, i1 false), !tbaa.struct !17
  %165 = getelementptr inbounds %class.GFloat, ptr %38, i32 0, i32 0
  %166 = load i32, ptr %165, align 4
  %167 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %19, i32 %166)
  store { i64, i32 } %167, ptr %39, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 8 %39, i64 12, i1 false)
  %168 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN8GVector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %37)
  call void @llvm.lifetime.end.p0(i64 12, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #6
  br label %169

169:                                              ; preds = %164, %88
  %170 = load ptr, ptr %6, align 8, !tbaa !5
  %171 = icmp ne ptr %170, null
  br i1 %171, label %172, label %232

172:                                              ; preds = %169
  %173 = load ptr, ptr %7, align 8, !tbaa !5
  %174 = icmp ne ptr %173, null
  br i1 %174, label %175, label %232

175:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #6
  %176 = load ptr, ptr %7, align 8, !tbaa !5
  %177 = getelementptr inbounds %class.GRigidBody, ptr %176, i32 0, i32 6
  %178 = load ptr, ptr %6, align 8, !tbaa !5
  %179 = getelementptr inbounds %class.GRigidBody, ptr %178, i32 0, i32 6
  %180 = load ptr, ptr %7, align 8, !tbaa !5
  %181 = getelementptr inbounds %class.GRigidBody, ptr %180, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 8 %181, i64 4, i1 false), !tbaa.struct !17
  %182 = getelementptr inbounds %class.GFloat, ptr %42, i32 0, i32 0
  %183 = load i32, ptr %182, align 4
  %184 = call i32 @_ZNK6GFloatplES_(ptr noundef nonnull align 4 dereferenceable(4) %179, i32 %183)
  %185 = getelementptr inbounds %class.GFloat, ptr %41, i32 0, i32 0
  store i32 %184, ptr %185, align 4
  %186 = getelementptr inbounds %class.GFloat, ptr %41, i32 0, i32 0
  %187 = load i32, ptr %186, align 4
  %188 = call i32 @_ZNK6GFloatdvES_(ptr noundef nonnull align 4 dereferenceable(4) %177, i32 %187)
  %189 = getelementptr inbounds %class.GFloat, ptr %40, i32 0, i32 0
  store i32 %188, ptr %189, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #6
  %190 = call i32 @_ZN5GMath3OneEv()
  %191 = getelementptr inbounds %class.GFloat, ptr %44, i32 0, i32 0
  store i32 %190, ptr %191, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %45, ptr align 4 %40, i64 4, i1 false), !tbaa.struct !17
  %192 = getelementptr inbounds %class.GFloat, ptr %45, i32 0, i32 0
  %193 = load i32, ptr %192, align 4
  %194 = call i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4) %44, i32 %193)
  %195 = getelementptr inbounds %class.GFloat, ptr %43, i32 0, i32 0
  store i32 %194, ptr %195, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %46) #6
  %196 = load ptr, ptr %6, align 8, !tbaa !5
  %197 = getelementptr inbounds %class.GCObject, ptr %196, i32 0, i32 5
  %198 = getelementptr inbounds %class.GTransform_QT, ptr %197, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 12, ptr %47) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %48, ptr align 4 %40, i64 4, i1 false), !tbaa.struct !17
  %199 = getelementptr inbounds %class.GFloat, ptr %48, i32 0, i32 0
  %200 = load i32, ptr %199, align 4
  %201 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 %200)
  store { i64, i32 } %201, ptr %49, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %47, ptr align 8 %49, i64 12, i1 false)
  %202 = call { i64, i32 } @_ZNK8GVector3miERKS_(ptr noundef nonnull align 4 dereferenceable(12) %198, ptr noundef nonnull align 4 dereferenceable(12) %47)
  store { i64, i32 } %202, ptr %50, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %46, ptr align 8 %50, i64 12, i1 false)
  %203 = load ptr, ptr %6, align 8, !tbaa !5
  %204 = getelementptr inbounds %class.GRigidBody, ptr %203, i32 0, i32 5
  %205 = getelementptr inbounds %class.GTransform_QT, ptr %204, i32 0, i32 1
  %206 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN8GVector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %205, ptr noundef nonnull align 4 dereferenceable(12) %46)
  call void @llvm.lifetime.end.p0(i64 12, ptr %47) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %46) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %51) #6
  %207 = load ptr, ptr %7, align 8, !tbaa !5
  %208 = getelementptr inbounds %class.GCObject, ptr %207, i32 0, i32 5
  %209 = getelementptr inbounds %class.GTransform_QT, ptr %208, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 12, ptr %52) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %53, ptr align 4 %43, i64 4, i1 false), !tbaa.struct !17
  %210 = getelementptr inbounds %class.GFloat, ptr %53, i32 0, i32 0
  %211 = load i32, ptr %210, align 4
  %212 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 %211)
  store { i64, i32 } %212, ptr %54, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %52, ptr align 8 %54, i64 12, i1 false)
  %213 = call { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12) %209, ptr noundef nonnull align 4 dereferenceable(12) %52)
  store { i64, i32 } %213, ptr %55, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %51, ptr align 8 %55, i64 12, i1 false)
  %214 = load ptr, ptr %7, align 8, !tbaa !5
  %215 = getelementptr inbounds %class.GRigidBody, ptr %214, i32 0, i32 5
  %216 = getelementptr inbounds %class.GTransform_QT, ptr %215, i32 0, i32 1
  %217 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN8GVector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %216, ptr noundef nonnull align 4 dereferenceable(12) %51)
  call void @llvm.lifetime.end.p0(i64 12, ptr %52) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %51) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %56) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %57, ptr align 4 %40, i64 4, i1 false), !tbaa.struct !17
  %218 = getelementptr inbounds %class.GFloat, ptr %57, i32 0, i32 0
  %219 = load i32, ptr %218, align 4
  %220 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 %219)
  store { i64, i32 } %220, ptr %58, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %56, ptr align 8 %58, i64 12, i1 false)
  %221 = load ptr, ptr %6, align 8, !tbaa !5
  %222 = getelementptr inbounds %class.GCObject, ptr %221, i32 0, i32 5
  %223 = getelementptr inbounds %class.GTransform_QT, ptr %222, i32 0, i32 1
  %224 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN8GVector3mIERKS_(ptr noundef nonnull align 4 dereferenceable(12) %223, ptr noundef nonnull align 4 dereferenceable(12) %56)
  call void @llvm.lifetime.end.p0(i64 12, ptr %56) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %59) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %60, ptr align 4 %43, i64 4, i1 false), !tbaa.struct !17
  %225 = getelementptr inbounds %class.GFloat, ptr %60, i32 0, i32 0
  %226 = load i32, ptr %225, align 4
  %227 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 %226)
  store { i64, i32 } %227, ptr %61, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %59, ptr align 8 %61, i64 12, i1 false)
  %228 = load ptr, ptr %7, align 8, !tbaa !5
  %229 = getelementptr inbounds %class.GCObject, ptr %228, i32 0, i32 5
  %230 = getelementptr inbounds %class.GTransform_QT, ptr %229, i32 0, i32 1
  %231 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN8GVector3pLERKS_(ptr noundef nonnull align 4 dereferenceable(12) %230, ptr noundef nonnull align 4 dereferenceable(12) %59)
  call void @llvm.lifetime.end.p0(i64 12, ptr %59) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #6
  br label %266

232:                                              ; preds = %172, %169
  %233 = load ptr, ptr %6, align 8, !tbaa !5
  %234 = icmp ne ptr %233, null
  br i1 %234, label %235, label %248

235:                                              ; preds = %232
  call void @llvm.lifetime.start.p0(i64 12, ptr %62) #6
  %236 = load ptr, ptr %6, align 8, !tbaa !5
  %237 = getelementptr inbounds %class.GCObject, ptr %236, i32 0, i32 5
  %238 = getelementptr inbounds %class.GTransform_QT, ptr %237, i32 0, i32 1
  %239 = call { i64, i32 } @_ZNK8GVector3miERKS_(ptr noundef nonnull align 4 dereferenceable(12) %238, ptr noundef nonnull align 4 dereferenceable(12) %11)
  store { i64, i32 } %239, ptr %63, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %62, ptr align 8 %63, i64 12, i1 false)
  %240 = load ptr, ptr %6, align 8, !tbaa !5
  %241 = getelementptr inbounds %class.GRigidBody, ptr %240, i32 0, i32 5
  %242 = getelementptr inbounds %class.GTransform_QT, ptr %241, i32 0, i32 1
  %243 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN8GVector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %242, ptr noundef nonnull align 4 dereferenceable(12) %62)
  call void @llvm.lifetime.end.p0(i64 12, ptr %62) #6
  %244 = load ptr, ptr %6, align 8, !tbaa !5
  %245 = getelementptr inbounds %class.GCObject, ptr %244, i32 0, i32 5
  %246 = getelementptr inbounds %class.GTransform_QT, ptr %245, i32 0, i32 1
  %247 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN8GVector3mIERKS_(ptr noundef nonnull align 4 dereferenceable(12) %246, ptr noundef nonnull align 4 dereferenceable(12) %11)
  br label %265

248:                                              ; preds = %232
  %249 = load ptr, ptr %7, align 8, !tbaa !5
  %250 = icmp ne ptr %249, null
  br i1 %250, label %251, label %264

251:                                              ; preds = %248
  call void @llvm.lifetime.start.p0(i64 12, ptr %64) #6
  %252 = load ptr, ptr %7, align 8, !tbaa !5
  %253 = getelementptr inbounds %class.GCObject, ptr %252, i32 0, i32 5
  %254 = getelementptr inbounds %class.GTransform_QT, ptr %253, i32 0, i32 1
  %255 = call { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12) %254, ptr noundef nonnull align 4 dereferenceable(12) %11)
  store { i64, i32 } %255, ptr %65, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %64, ptr align 8 %65, i64 12, i1 false)
  %256 = load ptr, ptr %7, align 8, !tbaa !5
  %257 = getelementptr inbounds %class.GRigidBody, ptr %256, i32 0, i32 5
  %258 = getelementptr inbounds %class.GTransform_QT, ptr %257, i32 0, i32 1
  %259 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN8GVector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %258, ptr noundef nonnull align 4 dereferenceable(12) %64)
  call void @llvm.lifetime.end.p0(i64 12, ptr %64) #6
  %260 = load ptr, ptr %7, align 8, !tbaa !5
  %261 = getelementptr inbounds %class.GCObject, ptr %260, i32 0, i32 5
  %262 = getelementptr inbounds %class.GTransform_QT, ptr %261, i32 0, i32 1
  %263 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN8GVector3pLERKS_(ptr noundef nonnull align 4 dereferenceable(12) %262, ptr noundef nonnull align 4 dereferenceable(12) %11)
  br label %264

264:                                              ; preds = %251, %248
  br label %265

265:                                              ; preds = %264, %235
  br label %266

266:                                              ; preds = %265, %175
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #6
  store i32 0, ptr %10, align 4
  br label %267

267:                                              ; preds = %266, %72
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  %268 = load i32, ptr %10, align 4
  switch i32 %268, label %270 [
    i32 0, label %269
    i32 1, label %269
  ]

269:                                              ; preds = %267, %267
  ret void

270:                                              ; preds = %267
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK17GCollisionContact13GetPointCountEv(ptr noundef nonnull align 8 dereferenceable(592)) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK8GVector3ngEv(ptr noundef nonnull align 4 dereferenceable(12)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12), i32) #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8GVector39NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i32 @_ZN8GVector310DotProductERKS_S1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i32 @_ZN5GMath3MaxE6GFloatS0_(i32, i32) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i32 @_ZN5GMath7Makef32Eijj(i32 noundef, i32 noundef, i32 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i32 @_ZNK6GFloatdvES_(ptr noundef nonnull align 4 dereferenceable(4), i32) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK6GFloatltES_(ptr noundef nonnull align 4 dereferenceable(4), i32) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZN5GMath3OneEv() #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4), i32) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #3 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 = { 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{i64 0, i64 4, !11, i64 4, i64 4, !11, i64 8, i64 4, !11, i64 12, i64 4, !11, i64 16, i64 4, !11, i64 20, i64 4, !11, i64 24, i64 4, !11, i64 28, i64 4, !11, i64 32, i64 1, !9}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{i64 0, i64 4, !11, i64 4, i64 4, !11, i64 8, i64 4, !11}
!17 = !{i64 0, i64 4, !11}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}


; 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.GVector3 = type { %class.GFloat, %class.GFloat, %class.GFloat }
%class.GFloat = type { i32 }
%class.GManifoldPoint = type <{ %class.GVector3, %class.GVector3, %class.GFloat, i32, i8, [3 x i8] }>

; 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 nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN8GVector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #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: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZN8GVector34ZeroEv() local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK8GVector3miERKS_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZN5GMath4ZeroEv() local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i32 @_ZNK6GFloatplES_(ptr noundef nonnull align 4 dereferenceable(4), i32) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15GBroadPhasePair12SeparatePairEP10GRigidBodyS1_b(ptr noundef nonnull align 8 dereferenceable(625) %0, ptr noundef %1, ptr noundef %2, i1 noundef zeroext %3) local_unnamed_addr #4 align 2 {
  %5 = alloca %class.GVector3, align 8
  %6 = alloca %class.GManifoldPoint, align 4
  %7 = alloca %class.GVector3, align 8
  %8 = alloca %class.GVector3, align 8
  %9 = alloca %class.GVector3, align 8
  %10 = alloca %class.GManifoldPoint, align 4
  %11 = alloca %class.GVector3, align 8
  %12 = alloca %class.GManifoldPoint, align 4
  %13 = alloca %class.GVector3, align 8
  %14 = alloca %class.GFloat, align 4
  %15 = alloca %class.GVector3, align 8
  %16 = alloca %class.GFloat, align 4
  %17 = alloca %class.GVector3, align 8
  %18 = alloca %class.GVector3, align 8
  %19 = alloca %class.GVector3, align 8
  %20 = alloca %class.GVector3, align 8
  %21 = alloca %class.GVector3, align 8
  %22 = alloca %class.GVector3, align 8
  %23 = alloca %class.GVector3, align 8
  %24 = alloca %class.GVector3, align 8
  %25 = getelementptr inbounds i8, ptr %0, i64 32
  %26 = tail call noundef i32 @_ZNK17GCollisionContact13GetPointCountEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
  %27 = icmp slt i32 %26, 1
  br i1 %27, label %108, label %28

28:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #7
  %29 = tail call { i64, i32 } @_ZN8GVector34ZeroEv()
  %.fca.0.extract81 = extractvalue { i64, i32 } %29, 0
  %.fca.1.extract82 = extractvalue { i64, i32 } %29, 1
  store i64 %.fca.0.extract81, ptr %5, align 8
  %.sroa.284.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 8
  store i32 %.fca.1.extract82, ptr %.sroa.284.0..sroa_idx, align 8
  %30 = icmp eq i32 %26, 1
  br i1 %30, label %31, label %.lr.ph

31:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %6) #7
  %32 = getelementptr inbounds i8, ptr %0, i64 48
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(36) %6, ptr noundef nonnull align 8 dereferenceable(36) %32, i64 36, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #7
  br i1 %3, label %33, label %36

33:                                               ; preds = %31
  %34 = getelementptr inbounds i8, ptr %6, i64 12
  %35 = call { i64, i32 } @_ZNK8GVector3ngEv(ptr noundef nonnull align 4 dereferenceable(12) %34)
  %.fca.0.extract77 = extractvalue { i64, i32 } %35, 0
  %.fca.1.extract78 = extractvalue { i64, i32 } %35, 1
  store i64 %.fca.0.extract77, ptr %7, align 8
  %.sroa.280.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  store i32 %.fca.1.extract78, ptr %.sroa.280.0..sroa_idx, align 8
  br label %38

36:                                               ; preds = %31
  %37 = getelementptr inbounds i8, ptr %0, i64 60
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %37, i64 12, i1 false)
  br label %38

38:                                               ; preds = %36, %33
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #7
  %39 = getelementptr inbounds i8, ptr %6, i64 24
  %.sroa.076.0.copyload = load i32, ptr %39, align 4, !tbaa !6
  %40 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %7, i32 %.sroa.076.0.copyload)
  %.fca.0.extract72 = extractvalue { i64, i32 } %40, 0
  %.fca.1.extract73 = extractvalue { i64, i32 } %40, 1
  store i64 %.fca.0.extract72, ptr %8, align 8
  %.sroa.275.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  store i32 %.fca.1.extract73, ptr %.sroa.275.0..sroa_idx, align 8
  %41 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN8GVector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %8)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %6) #7
  br label %69

.lr.ph:                                           ; preds = %28
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #7
  %42 = tail call { i64, i32 } @_ZN8GVector34ZeroEv()
  %.fca.0.extract68 = extractvalue { i64, i32 } %42, 0
  %.fca.1.extract69 = extractvalue { i64, i32 } %42, 1
  store i64 %.fca.0.extract68, ptr %9, align 8
  %.sroa.271.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  store i32 %.fca.1.extract69, ptr %.sroa.271.0..sroa_idx, align 8
  %43 = getelementptr inbounds i8, ptr %0, i64 48
  %44 = getelementptr inbounds i8, ptr %10, i64 12
  %.sroa.264.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 8
  %wide.trip.count128 = zext nneg i32 %26 to i64
  br i1 %3, label %.lr.ph.split.us, label %.lr.ph.split.preheader

.lr.ph.split.preheader:                           ; preds = %.lr.ph
  %invariant.gep = getelementptr inbounds i8, ptr %0, i64 60
  br label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %.lr.ph.split.us
  %indvars.iv125 = phi i64 [ %indvars.iv.next126, %.lr.ph.split.us ], [ 0, %.lr.ph ]
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %10) #7
  %45 = getelementptr inbounds [16 x %class.GManifoldPoint], ptr %43, i64 0, i64 %indvars.iv125
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(36) %10, ptr noundef nonnull align 4 dereferenceable(36) %45, i64 36, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #7
  %46 = call { i64, i32 } @_ZNK8GVector3ngEv(ptr noundef nonnull align 4 dereferenceable(12) %44)
  %.fca.0.extract61.us = extractvalue { i64, i32 } %46, 0
  %.fca.1.extract62.us = extractvalue { i64, i32 } %46, 1
  store i64 %.fca.0.extract61.us, ptr %11, align 8
  store i32 %.fca.1.extract62.us, ptr %.sroa.264.0..sroa_idx, align 8
  %47 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN8GVector3pLERKS_(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %11)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %10) #7
  %indvars.iv.next126 = add nuw nsw i64 %indvars.iv125, 1
  %exitcond129.not = icmp eq i64 %indvars.iv.next126, %wide.trip.count128
  br i1 %exitcond129.not, label %.lr.ph120, label %.lr.ph.split.us, !llvm.loop !12

.lr.ph120:                                        ; preds = %.lr.ph.split, %.lr.ph.split.us
  call void @_ZN8GVector39NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %9)
  %48 = call i32 @_ZN5GMath4ZeroEv()
  %49 = getelementptr inbounds i8, ptr %0, i64 48
  %50 = getelementptr inbounds i8, ptr %12, i64 12
  %.sroa.256.0..sroa_idx = getelementptr inbounds i8, ptr %13, i64 8
  %51 = getelementptr inbounds i8, ptr %12, i64 24
  %smax138 = call i32 @llvm.smax.i32(i32 %26, i32 1)
  %wide.trip.count139 = zext nneg i32 %smax138 to i64
  br i1 %3, label %.lr.ph120.split.us, label %.lr.ph120.split

.lr.ph120.split.us:                               ; preds = %.lr.ph120, %.lr.ph120.split.us
  %indvars.iv135 = phi i64 [ %indvars.iv.next136, %.lr.ph120.split.us ], [ 0, %.lr.ph120 ]
  %.sroa.059.0118.us = phi i32 [ %spec.select.us, %.lr.ph120.split.us ], [ %48, %.lr.ph120 ]
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %12) #7
  %52 = getelementptr inbounds [16 x %class.GManifoldPoint], ptr %49, i64 0, i64 %indvars.iv135
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(36) %12, ptr noundef nonnull align 4 dereferenceable(36) %52, i64 36, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #7
  %53 = call { i64, i32 } @_ZNK8GVector3ngEv(ptr noundef nonnull align 4 dereferenceable(12) %50)
  %.fca.0.extract53.us = extractvalue { i64, i32 } %53, 0
  %.fca.1.extract54.us = extractvalue { i64, i32 } %53, 1
  store i64 %.fca.0.extract53.us, ptr %13, align 8
  store i32 %.fca.1.extract54.us, ptr %.sroa.256.0..sroa_idx, align 8
  %54 = call i32 @_ZN8GVector310DotProductERKS_S1_(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %13)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #7
  %55 = call i32 @_ZN5GMath7Makef32Eijj(i32 noundef 0, i32 noundef 1, i32 noundef 10)
  %56 = call i32 @_ZN5GMath3MaxE6GFloatS0_(i32 %54, i32 %55)
  store i32 %56, ptr %14, align 4
  %57 = call i32 @_ZNK6GFloatdvES_(ptr noundef nonnull align 4 dereferenceable(4) %51, i32 %56)
  store i32 %57, ptr %14, align 4, !tbaa !6
  %58 = call noundef zeroext i1 @_ZNK6GFloatltES_(ptr noundef nonnull align 4 dereferenceable(4) %14, i32 %.sroa.059.0118.us)
  %.sroa.059.0.copyload.us = load i32, ptr %14, align 4
  %spec.select.us = select i1 %58, i32 %.sroa.059.0.copyload.us, i32 %.sroa.059.0118.us
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %12) #7
  %indvars.iv.next136 = add nuw nsw i64 %indvars.iv135, 1
  %exitcond140.not = icmp eq i64 %indvars.iv.next136, %wide.trip.count139
  br i1 %exitcond140.not, label %._crit_edge121, label %.lr.ph120.split.us, !llvm.loop !14

.lr.ph.split:                                     ; preds = %.lr.ph.split.preheader, %.lr.ph.split
  %indvars.iv = phi i64 [ 0, %.lr.ph.split.preheader ], [ %indvars.iv.next, %.lr.ph.split ]
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #7
  %gep = getelementptr inbounds [16 x %class.GManifoldPoint], ptr %invariant.gep, i64 0, i64 %indvars.iv
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %gep, i64 12, i1 false)
  %59 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN8GVector3pLERKS_(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %11)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %10) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count128
  br i1 %exitcond.not, label %.lr.ph120, label %.lr.ph.split, !llvm.loop !12

._crit_edge121:                                   ; preds = %.lr.ph120.split, %.lr.ph120.split.us
  %.sroa.059.0.lcssa = phi i32 [ %spec.select.us, %.lr.ph120.split.us ], [ %spec.select, %.lr.ph120.split ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #7
  %60 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %9, i32 %.sroa.059.0.lcssa)
  %.fca.0.extract42 = extractvalue { i64, i32 } %60, 0
  %.fca.1.extract43 = extractvalue { i64, i32 } %60, 1
  store i64 %.fca.0.extract42, ptr %15, align 8
  %.sroa.245.0..sroa_idx = getelementptr inbounds i8, ptr %15, i64 8
  store i32 %.fca.1.extract43, ptr %.sroa.245.0..sroa_idx, align 8
  %61 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN8GVector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %15)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #7
  br label %69

.lr.ph120.split:                                  ; preds = %.lr.ph120, %.lr.ph120.split
  %indvars.iv130 = phi i64 [ %indvars.iv.next131, %.lr.ph120.split ], [ 0, %.lr.ph120 ]
  %.sroa.059.0118 = phi i32 [ %spec.select, %.lr.ph120.split ], [ %48, %.lr.ph120 ]
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %12) #7
  %62 = getelementptr inbounds [16 x %class.GManifoldPoint], ptr %49, i64 0, i64 %indvars.iv130
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(36) %12, ptr noundef nonnull align 4 dereferenceable(36) %62, i64 36, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #7
  %63 = getelementptr inbounds i8, ptr %62, i64 12
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %13, ptr noundef nonnull align 4 dereferenceable(12) %63, i64 12, i1 false)
  %64 = call i32 @_ZN8GVector310DotProductERKS_S1_(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %13)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #7
  %65 = call i32 @_ZN5GMath7Makef32Eijj(i32 noundef 0, i32 noundef 1, i32 noundef 10)
  %66 = call i32 @_ZN5GMath3MaxE6GFloatS0_(i32 %64, i32 %65)
  store i32 %66, ptr %14, align 4
  %67 = call i32 @_ZNK6GFloatdvES_(ptr noundef nonnull align 4 dereferenceable(4) %51, i32 %66)
  store i32 %67, ptr %14, align 4, !tbaa !6
  %68 = call noundef zeroext i1 @_ZNK6GFloatltES_(ptr noundef nonnull align 4 dereferenceable(4) %14, i32 %.sroa.059.0118)
  %.sroa.059.0.copyload = load i32, ptr %14, align 4
  %spec.select = select i1 %68, i32 %.sroa.059.0.copyload, i32 %.sroa.059.0118
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %12) #7
  %indvars.iv.next131 = add nuw nsw i64 %indvars.iv130, 1
  %exitcond134.not = icmp eq i64 %indvars.iv.next131, %wide.trip.count139
  br i1 %exitcond134.not, label %._crit_edge121, label %.lr.ph120.split, !llvm.loop !14

69:                                               ; preds = %._crit_edge121, %38
  %70 = icmp ne ptr %1, null
  %71 = icmp ne ptr %2, null
  %or.cond = and i1 %70, %71
  br i1 %or.cond, label %72, label %93

72:                                               ; preds = %69
  %73 = getelementptr inbounds i8, ptr %2, i64 288
  %74 = getelementptr inbounds i8, ptr %1, i64 288
  %.sroa.037.0.copyload = load i32, ptr %73, align 8, !tbaa !6
  %75 = call i32 @_ZNK6GFloatplES_(ptr noundef nonnull align 4 dereferenceable(4) %74, i32 %.sroa.037.0.copyload)
  %76 = call i32 @_ZNK6GFloatdvES_(ptr noundef nonnull align 4 dereferenceable(4) %73, i32 %75)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #7
  %77 = call i32 @_ZN5GMath3OneEv()
  store i32 %77, ptr %16, align 4
  %78 = call i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4) %16, i32 %76)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %17) #7
  %79 = getelementptr inbounds i8, ptr %1, i64 84
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %18) #7
  %80 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 %76)
  %.fca.0.extract29 = extractvalue { i64, i32 } %80, 0
  %.fca.1.extract30 = extractvalue { i64, i32 } %80, 1
  store i64 %.fca.0.extract29, ptr %18, align 8
  %.sroa.232.0..sroa_idx = getelementptr inbounds i8, ptr %18, i64 8
  store i32 %.fca.1.extract30, ptr %.sroa.232.0..sroa_idx, align 8
  %81 = call { i64, i32 } @_ZNK8GVector3miERKS_(ptr noundef nonnull align 4 dereferenceable(12) %79, ptr noundef nonnull align 4 dereferenceable(12) %18)
  %.fca.0.extract25 = extractvalue { i64, i32 } %81, 0
  %.fca.1.extract26 = extractvalue { i64, i32 } %81, 1
  store i64 %.fca.0.extract25, ptr %17, align 8
  %.sroa.228.0..sroa_idx = getelementptr inbounds i8, ptr %17, i64 8
  store i32 %.fca.1.extract26, ptr %.sroa.228.0..sroa_idx, align 8
  %82 = getelementptr inbounds i8, ptr %1, i64 276
  %83 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN8GVector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %82, ptr noundef nonnull align 4 dereferenceable(12) %17)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %19) #7
  %84 = getelementptr inbounds i8, ptr %2, i64 84
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %20) #7
  %85 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 %78)
  %.fca.0.extract20 = extractvalue { i64, i32 } %85, 0
  %.fca.1.extract21 = extractvalue { i64, i32 } %85, 1
  store i64 %.fca.0.extract20, ptr %20, align 8
  %.sroa.223.0..sroa_idx = getelementptr inbounds i8, ptr %20, i64 8
  store i32 %.fca.1.extract21, ptr %.sroa.223.0..sroa_idx, align 8
  %86 = call { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12) %84, ptr noundef nonnull align 4 dereferenceable(12) %20)
  %.fca.0.extract16 = extractvalue { i64, i32 } %86, 0
  %.fca.1.extract17 = extractvalue { i64, i32 } %86, 1
  store i64 %.fca.0.extract16, ptr %19, align 8
  %.sroa.219.0..sroa_idx = getelementptr inbounds i8, ptr %19, i64 8
  store i32 %.fca.1.extract17, ptr %.sroa.219.0..sroa_idx, align 8
  %87 = getelementptr inbounds i8, ptr %2, i64 276
  %88 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN8GVector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %87, ptr noundef nonnull align 4 dereferenceable(12) %19)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %19) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %21) #7
  %89 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 %76)
  %.fca.0.extract11 = extractvalue { i64, i32 } %89, 0
  %.fca.1.extract12 = extractvalue { i64, i32 } %89, 1
  store i64 %.fca.0.extract11, ptr %21, align 8
  %.sroa.214.0..sroa_idx = getelementptr inbounds i8, ptr %21, i64 8
  store i32 %.fca.1.extract12, ptr %.sroa.214.0..sroa_idx, align 8
  %90 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN8GVector3mIERKS_(ptr noundef nonnull align 4 dereferenceable(12) %79, ptr noundef nonnull align 4 dereferenceable(12) %21)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %21) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %22) #7
  %91 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 %78)
  %.fca.0.extract6 = extractvalue { i64, i32 } %91, 0
  %.fca.1.extract7 = extractvalue { i64, i32 } %91, 1
  store i64 %.fca.0.extract6, ptr %22, align 8
  %.sroa.29.0..sroa_idx = getelementptr inbounds i8, ptr %22, i64 8
  store i32 %.fca.1.extract7, ptr %.sroa.29.0..sroa_idx, align 8
  %92 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN8GVector3pLERKS_(ptr noundef nonnull align 4 dereferenceable(12) %84, ptr noundef nonnull align 4 dereferenceable(12) %22)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #7
  br label %107

93:                                               ; preds = %69
  br i1 %70, label %94, label %100

94:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %23) #7
  %95 = getelementptr inbounds i8, ptr %1, i64 84
  %96 = call { i64, i32 } @_ZNK8GVector3miERKS_(ptr noundef nonnull align 4 dereferenceable(12) %95, ptr noundef nonnull align 4 dereferenceable(12) %5)
  %.fca.0.extract2 = extractvalue { i64, i32 } %96, 0
  %.fca.1.extract3 = extractvalue { i64, i32 } %96, 1
  store i64 %.fca.0.extract2, ptr %23, align 8
  %.sroa.25.0..sroa_idx = getelementptr inbounds i8, ptr %23, i64 8
  store i32 %.fca.1.extract3, ptr %.sroa.25.0..sroa_idx, align 8
  %97 = getelementptr inbounds i8, ptr %1, i64 276
  %98 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN8GVector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %97, ptr noundef nonnull align 4 dereferenceable(12) %23)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %23) #7
  %99 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN8GVector3mIERKS_(ptr noundef nonnull align 4 dereferenceable(12) %95, ptr noundef nonnull align 4 dereferenceable(12) %5)
  br label %107

100:                                              ; preds = %93
  br i1 %71, label %101, label %107

101:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %24) #7
  %102 = getelementptr inbounds i8, ptr %2, i64 84
  %103 = call { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12) %102, ptr noundef nonnull align 4 dereferenceable(12) %5)
  %.fca.0.extract = extractvalue { i64, i32 } %103, 0
  %.fca.1.extract = extractvalue { i64, i32 } %103, 1
  store i64 %.fca.0.extract, ptr %24, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %24, i64 8
  store i32 %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  %104 = getelementptr inbounds i8, ptr %2, i64 276
  %105 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN8GVector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %104, ptr noundef nonnull align 4 dereferenceable(12) %24)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %24) #7
  %106 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN8GVector3pLERKS_(ptr noundef nonnull align 4 dereferenceable(12) %102, ptr noundef nonnull align 4 dereferenceable(12) %5)
  br label %107

107:                                              ; preds = %94, %101, %100, %72
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #7
  br label %108

108:                                              ; preds = %4, %107
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK17GCollisionContact13GetPointCountEv(ptr noundef nonnull align 8 dereferenceable(592)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK8GVector3ngEv(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12), i32) local_unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8GVector39NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i32 @_ZN8GVector310DotProductERKS_S1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i32 @_ZN5GMath3MaxE6GFloatS0_(i32, i32) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i32 @_ZN5GMath7Makef32Eijj(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i32 @_ZNK6GFloatdvES_(ptr noundef nonnull align 4 dereferenceable(4), i32) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK6GFloatltES_(ptr noundef nonnull align 4 dereferenceable(4), i32) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZN5GMath3OneEv() local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4), i32) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #3 align 2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{i64 0, i64 4, !6, i64 4, i64 4, !6, i64 8, i64 4, !6, i64 12, i64 4, !6, i64 16, i64 4, !6, i64 20, i64 4, !6, i64 24, i64 4, !6, i64 28, i64 4, !6, i64 32, i64 1, !10}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


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