; LLVM IR from idmillington/cyclone-physics :: src (collide_fine)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.cyclone::Vector3" = type { double, double, double, double }
%"class.cyclone::CollisionBox" = type { %"class.cyclone::CollisionPrimitive", %"class.cyclone::Vector3" }
%"class.cyclone::CollisionPrimitive" = type { ptr, %"class.cyclone::Matrix4", %"class.cyclone::Matrix4" }
%"class.cyclone::Matrix4" = type { [12 x double] }
%"struct.cyclone::CollisionData" = type { ptr, ptr, i32, i32, double, double, double }
%"class.cyclone::Contact" = type { [2 x ptr], double, double, %"class.cyclone::Vector3", %"class.cyclone::Vector3", double, %"class.cyclone::Matrix3", %"class.cyclone::Vector3", double, [2 x %"class.cyclone::Vector3"] }
%"class.cyclone::Matrix3" = type { [9 x double] }

@.str = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [83 x i8], align 1
@__PRETTY_FUNCTION__._ZN7cyclone17CollisionDetector9boxAndBoxERKNS_12CollisionBoxES3_PNS_13CollisionDataE = external hidden unnamed_addr constant [119 x i8], align 1

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7cyclone7Vector3mlERKS0_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind noalias writable sret(%"class.cyclone::Vector3") align 8, ptr noundef nonnull align 8 dereferenceable(200), i32 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7cyclone7Vector3miERKS0_(ptr dead_on_unwind noalias writable sret(%"class.cyclone::Vector3") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7cyclone7Vector3rmERKS0_(ptr dead_on_unwind noalias writable sret(%"class.cyclone::Vector3") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7cyclone7Vector3mlEd(ptr dead_on_unwind noalias writable sret(%"class.cyclone::Vector3") align 8, ptr noundef nonnull align 8 dereferenceable(32), double noundef) #3 align 2

declare void @_ZN7cyclone7Contact11setBodyDataEPNS_9RigidBodyES2_dd(ptr noundef nonnull align 8 dereferenceable(280), ptr noundef, ptr noundef, double noundef, double noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7cyclone13CollisionData11addContactsEj(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z19fillPointFaceBoxBoxRKN7cyclone12CollisionBoxES2_RKNS_7Vector3EPNS_13CollisionDataEjd(ptr noundef nonnull align 8 dereferenceable(232), ptr noundef nonnull align 8 dereferenceable(232), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i32 noundef, double noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7cyclone7Matrix4mlERKNS_7Vector3E(ptr dead_on_unwind noalias writable sret(%"class.cyclone::Vector3") align 8, ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7cyclone17CollisionDetector9boxAndBoxERKNS_12CollisionBoxES3_PNS_13CollisionDataE(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef nonnull align 8 dereferenceable(232) %1, ptr noundef %2) #3 align 2 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.cyclone::Vector3", align 8
  %9 = alloca %"class.cyclone::Vector3", align 8
  %10 = alloca %"class.cyclone::Vector3", align 8
  %11 = alloca double, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.cyclone::Vector3", align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.cyclone::Vector3", align 8
  %16 = alloca %"class.cyclone::Vector3", align 8
  %17 = alloca %"class.cyclone::Vector3", align 8
  %18 = alloca %"class.cyclone::Vector3", align 8
  %19 = alloca %"class.cyclone::Vector3", align 8
  %20 = alloca i32, align 4
  %21 = alloca %"class.cyclone::Vector3", align 8
  %22 = alloca %"class.cyclone::Vector3", align 8
  %23 = alloca %"class.cyclone::Vector3", align 8
  %24 = alloca %"class.cyclone::Vector3", align 8
  %25 = alloca %"class.cyclone::Vector3", align 8
  %26 = alloca %"class.cyclone::Vector3", align 8
  %27 = alloca %"class.cyclone::Vector3", align 8
  %28 = alloca %"class.cyclone::Vector3", align 8
  %29 = alloca %"class.cyclone::Vector3", align 8
  %30 = alloca %"class.cyclone::Vector3", align 8
  %31 = alloca %"class.cyclone::Vector3", align 8
  %32 = alloca %"class.cyclone::Vector3", align 8
  %33 = alloca %"class.cyclone::Vector3", align 8
  %34 = alloca %"class.cyclone::Vector3", align 8
  %35 = alloca %"class.cyclone::Vector3", align 8
  %36 = alloca %"class.cyclone::Vector3", align 8
  %37 = alloca %"class.cyclone::Vector3", align 8
  %38 = alloca %"class.cyclone::Vector3", align 8
  %39 = alloca %"class.cyclone::Vector3", align 8
  %40 = alloca %"class.cyclone::Vector3", align 8
  %41 = alloca %"class.cyclone::Vector3", align 8
  %42 = alloca %"class.cyclone::Vector3", align 8
  %43 = alloca %"class.cyclone::Vector3", align 8
  %44 = alloca %"class.cyclone::Vector3", align 8
  %45 = alloca %"class.cyclone::Vector3", align 8
  %46 = alloca %"class.cyclone::Vector3", align 8
  %47 = alloca %"class.cyclone::Vector3", align 8
  %48 = alloca %"class.cyclone::Vector3", align 8
  %49 = alloca i32, align 4
  %50 = alloca i32, align 4
  %51 = alloca %"class.cyclone::Vector3", align 8
  %52 = alloca %"class.cyclone::Vector3", align 8
  %53 = alloca %"class.cyclone::Vector3", align 8
  %54 = alloca %"class.cyclone::Vector3", align 8
  %55 = alloca %"class.cyclone::Vector3", align 8
  %56 = alloca %"class.cyclone::Vector3", align 8
  %57 = alloca i32, align 4
  %58 = alloca %"class.cyclone::Vector3", align 8
  %59 = alloca %"class.cyclone::Vector3", align 8
  %60 = alloca %"class.cyclone::Vector3", align 8
  %61 = alloca %"class.cyclone::Vector3", align 8
  %62 = alloca %"class.cyclone::Vector3", align 8
  %63 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #7
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %9, ptr noundef nonnull align 8 dereferenceable(200) %64, i32 noundef 3)
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #7
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %10, ptr noundef nonnull align 8 dereferenceable(200) %65, i32 noundef 3)
  call void @_ZNK7cyclone7Vector3miERKS0_(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %8, ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %10)
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  store double 0x7FEFFFFFFFFFFFFF, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 16777215, ptr %12, align 4, !tbaa !11
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %13, ptr noundef nonnull align 8 dereferenceable(200) %68, i32 noundef 0)
  %69 = call noundef zeroext i1 @_ZL7tryAxisRKN7cyclone12CollisionBoxES2_NS_7Vector3ERKS3_jRdRj(ptr noundef nonnull align 8 dereferenceable(232) %66, ptr noundef nonnull align 8 dereferenceable(232) %67, ptr noundef byval(%"class.cyclone::Vector3") align 8 %13, ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  br i1 %69, label %71, label %70

70:                                               ; preds = %3
  store i32 0, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %308

71:                                               ; preds = %3
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %15, ptr noundef nonnull align 8 dereferenceable(200) %74, i32 noundef 1)
  %75 = call noundef zeroext i1 @_ZL7tryAxisRKN7cyclone12CollisionBoxES2_NS_7Vector3ERKS3_jRdRj(ptr noundef nonnull align 8 dereferenceable(232) %72, ptr noundef nonnull align 8 dereferenceable(232) %73, ptr noundef byval(%"class.cyclone::Vector3") align 8 %15, ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  br i1 %75, label %77, label %76

76:                                               ; preds = %71
  store i32 0, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %308

77:                                               ; preds = %71
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %16, ptr noundef nonnull align 8 dereferenceable(200) %80, i32 noundef 2)
  %81 = call noundef zeroext i1 @_ZL7tryAxisRKN7cyclone12CollisionBoxES2_NS_7Vector3ERKS3_jRdRj(ptr noundef nonnull align 8 dereferenceable(232) %78, ptr noundef nonnull align 8 dereferenceable(232) %79, ptr noundef byval(%"class.cyclone::Vector3") align 8 %16, ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  br i1 %81, label %83, label %82

82:                                               ; preds = %77
  store i32 0, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %308

83:                                               ; preds = %77
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %17, ptr noundef nonnull align 8 dereferenceable(200) %86, i32 noundef 0)
  %87 = call noundef zeroext i1 @_ZL7tryAxisRKN7cyclone12CollisionBoxES2_NS_7Vector3ERKS3_jRdRj(ptr noundef nonnull align 8 dereferenceable(232) %84, ptr noundef nonnull align 8 dereferenceable(232) %85, ptr noundef byval(%"class.cyclone::Vector3") align 8 %17, ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef 3, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  br i1 %87, label %89, label %88

88:                                               ; preds = %83
  store i32 0, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %308

89:                                               ; preds = %83
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %18, ptr noundef nonnull align 8 dereferenceable(200) %92, i32 noundef 1)
  %93 = call noundef zeroext i1 @_ZL7tryAxisRKN7cyclone12CollisionBoxES2_NS_7Vector3ERKS3_jRdRj(ptr noundef nonnull align 8 dereferenceable(232) %90, ptr noundef nonnull align 8 dereferenceable(232) %91, ptr noundef byval(%"class.cyclone::Vector3") align 8 %18, ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef 4, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  br i1 %93, label %95, label %94

94:                                               ; preds = %89
  store i32 0, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %308

95:                                               ; preds = %89
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %19, ptr noundef nonnull align 8 dereferenceable(200) %98, i32 noundef 2)
  %99 = call noundef zeroext i1 @_ZL7tryAxisRKN7cyclone12CollisionBoxES2_NS_7Vector3ERKS3_jRdRj(ptr noundef nonnull align 8 dereferenceable(232) %96, ptr noundef nonnull align 8 dereferenceable(232) %97, ptr noundef byval(%"class.cyclone::Vector3") align 8 %19, ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef 5, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  br i1 %99, label %101, label %100

100:                                              ; preds = %95
  store i32 0, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %308

101:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %102 = load i32, ptr %12, align 4, !tbaa !11
  store i32 %102, ptr %20, align 4, !tbaa !11
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #7
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %22, ptr noundef nonnull align 8 dereferenceable(200) %105, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #7
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %23, ptr noundef nonnull align 8 dereferenceable(200) %106, i32 noundef 0)
  call void @_ZNK7cyclone7Vector3rmERKS0_(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %21, ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %23)
  %107 = call noundef zeroext i1 @_ZL7tryAxisRKN7cyclone12CollisionBoxES2_NS_7Vector3ERKS3_jRdRj(ptr noundef nonnull align 8 dereferenceable(232) %103, ptr noundef nonnull align 8 dereferenceable(232) %104, ptr noundef byval(%"class.cyclone::Vector3") align 8 %21, ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef 6, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %108 = xor i1 %107, true
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #7
  br i1 %108, label %109, label %110

109:                                              ; preds = %101
  store i32 0, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %307

110:                                              ; preds = %101
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #7
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %25, ptr noundef nonnull align 8 dereferenceable(200) %113, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #7
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %26, ptr noundef nonnull align 8 dereferenceable(200) %114, i32 noundef 1)
  call void @_ZNK7cyclone7Vector3rmERKS0_(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %24, ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(32) %26)
  %115 = call noundef zeroext i1 @_ZL7tryAxisRKN7cyclone12CollisionBoxES2_NS_7Vector3ERKS3_jRdRj(ptr noundef nonnull align 8 dereferenceable(232) %111, ptr noundef nonnull align 8 dereferenceable(232) %112, ptr noundef byval(%"class.cyclone::Vector3") align 8 %24, ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef 7, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %116 = xor i1 %115, true
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #7
  br i1 %116, label %117, label %118

117:                                              ; preds = %110
  store i32 0, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %307

118:                                              ; preds = %110
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #7
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %28, ptr noundef nonnull align 8 dereferenceable(200) %121, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #7
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %29, ptr noundef nonnull align 8 dereferenceable(200) %122, i32 noundef 2)
  call void @_ZNK7cyclone7Vector3rmERKS0_(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %27, ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull align 8 dereferenceable(32) %29)
  %123 = call noundef zeroext i1 @_ZL7tryAxisRKN7cyclone12CollisionBoxES2_NS_7Vector3ERKS3_jRdRj(ptr noundef nonnull align 8 dereferenceable(232) %119, ptr noundef nonnull align 8 dereferenceable(232) %120, ptr noundef byval(%"class.cyclone::Vector3") align 8 %27, ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef 8, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %124 = xor i1 %123, true
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #7
  br i1 %124, label %125, label %126

125:                                              ; preds = %118
  store i32 0, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %307

126:                                              ; preds = %118
  %127 = load ptr, ptr %5, align 8, !tbaa !5
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #7
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %31, ptr noundef nonnull align 8 dereferenceable(200) %129, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 32, ptr %32) #7
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %32, ptr noundef nonnull align 8 dereferenceable(200) %130, i32 noundef 0)
  call void @_ZNK7cyclone7Vector3rmERKS0_(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %30, ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull align 8 dereferenceable(32) %32)
  %131 = call noundef zeroext i1 @_ZL7tryAxisRKN7cyclone12CollisionBoxES2_NS_7Vector3ERKS3_jRdRj(ptr noundef nonnull align 8 dereferenceable(232) %127, ptr noundef nonnull align 8 dereferenceable(232) %128, ptr noundef byval(%"class.cyclone::Vector3") align 8 %30, ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef 9, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %132 = xor i1 %131, true
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #7
  br i1 %132, label %133, label %134

133:                                              ; preds = %126
  store i32 0, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %307

134:                                              ; preds = %126
  %135 = load ptr, ptr %5, align 8, !tbaa !5
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %34) #7
  %137 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %34, ptr noundef nonnull align 8 dereferenceable(200) %137, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 32, ptr %35) #7
  %138 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %35, ptr noundef nonnull align 8 dereferenceable(200) %138, i32 noundef 1)
  call void @_ZNK7cyclone7Vector3rmERKS0_(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %33, ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull align 8 dereferenceable(32) %35)
  %139 = call noundef zeroext i1 @_ZL7tryAxisRKN7cyclone12CollisionBoxES2_NS_7Vector3ERKS3_jRdRj(ptr noundef nonnull align 8 dereferenceable(232) %135, ptr noundef nonnull align 8 dereferenceable(232) %136, ptr noundef byval(%"class.cyclone::Vector3") align 8 %33, ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef 10, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %140 = xor i1 %139, true
  call void @llvm.lifetime.end.p0(i64 32, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %34) #7
  br i1 %140, label %141, label %142

141:                                              ; preds = %134
  store i32 0, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %307

142:                                              ; preds = %134
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %37) #7
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %37, ptr noundef nonnull align 8 dereferenceable(200) %145, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 32, ptr %38) #7
  %146 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %38, ptr noundef nonnull align 8 dereferenceable(200) %146, i32 noundef 2)
  call void @_ZNK7cyclone7Vector3rmERKS0_(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %36, ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef nonnull align 8 dereferenceable(32) %38)
  %147 = call noundef zeroext i1 @_ZL7tryAxisRKN7cyclone12CollisionBoxES2_NS_7Vector3ERKS3_jRdRj(ptr noundef nonnull align 8 dereferenceable(232) %143, ptr noundef nonnull align 8 dereferenceable(232) %144, ptr noundef byval(%"class.cyclone::Vector3") align 8 %36, ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef 11, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %148 = xor i1 %147, true
  call void @llvm.lifetime.end.p0(i64 32, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %37) #7
  br i1 %148, label %149, label %150

149:                                              ; preds = %142
  store i32 0, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %307

150:                                              ; preds = %142
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %40) #7
  %153 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %40, ptr noundef nonnull align 8 dereferenceable(200) %153, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 32, ptr %41) #7
  %154 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %41, ptr noundef nonnull align 8 dereferenceable(200) %154, i32 noundef 0)
  call void @_ZNK7cyclone7Vector3rmERKS0_(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %39, ptr noundef nonnull align 8 dereferenceable(32) %40, ptr noundef nonnull align 8 dereferenceable(32) %41)
  %155 = call noundef zeroext i1 @_ZL7tryAxisRKN7cyclone12CollisionBoxES2_NS_7Vector3ERKS3_jRdRj(ptr noundef nonnull align 8 dereferenceable(232) %151, ptr noundef nonnull align 8 dereferenceable(232) %152, ptr noundef byval(%"class.cyclone::Vector3") align 8 %39, ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef 12, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %156 = xor i1 %155, true
  call void @llvm.lifetime.end.p0(i64 32, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %40) #7
  br i1 %156, label %157, label %158

157:                                              ; preds = %150
  store i32 0, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %307

158:                                              ; preds = %150
  %159 = load ptr, ptr %5, align 8, !tbaa !5
  %160 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %43) #7
  %161 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %43, ptr noundef nonnull align 8 dereferenceable(200) %161, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 32, ptr %44) #7
  %162 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %44, ptr noundef nonnull align 8 dereferenceable(200) %162, i32 noundef 1)
  call void @_ZNK7cyclone7Vector3rmERKS0_(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %42, ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef nonnull align 8 dereferenceable(32) %44)
  %163 = call noundef zeroext i1 @_ZL7tryAxisRKN7cyclone12CollisionBoxES2_NS_7Vector3ERKS3_jRdRj(ptr noundef nonnull align 8 dereferenceable(232) %159, ptr noundef nonnull align 8 dereferenceable(232) %160, ptr noundef byval(%"class.cyclone::Vector3") align 8 %42, ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef 13, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %164 = xor i1 %163, true
  call void @llvm.lifetime.end.p0(i64 32, ptr %44) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %43) #7
  br i1 %164, label %165, label %166

165:                                              ; preds = %158
  store i32 0, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %307

166:                                              ; preds = %158
  %167 = load ptr, ptr %5, align 8, !tbaa !5
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %46) #7
  %169 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %46, ptr noundef nonnull align 8 dereferenceable(200) %169, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 32, ptr %47) #7
  %170 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %47, ptr noundef nonnull align 8 dereferenceable(200) %170, i32 noundef 2)
  call void @_ZNK7cyclone7Vector3rmERKS0_(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %45, ptr noundef nonnull align 8 dereferenceable(32) %46, ptr noundef nonnull align 8 dereferenceable(32) %47)
  %171 = call noundef zeroext i1 @_ZL7tryAxisRKN7cyclone12CollisionBoxES2_NS_7Vector3ERKS3_jRdRj(ptr noundef nonnull align 8 dereferenceable(232) %167, ptr noundef nonnull align 8 dereferenceable(232) %168, ptr noundef byval(%"class.cyclone::Vector3") align 8 %45, ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef 14, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %172 = xor i1 %171, true
  call void @llvm.lifetime.end.p0(i64 32, ptr %47) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %46) #7
  br i1 %172, label %173, label %174

173:                                              ; preds = %166
  store i32 0, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %307

174:                                              ; preds = %166
  %175 = load i32, ptr %12, align 4, !tbaa !11
  %176 = icmp ne i32 %175, 16777215
  br i1 %176, label %177, label %178

177:                                              ; preds = %174
  br label %180

178:                                              ; preds = %174
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 450, ptr noundef @__PRETTY_FUNCTION__._ZN7cyclone17CollisionDetector9boxAndBoxERKNS_12CollisionBoxES3_PNS_13CollisionDataE) #8
  unreachable

179:                                              ; No predecessors!
  br label %180

180:                                              ; preds = %179, %177
  %181 = load i32, ptr %12, align 4, !tbaa !11
  %182 = icmp ult i32 %181, 3
  br i1 %182, label %183, label %190

183:                                              ; preds = %180
  %184 = load ptr, ptr %5, align 8, !tbaa !5
  %185 = load ptr, ptr %6, align 8, !tbaa !5
  %186 = load ptr, ptr %7, align 8, !tbaa !5
  %187 = load i32, ptr %12, align 4, !tbaa !11
  %188 = load double, ptr %11, align 8, !tbaa !9
  call void @_Z19fillPointFaceBoxBoxRKN7cyclone12CollisionBoxES2_RKNS_7Vector3EPNS_13CollisionDataEjd(ptr noundef nonnull align 8 dereferenceable(232) %184, ptr noundef nonnull align 8 dereferenceable(232) %185, ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef %186, i32 noundef %187, double noundef %188)
  %189 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN7cyclone13CollisionData11addContactsEj(ptr noundef nonnull align 8 dereferenceable(48) %189, i32 noundef 1)
  store i32 1, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %307

190:                                              ; preds = %180
  %191 = load i32, ptr %12, align 4, !tbaa !11
  %192 = icmp ult i32 %191, 6
  br i1 %192, label %193, label %201

193:                                              ; preds = %190
  %194 = load ptr, ptr %6, align 8, !tbaa !5
  %195 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %48) #7
  call void @_ZNK7cyclone7Vector3mlEd(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %48, ptr noundef nonnull align 8 dereferenceable(32) %8, double noundef -1.000000e+00)
  %196 = load ptr, ptr %7, align 8, !tbaa !5
  %197 = load i32, ptr %12, align 4, !tbaa !11
  %198 = sub i32 %197, 3
  %199 = load double, ptr %11, align 8, !tbaa !9
  call void @_Z19fillPointFaceBoxBoxRKN7cyclone12CollisionBoxES2_RKNS_7Vector3EPNS_13CollisionDataEjd(ptr noundef nonnull align 8 dereferenceable(232) %194, ptr noundef nonnull align 8 dereferenceable(232) %195, ptr noundef nonnull align 8 dereferenceable(32) %48, ptr noundef %196, i32 noundef %198, double noundef %199)
  call void @llvm.lifetime.end.p0(i64 32, ptr %48) #7
  %200 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN7cyclone13CollisionData11addContactsEj(ptr noundef nonnull align 8 dereferenceable(48) %200, i32 noundef 1)
  store i32 1, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %307

201:                                              ; preds = %190
  %202 = load i32, ptr %12, align 4, !tbaa !11
  %203 = sub i32 %202, 6
  store i32 %203, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #7
  %204 = load i32, ptr %12, align 4, !tbaa !11
  %205 = udiv i32 %204, 3
  store i32 %205, ptr %49, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #7
  %206 = load i32, ptr %12, align 4, !tbaa !11
  %207 = urem i32 %206, 3
  store i32 %207, ptr %50, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 32, ptr %51) #7
  %208 = load ptr, ptr %5, align 8, !tbaa !5
  %209 = load i32, ptr %49, align 4, !tbaa !11
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %51, ptr noundef nonnull align 8 dereferenceable(200) %208, i32 noundef %209)
  call void @llvm.lifetime.start.p0(i64 32, ptr %52) #7
  %210 = load ptr, ptr %6, align 8, !tbaa !5
  %211 = load i32, ptr %50, align 4, !tbaa !11
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %52, ptr noundef nonnull align 8 dereferenceable(200) %210, i32 noundef %211)
  call void @llvm.lifetime.start.p0(i64 32, ptr %53) #7
  call void @_ZNK7cyclone7Vector3rmERKS0_(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %53, ptr noundef nonnull align 8 dereferenceable(32) %51, ptr noundef nonnull align 8 dereferenceable(32) %52)
  call void @_ZN7cyclone7Vector39normaliseEv(ptr noundef nonnull align 8 dereferenceable(32) %53)
  %212 = call noundef double @_ZNK7cyclone7Vector3mlERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %53, ptr noundef nonnull align 8 dereferenceable(32) %8)
  %213 = fcmp ogt double %212, 0.000000e+00
  br i1 %213, label %214, label %215

214:                                              ; preds = %201
  call void @llvm.lifetime.start.p0(i64 32, ptr %54) #7
  call void @_ZNK7cyclone7Vector3mlEd(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %54, ptr noundef nonnull align 8 dereferenceable(32) %53, double noundef -1.000000e+00)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %53, ptr align 8 %54, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 32, ptr %54) #7
  br label %215

215:                                              ; preds = %214, %201
  call void @llvm.lifetime.start.p0(i64 32, ptr %55) #7
  %216 = load ptr, ptr %5, align 8, !tbaa !5
  %217 = getelementptr inbounds %"class.cyclone::CollisionBox", ptr %216, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %55, ptr align 8 %217, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 32, ptr %56) #7
  %218 = load ptr, ptr %6, align 8, !tbaa !5
  %219 = getelementptr inbounds %"class.cyclone::CollisionBox", ptr %218, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %56, ptr align 8 %219, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #7
  store i32 0, ptr %57, align 4, !tbaa !11
  br label %220

220:                                              ; preds = %265, %215
  %221 = load i32, ptr %57, align 4, !tbaa !11
  %222 = icmp ult i32 %221, 3
  br i1 %222, label %224, label %223

223:                                              ; preds = %220
  store i32 2, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #7
  br label %268

224:                                              ; preds = %220
  %225 = load i32, ptr %57, align 4, !tbaa !11
  %226 = load i32, ptr %49, align 4, !tbaa !11
  %227 = icmp eq i32 %225, %226
  br i1 %227, label %228, label %231

228:                                              ; preds = %224
  %229 = load i32, ptr %57, align 4, !tbaa !11
  %230 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7cyclone7Vector3ixEj(ptr noundef nonnull align 8 dereferenceable(32) %55, i32 noundef %229)
  store double 0.000000e+00, ptr %230, align 8, !tbaa !9
  br label %244

231:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 32, ptr %58) #7
  %232 = load ptr, ptr %5, align 8, !tbaa !5
  %233 = load i32, ptr %57, align 4, !tbaa !11
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %58, ptr noundef nonnull align 8 dereferenceable(200) %232, i32 noundef %233)
  %234 = call noundef double @_ZNK7cyclone7Vector3mlERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %58, ptr noundef nonnull align 8 dereferenceable(32) %53)
  %235 = fcmp ogt double %234, 0.000000e+00
  call void @llvm.lifetime.end.p0(i64 32, ptr %58) #7
  br i1 %235, label %236, label %243

236:                                              ; preds = %231
  %237 = load i32, ptr %57, align 4, !tbaa !11
  %238 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7cyclone7Vector3ixEj(ptr noundef nonnull align 8 dereferenceable(32) %55, i32 noundef %237)
  %239 = load double, ptr %238, align 8, !tbaa !9
  %240 = fneg double %239
  %241 = load i32, ptr %57, align 4, !tbaa !11
  %242 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7cyclone7Vector3ixEj(ptr noundef nonnull align 8 dereferenceable(32) %55, i32 noundef %241)
  store double %240, ptr %242, align 8, !tbaa !9
  br label %243

243:                                              ; preds = %236, %231
  br label %244

244:                                              ; preds = %243, %228
  %245 = load i32, ptr %57, align 4, !tbaa !11
  %246 = load i32, ptr %50, align 4, !tbaa !11
  %247 = icmp eq i32 %245, %246
  br i1 %247, label %248, label %251

248:                                              ; preds = %244
  %249 = load i32, ptr %57, align 4, !tbaa !11
  %250 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7cyclone7Vector3ixEj(ptr noundef nonnull align 8 dereferenceable(32) %56, i32 noundef %249)
  store double 0.000000e+00, ptr %250, align 8, !tbaa !9
  br label %264

251:                                              ; preds = %244
  call void @llvm.lifetime.start.p0(i64 32, ptr %59) #7
  %252 = load ptr, ptr %6, align 8, !tbaa !5
  %253 = load i32, ptr %57, align 4, !tbaa !11
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %59, ptr noundef nonnull align 8 dereferenceable(200) %252, i32 noundef %253)
  %254 = call noundef double @_ZNK7cyclone7Vector3mlERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %59, ptr noundef nonnull align 8 dereferenceable(32) %53)
  %255 = fcmp olt double %254, 0.000000e+00
  call void @llvm.lifetime.end.p0(i64 32, ptr %59) #7
  br i1 %255, label %256, label %263

256:                                              ; preds = %251
  %257 = load i32, ptr %57, align 4, !tbaa !11
  %258 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7cyclone7Vector3ixEj(ptr noundef nonnull align 8 dereferenceable(32) %56, i32 noundef %257)
  %259 = load double, ptr %258, align 8, !tbaa !9
  %260 = fneg double %259
  %261 = load i32, ptr %57, align 4, !tbaa !11
  %262 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7cyclone7Vector3ixEj(ptr noundef nonnull align 8 dereferenceable(32) %56, i32 noundef %261)
  store double %260, ptr %262, align 8, !tbaa !9
  br label %263

263:                                              ; preds = %256, %251
  br label %264

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

265:                                              ; preds = %264
  %266 = load i32, ptr %57, align 4, !tbaa !11
  %267 = add i32 %266, 1
  store i32 %267, ptr %57, align 4, !tbaa !11
  br label %220, !llvm.loop !14

268:                                              ; preds = %223
  call void @llvm.lifetime.start.p0(i64 32, ptr %60) #7
  %269 = load ptr, ptr %5, align 8, !tbaa !5
  %270 = getelementptr inbounds %"class.cyclone::CollisionPrimitive", ptr %269, i32 0, i32 2
  call void @_ZNK7cyclone7Matrix4mlERKNS_7Vector3E(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %60, ptr noundef nonnull align 8 dereferenceable(96) %270, ptr noundef nonnull align 8 dereferenceable(32) %55)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %55, ptr align 8 %60, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 32, ptr %60) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %61) #7
  %271 = load ptr, ptr %6, align 8, !tbaa !5
  %272 = getelementptr inbounds %"class.cyclone::CollisionPrimitive", ptr %271, i32 0, i32 2
  call void @_ZNK7cyclone7Matrix4mlERKNS_7Vector3E(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %61, ptr noundef nonnull align 8 dereferenceable(96) %272, ptr noundef nonnull align 8 dereferenceable(32) %56)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %56, ptr align 8 %61, i64 32, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 32, ptr %61) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %62) #7
  %273 = load ptr, ptr %5, align 8, !tbaa !5
  %274 = getelementptr inbounds %"class.cyclone::CollisionBox", ptr %273, i32 0, i32 1
  %275 = load i32, ptr %49, align 4, !tbaa !11
  %276 = call noundef double @_ZNK7cyclone7Vector3ixEj(ptr noundef nonnull align 8 dereferenceable(32) %274, i32 noundef %275)
  %277 = load ptr, ptr %6, align 8, !tbaa !5
  %278 = getelementptr inbounds %"class.cyclone::CollisionBox", ptr %277, i32 0, i32 1
  %279 = load i32, ptr %50, align 4, !tbaa !11
  %280 = call noundef double @_ZNK7cyclone7Vector3ixEj(ptr noundef nonnull align 8 dereferenceable(32) %278, i32 noundef %279)
  %281 = load i32, ptr %20, align 4, !tbaa !11
  %282 = icmp ugt i32 %281, 2
  call void @_ZL12contactPointRKN7cyclone7Vector3ES2_dS2_S2_db(ptr dead_on_unwind writable sret(%"class.cyclone::Vector3") align 8 %62, ptr noundef nonnull align 8 dereferenceable(32) %55, ptr noundef nonnull align 8 dereferenceable(32) %51, double noundef %276, ptr noundef nonnull align 8 dereferenceable(32) %56, ptr noundef nonnull align 8 dereferenceable(32) %52, double noundef %280, i1 noundef zeroext %282)
  call void @llvm.lifetime.start.p0(i64 8, ptr %63) #7
  %283 = load ptr, ptr %7, align 8, !tbaa !5
  %284 = getelementptr inbounds %"struct.cyclone::CollisionData", ptr %283, i32 0, i32 1
  %285 = load ptr, ptr %284, align 8, !tbaa !16
  store ptr %285, ptr %63, align 8, !tbaa !5
  %286 = load double, ptr %11, align 8, !tbaa !9
  %287 = load ptr, ptr %63, align 8, !tbaa !5
  %288 = getelementptr inbounds %"class.cyclone::Contact", ptr %287, i32 0, i32 5
  store double %286, ptr %288, align 8, !tbaa !18
  %289 = load ptr, ptr %63, align 8, !tbaa !5
  %290 = getelementptr inbounds %"class.cyclone::Contact", ptr %289, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %290, ptr align 8 %53, i64 32, i1 false), !tbaa.struct !13
  %291 = load ptr, ptr %63, align 8, !tbaa !5
  %292 = getelementptr inbounds %"class.cyclone::Contact", ptr %291, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %292, ptr align 8 %62, i64 32, i1 false), !tbaa.struct !13
  %293 = load ptr, ptr %63, align 8, !tbaa !5
  %294 = load ptr, ptr %5, align 8, !tbaa !5
  %295 = getelementptr inbounds %"class.cyclone::CollisionPrimitive", ptr %294, i32 0, i32 0
  %296 = load ptr, ptr %295, align 8, !tbaa !22
  %297 = load ptr, ptr %6, align 8, !tbaa !5
  %298 = getelementptr inbounds %"class.cyclone::CollisionPrimitive", ptr %297, i32 0, i32 0
  %299 = load ptr, ptr %298, align 8, !tbaa !22
  %300 = load ptr, ptr %7, align 8, !tbaa !5
  %301 = getelementptr inbounds %"struct.cyclone::CollisionData", ptr %300, i32 0, i32 4
  %302 = load double, ptr %301, align 8, !tbaa !25
  %303 = load ptr, ptr %7, align 8, !tbaa !5
  %304 = getelementptr inbounds %"struct.cyclone::CollisionData", ptr %303, i32 0, i32 5
  %305 = load double, ptr %304, align 8, !tbaa !26
  call void @_ZN7cyclone7Contact11setBodyDataEPNS_9RigidBodyES2_dd(ptr noundef nonnull align 8 dereferenceable(280) %293, ptr noundef %296, ptr noundef %299, double noundef %302, double noundef %305)
  %306 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN7cyclone13CollisionData11addContactsEj(ptr noundef nonnull align 8 dereferenceable(48) %306, i32 noundef 1)
  store i32 1, ptr %4, align 4
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %62) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %56) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %55) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %53) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %52) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %51) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #7
  br label %307

307:                                              ; preds = %268, %193, %183, %173, %165, %157, %149, %141, %133, %125, %117, %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %308

308:                                              ; preds = %307, %100, %94, %88, %82, %76, %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #7
  %309 = load i32, ptr %4, align 4
  ret i32 %309
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL7tryAxisRKN7cyclone12CollisionBoxES2_NS_7Vector3ERKS3_jRdRj(ptr noundef nonnull align 8 dereferenceable(232), ptr noundef nonnull align 8 dereferenceable(232), ptr noundef byval(%"class.cyclone::Vector3") align 8, ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) #5

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7cyclone7Vector39normaliseEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN7cyclone7Vector3ixEj(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZL12contactPointRKN7cyclone7Vector3ES2_dS2_S2_db(ptr dead_on_unwind noalias writable sret(%"class.cyclone::Vector3") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), double noundef, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), double noundef, i1 noundef zeroext) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7cyclone7Vector3ixEj(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { "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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { noreturn 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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{i64 0, i64 8, !9, i64 8, i64 8, !9, i64 16, i64 8, !9, i64 24, i64 8, !9}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !6, i64 8}
!17 = !{!"_ZTSN7cyclone13CollisionDataE", !6, i64 0, !6, i64 8, !12, i64 16, !12, i64 20, !10, i64 24, !10, i64 32, !10, i64 40}
!18 = !{!19, !10, i64 96}
!19 = !{!"_ZTSN7cyclone7ContactE", !7, i64 0, !10, i64 16, !10, i64 24, !20, i64 32, !20, i64 64, !10, i64 96, !21, i64 104, !20, i64 176, !10, i64 208, !7, i64 216}
!20 = !{!"_ZTSN7cyclone7Vector3E", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!21 = !{!"_ZTSN7cyclone7Matrix3E", !7, i64 0}
!22 = !{!23, !6, i64 0}
!23 = !{!"_ZTSN7cyclone18CollisionPrimitiveE", !6, i64 0, !24, i64 8, !24, i64 104}
!24 = !{!"_ZTSN7cyclone7Matrix4E", !7, i64 0}
!25 = !{!17, !10, i64 24}
!26 = !{!17, !10, i64 32}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.cyclone::Vector3" = type { double, double, double, double }

@.str = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [83 x i8], align 1
@__PRETTY_FUNCTION__._ZN7cyclone17CollisionDetector9boxAndBoxERKNS_12CollisionBoxES3_PNS_13CollisionDataE = external hidden unnamed_addr constant [119 x i8], align 1

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7cyclone7Vector3mlERKS0_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind noalias writable sret(%"class.cyclone::Vector3") align 8, ptr noundef nonnull align 8 dereferenceable(200), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7cyclone7Vector3miERKS0_(ptr dead_on_unwind noalias writable sret(%"class.cyclone::Vector3") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7cyclone7Vector3rmERKS0_(ptr dead_on_unwind noalias writable sret(%"class.cyclone::Vector3") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7cyclone7Vector3mlEd(ptr dead_on_unwind noalias writable sret(%"class.cyclone::Vector3") align 8, ptr noundef nonnull align 8 dereferenceable(32), double noundef) local_unnamed_addr #3 align 2

declare void @_ZN7cyclone7Contact11setBodyDataEPNS_9RigidBodyES2_dd(ptr noundef nonnull align 8 dereferenceable(280), ptr noundef, ptr noundef, double noundef, double noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z19fillPointFaceBoxBoxRKN7cyclone12CollisionBoxES2_RKNS_7Vector3EPNS_13CollisionDataEjd(ptr noundef nonnull align 8 dereferenceable(232), ptr noundef nonnull align 8 dereferenceable(232), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i32 noundef, double noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7cyclone7Matrix4mlERKNS_7Vector3E(ptr dead_on_unwind noalias writable sret(%"class.cyclone::Vector3") align 8, ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 2) i32 @_ZN7cyclone17CollisionDetector9boxAndBoxERKNS_12CollisionBoxES3_PNS_13CollisionDataE(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef nonnull align 8 dereferenceable(232) %1, ptr noundef %2) local_unnamed_addr #3 align 2 {
  %4 = alloca %"class.cyclone::Vector3", align 8
  %5 = alloca %"class.cyclone::Vector3", align 8
  %6 = alloca %"class.cyclone::Vector3", align 8
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.cyclone::Vector3", align 8
  %10 = alloca %"class.cyclone::Vector3", align 8
  %11 = alloca %"class.cyclone::Vector3", align 8
  %12 = alloca %"class.cyclone::Vector3", align 8
  %13 = alloca %"class.cyclone::Vector3", align 8
  %14 = alloca %"class.cyclone::Vector3", align 8
  %15 = alloca %"class.cyclone::Vector3", align 8
  %16 = alloca %"class.cyclone::Vector3", align 8
  %17 = alloca %"class.cyclone::Vector3", align 8
  %18 = alloca %"class.cyclone::Vector3", align 8
  %19 = alloca %"class.cyclone::Vector3", align 8
  %20 = alloca %"class.cyclone::Vector3", align 8
  %21 = alloca %"class.cyclone::Vector3", align 8
  %22 = alloca %"class.cyclone::Vector3", align 8
  %23 = alloca %"class.cyclone::Vector3", align 8
  %24 = alloca %"class.cyclone::Vector3", align 8
  %25 = alloca %"class.cyclone::Vector3", align 8
  %26 = alloca %"class.cyclone::Vector3", align 8
  %27 = alloca %"class.cyclone::Vector3", align 8
  %28 = alloca %"class.cyclone::Vector3", align 8
  %29 = alloca %"class.cyclone::Vector3", align 8
  %30 = alloca %"class.cyclone::Vector3", align 8
  %31 = alloca %"class.cyclone::Vector3", align 8
  %32 = alloca %"class.cyclone::Vector3", align 8
  %33 = alloca %"class.cyclone::Vector3", align 8
  %34 = alloca %"class.cyclone::Vector3", align 8
  %35 = alloca %"class.cyclone::Vector3", align 8
  %36 = alloca %"class.cyclone::Vector3", align 8
  %37 = alloca %"class.cyclone::Vector3", align 8
  %38 = alloca %"class.cyclone::Vector3", align 8
  %39 = alloca %"class.cyclone::Vector3", align 8
  %40 = alloca %"class.cyclone::Vector3", align 8
  %41 = alloca %"class.cyclone::Vector3", align 8
  %42 = alloca %"class.cyclone::Vector3", align 8
  %43 = alloca %"class.cyclone::Vector3", align 8
  %44 = alloca %"class.cyclone::Vector3", align 8
  %45 = alloca %"class.cyclone::Vector3", align 8
  %46 = alloca %"class.cyclone::Vector3", align 8
  %47 = alloca %"class.cyclone::Vector3", align 8
  %48 = alloca %"class.cyclone::Vector3", align 8
  %49 = alloca %"class.cyclone::Vector3", align 8
  %50 = alloca %"class.cyclone::Vector3", align 8
  %51 = alloca %"class.cyclone::Vector3", align 8
  %52 = alloca %"class.cyclone::Vector3", align 8
  %53 = alloca %"class.cyclone::Vector3", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #7
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %5, ptr noundef nonnull align 8 dereferenceable(200) %1, i32 noundef 3)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #7
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %6, ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 3)
  call void @_ZNK7cyclone7Vector3miERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %4, ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %6)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  store double 0x7FEFFFFFFFFFFFFF, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  store i32 16777215, ptr %8, align 4, !tbaa !9
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %9, ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 0)
  %54 = call noundef zeroext i1 @_ZL7tryAxisRKN7cyclone12CollisionBoxES2_NS_7Vector3ERKS3_jRdRj(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef nonnull align 8 dereferenceable(232) %1, ptr noundef nonnull byval(%"class.cyclone::Vector3") align 8 %9, ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  br i1 %54, label %55, label %184

55:                                               ; preds = %3
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %10, ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 1)
  %56 = call noundef zeroext i1 @_ZL7tryAxisRKN7cyclone12CollisionBoxES2_NS_7Vector3ERKS3_jRdRj(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef nonnull align 8 dereferenceable(232) %1, ptr noundef nonnull byval(%"class.cyclone::Vector3") align 8 %10, ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 1, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  br i1 %56, label %57, label %184

57:                                               ; preds = %55
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %11, ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 2)
  %58 = call noundef zeroext i1 @_ZL7tryAxisRKN7cyclone12CollisionBoxES2_NS_7Vector3ERKS3_jRdRj(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef nonnull align 8 dereferenceable(232) %1, ptr noundef nonnull byval(%"class.cyclone::Vector3") align 8 %11, ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  br i1 %58, label %59, label %184

59:                                               ; preds = %57
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %12, ptr noundef nonnull align 8 dereferenceable(200) %1, i32 noundef 0)
  %60 = call noundef zeroext i1 @_ZL7tryAxisRKN7cyclone12CollisionBoxES2_NS_7Vector3ERKS3_jRdRj(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef nonnull align 8 dereferenceable(232) %1, ptr noundef nonnull byval(%"class.cyclone::Vector3") align 8 %12, ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 3, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  br i1 %60, label %61, label %184

61:                                               ; preds = %59
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %13, ptr noundef nonnull align 8 dereferenceable(200) %1, i32 noundef 1)
  %62 = call noundef zeroext i1 @_ZL7tryAxisRKN7cyclone12CollisionBoxES2_NS_7Vector3ERKS3_jRdRj(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef nonnull align 8 dereferenceable(232) %1, ptr noundef nonnull byval(%"class.cyclone::Vector3") align 8 %13, ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 4, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  br i1 %62, label %63, label %184

63:                                               ; preds = %61
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %14, ptr noundef nonnull align 8 dereferenceable(200) %1, i32 noundef 2)
  %64 = call noundef zeroext i1 @_ZL7tryAxisRKN7cyclone12CollisionBoxES2_NS_7Vector3ERKS3_jRdRj(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef nonnull align 8 dereferenceable(232) %1, ptr noundef nonnull byval(%"class.cyclone::Vector3") align 8 %14, ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 5, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  br i1 %64, label %65, label %184

65:                                               ; preds = %63
  %66 = load i32, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #7
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %16, ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #7
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %17, ptr noundef nonnull align 8 dereferenceable(200) %1, i32 noundef 0)
  call void @_ZNK7cyclone7Vector3rmERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %15, ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef nonnull align 8 dereferenceable(32) %17)
  %67 = call noundef zeroext i1 @_ZL7tryAxisRKN7cyclone12CollisionBoxES2_NS_7Vector3ERKS3_jRdRj(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef nonnull align 8 dereferenceable(232) %1, ptr noundef nonnull byval(%"class.cyclone::Vector3") align 8 %15, ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 6, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #7
  br i1 %67, label %68, label %184

68:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #7
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %19, ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %20) #7
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %20, ptr noundef nonnull align 8 dereferenceable(200) %1, i32 noundef 1)
  call void @_ZNK7cyclone7Vector3rmERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %18, ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(32) %20)
  %69 = call noundef zeroext i1 @_ZL7tryAxisRKN7cyclone12CollisionBoxES2_NS_7Vector3ERKS3_jRdRj(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef nonnull align 8 dereferenceable(232) %1, ptr noundef nonnull byval(%"class.cyclone::Vector3") align 8 %18, ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 7, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #7
  br i1 %69, label %70, label %184

70:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %22) #7
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %22, ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %23) #7
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %23, ptr noundef nonnull align 8 dereferenceable(200) %1, i32 noundef 2)
  call void @_ZNK7cyclone7Vector3rmERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %21, ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %23)
  %71 = call noundef zeroext i1 @_ZL7tryAxisRKN7cyclone12CollisionBoxES2_NS_7Vector3ERKS3_jRdRj(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef nonnull align 8 dereferenceable(232) %1, ptr noundef nonnull byval(%"class.cyclone::Vector3") align 8 %21, ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 8, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %23) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #7
  br i1 %71, label %72, label %184

72:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %25) #7
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %25, ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %26) #7
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %26, ptr noundef nonnull align 8 dereferenceable(200) %1, i32 noundef 0)
  call void @_ZNK7cyclone7Vector3rmERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %24, ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(32) %26)
  %73 = call noundef zeroext i1 @_ZL7tryAxisRKN7cyclone12CollisionBoxES2_NS_7Vector3ERKS3_jRdRj(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef nonnull align 8 dereferenceable(232) %1, ptr noundef nonnull byval(%"class.cyclone::Vector3") align 8 %24, ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 9, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %26) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %25) #7
  br i1 %73, label %74, label %184

74:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %28) #7
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %28, ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %29) #7
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %29, ptr noundef nonnull align 8 dereferenceable(200) %1, i32 noundef 1)
  call void @_ZNK7cyclone7Vector3rmERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %27, ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull align 8 dereferenceable(32) %29)
  %75 = call noundef zeroext i1 @_ZL7tryAxisRKN7cyclone12CollisionBoxES2_NS_7Vector3ERKS3_jRdRj(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef nonnull align 8 dereferenceable(232) %1, ptr noundef nonnull byval(%"class.cyclone::Vector3") align 8 %27, ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 10, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %29) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %28) #7
  br i1 %75, label %76, label %184

76:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %31) #7
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %31, ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %32) #7
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %32, ptr noundef nonnull align 8 dereferenceable(200) %1, i32 noundef 2)
  call void @_ZNK7cyclone7Vector3rmERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %30, ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef nonnull align 8 dereferenceable(32) %32)
  %77 = call noundef zeroext i1 @_ZL7tryAxisRKN7cyclone12CollisionBoxES2_NS_7Vector3ERKS3_jRdRj(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef nonnull align 8 dereferenceable(232) %1, ptr noundef nonnull byval(%"class.cyclone::Vector3") align 8 %30, ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 11, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %32) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %31) #7
  br i1 %77, label %78, label %184

78:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %34) #7
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %34, ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %35) #7
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %35, ptr noundef nonnull align 8 dereferenceable(200) %1, i32 noundef 0)
  call void @_ZNK7cyclone7Vector3rmERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %33, ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull align 8 dereferenceable(32) %35)
  %79 = call noundef zeroext i1 @_ZL7tryAxisRKN7cyclone12CollisionBoxES2_NS_7Vector3ERKS3_jRdRj(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef nonnull align 8 dereferenceable(232) %1, ptr noundef nonnull byval(%"class.cyclone::Vector3") align 8 %33, ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 12, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %35) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %34) #7
  br i1 %79, label %80, label %184

80:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %37) #7
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %37, ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %38) #7
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %38, ptr noundef nonnull align 8 dereferenceable(200) %1, i32 noundef 1)
  call void @_ZNK7cyclone7Vector3rmERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %36, ptr noundef nonnull align 8 dereferenceable(32) %37, ptr noundef nonnull align 8 dereferenceable(32) %38)
  %81 = call noundef zeroext i1 @_ZL7tryAxisRKN7cyclone12CollisionBoxES2_NS_7Vector3ERKS3_jRdRj(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef nonnull align 8 dereferenceable(232) %1, ptr noundef nonnull byval(%"class.cyclone::Vector3") align 8 %36, ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 13, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %38) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %37) #7
  br i1 %81, label %82, label %184

82:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %40) #7
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %40, ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %41) #7
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %41, ptr noundef nonnull align 8 dereferenceable(200) %1, i32 noundef 2)
  call void @_ZNK7cyclone7Vector3rmERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %39, ptr noundef nonnull align 8 dereferenceable(32) %40, ptr noundef nonnull align 8 dereferenceable(32) %41)
  %83 = call noundef zeroext i1 @_ZL7tryAxisRKN7cyclone12CollisionBoxES2_NS_7Vector3ERKS3_jRdRj(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef nonnull align 8 dereferenceable(232) %1, ptr noundef nonnull byval(%"class.cyclone::Vector3") align 8 %39, ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 14, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %41) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %40) #7
  br i1 %83, label %84, label %184

84:                                               ; preds = %82
  %85 = load i32, ptr %8, align 4, !tbaa !9
  %.not = icmp eq i32 %85, 16777215
  br i1 %.not, label %86, label %87

86:                                               ; preds = %84
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 450, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7cyclone17CollisionDetector9boxAndBoxERKNS_12CollisionBoxES3_PNS_13CollisionDataE) #8
  unreachable

87:                                               ; preds = %84
  %88 = icmp ult i32 %85, 3
  br i1 %88, label %89, label %91

89:                                               ; preds = %87
  %90 = load double, ptr %7, align 8, !tbaa !5
  call void @_Z19fillPointFaceBoxBoxRKN7cyclone12CollisionBoxES2_RKNS_7Vector3EPNS_13CollisionDataEjd(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef nonnull align 8 dereferenceable(232) %1, ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef %2, i32 noundef %85, double noundef %90)
  call void @_ZN7cyclone13CollisionData11addContactsEj(ptr noundef nonnull align 8 dereferenceable(48) %2, i32 noundef 1)
  br label %184

91:                                               ; preds = %87
  %92 = icmp ult i32 %85, 6
  br i1 %92, label %93, label %97

93:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %42) #7
  call void @_ZNK7cyclone7Vector3mlEd(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %42, ptr noundef nonnull align 8 dereferenceable(32) %4, double noundef -1.000000e+00)
  %94 = load i32, ptr %8, align 4, !tbaa !9
  %95 = add i32 %94, -3
  %96 = load double, ptr %7, align 8, !tbaa !5
  call void @_Z19fillPointFaceBoxBoxRKN7cyclone12CollisionBoxES2_RKNS_7Vector3EPNS_13CollisionDataEjd(ptr noundef nonnull align 8 dereferenceable(232) %1, ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef nonnull align 8 dereferenceable(32) %42, ptr noundef %2, i32 noundef %95, double noundef %96)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %42) #7
  call void @_ZN7cyclone13CollisionData11addContactsEj(ptr noundef nonnull align 8 dereferenceable(48) %2, i32 noundef 1)
  br label %184

97:                                               ; preds = %91
  %98 = add i32 %85, -6
  store i32 %98, ptr %8, align 4, !tbaa !9
  %99 = udiv i32 %98, 3
  %100 = urem i32 %98, 3
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %43) #7
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %43, ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef %99)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %44) #7
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %44, ptr noundef nonnull align 8 dereferenceable(200) %1, i32 noundef %100)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %45) #7
  call void @_ZNK7cyclone7Vector3rmERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %45, ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef nonnull align 8 dereferenceable(32) %44)
  call void @_ZN7cyclone7Vector39normaliseEv(ptr noundef nonnull align 8 dereferenceable(32) %45)
  %101 = call noundef double @_ZNK7cyclone7Vector3mlERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %45, ptr noundef nonnull align 8 dereferenceable(32) %4)
  %102 = fcmp ogt double %101, 0.000000e+00
  br i1 %102, label %103, label %104

103:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %46) #7
  call void @_ZNK7cyclone7Vector3mlEd(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %46, ptr noundef nonnull align 8 dereferenceable(32) %45, double noundef -1.000000e+00)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %45, ptr noundef nonnull align 8 dereferenceable(32) %46, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %46) #7
  br label %104

104:                                              ; preds = %103, %97
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %47) #7
  %105 = getelementptr inbounds i8, ptr %0, i64 200
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %47, ptr noundef nonnull align 8 dereferenceable(32) %105, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %48) #7
  %106 = getelementptr inbounds i8, ptr %1, i64 200
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %48, ptr noundef nonnull align 8 dereferenceable(32) %106, i64 32, i1 false), !tbaa.struct !11
  %107 = icmp ult i32 %98, 3
  br i1 %107, label %.sink.split, label %108

108:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %49) #7
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %49, ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 0)
  %109 = call noundef double @_ZNK7cyclone7Vector3mlERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %49, ptr noundef nonnull align 8 dereferenceable(32) %45)
  %110 = fcmp ogt double %109, 0.000000e+00
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %49) #7
  br i1 %110, label %111, label %116

111:                                              ; preds = %108
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7cyclone7Vector3ixEj(ptr noundef nonnull align 8 dereferenceable(32) %47, i32 noundef 0)
  %113 = load double, ptr %112, align 8, !tbaa !5
  %114 = fneg double %113
  br label %.sink.split

.sink.split:                                      ; preds = %104, %111
  %.sink = phi double [ %114, %111 ], [ 0.000000e+00, %104 ]
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7cyclone7Vector3ixEj(ptr noundef nonnull align 8 dereferenceable(32) %47, i32 noundef 0)
  store double %.sink, ptr %115, align 8, !tbaa !5
  br label %116

116:                                              ; preds = %.sink.split, %108
  %117 = icmp eq i32 %100, 0
  br i1 %117, label %.sink.split108, label %118

118:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %50) #7
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %50, ptr noundef nonnull align 8 dereferenceable(200) %1, i32 noundef 0)
  %119 = call noundef double @_ZNK7cyclone7Vector3mlERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %50, ptr noundef nonnull align 8 dereferenceable(32) %45)
  %120 = fcmp olt double %119, 0.000000e+00
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %50) #7
  br i1 %120, label %121, label %126

121:                                              ; preds = %118
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7cyclone7Vector3ixEj(ptr noundef nonnull align 8 dereferenceable(32) %48, i32 noundef 0)
  %123 = load double, ptr %122, align 8, !tbaa !5
  %124 = fneg double %123
  br label %.sink.split108

.sink.split108:                                   ; preds = %116, %121
  %.sink109 = phi double [ %124, %121 ], [ 0.000000e+00, %116 ]
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7cyclone7Vector3ixEj(ptr noundef nonnull align 8 dereferenceable(32) %48, i32 noundef 0)
  store double %.sink109, ptr %125, align 8, !tbaa !5
  br label %126

126:                                              ; preds = %.sink.split108, %118
  %.off = add i32 %85, -9
  %127 = icmp ult i32 %.off, 3
  br i1 %127, label %.sink.split111, label %128

128:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %49) #7
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %49, ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 1)
  %129 = call noundef double @_ZNK7cyclone7Vector3mlERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %49, ptr noundef nonnull align 8 dereferenceable(32) %45)
  %130 = fcmp ogt double %129, 0.000000e+00
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %49) #7
  br i1 %130, label %131, label %136

131:                                              ; preds = %128
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7cyclone7Vector3ixEj(ptr noundef nonnull align 8 dereferenceable(32) %47, i32 noundef 1)
  %133 = load double, ptr %132, align 8, !tbaa !5
  %134 = fneg double %133
  br label %.sink.split111

.sink.split111:                                   ; preds = %126, %131
  %.sink112 = phi double [ %134, %131 ], [ 0.000000e+00, %126 ]
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7cyclone7Vector3ixEj(ptr noundef nonnull align 8 dereferenceable(32) %47, i32 noundef 1)
  store double %.sink112, ptr %135, align 8, !tbaa !5
  br label %136

136:                                              ; preds = %.sink.split111, %128
  %137 = icmp eq i32 %100, 1
  br i1 %137, label %.sink.split114, label %138

138:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %50) #7
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %50, ptr noundef nonnull align 8 dereferenceable(200) %1, i32 noundef 1)
  %139 = call noundef double @_ZNK7cyclone7Vector3mlERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %50, ptr noundef nonnull align 8 dereferenceable(32) %45)
  %140 = fcmp olt double %139, 0.000000e+00
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %50) #7
  br i1 %140, label %141, label %146

141:                                              ; preds = %138
  %142 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7cyclone7Vector3ixEj(ptr noundef nonnull align 8 dereferenceable(32) %48, i32 noundef 1)
  %143 = load double, ptr %142, align 8, !tbaa !5
  %144 = fneg double %143
  br label %.sink.split114

.sink.split114:                                   ; preds = %136, %141
  %.sink115 = phi double [ %144, %141 ], [ 0.000000e+00, %136 ]
  %145 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7cyclone7Vector3ixEj(ptr noundef nonnull align 8 dereferenceable(32) %48, i32 noundef 1)
  store double %.sink115, ptr %145, align 8, !tbaa !5
  br label %146

146:                                              ; preds = %.sink.split114, %138
  %.off106 = add i32 %85, -12
  %147 = icmp ult i32 %.off106, 3
  br i1 %147, label %.sink.split117, label %148

148:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %49) #7
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %49, ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 2)
  %149 = call noundef double @_ZNK7cyclone7Vector3mlERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %49, ptr noundef nonnull align 8 dereferenceable(32) %45)
  %150 = fcmp ogt double %149, 0.000000e+00
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %49) #7
  br i1 %150, label %151, label %156

151:                                              ; preds = %148
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7cyclone7Vector3ixEj(ptr noundef nonnull align 8 dereferenceable(32) %47, i32 noundef 2)
  %153 = load double, ptr %152, align 8, !tbaa !5
  %154 = fneg double %153
  br label %.sink.split117

.sink.split117:                                   ; preds = %146, %151
  %.sink118 = phi double [ %154, %151 ], [ 0.000000e+00, %146 ]
  %155 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7cyclone7Vector3ixEj(ptr noundef nonnull align 8 dereferenceable(32) %47, i32 noundef 2)
  store double %.sink118, ptr %155, align 8, !tbaa !5
  br label %156

156:                                              ; preds = %.sink.split117, %148
  %157 = icmp eq i32 %100, 2
  br i1 %157, label %.sink.split120, label %158

158:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %50) #7
  call void @_ZNK7cyclone18CollisionPrimitive7getAxisEj(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %50, ptr noundef nonnull align 8 dereferenceable(200) %1, i32 noundef 2)
  %159 = call noundef double @_ZNK7cyclone7Vector3mlERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %50, ptr noundef nonnull align 8 dereferenceable(32) %45)
  %160 = fcmp olt double %159, 0.000000e+00
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %50) #7
  br i1 %160, label %161, label %166

161:                                              ; preds = %158
  %162 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7cyclone7Vector3ixEj(ptr noundef nonnull align 8 dereferenceable(32) %48, i32 noundef 2)
  %163 = load double, ptr %162, align 8, !tbaa !5
  %164 = fneg double %163
  br label %.sink.split120

.sink.split120:                                   ; preds = %156, %161
  %.sink121 = phi double [ %164, %161 ], [ 0.000000e+00, %156 ]
  %165 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN7cyclone7Vector3ixEj(ptr noundef nonnull align 8 dereferenceable(32) %48, i32 noundef 2)
  store double %.sink121, ptr %165, align 8, !tbaa !5
  br label %166

166:                                              ; preds = %.sink.split120, %158
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %51) #7
  %167 = getelementptr inbounds i8, ptr %0, i64 104
  call void @_ZNK7cyclone7Matrix4mlERKNS_7Vector3E(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %51, ptr noundef nonnull align 8 dereferenceable(96) %167, ptr noundef nonnull align 8 dereferenceable(32) %47)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %47, ptr noundef nonnull align 8 dereferenceable(32) %51, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %51) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %52) #7
  %168 = getelementptr inbounds i8, ptr %1, i64 104
  call void @_ZNK7cyclone7Matrix4mlERKNS_7Vector3E(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %52, ptr noundef nonnull align 8 dereferenceable(96) %168, ptr noundef nonnull align 8 dereferenceable(32) %48)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %48, ptr noundef nonnull align 8 dereferenceable(32) %52, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %52) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %53) #7
  %169 = call noundef double @_ZNK7cyclone7Vector3ixEj(ptr noundef nonnull align 8 dereferenceable(32) %105, i32 noundef %99)
  %170 = call noundef double @_ZNK7cyclone7Vector3ixEj(ptr noundef nonnull align 8 dereferenceable(32) %106, i32 noundef %100)
  %171 = icmp ugt i32 %66, 2
  call void @_ZL12contactPointRKN7cyclone7Vector3ES2_dS2_S2_db(ptr dead_on_unwind nonnull writable sret(%"class.cyclone::Vector3") align 8 %53, ptr noundef nonnull align 8 dereferenceable(32) %47, ptr noundef nonnull align 8 dereferenceable(32) %43, double noundef %169, ptr noundef nonnull align 8 dereferenceable(32) %48, ptr noundef nonnull align 8 dereferenceable(32) %44, double noundef %170, i1 noundef zeroext %171)
  %172 = getelementptr inbounds i8, ptr %2, i64 8
  %173 = load ptr, ptr %172, align 8, !tbaa !12
  %174 = load double, ptr %7, align 8, !tbaa !5
  %175 = getelementptr inbounds i8, ptr %173, i64 96
  store double %174, ptr %175, align 8, !tbaa !15
  %176 = getelementptr inbounds i8, ptr %173, i64 64
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %176, ptr noundef nonnull align 8 dereferenceable(32) %45, i64 32, i1 false), !tbaa.struct !11
  %177 = getelementptr inbounds i8, ptr %173, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %177, ptr noundef nonnull align 8 dereferenceable(32) %53, i64 32, i1 false), !tbaa.struct !11
  %178 = load ptr, ptr %0, align 8, !tbaa !19
  %179 = load ptr, ptr %1, align 8, !tbaa !19
  %180 = getelementptr inbounds i8, ptr %2, i64 24
  %181 = load double, ptr %180, align 8, !tbaa !22
  %182 = getelementptr inbounds i8, ptr %2, i64 32
  %183 = load double, ptr %182, align 8, !tbaa !23
  call void @_ZN7cyclone7Contact11setBodyDataEPNS_9RigidBodyES2_dd(ptr noundef nonnull align 8 dereferenceable(280) %173, ptr noundef %178, ptr noundef %179, double noundef %181, double noundef %183)
  call void @_ZN7cyclone13CollisionData11addContactsEj(ptr noundef nonnull align 8 dereferenceable(48) %2, i32 noundef 1)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %53) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %48) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %47) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %45) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %44) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %43) #7
  br label %184

184:                                              ; preds = %89, %93, %166, %65, %68, %70, %72, %74, %76, %78, %80, %82, %63, %61, %59, %57, %55, %3
  %.1 = phi i32 [ 0, %3 ], [ 0, %55 ], [ 0, %57 ], [ 0, %59 ], [ 0, %61 ], [ 0, %63 ], [ 1, %89 ], [ 1, %93 ], [ 1, %166 ], [ 0, %65 ], [ 0, %68 ], [ 0, %70 ], [ 0, %72 ], [ 0, %74 ], [ 0, %76 ], [ 0, %78 ], [ 0, %80 ], [ 0, %82 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #7
  ret i32 %.1
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL7tryAxisRKN7cyclone12CollisionBoxES2_NS_7Vector3ERKS3_jRdRj(ptr noundef nonnull align 8 dereferenceable(232), ptr noundef nonnull align 8 dereferenceable(232), ptr noundef byval(%"class.cyclone::Vector3") align 8, ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7cyclone7Vector39normaliseEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZL12contactPointRKN7cyclone7Vector3ES2_dS2_S2_db(ptr dead_on_unwind noalias writable sret(%"class.cyclone::Vector3") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), double noundef, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32), double noundef, i1 noundef zeroext) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7cyclone7Vector3ixEj(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #2 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { "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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { noreturn 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 8, !5}
!12 = !{!13, !14, i64 8}
!13 = !{!"_ZTSN7cyclone13CollisionDataE", !14, i64 0, !14, i64 8, !10, i64 16, !10, i64 20, !6, i64 24, !6, i64 32, !6, i64 40}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!16, !6, i64 96}
!16 = !{!"_ZTSN7cyclone7ContactE", !7, i64 0, !6, i64 16, !6, i64 24, !17, i64 32, !17, i64 64, !6, i64 96, !18, i64 104, !17, i64 176, !6, i64 208, !7, i64 216}
!17 = !{!"_ZTSN7cyclone7Vector3E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!18 = !{!"_ZTSN7cyclone7Matrix3E", !7, i64 0}
!19 = !{!20, !14, i64 0}
!20 = !{!"_ZTSN7cyclone18CollisionPrimitiveE", !14, i64 0, !21, i64 8, !21, i64 104}
!21 = !{!"_ZTSN7cyclone7Matrix4E", !7, i64 0}
!22 = !{!13, !6, i64 24}
!23 = !{!13, !6, i64 32}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,SROAPass,SimplifyCFGPass