; LLVM IR from devlinzhou/deterministic_physics :: UnrealDemo/Source/UnrealDemo/gphysics/src/utils (glacier_physics_utils)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i32 @_ZNK15GCollisionShape9GetRaiudsEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 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) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { i64, i32 } @_ZNK15GCollisionShape13GetHalfExternEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12GPhyscsUtils22CalculateInertiaTensorERK15GCollisionShape(ptr dead_on_unwind noalias writable sret(%class.GMatrix3) align 4 %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #4 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca %class.GFloat, align 4
  %5 = alloca %class.GFloat, align 4
  %6 = alloca %class.GFloat, align 4
  %7 = alloca %class.GFloat, align 4
  %8 = alloca %class.GFloat, align 4
  %9 = alloca %class.GFloat, align 4
  %10 = alloca %class.GFloat, align 4
  %11 = alloca %class.GFloat, align 4
  %12 = alloca %class.GFloat, align 4
  %13 = alloca %class.GFloat, align 4
  %14 = alloca %class.GFloat, align 4
  %15 = alloca %class.GFloat, align 4
  %16 = alloca %class.GFloat, align 4
  %17 = alloca %class.GFloat, align 4
  %18 = alloca %class.GVector3, align 4
  %19 = alloca %class.GVector3, align 4
  %20 = alloca %class.GVector3, align 4
  %21 = alloca { i64, i32 }, align 8
  %22 = alloca %class.GVector3, align 4
  %23 = alloca { i64, i32 }, align 8
  %24 = alloca { i64, i32 }, align 8
  %25 = alloca %class.GFloat, align 4
  %26 = alloca { i64, i32 }, align 8
  %27 = alloca %class.GFloat, align 4
  %28 = alloca %class.GFloat, align 4
  %29 = alloca %class.GFloat, align 4
  %30 = alloca %class.GFloat, align 4
  %31 = alloca %class.GFloat, align 4
  %32 = alloca %class.GFloat, align 4
  %33 = alloca %class.GFloat, align 4
  %34 = alloca %class.GFloat, align 4
  %35 = alloca %class.GFloat, align 4
  %36 = alloca %class.GFloat, align 4
  %37 = alloca %class.GFloat, align 4
  %38 = alloca %class.GFloat, align 4
  %39 = alloca %class.GFloat, align 4
  %40 = alloca %class.GFloat, align 4
  %41 = alloca %class.GFloat, align 4
  %42 = alloca %class.GFloat, align 4
  %43 = alloca %class.GFloat, align 4
  %44 = alloca %class.GFloat, align 4
  %45 = alloca %class.GFloat, align 4
  %46 = alloca %class.GFloat, align 4
  %47 = alloca %class.GFloat, align 4
  %48 = alloca %class.GFloat, align 4
  %49 = alloca %class.GFloat, align 4
  %50 = alloca %class.GFloat, align 4
  %51 = alloca %class.GFloat, align 4
  %52 = alloca %class.GFloat, align 4
  %53 = alloca %class.GFloat, align 4
  %54 = alloca %class.GFloat, align 4
  %55 = alloca %class.GFloat, align 4
  %56 = alloca %class.GFloat, align 4
  %57 = alloca %class.GFloat, align 4
  %58 = alloca %class.GFloat, align 4
  %59 = alloca %class.GFloat, align 4
  %60 = alloca %class.GFloat, align 4
  %61 = alloca %class.GFloat, align 4
  %62 = alloca %class.GFloat, align 4
  %63 = alloca %class.GFloat, align 4
  %64 = alloca %class.GFloat, align 4
  %65 = alloca %class.GFloat, align 4
  %66 = alloca %class.GFloat, align 4
  %67 = alloca %class.GFloat, align 4
  %68 = alloca %class.GFloat, align 4
  %69 = alloca %class.GFloat, align 4
  %70 = alloca %class.GFloat, align 4
  %71 = alloca %class.GFloat, align 4
  %72 = alloca %class.GFloat, align 4
  %73 = alloca %class.GFloat, align 4
  %74 = alloca %class.GFloat, align 4
  %75 = alloca %class.GFloat, align 4
  %76 = alloca %class.GFloat, align 4
  %77 = alloca %class.GFloat, align 4
  %78 = alloca %class.GFloat, align 4
  %79 = alloca %class.GFloat, align 4
  %80 = alloca %class.GFloat, align 4
  %81 = alloca %class.GFloat, align 4
  %82 = alloca %class.GFloat, align 4
  %83 = alloca %class.GFloat, align 4
  %84 = alloca %class.GFloat, align 4
  %85 = alloca %class.GFloat, align 4
  store ptr %1, ptr %3, align 8, !tbaa !5
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  %87 = getelementptr inbounds %class.GCollisionShape, ptr %86, i32 0, i32 0
  %88 = load i32, ptr %87, align 8, !tbaa !9
  switch i32 %88, label %338 [
    i32 0, label %89
    i32 1, label %90
    i32 2, label %137
    i32 3, label %196
    i32 4, label %266
    i32 5, label %333
    i32 6, label %334
    i32 7, label %335
    i32 8, label %336
    i32 9, label %337
  ]

89:                                               ; preds = %2
  call void @_ZN8GMatrix38IdentityEv(ptr dead_on_unwind writable sret(%class.GMatrix3) align 4 %0)
  br label %340

90:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %91 = load ptr, ptr %3, align 8, !tbaa !5
  %92 = call i32 @_ZNK15GCollisionShape9GetRaiudsEv(ptr noundef nonnull align 8 dereferenceable(24) %91)
  %93 = getelementptr inbounds %class.GFloat, ptr %6, i32 0, i32 0
  store i32 %92, ptr %93, align 4
  %94 = load ptr, ptr %3, align 8, !tbaa !5
  %95 = call i32 @_ZNK15GCollisionShape9GetRaiudsEv(ptr noundef nonnull align 8 dereferenceable(24) %94)
  %96 = getelementptr inbounds %class.GFloat, ptr %7, i32 0, i32 0
  store i32 %95, ptr %96, align 4
  %97 = getelementptr inbounds %class.GFloat, ptr %7, i32 0, i32 0
  %98 = load i32, ptr %97, align 4
  %99 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %6, i32 %98)
  %100 = getelementptr inbounds %class.GFloat, ptr %5, i32 0, i32 0
  store i32 %99, ptr %100, align 4
  %101 = call i32 @_ZN5GMath7Makef32Eijj(i32 noundef 0, i32 noundef 4, i32 noundef 10)
  %102 = getelementptr inbounds %class.GFloat, ptr %8, i32 0, i32 0
  store i32 %101, ptr %102, align 4
  %103 = getelementptr inbounds %class.GFloat, ptr %8, i32 0, i32 0
  %104 = load i32, ptr %103, align 4
  %105 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 %104)
  %106 = getelementptr inbounds %class.GFloat, ptr %4, i32 0, i32 0
  store i32 %105, ptr %106, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %4, i64 4, i1 false), !tbaa.struct !15
  %107 = call i32 @_ZN5GMath4ZeroEv()
  %108 = getelementptr inbounds %class.GFloat, ptr %10, i32 0, i32 0
  store i32 %107, ptr %108, align 4
  %109 = call i32 @_ZN5GMath4ZeroEv()
  %110 = getelementptr inbounds %class.GFloat, ptr %11, i32 0, i32 0
  store i32 %109, ptr %110, align 4
  %111 = call i32 @_ZN5GMath4ZeroEv()
  %112 = getelementptr inbounds %class.GFloat, ptr %12, i32 0, i32 0
  store i32 %111, ptr %112, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %4, i64 4, i1 false), !tbaa.struct !15
  %113 = call i32 @_ZN5GMath4ZeroEv()
  %114 = getelementptr inbounds %class.GFloat, ptr %14, i32 0, i32 0
  store i32 %113, ptr %114, align 4
  %115 = call i32 @_ZN5GMath4ZeroEv()
  %116 = getelementptr inbounds %class.GFloat, ptr %15, i32 0, i32 0
  store i32 %115, ptr %116, align 4
  %117 = call i32 @_ZN5GMath4ZeroEv()
  %118 = getelementptr inbounds %class.GFloat, ptr %16, i32 0, i32 0
  store i32 %117, ptr %118, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %4, i64 4, i1 false), !tbaa.struct !15
  %119 = getelementptr inbounds %class.GFloat, ptr %9, i32 0, i32 0
  %120 = load i32, ptr %119, align 4
  %121 = getelementptr inbounds %class.GFloat, ptr %10, i32 0, i32 0
  %122 = load i32, ptr %121, align 4
  %123 = getelementptr inbounds %class.GFloat, ptr %11, i32 0, i32 0
  %124 = load i32, ptr %123, align 4
  %125 = getelementptr inbounds %class.GFloat, ptr %12, i32 0, i32 0
  %126 = load i32, ptr %125, align 4
  %127 = getelementptr inbounds %class.GFloat, ptr %13, i32 0, i32 0
  %128 = load i32, ptr %127, align 4
  %129 = getelementptr inbounds %class.GFloat, ptr %14, i32 0, i32 0
  %130 = load i32, ptr %129, align 4
  %131 = getelementptr inbounds %class.GFloat, ptr %15, i32 0, i32 0
  %132 = load i32, ptr %131, align 4
  %133 = getelementptr inbounds %class.GFloat, ptr %16, i32 0, i32 0
  %134 = load i32, ptr %133, align 4
  %135 = getelementptr inbounds %class.GFloat, ptr %17, i32 0, i32 0
  %136 = load i32, ptr %135, align 4
  call void @_ZN8GMatrix3C2E6GFloatS0_S0_S0_S0_S0_S0_S0_S0_(ptr noundef nonnull align 4 dereferenceable(36) %0, i32 %120, i32 %122, i32 %124, i32 %126, i32 %128, i32 %130, i32 %132, i32 %134, i32 %136)
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %340

137:                                              ; preds = %2
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #5
  %138 = load ptr, ptr %3, align 8, !tbaa !5
  %139 = call { i64, i32 } @_ZNK15GCollisionShape13GetHalfExternEv(ptr noundef nonnull align 8 dereferenceable(24) %138)
  store { i64, i32 } %139, ptr %21, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 8 %21, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %22) #5
  %140 = load ptr, ptr %3, align 8, !tbaa !5
  %141 = call { i64, i32 } @_ZNK15GCollisionShape13GetHalfExternEv(ptr noundef nonnull align 8 dereferenceable(24) %140)
  store { i64, i32 } %141, ptr %23, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 8 %23, i64 12, i1 false)
  %142 = call { i64, i32 } @_ZNK8GVector3mlERKS_(ptr noundef nonnull align 4 dereferenceable(12) %20, ptr noundef nonnull align 4 dereferenceable(12) %22)
  store { i64, i32 } %142, ptr %24, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 8 %24, i64 12, i1 false)
  %143 = call i32 @_ZN5GMath7Makef32Eijj(i32 noundef 0, i32 noundef 1, i32 noundef 3)
  %144 = getelementptr inbounds %class.GFloat, ptr %25, i32 0, i32 0
  store i32 %143, ptr %144, align 4
  %145 = getelementptr inbounds %class.GFloat, ptr %25, i32 0, i32 0
  %146 = load i32, ptr %145, align 4
  %147 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %19, i32 %146)
  store { i64, i32 } %147, ptr %26, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 8 %26, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #5
  %148 = getelementptr inbounds %class.GVector3, ptr %18, i32 0, i32 1
  %149 = getelementptr inbounds %class.GVector3, ptr %18, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %149, i64 4, i1 false), !tbaa.struct !15
  %150 = getelementptr inbounds %class.GFloat, ptr %28, i32 0, i32 0
  %151 = load i32, ptr %150, align 4
  %152 = call i32 @_ZNK6GFloatplES_(ptr noundef nonnull align 4 dereferenceable(4) %148, i32 %151)
  %153 = getelementptr inbounds %class.GFloat, ptr %27, i32 0, i32 0
  store i32 %152, ptr %153, align 4
  %154 = call i32 @_ZN5GMath4ZeroEv()
  %155 = getelementptr inbounds %class.GFloat, ptr %29, i32 0, i32 0
  store i32 %154, ptr %155, align 4
  %156 = call i32 @_ZN5GMath4ZeroEv()
  %157 = getelementptr inbounds %class.GFloat, ptr %30, i32 0, i32 0
  store i32 %156, ptr %157, align 4
  %158 = call i32 @_ZN5GMath4ZeroEv()
  %159 = getelementptr inbounds %class.GFloat, ptr %31, i32 0, i32 0
  store i32 %158, ptr %159, align 4
  %160 = getelementptr inbounds %class.GVector3, ptr %18, i32 0, i32 0
  %161 = getelementptr inbounds %class.GVector3, ptr %18, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %161, i64 4, i1 false), !tbaa.struct !15
  %162 = getelementptr inbounds %class.GFloat, ptr %33, i32 0, i32 0
  %163 = load i32, ptr %162, align 4
  %164 = call i32 @_ZNK6GFloatplES_(ptr noundef nonnull align 4 dereferenceable(4) %160, i32 %163)
  %165 = getelementptr inbounds %class.GFloat, ptr %32, i32 0, i32 0
  store i32 %164, ptr %165, align 4
  %166 = call i32 @_ZN5GMath4ZeroEv()
  %167 = getelementptr inbounds %class.GFloat, ptr %34, i32 0, i32 0
  store i32 %166, ptr %167, align 4
  %168 = call i32 @_ZN5GMath4ZeroEv()
  %169 = getelementptr inbounds %class.GFloat, ptr %35, i32 0, i32 0
  store i32 %168, ptr %169, align 4
  %170 = call i32 @_ZN5GMath4ZeroEv()
  %171 = getelementptr inbounds %class.GFloat, ptr %36, i32 0, i32 0
  store i32 %170, ptr %171, align 4
  %172 = getelementptr inbounds %class.GVector3, ptr %18, i32 0, i32 0
  %173 = getelementptr inbounds %class.GVector3, ptr %18, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 4 %173, i64 4, i1 false), !tbaa.struct !15
  %174 = getelementptr inbounds %class.GFloat, ptr %38, i32 0, i32 0
  %175 = load i32, ptr %174, align 4
  %176 = call i32 @_ZNK6GFloatplES_(ptr noundef nonnull align 4 dereferenceable(4) %172, i32 %175)
  %177 = getelementptr inbounds %class.GFloat, ptr %37, i32 0, i32 0
  store i32 %176, ptr %177, align 4
  %178 = getelementptr inbounds %class.GFloat, ptr %27, i32 0, i32 0
  %179 = load i32, ptr %178, align 4
  %180 = getelementptr inbounds %class.GFloat, ptr %29, i32 0, i32 0
  %181 = load i32, ptr %180, align 4
  %182 = getelementptr inbounds %class.GFloat, ptr %30, i32 0, i32 0
  %183 = load i32, ptr %182, align 4
  %184 = getelementptr inbounds %class.GFloat, ptr %31, i32 0, i32 0
  %185 = load i32, ptr %184, align 4
  %186 = getelementptr inbounds %class.GFloat, ptr %32, i32 0, i32 0
  %187 = load i32, ptr %186, align 4
  %188 = getelementptr inbounds %class.GFloat, ptr %34, i32 0, i32 0
  %189 = load i32, ptr %188, align 4
  %190 = getelementptr inbounds %class.GFloat, ptr %35, i32 0, i32 0
  %191 = load i32, ptr %190, align 4
  %192 = getelementptr inbounds %class.GFloat, ptr %36, i32 0, i32 0
  %193 = load i32, ptr %192, align 4
  %194 = getelementptr inbounds %class.GFloat, ptr %37, i32 0, i32 0
  %195 = load i32, ptr %194, align 4
  call void @_ZN8GMatrix3C2E6GFloatS0_S0_S0_S0_S0_S0_S0_S0_(ptr noundef nonnull align 4 dereferenceable(36) %0, i32 %179, i32 %181, i32 %183, i32 %185, i32 %187, i32 %189, i32 %191, i32 %193, i32 %195)
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #5
  br label %340

196:                                              ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #5
  %197 = load ptr, ptr %3, align 8, !tbaa !5
  %198 = call i32 @_ZNK15GCollisionShape9GetRaiudsEv(ptr noundef nonnull align 8 dereferenceable(24) %197)
  %199 = getelementptr inbounds %class.GFloat, ptr %39, i32 0, i32 0
  store i32 %198, ptr %199, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %41, ptr align 4 %39, i64 4, i1 false), !tbaa.struct !15
  %200 = getelementptr inbounds %class.GFloat, ptr %41, i32 0, i32 0
  %201 = load i32, ptr %200, align 4
  %202 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %39, i32 %201)
  %203 = getelementptr inbounds %class.GFloat, ptr %40, i32 0, i32 0
  store i32 %202, ptr %203, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #5
  %204 = call i32 @_ZN5GMath7Makef32Eijj(i32 noundef 0, i32 noundef 1, i32 noundef 4)
  %205 = getelementptr inbounds %class.GFloat, ptr %44, i32 0, i32 0
  store i32 %204, ptr %205, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %45, ptr align 4 %40, i64 4, i1 false), !tbaa.struct !15
  %206 = getelementptr inbounds %class.GFloat, ptr %45, i32 0, i32 0
  %207 = load i32, ptr %206, align 4
  %208 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %44, i32 %207)
  %209 = getelementptr inbounds %class.GFloat, ptr %43, i32 0, i32 0
  store i32 %208, ptr %209, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #5
  %210 = call i32 @_ZN5GMath7Makef32Eijj(i32 noundef 0, i32 noundef 1, i32 noundef 3)
  %211 = getelementptr inbounds %class.GFloat, ptr %48, i32 0, i32 0
  store i32 %210, ptr %211, align 4
  %212 = load ptr, ptr %3, align 8, !tbaa !5
  %213 = call i32 @_ZNK15GCollisionShape13GetHalfHeightEv(ptr noundef nonnull align 8 dereferenceable(24) %212)
  %214 = getelementptr inbounds %class.GFloat, ptr %49, i32 0, i32 0
  store i32 %213, ptr %214, align 4
  %215 = getelementptr inbounds %class.GFloat, ptr %49, i32 0, i32 0
  %216 = load i32, ptr %215, align 4
  %217 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %48, i32 %216)
  %218 = getelementptr inbounds %class.GFloat, ptr %47, i32 0, i32 0
  store i32 %217, ptr %218, align 4
  %219 = load ptr, ptr %3, align 8, !tbaa !5
  %220 = call i32 @_ZNK15GCollisionShape13GetHalfHeightEv(ptr noundef nonnull align 8 dereferenceable(24) %219)
  %221 = getelementptr inbounds %class.GFloat, ptr %50, i32 0, i32 0
  store i32 %220, ptr %221, align 4
  %222 = getelementptr inbounds %class.GFloat, ptr %50, i32 0, i32 0
  %223 = load i32, ptr %222, align 4
  %224 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %47, i32 %223)
  %225 = getelementptr inbounds %class.GFloat, ptr %46, i32 0, i32 0
  store i32 %224, ptr %225, align 4
  %226 = getelementptr inbounds %class.GFloat, ptr %46, i32 0, i32 0
  %227 = load i32, ptr %226, align 4
  %228 = call i32 @_ZNK6GFloatplES_(ptr noundef nonnull align 4 dereferenceable(4) %43, i32 %227)
  %229 = getelementptr inbounds %class.GFloat, ptr %42, i32 0, i32 0
  store i32 %228, ptr %229, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %51, ptr align 4 %42, i64 4, i1 false), !tbaa.struct !15
  %230 = call i32 @_ZN5GMath4ZeroEv()
  %231 = getelementptr inbounds %class.GFloat, ptr %52, i32 0, i32 0
  store i32 %230, ptr %231, align 4
  %232 = call i32 @_ZN5GMath4ZeroEv()
  %233 = getelementptr inbounds %class.GFloat, ptr %53, i32 0, i32 0
  store i32 %232, ptr %233, align 4
  %234 = call i32 @_ZN5GMath4ZeroEv()
  %235 = getelementptr inbounds %class.GFloat, ptr %54, i32 0, i32 0
  store i32 %234, ptr %235, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %55, ptr align 4 %42, i64 4, i1 false), !tbaa.struct !15
  %236 = call i32 @_ZN5GMath4ZeroEv()
  %237 = getelementptr inbounds %class.GFloat, ptr %56, i32 0, i32 0
  store i32 %236, ptr %237, align 4
  %238 = call i32 @_ZN5GMath4ZeroEv()
  %239 = getelementptr inbounds %class.GFloat, ptr %57, i32 0, i32 0
  store i32 %238, ptr %239, align 4
  %240 = call i32 @_ZN5GMath4ZeroEv()
  %241 = getelementptr inbounds %class.GFloat, ptr %58, i32 0, i32 0
  store i32 %240, ptr %241, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #5
  %242 = call i32 @_ZN5GMath4HalfEv()
  %243 = getelementptr inbounds %class.GFloat, ptr %60, i32 0, i32 0
  store i32 %242, ptr %243, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %61, ptr align 4 %40, i64 4, i1 false), !tbaa.struct !15
  %244 = getelementptr inbounds %class.GFloat, ptr %61, i32 0, i32 0
  %245 = load i32, ptr %244, align 4
  %246 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %60, i32 %245)
  %247 = getelementptr inbounds %class.GFloat, ptr %59, i32 0, i32 0
  store i32 %246, ptr %247, align 4
  %248 = getelementptr inbounds %class.GFloat, ptr %51, i32 0, i32 0
  %249 = load i32, ptr %248, align 4
  %250 = getelementptr inbounds %class.GFloat, ptr %52, i32 0, i32 0
  %251 = load i32, ptr %250, align 4
  %252 = getelementptr inbounds %class.GFloat, ptr %53, i32 0, i32 0
  %253 = load i32, ptr %252, align 4
  %254 = getelementptr inbounds %class.GFloat, ptr %54, i32 0, i32 0
  %255 = load i32, ptr %254, align 4
  %256 = getelementptr inbounds %class.GFloat, ptr %55, i32 0, i32 0
  %257 = load i32, ptr %256, align 4
  %258 = getelementptr inbounds %class.GFloat, ptr %56, i32 0, i32 0
  %259 = load i32, ptr %258, align 4
  %260 = getelementptr inbounds %class.GFloat, ptr %57, i32 0, i32 0
  %261 = load i32, ptr %260, align 4
  %262 = getelementptr inbounds %class.GFloat, ptr %58, i32 0, i32 0
  %263 = load i32, ptr %262, align 4
  %264 = getelementptr inbounds %class.GFloat, ptr %59, i32 0, i32 0
  %265 = load i32, ptr %264, align 4
  call void @_ZN8GMatrix3C2E6GFloatS0_S0_S0_S0_S0_S0_S0_S0_(ptr noundef nonnull align 4 dereferenceable(36) %0, i32 %249, i32 %251, i32 %253, i32 %255, i32 %257, i32 %259, i32 %261, i32 %263, i32 %265)
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #5
  br label %340

266:                                              ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %62) #5
  %267 = load ptr, ptr %3, align 8, !tbaa !5
  %268 = call i32 @_ZNK15GCollisionShape13GetHalfHeightEv(ptr noundef nonnull align 8 dereferenceable(24) %267)
  %269 = getelementptr inbounds %class.GFloat, ptr %62, i32 0, i32 0
  store i32 %268, ptr %269, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %63) #5
  %270 = load ptr, ptr %3, align 8, !tbaa !5
  %271 = call i32 @_ZNK15GCollisionShape9GetRaiudsEv(ptr noundef nonnull align 8 dereferenceable(24) %270)
  %272 = getelementptr inbounds %class.GFloat, ptr %63, i32 0, i32 0
  store i32 %271, ptr %272, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %64) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %65, ptr align 4 %63, i64 4, i1 false), !tbaa.struct !15
  %273 = getelementptr inbounds %class.GFloat, ptr %65, i32 0, i32 0
  %274 = load i32, ptr %273, align 4
  %275 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %63, i32 %274)
  %276 = getelementptr inbounds %class.GFloat, ptr %64, i32 0, i32 0
  store i32 %275, ptr %276, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %66) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %67) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %68) #5
  %277 = call i32 @_ZN5GMath7Makef32Eijj(i32 noundef 0, i32 noundef 1, i32 noundef 4)
  %278 = getelementptr inbounds %class.GFloat, ptr %68, i32 0, i32 0
  store i32 %277, ptr %278, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %69, ptr align 4 %64, i64 4, i1 false), !tbaa.struct !15
  %279 = getelementptr inbounds %class.GFloat, ptr %69, i32 0, i32 0
  %280 = load i32, ptr %279, align 4
  %281 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %68, i32 %280)
  %282 = getelementptr inbounds %class.GFloat, ptr %67, i32 0, i32 0
  store i32 %281, ptr %282, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %71) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %72) #5
  %283 = call i32 @_ZN5GMath7Makef32Eijj(i32 noundef 0, i32 noundef 1, i32 noundef 3)
  %284 = getelementptr inbounds %class.GFloat, ptr %72, i32 0, i32 0
  store i32 %283, ptr %284, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %73, ptr align 4 %62, i64 4, i1 false), !tbaa.struct !15
  %285 = getelementptr inbounds %class.GFloat, ptr %73, i32 0, i32 0
  %286 = load i32, ptr %285, align 4
  %287 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %72, i32 %286)
  %288 = getelementptr inbounds %class.GFloat, ptr %71, i32 0, i32 0
  store i32 %287, ptr %288, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %74, ptr align 4 %62, i64 4, i1 false), !tbaa.struct !15
  %289 = getelementptr inbounds %class.GFloat, ptr %74, i32 0, i32 0
  %290 = load i32, ptr %289, align 4
  %291 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %71, i32 %290)
  %292 = getelementptr inbounds %class.GFloat, ptr %70, i32 0, i32 0
  store i32 %291, ptr %292, align 4
  %293 = getelementptr inbounds %class.GFloat, ptr %70, i32 0, i32 0
  %294 = load i32, ptr %293, align 4
  %295 = call i32 @_ZNK6GFloatplES_(ptr noundef nonnull align 4 dereferenceable(4) %67, i32 %294)
  %296 = getelementptr inbounds %class.GFloat, ptr %66, i32 0, i32 0
  store i32 %295, ptr %296, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %72) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %68) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %75, ptr align 4 %66, i64 4, i1 false), !tbaa.struct !15
  %297 = call i32 @_ZN5GMath4ZeroEv()
  %298 = getelementptr inbounds %class.GFloat, ptr %76, i32 0, i32 0
  store i32 %297, ptr %298, align 4
  %299 = call i32 @_ZN5GMath4ZeroEv()
  %300 = getelementptr inbounds %class.GFloat, ptr %77, i32 0, i32 0
  store i32 %299, ptr %300, align 4
  %301 = call i32 @_ZN5GMath4ZeroEv()
  %302 = getelementptr inbounds %class.GFloat, ptr %78, i32 0, i32 0
  store i32 %301, ptr %302, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %79, ptr align 4 %66, i64 4, i1 false), !tbaa.struct !15
  %303 = call i32 @_ZN5GMath4ZeroEv()
  %304 = getelementptr inbounds %class.GFloat, ptr %80, i32 0, i32 0
  store i32 %303, ptr %304, align 4
  %305 = call i32 @_ZN5GMath4ZeroEv()
  %306 = getelementptr inbounds %class.GFloat, ptr %81, i32 0, i32 0
  store i32 %305, ptr %306, align 4
  %307 = call i32 @_ZN5GMath4ZeroEv()
  %308 = getelementptr inbounds %class.GFloat, ptr %82, i32 0, i32 0
  store i32 %307, ptr %308, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %84) #5
  %309 = call i32 @_ZN5GMath4HalfEv()
  %310 = getelementptr inbounds %class.GFloat, ptr %84, i32 0, i32 0
  store i32 %309, ptr %310, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %85, ptr align 4 %64, i64 4, i1 false), !tbaa.struct !15
  %311 = getelementptr inbounds %class.GFloat, ptr %85, i32 0, i32 0
  %312 = load i32, ptr %311, align 4
  %313 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %84, i32 %312)
  %314 = getelementptr inbounds %class.GFloat, ptr %83, i32 0, i32 0
  store i32 %313, ptr %314, align 4
  %315 = getelementptr inbounds %class.GFloat, ptr %75, i32 0, i32 0
  %316 = load i32, ptr %315, align 4
  %317 = getelementptr inbounds %class.GFloat, ptr %76, i32 0, i32 0
  %318 = load i32, ptr %317, align 4
  %319 = getelementptr inbounds %class.GFloat, ptr %77, i32 0, i32 0
  %320 = load i32, ptr %319, align 4
  %321 = getelementptr inbounds %class.GFloat, ptr %78, i32 0, i32 0
  %322 = load i32, ptr %321, align 4
  %323 = getelementptr inbounds %class.GFloat, ptr %79, i32 0, i32 0
  %324 = load i32, ptr %323, align 4
  %325 = getelementptr inbounds %class.GFloat, ptr %80, i32 0, i32 0
  %326 = load i32, ptr %325, align 4
  %327 = getelementptr inbounds %class.GFloat, ptr %81, i32 0, i32 0
  %328 = load i32, ptr %327, align 4
  %329 = getelementptr inbounds %class.GFloat, ptr %82, i32 0, i32 0
  %330 = load i32, ptr %329, align 4
  %331 = getelementptr inbounds %class.GFloat, ptr %83, i32 0, i32 0
  %332 = load i32, ptr %331, align 4
  call void @_ZN8GMatrix3C2E6GFloatS0_S0_S0_S0_S0_S0_S0_S0_(ptr noundef nonnull align 4 dereferenceable(36) %0, i32 %316, i32 %318, i32 %320, i32 %322, i32 %324, i32 %326, i32 %328, i32 %330, i32 %332)
  call void @llvm.lifetime.end.p0(i64 4, ptr %84) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %66) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #5
  br label %340

333:                                              ; preds = %2
  br label %339

334:                                              ; preds = %2
  call void @_ZN8GMatrix38IdentityEv(ptr dead_on_unwind writable sret(%class.GMatrix3) align 4 %0)
  br label %340

335:                                              ; preds = %2
  call void @_ZN8GMatrix38IdentityEv(ptr dead_on_unwind writable sret(%class.GMatrix3) align 4 %0)
  br label %340

336:                                              ; preds = %2
  call void @_ZN8GMatrix38IdentityEv(ptr dead_on_unwind writable sret(%class.GMatrix3) align 4 %0)
  br label %340

337:                                              ; preds = %2
  call void @_ZN8GMatrix38IdentityEv(ptr dead_on_unwind writable sret(%class.GMatrix3) align 4 %0)
  br label %340

338:                                              ; preds = %2
  br label %339

339:                                              ; preds = %338, %333
  call void @_ZN8GMatrix38IdentityEv(ptr dead_on_unwind writable sret(%class.GMatrix3) align 4 %0)
  br label %340

340:                                              ; preds = %339, %337, %336, %335, %334, %266, %196, %137, %90, %89
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8GMatrix38IdentityEv(ptr dead_on_unwind noalias writable sret(%class.GMatrix3) align 4) #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8GMatrix3C2E6GFloatS0_S0_S0_S0_S0_S0_S0_S0_(ptr noundef nonnull align 4 dereferenceable(36), i32, i32, i32, i32, i32, i32, i32, i32, i32) unnamed_addr #4 align 2

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

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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, !11, i64 0}
!10 = !{!"_ZTS15GCollisionShape", !11, i64 0, !12, i64 4, !6, i64 16}
!11 = !{!"_ZTS6EShape", !7, i64 0}
!12 = !{!"_ZTS8GVector3", !13, i64 0, !13, i64 4, !13, i64 8}
!13 = !{!"_ZTS6GFloat", !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{i64 0, i64 4, !16}
!16 = !{!14, !14, 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.GMatrix3 = type { [3 x [3 x %class.GFloat]] }
%class.GFloat = type { i32 }
%class.GVector3 = type { %class.GFloat, %class.GFloat, %class.GFloat }

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { i64, i32 } @_ZNK15GCollisionShape13GetHalfExternEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12GPhyscsUtils22CalculateInertiaTensorERK15GCollisionShape(ptr dead_on_unwind noalias writable sret(%class.GMatrix3) align 4 %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #3 align 2 {
  %3 = alloca %class.GFloat, align 4
  %4 = alloca %class.GFloat, align 4
  %5 = alloca %class.GVector3, align 8
  %6 = alloca %class.GVector3, align 8
  %7 = alloca %class.GVector3, align 8
  %8 = alloca %class.GVector3, align 8
  %9 = alloca %class.GFloat, align 4
  %10 = alloca %class.GFloat, align 4
  %11 = alloca %class.GFloat, align 4
  %12 = alloca %class.GFloat, align 4
  %13 = alloca %class.GFloat, align 4
  %14 = alloca %class.GFloat, align 4
  %15 = alloca %class.GFloat, align 4
  %16 = alloca %class.GFloat, align 4
  %17 = alloca %class.GFloat, align 4
  %18 = alloca %class.GFloat, align 4
  %19 = alloca %class.GFloat, align 4
  %20 = alloca %class.GFloat, align 4
  %21 = load i32, ptr %1, align 8, !tbaa !5
  switch i32 %21, label %92 [
    i32 0, label %22
    i32 1, label %23
    i32 2, label %35
    i32 3, label %51
    i32 4, label %70
    i32 9, label %91
    i32 6, label %88
    i32 7, label %89
    i32 8, label %90
  ]

22:                                               ; preds = %2
  tail call void @_ZN8GMatrix38IdentityEv(ptr dead_on_unwind writable sret(%class.GMatrix3) align 4 %0)
  br label %93

23:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  %24 = tail call i32 @_ZNK15GCollisionShape9GetRaiudsEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  store i32 %24, ptr %4, align 4
  %25 = tail call i32 @_ZNK15GCollisionShape9GetRaiudsEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %26 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %4, i32 %25)
  store i32 %26, ptr %3, align 4
  %27 = call i32 @_ZN5GMath7Makef32Eijj(i32 noundef 0, i32 noundef 4, i32 noundef 10)
  %28 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 %27)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  %29 = call i32 @_ZN5GMath4ZeroEv()
  %30 = call i32 @_ZN5GMath4ZeroEv()
  %31 = call i32 @_ZN5GMath4ZeroEv()
  %32 = call i32 @_ZN5GMath4ZeroEv()
  %33 = call i32 @_ZN5GMath4ZeroEv()
  %34 = call i32 @_ZN5GMath4ZeroEv()
  call void @_ZN8GMatrix3C2E6GFloatS0_S0_S0_S0_S0_S0_S0_S0_(ptr noundef nonnull align 4 dereferenceable(36) %0, i32 %28, i32 %29, i32 %30, i32 %31, i32 %28, i32 %32, i32 %33, i32 %34, i32 %28)
  br label %93

35:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #4
  %36 = tail call { i64, i32 } @_ZNK15GCollisionShape13GetHalfExternEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %.fca.0.extract62 = extractvalue { i64, i32 } %36, 0
  %.fca.1.extract63 = extractvalue { i64, i32 } %36, 1
  store i64 %.fca.0.extract62, ptr %7, align 8
  %.sroa.265.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  store i32 %.fca.1.extract63, ptr %.sroa.265.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #4
  %37 = tail call { i64, i32 } @_ZNK15GCollisionShape13GetHalfExternEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %.fca.0.extract58 = extractvalue { i64, i32 } %37, 0
  %.fca.1.extract59 = extractvalue { i64, i32 } %37, 1
  store i64 %.fca.0.extract58, ptr %8, align 8
  %.sroa.261.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  store i32 %.fca.1.extract59, ptr %.sroa.261.0..sroa_idx, align 8
  %38 = call { i64, i32 } @_ZNK8GVector3mlERKS_(ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %8)
  %.fca.0.extract54 = extractvalue { i64, i32 } %38, 0
  %.fca.1.extract55 = extractvalue { i64, i32 } %38, 1
  store i64 %.fca.0.extract54, ptr %6, align 8
  %.sroa.257.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  store i32 %.fca.1.extract55, ptr %.sroa.257.0..sroa_idx, align 8
  %39 = call i32 @_ZN5GMath7Makef32Eijj(i32 noundef 0, i32 noundef 1, i32 noundef 3)
  %40 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %6, i32 %39)
  %.fca.0.extract = extractvalue { i64, i32 } %40, 0
  %.fca.1.extract = extractvalue { i64, i32 } %40, 1
  store i64 %.fca.0.extract, ptr %5, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 8
  store i32 %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #4
  %41 = getelementptr inbounds i8, ptr %5, i64 4
  %42 = call i32 @_ZNK6GFloatplES_(ptr noundef nonnull align 4 dereferenceable(4) %41, i32 %.fca.1.extract)
  %43 = call i32 @_ZN5GMath4ZeroEv()
  %44 = call i32 @_ZN5GMath4ZeroEv()
  %45 = call i32 @_ZN5GMath4ZeroEv()
  %.sroa.045.0.copyload = load i32, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !14
  %46 = call i32 @_ZNK6GFloatplES_(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 %.sroa.045.0.copyload)
  %47 = call i32 @_ZN5GMath4ZeroEv()
  %48 = call i32 @_ZN5GMath4ZeroEv()
  %49 = call i32 @_ZN5GMath4ZeroEv()
  %.sroa.040.0.copyload = load i32, ptr %41, align 4, !tbaa !14
  %50 = call i32 @_ZNK6GFloatplES_(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 %.sroa.040.0.copyload)
  call void @_ZN8GMatrix3C2E6GFloatS0_S0_S0_S0_S0_S0_S0_S0_(ptr noundef nonnull align 4 dereferenceable(36) %0, i32 %42, i32 %43, i32 %44, i32 %45, i32 %46, i32 %47, i32 %48, i32 %49, i32 %50)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #4
  br label %93

51:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #4
  %52 = tail call i32 @_ZNK15GCollisionShape9GetRaiudsEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  store i32 %52, ptr %9, align 4
  %53 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 %52)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #4
  %54 = call i32 @_ZN5GMath7Makef32Eijj(i32 noundef 0, i32 noundef 1, i32 noundef 4)
  store i32 %54, ptr %11, align 4
  %55 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 %53)
  store i32 %55, ptr %10, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #4
  %56 = call i32 @_ZN5GMath7Makef32Eijj(i32 noundef 0, i32 noundef 1, i32 noundef 3)
  store i32 %56, ptr %13, align 4
  %57 = call i32 @_ZNK15GCollisionShape13GetHalfHeightEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %58 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %13, i32 %57)
  store i32 %58, ptr %12, align 4
  %59 = call i32 @_ZNK15GCollisionShape13GetHalfHeightEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %60 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %12, i32 %59)
  %61 = call i32 @_ZNK6GFloatplES_(ptr noundef nonnull align 4 dereferenceable(4) %10, i32 %60)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  %62 = call i32 @_ZN5GMath4ZeroEv()
  %63 = call i32 @_ZN5GMath4ZeroEv()
  %64 = call i32 @_ZN5GMath4ZeroEv()
  %65 = call i32 @_ZN5GMath4ZeroEv()
  %66 = call i32 @_ZN5GMath4ZeroEv()
  %67 = call i32 @_ZN5GMath4ZeroEv()
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #4
  %68 = call i32 @_ZN5GMath4HalfEv()
  store i32 %68, ptr %14, align 4
  %69 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %14, i32 %53)
  call void @_ZN8GMatrix3C2E6GFloatS0_S0_S0_S0_S0_S0_S0_S0_(ptr noundef nonnull align 4 dereferenceable(36) %0, i32 %61, i32 %62, i32 %63, i32 %64, i32 %61, i32 %65, i32 %66, i32 %67, i32 %69)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  br label %93

70:                                               ; preds = %2
  %71 = tail call i32 @_ZNK15GCollisionShape13GetHalfHeightEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #4
  %72 = tail call i32 @_ZNK15GCollisionShape9GetRaiudsEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  store i32 %72, ptr %15, align 4
  %73 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %15, i32 %72)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #4
  %74 = call i32 @_ZN5GMath7Makef32Eijj(i32 noundef 0, i32 noundef 1, i32 noundef 4)
  store i32 %74, ptr %17, align 4
  %75 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %17, i32 %73)
  store i32 %75, ptr %16, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #4
  %76 = call i32 @_ZN5GMath7Makef32Eijj(i32 noundef 0, i32 noundef 1, i32 noundef 3)
  store i32 %76, ptr %19, align 4
  %77 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %19, i32 %71)
  store i32 %77, ptr %18, align 4
  %78 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %18, i32 %71)
  %79 = call i32 @_ZNK6GFloatplES_(ptr noundef nonnull align 4 dereferenceable(4) %16, i32 %78)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #4
  %80 = call i32 @_ZN5GMath4ZeroEv()
  %81 = call i32 @_ZN5GMath4ZeroEv()
  %82 = call i32 @_ZN5GMath4ZeroEv()
  %83 = call i32 @_ZN5GMath4ZeroEv()
  %84 = call i32 @_ZN5GMath4ZeroEv()
  %85 = call i32 @_ZN5GMath4ZeroEv()
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #4
  %86 = call i32 @_ZN5GMath4HalfEv()
  store i32 %86, ptr %20, align 4
  %87 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 %73)
  call void @_ZN8GMatrix3C2E6GFloatS0_S0_S0_S0_S0_S0_S0_S0_(ptr noundef nonnull align 4 dereferenceable(36) %0, i32 %79, i32 %80, i32 %81, i32 %82, i32 %79, i32 %83, i32 %84, i32 %85, i32 %87)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #4
  br label %93

88:                                               ; preds = %2
  tail call void @_ZN8GMatrix38IdentityEv(ptr dead_on_unwind writable sret(%class.GMatrix3) align 4 %0)
  br label %93

89:                                               ; preds = %2
  tail call void @_ZN8GMatrix38IdentityEv(ptr dead_on_unwind writable sret(%class.GMatrix3) align 4 %0)
  br label %93

90:                                               ; preds = %2
  tail call void @_ZN8GMatrix38IdentityEv(ptr dead_on_unwind writable sret(%class.GMatrix3) align 4 %0)
  br label %93

91:                                               ; preds = %2
  tail call void @_ZN8GMatrix38IdentityEv(ptr dead_on_unwind writable sret(%class.GMatrix3) align 4 %0)
  br label %93

92:                                               ; preds = %2
  tail call void @_ZN8GMatrix38IdentityEv(ptr dead_on_unwind writable sret(%class.GMatrix3) align 4 %0)
  br label %93

93:                                               ; preds = %92, %91, %90, %89, %88, %70, %51, %35, %23, %22
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8GMatrix38IdentityEv(ptr dead_on_unwind noalias writable sret(%class.GMatrix3) align 4) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8GMatrix3C2E6GFloatS0_S0_S0_S0_S0_S0_S0_S0_(ptr noundef nonnull align 4 dereferenceable(36), i32, i32, i32, i32, i32, i32, i32, i32, i32) unnamed_addr #3 align 2

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

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

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

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

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass