; LLVM IR from devlinzhou/deterministic_physics :: UnrealDemo/Source/UnrealDemo/gphysics/src/math/glacier_matrix.ll (ZNK8GMatrix36ToQuatEv)

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

@_ZZNK8GMatrix36ToQuatEvE7s_iNext = external hidden global [3 x i32], align 4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6GFloatC2Ev(ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #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: inlinehint mustprogress uwtable
declare dso_local i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4), i32) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4), i32) #3 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: 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 @_ZN5GMath3OneEv() #4 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local { i64, i64 } @_ZNK8GMatrix36ToQuatEv(ptr noundef nonnull align 4 dereferenceable(36) %0) #4 align 2 {
  %2 = alloca %class.GQuaternion, align 4
  %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.GFloat, align 4
  %19 = alloca %class.GFloat, align 4
  %20 = alloca %class.GFloat, align 4
  %21 = alloca %class.GFloat, align 4
  %22 = alloca %class.GFloat, align 4
  %23 = alloca %class.GFloat, align 4
  %24 = alloca %class.GFloat, align 4
  %25 = alloca %class.GFloat, align 4
  %26 = alloca %class.GFloat, align 4
  %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 i32, align 4
  %32 = alloca %class.GFloat, align 4
  %33 = alloca %class.GFloat, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, 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 [3 x ptr], align 16
  %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
  store ptr %0, ptr %3, align 8, !tbaa !5
  %62 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  %63 = getelementptr inbounds %class.GMatrix3, ptr %62, i32 0, i32 0
  %64 = getelementptr inbounds [3 x [3 x %class.GFloat]], ptr %63, i64 0, i64 0
  %65 = getelementptr inbounds [3 x %class.GFloat], ptr %64, i64 0, i64 0
  %66 = getelementptr inbounds %class.GMatrix3, ptr %62, i32 0, i32 0
  %67 = getelementptr inbounds [3 x [3 x %class.GFloat]], ptr %66, i64 0, i64 1
  %68 = getelementptr inbounds [3 x %class.GFloat], ptr %67, i64 0, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 %68, i64 4, i1 false), !tbaa.struct !9
  %69 = getelementptr inbounds %class.GFloat, ptr %6, i32 0, i32 0
  %70 = load i32, ptr %69, align 4
  %71 = call i32 @_ZNK6GFloatplES_(ptr noundef nonnull align 4 dereferenceable(4) %65, i32 %70)
  %72 = getelementptr inbounds %class.GFloat, ptr %5, i32 0, i32 0
  store i32 %71, ptr %72, align 4
  %73 = getelementptr inbounds %class.GMatrix3, ptr %62, i32 0, i32 0
  %74 = getelementptr inbounds [3 x [3 x %class.GFloat]], ptr %73, i64 0, i64 2
  %75 = getelementptr inbounds [3 x %class.GFloat], ptr %74, i64 0, i64 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %75, i64 4, i1 false), !tbaa.struct !9
  %76 = getelementptr inbounds %class.GFloat, ptr %7, i32 0, i32 0
  %77 = load i32, ptr %76, align 4
  %78 = call i32 @_ZNK6GFloatplES_(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 %77)
  %79 = getelementptr inbounds %class.GFloat, ptr %4, i32 0, i32 0
  store i32 %78, ptr %79, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @_ZN6GFloatC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %8)
  %80 = call { i64, i64 } @_ZN11GQuaternion8IdentityEv()
  %81 = getelementptr inbounds { i64, i64 }, ptr %2, i32 0, i32 0
  %82 = extractvalue { i64, i64 } %80, 0
  store i64 %82, ptr %81, align 4
  %83 = getelementptr inbounds { i64, i64 }, ptr %2, i32 0, i32 1
  %84 = extractvalue { i64, i64 } %80, 1
  store i64 %84, ptr %83, align 4
  %85 = call i32 @_ZN5GMath4ZeroEv()
  %86 = getelementptr inbounds %class.GFloat, ptr %9, i32 0, i32 0
  store i32 %85, ptr %86, align 4
  %87 = getelementptr inbounds %class.GFloat, ptr %9, i32 0, i32 0
  %88 = load i32, ptr %87, align 4
  %89 = call noundef zeroext i1 @_ZNK6GFloatgtES_(ptr noundef nonnull align 4 dereferenceable(4) %4, i32 %88)
  br i1 %89, label %90, label %159

90:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %91 = call i32 @_ZN5GMath3OneEv()
  %92 = getelementptr inbounds %class.GFloat, ptr %12, i32 0, i32 0
  store i32 %91, ptr %92, align 4
  %93 = getelementptr inbounds %class.GFloat, ptr %12, i32 0, i32 0
  %94 = load i32, ptr %93, align 4
  %95 = call i32 @_ZNK6GFloatplES_(ptr noundef nonnull align 4 dereferenceable(4) %4, i32 %94)
  %96 = getelementptr inbounds %class.GFloat, ptr %11, i32 0, i32 0
  store i32 %95, ptr %96, align 4
  %97 = getelementptr inbounds %class.GFloat, ptr %11, i32 0, i32 0
  %98 = load i32, ptr %97, align 4
  %99 = call i32 @_ZN5GMath4SqrtE6GFloat(i32 %98)
  %100 = getelementptr inbounds %class.GFloat, ptr %10, i32 0, i32 0
  store i32 %99, ptr %100, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %10, i64 4, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %101 = call i32 @_ZN5GMath4HalfEv()
  %102 = getelementptr inbounds %class.GFloat, ptr %14, i32 0, i32 0
  store i32 %101, ptr %102, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %8, i64 4, i1 false), !tbaa.struct !9
  %103 = getelementptr inbounds %class.GFloat, ptr %15, i32 0, i32 0
  %104 = load i32, ptr %103, align 4
  %105 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %14, i32 %104)
  %106 = getelementptr inbounds %class.GFloat, ptr %13, i32 0, i32 0
  store i32 %105, ptr %106, align 4
  %107 = getelementptr inbounds %class.GQuaternion, ptr %2, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %107, ptr align 4 %13, i64 4, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %108 = call i32 @_ZN5GMath4HalfEv()
  %109 = getelementptr inbounds %class.GFloat, ptr %17, i32 0, i32 0
  store i32 %108, ptr %109, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %8, i64 4, i1 false), !tbaa.struct !9
  %110 = getelementptr inbounds %class.GFloat, ptr %18, i32 0, i32 0
  %111 = load i32, ptr %110, align 4
  %112 = call i32 @_ZNK6GFloatdvES_(ptr noundef nonnull align 4 dereferenceable(4) %17, i32 %111)
  %113 = getelementptr inbounds %class.GFloat, ptr %16, i32 0, i32 0
  store i32 %112, ptr %113, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %16, i64 4, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %114 = getelementptr inbounds %class.GMatrix3, ptr %62, i32 0, i32 0
  %115 = getelementptr inbounds [3 x [3 x %class.GFloat]], ptr %114, i64 0, i64 1
  %116 = getelementptr inbounds [3 x %class.GFloat], ptr %115, i64 0, i64 2
  %117 = getelementptr inbounds %class.GMatrix3, ptr %62, i32 0, i32 0
  %118 = getelementptr inbounds [3 x [3 x %class.GFloat]], ptr %117, i64 0, i64 2
  %119 = getelementptr inbounds [3 x %class.GFloat], ptr %118, i64 0, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %119, i64 4, i1 false), !tbaa.struct !9
  %120 = getelementptr inbounds %class.GFloat, ptr %21, i32 0, i32 0
  %121 = load i32, ptr %120, align 4
  %122 = call i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4) %116, i32 %121)
  %123 = getelementptr inbounds %class.GFloat, ptr %20, i32 0, i32 0
  store i32 %122, ptr %123, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %8, i64 4, i1 false), !tbaa.struct !9
  %124 = getelementptr inbounds %class.GFloat, ptr %22, i32 0, i32 0
  %125 = load i32, ptr %124, align 4
  %126 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 %125)
  %127 = getelementptr inbounds %class.GFloat, ptr %19, i32 0, i32 0
  store i32 %126, ptr %127, align 4
  %128 = getelementptr inbounds %class.GQuaternion, ptr %2, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %128, ptr align 4 %19, i64 4, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %129 = getelementptr inbounds %class.GMatrix3, ptr %62, i32 0, i32 0
  %130 = getelementptr inbounds [3 x [3 x %class.GFloat]], ptr %129, i64 0, i64 2
  %131 = getelementptr inbounds [3 x %class.GFloat], ptr %130, i64 0, i64 0
  %132 = getelementptr inbounds %class.GMatrix3, ptr %62, i32 0, i32 0
  %133 = getelementptr inbounds [3 x [3 x %class.GFloat]], ptr %132, i64 0, i64 0
  %134 = getelementptr inbounds [3 x %class.GFloat], ptr %133, i64 0, i64 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %134, i64 4, i1 false), !tbaa.struct !9
  %135 = getelementptr inbounds %class.GFloat, ptr %25, i32 0, i32 0
  %136 = load i32, ptr %135, align 4
  %137 = call i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4) %131, i32 %136)
  %138 = getelementptr inbounds %class.GFloat, ptr %24, i32 0, i32 0
  store i32 %137, ptr %138, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %8, i64 4, i1 false), !tbaa.struct !9
  %139 = getelementptr inbounds %class.GFloat, ptr %26, i32 0, i32 0
  %140 = load i32, ptr %139, align 4
  %141 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %24, i32 %140)
  %142 = getelementptr inbounds %class.GFloat, ptr %23, i32 0, i32 0
  store i32 %141, ptr %142, align 4
  %143 = getelementptr inbounds %class.GQuaternion, ptr %2, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %143, ptr align 4 %23, i64 4, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %144 = getelementptr inbounds %class.GMatrix3, ptr %62, i32 0, i32 0
  %145 = getelementptr inbounds [3 x [3 x %class.GFloat]], ptr %144, i64 0, i64 0
  %146 = getelementptr inbounds [3 x %class.GFloat], ptr %145, i64 0, i64 1
  %147 = getelementptr inbounds %class.GMatrix3, ptr %62, i32 0, i32 0
  %148 = getelementptr inbounds [3 x [3 x %class.GFloat]], ptr %147, i64 0, i64 1
  %149 = getelementptr inbounds [3 x %class.GFloat], ptr %148, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 4 %149, i64 4, i1 false), !tbaa.struct !9
  %150 = getelementptr inbounds %class.GFloat, ptr %29, i32 0, i32 0
  %151 = load i32, ptr %150, align 4
  %152 = call i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4) %146, i32 %151)
  %153 = getelementptr inbounds %class.GFloat, ptr %28, i32 0, i32 0
  store i32 %152, ptr %153, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 %8, i64 4, i1 false), !tbaa.struct !9
  %154 = getelementptr inbounds %class.GFloat, ptr %30, i32 0, i32 0
  %155 = load i32, ptr %154, align 4
  %156 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %28, i32 %155)
  %157 = getelementptr inbounds %class.GFloat, ptr %27, i32 0, i32 0
  store i32 %156, ptr %157, align 4
  %158 = getelementptr inbounds %class.GQuaternion, ptr %2, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %158, ptr align 4 %27, i64 4, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %329

159:                                              ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  store i32 0, ptr %31, align 4, !tbaa !10
  %160 = getelementptr inbounds %class.GMatrix3, ptr %62, i32 0, i32 0
  %161 = getelementptr inbounds [3 x [3 x %class.GFloat]], ptr %160, i64 0, i64 1
  %162 = getelementptr inbounds [3 x %class.GFloat], ptr %161, i64 0, i64 1
  %163 = getelementptr inbounds %class.GMatrix3, ptr %62, i32 0, i32 0
  %164 = getelementptr inbounds [3 x [3 x %class.GFloat]], ptr %163, i64 0, i64 0
  %165 = getelementptr inbounds [3 x %class.GFloat], ptr %164, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %165, i64 4, i1 false), !tbaa.struct !9
  %166 = getelementptr inbounds %class.GFloat, ptr %32, i32 0, i32 0
  %167 = load i32, ptr %166, align 4
  %168 = call noundef zeroext i1 @_ZNK6GFloatgtES_(ptr noundef nonnull align 4 dereferenceable(4) %162, i32 %167)
  br i1 %168, label %169, label %170

169:                                              ; preds = %159
  store i32 1, ptr %31, align 4, !tbaa !10
  br label %170

170:                                              ; preds = %169, %159
  %171 = getelementptr inbounds %class.GMatrix3, ptr %62, i32 0, i32 0
  %172 = getelementptr inbounds [3 x [3 x %class.GFloat]], ptr %171, i64 0, i64 2
  %173 = getelementptr inbounds [3 x %class.GFloat], ptr %172, i64 0, i64 2
  %174 = getelementptr inbounds %class.GMatrix3, ptr %62, i32 0, i32 0
  %175 = load i32, ptr %31, align 4, !tbaa !10
  %176 = zext i32 %175 to i64
  %177 = getelementptr inbounds [3 x [3 x %class.GFloat]], ptr %174, i64 0, i64 %176
  %178 = load i32, ptr %31, align 4, !tbaa !10
  %179 = zext i32 %178 to i64
  %180 = getelementptr inbounds [3 x %class.GFloat], ptr %177, i64 0, i64 %179
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %180, i64 4, i1 false), !tbaa.struct !9
  %181 = getelementptr inbounds %class.GFloat, ptr %33, i32 0, i32 0
  %182 = load i32, ptr %181, align 4
  %183 = call noundef zeroext i1 @_ZNK6GFloatgtES_(ptr noundef nonnull align 4 dereferenceable(4) %173, i32 %182)
  br i1 %183, label %184, label %185

184:                                              ; preds = %170
  store i32 2, ptr %31, align 4, !tbaa !10
  br label %185

185:                                              ; preds = %184, %170
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  %186 = load i32, ptr %31, align 4, !tbaa !10
  %187 = zext i32 %186 to i64
  %188 = getelementptr inbounds [3 x i32], ptr @_ZZNK8GMatrix36ToQuatEvE7s_iNext, i64 0, i64 %187
  %189 = load i32, ptr %188, align 4, !tbaa !10
  store i32 %189, ptr %34, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  %190 = load i32, ptr %34, align 4, !tbaa !10
  %191 = zext i32 %190 to i64
  %192 = getelementptr inbounds [3 x i32], ptr @_ZZNK8GMatrix36ToQuatEvE7s_iNext, i64 0, i64 %191
  %193 = load i32, ptr %192, align 4, !tbaa !10
  store i32 %193, ptr %35, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #6
  %194 = getelementptr inbounds %class.GMatrix3, ptr %62, i32 0, i32 0
  %195 = load i32, ptr %31, align 4, !tbaa !10
  %196 = zext i32 %195 to i64
  %197 = getelementptr inbounds [3 x [3 x %class.GFloat]], ptr %194, i64 0, i64 %196
  %198 = load i32, ptr %31, align 4, !tbaa !10
  %199 = zext i32 %198 to i64
  %200 = getelementptr inbounds [3 x %class.GFloat], ptr %197, i64 0, i64 %199
  %201 = getelementptr inbounds %class.GMatrix3, ptr %62, i32 0, i32 0
  %202 = load i32, ptr %34, align 4, !tbaa !10
  %203 = zext i32 %202 to i64
  %204 = getelementptr inbounds [3 x [3 x %class.GFloat]], ptr %201, i64 0, i64 %203
  %205 = load i32, ptr %34, align 4, !tbaa !10
  %206 = zext i32 %205 to i64
  %207 = getelementptr inbounds [3 x %class.GFloat], ptr %204, i64 0, i64 %206
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 4 %207, i64 4, i1 false), !tbaa.struct !9
  %208 = getelementptr inbounds %class.GFloat, ptr %40, i32 0, i32 0
  %209 = load i32, ptr %208, align 4
  %210 = call i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4) %200, i32 %209)
  %211 = getelementptr inbounds %class.GFloat, ptr %39, i32 0, i32 0
  store i32 %210, ptr %211, align 4
  %212 = getelementptr inbounds %class.GMatrix3, ptr %62, i32 0, i32 0
  %213 = load i32, ptr %35, align 4, !tbaa !10
  %214 = zext i32 %213 to i64
  %215 = getelementptr inbounds [3 x [3 x %class.GFloat]], ptr %212, i64 0, i64 %214
  %216 = load i32, ptr %35, align 4, !tbaa !10
  %217 = zext i32 %216 to i64
  %218 = getelementptr inbounds [3 x %class.GFloat], ptr %215, i64 0, i64 %217
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %41, ptr align 4 %218, i64 4, i1 false), !tbaa.struct !9
  %219 = getelementptr inbounds %class.GFloat, ptr %41, i32 0, i32 0
  %220 = load i32, ptr %219, align 4
  %221 = call i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4) %39, i32 %220)
  %222 = getelementptr inbounds %class.GFloat, ptr %38, i32 0, i32 0
  store i32 %221, ptr %222, align 4
  %223 = call i32 @_ZN5GMath3OneEv()
  %224 = getelementptr inbounds %class.GFloat, ptr %42, i32 0, i32 0
  store i32 %223, ptr %224, align 4
  %225 = getelementptr inbounds %class.GFloat, ptr %42, i32 0, i32 0
  %226 = load i32, ptr %225, align 4
  %227 = call i32 @_ZNK6GFloatplES_(ptr noundef nonnull align 4 dereferenceable(4) %38, i32 %226)
  %228 = getelementptr inbounds %class.GFloat, ptr %37, i32 0, i32 0
  store i32 %227, ptr %228, align 4
  %229 = getelementptr inbounds %class.GFloat, ptr %37, i32 0, i32 0
  %230 = load i32, ptr %229, align 4
  %231 = call i32 @_ZN5GMath4SqrtE6GFloat(i32 %230)
  %232 = getelementptr inbounds %class.GFloat, ptr %36, i32 0, i32 0
  store i32 %231, ptr %232, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %36, i64 4, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %43) #6
  %233 = getelementptr inbounds %class.GQuaternion, ptr %2, i32 0, i32 0
  store ptr %233, ptr %43, align 8, !tbaa !5
  %234 = getelementptr inbounds ptr, ptr %43, i64 1
  %235 = getelementptr inbounds %class.GQuaternion, ptr %2, i32 0, i32 1
  store ptr %235, ptr %234, align 8, !tbaa !5
  %236 = getelementptr inbounds ptr, ptr %43, i64 2
  %237 = getelementptr inbounds %class.GQuaternion, ptr %2, i32 0, i32 2
  store ptr %237, ptr %236, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #6
  %238 = call i32 @_ZN5GMath4HalfEv()
  %239 = getelementptr inbounds %class.GFloat, ptr %45, i32 0, i32 0
  store i32 %238, ptr %239, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %46, ptr align 4 %8, i64 4, i1 false), !tbaa.struct !9
  %240 = getelementptr inbounds %class.GFloat, ptr %46, i32 0, i32 0
  %241 = load i32, ptr %240, align 4
  %242 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %45, i32 %241)
  %243 = getelementptr inbounds %class.GFloat, ptr %44, i32 0, i32 0
  store i32 %242, ptr %243, align 4
  %244 = load i32, ptr %31, align 4, !tbaa !10
  %245 = zext i32 %244 to i64
  %246 = getelementptr inbounds [3 x ptr], ptr %43, i64 0, i64 %245
  %247 = load ptr, ptr %246, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %247, ptr align 4 %44, i64 4, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #6
  %248 = call i32 @_ZN5GMath4HalfEv()
  %249 = getelementptr inbounds %class.GFloat, ptr %48, i32 0, i32 0
  store i32 %248, ptr %249, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %49, ptr align 4 %8, i64 4, i1 false), !tbaa.struct !9
  %250 = getelementptr inbounds %class.GFloat, ptr %49, i32 0, i32 0
  %251 = load i32, ptr %250, align 4
  %252 = call i32 @_ZNK6GFloatdvES_(ptr noundef nonnull align 4 dereferenceable(4) %48, i32 %251)
  %253 = getelementptr inbounds %class.GFloat, ptr %47, i32 0, i32 0
  store i32 %252, ptr %253, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %47, i64 4, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #6
  %254 = getelementptr inbounds %class.GMatrix3, ptr %62, i32 0, i32 0
  %255 = load i32, ptr %34, align 4, !tbaa !10
  %256 = zext i32 %255 to i64
  %257 = getelementptr inbounds [3 x [3 x %class.GFloat]], ptr %254, i64 0, i64 %256
  %258 = load i32, ptr %35, align 4, !tbaa !10
  %259 = zext i32 %258 to i64
  %260 = getelementptr inbounds [3 x %class.GFloat], ptr %257, i64 0, i64 %259
  %261 = getelementptr inbounds %class.GMatrix3, ptr %62, i32 0, i32 0
  %262 = load i32, ptr %35, align 4, !tbaa !10
  %263 = zext i32 %262 to i64
  %264 = getelementptr inbounds [3 x [3 x %class.GFloat]], ptr %261, i64 0, i64 %263
  %265 = load i32, ptr %34, align 4, !tbaa !10
  %266 = zext i32 %265 to i64
  %267 = getelementptr inbounds [3 x %class.GFloat], ptr %264, i64 0, i64 %266
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %52, ptr align 4 %267, i64 4, i1 false), !tbaa.struct !9
  %268 = getelementptr inbounds %class.GFloat, ptr %52, i32 0, i32 0
  %269 = load i32, ptr %268, align 4
  %270 = call i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4) %260, i32 %269)
  %271 = getelementptr inbounds %class.GFloat, ptr %51, i32 0, i32 0
  store i32 %270, ptr %271, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %53, ptr align 4 %8, i64 4, i1 false), !tbaa.struct !9
  %272 = getelementptr inbounds %class.GFloat, ptr %53, i32 0, i32 0
  %273 = load i32, ptr %272, align 4
  %274 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %51, i32 %273)
  %275 = getelementptr inbounds %class.GFloat, ptr %50, i32 0, i32 0
  store i32 %274, ptr %275, align 4
  %276 = getelementptr inbounds %class.GQuaternion, ptr %2, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %276, ptr align 4 %50, i64 4, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #6
  %277 = getelementptr inbounds %class.GMatrix3, ptr %62, i32 0, i32 0
  %278 = load i32, ptr %31, align 4, !tbaa !10
  %279 = zext i32 %278 to i64
  %280 = getelementptr inbounds [3 x [3 x %class.GFloat]], ptr %277, i64 0, i64 %279
  %281 = load i32, ptr %34, align 4, !tbaa !10
  %282 = zext i32 %281 to i64
  %283 = getelementptr inbounds [3 x %class.GFloat], ptr %280, i64 0, i64 %282
  %284 = getelementptr inbounds %class.GMatrix3, ptr %62, i32 0, i32 0
  %285 = load i32, ptr %34, align 4, !tbaa !10
  %286 = zext i32 %285 to i64
  %287 = getelementptr inbounds [3 x [3 x %class.GFloat]], ptr %284, i64 0, i64 %286
  %288 = load i32, ptr %31, align 4, !tbaa !10
  %289 = zext i32 %288 to i64
  %290 = getelementptr inbounds [3 x %class.GFloat], ptr %287, i64 0, i64 %289
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %56, ptr align 4 %290, i64 4, i1 false), !tbaa.struct !9
  %291 = getelementptr inbounds %class.GFloat, ptr %56, i32 0, i32 0
  %292 = load i32, ptr %291, align 4
  %293 = call i32 @_ZNK6GFloatplES_(ptr noundef nonnull align 4 dereferenceable(4) %283, i32 %292)
  %294 = getelementptr inbounds %class.GFloat, ptr %55, i32 0, i32 0
  store i32 %293, ptr %294, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %57, ptr align 4 %8, i64 4, i1 false), !tbaa.struct !9
  %295 = getelementptr inbounds %class.GFloat, ptr %57, i32 0, i32 0
  %296 = load i32, ptr %295, align 4
  %297 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %55, i32 %296)
  %298 = getelementptr inbounds %class.GFloat, ptr %54, i32 0, i32 0
  store i32 %297, ptr %298, align 4
  %299 = load i32, ptr %34, align 4, !tbaa !10
  %300 = zext i32 %299 to i64
  %301 = getelementptr inbounds [3 x ptr], ptr %43, i64 0, i64 %300
  %302 = load ptr, ptr %301, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %302, ptr align 4 %54, i64 4, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %58) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #6
  %303 = getelementptr inbounds %class.GMatrix3, ptr %62, i32 0, i32 0
  %304 = load i32, ptr %31, align 4, !tbaa !10
  %305 = zext i32 %304 to i64
  %306 = getelementptr inbounds [3 x [3 x %class.GFloat]], ptr %303, i64 0, i64 %305
  %307 = load i32, ptr %35, align 4, !tbaa !10
  %308 = zext i32 %307 to i64
  %309 = getelementptr inbounds [3 x %class.GFloat], ptr %306, i64 0, i64 %308
  %310 = getelementptr inbounds %class.GMatrix3, ptr %62, i32 0, i32 0
  %311 = load i32, ptr %35, align 4, !tbaa !10
  %312 = zext i32 %311 to i64
  %313 = getelementptr inbounds [3 x [3 x %class.GFloat]], ptr %310, i64 0, i64 %312
  %314 = load i32, ptr %31, align 4, !tbaa !10
  %315 = zext i32 %314 to i64
  %316 = getelementptr inbounds [3 x %class.GFloat], ptr %313, i64 0, i64 %315
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %60, ptr align 4 %316, i64 4, i1 false), !tbaa.struct !9
  %317 = getelementptr inbounds %class.GFloat, ptr %60, i32 0, i32 0
  %318 = load i32, ptr %317, align 4
  %319 = call i32 @_ZNK6GFloatplES_(ptr noundef nonnull align 4 dereferenceable(4) %309, i32 %318)
  %320 = getelementptr inbounds %class.GFloat, ptr %59, i32 0, i32 0
  store i32 %319, ptr %320, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %61, ptr align 4 %8, i64 4, i1 false), !tbaa.struct !9
  %321 = getelementptr inbounds %class.GFloat, ptr %61, i32 0, i32 0
  %322 = load i32, ptr %321, align 4
  %323 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %59, i32 %322)
  %324 = getelementptr inbounds %class.GFloat, ptr %58, i32 0, i32 0
  store i32 %323, ptr %324, align 4
  %325 = load i32, ptr %35, align 4, !tbaa !10
  %326 = zext i32 %325 to i64
  %327 = getelementptr inbounds [3 x ptr], ptr %43, i64 0, i64 %326
  %328 = load ptr, ptr %327, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %328, ptr align 4 %58, i64 4, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %329

329:                                              ; preds = %185, %90
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  %330 = load { i64, i64 }, ptr %2, align 4
  ret { i64, i64 } %330
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i32 @_ZN5GMath4SqrtE6GFloat(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 = { 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 #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 = !{i64 0, i64 4, !10}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}


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

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

@_ZZNK8GMatrix36ToQuatEvE7s_iNext = external hidden local_unnamed_addr global [3 x i32], align 4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6GFloatC2Ev(ptr noundef nonnull align 4 dereferenceable(4)) 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: inlinehint mustprogress uwtable
declare dso_local i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4), i32) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4), i32) local_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) #1

; 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 @_ZN5GMath3OneEv() local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local { i64, i64 } @_ZNK8GMatrix36ToQuatEv(ptr noundef nonnull align 4 dereferenceable(36) %0) local_unnamed_addr #3 align 2 {
  %2 = alloca %class.GQuaternion, align 8
  %3 = alloca %class.GFloat, align 4
  %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 [3 x ptr], align 16
  %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
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  %19 = getelementptr inbounds i8, ptr %0, i64 16
  %.sroa.062.0.copyload = load i32, ptr %19, align 4, !tbaa !5
  %20 = tail call i32 @_ZNK6GFloatplES_(ptr noundef nonnull align 4 dereferenceable(4) %0, i32 %.sroa.062.0.copyload)
  store i32 %20, ptr %4, align 4
  %21 = getelementptr inbounds i8, ptr %0, i64 32
  %.sroa.061.0.copyload = load i32, ptr %21, align 4, !tbaa !5
  %22 = call i32 @_ZNK6GFloatplES_(ptr noundef nonnull align 4 dereferenceable(4) %4, i32 %.sroa.061.0.copyload)
  store i32 %22, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  call void @_ZN6GFloatC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %5)
  %23 = call { i64, i64 } @_ZN11GQuaternion8IdentityEv()
  %24 = extractvalue { i64, i64 } %23, 0
  store i64 %24, ptr %2, align 8
  %25 = getelementptr inbounds i8, ptr %2, i64 8
  %26 = extractvalue { i64, i64 } %23, 1
  store i64 %26, ptr %25, align 8
  %27 = call i32 @_ZN5GMath4ZeroEv()
  %28 = call noundef zeroext i1 @_ZNK6GFloatgtES_(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 %27)
  br i1 %28, label %29, label %51

29:                                               ; preds = %1
  %30 = getelementptr inbounds i8, ptr %0, i64 24
  %31 = getelementptr inbounds i8, ptr %0, i64 12
  %32 = call i32 @_ZN5GMath3OneEv()
  %33 = call i32 @_ZNK6GFloatplES_(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 %32)
  %34 = call i32 @_ZN5GMath4SqrtE6GFloat(i32 %33)
  store i32 %34, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  %35 = call i32 @_ZN5GMath4HalfEv()
  store i32 %35, ptr %6, align 4
  %.sroa.055.0.copyload = load i32, ptr %5, align 4, !tbaa !5
  %36 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %6, i32 %.sroa.055.0.copyload)
  %37 = getelementptr inbounds i8, ptr %2, i64 12
  store i32 %36, ptr %37, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  %38 = call i32 @_ZN5GMath4HalfEv()
  store i32 %38, ptr %7, align 4
  %.sroa.053.0.copyload = load i32, ptr %5, align 4, !tbaa !5
  %39 = call i32 @_ZNK6GFloatdvES_(ptr noundef nonnull align 4 dereferenceable(4) %7, i32 %.sroa.053.0.copyload)
  store i32 %39, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  %40 = getelementptr inbounds i8, ptr %0, i64 20
  %41 = getelementptr inbounds i8, ptr %0, i64 28
  %.sroa.051.0.copyload = load i32, ptr %41, align 4, !tbaa !5
  %42 = call i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4) %40, i32 %.sroa.051.0.copyload)
  store i32 %42, ptr %8, align 4
  %.sroa.050.0.copyload = load i32, ptr %5, align 4, !tbaa !5
  %43 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 %.sroa.050.0.copyload)
  store i32 %43, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  %44 = getelementptr inbounds i8, ptr %0, i64 8
  %.sroa.048.0.copyload = load i32, ptr %44, align 4, !tbaa !5
  %45 = call i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4) %30, i32 %.sroa.048.0.copyload)
  store i32 %45, ptr %9, align 4
  %.sroa.047.0.copyload = load i32, ptr %5, align 4, !tbaa !5
  %46 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 %.sroa.047.0.copyload)
  %47 = getelementptr inbounds i8, ptr %2, i64 4
  store i32 %46, ptr %47, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  %48 = getelementptr inbounds i8, ptr %0, i64 4
  %.sroa.045.0.copyload = load i32, ptr %31, align 4, !tbaa !5
  %49 = call i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4) %48, i32 %.sroa.045.0.copyload)
  store i32 %49, ptr %10, align 4
  %.sroa.044.0.copyload = load i32, ptr %5, align 4, !tbaa !5
  %50 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %10, i32 %.sroa.044.0.copyload)
  store i32 %50, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  br label %97

51:                                               ; preds = %1
  %.sroa.033.0.copyload = load i32, ptr %0, align 4, !tbaa !5
  %52 = call noundef zeroext i1 @_ZNK6GFloatgtES_(ptr noundef nonnull align 4 dereferenceable(4) %19, i32 %.sroa.033.0.copyload)
  %53 = zext i1 %52 to i64
  %54 = getelementptr inbounds [3 x [3 x %class.GFloat]], ptr %0, i64 0, i64 %53, i64 %53
  %.sroa.032.0.copyload = load i32, ptr %54, align 4, !tbaa !5
  %55 = call noundef zeroext i1 @_ZNK6GFloatgtES_(ptr noundef nonnull align 4 dereferenceable(4) %21, i32 %.sroa.032.0.copyload)
  %56 = select i1 %55, i64 2, i64 %53
  %57 = getelementptr inbounds [3 x i32], ptr @_ZZNK8GMatrix36ToQuatEvE7s_iNext, i64 0, i64 %56
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = zext i32 %58 to i64
  %60 = getelementptr inbounds [3 x i32], ptr @_ZZNK8GMatrix36ToQuatEvE7s_iNext, i64 0, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  %62 = getelementptr inbounds [3 x [3 x %class.GFloat]], ptr %0, i64 0, i64 %56, i64 %56
  %63 = getelementptr inbounds [3 x [3 x %class.GFloat]], ptr %0, i64 0, i64 %59, i64 %59
  %.sroa.015.0.copyload = load i32, ptr %63, align 4, !tbaa !5
  %64 = call i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4) %62, i32 %.sroa.015.0.copyload)
  store i32 %64, ptr %12, align 4
  %65 = zext i32 %61 to i64
  %66 = getelementptr inbounds [3 x [3 x %class.GFloat]], ptr %0, i64 0, i64 %65, i64 %65
  %.sroa.014.0.copyload = load i32, ptr %66, align 4, !tbaa !5
  %67 = call i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4) %12, i32 %.sroa.014.0.copyload)
  store i32 %67, ptr %11, align 4
  %68 = call i32 @_ZN5GMath3OneEv()
  %69 = call i32 @_ZNK6GFloatplES_(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 %68)
  %70 = call i32 @_ZN5GMath4SqrtE6GFloat(i32 %69)
  store i32 %70, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #5
  store ptr %2, ptr %13, align 16, !tbaa !9
  %71 = getelementptr inbounds i8, ptr %13, i64 8
  %72 = getelementptr inbounds i8, ptr %2, i64 4
  store ptr %72, ptr %71, align 8, !tbaa !9
  %73 = getelementptr inbounds i8, ptr %13, i64 16
  store ptr %25, ptr %73, align 16, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #5
  %74 = call i32 @_ZN5GMath4HalfEv()
  store i32 %74, ptr %14, align 4
  %.sroa.011.0.copyload = load i32, ptr %5, align 4, !tbaa !5
  %75 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %14, i32 %.sroa.011.0.copyload)
  %76 = getelementptr inbounds [3 x ptr], ptr %13, i64 0, i64 %56
  %77 = load ptr, ptr %76, align 8, !tbaa !9
  store i32 %75, ptr %77, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #5
  %78 = call i32 @_ZN5GMath4HalfEv()
  store i32 %78, ptr %15, align 4
  %.sroa.09.0.copyload = load i32, ptr %5, align 4, !tbaa !5
  %79 = call i32 @_ZNK6GFloatdvES_(ptr noundef nonnull align 4 dereferenceable(4) %15, i32 %.sroa.09.0.copyload)
  store i32 %79, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #5
  %80 = getelementptr inbounds [3 x [3 x %class.GFloat]], ptr %0, i64 0, i64 %59, i64 %65
  %81 = getelementptr inbounds [3 x [3 x %class.GFloat]], ptr %0, i64 0, i64 %65, i64 %59
  %.sroa.07.0.copyload = load i32, ptr %81, align 4, !tbaa !5
  %82 = call i32 @_ZNK6GFloatmiES_(ptr noundef nonnull align 4 dereferenceable(4) %80, i32 %.sroa.07.0.copyload)
  store i32 %82, ptr %16, align 4
  %.sroa.06.0.copyload = load i32, ptr %5, align 4, !tbaa !5
  %83 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %16, i32 %.sroa.06.0.copyload)
  %84 = getelementptr inbounds i8, ptr %2, i64 12
  store i32 %83, ptr %84, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #5
  %85 = getelementptr inbounds [3 x [3 x %class.GFloat]], ptr %0, i64 0, i64 %56, i64 %59
  %86 = getelementptr inbounds [3 x [3 x %class.GFloat]], ptr %0, i64 0, i64 %59, i64 %56
  %.sroa.04.0.copyload = load i32, ptr %86, align 4, !tbaa !5
  %87 = call i32 @_ZNK6GFloatplES_(ptr noundef nonnull align 4 dereferenceable(4) %85, i32 %.sroa.04.0.copyload)
  store i32 %87, ptr %17, align 4
  %.sroa.03.0.copyload = load i32, ptr %5, align 4, !tbaa !5
  %88 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %17, i32 %.sroa.03.0.copyload)
  %89 = getelementptr inbounds [3 x ptr], ptr %13, i64 0, i64 %59
  %90 = load ptr, ptr %89, align 8, !tbaa !9
  store i32 %88, ptr %90, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #5
  %91 = getelementptr inbounds [3 x [3 x %class.GFloat]], ptr %0, i64 0, i64 %56, i64 %65
  %92 = getelementptr inbounds [3 x [3 x %class.GFloat]], ptr %0, i64 0, i64 %65, i64 %56
  %.sroa.01.0.copyload = load i32, ptr %92, align 4, !tbaa !5
  %93 = call i32 @_ZNK6GFloatplES_(ptr noundef nonnull align 4 dereferenceable(4) %91, i32 %.sroa.01.0.copyload)
  store i32 %93, ptr %18, align 4
  %.sroa.0.0.copyload = load i32, ptr %5, align 4, !tbaa !5
  %94 = call i32 @_ZNK6GFloatmlES_(ptr noundef nonnull align 4 dereferenceable(4) %18, i32 %.sroa.0.0.copyload)
  %95 = getelementptr inbounds [3 x ptr], ptr %13, i64 0, i64 %65
  %96 = load ptr, ptr %95, align 8, !tbaa !9
  store i32 %94, ptr %96, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #5
  br label %97

97:                                               ; preds = %51, %29
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  %.fca.0.load = load i64, ptr %2, align 8
  %.fca.0.insert = insertvalue { i64, i64 } poison, i64 %.fca.0.load, 0
  %.fca.1.load = load i64, ptr %25, align 8
  %.fca.1.insert = insertvalue { i64, i64 } %.fca.0.insert, i64 %.fca.1.load, 1
  ret { i64, i64 } %.fca.1.insert
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i32 @_ZN5GMath4SqrtE6GFloat(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 = { 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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}


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