; LLVM IR from ClementineAccount/Albuquerque :: lib/bullet/include/Bullet3Collision/NarrowPhaseCollision (b3CpuNarrowPhase)

; 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.b3ConvexPolyhedronData = type { %class.b3Vector3, %class.b3Vector3, %class.b3Vector3, %class.b3Vector3, float, i32, i32, i32, i32, i32, i32, i32 }
%class.b3Vector3 = type { %union.anon.18 }
%union.anon.18 = type { [4 x float] }
%struct.b3GpuFace = type { %class.b3Vector3, i32, i32, i32, i32 }
%class.b3CpuNarrowPhase = type <{ ptr, ptr, i32, i32, i32, [4 x i8] }>
%struct.b3CpuNarrowPhaseInternalData = type { %class.b3AlignedObjectArray, %class.b3AlignedObjectArray.0, %class.b3AlignedObjectArray.2, %struct.b3Config, %class.b3AlignedObjectArray.4, %class.b3AlignedObjectArray.6, %class.b3AlignedObjectArray.6, %class.b3AlignedObjectArray.8, %class.b3AlignedObjectArray.10, %class.b3AlignedObjectArray.12, i32, [4 x i8] }
%class.b3AlignedObjectArray = type <{ [4 x i8], i32, i32, [4 x i8], ptr, i8, [7 x i8] }>
%class.b3AlignedObjectArray.0 = type <{ [4 x i8], i32, i32, [4 x i8], ptr, i8, [7 x i8] }>
%class.b3AlignedObjectArray.2 = type <{ [4 x i8], i32, i32, [4 x i8], ptr, i8, [7 x i8] }>
%struct.b3Config = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%class.b3AlignedObjectArray.4 = type <{ [4 x i8], i32, i32, [4 x i8], ptr, i8, [7 x i8] }>
%class.b3AlignedObjectArray.6 = type <{ [4 x i8], i32, i32, [4 x i8], ptr, i8, [7 x i8] }>
%class.b3AlignedObjectArray.8 = type <{ [4 x i8], i32, i32, [4 x i8], ptr, i8, [7 x i8] }>
%class.b3AlignedObjectArray.10 = type <{ [4 x i8], i32, i32, [4 x i8], ptr, i8, [7 x i8] }>
%class.b3AlignedObjectArray.12 = type <{ [4 x i8], i32, i32, [4 x i8], ptr, i8, [7 x i8] }>
%class.b3ConvexUtility = type { ptr, [8 x i8], %class.b3Vector3, %class.b3Vector3, %class.b3Vector3, %class.b3Vector3, float, [4 x i8], %class.b3AlignedObjectArray.6, %class.b3AlignedObjectArray.26, %class.b3AlignedObjectArray.6, [8 x i8] }
%class.b3AlignedObjectArray.26 = type <{ [4 x i8], i32, i32, [4 x i8], ptr, i8, [7 x i8] }>
%struct.b3MyFace = type { %class.b3AlignedObjectArray.8, [4 x float] }

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK20b3AlignedObjectArrayI9b3Vector3E4sizeEv(ptr noundef nonnull align 8 dereferenceable(25)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI9b3Vector3EixEi(ptr noundef nonnull align 8 dereferenceable(25), i32 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN16b3CpuNarrowPhase31registerConvexHullShapeInternalEP15b3ConvexUtilityR12b3Collidable(ptr noundef nonnull align 8 dereferenceable(28) %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(16) %2) #4 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %struct.b3ConvexPolyhedronData, align 16
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %class.b3Vector3, align 16
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %struct.b3GpuFace, align 16
  %15 = alloca %class.b3Vector3, align 16
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %class.b3Vector3, align 16
  %22 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %23 = load ptr, ptr %4, align 8
  %24 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %23, i32 0, i32 1
  %25 = load ptr, ptr %24, align 8, !tbaa !9
  %26 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %25, i32 0, i32 2
  %27 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %23, i32 0, i32 1
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  %29 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %28, i32 0, i32 10
  %30 = load i32, ptr %29, align 8, !tbaa !12
  %31 = add nsw i32 %30, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store ptr null, ptr %7, align 8, !tbaa !5
  call void @_ZN20b3AlignedObjectArrayIP15b3ConvexUtilityE6resizeEiRKS1_(ptr noundef nonnull align 8 dereferenceable(25) %26, i32 noundef %31, ptr noundef nonnull align 8 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  %32 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %23, i32 0, i32 1
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  %34 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %33, i32 0, i32 4
  %35 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %23, i32 0, i32 1
  %36 = load ptr, ptr %35, align 8, !tbaa !9
  %37 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %36, i32 0, i32 10
  %38 = load i32, ptr %37, align 8, !tbaa !12
  %39 = add nsw i32 %38, 1
  call void @llvm.lifetime.start.p0(i64 96, ptr %8) #6
  call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 96, i1 false)
  call void @_ZN20b3AlignedObjectArrayI22b3ConvexPolyhedronDataE6resizeEiRKS0_(ptr noundef nonnull align 8 dereferenceable(25) %34, i32 noundef %39, ptr noundef nonnull align 16 dereferenceable(96) %8)
  call void @llvm.lifetime.end.p0(i64 96, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %40 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %23, i32 0, i32 1
  %41 = load ptr, ptr %40, align 8, !tbaa !9
  %42 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %41, i32 0, i32 4
  %43 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %23, i32 0, i32 1
  %44 = load ptr, ptr %43, align 8, !tbaa !9
  %45 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %44, i32 0, i32 4
  %46 = call noundef i32 @_ZNK20b3AlignedObjectArrayI22b3ConvexPolyhedronDataE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %45)
  %47 = sub nsw i32 %46, 1
  %48 = call noundef nonnull align 16 dereferenceable(96) ptr @_ZN20b3AlignedObjectArrayI22b3ConvexPolyhedronDataE2atEi(ptr noundef nonnull align 8 dereferenceable(25) %42, i32 noundef %47)
  store ptr %48, ptr %9, align 8, !tbaa !5
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %class.b3ConvexUtility, ptr %49, i32 0, i32 4
  %51 = load ptr, ptr %9, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.b3ConvexPolyhedronData, ptr %51, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %52, ptr align 16 %50, i64 16, i1 false), !tbaa.struct !32
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %class.b3ConvexUtility, ptr %53, i32 0, i32 5
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.b3ConvexPolyhedronData, ptr %55, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %56, ptr align 16 %54, i64 16, i1 false), !tbaa.struct !32
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = getelementptr inbounds %class.b3ConvexUtility, ptr %57, i32 0, i32 3
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.b3ConvexPolyhedronData, ptr %59, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %60, ptr align 16 %58, i64 16, i1 false), !tbaa.struct !32
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %class.b3ConvexUtility, ptr %61, i32 0, i32 2
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.b3ConvexPolyhedronData, ptr %63, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %64, ptr align 16 %62, i64 16, i1 false), !tbaa.struct !32
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %class.b3ConvexUtility, ptr %65, i32 0, i32 6
  %67 = load float, ptr %66, align 16, !tbaa !34
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.b3ConvexPolyhedronData, ptr %68, i32 0, i32 4
  store float %67, ptr %69, align 16, !tbaa !40
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds %class.b3ConvexUtility, ptr %70, i32 0, i32 10
  %72 = call noundef i32 @_ZNK20b3AlignedObjectArrayI9b3Vector3E4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %71)
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.b3ConvexPolyhedronData, ptr %73, i32 0, i32 10
  store i32 %72, ptr %74, align 8, !tbaa !42
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %75 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %23, i32 0, i32 1
  %76 = load ptr, ptr %75, align 8, !tbaa !9
  %77 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %76, i32 0, i32 5
  %78 = call noundef i32 @_ZNK20b3AlignedObjectArrayI9b3Vector3E4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %77)
  store i32 %78, ptr %10, align 4, !tbaa !43
  %79 = load i32, ptr %10, align 4, !tbaa !43
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.b3ConvexPolyhedronData, ptr %80, i32 0, i32 9
  store i32 %79, ptr %81, align 4, !tbaa !44
  %82 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %23, i32 0, i32 1
  %83 = load ptr, ptr %82, align 8, !tbaa !9
  %84 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %83, i32 0, i32 5
  %85 = load i32, ptr %10, align 4, !tbaa !43
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.b3ConvexPolyhedronData, ptr %86, i32 0, i32 10
  %88 = load i32, ptr %87, align 8, !tbaa !42
  %89 = add nsw i32 %85, %88
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  call void @llvm.memset.p0.i64(ptr align 16 %11, i8 0, i64 16, i1 false)
  call void @_ZN20b3AlignedObjectArrayI9b3Vector3E6resizeEiRKS0_(ptr noundef nonnull align 8 dereferenceable(25) %84, i32 noundef %89, ptr noundef nonnull align 16 dereferenceable(16) %11)
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !43
  br label %90

90:                                               ; preds = %108, %3
  %91 = load i32, ptr %12, align 4, !tbaa !43
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %class.b3ConvexUtility, ptr %92, i32 0, i32 10
  %94 = call noundef i32 @_ZNK20b3AlignedObjectArrayI9b3Vector3E4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %93)
  %95 = icmp slt i32 %91, %94
  br i1 %95, label %96, label %111

96:                                               ; preds = %90
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds %class.b3ConvexUtility, ptr %97, i32 0, i32 10
  %99 = load i32, ptr %12, align 4, !tbaa !43
  %100 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI9b3Vector3EixEi(ptr noundef nonnull align 8 dereferenceable(25) %98, i32 noundef %99)
  %101 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %23, i32 0, i32 1
  %102 = load ptr, ptr %101, align 8, !tbaa !9
  %103 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %102, i32 0, i32 5
  %104 = load i32, ptr %10, align 4, !tbaa !43
  %105 = load i32, ptr %12, align 4, !tbaa !43
  %106 = add nsw i32 %104, %105
  %107 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI9b3Vector3EixEi(ptr noundef nonnull align 8 dereferenceable(25) %103, i32 noundef %106)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %107, ptr align 16 %100, i64 16, i1 false), !tbaa.struct !32
  br label %108

108:                                              ; preds = %96
  %109 = load i32, ptr %12, align 4, !tbaa !43
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %12, align 4, !tbaa !43
  br label %90, !llvm.loop !45

111:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %112 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %23, i32 0, i32 1
  %113 = load ptr, ptr %112, align 8, !tbaa !9
  %114 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %113, i32 0, i32 8
  %115 = call noundef i32 @_ZNK20b3AlignedObjectArrayI9b3GpuFaceE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %114)
  store i32 %115, ptr %13, align 4, !tbaa !43
  %116 = load i32, ptr %13, align 4, !tbaa !43
  %117 = load ptr, ptr %9, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.b3ConvexPolyhedronData, ptr %117, i32 0, i32 5
  store i32 %116, ptr %118, align 4, !tbaa !47
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = getelementptr inbounds %class.b3ConvexUtility, ptr %119, i32 0, i32 9
  %121 = call noundef i32 @_ZNK20b3AlignedObjectArrayI8b3MyFaceE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %120)
  %122 = load ptr, ptr %9, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.b3ConvexPolyhedronData, ptr %122, i32 0, i32 6
  store i32 %121, ptr %123, align 8, !tbaa !48
  %124 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %23, i32 0, i32 1
  %125 = load ptr, ptr %124, align 8, !tbaa !9
  %126 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %125, i32 0, i32 8
  %127 = load i32, ptr %13, align 4, !tbaa !43
  %128 = load ptr, ptr %9, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.b3ConvexPolyhedronData, ptr %128, i32 0, i32 6
  %130 = load i32, ptr %129, align 8, !tbaa !48
  %131 = add nsw i32 %127, %130
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #6
  call void @llvm.memset.p0.i64(ptr align 16 %14, i8 0, i64 32, i1 false)
  call void @_ZN20b3AlignedObjectArrayI9b3GpuFaceE6resizeEiRKS0_(ptr noundef nonnull align 8 dereferenceable(25) %126, i32 noundef %131, ptr noundef nonnull align 16 dereferenceable(32) %14)
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #6
  store i32 0, ptr %12, align 4, !tbaa !43
  br label %132

132:                                              ; preds = %247, %111
  %133 = load i32, ptr %12, align 4, !tbaa !43
  %134 = load ptr, ptr %5, align 8, !tbaa !5
  %135 = getelementptr inbounds %class.b3ConvexUtility, ptr %134, i32 0, i32 9
  %136 = call noundef i32 @_ZNK20b3AlignedObjectArrayI8b3MyFaceE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %135)
  %137 = icmp slt i32 %133, %136
  br i1 %137, label %138, label %250

138:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = getelementptr inbounds %class.b3ConvexUtility, ptr %139, i32 0, i32 9
  %141 = load i32, ptr %12, align 4, !tbaa !43
  %142 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN20b3AlignedObjectArrayI8b3MyFaceEixEi(ptr noundef nonnull align 8 dereferenceable(25) %140, i32 noundef %141)
  %143 = getelementptr inbounds %struct.b3MyFace, ptr %142, i32 0, i32 1
  %144 = getelementptr inbounds [4 x float], ptr %143, i64 0, i64 0
  %145 = load float, ptr %144, align 8, !tbaa !49
  %146 = load ptr, ptr %5, align 8, !tbaa !5
  %147 = getelementptr inbounds %class.b3ConvexUtility, ptr %146, i32 0, i32 9
  %148 = load i32, ptr %12, align 4, !tbaa !43
  %149 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN20b3AlignedObjectArrayI8b3MyFaceEixEi(ptr noundef nonnull align 8 dereferenceable(25) %147, i32 noundef %148)
  %150 = getelementptr inbounds %struct.b3MyFace, ptr %149, i32 0, i32 1
  %151 = getelementptr inbounds [4 x float], ptr %150, i64 0, i64 1
  %152 = load float, ptr %151, align 4, !tbaa !49
  %153 = load ptr, ptr %5, align 8, !tbaa !5
  %154 = getelementptr inbounds %class.b3ConvexUtility, ptr %153, i32 0, i32 9
  %155 = load i32, ptr %12, align 4, !tbaa !43
  %156 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN20b3AlignedObjectArrayI8b3MyFaceEixEi(ptr noundef nonnull align 8 dereferenceable(25) %154, i32 noundef %155)
  %157 = getelementptr inbounds %struct.b3MyFace, ptr %156, i32 0, i32 1
  %158 = getelementptr inbounds [4 x float], ptr %157, i64 0, i64 2
  %159 = load float, ptr %158, align 8, !tbaa !49
  %160 = load ptr, ptr %5, align 8, !tbaa !5
  %161 = getelementptr inbounds %class.b3ConvexUtility, ptr %160, i32 0, i32 9
  %162 = load i32, ptr %12, align 4, !tbaa !43
  %163 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN20b3AlignedObjectArrayI8b3MyFaceEixEi(ptr noundef nonnull align 8 dereferenceable(25) %161, i32 noundef %162)
  %164 = getelementptr inbounds %struct.b3MyFace, ptr %163, i32 0, i32 1
  %165 = getelementptr inbounds [4 x float], ptr %164, i64 0, i64 3
  %166 = load float, ptr %165, align 4, !tbaa !49
  %167 = call { <2 x float>, <2 x float> } @_Z13b3MakeVector3ffff(float noundef %145, float noundef %152, float noundef %159, float noundef %166)
  %168 = getelementptr inbounds %class.b3Vector3, ptr %15, i32 0, i32 0
  %169 = getelementptr inbounds %union.anon.18, ptr %168, i32 0, i32 0
  %170 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %169, i32 0, i32 0
  %171 = extractvalue { <2 x float>, <2 x float> } %167, 0
  store <2 x float> %171, ptr %170, align 16
  %172 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %169, i32 0, i32 1
  %173 = extractvalue { <2 x float>, <2 x float> } %167, 1
  store <2 x float> %173, ptr %172, align 8
  %174 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %23, i32 0, i32 1
  %175 = load ptr, ptr %174, align 8, !tbaa !9
  %176 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %175, i32 0, i32 8
  %177 = load ptr, ptr %9, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.b3ConvexPolyhedronData, ptr %177, i32 0, i32 5
  %179 = load i32, ptr %178, align 4, !tbaa !47
  %180 = load i32, ptr %12, align 4, !tbaa !43
  %181 = add nsw i32 %179, %180
  %182 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZN20b3AlignedObjectArrayI9b3GpuFaceEixEi(ptr noundef nonnull align 8 dereferenceable(25) %176, i32 noundef %181)
  %183 = getelementptr inbounds %struct.b3GpuFace, ptr %182, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %183, ptr align 16 %15, i64 16, i1 false), !tbaa.struct !32
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %184 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %23, i32 0, i32 1
  %185 = load ptr, ptr %184, align 8, !tbaa !9
  %186 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %185, i32 0, i32 7
  %187 = call noundef i32 @_ZNK20b3AlignedObjectArrayIiE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %186)
  store i32 %187, ptr %16, align 4, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %188 = load ptr, ptr %5, align 8, !tbaa !5
  %189 = getelementptr inbounds %class.b3ConvexUtility, ptr %188, i32 0, i32 9
  %190 = load i32, ptr %12, align 4, !tbaa !43
  %191 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN20b3AlignedObjectArrayI8b3MyFaceEixEi(ptr noundef nonnull align 8 dereferenceable(25) %189, i32 noundef %190)
  %192 = getelementptr inbounds %struct.b3MyFace, ptr %191, i32 0, i32 0
  %193 = call noundef i32 @_ZNK20b3AlignedObjectArrayIiE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %192)
  store i32 %193, ptr %17, align 4, !tbaa !43
  %194 = load i32, ptr %17, align 4, !tbaa !43
  %195 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %23, i32 0, i32 1
  %196 = load ptr, ptr %195, align 8, !tbaa !9
  %197 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %196, i32 0, i32 8
  %198 = load ptr, ptr %9, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.b3ConvexPolyhedronData, ptr %198, i32 0, i32 5
  %200 = load i32, ptr %199, align 4, !tbaa !47
  %201 = load i32, ptr %12, align 4, !tbaa !43
  %202 = add nsw i32 %200, %201
  %203 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZN20b3AlignedObjectArrayI9b3GpuFaceEixEi(ptr noundef nonnull align 8 dereferenceable(25) %197, i32 noundef %202)
  %204 = getelementptr inbounds %struct.b3GpuFace, ptr %203, i32 0, i32 2
  store i32 %194, ptr %204, align 4, !tbaa !50
  %205 = load i32, ptr %16, align 4, !tbaa !43
  %206 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %23, i32 0, i32 1
  %207 = load ptr, ptr %206, align 8, !tbaa !9
  %208 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %207, i32 0, i32 8
  %209 = load ptr, ptr %9, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.b3ConvexPolyhedronData, ptr %209, i32 0, i32 5
  %211 = load i32, ptr %210, align 4, !tbaa !47
  %212 = load i32, ptr %12, align 4, !tbaa !43
  %213 = add nsw i32 %211, %212
  %214 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZN20b3AlignedObjectArrayI9b3GpuFaceEixEi(ptr noundef nonnull align 8 dereferenceable(25) %208, i32 noundef %213)
  %215 = getelementptr inbounds %struct.b3GpuFace, ptr %214, i32 0, i32 1
  store i32 %205, ptr %215, align 16, !tbaa !52
  %216 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %23, i32 0, i32 1
  %217 = load ptr, ptr %216, align 8, !tbaa !9
  %218 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %217, i32 0, i32 7
  %219 = load i32, ptr %16, align 4, !tbaa !43
  %220 = load i32, ptr %17, align 4, !tbaa !43
  %221 = add nsw i32 %219, %220
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !43
  call void @_ZN20b3AlignedObjectArrayIiE6resizeEiRKi(ptr noundef nonnull align 8 dereferenceable(25) %218, i32 noundef %221, ptr noundef nonnull align 4 dereferenceable(4) %18)
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !43
  br label %222

222:                                              ; preds = %243, %138
  %223 = load i32, ptr %19, align 4, !tbaa !43
  %224 = load i32, ptr %17, align 4, !tbaa !43
  %225 = icmp slt i32 %223, %224
  br i1 %225, label %227, label %226

226:                                              ; preds = %222
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %246

227:                                              ; preds = %222
  %228 = load ptr, ptr %5, align 8, !tbaa !5
  %229 = getelementptr inbounds %class.b3ConvexUtility, ptr %228, i32 0, i32 9
  %230 = load i32, ptr %12, align 4, !tbaa !43
  %231 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN20b3AlignedObjectArrayI8b3MyFaceEixEi(ptr noundef nonnull align 8 dereferenceable(25) %229, i32 noundef %230)
  %232 = getelementptr inbounds %struct.b3MyFace, ptr %231, i32 0, i32 0
  %233 = load i32, ptr %19, align 4, !tbaa !43
  %234 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN20b3AlignedObjectArrayIiEixEi(ptr noundef nonnull align 8 dereferenceable(25) %232, i32 noundef %233)
  %235 = load i32, ptr %234, align 4, !tbaa !43
  %236 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %23, i32 0, i32 1
  %237 = load ptr, ptr %236, align 8, !tbaa !9
  %238 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %237, i32 0, i32 7
  %239 = load i32, ptr %16, align 4, !tbaa !43
  %240 = load i32, ptr %19, align 4, !tbaa !43
  %241 = add nsw i32 %239, %240
  %242 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN20b3AlignedObjectArrayIiEixEi(ptr noundef nonnull align 8 dereferenceable(25) %238, i32 noundef %241)
  store i32 %235, ptr %242, align 4, !tbaa !43
  br label %243

243:                                              ; preds = %227
  %244 = load i32, ptr %19, align 4, !tbaa !43
  %245 = add nsw i32 %244, 1
  store i32 %245, ptr %19, align 4, !tbaa !43
  br label %222, !llvm.loop !53

246:                                              ; preds = %226
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %247

247:                                              ; preds = %246
  %248 = load i32, ptr %12, align 4, !tbaa !43
  %249 = add nsw i32 %248, 1
  store i32 %249, ptr %12, align 4, !tbaa !43
  br label %132, !llvm.loop !54

250:                                              ; preds = %132
  %251 = load ptr, ptr %5, align 8, !tbaa !5
  %252 = getelementptr inbounds %class.b3ConvexUtility, ptr %251, i32 0, i32 8
  %253 = call noundef i32 @_ZNK20b3AlignedObjectArrayI9b3Vector3E4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %252)
  %254 = load ptr, ptr %9, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.b3ConvexPolyhedronData, ptr %254, i32 0, i32 7
  store i32 %253, ptr %255, align 4, !tbaa !55
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %256 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %23, i32 0, i32 1
  %257 = load ptr, ptr %256, align 8, !tbaa !9
  %258 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %257, i32 0, i32 6
  %259 = call noundef i32 @_ZNK20b3AlignedObjectArrayI9b3Vector3E4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %258)
  store i32 %259, ptr %20, align 4, !tbaa !43
  %260 = load i32, ptr %20, align 4, !tbaa !43
  %261 = load ptr, ptr %9, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.b3ConvexPolyhedronData, ptr %261, i32 0, i32 8
  store i32 %260, ptr %262, align 16, !tbaa !56
  %263 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %23, i32 0, i32 1
  %264 = load ptr, ptr %263, align 8, !tbaa !9
  %265 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %264, i32 0, i32 6
  %266 = load i32, ptr %20, align 4, !tbaa !43
  %267 = load ptr, ptr %9, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.b3ConvexPolyhedronData, ptr %267, i32 0, i32 7
  %269 = load i32, ptr %268, align 4, !tbaa !55
  %270 = add nsw i32 %266, %269
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #6
  call void @llvm.memset.p0.i64(ptr align 16 %21, i8 0, i64 16, i1 false)
  call void @_ZN20b3AlignedObjectArrayI9b3Vector3E6resizeEiRKS0_(ptr noundef nonnull align 8 dereferenceable(25) %265, i32 noundef %270, ptr noundef nonnull align 16 dereferenceable(16) %21)
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store i32 0, ptr %22, align 4, !tbaa !43
  br label %271

271:                                              ; preds = %290, %250
  %272 = load i32, ptr %22, align 4, !tbaa !43
  %273 = load ptr, ptr %5, align 8, !tbaa !5
  %274 = getelementptr inbounds %class.b3ConvexUtility, ptr %273, i32 0, i32 8
  %275 = call noundef i32 @_ZNK20b3AlignedObjectArrayI9b3Vector3E4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %274)
  %276 = icmp slt i32 %272, %275
  br i1 %276, label %278, label %277

277:                                              ; preds = %271
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %293

278:                                              ; preds = %271
  %279 = load ptr, ptr %5, align 8, !tbaa !5
  %280 = getelementptr inbounds %class.b3ConvexUtility, ptr %279, i32 0, i32 8
  %281 = load i32, ptr %22, align 4, !tbaa !43
  %282 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI9b3Vector3EixEi(ptr noundef nonnull align 8 dereferenceable(25) %280, i32 noundef %281)
  %283 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %23, i32 0, i32 1
  %284 = load ptr, ptr %283, align 8, !tbaa !9
  %285 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %284, i32 0, i32 6
  %286 = load i32, ptr %20, align 4, !tbaa !43
  %287 = load i32, ptr %22, align 4, !tbaa !43
  %288 = add nsw i32 %286, %287
  %289 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI9b3Vector3EixEi(ptr noundef nonnull align 8 dereferenceable(25) %285, i32 noundef %288)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %289, ptr align 16 %282, i64 16, i1 false), !tbaa.struct !32
  br label %290

290:                                              ; preds = %278
  %291 = load i32, ptr %22, align 4, !tbaa !43
  %292 = add nsw i32 %291, 1
  store i32 %292, ptr %22, align 4, !tbaa !43
  br label %271, !llvm.loop !57

293:                                              ; preds = %277
  %294 = load ptr, ptr %5, align 8, !tbaa !5
  %295 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %23, i32 0, i32 1
  %296 = load ptr, ptr %295, align 8, !tbaa !9
  %297 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %296, i32 0, i32 2
  %298 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %23, i32 0, i32 1
  %299 = load ptr, ptr %298, align 8, !tbaa !9
  %300 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %299, i32 0, i32 10
  %301 = load i32, ptr %300, align 8, !tbaa !12
  %302 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN20b3AlignedObjectArrayIP15b3ConvexUtilityEixEi(ptr noundef nonnull align 8 dereferenceable(25) %297, i32 noundef %301)
  store ptr %294, ptr %302, align 8, !tbaa !5
  %303 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %23, i32 0, i32 1
  %304 = load ptr, ptr %303, align 8, !tbaa !9
  %305 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %304, i32 0, i32 10
  %306 = load i32, ptr %305, align 8, !tbaa !12
  %307 = add nsw i32 %306, 1
  store i32 %307, ptr %305, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  ret i32 %306
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN20b3AlignedObjectArrayIP15b3ConvexUtilityE6resizeEiRKS1_(ptr noundef nonnull align 8 dereferenceable(25), i32 noundef, ptr noundef nonnull align 8 dereferenceable(8)) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN20b3AlignedObjectArrayI22b3ConvexPolyhedronDataE6resizeEiRKS0_(ptr noundef nonnull align 8 dereferenceable(25), i32 noundef, ptr noundef nonnull align 16 dereferenceable(96)) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(96) ptr @_ZN20b3AlignedObjectArrayI22b3ConvexPolyhedronDataE2atEi(ptr noundef nonnull align 8 dereferenceable(25), i32 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK20b3AlignedObjectArrayI22b3ConvexPolyhedronDataE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN20b3AlignedObjectArrayI9b3Vector3E6resizeEiRKS0_(ptr noundef nonnull align 8 dereferenceable(25), i32 noundef, ptr noundef nonnull align 16 dereferenceable(16)) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK20b3AlignedObjectArrayI9b3GpuFaceE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK20b3AlignedObjectArrayI8b3MyFaceE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN20b3AlignedObjectArrayI9b3GpuFaceE6resizeEiRKS0_(ptr noundef nonnull align 8 dereferenceable(25), i32 noundef, ptr noundef nonnull align 16 dereferenceable(32)) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local { <2 x float>, <2 x float> } @_Z13b3MakeVector3ffff(float noundef, float noundef, float noundef, float noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZN20b3AlignedObjectArrayI8b3MyFaceEixEi(ptr noundef nonnull align 8 dereferenceable(25), i32 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(32) ptr @_ZN20b3AlignedObjectArrayI9b3GpuFaceEixEi(ptr noundef nonnull align 8 dereferenceable(25), i32 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK20b3AlignedObjectArrayIiE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN20b3AlignedObjectArrayIiE6resizeEiRKi(ptr noundef nonnull align 8 dereferenceable(25), i32 noundef, ptr noundef nonnull align 4 dereferenceable(4)) #5 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN20b3AlignedObjectArrayIP15b3ConvexUtilityEixEi(ptr noundef nonnull align 8 dereferenceable(25), i32 noundef) #3 align 2

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 #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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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, !6, i64 8}
!10 = !{!"_ZTS16b3CpuNarrowPhase", !6, i64 8, !11, i64 16, !11, i64 20, !11, i64 24}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !11, i64 336}
!13 = !{!"_ZTS28b3CpuNarrowPhaseInternalData", !14, i64 0, !17, i64 32, !19, i64 64, !21, i64 96, !22, i64 144, !24, i64 176, !24, i64 208, !26, i64 240, !28, i64 272, !30, i64 304, !11, i64 336}
!14 = !{!"_ZTS20b3AlignedObjectArrayI6b3AabbE", !15, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !16, i64 24}
!15 = !{!"_ZTS18b3AlignedAllocatorI6b3AabbLj16EE"}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTS20b3AlignedObjectArrayI12b3CollidableE", !18, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !16, i64 24}
!18 = !{!"_ZTS18b3AlignedAllocatorI12b3CollidableLj16EE"}
!19 = !{!"_ZTS20b3AlignedObjectArrayIP15b3ConvexUtilityE", !20, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !16, i64 24}
!20 = !{!"_ZTS18b3AlignedAllocatorIP15b3ConvexUtilityLj16EE"}
!21 = !{!"_ZTS8b3Config", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44}
!22 = !{!"_ZTS20b3AlignedObjectArrayI22b3ConvexPolyhedronDataE", !23, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !16, i64 24}
!23 = !{!"_ZTS18b3AlignedAllocatorI22b3ConvexPolyhedronDataLj16EE"}
!24 = !{!"_ZTS20b3AlignedObjectArrayI9b3Vector3E", !25, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !16, i64 24}
!25 = !{!"_ZTS18b3AlignedAllocatorI9b3Vector3Lj16EE"}
!26 = !{!"_ZTS20b3AlignedObjectArrayIiE", !27, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !16, i64 24}
!27 = !{!"_ZTS18b3AlignedAllocatorIiLj16EE"}
!28 = !{!"_ZTS20b3AlignedObjectArrayI9b3GpuFaceE", !29, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !16, i64 24}
!29 = !{!"_ZTS18b3AlignedAllocatorI9b3GpuFaceLj16EE"}
!30 = !{!"_ZTS20b3AlignedObjectArrayI14b3Contact4DataE", !31, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !16, i64 24}
!31 = !{!"_ZTS18b3AlignedAllocatorI14b3Contact4DataLj16EE"}
!32 = !{i64 0, i64 16, !33}
!33 = !{!7, !7, i64 0}
!34 = !{!35, !37, i64 80}
!35 = !{!"_ZTS15b3ConvexUtility", !36, i64 16, !36, i64 32, !36, i64 48, !36, i64 64, !37, i64 80, !24, i64 88, !38, i64 120, !24, i64 152}
!36 = !{!"_ZTS9b3Vector3", !7, i64 0}
!37 = !{!"float", !7, i64 0}
!38 = !{!"_ZTS20b3AlignedObjectArrayI8b3MyFaceE", !39, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !16, i64 24}
!39 = !{!"_ZTS18b3AlignedAllocatorI8b3MyFaceLj16EE"}
!40 = !{!41, !37, i64 64}
!41 = !{!"_ZTS22b3ConvexPolyhedronData", !36, i64 0, !36, i64 16, !36, i64 32, !36, i64 48, !37, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92}
!42 = !{!41, !11, i64 88}
!43 = !{!11, !11, i64 0}
!44 = !{!41, !11, i64 84}
!45 = distinct !{!45, !46}
!46 = !{!"llvm.loop.mustprogress"}
!47 = !{!41, !11, i64 68}
!48 = !{!41, !11, i64 72}
!49 = !{!37, !37, i64 0}
!50 = !{!51, !11, i64 20}
!51 = !{!"_ZTS9b3GpuFace", !36, i64 0, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28}
!52 = !{!51, !11, i64 16}
!53 = distinct !{!53, !46}
!54 = distinct !{!54, !46}
!55 = !{!41, !11, i64 76}
!56 = !{!41, !11, i64 80}
!57 = distinct !{!57, !46}


; 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.b3ConvexPolyhedronData = type { %class.b3Vector3, %class.b3Vector3, %class.b3Vector3, %class.b3Vector3, float, i32, i32, i32, i32, i32, i32, i32 }
%class.b3Vector3 = type { %union.anon.18 }
%union.anon.18 = type { [4 x float] }
%struct.b3GpuFace = type { %class.b3Vector3, i32, i32, i32, i32 }

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, 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) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK20b3AlignedObjectArrayI9b3Vector3E4sizeEv(ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI9b3Vector3EixEi(ptr noundef nonnull align 8 dereferenceable(25), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN16b3CpuNarrowPhase31registerConvexHullShapeInternalEP15b3ConvexUtilityR12b3Collidable(ptr nocapture noundef nonnull readonly align 8 dereferenceable(28) %0, ptr noundef %1, ptr nocapture noundef nonnull readnone align 4 dereferenceable(16) %2) local_unnamed_addr #4 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca %struct.b3ConvexPolyhedronData, align 16
  %6 = alloca %class.b3Vector3, align 16
  %7 = alloca %struct.b3GpuFace, align 16
  %8 = alloca i32, align 4
  %9 = alloca %class.b3Vector3, align 16
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %11, i64 64
  %13 = getelementptr inbounds i8, ptr %11, i64 336
  %14 = load i32, ptr %13, align 8, !tbaa !11
  %15 = add nsw i32 %14, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  store ptr null, ptr %4, align 8, !tbaa !31
  call void @_ZN20b3AlignedObjectArrayIP15b3ConvexUtilityE6resizeEiRKS1_(ptr noundef nonnull align 8 dereferenceable(25) %12, i32 noundef %15, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  %16 = load ptr, ptr %10, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %16, i64 144
  %18 = getelementptr inbounds i8, ptr %16, i64 336
  %19 = load i32, ptr %18, align 8, !tbaa !11
  %20 = add nsw i32 %19, 1
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %5) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(96) %5, i8 0, i64 96, i1 false)
  call void @_ZN20b3AlignedObjectArrayI22b3ConvexPolyhedronDataE6resizeEiRKS0_(ptr noundef nonnull align 8 dereferenceable(25) %17, i32 noundef %20, ptr noundef nonnull align 16 dereferenceable(96) %5)
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %5) #6
  %21 = load ptr, ptr %10, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %21, i64 144
  %23 = call noundef i32 @_ZNK20b3AlignedObjectArrayI22b3ConvexPolyhedronDataE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %22)
  %24 = add nsw i32 %23, -1
  %25 = call noundef nonnull align 16 dereferenceable(96) ptr @_ZN20b3AlignedObjectArrayI22b3ConvexPolyhedronDataE2atEi(ptr noundef nonnull align 8 dereferenceable(25) %22, i32 noundef %24)
  %26 = getelementptr inbounds i8, ptr %1, i64 48
  %27 = getelementptr inbounds i8, ptr %25, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %27, ptr noundef nonnull align 16 dereferenceable(16) %26, i64 16, i1 false), !tbaa.struct !32
  %28 = getelementptr inbounds i8, ptr %1, i64 64
  %29 = getelementptr inbounds i8, ptr %25, i64 48
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %29, ptr noundef nonnull align 16 dereferenceable(16) %28, i64 16, i1 false), !tbaa.struct !32
  %30 = getelementptr inbounds i8, ptr %1, i64 32
  %31 = getelementptr inbounds i8, ptr %25, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %31, ptr noundef nonnull align 16 dereferenceable(16) %30, i64 16, i1 false), !tbaa.struct !32
  %32 = getelementptr inbounds i8, ptr %1, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %25, ptr noundef nonnull align 16 dereferenceable(16) %32, i64 16, i1 false), !tbaa.struct !32
  %33 = getelementptr inbounds i8, ptr %1, i64 80
  %34 = load float, ptr %33, align 16, !tbaa !34
  %35 = getelementptr inbounds i8, ptr %25, i64 64
  store float %34, ptr %35, align 16, !tbaa !40
  %36 = getelementptr inbounds i8, ptr %1, i64 152
  %37 = call noundef i32 @_ZNK20b3AlignedObjectArrayI9b3Vector3E4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %36)
  %38 = getelementptr inbounds i8, ptr %25, i64 88
  store i32 %37, ptr %38, align 8, !tbaa !42
  %39 = load ptr, ptr %10, align 8, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %39, i64 176
  %41 = call noundef i32 @_ZNK20b3AlignedObjectArrayI9b3Vector3E4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %40)
  %42 = getelementptr inbounds i8, ptr %25, i64 84
  store i32 %41, ptr %42, align 4, !tbaa !43
  %43 = load ptr, ptr %10, align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %43, i64 176
  %45 = load i32, ptr %38, align 8, !tbaa !42
  %46 = add nsw i32 %45, %41
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %6, i8 0, i64 16, i1 false)
  call void @_ZN20b3AlignedObjectArrayI9b3Vector3E6resizeEiRKS0_(ptr noundef nonnull align 8 dereferenceable(25) %44, i32 noundef %46, ptr noundef nonnull align 16 dereferenceable(16) %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  %47 = call noundef i32 @_ZNK20b3AlignedObjectArrayI9b3Vector3E4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %36)
  %48 = icmp sgt i32 %47, 0
  br i1 %48, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %3, %.lr.ph
  %.07476 = phi i32 [ %54, %.lr.ph ], [ 0, %3 ]
  %49 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI9b3Vector3EixEi(ptr noundef nonnull align 8 dereferenceable(25) %36, i32 noundef %.07476)
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %50, i64 176
  %52 = add nsw i32 %.07476, %41
  %53 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI9b3Vector3EixEi(ptr noundef nonnull align 8 dereferenceable(25) %51, i32 noundef %52)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %53, ptr noundef nonnull align 16 dereferenceable(16) %49, i64 16, i1 false), !tbaa.struct !32
  %54 = add nuw nsw i32 %.07476, 1
  %55 = call noundef i32 @_ZNK20b3AlignedObjectArrayI9b3Vector3E4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %36)
  %56 = icmp slt i32 %54, %55
  br i1 %56, label %.lr.ph, label %._crit_edge, !llvm.loop !44

._crit_edge:                                      ; preds = %.lr.ph, %3
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  %58 = getelementptr inbounds i8, ptr %57, i64 272
  %59 = call noundef i32 @_ZNK20b3AlignedObjectArrayI9b3GpuFaceE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %58)
  %60 = getelementptr inbounds i8, ptr %25, i64 68
  store i32 %59, ptr %60, align 4, !tbaa !46
  %61 = getelementptr inbounds i8, ptr %1, i64 120
  %62 = call noundef i32 @_ZNK20b3AlignedObjectArrayI8b3MyFaceE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %61)
  %63 = getelementptr inbounds i8, ptr %25, i64 72
  store i32 %62, ptr %63, align 8, !tbaa !47
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  %65 = getelementptr inbounds i8, ptr %64, i64 272
  %66 = add nsw i32 %62, %59
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %7, i8 0, i64 32, i1 false)
  call void @_ZN20b3AlignedObjectArrayI9b3GpuFaceE6resizeEiRKS0_(ptr noundef nonnull align 8 dereferenceable(25) %65, i32 noundef %66, ptr noundef nonnull align 16 dereferenceable(32) %7)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  %67 = call noundef i32 @_ZNK20b3AlignedObjectArrayI8b3MyFaceE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %61)
  %68 = icmp sgt i32 %67, 0
  br i1 %68, label %.lr.ph83, label %._crit_edge84

.lr.ph83:                                         ; preds = %._crit_edge, %._crit_edge80
  %.181 = phi i32 [ %110, %._crit_edge80 ], [ 0, %._crit_edge ]
  %69 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN20b3AlignedObjectArrayI8b3MyFaceEixEi(ptr noundef nonnull align 8 dereferenceable(25) %61, i32 noundef %.181)
  %70 = getelementptr inbounds i8, ptr %69, i64 32
  %71 = load float, ptr %70, align 8, !tbaa !48
  %72 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN20b3AlignedObjectArrayI8b3MyFaceEixEi(ptr noundef nonnull align 8 dereferenceable(25) %61, i32 noundef %.181)
  %73 = getelementptr inbounds i8, ptr %72, i64 36
  %74 = load float, ptr %73, align 4, !tbaa !48
  %75 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN20b3AlignedObjectArrayI8b3MyFaceEixEi(ptr noundef nonnull align 8 dereferenceable(25) %61, i32 noundef %.181)
  %76 = getelementptr inbounds i8, ptr %75, i64 40
  %77 = load float, ptr %76, align 8, !tbaa !48
  %78 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN20b3AlignedObjectArrayI8b3MyFaceEixEi(ptr noundef nonnull align 8 dereferenceable(25) %61, i32 noundef %.181)
  %79 = getelementptr inbounds i8, ptr %78, i64 44
  %80 = load float, ptr %79, align 4, !tbaa !48
  %81 = call { <2 x float>, <2 x float> } @_Z13b3MakeVector3ffff(float noundef %71, float noundef %74, float noundef %77, float noundef %80)
  %82 = extractvalue { <2 x float>, <2 x float> } %81, 0
  %83 = extractvalue { <2 x float>, <2 x float> } %81, 1
  %84 = load ptr, ptr %10, align 8, !tbaa !5
  %85 = getelementptr inbounds i8, ptr %84, i64 272
  %86 = load i32, ptr %60, align 4, !tbaa !46
  %87 = add nsw i32 %86, %.181
  %88 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZN20b3AlignedObjectArrayI9b3GpuFaceEixEi(ptr noundef nonnull align 8 dereferenceable(25) %85, i32 noundef %87)
  store <2 x float> %82, ptr %88, align 16
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %88, i64 8
  store <2 x float> %83, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !33
  %89 = load ptr, ptr %10, align 8, !tbaa !5
  %90 = getelementptr inbounds i8, ptr %89, i64 240
  %91 = call noundef i32 @_ZNK20b3AlignedObjectArrayIiE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %90)
  %92 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN20b3AlignedObjectArrayI8b3MyFaceEixEi(ptr noundef nonnull align 8 dereferenceable(25) %61, i32 noundef %.181)
  %93 = call noundef i32 @_ZNK20b3AlignedObjectArrayIiE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %92)
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = getelementptr inbounds i8, ptr %94, i64 272
  %96 = load i32, ptr %60, align 4, !tbaa !46
  %97 = add nsw i32 %96, %.181
  %98 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZN20b3AlignedObjectArrayI9b3GpuFaceEixEi(ptr noundef nonnull align 8 dereferenceable(25) %95, i32 noundef %97)
  %99 = getelementptr inbounds i8, ptr %98, i64 20
  store i32 %93, ptr %99, align 4, !tbaa !49
  %100 = load ptr, ptr %10, align 8, !tbaa !5
  %101 = getelementptr inbounds i8, ptr %100, i64 272
  %102 = load i32, ptr %60, align 4, !tbaa !46
  %103 = add nsw i32 %102, %.181
  %104 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZN20b3AlignedObjectArrayI9b3GpuFaceEixEi(ptr noundef nonnull align 8 dereferenceable(25) %101, i32 noundef %103)
  %105 = getelementptr inbounds i8, ptr %104, i64 16
  store i32 %91, ptr %105, align 16, !tbaa !51
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  %107 = getelementptr inbounds i8, ptr %106, i64 240
  %108 = add nsw i32 %93, %91
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  store i32 0, ptr %8, align 4, !tbaa !52
  call void @_ZN20b3AlignedObjectArrayIiE6resizeEiRKi(ptr noundef nonnull align 8 dereferenceable(25) %107, i32 noundef %108, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  %109 = icmp sgt i32 %93, 0
  br i1 %109, label %.lr.ph79, label %._crit_edge80

._crit_edge80:                                    ; preds = %.lr.ph79, %.lr.ph83
  %110 = add nuw nsw i32 %.181, 1
  %111 = call noundef i32 @_ZNK20b3AlignedObjectArrayI8b3MyFaceE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %61)
  %112 = icmp slt i32 %110, %111
  br i1 %112, label %.lr.ph83, label %._crit_edge84, !llvm.loop !53

.lr.ph79:                                         ; preds = %.lr.ph83, %.lr.ph79
  %.07577 = phi i32 [ %120, %.lr.ph79 ], [ 0, %.lr.ph83 ]
  %113 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN20b3AlignedObjectArrayI8b3MyFaceEixEi(ptr noundef nonnull align 8 dereferenceable(25) %61, i32 noundef %.181)
  %114 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN20b3AlignedObjectArrayIiEixEi(ptr noundef nonnull align 8 dereferenceable(25) %113, i32 noundef %.07577)
  %115 = load i32, ptr %114, align 4, !tbaa !52
  %116 = load ptr, ptr %10, align 8, !tbaa !5
  %117 = getelementptr inbounds i8, ptr %116, i64 240
  %118 = add nsw i32 %.07577, %91
  %119 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN20b3AlignedObjectArrayIiEixEi(ptr noundef nonnull align 8 dereferenceable(25) %117, i32 noundef %118)
  store i32 %115, ptr %119, align 4, !tbaa !52
  %120 = add nuw nsw i32 %.07577, 1
  %exitcond.not = icmp eq i32 %120, %93
  br i1 %exitcond.not, label %._crit_edge80, label %.lr.ph79, !llvm.loop !54

._crit_edge84:                                    ; preds = %._crit_edge80, %._crit_edge
  %121 = getelementptr inbounds i8, ptr %1, i64 88
  %122 = call noundef i32 @_ZNK20b3AlignedObjectArrayI9b3Vector3E4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %121)
  %123 = getelementptr inbounds i8, ptr %25, i64 76
  store i32 %122, ptr %123, align 4, !tbaa !55
  %124 = load ptr, ptr %10, align 8, !tbaa !5
  %125 = getelementptr inbounds i8, ptr %124, i64 208
  %126 = call noundef i32 @_ZNK20b3AlignedObjectArrayI9b3Vector3E4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %125)
  %127 = getelementptr inbounds i8, ptr %25, i64 80
  store i32 %126, ptr %127, align 16, !tbaa !56
  %128 = load ptr, ptr %10, align 8, !tbaa !5
  %129 = getelementptr inbounds i8, ptr %128, i64 208
  %130 = load i32, ptr %123, align 4, !tbaa !55
  %131 = add nsw i32 %130, %126
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %9, i8 0, i64 16, i1 false)
  call void @_ZN20b3AlignedObjectArrayI9b3Vector3E6resizeEiRKS0_(ptr noundef nonnull align 8 dereferenceable(25) %129, i32 noundef %131, ptr noundef nonnull align 16 dereferenceable(16) %9)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  %132 = call noundef i32 @_ZNK20b3AlignedObjectArrayI9b3Vector3E4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %121)
  %133 = icmp sgt i32 %132, 0
  br i1 %133, label %.lr.ph87, label %._crit_edge88

._crit_edge88:                                    ; preds = %.lr.ph87, %._crit_edge84
  %134 = load ptr, ptr %10, align 8, !tbaa !5
  %135 = getelementptr inbounds i8, ptr %134, i64 64
  %136 = getelementptr inbounds i8, ptr %134, i64 336
  %137 = load i32, ptr %136, align 8, !tbaa !11
  %138 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN20b3AlignedObjectArrayIP15b3ConvexUtilityEixEi(ptr noundef nonnull align 8 dereferenceable(25) %135, i32 noundef %137)
  store ptr %1, ptr %138, align 8, !tbaa !31
  %139 = load ptr, ptr %10, align 8, !tbaa !5
  %140 = getelementptr inbounds i8, ptr %139, i64 336
  %141 = load i32, ptr %140, align 8, !tbaa !11
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %140, align 8, !tbaa !11
  ret i32 %141

.lr.ph87:                                         ; preds = %._crit_edge84, %.lr.ph87
  %.085 = phi i32 [ %148, %.lr.ph87 ], [ 0, %._crit_edge84 ]
  %143 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI9b3Vector3EixEi(ptr noundef nonnull align 8 dereferenceable(25) %121, i32 noundef %.085)
  %144 = load ptr, ptr %10, align 8, !tbaa !5
  %145 = getelementptr inbounds i8, ptr %144, i64 208
  %146 = add nsw i32 %.085, %126
  %147 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI9b3Vector3EixEi(ptr noundef nonnull align 8 dereferenceable(25) %145, i32 noundef %146)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %147, ptr noundef nonnull align 16 dereferenceable(16) %143, i64 16, i1 false), !tbaa.struct !32
  %148 = add nuw nsw i32 %.085, 1
  %149 = call noundef i32 @_ZNK20b3AlignedObjectArrayI9b3Vector3E4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %121)
  %150 = icmp slt i32 %148, %149
  br i1 %150, label %.lr.ph87, label %._crit_edge88, !llvm.loop !57
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN20b3AlignedObjectArrayIP15b3ConvexUtilityE6resizeEiRKS1_(ptr noundef nonnull align 8 dereferenceable(25), i32 noundef, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN20b3AlignedObjectArrayI22b3ConvexPolyhedronDataE6resizeEiRKS0_(ptr noundef nonnull align 8 dereferenceable(25), i32 noundef, ptr noundef nonnull align 16 dereferenceable(96)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(96) ptr @_ZN20b3AlignedObjectArrayI22b3ConvexPolyhedronDataE2atEi(ptr noundef nonnull align 8 dereferenceable(25), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK20b3AlignedObjectArrayI22b3ConvexPolyhedronDataE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN20b3AlignedObjectArrayI9b3Vector3E6resizeEiRKS0_(ptr noundef nonnull align 8 dereferenceable(25), i32 noundef, ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK20b3AlignedObjectArrayI9b3GpuFaceE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK20b3AlignedObjectArrayI8b3MyFaceE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN20b3AlignedObjectArrayI9b3GpuFaceE6resizeEiRKS0_(ptr noundef nonnull align 8 dereferenceable(25), i32 noundef, ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local { <2 x float>, <2 x float> } @_Z13b3MakeVector3ffff(float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZN20b3AlignedObjectArrayI8b3MyFaceEixEi(ptr noundef nonnull align 8 dereferenceable(25), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(32) ptr @_ZN20b3AlignedObjectArrayI9b3GpuFaceEixEi(ptr noundef nonnull align 8 dereferenceable(25), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK20b3AlignedObjectArrayIiE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN20b3AlignedObjectArrayIiE6resizeEiRKi(ptr noundef nonnull align 8 dereferenceable(25), i32 noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN20b3AlignedObjectArrayIP15b3ConvexUtilityEixEi(ptr noundef nonnull align 8 dereferenceable(25), i32 noundef) local_unnamed_addr #3 align 2

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 #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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"_ZTS16b3CpuNarrowPhase", !7, i64 8, !10, i64 16, !10, i64 20, !10, i64 24}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !10, i64 336}
!12 = !{!"_ZTS28b3CpuNarrowPhaseInternalData", !13, i64 0, !16, i64 32, !18, i64 64, !20, i64 96, !21, i64 144, !23, i64 176, !23, i64 208, !25, i64 240, !27, i64 272, !29, i64 304, !10, i64 336}
!13 = !{!"_ZTS20b3AlignedObjectArrayI6b3AabbE", !14, i64 0, !10, i64 4, !10, i64 8, !7, i64 16, !15, i64 24}
!14 = !{!"_ZTS18b3AlignedAllocatorI6b3AabbLj16EE"}
!15 = !{!"bool", !8, i64 0}
!16 = !{!"_ZTS20b3AlignedObjectArrayI12b3CollidableE", !17, i64 0, !10, i64 4, !10, i64 8, !7, i64 16, !15, i64 24}
!17 = !{!"_ZTS18b3AlignedAllocatorI12b3CollidableLj16EE"}
!18 = !{!"_ZTS20b3AlignedObjectArrayIP15b3ConvexUtilityE", !19, i64 0, !10, i64 4, !10, i64 8, !7, i64 16, !15, i64 24}
!19 = !{!"_ZTS18b3AlignedAllocatorIP15b3ConvexUtilityLj16EE"}
!20 = !{!"_ZTS8b3Config", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44}
!21 = !{!"_ZTS20b3AlignedObjectArrayI22b3ConvexPolyhedronDataE", !22, i64 0, !10, i64 4, !10, i64 8, !7, i64 16, !15, i64 24}
!22 = !{!"_ZTS18b3AlignedAllocatorI22b3ConvexPolyhedronDataLj16EE"}
!23 = !{!"_ZTS20b3AlignedObjectArrayI9b3Vector3E", !24, i64 0, !10, i64 4, !10, i64 8, !7, i64 16, !15, i64 24}
!24 = !{!"_ZTS18b3AlignedAllocatorI9b3Vector3Lj16EE"}
!25 = !{!"_ZTS20b3AlignedObjectArrayIiE", !26, i64 0, !10, i64 4, !10, i64 8, !7, i64 16, !15, i64 24}
!26 = !{!"_ZTS18b3AlignedAllocatorIiLj16EE"}
!27 = !{!"_ZTS20b3AlignedObjectArrayI9b3GpuFaceE", !28, i64 0, !10, i64 4, !10, i64 8, !7, i64 16, !15, i64 24}
!28 = !{!"_ZTS18b3AlignedAllocatorI9b3GpuFaceLj16EE"}
!29 = !{!"_ZTS20b3AlignedObjectArrayI14b3Contact4DataE", !30, i64 0, !10, i64 4, !10, i64 8, !7, i64 16, !15, i64 24}
!30 = !{!"_ZTS18b3AlignedAllocatorI14b3Contact4DataLj16EE"}
!31 = !{!7, !7, i64 0}
!32 = !{i64 0, i64 16, !33}
!33 = !{!8, !8, i64 0}
!34 = !{!35, !37, i64 80}
!35 = !{!"_ZTS15b3ConvexUtility", !36, i64 16, !36, i64 32, !36, i64 48, !36, i64 64, !37, i64 80, !23, i64 88, !38, i64 120, !23, i64 152}
!36 = !{!"_ZTS9b3Vector3", !8, i64 0}
!37 = !{!"float", !8, i64 0}
!38 = !{!"_ZTS20b3AlignedObjectArrayI8b3MyFaceE", !39, i64 0, !10, i64 4, !10, i64 8, !7, i64 16, !15, i64 24}
!39 = !{!"_ZTS18b3AlignedAllocatorI8b3MyFaceLj16EE"}
!40 = !{!41, !37, i64 64}
!41 = !{!"_ZTS22b3ConvexPolyhedronData", !36, i64 0, !36, i64 16, !36, i64 32, !36, i64 48, !37, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92}
!42 = !{!41, !10, i64 88}
!43 = !{!41, !10, i64 84}
!44 = distinct !{!44, !45}
!45 = !{!"llvm.loop.mustprogress"}
!46 = !{!41, !10, i64 68}
!47 = !{!41, !10, i64 72}
!48 = !{!37, !37, i64 0}
!49 = !{!50, !10, i64 20}
!50 = !{!"_ZTS9b3GpuFace", !36, i64 0, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!51 = !{!50, !10, i64 16}
!52 = !{!10, !10, i64 0}
!53 = distinct !{!53, !45}
!54 = distinct !{!54, !45}
!55 = !{!41, !10, i64 76}
!56 = !{!41, !10, i64 80}
!57 = distinct !{!57, !45}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass