; LLVM IR from devlinzhou/deterministic_physics :: UnrealDemo/Source/UnrealDemo/gphysics/src/collision (glacier_collision_shape)

; 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.GAABB = type { %class.GVector3, %class.GVector3 }
%class.GVector3 = type { %class.GFloat, %class.GFloat, %class.GFloat }
%class.GFloat = type { i32 }
%class.GCollisionShape = type { i32, %class.GVector3, ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK15GCollisionShape11GetLocalBoxEv(ptr dead_on_unwind noalias writable sret(%class.GAABB) align 4 %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #0 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca %class.GVector3, align 4
  %5 = alloca %class.GFloat, align 4
  %6 = alloca %class.GFloat, align 4
  %7 = alloca %class.GVector3, align 4
  %8 = alloca %class.GFloat, align 4
  %9 = alloca %class.GVector3, align 4
  %10 = alloca %class.GVector3, align 4
  %11 = alloca { i64, i32 }, align 8
  %12 = alloca { i64, i32 }, align 8
  %13 = alloca %class.GVector3, align 4
  %14 = alloca { i64, i32 }, align 8
  %15 = alloca %class.GFloat, align 4
  %16 = alloca %class.GVector3, align 4
  %17 = alloca %class.GFloat, align 4
  %18 = alloca %class.GFloat, align 4
  %19 = alloca %class.GFloat, align 4
  %20 = alloca %class.GVector3, align 4
  %21 = alloca %class.GFloat, align 4
  %22 = alloca %class.GFloat, align 4
  %23 = alloca %class.GFloat, align 4
  %24 = alloca %class.GVector3, align 4
  %25 = alloca { i64, i32 }, align 8
  %26 = alloca %class.GVector3, align 4
  %27 = alloca { i64, i32 }, align 8
  %28 = alloca %class.GVector3, align 4
  %29 = alloca { i64, i32 }, align 8
  store ptr %1, ptr %3, align 8, !tbaa !5
  %30 = load ptr, ptr %3, align 8
  %31 = getelementptr inbounds %class.GCollisionShape, ptr %30, i32 0, i32 0
  %32 = load i32, ptr %31, align 8, !tbaa !9
  switch i32 %32, label %72 [
    i32 0, label %33
    i32 1, label %34
    i32 2, label %45
    i32 3, label %73
    i32 4, label %73
    i32 5, label %73
    i32 6, label %73
    i32 7, label %49
    i32 8, label %73
    i32 9, label %73
    i32 10, label %73
  ]

33:                                               ; preds = %2
  br label %73

34:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 12, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %35 = call i32 @_ZNK15GCollisionShape9GetRaiudsEv(ptr noundef nonnull align 8 dereferenceable(24) %30)
  %36 = getelementptr inbounds %class.GFloat, ptr %6, i32 0, i32 0
  store i32 %35, ptr %36, align 4
  %37 = call i32 @_ZNK6GFloatngEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  %38 = getelementptr inbounds %class.GFloat, ptr %5, i32 0, i32 0
  store i32 %37, ptr %38, align 4
  %39 = getelementptr inbounds %class.GFloat, ptr %5, i32 0, i32 0
  %40 = load i32, ptr %39, align 4
  call void @_ZN8GVector3C2E6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %4, i32 %40)
  call void @llvm.lifetime.start.p0(i64 12, ptr %7) #6
  %41 = call i32 @_ZNK15GCollisionShape9GetRaiudsEv(ptr noundef nonnull align 8 dereferenceable(24) %30)
  %42 = getelementptr inbounds %class.GFloat, ptr %8, i32 0, i32 0
  store i32 %41, ptr %42, align 4
  %43 = getelementptr inbounds %class.GFloat, ptr %8, i32 0, i32 0
  %44 = load i32, ptr %43, align 4
  call void @_ZN8GVector3C2E6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %7, i32 %44)
  call void @_ZN5GAABBC2ERK8GVector3S2_(ptr noundef nonnull align 4 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %7)
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %4) #6
  br label %75

45:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #6
  %46 = call { i64, i32 } @_ZNK15GCollisionShape13GetHalfExternEv(ptr noundef nonnull align 8 dereferenceable(24) %30)
  store { i64, i32 } %46, ptr %11, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 8 %11, i64 12, i1 false)
  %47 = call { i64, i32 } @_ZNK8GVector3ngEv(ptr noundef nonnull align 4 dereferenceable(12) %10)
  store { i64, i32 } %47, ptr %12, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 8 %12, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #6
  %48 = call { i64, i32 } @_ZNK15GCollisionShape13GetHalfExternEv(ptr noundef nonnull align 8 dereferenceable(24) %30)
  store { i64, i32 } %48, ptr %14, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 8 %14, i64 12, i1 false)
  call void @_ZN5GAABBC2ERK8GVector3S2_(ptr noundef nonnull align 4 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %13)
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #6
  br label %75

49:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %50 = call i32 @_ZN5GMath7Makef32Eijj(i32 noundef 50, i32 noundef 1, i32 noundef 10)
  %51 = getelementptr inbounds %class.GFloat, ptr %15, i32 0, i32 0
  store i32 %50, ptr %51, align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %15, i64 4, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %15, i64 4, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %15, i64 4, i1 false), !tbaa.struct !15
  %52 = getelementptr inbounds %class.GFloat, ptr %17, i32 0, i32 0
  %53 = load i32, ptr %52, align 4
  %54 = getelementptr inbounds %class.GFloat, ptr %18, i32 0, i32 0
  %55 = load i32, ptr %54, align 4
  %56 = getelementptr inbounds %class.GFloat, ptr %19, i32 0, i32 0
  %57 = load i32, ptr %56, align 4
  call void @_ZN8GVector3C2E6GFloatS0_S0_(ptr noundef nonnull align 4 dereferenceable(12) %16, i32 %53, i32 %55, i32 %57)
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #6
  %58 = call i32 @_ZNK6GFloatngEv(ptr noundef nonnull align 4 dereferenceable(4) %15)
  %59 = getelementptr inbounds %class.GFloat, ptr %21, i32 0, i32 0
  store i32 %58, ptr %59, align 4
  %60 = call i32 @_ZN5GMath4ZeroEv()
  %61 = getelementptr inbounds %class.GFloat, ptr %22, i32 0, i32 0
  store i32 %60, ptr %61, align 4
  %62 = call i32 @_ZN5GMath4ZeroEv()
  %63 = getelementptr inbounds %class.GFloat, ptr %23, i32 0, i32 0
  store i32 %62, ptr %63, align 4
  %64 = getelementptr inbounds %class.GFloat, ptr %21, i32 0, i32 0
  %65 = load i32, ptr %64, align 4
  %66 = getelementptr inbounds %class.GFloat, ptr %22, i32 0, i32 0
  %67 = load i32, ptr %66, align 4
  %68 = getelementptr inbounds %class.GFloat, ptr %23, i32 0, i32 0
  %69 = load i32, ptr %68, align 4
  call void @_ZN8GVector3C2E6GFloatS0_S0_(ptr noundef nonnull align 4 dereferenceable(12) %20, i32 %65, i32 %67, i32 %69)
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #6
  %70 = call { i64, i32 } @_ZNK8GVector3miERKS_(ptr noundef nonnull align 4 dereferenceable(12) %20, ptr noundef nonnull align 4 dereferenceable(12) %16)
  store { i64, i32 } %70, ptr %25, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 8 %25, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %26) #6
  %71 = call { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12) %20, ptr noundef nonnull align 4 dereferenceable(12) %16)
  store { i64, i32 } %71, ptr %27, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 8 %27, i64 12, i1 false)
  call void @_ZN5GAABBC2ERK8GVector3S2_(ptr noundef nonnull align 4 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %24, ptr noundef nonnull align 4 dereferenceable(12) %26)
  call void @llvm.lifetime.end.p0(i64 12, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %75

72:                                               ; preds = %2
  br label %73

73:                                               ; preds = %72, %33, %2, %2, %2, %2, %2, %2, %2
  call void @llvm.lifetime.start.p0(i64 12, ptr %28) #6
  %74 = call { i64, i32 } @_ZN8GVector34ZeroEv()
  store { i64, i32 } %74, ptr %29, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 8 %29, i64 12, i1 false)
  call void @_ZN5GAABBC2ERK8GVector3(ptr noundef nonnull align 4 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %28)
  call void @llvm.lifetime.end.p0(i64 12, ptr %28) #6
  br label %75

75:                                               ; preds = %73, %49, %45, %34
  ret void
}

; Function Attrs: 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 i32 @_ZNK15GCollisionShape9GetRaiudsEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8GVector3C2E6GFloat(ptr noundef nonnull align 4 dereferenceable(12), i32) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5GAABBC2ERK8GVector3S2_(ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #3 align 2

; Function Attrs: 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 { i64, i32 } @_ZNK15GCollisionShape13GetHalfExternEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 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) #5

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8GVector3C2E6GFloatS0_S0_(ptr noundef nonnull align 4 dereferenceable(12), i32, i32, i32) unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK8GVector3miERKS_(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 { i64, i32 } @_ZNK8GVector3plERKS_(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 { i64, i32 } @_ZN8GVector34ZeroEv() #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5GAABBC2ERK8GVector3(ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #3 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !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.GAABB = type { %class.GVector3, %class.GVector3 }
%class.GVector3 = type { %class.GFloat, %class.GFloat, %class.GFloat }
%class.GFloat = type { i32 }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK15GCollisionShape11GetLocalBoxEv(ptr dead_on_unwind noalias writable sret(%class.GAABB) align 4 %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #0 align 2 {
  %3 = alloca %class.GVector3, align 4
  %4 = alloca %class.GFloat, align 4
  %5 = alloca %class.GVector3, align 4
  %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.GVector3, align 4
  %11 = alloca %class.GVector3, align 4
  %12 = alloca %class.GVector3, align 8
  %13 = alloca %class.GVector3, align 8
  %14 = alloca %class.GVector3, align 8
  %15 = load i32, ptr %1, align 8, !tbaa !5
  switch i32 %15, label %31 [
    i32 7, label %24
    i32 1, label %16
    i32 2, label %20
  ]

16:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  %17 = tail call i32 @_ZNK15GCollisionShape9GetRaiudsEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  store i32 %17, ptr %4, align 4
  %18 = call i32 @_ZNK6GFloatngEv(ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @_ZN8GVector3C2E6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %3, i32 %18)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #5
  %19 = call i32 @_ZNK15GCollisionShape9GetRaiudsEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  call void @_ZN8GVector3C2E6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 %19)
  call void @_ZN5GAABBC2ERK8GVector3S2_(ptr noundef nonnull align 4 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %5)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #5
  br label %33

20:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #5
  %21 = tail call { i64, i32 } @_ZNK15GCollisionShape13GetHalfExternEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %.fca.0.extract23 = extractvalue { i64, i32 } %21, 0
  %.fca.1.extract24 = extractvalue { i64, i32 } %21, 1
  store i64 %.fca.0.extract23, ptr %7, align 8
  %.sroa.226.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  store i32 %.fca.1.extract24, ptr %.sroa.226.0..sroa_idx, align 8
  %22 = call { i64, i32 } @_ZNK8GVector3ngEv(ptr noundef nonnull align 4 dereferenceable(12) %7)
  %.fca.0.extract19 = extractvalue { i64, i32 } %22, 0
  %.fca.1.extract20 = extractvalue { i64, i32 } %22, 1
  store i64 %.fca.0.extract19, ptr %6, align 8
  %.sroa.222.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  store i32 %.fca.1.extract20, ptr %.sroa.222.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #5
  %23 = call { i64, i32 } @_ZNK15GCollisionShape13GetHalfExternEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %.fca.0.extract15 = extractvalue { i64, i32 } %23, 0
  %.fca.1.extract16 = extractvalue { i64, i32 } %23, 1
  store i64 %.fca.0.extract15, ptr %8, align 8
  %.sroa.218.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  store i32 %.fca.1.extract16, ptr %.sroa.218.0..sroa_idx, align 8
  call void @_ZN5GAABBC2ERK8GVector3S2_(ptr noundef nonnull align 4 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %8)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #5
  br label %33

24:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  %25 = tail call i32 @_ZN5GMath7Makef32Eijj(i32 noundef 50, i32 noundef 1, i32 noundef 10)
  store i32 %25, ptr %9, align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #5
  call void @_ZN8GVector3C2E6GFloatS0_S0_(ptr noundef nonnull align 4 dereferenceable(12) %10, i32 %25, i32 %25, i32 %25)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #5
  %26 = call i32 @_ZNK6GFloatngEv(ptr noundef nonnull align 4 dereferenceable(4) %9)
  %27 = call i32 @_ZN5GMath4ZeroEv()
  %28 = call i32 @_ZN5GMath4ZeroEv()
  call void @_ZN8GVector3C2E6GFloatS0_S0_(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 %26, i32 %27, i32 %28)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #5
  %29 = call { i64, i32 } @_ZNK8GVector3miERKS_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %10)
  %.fca.0.extract5 = extractvalue { i64, i32 } %29, 0
  %.fca.1.extract6 = extractvalue { i64, i32 } %29, 1
  store i64 %.fca.0.extract5, ptr %12, align 8
  %.sroa.28.0..sroa_idx = getelementptr inbounds i8, ptr %12, i64 8
  store i32 %.fca.1.extract6, ptr %.sroa.28.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #5
  %30 = call { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %10)
  %.fca.0.extract1 = extractvalue { i64, i32 } %30, 0
  %.fca.1.extract2 = extractvalue { i64, i32 } %30, 1
  store i64 %.fca.0.extract1, ptr %13, align 8
  %.sroa.24.0..sroa_idx = getelementptr inbounds i8, ptr %13, i64 8
  store i32 %.fca.1.extract2, ptr %.sroa.24.0..sroa_idx, align 8
  call void @_ZN5GAABBC2ERK8GVector3S2_(ptr noundef nonnull align 4 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %13)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  br label %33

31:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #5
  %32 = tail call { i64, i32 } @_ZN8GVector34ZeroEv()
  %.fca.0.extract = extractvalue { i64, i32 } %32, 0
  %.fca.1.extract = extractvalue { i64, i32 } %32, 1
  store i64 %.fca.0.extract, ptr %14, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 8
  store i32 %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  call void @_ZN5GAABBC2ERK8GVector3(ptr noundef nonnull align 4 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %14)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #5
  br label %33

33:                                               ; preds = %31, %24, %20, %16
  ret void
}

; 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 i32 @_ZNK15GCollisionShape9GetRaiudsEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8GVector3C2E6GFloat(ptr noundef nonnull align 4 dereferenceable(12), i32) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5GAABBC2ERK8GVector3S2_(ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #3 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 { i64, i32 } @_ZNK15GCollisionShape13GetHalfExternEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8GVector3C2E6GFloatS0_S0_(ptr noundef nonnull align 4 dereferenceable(12), i32, i32, i32) unnamed_addr #4 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZN8GVector34ZeroEv() local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5GAABBC2ERK8GVector3(ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #3 align 2

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


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