; 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.b3Contact4Data = type { [4 x %class.b3Vector3], %class.b3Vector3, i16, i16, i32, i32, i32, i32, i32, i32, i32 }
%class.b3Vector3 = type { %union.anon.18 }
%union.anon.18 = type { [4 x float] }
%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] }>
%struct.b3Int4 = type { %union.anon.19 }
%union.anon.19 = type { %struct.anon.20 }
%struct.anon.20 = type { i32, i32, i32, i32 }
%struct.b3RigidBodyData = type { %class.b3Vector3, %class.b3Quaternion, %class.b3Vector3, %class.b3Vector3, i32, float, float, float }
%class.b3Quaternion = type { %class.b3QuadWord }
%class.b3QuadWord = type { %union.anon.24 }
%union.anon.24 = type { [4 x float] }
%struct.b3Collidable = type { %union.anon, %union.anon.14, i32, %union.anon.15 }
%union.anon = type { i32 }
%union.anon.14 = type { float }
%union.anon.15 = type { i32 }

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16b3CpuNarrowPhase15computeContactsER20b3AlignedObjectArrayI6b3Int4ERS0_I6b3AabbERS0_I15b3RigidBodyDataE(ptr noundef nonnull align 8 dereferenceable(28) %0, ptr noundef nonnull align 8 dereferenceable(25) %1, ptr noundef nonnull align 8 dereferenceable(25) %2, ptr noundef nonnull align 8 dereferenceable(25) %3) unnamed_addr #1 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %struct.b3Contact4Data, align 16
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %struct.b3Contact4Data, align 16
  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
  store ptr %3, ptr %8, align 8, !tbaa !5
  %20 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = call noundef i32 @_ZNK20b3AlignedObjectArrayI6b3Int4E4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %21)
  store i32 %22, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %23 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %20, i32 0, i32 1
  %24 = load ptr, ptr %23, align 8, !tbaa !11
  %25 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %24, i32 0, i32 3
  %26 = getelementptr inbounds %struct.b3Config, ptr %25, i32 0, i32 3
  %27 = load i32, ptr %26, align 4, !tbaa !13
  store i32 %27, ptr %11, align 4, !tbaa !9
  %28 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %20, i32 0, i32 1
  %29 = load ptr, ptr %28, align 8, !tbaa !11
  %30 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %29, i32 0, i32 9
  %31 = load i32, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 112, ptr %12) #5
  call void @llvm.memset.p0.i64(ptr align 16 %12, i8 0, i64 112, i1 false)
  call void @_ZN20b3AlignedObjectArrayI14b3Contact4DataE6resizeEiRKS0_(ptr noundef nonnull align 8 dereferenceable(25) %30, i32 noundef %31, ptr noundef nonnull align 16 dereferenceable(112) %12)
  call void @llvm.lifetime.end.p0(i64 112, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %32

32:                                               ; preds = %251, %4
  %33 = load i32, ptr %13, align 4, !tbaa !9
  %34 = load i32, ptr %9, align 4, !tbaa !9
  %35 = icmp slt i32 %33, %34
  br i1 %35, label %37, label %36

36:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %254

37:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = load i32, ptr %13, align 4, !tbaa !9
  %40 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI6b3Int4EixEi(ptr noundef nonnull align 8 dereferenceable(25) %38, i32 noundef %39)
  %41 = getelementptr inbounds %struct.b3Int4, ptr %40, i32 0, i32 0
  %42 = getelementptr inbounds %struct.anon.20, ptr %41, i32 0, i32 0
  %43 = load i32, ptr %42, align 16, !tbaa !33
  store i32 %43, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = load i32, ptr %13, align 4, !tbaa !9
  %46 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI6b3Int4EixEi(ptr noundef nonnull align 8 dereferenceable(25) %44, i32 noundef %45)
  %47 = getelementptr inbounds %struct.b3Int4, ptr %46, i32 0, i32 0
  %48 = getelementptr inbounds %struct.anon.20, ptr %47, i32 0, i32 1
  %49 = load i32, ptr %48, align 4, !tbaa !33
  store i32 %49, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = load i32, ptr %14, align 4, !tbaa !9
  %52 = call noundef nonnull align 16 dereferenceable(80) ptr @_ZN20b3AlignedObjectArrayI15b3RigidBodyDataEixEi(ptr noundef nonnull align 8 dereferenceable(25) %50, i32 noundef %51)
  %53 = getelementptr inbounds %struct.b3RigidBodyData, ptr %52, i32 0, i32 4
  %54 = load i32, ptr %53, align 16, !tbaa !34
  store i32 %54, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = load i32, ptr %15, align 4, !tbaa !9
  %57 = call noundef nonnull align 16 dereferenceable(80) ptr @_ZN20b3AlignedObjectArrayI15b3RigidBodyDataEixEi(ptr noundef nonnull align 8 dereferenceable(25) %55, i32 noundef %56)
  %58 = getelementptr inbounds %struct.b3RigidBodyData, ptr %57, i32 0, i32 4
  %59 = load i32, ptr %58, align 16, !tbaa !34
  store i32 %59, ptr %17, align 4, !tbaa !9
  %60 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %20, i32 0, i32 1
  %61 = load ptr, ptr %60, align 8, !tbaa !11
  %62 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %61, i32 0, i32 1
  %63 = load i32, ptr %16, align 4, !tbaa !9
  %64 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI12b3CollidableEixEi(ptr noundef nonnull align 8 dereferenceable(25) %62, i32 noundef %63)
  %65 = getelementptr inbounds %struct.b3Collidable, ptr %64, i32 0, i32 2
  %66 = load i32, ptr %65, align 4, !tbaa !40
  %67 = icmp eq i32 %66, 7
  br i1 %67, label %68, label %78

68:                                               ; preds = %37
  %69 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %20, i32 0, i32 1
  %70 = load ptr, ptr %69, align 8, !tbaa !11
  %71 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %70, i32 0, i32 1
  %72 = load i32, ptr %17, align 4, !tbaa !9
  %73 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI12b3CollidableEixEi(ptr noundef nonnull align 8 dereferenceable(25) %71, i32 noundef %72)
  %74 = getelementptr inbounds %struct.b3Collidable, ptr %73, i32 0, i32 2
  %75 = load i32, ptr %74, align 4, !tbaa !40
  %76 = icmp eq i32 %75, 3
  br i1 %76, label %77, label %78

77:                                               ; preds = %68
  br label %78

78:                                               ; preds = %77, %68, %37
  %79 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %20, i32 0, i32 1
  %80 = load ptr, ptr %79, align 8, !tbaa !11
  %81 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %80, i32 0, i32 1
  %82 = load i32, ptr %16, align 4, !tbaa !9
  %83 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI12b3CollidableEixEi(ptr noundef nonnull align 8 dereferenceable(25) %81, i32 noundef %82)
  %84 = getelementptr inbounds %struct.b3Collidable, ptr %83, i32 0, i32 2
  %85 = load i32, ptr %84, align 4, !tbaa !40
  %86 = icmp eq i32 %85, 3
  br i1 %86, label %87, label %97

87:                                               ; preds = %78
  %88 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %20, i32 0, i32 1
  %89 = load ptr, ptr %88, align 8, !tbaa !11
  %90 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %89, i32 0, i32 1
  %91 = load i32, ptr %17, align 4, !tbaa !9
  %92 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI12b3CollidableEixEi(ptr noundef nonnull align 8 dereferenceable(25) %90, i32 noundef %91)
  %93 = getelementptr inbounds %struct.b3Collidable, ptr %92, i32 0, i32 2
  %94 = load i32, ptr %93, align 4, !tbaa !40
  %95 = icmp eq i32 %94, 7
  br i1 %95, label %96, label %97

96:                                               ; preds = %87
  br label %97

97:                                               ; preds = %96, %87, %78
  %98 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %20, i32 0, i32 1
  %99 = load ptr, ptr %98, align 8, !tbaa !11
  %100 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %99, i32 0, i32 1
  %101 = load i32, ptr %16, align 4, !tbaa !9
  %102 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI12b3CollidableEixEi(ptr noundef nonnull align 8 dereferenceable(25) %100, i32 noundef %101)
  %103 = getelementptr inbounds %struct.b3Collidable, ptr %102, i32 0, i32 2
  %104 = load i32, ptr %103, align 4, !tbaa !40
  %105 = icmp eq i32 %104, 3
  br i1 %105, label %106, label %116

106:                                              ; preds = %97
  %107 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %20, i32 0, i32 1
  %108 = load ptr, ptr %107, align 8, !tbaa !11
  %109 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %108, i32 0, i32 1
  %110 = load i32, ptr %17, align 4, !tbaa !9
  %111 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI12b3CollidableEixEi(ptr noundef nonnull align 8 dereferenceable(25) %109, i32 noundef %110)
  %112 = getelementptr inbounds %struct.b3Collidable, ptr %111, i32 0, i32 2
  %113 = load i32, ptr %112, align 4, !tbaa !40
  %114 = icmp eq i32 %113, 4
  br i1 %114, label %115, label %116

115:                                              ; preds = %106
  br label %116

116:                                              ; preds = %115, %106, %97
  %117 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %20, i32 0, i32 1
  %118 = load ptr, ptr %117, align 8, !tbaa !11
  %119 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %118, i32 0, i32 1
  %120 = load i32, ptr %16, align 4, !tbaa !9
  %121 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI12b3CollidableEixEi(ptr noundef nonnull align 8 dereferenceable(25) %119, i32 noundef %120)
  %122 = getelementptr inbounds %struct.b3Collidable, ptr %121, i32 0, i32 2
  %123 = load i32, ptr %122, align 4, !tbaa !40
  %124 = icmp eq i32 %123, 4
  br i1 %124, label %125, label %135

125:                                              ; preds = %116
  %126 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %20, i32 0, i32 1
  %127 = load ptr, ptr %126, align 8, !tbaa !11
  %128 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %127, i32 0, i32 1
  %129 = load i32, ptr %17, align 4, !tbaa !9
  %130 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI12b3CollidableEixEi(ptr noundef nonnull align 8 dereferenceable(25) %128, i32 noundef %129)
  %131 = getelementptr inbounds %struct.b3Collidable, ptr %130, i32 0, i32 2
  %132 = load i32, ptr %131, align 4, !tbaa !40
  %133 = icmp eq i32 %132, 3
  br i1 %133, label %134, label %135

134:                                              ; preds = %125
  br label %135

135:                                              ; preds = %134, %125, %116
  %136 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %20, i32 0, i32 1
  %137 = load ptr, ptr %136, align 8, !tbaa !11
  %138 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %137, i32 0, i32 1
  %139 = load i32, ptr %16, align 4, !tbaa !9
  %140 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI12b3CollidableEixEi(ptr noundef nonnull align 8 dereferenceable(25) %138, i32 noundef %139)
  %141 = getelementptr inbounds %struct.b3Collidable, ptr %140, i32 0, i32 2
  %142 = load i32, ptr %141, align 4, !tbaa !40
  %143 = icmp eq i32 %142, 6
  br i1 %143, label %144, label %154

144:                                              ; preds = %135
  %145 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %20, i32 0, i32 1
  %146 = load ptr, ptr %145, align 8, !tbaa !11
  %147 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %146, i32 0, i32 1
  %148 = load i32, ptr %17, align 4, !tbaa !9
  %149 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI12b3CollidableEixEi(ptr noundef nonnull align 8 dereferenceable(25) %147, i32 noundef %148)
  %150 = getelementptr inbounds %struct.b3Collidable, ptr %149, i32 0, i32 2
  %151 = load i32, ptr %150, align 4, !tbaa !40
  %152 = icmp eq i32 %151, 6
  br i1 %152, label %153, label %154

153:                                              ; preds = %144
  br label %154

154:                                              ; preds = %153, %144, %135
  %155 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %20, i32 0, i32 1
  %156 = load ptr, ptr %155, align 8, !tbaa !11
  %157 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %156, i32 0, i32 1
  %158 = load i32, ptr %16, align 4, !tbaa !9
  %159 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI12b3CollidableEixEi(ptr noundef nonnull align 8 dereferenceable(25) %157, i32 noundef %158)
  %160 = getelementptr inbounds %struct.b3Collidable, ptr %159, i32 0, i32 2
  %161 = load i32, ptr %160, align 4, !tbaa !40
  %162 = icmp eq i32 %161, 6
  br i1 %162, label %163, label %173

163:                                              ; preds = %154
  %164 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %20, i32 0, i32 1
  %165 = load ptr, ptr %164, align 8, !tbaa !11
  %166 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %165, i32 0, i32 1
  %167 = load i32, ptr %17, align 4, !tbaa !9
  %168 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI12b3CollidableEixEi(ptr noundef nonnull align 8 dereferenceable(25) %166, i32 noundef %167)
  %169 = getelementptr inbounds %struct.b3Collidable, ptr %168, i32 0, i32 2
  %170 = load i32, ptr %169, align 4, !tbaa !40
  %171 = icmp eq i32 %170, 4
  br i1 %171, label %172, label %173

172:                                              ; preds = %163
  br label %173

173:                                              ; preds = %172, %163, %154
  %174 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %20, i32 0, i32 1
  %175 = load ptr, ptr %174, align 8, !tbaa !11
  %176 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %175, i32 0, i32 1
  %177 = load i32, ptr %16, align 4, !tbaa !9
  %178 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI12b3CollidableEixEi(ptr noundef nonnull align 8 dereferenceable(25) %176, i32 noundef %177)
  %179 = getelementptr inbounds %struct.b3Collidable, ptr %178, i32 0, i32 2
  %180 = load i32, ptr %179, align 4, !tbaa !40
  %181 = icmp eq i32 %180, 4
  br i1 %181, label %182, label %192

182:                                              ; preds = %173
  %183 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %20, i32 0, i32 1
  %184 = load ptr, ptr %183, align 8, !tbaa !11
  %185 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %184, i32 0, i32 1
  %186 = load i32, ptr %17, align 4, !tbaa !9
  %187 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI12b3CollidableEixEi(ptr noundef nonnull align 8 dereferenceable(25) %185, i32 noundef %186)
  %188 = getelementptr inbounds %struct.b3Collidable, ptr %187, i32 0, i32 2
  %189 = load i32, ptr %188, align 4, !tbaa !40
  %190 = icmp eq i32 %189, 6
  br i1 %190, label %191, label %192

191:                                              ; preds = %182
  br label %192

192:                                              ; preds = %191, %182, %173
  %193 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %20, i32 0, i32 1
  %194 = load ptr, ptr %193, align 8, !tbaa !11
  %195 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %194, i32 0, i32 1
  %196 = load i32, ptr %16, align 4, !tbaa !9
  %197 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI12b3CollidableEixEi(ptr noundef nonnull align 8 dereferenceable(25) %195, i32 noundef %196)
  %198 = getelementptr inbounds %struct.b3Collidable, ptr %197, i32 0, i32 2
  %199 = load i32, ptr %198, align 4, !tbaa !40
  %200 = icmp eq i32 %199, 3
  br i1 %200, label %201, label %250

201:                                              ; preds = %192
  %202 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %20, i32 0, i32 1
  %203 = load ptr, ptr %202, align 8, !tbaa !11
  %204 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %203, i32 0, i32 1
  %205 = load i32, ptr %17, align 4, !tbaa !9
  %206 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI12b3CollidableEixEi(ptr noundef nonnull align 8 dereferenceable(25) %204, i32 noundef %205)
  %207 = getelementptr inbounds %struct.b3Collidable, ptr %206, i32 0, i32 2
  %208 = load i32, ptr %207, align 4, !tbaa !40
  %209 = icmp eq i32 %208, 3
  br i1 %209, label %210, label %250

210:                                              ; preds = %201
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %211 = load i32, ptr %13, align 4, !tbaa !9
  %212 = load i32, ptr %14, align 4, !tbaa !9
  %213 = load i32, ptr %15, align 4, !tbaa !9
  %214 = load i32, ptr %16, align 4, !tbaa !9
  %215 = load i32, ptr %17, align 4, !tbaa !9
  %216 = load ptr, ptr %8, align 8, !tbaa !5
  %217 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %20, i32 0, i32 1
  %218 = load ptr, ptr %217, align 8, !tbaa !11
  %219 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %218, i32 0, i32 1
  %220 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %20, i32 0, i32 1
  %221 = load ptr, ptr %220, align 8, !tbaa !11
  %222 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %221, i32 0, i32 4
  %223 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %20, i32 0, i32 1
  %224 = load ptr, ptr %223, align 8, !tbaa !11
  %225 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %224, i32 0, i32 6
  %226 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %20, i32 0, i32 1
  %227 = load ptr, ptr %226, align 8, !tbaa !11
  %228 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %227, i32 0, i32 5
  %229 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %20, i32 0, i32 1
  %230 = load ptr, ptr %229, align 8, !tbaa !11
  %231 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %230, i32 0, i32 7
  %232 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %20, i32 0, i32 1
  %233 = load ptr, ptr %232, align 8, !tbaa !11
  %234 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %233, i32 0, i32 8
  %235 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %20, i32 0, i32 1
  %236 = load ptr, ptr %235, align 8, !tbaa !11
  %237 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %236, i32 0, i32 9
  %238 = load i32, ptr %11, align 4, !tbaa !9
  %239 = call noundef i32 @_Z24b3ContactConvexConvexSATiiiiiRK20b3AlignedObjectArrayI15b3RigidBodyDataERKS_I12b3CollidableERKS_I22b3ConvexPolyhedronDataERKS_I9b3Vector3ESF_RKS_IiERKS_I9b3GpuFaceERS_I14b3Contact4DataERii(i32 noundef %211, i32 noundef %212, i32 noundef %213, i32 noundef %214, i32 noundef %215, ptr noundef nonnull align 8 dereferenceable(25) %216, ptr noundef nonnull align 8 dereferenceable(25) %219, ptr noundef nonnull align 8 dereferenceable(25) %222, ptr noundef nonnull align 8 dereferenceable(25) %225, ptr noundef nonnull align 8 dereferenceable(25) %228, ptr noundef nonnull align 8 dereferenceable(25) %231, ptr noundef nonnull align 8 dereferenceable(25) %234, ptr noundef nonnull align 8 dereferenceable(25) %237, ptr noundef nonnull align 4 dereferenceable(4) %10, i32 noundef %238)
  store i32 %239, ptr %18, align 4, !tbaa !9
  %240 = load i32, ptr %18, align 4, !tbaa !9
  %241 = icmp sge i32 %240, 0
  br i1 %241, label %242, label %249

242:                                              ; preds = %210
  %243 = load i32, ptr %18, align 4, !tbaa !9
  %244 = load ptr, ptr %6, align 8, !tbaa !5
  %245 = load i32, ptr %13, align 4, !tbaa !9
  %246 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI6b3Int4EixEi(ptr noundef nonnull align 8 dereferenceable(25) %244, i32 noundef %245)
  %247 = getelementptr inbounds %struct.b3Int4, ptr %246, i32 0, i32 0
  %248 = getelementptr inbounds %struct.anon.20, ptr %247, i32 0, i32 2
  store i32 %243, ptr %248, align 8, !tbaa !33
  br label %249

249:                                              ; preds = %242, %210
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %250

250:                                              ; preds = %249, %201, %192
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %251

251:                                              ; preds = %250
  %252 = load i32, ptr %13, align 4, !tbaa !9
  %253 = add nsw i32 %252, 1
  store i32 %253, ptr %13, align 4, !tbaa !9
  br label %32, !llvm.loop !42

254:                                              ; preds = %36
  %255 = getelementptr inbounds %class.b3CpuNarrowPhase, ptr %20, i32 0, i32 1
  %256 = load ptr, ptr %255, align 8, !tbaa !11
  %257 = getelementptr inbounds %struct.b3CpuNarrowPhaseInternalData, ptr %256, i32 0, i32 9
  %258 = load i32, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 112, ptr %19) #5
  call void @llvm.memset.p0.i64(ptr align 16 %19, i8 0, i64 112, i1 false)
  call void @_ZN20b3AlignedObjectArrayI14b3Contact4DataE6resizeEiRKS0_(ptr noundef nonnull align 8 dereferenceable(25) %257, i32 noundef %258, ptr noundef nonnull align 16 dereferenceable(112) %19)
  call void @llvm.lifetime.end.p0(i64 112, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  ret void
}

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

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

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

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

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

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

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

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

attributes #0 = { 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 #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 8}
!12 = !{!"_ZTS16b3CpuNarrowPhase", !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24}
!13 = !{!14, !10, i64 108}
!14 = !{!"_ZTS28b3CpuNarrowPhaseInternalData", !15, i64 0, !18, i64 32, !20, i64 64, !22, i64 96, !23, i64 144, !25, i64 176, !25, i64 208, !27, i64 240, !29, i64 272, !31, i64 304, !10, i64 336}
!15 = !{!"_ZTS20b3AlignedObjectArrayI6b3AabbE", !16, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !17, i64 24}
!16 = !{!"_ZTS18b3AlignedAllocatorI6b3AabbLj16EE"}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"_ZTS20b3AlignedObjectArrayI12b3CollidableE", !19, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !17, i64 24}
!19 = !{!"_ZTS18b3AlignedAllocatorI12b3CollidableLj16EE"}
!20 = !{!"_ZTS20b3AlignedObjectArrayIP15b3ConvexUtilityE", !21, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !17, i64 24}
!21 = !{!"_ZTS18b3AlignedAllocatorIP15b3ConvexUtilityLj16EE"}
!22 = !{!"_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}
!23 = !{!"_ZTS20b3AlignedObjectArrayI22b3ConvexPolyhedronDataE", !24, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !17, i64 24}
!24 = !{!"_ZTS18b3AlignedAllocatorI22b3ConvexPolyhedronDataLj16EE"}
!25 = !{!"_ZTS20b3AlignedObjectArrayI9b3Vector3E", !26, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !17, i64 24}
!26 = !{!"_ZTS18b3AlignedAllocatorI9b3Vector3Lj16EE"}
!27 = !{!"_ZTS20b3AlignedObjectArrayIiE", !28, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !17, i64 24}
!28 = !{!"_ZTS18b3AlignedAllocatorIiLj16EE"}
!29 = !{!"_ZTS20b3AlignedObjectArrayI9b3GpuFaceE", !30, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !17, i64 24}
!30 = !{!"_ZTS18b3AlignedAllocatorI9b3GpuFaceLj16EE"}
!31 = !{!"_ZTS20b3AlignedObjectArrayI14b3Contact4DataE", !32, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !17, i64 24}
!32 = !{!"_ZTS18b3AlignedAllocatorI14b3Contact4DataLj16EE"}
!33 = !{!7, !7, i64 0}
!34 = !{!35, !10, i64 64}
!35 = !{!"_ZTS15b3RigidBodyData", !36, i64 0, !37, i64 16, !36, i64 32, !36, i64 48, !10, i64 64, !39, i64 68, !39, i64 72, !39, i64 76}
!36 = !{!"_ZTS9b3Vector3", !7, i64 0}
!37 = !{!"_ZTS12b3Quaternion", !38, i64 0}
!38 = !{!"_ZTS10b3QuadWord", !7, i64 0}
!39 = !{!"float", !7, i64 0}
!40 = !{!41, !10, i64 8}
!41 = !{!"_ZTS12b3Collidable", !7, i64 0, !7, i64 4, !10, i64 8, !7, i64 12}
!42 = distinct !{!42, !43}
!43 = !{!"llvm.loop.mustprogress"}


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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN16b3CpuNarrowPhase15computeContactsER20b3AlignedObjectArrayI6b3Int4ERS0_I6b3AabbERS0_I15b3RigidBodyDataE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(28) %0, ptr noundef nonnull align 8 dereferenceable(25) %1, ptr nocapture noundef nonnull readnone align 8 dereferenceable(25) %2, ptr noundef nonnull align 8 dereferenceable(25) %3) unnamed_addr #1 align 2 {
  %5 = alloca i32, align 4
  %6 = alloca %struct.b3Contact4Data, align 16
  %7 = alloca %struct.b3Contact4Data, align 16
  %8 = tail call noundef i32 @_ZNK20b3AlignedObjectArrayI6b3Int4E4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %1)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  store i32 0, ptr %5, align 4, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = load ptr, ptr %9, align 8, !tbaa !9
  %11 = getelementptr inbounds i8, ptr %10, i64 108
  %12 = load i32, ptr %11, align 4, !tbaa !12
  %13 = getelementptr inbounds i8, ptr %10, i64 304
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %6) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(112) %6, i8 0, i64 112, i1 false)
  call void @_ZN20b3AlignedObjectArrayI14b3Contact4DataE6resizeEiRKS0_(ptr noundef nonnull align 8 dereferenceable(25) %13, i32 noundef %12, ptr noundef nonnull align 16 dereferenceable(112) %6)
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %6) #5
  %14 = icmp sgt i32 %8, 0
  br i1 %14, label %.lr.ph, label %._crit_edge

._crit_edge.loopexit:                             ; preds = %133
  %.pre = load i32, ptr %5, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %4
  %15 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ 0, %4 ]
  %16 = load ptr, ptr %9, align 8, !tbaa !9
  %17 = getelementptr inbounds i8, ptr %16, i64 304
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %7) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(112) %7, i8 0, i64 112, i1 false)
  call void @_ZN20b3AlignedObjectArrayI14b3Contact4DataE6resizeEiRKS0_(ptr noundef nonnull align 8 dereferenceable(25) %17, i32 noundef %15, ptr noundef nonnull align 16 dereferenceable(112) %7)
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  ret void

.lr.ph:                                           ; preds = %4, %133
  %.041 = phi i32 [ %134, %133 ], [ 0, %4 ]
  %18 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI6b3Int4EixEi(ptr noundef nonnull align 8 dereferenceable(25) %1, i32 noundef %.041)
  %19 = load i32, ptr %18, align 16, !tbaa !32
  %20 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI6b3Int4EixEi(ptr noundef nonnull align 8 dereferenceable(25) %1, i32 noundef %.041)
  %21 = getelementptr inbounds i8, ptr %20, i64 4
  %22 = load i32, ptr %21, align 4, !tbaa !32
  %23 = call noundef nonnull align 16 dereferenceable(80) ptr @_ZN20b3AlignedObjectArrayI15b3RigidBodyDataEixEi(ptr noundef nonnull align 8 dereferenceable(25) %3, i32 noundef %19)
  %24 = getelementptr inbounds i8, ptr %23, i64 64
  %25 = load i32, ptr %24, align 16, !tbaa !33
  %26 = call noundef nonnull align 16 dereferenceable(80) ptr @_ZN20b3AlignedObjectArrayI15b3RigidBodyDataEixEi(ptr noundef nonnull align 8 dereferenceable(25) %3, i32 noundef %22)
  %27 = getelementptr inbounds i8, ptr %26, i64 64
  %28 = load i32, ptr %27, align 16, !tbaa !33
  %29 = load ptr, ptr %9, align 8, !tbaa !9
  %30 = getelementptr inbounds i8, ptr %29, i64 32
  %31 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI12b3CollidableEixEi(ptr noundef nonnull align 8 dereferenceable(25) %30, i32 noundef %25)
  %32 = getelementptr inbounds i8, ptr %31, i64 8
  %33 = load i32, ptr %32, align 4, !tbaa !39
  %34 = icmp eq i32 %33, 7
  br i1 %34, label %35, label %39

35:                                               ; preds = %.lr.ph
  %36 = load ptr, ptr %9, align 8, !tbaa !9
  %37 = getelementptr inbounds i8, ptr %36, i64 32
  %38 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI12b3CollidableEixEi(ptr noundef nonnull align 8 dereferenceable(25) %37, i32 noundef %28)
  br label %39

39:                                               ; preds = %35, %.lr.ph
  %40 = load ptr, ptr %9, align 8, !tbaa !9
  %41 = getelementptr inbounds i8, ptr %40, i64 32
  %42 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI12b3CollidableEixEi(ptr noundef nonnull align 8 dereferenceable(25) %41, i32 noundef %25)
  %43 = getelementptr inbounds i8, ptr %42, i64 8
  %44 = load i32, ptr %43, align 4, !tbaa !39
  %45 = icmp eq i32 %44, 3
  br i1 %45, label %46, label %50

46:                                               ; preds = %39
  %47 = load ptr, ptr %9, align 8, !tbaa !9
  %48 = getelementptr inbounds i8, ptr %47, i64 32
  %49 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI12b3CollidableEixEi(ptr noundef nonnull align 8 dereferenceable(25) %48, i32 noundef %28)
  br label %50

50:                                               ; preds = %46, %39
  %51 = load ptr, ptr %9, align 8, !tbaa !9
  %52 = getelementptr inbounds i8, ptr %51, i64 32
  %53 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI12b3CollidableEixEi(ptr noundef nonnull align 8 dereferenceable(25) %52, i32 noundef %25)
  %54 = getelementptr inbounds i8, ptr %53, i64 8
  %55 = load i32, ptr %54, align 4, !tbaa !39
  %56 = icmp eq i32 %55, 3
  br i1 %56, label %57, label %61

57:                                               ; preds = %50
  %58 = load ptr, ptr %9, align 8, !tbaa !9
  %59 = getelementptr inbounds i8, ptr %58, i64 32
  %60 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI12b3CollidableEixEi(ptr noundef nonnull align 8 dereferenceable(25) %59, i32 noundef %28)
  br label %61

61:                                               ; preds = %57, %50
  %62 = load ptr, ptr %9, align 8, !tbaa !9
  %63 = getelementptr inbounds i8, ptr %62, i64 32
  %64 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI12b3CollidableEixEi(ptr noundef nonnull align 8 dereferenceable(25) %63, i32 noundef %25)
  %65 = getelementptr inbounds i8, ptr %64, i64 8
  %66 = load i32, ptr %65, align 4, !tbaa !39
  %67 = icmp eq i32 %66, 4
  br i1 %67, label %68, label %72

68:                                               ; preds = %61
  %69 = load ptr, ptr %9, align 8, !tbaa !9
  %70 = getelementptr inbounds i8, ptr %69, i64 32
  %71 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI12b3CollidableEixEi(ptr noundef nonnull align 8 dereferenceable(25) %70, i32 noundef %28)
  br label %72

72:                                               ; preds = %68, %61
  %73 = load ptr, ptr %9, align 8, !tbaa !9
  %74 = getelementptr inbounds i8, ptr %73, i64 32
  %75 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI12b3CollidableEixEi(ptr noundef nonnull align 8 dereferenceable(25) %74, i32 noundef %25)
  %76 = getelementptr inbounds i8, ptr %75, i64 8
  %77 = load i32, ptr %76, align 4, !tbaa !39
  %78 = icmp eq i32 %77, 6
  br i1 %78, label %79, label %83

79:                                               ; preds = %72
  %80 = load ptr, ptr %9, align 8, !tbaa !9
  %81 = getelementptr inbounds i8, ptr %80, i64 32
  %82 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI12b3CollidableEixEi(ptr noundef nonnull align 8 dereferenceable(25) %81, i32 noundef %28)
  br label %83

83:                                               ; preds = %79, %72
  %84 = load ptr, ptr %9, align 8, !tbaa !9
  %85 = getelementptr inbounds i8, ptr %84, i64 32
  %86 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI12b3CollidableEixEi(ptr noundef nonnull align 8 dereferenceable(25) %85, i32 noundef %25)
  %87 = getelementptr inbounds i8, ptr %86, i64 8
  %88 = load i32, ptr %87, align 4, !tbaa !39
  %89 = icmp eq i32 %88, 6
  br i1 %89, label %90, label %94

90:                                               ; preds = %83
  %91 = load ptr, ptr %9, align 8, !tbaa !9
  %92 = getelementptr inbounds i8, ptr %91, i64 32
  %93 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI12b3CollidableEixEi(ptr noundef nonnull align 8 dereferenceable(25) %92, i32 noundef %28)
  br label %94

94:                                               ; preds = %90, %83
  %95 = load ptr, ptr %9, align 8, !tbaa !9
  %96 = getelementptr inbounds i8, ptr %95, i64 32
  %97 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI12b3CollidableEixEi(ptr noundef nonnull align 8 dereferenceable(25) %96, i32 noundef %25)
  %98 = getelementptr inbounds i8, ptr %97, i64 8
  %99 = load i32, ptr %98, align 4, !tbaa !39
  %100 = icmp eq i32 %99, 4
  br i1 %100, label %101, label %105

101:                                              ; preds = %94
  %102 = load ptr, ptr %9, align 8, !tbaa !9
  %103 = getelementptr inbounds i8, ptr %102, i64 32
  %104 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI12b3CollidableEixEi(ptr noundef nonnull align 8 dereferenceable(25) %103, i32 noundef %28)
  br label %105

105:                                              ; preds = %101, %94
  %106 = load ptr, ptr %9, align 8, !tbaa !9
  %107 = getelementptr inbounds i8, ptr %106, i64 32
  %108 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI12b3CollidableEixEi(ptr noundef nonnull align 8 dereferenceable(25) %107, i32 noundef %25)
  %109 = getelementptr inbounds i8, ptr %108, i64 8
  %110 = load i32, ptr %109, align 4, !tbaa !39
  %111 = icmp eq i32 %110, 3
  br i1 %111, label %112, label %133

112:                                              ; preds = %105
  %113 = load ptr, ptr %9, align 8, !tbaa !9
  %114 = getelementptr inbounds i8, ptr %113, i64 32
  %115 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI12b3CollidableEixEi(ptr noundef nonnull align 8 dereferenceable(25) %114, i32 noundef %28)
  %116 = getelementptr inbounds i8, ptr %115, i64 8
  %117 = load i32, ptr %116, align 4, !tbaa !39
  %118 = icmp eq i32 %117, 3
  br i1 %118, label %119, label %133

119:                                              ; preds = %112
  %120 = load ptr, ptr %9, align 8, !tbaa !9
  %121 = getelementptr inbounds i8, ptr %120, i64 32
  %122 = getelementptr inbounds i8, ptr %120, i64 144
  %123 = getelementptr inbounds i8, ptr %120, i64 208
  %124 = getelementptr inbounds i8, ptr %120, i64 176
  %125 = getelementptr inbounds i8, ptr %120, i64 240
  %126 = getelementptr inbounds i8, ptr %120, i64 272
  %127 = getelementptr inbounds i8, ptr %120, i64 304
  %128 = call noundef i32 @_Z24b3ContactConvexConvexSATiiiiiRK20b3AlignedObjectArrayI15b3RigidBodyDataERKS_I12b3CollidableERKS_I22b3ConvexPolyhedronDataERKS_I9b3Vector3ESF_RKS_IiERKS_I9b3GpuFaceERS_I14b3Contact4DataERii(i32 noundef %.041, i32 noundef %19, i32 noundef %22, i32 noundef %25, i32 noundef %28, ptr noundef nonnull align 8 dereferenceable(25) %3, ptr noundef nonnull align 8 dereferenceable(25) %121, ptr noundef nonnull align 8 dereferenceable(25) %122, ptr noundef nonnull align 8 dereferenceable(25) %123, ptr noundef nonnull align 8 dereferenceable(25) %124, ptr noundef nonnull align 8 dereferenceable(25) %125, ptr noundef nonnull align 8 dereferenceable(25) %126, ptr noundef nonnull align 8 dereferenceable(25) %127, ptr noundef nonnull align 4 dereferenceable(4) %5, i32 noundef %12)
  %129 = icmp sgt i32 %128, -1
  br i1 %129, label %130, label %133

130:                                              ; preds = %119
  %131 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN20b3AlignedObjectArrayI6b3Int4EixEi(ptr noundef nonnull align 8 dereferenceable(25) %1, i32 noundef %.041)
  %132 = getelementptr inbounds i8, ptr %131, i64 8
  store i32 %128, ptr %132, align 8, !tbaa !32
  br label %133

133:                                              ; preds = %119, %130, %112, %105
  %134 = add nuw nsw i32 %.041, 1
  %exitcond.not = icmp eq i32 %134, %8
  br i1 %exitcond.not, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !41
}

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"_ZTS16b3CpuNarrowPhase", !11, i64 8, !6, i64 16, !6, i64 20, !6, i64 24}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !6, i64 108}
!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, !6, i64 336}
!14 = !{!"_ZTS20b3AlignedObjectArrayI6b3AabbE", !15, i64 0, !6, i64 4, !6, i64 8, !11, i64 16, !16, i64 24}
!15 = !{!"_ZTS18b3AlignedAllocatorI6b3AabbLj16EE"}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTS20b3AlignedObjectArrayI12b3CollidableE", !18, i64 0, !6, i64 4, !6, i64 8, !11, i64 16, !16, i64 24}
!18 = !{!"_ZTS18b3AlignedAllocatorI12b3CollidableLj16EE"}
!19 = !{!"_ZTS20b3AlignedObjectArrayIP15b3ConvexUtilityE", !20, i64 0, !6, i64 4, !6, i64 8, !11, i64 16, !16, i64 24}
!20 = !{!"_ZTS18b3AlignedAllocatorIP15b3ConvexUtilityLj16EE"}
!21 = !{!"_ZTS8b3Config", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44}
!22 = !{!"_ZTS20b3AlignedObjectArrayI22b3ConvexPolyhedronDataE", !23, i64 0, !6, i64 4, !6, i64 8, !11, i64 16, !16, i64 24}
!23 = !{!"_ZTS18b3AlignedAllocatorI22b3ConvexPolyhedronDataLj16EE"}
!24 = !{!"_ZTS20b3AlignedObjectArrayI9b3Vector3E", !25, i64 0, !6, i64 4, !6, i64 8, !11, i64 16, !16, i64 24}
!25 = !{!"_ZTS18b3AlignedAllocatorI9b3Vector3Lj16EE"}
!26 = !{!"_ZTS20b3AlignedObjectArrayIiE", !27, i64 0, !6, i64 4, !6, i64 8, !11, i64 16, !16, i64 24}
!27 = !{!"_ZTS18b3AlignedAllocatorIiLj16EE"}
!28 = !{!"_ZTS20b3AlignedObjectArrayI9b3GpuFaceE", !29, i64 0, !6, i64 4, !6, i64 8, !11, i64 16, !16, i64 24}
!29 = !{!"_ZTS18b3AlignedAllocatorI9b3GpuFaceLj16EE"}
!30 = !{!"_ZTS20b3AlignedObjectArrayI14b3Contact4DataE", !31, i64 0, !6, i64 4, !6, i64 8, !11, i64 16, !16, i64 24}
!31 = !{!"_ZTS18b3AlignedAllocatorI14b3Contact4DataLj16EE"}
!32 = !{!7, !7, i64 0}
!33 = !{!34, !6, i64 64}
!34 = !{!"_ZTS15b3RigidBodyData", !35, i64 0, !36, i64 16, !35, i64 32, !35, i64 48, !6, i64 64, !38, i64 68, !38, i64 72, !38, i64 76}
!35 = !{!"_ZTS9b3Vector3", !7, i64 0}
!36 = !{!"_ZTS12b3Quaternion", !37, i64 0}
!37 = !{!"_ZTS10b3QuadWord", !7, i64 0}
!38 = !{!"float", !7, i64 0}
!39 = !{!40, !6, i64 8}
!40 = !{!"_ZTS12b3Collidable", !7, i64 0, !7, i64 4, !6, i64 8, !7, i64 12}
!41 = distinct !{!41, !42}
!42 = !{!"llvm.loop.mustprogress"}


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