; LLVM IR from jrouwe/JoltPhysics :: Jolt/Physics/Collision/Shape (ConvexShape)

; 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.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.6 }
%union.anon.6 = type { <4 x float> }
%"class.JPH::Vec3" = type { %union.anon.4 }
%union.anon.4 = type { <4 x float> }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::PolyhedronSubmergedVolumeCalculator" = type { ptr, i8, i8, i32, float, %"class.JPH::Vec3" }

@__const._ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_.faces = external hidden unnamed_addr constant [6 x [5 x i32]], align 16

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64)) #1 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_(ptr noundef nonnull align 8 dereferenceable(44) %0, ptr noundef nonnull align 16 dereferenceable(64) %1, double %2, double %3, ptr noundef nonnull align 16 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 16 dereferenceable(16) %7) unnamed_addr #4 align 2 {
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca %"class.JPH::AABox", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca [8 x %"class.JPH::Vec3"], align 16
  %22 = alloca [6 x [5 x i32]], align 16
  %23 = alloca ptr, align 8
  %24 = alloca %"class.JPH::PolyhedronSubmergedVolumeCalculator", align 16
  %25 = alloca %"class.JPH::Mat44", align 16
  %26 = alloca %"class.JPH::Mat44", align 16
  %27 = alloca %"class.JPH::Vec3", align 16
  %28 = alloca %"class.JPH::Vec3", align 16
  %29 = alloca %"class.JPH::Vec3", align 16
  %30 = alloca i32, align 4
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 0
  store double %2, ptr %35, align 16
  %36 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 1
  store double %3, ptr %36, align 8
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  store ptr %7, ptr %15, align 8, !tbaa !5
  %37 = load ptr, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #8
  %38 = call { double, double } @_ZNK3JPH4Vec33AbsEv(ptr noundef nonnull align 16 dereferenceable(16) %9)
  %39 = getelementptr inbounds %"class.JPH::Vec3", ptr %16, i32 0, i32 0
  %40 = getelementptr inbounds %union.anon.4, ptr %39, i32 0, i32 0
  %41 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %42 = extractvalue { double, double } %38, 0
  store double %42, ptr %41, align 16
  %43 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %44 = extractvalue { double, double } %38, 1
  store double %44, ptr %43, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #8
  %45 = load ptr, ptr %37, align 8, !tbaa !9
  %46 = getelementptr inbounds ptr, ptr %45, i64 4
  %47 = load ptr, ptr %46, align 8
  call void %47(ptr dead_on_unwind writable sret(%"class.JPH::AABox") align 16 %19, ptr noundef nonnull align 8 dereferenceable(26) %37)
  %48 = call { double, double } @_ZNK3JPH5AABox9GetExtentEv(ptr noundef nonnull align 16 dereferenceable(32) %19)
  %49 = getelementptr inbounds %"class.JPH::Vec3", ptr %18, i32 0, i32 0
  %50 = getelementptr inbounds %union.anon.4, ptr %49, i32 0, i32 0
  %51 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 0
  %52 = extractvalue { double, double } %48, 0
  store double %52, ptr %51, align 16
  %53 = getelementptr inbounds { double, double }, ptr %50, i32 0, i32 1
  %54 = extractvalue { double, double } %48, 1
  store double %54, ptr %53, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %20, ptr align 16 %16, i64 16, i1 false), !tbaa.struct !11
  %55 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %56 = load double, ptr %55, align 16
  %57 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %58 = load double, ptr %57, align 8
  %59 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %18, double %56, double %58)
  %60 = getelementptr inbounds %"class.JPH::Vec3", ptr %17, i32 0, i32 0
  %61 = getelementptr inbounds %union.anon.4, ptr %60, i32 0, i32 0
  %62 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 0
  %63 = extractvalue { double, double } %59, 0
  store double %63, ptr %62, align 16
  %64 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 1
  %65 = extractvalue { double, double } %59, 1
  store double %65, ptr %64, align 8
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #8
  %66 = call noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %17)
  %67 = fmul float 8.000000e+00, %66
  %68 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %17)
  %69 = fmul float %67, %68
  %70 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %17)
  %71 = fmul float %69, %70
  %72 = load ptr, ptr %13, align 8, !tbaa !5
  store float %71, ptr %72, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 128, ptr %21) #8
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %21, float noundef -1.000000e+00, float noundef -1.000000e+00, float noundef -1.000000e+00)
  %73 = getelementptr inbounds %"class.JPH::Vec3", ptr %21, i64 1
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %73, float noundef 1.000000e+00, float noundef -1.000000e+00, float noundef -1.000000e+00)
  %74 = getelementptr inbounds %"class.JPH::Vec3", ptr %21, i64 2
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %74, float noundef -1.000000e+00, float noundef 1.000000e+00, float noundef -1.000000e+00)
  %75 = getelementptr inbounds %"class.JPH::Vec3", ptr %21, i64 3
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %75, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef -1.000000e+00)
  %76 = getelementptr inbounds %"class.JPH::Vec3", ptr %21, i64 4
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %76, float noundef -1.000000e+00, float noundef -1.000000e+00, float noundef 1.000000e+00)
  %77 = getelementptr inbounds %"class.JPH::Vec3", ptr %21, i64 5
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %77, float noundef 1.000000e+00, float noundef -1.000000e+00, float noundef 1.000000e+00)
  %78 = getelementptr inbounds %"class.JPH::Vec3", ptr %21, i64 6
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %78, float noundef -1.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00)
  %79 = getelementptr inbounds %"class.JPH::Vec3", ptr %21, i64 7
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %79, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 120, ptr %22) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %22, ptr align 16 @__const._ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_.faces, i64 120, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %80 = alloca i8, i64 256, align 16
  store ptr %80, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr %25) #8
  %81 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr %26) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %27, ptr align 16 %17, i64 16, i1 false), !tbaa.struct !11
  %82 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %83 = load double, ptr %82, align 16
  %84 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %85 = load double, ptr %84, align 8
  call void @_ZN3JPH5Mat446sScaleENS_4Vec3E(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %26, double %83, double %85)
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %25, ptr noundef nonnull align 16 dereferenceable(64) %81, ptr noundef nonnull align 16 dereferenceable(64) %26)
  %86 = getelementptr inbounds [8 x %"class.JPH::Vec3"], ptr %21, i64 0, i64 0
  %87 = load ptr, ptr %12, align 8, !tbaa !5
  %88 = load ptr, ptr %23, align 8, !tbaa !5
  call void @_ZN3JPH35PolyhedronSubmergedVolumeCalculatorC2ERKNS_5Mat44EPKNS_4Vec3EiiRKNS_5PlaneEPNS0_5PointE(ptr noundef nonnull align 16 dereferenceable(48) %24, ptr noundef nonnull align 16 dereferenceable(64) %25, ptr noundef %86, i32 noundef 16, i32 noundef 8, ptr noundef nonnull align 16 dereferenceable(16) %87, ptr noundef %88)
  call void @llvm.lifetime.end.p0(i64 64, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %25) #8
  %89 = call noundef zeroext i1 @_ZNK3JPH35PolyhedronSubmergedVolumeCalculator11AreAllAboveEv(ptr noundef nonnull align 16 dereferenceable(48) %24)
  br i1 %89, label %90, label %100

90:                                               ; preds = %8
  %91 = load ptr, ptr %14, align 8, !tbaa !5
  store float 0.000000e+00, ptr %91, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #8
  %92 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %93 = getelementptr inbounds %"class.JPH::Vec3", ptr %28, i32 0, i32 0
  %94 = getelementptr inbounds %union.anon.4, ptr %93, i32 0, i32 0
  %95 = getelementptr inbounds { double, double }, ptr %94, i32 0, i32 0
  %96 = extractvalue { double, double } %92, 0
  store double %96, ptr %95, align 16
  %97 = getelementptr inbounds { double, double }, ptr %94, i32 0, i32 1
  %98 = extractvalue { double, double } %92, 1
  store double %98, ptr %97, align 8
  %99 = load ptr, ptr %15, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %99, ptr align 16 %28, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #8
  br label %163

100:                                              ; preds = %8
  %101 = call noundef zeroext i1 @_ZNK3JPH35PolyhedronSubmergedVolumeCalculator11AreAllBelowEv(ptr noundef nonnull align 16 dereferenceable(48) %24)
  br i1 %101, label %102, label %115

102:                                              ; preds = %100
  %103 = load ptr, ptr %13, align 8, !tbaa !5
  %104 = load float, ptr %103, align 4, !tbaa !13
  %105 = load ptr, ptr %14, align 8, !tbaa !5
  store float %104, ptr %105, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #8
  %106 = load ptr, ptr %11, align 8, !tbaa !5
  %107 = call { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %106)
  %108 = getelementptr inbounds %"class.JPH::Vec3", ptr %29, i32 0, i32 0
  %109 = getelementptr inbounds %union.anon.4, ptr %108, i32 0, i32 0
  %110 = getelementptr inbounds { double, double }, ptr %109, i32 0, i32 0
  %111 = extractvalue { double, double } %107, 0
  store double %111, ptr %110, align 16
  %112 = getelementptr inbounds { double, double }, ptr %109, i32 0, i32 1
  %113 = extractvalue { double, double } %107, 1
  store double %113, ptr %112, align 8
  %114 = load ptr, ptr %15, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %114, ptr align 16 %29, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #8
  br label %162

115:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  %116 = call noundef i32 @_ZNK3JPH35PolyhedronSubmergedVolumeCalculator20GetReferencePointIdxEv(ptr noundef nonnull align 16 dereferenceable(48) %24)
  %117 = shl i32 1, %116
  store i32 %117, ptr %30, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  store ptr %22, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %118 = load ptr, ptr %31, align 8, !tbaa !5
  %119 = getelementptr inbounds [6 x [5 x i32]], ptr %118, i64 0, i64 0
  store ptr %119, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %120 = load ptr, ptr %31, align 8, !tbaa !5
  %121 = getelementptr inbounds [6 x [5 x i32]], ptr %120, i64 0, i64 0
  %122 = getelementptr inbounds [5 x i32], ptr %121, i64 6
  store ptr %122, ptr %33, align 8, !tbaa !5
  br label %123

123:                                              ; preds = %156, %115
  %124 = load ptr, ptr %32, align 8, !tbaa !5
  %125 = load ptr, ptr %33, align 8, !tbaa !5
  %126 = icmp ne ptr %124, %125
  br i1 %126, label %128, label %127

127:                                              ; preds = %123
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  br label %159

128:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %129 = load ptr, ptr %32, align 8, !tbaa !5
  store ptr %129, ptr %34, align 8, !tbaa !5
  %130 = load ptr, ptr %34, align 8, !tbaa !5
  %131 = getelementptr inbounds [5 x i32], ptr %130, i64 0, i64 4
  %132 = load i32, ptr %131, align 4, !tbaa !15
  %133 = load i32, ptr %30, align 4, !tbaa !15
  %134 = and i32 %132, %133
  %135 = icmp eq i32 %134, 0
  br i1 %135, label %136, label %155

136:                                              ; preds = %128
  %137 = load ptr, ptr %34, align 8, !tbaa !5
  %138 = getelementptr inbounds [5 x i32], ptr %137, i64 0, i64 0
  %139 = load i32, ptr %138, align 4, !tbaa !15
  %140 = load ptr, ptr %34, align 8, !tbaa !5
  %141 = getelementptr inbounds [5 x i32], ptr %140, i64 0, i64 1
  %142 = load i32, ptr %141, align 4, !tbaa !15
  %143 = load ptr, ptr %34, align 8, !tbaa !5
  %144 = getelementptr inbounds [5 x i32], ptr %143, i64 0, i64 2
  %145 = load i32, ptr %144, align 4, !tbaa !15
  call void @_ZN3JPH35PolyhedronSubmergedVolumeCalculator7AddFaceEiii(ptr noundef nonnull align 16 dereferenceable(48) %24, i32 noundef %139, i32 noundef %142, i32 noundef %145)
  %146 = load ptr, ptr %34, align 8, !tbaa !5
  %147 = getelementptr inbounds [5 x i32], ptr %146, i64 0, i64 0
  %148 = load i32, ptr %147, align 4, !tbaa !15
  %149 = load ptr, ptr %34, align 8, !tbaa !5
  %150 = getelementptr inbounds [5 x i32], ptr %149, i64 0, i64 2
  %151 = load i32, ptr %150, align 4, !tbaa !15
  %152 = load ptr, ptr %34, align 8, !tbaa !5
  %153 = getelementptr inbounds [5 x i32], ptr %152, i64 0, i64 3
  %154 = load i32, ptr %153, align 4, !tbaa !15
  call void @_ZN3JPH35PolyhedronSubmergedVolumeCalculator7AddFaceEiii(ptr noundef nonnull align 16 dereferenceable(48) %24, i32 noundef %148, i32 noundef %151, i32 noundef %154)
  br label %155

155:                                              ; preds = %136, %128
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  br label %156

156:                                              ; preds = %155
  %157 = load ptr, ptr %32, align 8, !tbaa !5
  %158 = getelementptr inbounds [5 x i32], ptr %157, i32 1
  store ptr %158, ptr %32, align 8, !tbaa !5
  br label %123

159:                                              ; preds = %127
  %160 = load ptr, ptr %14, align 8, !tbaa !5
  %161 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_ZNK3JPH35PolyhedronSubmergedVolumeCalculator9GetResultERfRNS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(48) %24, ptr noundef nonnull align 4 dereferenceable(4) %160, ptr noundef nonnull align 16 dereferenceable(16) %161)
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  br label %162

162:                                              ; preds = %159, %102
  br label %163

163:                                              ; preds = %162, %90
  call void @llvm.lifetime.end.p0(i64 48, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 120, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  ret void
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec33AbsEv(ptr noundef nonnull align 16 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH5AABox9GetExtentEv(ptr noundef nonnull align 16 dereferenceable(32)) #4 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16)) #5 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16)) #6 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16)) #6 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef) unnamed_addr #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat446sScaleENS_4Vec3E(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, double, double) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH35PolyhedronSubmergedVolumeCalculatorC2ERKNS_5Mat44EPKNS_4Vec3EiiRKNS_5PlaneEPNS0_5PointE(ptr noundef nonnull align 16 dereferenceable(48), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 16 dereferenceable(16), ptr noundef) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH35PolyhedronSubmergedVolumeCalculator11AreAllAboveEv(ptr noundef nonnull align 16 dereferenceable(48)) #7 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec35sZeroEv() #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH35PolyhedronSubmergedVolumeCalculator11AreAllBelowEv(ptr noundef nonnull align 16 dereferenceable(48)) #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3JPH35PolyhedronSubmergedVolumeCalculator20GetReferencePointIdxEv(ptr noundef nonnull align 16 dereferenceable(48)) #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH35PolyhedronSubmergedVolumeCalculator7AddFaceEiii(ptr noundef nonnull align 16 dereferenceable(48), i32 noundef, i32 noundef, i32 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH35PolyhedronSubmergedVolumeCalculator9GetResultERfRNS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 16 dereferenceable(16)) #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "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 = { alwaysinline 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 #7 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 = !{!"vtable pointer", !8, i64 0}
!11 = !{i64 0, i64 16, !12}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, i64 0}


; 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.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.6 }
%union.anon.6 = type { <4 x float> }
%"class.JPH::Vec3" = type { %union.anon.4 }
%union.anon.4 = type { <4 x float> }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::PolyhedronSubmergedVolumeCalculator" = type { ptr, i8, i8, i32, float, %"class.JPH::Vec3" }

@__const._ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_.faces = external hidden unnamed_addr constant [6 x [5 x i32]], align 16

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64)) local_unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_(ptr noundef nonnull align 8 dereferenceable(44) %0, ptr noundef nonnull align 16 dereferenceable(64) %1, double %2, double %3, ptr noundef nonnull align 16 dereferenceable(16) %4, ptr nocapture noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 16 dereferenceable(16) %7) unnamed_addr #3 align 2 {
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::AABox", align 16
  %13 = alloca [8 x %"class.JPH::Vec3"], align 16
  %14 = alloca %"class.JPH::PolyhedronSubmergedVolumeCalculator", align 16
  %15 = alloca %"class.JPH::Mat44", align 16
  %16 = alloca %"class.JPH::Mat44", align 16
  store double %2, ptr %9, align 16
  %17 = getelementptr inbounds i8, ptr %9, i64 8
  store double %3, ptr %17, align 8
  %18 = call { double, double } @_ZNK3JPH4Vec33AbsEv(ptr noundef nonnull align 16 dereferenceable(16) %9)
  %19 = extractvalue { double, double } %18, 0
  %20 = extractvalue { double, double } %18, 1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #7
  %21 = load ptr, ptr %0, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %21, i64 32
  %23 = load ptr, ptr %22, align 8
  call void %23(ptr dead_on_unwind nonnull writable sret(%"class.JPH::AABox") align 16 %12, ptr noundef nonnull align 8 dereferenceable(26) %0)
  %24 = call { double, double } @_ZNK3JPH5AABox9GetExtentEv(ptr noundef nonnull align 16 dereferenceable(32) %12)
  %25 = extractvalue { double, double } %24, 0
  store double %25, ptr %11, align 16
  %26 = getelementptr inbounds i8, ptr %11, i64 8
  %27 = extractvalue { double, double } %24, 1
  store double %27, ptr %26, align 8
  %28 = call { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %19, double %20)
  %29 = extractvalue { double, double } %28, 0
  store double %29, ptr %10, align 16
  %30 = getelementptr inbounds i8, ptr %10, i64 8
  %31 = extractvalue { double, double } %28, 1
  store double %31, ptr %30, align 8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  %32 = call noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16) %10)
  %33 = fmul float %32, 8.000000e+00
  %34 = call noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16) %10)
  %35 = fmul float %33, %34
  %36 = call noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16) %10)
  %37 = fmul float %35, %36
  store float %37, ptr %5, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %13) #7
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %13, float noundef -1.000000e+00, float noundef -1.000000e+00, float noundef -1.000000e+00)
  %38 = getelementptr inbounds i8, ptr %13, i64 16
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %38, float noundef 1.000000e+00, float noundef -1.000000e+00, float noundef -1.000000e+00)
  %39 = getelementptr inbounds i8, ptr %13, i64 32
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %39, float noundef -1.000000e+00, float noundef 1.000000e+00, float noundef -1.000000e+00)
  %40 = getelementptr inbounds i8, ptr %13, i64 48
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %40, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef -1.000000e+00)
  %41 = getelementptr inbounds i8, ptr %13, i64 64
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %41, float noundef -1.000000e+00, float noundef -1.000000e+00, float noundef 1.000000e+00)
  %42 = getelementptr inbounds i8, ptr %13, i64 80
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %42, float noundef 1.000000e+00, float noundef -1.000000e+00, float noundef 1.000000e+00)
  %43 = getelementptr inbounds i8, ptr %13, i64 96
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %43, float noundef -1.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00)
  %44 = getelementptr inbounds i8, ptr %13, i64 112
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %44, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00)
  %45 = alloca [256 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %16) #7
  %.sroa.015.0.copyload = load double, ptr %10, align 16
  %.sroa.2.0.copyload = load double, ptr %30, align 8, !tbaa !11
  call void @_ZN3JPH5Mat446sScaleENS_4Vec3E(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %16, double %.sroa.015.0.copyload, double %.sroa.2.0.copyload)
  call void @_ZNK3JPH5Mat44mlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %15, ptr noundef nonnull align 16 dereferenceable(64) %1, ptr noundef nonnull align 16 dereferenceable(64) %16)
  call void @_ZN3JPH35PolyhedronSubmergedVolumeCalculatorC2ERKNS_5Mat44EPKNS_4Vec3EiiRKNS_5PlaneEPNS0_5PointE(ptr noundef nonnull align 16 dereferenceable(48) %14, ptr noundef nonnull align 16 dereferenceable(64) %15, ptr noundef nonnull %13, i32 noundef 16, i32 noundef 8, ptr noundef nonnull align 16 dereferenceable(16) %4, ptr noundef nonnull %45)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #7
  %46 = call noundef zeroext i1 @_ZNK3JPH35PolyhedronSubmergedVolumeCalculator11AreAllAboveEv(ptr noundef nonnull align 16 dereferenceable(48) %14)
  br i1 %46, label %47, label %51

47:                                               ; preds = %8
  store float 0.000000e+00, ptr %6, align 4, !tbaa !8
  %48 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %49 = extractvalue { double, double } %48, 0
  %50 = extractvalue { double, double } %48, 1
  store double %49, ptr %7, align 16
  %.sroa.414.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  store double %50, ptr %.sroa.414.0..sroa_idx, align 8, !tbaa !11
  br label %115

51:                                               ; preds = %8
  %52 = call noundef zeroext i1 @_ZNK3JPH35PolyhedronSubmergedVolumeCalculator11AreAllBelowEv(ptr noundef nonnull align 16 dereferenceable(48) %14)
  br i1 %52, label %53, label %58

53:                                               ; preds = %51
  %54 = load float, ptr %5, align 4, !tbaa !8
  store float %54, ptr %6, align 4, !tbaa !8
  %55 = call { double, double } @_ZNK3JPH5Mat4414GetTranslationEv(ptr noundef nonnull align 16 dereferenceable(64) %1)
  %56 = extractvalue { double, double } %55, 0
  %57 = extractvalue { double, double } %55, 1
  store double %56, ptr %7, align 16
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  store double %57, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !11
  br label %115

58:                                               ; preds = %51
  %59 = call noundef i32 @_ZNK3JPH35PolyhedronSubmergedVolumeCalculator20GetReferencePointIdxEv(ptr noundef nonnull align 16 dereferenceable(48) %14)
  %60 = shl nuw i32 1, %59
  %61 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_.faces, i64 16), align 16, !tbaa !12
  %62 = and i32 %61, %60
  %63 = icmp eq i32 %62, 0
  br i1 %63, label %64, label %69

64:                                               ; preds = %58
  %65 = load i32, ptr @__const._ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_.faces, align 16, !tbaa !12
  %66 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_.faces, i64 4), align 4, !tbaa !12
  %67 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_.faces, i64 8), align 8, !tbaa !12
  call void @_ZN3JPH35PolyhedronSubmergedVolumeCalculator7AddFaceEiii(ptr noundef nonnull align 16 dereferenceable(48) %14, i32 noundef %65, i32 noundef %66, i32 noundef %67)
  %68 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_.faces, i64 12), align 4, !tbaa !12
  call void @_ZN3JPH35PolyhedronSubmergedVolumeCalculator7AddFaceEiii(ptr noundef nonnull align 16 dereferenceable(48) %14, i32 noundef %65, i32 noundef %67, i32 noundef %68)
  br label %69

69:                                               ; preds = %64, %58
  %70 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_.faces, i64 36), align 4, !tbaa !12
  %71 = and i32 %70, %60
  %72 = icmp eq i32 %71, 0
  br i1 %72, label %73, label %78

73:                                               ; preds = %69
  %74 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_.faces, i64 20), align 4, !tbaa !12
  %75 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_.faces, i64 24), align 8, !tbaa !12
  %76 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_.faces, i64 28), align 4, !tbaa !12
  call void @_ZN3JPH35PolyhedronSubmergedVolumeCalculator7AddFaceEiii(ptr noundef nonnull align 16 dereferenceable(48) %14, i32 noundef %74, i32 noundef %75, i32 noundef %76)
  %77 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_.faces, i64 32), align 16, !tbaa !12
  call void @_ZN3JPH35PolyhedronSubmergedVolumeCalculator7AddFaceEiii(ptr noundef nonnull align 16 dereferenceable(48) %14, i32 noundef %74, i32 noundef %76, i32 noundef %77)
  br label %78

78:                                               ; preds = %73, %69
  %79 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_.faces, i64 56), align 8, !tbaa !12
  %80 = and i32 %79, %60
  %81 = icmp eq i32 %80, 0
  br i1 %81, label %82, label %87

82:                                               ; preds = %78
  %83 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_.faces, i64 40), align 8, !tbaa !12
  %84 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_.faces, i64 44), align 4, !tbaa !12
  %85 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_.faces, i64 48), align 16, !tbaa !12
  call void @_ZN3JPH35PolyhedronSubmergedVolumeCalculator7AddFaceEiii(ptr noundef nonnull align 16 dereferenceable(48) %14, i32 noundef %83, i32 noundef %84, i32 noundef %85)
  %86 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_.faces, i64 52), align 4, !tbaa !12
  call void @_ZN3JPH35PolyhedronSubmergedVolumeCalculator7AddFaceEiii(ptr noundef nonnull align 16 dereferenceable(48) %14, i32 noundef %83, i32 noundef %85, i32 noundef %86)
  br label %87

87:                                               ; preds = %82, %78
  %88 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_.faces, i64 76), align 4, !tbaa !12
  %89 = and i32 %88, %60
  %90 = icmp eq i32 %89, 0
  br i1 %90, label %91, label %96

91:                                               ; preds = %87
  %92 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_.faces, i64 60), align 4, !tbaa !12
  %93 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_.faces, i64 64), align 16, !tbaa !12
  %94 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_.faces, i64 68), align 4, !tbaa !12
  call void @_ZN3JPH35PolyhedronSubmergedVolumeCalculator7AddFaceEiii(ptr noundef nonnull align 16 dereferenceable(48) %14, i32 noundef %92, i32 noundef %93, i32 noundef %94)
  %95 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_.faces, i64 72), align 8, !tbaa !12
  call void @_ZN3JPH35PolyhedronSubmergedVolumeCalculator7AddFaceEiii(ptr noundef nonnull align 16 dereferenceable(48) %14, i32 noundef %92, i32 noundef %94, i32 noundef %95)
  br label %96

96:                                               ; preds = %91, %87
  %97 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_.faces, i64 96), align 16, !tbaa !12
  %98 = and i32 %97, %60
  %99 = icmp eq i32 %98, 0
  br i1 %99, label %100, label %105

100:                                              ; preds = %96
  %101 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_.faces, i64 80), align 16, !tbaa !12
  %102 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_.faces, i64 84), align 4, !tbaa !12
  %103 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_.faces, i64 88), align 8, !tbaa !12
  call void @_ZN3JPH35PolyhedronSubmergedVolumeCalculator7AddFaceEiii(ptr noundef nonnull align 16 dereferenceable(48) %14, i32 noundef %101, i32 noundef %102, i32 noundef %103)
  %104 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_.faces, i64 92), align 4, !tbaa !12
  call void @_ZN3JPH35PolyhedronSubmergedVolumeCalculator7AddFaceEiii(ptr noundef nonnull align 16 dereferenceable(48) %14, i32 noundef %101, i32 noundef %103, i32 noundef %104)
  br label %105

105:                                              ; preds = %100, %96
  %106 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_.faces, i64 116), align 4, !tbaa !12
  %107 = and i32 %106, %60
  %108 = icmp eq i32 %107, 0
  br i1 %108, label %109, label %114

109:                                              ; preds = %105
  %110 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_.faces, i64 100), align 4, !tbaa !12
  %111 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_.faces, i64 104), align 8, !tbaa !12
  %112 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_.faces, i64 108), align 4, !tbaa !12
  call void @_ZN3JPH35PolyhedronSubmergedVolumeCalculator7AddFaceEiii(ptr noundef nonnull align 16 dereferenceable(48) %14, i32 noundef %110, i32 noundef %111, i32 noundef %112)
  %113 = load i32, ptr getelementptr inbounds (i8, ptr @__const._ZNK3JPH11ConvexShape18GetSubmergedVolumeERKNS_5Mat44ENS_4Vec3ERKNS_5PlaneERfS8_RS4_.faces, i64 112), align 16, !tbaa !12
  call void @_ZN3JPH35PolyhedronSubmergedVolumeCalculator7AddFaceEiii(ptr noundef nonnull align 16 dereferenceable(48) %14, i32 noundef %110, i32 noundef %112, i32 noundef %113)
  br label %114

114:                                              ; preds = %109, %105
  call void @_ZNK3JPH35PolyhedronSubmergedVolumeCalculator9GetResultERfRNS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(48) %14, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 16 dereferenceable(16) %7)
  br label %115

115:                                              ; preds = %53, %114, %47
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  ret void
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec33AbsEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH5AABox9GetExtentEv(ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3mlES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec34GetXEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #4 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec34GetYEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #5 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3JPH4Vec34GetZEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #5 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef) unnamed_addr #4 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH5Mat446sScaleENS_4Vec3E(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, double, double) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH35PolyhedronSubmergedVolumeCalculatorC2ERKNS_5Mat44EPKNS_4Vec3EiiRKNS_5PlaneEPNS0_5PointE(ptr noundef nonnull align 16 dereferenceable(48), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 16 dereferenceable(16), ptr noundef) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH35PolyhedronSubmergedVolumeCalculator11AreAllAboveEv(ptr noundef nonnull align 16 dereferenceable(48)) local_unnamed_addr #6 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec35sZeroEv() local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH35PolyhedronSubmergedVolumeCalculator11AreAllBelowEv(ptr noundef nonnull align 16 dereferenceable(48)) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3JPH35PolyhedronSubmergedVolumeCalculator20GetReferencePointIdxEv(ptr noundef nonnull align 16 dereferenceable(48)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH35PolyhedronSubmergedVolumeCalculator7AddFaceEiii(ptr noundef nonnull align 16 dereferenceable(48), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH35PolyhedronSubmergedVolumeCalculator9GetResultERfRNS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #3 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"float", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!10, !10, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !10, i64 0}


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