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

; 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.GFloat = type { i32 }
%class.GColor = type { i32 }
%class.GVector3 = type { %class.GFloat, %class.GFloat, %class.GFloat }
%class.GTransform_QT = type { %class.GQuaternion, %class.GVector3 }
%class.GQuaternion = type { %class.GFloat, %class.GFloat, %class.GFloat, %class.GFloat }

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZN5GMath4ZeroEv() #2 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 #3 align 2

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

; 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)) #4 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)) #4 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12IGlacierDraw9DrawPlaneERK13GTransform_QT6GFloat6GColor(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 4 dereferenceable(28) %1, i32 %2, i32 %3) unnamed_addr #2 align 2 {
  %5 = alloca %class.GFloat, align 4
  %6 = alloca %class.GColor, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %class.GVector3, align 4
  %10 = alloca %class.GVector3, align 4
  %11 = alloca %class.GFloat, align 4
  %12 = alloca %class.GFloat, align 4
  %13 = alloca %class.GFloat, align 4
  %14 = alloca { i64, i32 }, align 8
  %15 = alloca %class.GVector3, 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 { i64, i32 }, align 8
  %21 = alloca %class.GVector3, align 4
  %22 = alloca %class.GVector3, align 4
  %23 = alloca %class.GVector3, align 4
  %24 = alloca %class.GVector3, align 4
  %25 = alloca %class.GVector3, align 4
  %26 = alloca { i64, i32 }, align 8
  %27 = alloca %class.GFloat, align 4
  %28 = alloca { i64, i32 }, align 8
  %29 = alloca %class.GFloat, align 4
  %30 = alloca { i64, i32 }, align 8
  %31 = alloca { i64, i32 }, align 8
  %32 = alloca { i64, i32 }, align 8
  %33 = alloca %class.GColor, align 4
  %34 = alloca %class.GFloat, align 4
  %35 = alloca %class.GFloat, align 4
  %36 = alloca %class.GVector3, align 4
  %37 = alloca %class.GVector3, align 4
  %38 = alloca %class.GVector3, align 4
  %39 = alloca %class.GFloat, align 4
  %40 = alloca { i64, i32 }, align 8
  %41 = alloca { i64, i32 }, align 8
  %42 = alloca %class.GVector3, align 4
  %43 = alloca %class.GFloat, align 4
  %44 = alloca { i64, i32 }, align 8
  %45 = alloca { i64, i32 }, align 8
  %46 = alloca %class.GVector3, align 4
  %47 = alloca %class.GVector3, align 4
  %48 = alloca %class.GVector3, align 4
  %49 = alloca %class.GFloat, align 4
  %50 = alloca { i64, i32 }, align 8
  %51 = alloca { i64, i32 }, align 8
  %52 = alloca %class.GVector3, align 4
  %53 = alloca %class.GFloat, align 4
  %54 = alloca { i64, i32 }, align 8
  %55 = alloca { i64, i32 }, align 8
  %56 = alloca %class.GVector3, align 4
  %57 = alloca %class.GVector3, align 4
  %58 = alloca %class.GVector3, align 4
  %59 = alloca %class.GFloat, align 4
  %60 = alloca { i64, i32 }, align 8
  %61 = alloca { i64, i32 }, align 8
  %62 = alloca %class.GVector3, align 4
  %63 = alloca %class.GFloat, align 4
  %64 = alloca { i64, i32 }, align 8
  %65 = alloca { i64, i32 }, align 8
  %66 = alloca %class.GVector3, align 4
  %67 = alloca %class.GVector3, align 4
  %68 = alloca %class.GVector3, align 4
  %69 = alloca %class.GFloat, align 4
  %70 = alloca { i64, i32 }, align 8
  %71 = alloca { i64, i32 }, align 8
  %72 = alloca %class.GVector3, align 4
  %73 = alloca %class.GFloat, align 4
  %74 = alloca { i64, i32 }, align 8
  %75 = alloca { i64, i32 }, align 8
  %76 = alloca %class.GColor, align 4
  %77 = alloca %class.GColor, align 4
  %78 = alloca %class.GFloat, align 4
  %79 = alloca %class.GFloat, align 4
  %80 = getelementptr inbounds %class.GFloat, ptr %5, i32 0, i32 0
  store i32 %2, ptr %80, align 4
  %81 = getelementptr inbounds %class.GColor, ptr %6, i32 0, i32 0
  store i32 %3, ptr %81, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  %82 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #5
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #5
  %84 = call i32 @_ZN5GMath4ZeroEv()
  %85 = getelementptr inbounds %class.GFloat, ptr %11, i32 0, i32 0
  store i32 %84, ptr %85, align 4
  %86 = call i32 @_ZN5GMath3OneEv()
  %87 = getelementptr inbounds %class.GFloat, ptr %12, i32 0, i32 0
  store i32 %86, ptr %87, align 4
  %88 = call i32 @_ZN5GMath4ZeroEv()
  %89 = getelementptr inbounds %class.GFloat, ptr %13, i32 0, i32 0
  store i32 %88, ptr %89, align 4
  %90 = getelementptr inbounds %class.GFloat, ptr %11, i32 0, i32 0
  %91 = load i32, ptr %90, align 4
  %92 = getelementptr inbounds %class.GFloat, ptr %12, i32 0, i32 0
  %93 = load i32, ptr %92, align 4
  %94 = getelementptr inbounds %class.GFloat, ptr %13, i32 0, i32 0
  %95 = load i32, ptr %94, align 4
  call void @_ZN8GVector3C2E6GFloatS0_S0_(ptr noundef nonnull align 4 dereferenceable(12) %10, i32 %91, i32 %93, i32 %95)
  %96 = call { i64, i32 } @_ZNK13GTransform_QT15TransformNormalERK8GVector3(ptr noundef nonnull align 4 dereferenceable(28) %83, ptr noundef nonnull align 4 dereferenceable(12) %10)
  store { i64, i32 } %96, ptr %14, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 8 %14, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #5
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #5
  %98 = call i32 @_ZN5GMath4ZeroEv()
  %99 = getelementptr inbounds %class.GFloat, ptr %17, i32 0, i32 0
  store i32 %98, ptr %99, align 4
  %100 = call i32 @_ZN5GMath4ZeroEv()
  %101 = getelementptr inbounds %class.GFloat, ptr %18, i32 0, i32 0
  store i32 %100, ptr %101, align 4
  %102 = call i32 @_ZN5GMath3OneEv()
  %103 = getelementptr inbounds %class.GFloat, ptr %19, i32 0, i32 0
  store i32 %102, ptr %103, align 4
  %104 = getelementptr inbounds %class.GFloat, ptr %17, i32 0, i32 0
  %105 = load i32, ptr %104, align 4
  %106 = getelementptr inbounds %class.GFloat, ptr %18, i32 0, i32 0
  %107 = load i32, ptr %106, align 4
  %108 = getelementptr inbounds %class.GFloat, ptr %19, i32 0, i32 0
  %109 = load i32, ptr %108, align 4
  call void @_ZN8GVector3C2E6GFloatS0_S0_(ptr noundef nonnull align 4 dereferenceable(12) %16, i32 %105, i32 %107, i32 %109)
  %110 = call { i64, i32 } @_ZNK13GTransform_QT15TransformNormalERK8GVector3(ptr noundef nonnull align 4 dereferenceable(28) %97, ptr noundef nonnull align 4 dereferenceable(12) %16)
  store { i64, i32 } %110, ptr %20, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 8 %20, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #5
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = getelementptr inbounds %class.GTransform_QT, ptr %111, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #5
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  %114 = getelementptr inbounds %class.GTransform_QT, ptr %113, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 12, ptr %22) #5
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = getelementptr inbounds %class.GTransform_QT, ptr %115, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 12, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #5
  %117 = call { i64, i32 } @_ZN8GVector35UnitXEv()
  store { i64, i32 } %117, ptr %26, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 8 %26, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %5, i64 4, i1 false), !tbaa.struct !9
  %118 = getelementptr inbounds %class.GFloat, ptr %27, i32 0, i32 0
  %119 = load i32, ptr %118, align 4
  %120 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %25, i32 %119)
  store { i64, i32 } %120, ptr %28, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 8 %28, i64 12, i1 false)
  %121 = call i32 @_ZN5GMath7Makef32Eijj(i32 noundef 0, i32 noundef 15, i32 noundef 100)
  %122 = getelementptr inbounds %class.GFloat, ptr %29, i32 0, i32 0
  store i32 %121, ptr %122, align 4
  %123 = getelementptr inbounds %class.GFloat, ptr %29, i32 0, i32 0
  %124 = load i32, ptr %123, align 4
  %125 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %24, i32 %124)
  store { i64, i32 } %125, ptr %30, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 8 %30, i64 12, i1 false)
  %126 = call { i64, i32 } @_ZNK11GQuaternion12RotateVectorERK8GVector3(ptr noundef nonnull align 4 dereferenceable(16) %116, ptr noundef nonnull align 4 dereferenceable(12) %23)
  store { i64, i32 } %126, ptr %31, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 8 %31, i64 12, i1 false)
  %127 = call { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12) %114, ptr noundef nonnull align 4 dereferenceable(12) %22)
  store { i64, i32 } %127, ptr %32, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 8 %32, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %6, i64 4, i1 false), !tbaa.struct !9
  %128 = getelementptr inbounds %class.GColor, ptr %33, i32 0, i32 0
  %129 = load i32, ptr %128, align 4
  %130 = load ptr, ptr %82, align 8, !tbaa !12
  %131 = getelementptr inbounds ptr, ptr %130, i64 0
  %132 = load ptr, ptr %131, align 8
  call void %132(ptr noundef nonnull align 8 dereferenceable(8) %82, ptr noundef nonnull align 4 dereferenceable(12) %112, ptr noundef nonnull align 4 dereferenceable(12) %21, i32 %129)
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #5
  %133 = call i32 @_ZNK6GFloatngEv(ptr noundef nonnull align 4 dereferenceable(4) %5)
  %134 = getelementptr inbounds %class.GFloat, ptr %34, i32 0, i32 0
  store i32 %133, ptr %134, align 4
  br label %135

135:                                              ; preds = %191, %4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 4 %5, i64 4, i1 false), !tbaa.struct !9
  %136 = getelementptr inbounds %class.GFloat, ptr %35, i32 0, i32 0
  %137 = load i32, ptr %136, align 4
  %138 = call noundef zeroext i1 @_ZNK6GFloatleES_(ptr noundef nonnull align 4 dereferenceable(4) %34, i32 %137)
  br i1 %138, label %140, label %139

139:                                              ; preds = %135
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #5
  br label %198

140:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 12, ptr %36) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %37) #5
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = getelementptr inbounds %class.GTransform_QT, ptr %141, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 12, ptr %38) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %39, ptr align 4 %5, i64 4, i1 false), !tbaa.struct !9
  %143 = getelementptr inbounds %class.GFloat, ptr %39, i32 0, i32 0
  %144 = load i32, ptr %143, align 4
  %145 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %9, i32 %144)
  store { i64, i32 } %145, ptr %40, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 8 %40, i64 12, i1 false)
  %146 = call { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12) %142, ptr noundef nonnull align 4 dereferenceable(12) %38)
  store { i64, i32 } %146, ptr %41, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 8 %41, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %42) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 4 %34, i64 4, i1 false), !tbaa.struct !9
  %147 = getelementptr inbounds %class.GFloat, ptr %43, i32 0, i32 0
  %148 = load i32, ptr %147, align 4
  %149 = call { i64, i32 } @_Zml6GFloatRK8GVector3(i32 %148, ptr noundef nonnull align 4 dereferenceable(12) %15)
  store { i64, i32 } %149, ptr %44, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 8 %44, i64 12, i1 false)
  %150 = call { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12) %37, ptr noundef nonnull align 4 dereferenceable(12) %42)
  store { i64, i32 } %150, ptr %45, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 8 %45, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %42) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %37) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %46) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %47) #5
  %151 = load ptr, ptr %8, align 8, !tbaa !5
  %152 = getelementptr inbounds %class.GTransform_QT, ptr %151, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 12, ptr %48) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %49, ptr align 4 %5, i64 4, i1 false), !tbaa.struct !9
  %153 = getelementptr inbounds %class.GFloat, ptr %49, i32 0, i32 0
  %154 = load i32, ptr %153, align 4
  %155 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %9, i32 %154)
  store { i64, i32 } %155, ptr %50, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %48, ptr align 8 %50, i64 12, i1 false)
  %156 = call { i64, i32 } @_ZNK8GVector3miERKS_(ptr noundef nonnull align 4 dereferenceable(12) %152, ptr noundef nonnull align 4 dereferenceable(12) %48)
  store { i64, i32 } %156, ptr %51, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %47, ptr align 8 %51, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %52) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %53, ptr align 4 %34, i64 4, i1 false), !tbaa.struct !9
  %157 = getelementptr inbounds %class.GFloat, ptr %53, i32 0, i32 0
  %158 = load i32, ptr %157, align 4
  %159 = call { i64, i32 } @_Zml6GFloatRK8GVector3(i32 %158, ptr noundef nonnull align 4 dereferenceable(12) %15)
  store { i64, i32 } %159, ptr %54, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %52, ptr align 8 %54, i64 12, i1 false)
  %160 = call { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12) %47, ptr noundef nonnull align 4 dereferenceable(12) %52)
  store { i64, i32 } %160, ptr %55, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %46, ptr align 8 %55, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %52) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %48) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %47) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %56) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %57) #5
  %161 = load ptr, ptr %8, align 8, !tbaa !5
  %162 = getelementptr inbounds %class.GTransform_QT, ptr %161, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 12, ptr %58) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %59, ptr align 4 %5, i64 4, i1 false), !tbaa.struct !9
  %163 = getelementptr inbounds %class.GFloat, ptr %59, i32 0, i32 0
  %164 = load i32, ptr %163, align 4
  %165 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %15, i32 %164)
  store { i64, i32 } %165, ptr %60, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %58, ptr align 8 %60, i64 12, i1 false)
  %166 = call { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12) %162, ptr noundef nonnull align 4 dereferenceable(12) %58)
  store { i64, i32 } %166, ptr %61, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %57, ptr align 8 %61, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %62) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %63, ptr align 4 %34, i64 4, i1 false), !tbaa.struct !9
  %167 = getelementptr inbounds %class.GFloat, ptr %63, i32 0, i32 0
  %168 = load i32, ptr %167, align 4
  %169 = call { i64, i32 } @_Zml6GFloatRK8GVector3(i32 %168, ptr noundef nonnull align 4 dereferenceable(12) %9)
  store { i64, i32 } %169, ptr %64, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %62, ptr align 8 %64, i64 12, i1 false)
  %170 = call { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12) %57, ptr noundef nonnull align 4 dereferenceable(12) %62)
  store { i64, i32 } %170, ptr %65, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %56, ptr align 8 %65, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %62) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %58) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %57) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %66) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %67) #5
  %171 = load ptr, ptr %8, align 8, !tbaa !5
  %172 = getelementptr inbounds %class.GTransform_QT, ptr %171, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 12, ptr %68) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %69, ptr align 4 %5, i64 4, i1 false), !tbaa.struct !9
  %173 = getelementptr inbounds %class.GFloat, ptr %69, i32 0, i32 0
  %174 = load i32, ptr %173, align 4
  %175 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %15, i32 %174)
  store { i64, i32 } %175, ptr %70, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %68, ptr align 8 %70, i64 12, i1 false)
  %176 = call { i64, i32 } @_ZNK8GVector3miERKS_(ptr noundef nonnull align 4 dereferenceable(12) %172, ptr noundef nonnull align 4 dereferenceable(12) %68)
  store { i64, i32 } %176, ptr %71, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %67, ptr align 8 %71, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %72) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %73, ptr align 4 %34, i64 4, i1 false), !tbaa.struct !9
  %177 = getelementptr inbounds %class.GFloat, ptr %73, i32 0, i32 0
  %178 = load i32, ptr %177, align 4
  %179 = call { i64, i32 } @_Zml6GFloatRK8GVector3(i32 %178, ptr noundef nonnull align 4 dereferenceable(12) %9)
  store { i64, i32 } %179, ptr %74, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %72, ptr align 8 %74, i64 12, i1 false)
  %180 = call { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12) %67, ptr noundef nonnull align 4 dereferenceable(12) %72)
  store { i64, i32 } %180, ptr %75, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %66, ptr align 8 %75, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %72) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %68) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %67) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %76, ptr align 4 %6, i64 4, i1 false), !tbaa.struct !9
  %181 = getelementptr inbounds %class.GColor, ptr %76, i32 0, i32 0
  %182 = load i32, ptr %181, align 4
  %183 = load ptr, ptr %82, align 8, !tbaa !12
  %184 = getelementptr inbounds ptr, ptr %183, i64 0
  %185 = load ptr, ptr %184, align 8
  call void %185(ptr noundef nonnull align 8 dereferenceable(8) %82, ptr noundef nonnull align 4 dereferenceable(12) %36, ptr noundef nonnull align 4 dereferenceable(12) %46, i32 %182)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %77, ptr align 4 %6, i64 4, i1 false), !tbaa.struct !9
  %186 = getelementptr inbounds %class.GColor, ptr %77, i32 0, i32 0
  %187 = load i32, ptr %186, align 4
  %188 = load ptr, ptr %82, align 8, !tbaa !12
  %189 = getelementptr inbounds ptr, ptr %188, i64 0
  %190 = load ptr, ptr %189, align 8
  call void %190(ptr noundef nonnull align 8 dereferenceable(8) %82, ptr noundef nonnull align 4 dereferenceable(12) %56, ptr noundef nonnull align 4 dereferenceable(12) %66, i32 %187)
  call void @llvm.lifetime.end.p0(i64 12, ptr %66) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %56) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %46) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %36) #5
  br label %191

191:                                              ; preds = %140
  %192 = call i32 @_ZN5GMath7Makef32Eijj(i32 noundef 10, i32 noundef 0, i32 noundef 1)
  %193 = getelementptr inbounds %class.GFloat, ptr %78, i32 0, i32 0
  store i32 %192, ptr %193, align 4
  %194 = getelementptr inbounds %class.GFloat, ptr %78, i32 0, i32 0
  %195 = load i32, ptr %194, align 4
  %196 = call i32 @_ZN6GFloatpLES_(ptr noundef nonnull align 4 dereferenceable(4) %34, i32 %195)
  %197 = getelementptr inbounds %class.GFloat, ptr %79, i32 0, i32 0
  store i32 %196, ptr %197, align 4
  br label %135, !llvm.loop !14

198:                                              ; preds = %139
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #5
  ret void
}

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { 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 #4 = { 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 #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 = !{i64 0, i64 4, !10}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"vtable pointer", !8, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


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

%class.GFloat = type { i32 }
%class.GVector3 = type { %class.GFloat, %class.GFloat, %class.GFloat }

; 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 uwtable
declare dso_local { i64, i32 } @_ZNK13GTransform_QT15TransformNormalERK8GVector3(ptr noundef nonnull align 4 dereferenceable(28), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZN5GMath4ZeroEv() local_unnamed_addr #1 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 #2 align 2

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

; 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 } @_ZNK8GVector3miERKS_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZN5GMath3OneEv() local_unnamed_addr #1 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 uwtable
declare dso_local { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12), i32) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12IGlacierDraw9DrawPlaneERK13GTransform_QT6GFloat6GColor(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 4 dereferenceable(28) %1, i32 %2, i32 %3) unnamed_addr #1 align 2 {
  %5 = alloca %class.GFloat, align 4
  %6 = alloca %class.GVector3, align 8
  %7 = alloca %class.GVector3, align 4
  %8 = alloca %class.GVector3, align 8
  %9 = alloca %class.GVector3, align 4
  %10 = alloca %class.GVector3, align 8
  %11 = alloca %class.GVector3, align 8
  %12 = alloca %class.GVector3, align 8
  %13 = alloca %class.GVector3, align 8
  %14 = alloca %class.GVector3, align 8
  %15 = alloca %class.GFloat, align 4
  %16 = alloca %class.GVector3, align 8
  %17 = alloca %class.GVector3, align 8
  %18 = alloca %class.GVector3, align 8
  %19 = alloca %class.GVector3, align 8
  %20 = alloca %class.GVector3, align 8
  %21 = alloca %class.GVector3, align 8
  %22 = alloca %class.GVector3, align 8
  %23 = alloca %class.GVector3, align 8
  %24 = alloca %class.GVector3, align 8
  %25 = alloca %class.GVector3, align 8
  %26 = alloca %class.GVector3, align 8
  %27 = alloca %class.GVector3, align 8
  %28 = alloca %class.GVector3, align 8
  %29 = alloca %class.GVector3, align 8
  %30 = alloca %class.GVector3, align 8
  %31 = alloca %class.GVector3, align 8
  store i32 %2, ptr %5, align 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
  %32 = tail call i32 @_ZN5GMath4ZeroEv()
  %33 = tail call i32 @_ZN5GMath3OneEv()
  %34 = tail call i32 @_ZN5GMath4ZeroEv()
  call void @_ZN8GVector3C2E6GFloatS0_S0_(ptr noundef nonnull align 4 dereferenceable(12) %7, i32 %32, i32 %33, i32 %34)
  %35 = call { i64, i32 } @_ZNK13GTransform_QT15TransformNormalERK8GVector3(ptr noundef nonnull align 4 dereferenceable(28) %1, ptr noundef nonnull align 4 dereferenceable(12) %7)
  %.fca.0.extract104 = extractvalue { i64, i32 } %35, 0
  %.fca.1.extract105 = extractvalue { i64, i32 } %35, 1
  store i64 %.fca.0.extract104, ptr %6, align 8
  %.sroa.2107.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  store i32 %.fca.1.extract105, ptr %.sroa.2107.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #4
  %36 = call i32 @_ZN5GMath4ZeroEv()
  %37 = call i32 @_ZN5GMath4ZeroEv()
  %38 = call i32 @_ZN5GMath3OneEv()
  call void @_ZN8GVector3C2E6GFloatS0_S0_(ptr noundef nonnull align 4 dereferenceable(12) %9, i32 %36, i32 %37, i32 %38)
  %39 = call { i64, i32 } @_ZNK13GTransform_QT15TransformNormalERK8GVector3(ptr noundef nonnull align 4 dereferenceable(28) %1, ptr noundef nonnull align 4 dereferenceable(12) %9)
  %.fca.0.extract97 = extractvalue { i64, i32 } %39, 0
  %.fca.1.extract98 = extractvalue { i64, i32 } %39, 1
  store i64 %.fca.0.extract97, ptr %8, align 8
  %.sroa.2100.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  store i32 %.fca.1.extract98, ptr %.sroa.2100.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #4
  %40 = getelementptr inbounds i8, ptr %1, i64 16
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #4
  %41 = call { i64, i32 } @_ZN8GVector35UnitXEv()
  %.fca.0.extract93 = extractvalue { i64, i32 } %41, 0
  %.fca.1.extract94 = extractvalue { i64, i32 } %41, 1
  store i64 %.fca.0.extract93, ptr %14, align 8
  %.sroa.296.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 8
  store i32 %.fca.1.extract94, ptr %.sroa.296.0..sroa_idx, align 8
  %42 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %14, i32 %2)
  %.fca.0.extract88 = extractvalue { i64, i32 } %42, 0
  %.fca.1.extract89 = extractvalue { i64, i32 } %42, 1
  store i64 %.fca.0.extract88, ptr %13, align 8
  %.sroa.291.0..sroa_idx = getelementptr inbounds i8, ptr %13, i64 8
  store i32 %.fca.1.extract89, ptr %.sroa.291.0..sroa_idx, align 8
  %43 = call i32 @_ZN5GMath7Makef32Eijj(i32 noundef 0, i32 noundef 15, i32 noundef 100)
  %44 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %13, i32 %43)
  %.fca.0.extract83 = extractvalue { i64, i32 } %44, 0
  %.fca.1.extract84 = extractvalue { i64, i32 } %44, 1
  store i64 %.fca.0.extract83, ptr %12, align 8
  %.sroa.286.0..sroa_idx = getelementptr inbounds i8, ptr %12, i64 8
  store i32 %.fca.1.extract84, ptr %.sroa.286.0..sroa_idx, align 8
  %45 = call { i64, i32 } @_ZNK11GQuaternion12RotateVectorERK8GVector3(ptr noundef nonnull align 4 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(12) %12)
  %.fca.0.extract79 = extractvalue { i64, i32 } %45, 0
  %.fca.1.extract80 = extractvalue { i64, i32 } %45, 1
  store i64 %.fca.0.extract79, ptr %11, align 8
  %.sroa.282.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 8
  store i32 %.fca.1.extract80, ptr %.sroa.282.0..sroa_idx, align 8
  %46 = call { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12) %40, ptr noundef nonnull align 4 dereferenceable(12) %11)
  %.fca.0.extract75 = extractvalue { i64, i32 } %46, 0
  %.fca.1.extract76 = extractvalue { i64, i32 } %46, 1
  store i64 %.fca.0.extract75, ptr %10, align 8
  %.sroa.278.0..sroa_idx = getelementptr inbounds i8, ptr %10, i64 8
  store i32 %.fca.1.extract76, ptr %.sroa.278.0..sroa_idx, align 8
  %47 = load ptr, ptr %0, align 8, !tbaa !5
  %48 = load ptr, ptr %47, align 8
  call void %48(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 4 dereferenceable(12) %40, ptr noundef nonnull align 4 dereferenceable(12) %10, i32 %3)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #4
  %49 = call i32 @_ZNK6GFloatngEv(ptr noundef nonnull align 4 dereferenceable(4) %5)
  store i32 %49, ptr %15, align 4
  %.sroa.073.0.copyload123 = load i32, ptr %5, align 4, !tbaa !8
  %50 = call noundef zeroext i1 @_ZNK6GFloatleES_(ptr noundef nonnull align 4 dereferenceable(4) %15, i32 %.sroa.073.0.copyload123)
  br i1 %50, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %4
  %.sroa.271.0..sroa_idx = getelementptr inbounds i8, ptr %18, i64 8
  %.sroa.267.0..sroa_idx = getelementptr inbounds i8, ptr %17, i64 8
  %.sroa.262.0..sroa_idx = getelementptr inbounds i8, ptr %19, i64 8
  %.sroa.258.0..sroa_idx = getelementptr inbounds i8, ptr %16, i64 8
  %.sroa.253.0..sroa_idx = getelementptr inbounds i8, ptr %22, i64 8
  %.sroa.249.0..sroa_idx = getelementptr inbounds i8, ptr %21, i64 8
  %.sroa.244.0..sroa_idx = getelementptr inbounds i8, ptr %23, i64 8
  %.sroa.240.0..sroa_idx = getelementptr inbounds i8, ptr %20, i64 8
  %.sroa.235.0..sroa_idx = getelementptr inbounds i8, ptr %26, i64 8
  %.sroa.231.0..sroa_idx = getelementptr inbounds i8, ptr %25, i64 8
  %.sroa.226.0..sroa_idx = getelementptr inbounds i8, ptr %27, i64 8
  %.sroa.222.0..sroa_idx = getelementptr inbounds i8, ptr %24, i64 8
  %.sroa.217.0..sroa_idx = getelementptr inbounds i8, ptr %30, i64 8
  %.sroa.213.0..sroa_idx = getelementptr inbounds i8, ptr %29, i64 8
  %.sroa.28.0..sroa_idx = getelementptr inbounds i8, ptr %31, i64 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %28, i64 8
  br label %51

._crit_edge:                                      ; preds = %51, %4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #4
  ret void

51:                                               ; preds = %.lr.ph, %51
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %18) #4
  %.sroa.072.0.copyload = load i32, ptr %5, align 4, !tbaa !8
  %52 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %6, i32 %.sroa.072.0.copyload)
  %.fca.0.extract68 = extractvalue { i64, i32 } %52, 0
  %.fca.1.extract69 = extractvalue { i64, i32 } %52, 1
  store i64 %.fca.0.extract68, ptr %18, align 8
  store i32 %.fca.1.extract69, ptr %.sroa.271.0..sroa_idx, align 8
  %53 = call { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12) %40, ptr noundef nonnull align 4 dereferenceable(12) %18)
  %.fca.0.extract64 = extractvalue { i64, i32 } %53, 0
  %.fca.1.extract65 = extractvalue { i64, i32 } %53, 1
  store i64 %.fca.0.extract64, ptr %17, align 8
  store i32 %.fca.1.extract65, ptr %.sroa.267.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %19) #4
  %.sroa.063.0.copyload = load i32, ptr %15, align 4, !tbaa !8
  %54 = call { i64, i32 } @_Zml6GFloatRK8GVector3(i32 %.sroa.063.0.copyload, ptr noundef nonnull align 4 dereferenceable(12) %8)
  %.fca.0.extract59 = extractvalue { i64, i32 } %54, 0
  %.fca.1.extract60 = extractvalue { i64, i32 } %54, 1
  store i64 %.fca.0.extract59, ptr %19, align 8
  store i32 %.fca.1.extract60, ptr %.sroa.262.0..sroa_idx, align 8
  %55 = call { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %19)
  %.fca.0.extract55 = extractvalue { i64, i32 } %55, 0
  %.fca.1.extract56 = extractvalue { i64, i32 } %55, 1
  store i64 %.fca.0.extract55, ptr %16, align 8
  store i32 %.fca.1.extract56, ptr %.sroa.258.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %19) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %20) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %21) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %22) #4
  %.sroa.054.0.copyload = load i32, ptr %5, align 4, !tbaa !8
  %56 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %6, i32 %.sroa.054.0.copyload)
  %.fca.0.extract50 = extractvalue { i64, i32 } %56, 0
  %.fca.1.extract51 = extractvalue { i64, i32 } %56, 1
  store i64 %.fca.0.extract50, ptr %22, align 8
  store i32 %.fca.1.extract51, ptr %.sroa.253.0..sroa_idx, align 8
  %57 = call { i64, i32 } @_ZNK8GVector3miERKS_(ptr noundef nonnull align 4 dereferenceable(12) %40, ptr noundef nonnull align 4 dereferenceable(12) %22)
  %.fca.0.extract46 = extractvalue { i64, i32 } %57, 0
  %.fca.1.extract47 = extractvalue { i64, i32 } %57, 1
  store i64 %.fca.0.extract46, ptr %21, align 8
  store i32 %.fca.1.extract47, ptr %.sroa.249.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %23) #4
  %.sroa.045.0.copyload = load i32, ptr %15, align 4, !tbaa !8
  %58 = call { i64, i32 } @_Zml6GFloatRK8GVector3(i32 %.sroa.045.0.copyload, ptr noundef nonnull align 4 dereferenceable(12) %8)
  %.fca.0.extract41 = extractvalue { i64, i32 } %58, 0
  %.fca.1.extract42 = extractvalue { i64, i32 } %58, 1
  store i64 %.fca.0.extract41, ptr %23, align 8
  store i32 %.fca.1.extract42, ptr %.sroa.244.0..sroa_idx, align 8
  %59 = call { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12) %21, ptr noundef nonnull align 4 dereferenceable(12) %23)
  %.fca.0.extract37 = extractvalue { i64, i32 } %59, 0
  %.fca.1.extract38 = extractvalue { i64, i32 } %59, 1
  store i64 %.fca.0.extract37, ptr %20, align 8
  store i32 %.fca.1.extract38, ptr %.sroa.240.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %23) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %21) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %24) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %25) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %26) #4
  %.sroa.036.0.copyload = load i32, ptr %5, align 4, !tbaa !8
  %60 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %8, i32 %.sroa.036.0.copyload)
  %.fca.0.extract32 = extractvalue { i64, i32 } %60, 0
  %.fca.1.extract33 = extractvalue { i64, i32 } %60, 1
  store i64 %.fca.0.extract32, ptr %26, align 8
  store i32 %.fca.1.extract33, ptr %.sroa.235.0..sroa_idx, align 8
  %61 = call { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12) %40, ptr noundef nonnull align 4 dereferenceable(12) %26)
  %.fca.0.extract28 = extractvalue { i64, i32 } %61, 0
  %.fca.1.extract29 = extractvalue { i64, i32 } %61, 1
  store i64 %.fca.0.extract28, ptr %25, align 8
  store i32 %.fca.1.extract29, ptr %.sroa.231.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %27) #4
  %.sroa.027.0.copyload = load i32, ptr %15, align 4, !tbaa !8
  %62 = call { i64, i32 } @_Zml6GFloatRK8GVector3(i32 %.sroa.027.0.copyload, ptr noundef nonnull align 4 dereferenceable(12) %6)
  %.fca.0.extract23 = extractvalue { i64, i32 } %62, 0
  %.fca.1.extract24 = extractvalue { i64, i32 } %62, 1
  store i64 %.fca.0.extract23, ptr %27, align 8
  store i32 %.fca.1.extract24, ptr %.sroa.226.0..sroa_idx, align 8
  %63 = call { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12) %25, ptr noundef nonnull align 4 dereferenceable(12) %27)
  %.fca.0.extract19 = extractvalue { i64, i32 } %63, 0
  %.fca.1.extract20 = extractvalue { i64, i32 } %63, 1
  store i64 %.fca.0.extract19, ptr %24, align 8
  store i32 %.fca.1.extract20, ptr %.sroa.222.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %27) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %26) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %25) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %28) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %29) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %30) #4
  %.sroa.018.0.copyload = load i32, ptr %5, align 4, !tbaa !8
  %64 = call { i64, i32 } @_ZNK8GVector3mlE6GFloat(ptr noundef nonnull align 4 dereferenceable(12) %8, i32 %.sroa.018.0.copyload)
  %.fca.0.extract14 = extractvalue { i64, i32 } %64, 0
  %.fca.1.extract15 = extractvalue { i64, i32 } %64, 1
  store i64 %.fca.0.extract14, ptr %30, align 8
  store i32 %.fca.1.extract15, ptr %.sroa.217.0..sroa_idx, align 8
  %65 = call { i64, i32 } @_ZNK8GVector3miERKS_(ptr noundef nonnull align 4 dereferenceable(12) %40, ptr noundef nonnull align 4 dereferenceable(12) %30)
  %.fca.0.extract10 = extractvalue { i64, i32 } %65, 0
  %.fca.1.extract11 = extractvalue { i64, i32 } %65, 1
  store i64 %.fca.0.extract10, ptr %29, align 8
  store i32 %.fca.1.extract11, ptr %.sroa.213.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %31) #4
  %.sroa.09.0.copyload = load i32, ptr %15, align 4, !tbaa !8
  %66 = call { i64, i32 } @_Zml6GFloatRK8GVector3(i32 %.sroa.09.0.copyload, ptr noundef nonnull align 4 dereferenceable(12) %6)
  %.fca.0.extract5 = extractvalue { i64, i32 } %66, 0
  %.fca.1.extract6 = extractvalue { i64, i32 } %66, 1
  store i64 %.fca.0.extract5, ptr %31, align 8
  store i32 %.fca.1.extract6, ptr %.sroa.28.0..sroa_idx, align 8
  %67 = call { i64, i32 } @_ZNK8GVector3plERKS_(ptr noundef nonnull align 4 dereferenceable(12) %29, ptr noundef nonnull align 4 dereferenceable(12) %31)
  %.fca.0.extract = extractvalue { i64, i32 } %67, 0
  %.fca.1.extract = extractvalue { i64, i32 } %67, 1
  store i64 %.fca.0.extract, ptr %28, align 8
  store i32 %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %31) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %30) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %29) #4
  %68 = load ptr, ptr %0, align 8, !tbaa !5
  %69 = load ptr, ptr %68, align 8
  call void %69(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 4 dereferenceable(12) %20, i32 %3)
  %70 = load ptr, ptr %0, align 8, !tbaa !5
  %71 = load ptr, ptr %70, align 8
  call void %71(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 4 dereferenceable(12) %24, ptr noundef nonnull align 4 dereferenceable(12) %28, i32 %3)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %28) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %24) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %20) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #4
  %72 = call i32 @_ZN5GMath7Makef32Eijj(i32 noundef 10, i32 noundef 0, i32 noundef 1)
  %73 = call i32 @_ZN6GFloatpLES_(ptr noundef nonnull align 4 dereferenceable(4) %15, i32 %72)
  %.sroa.073.0.copyload = load i32, ptr %5, align 4, !tbaa !8
  %74 = call noundef zeroext i1 @_ZNK6GFloatleES_(ptr noundef nonnull align 4 dereferenceable(4) %15, i32 %.sroa.073.0.copyload)
  br i1 %74, label %51, label %._crit_edge, !llvm.loop !11
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZN8GVector35UnitXEv() 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 uwtable
declare dso_local { i64, i32 } @_Zml6GFloatRK8GVector3(i32, ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #3

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass