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

; 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.GFixedType32 = type { i32 }
%class.GFloat = type { i32 }
%class.GFixedType32.0 = type { i32 }

@__const._ZN6GFloat7InvSqrtES_.F1_5 = external hidden unnamed_addr constant %class.GFixedType32, align 4

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @_ZN6GFloat7InvSqrtES_(i32 %0) #4 align 2 {
  %2 = alloca %class.GFloat, align 4
  %3 = alloca %class.GFloat, align 4
  %4 = alloca %class.GFloat, align 4
  %5 = alloca %class.GFixedType32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %class.GFixedType32.0, align 4
  %8 = alloca %class.GFixedType32.0, align 4
  %9 = alloca %class.GFixedType32.0, align 4
  %10 = alloca %class.GFixedType32.0, align 4
  %11 = alloca %class.GFixedType32.0, align 4
  %12 = alloca %class.GFixedType32.0, align 4
  %13 = alloca %class.GFixedType32.0, align 4
  %14 = alloca %class.GFixedType32.0, align 4
  %15 = alloca %class.GFixedType32.0, align 4
  %16 = alloca %class.GFixedType32.0, align 4
  %17 = alloca %class.GFixedType32.0, align 4
  %18 = alloca %class.GFixedType32.0, align 4
  %19 = alloca %class.GFixedType32.0, align 4
  %20 = alloca %class.GFixedType32.0, align 4
  %21 = alloca %class.GFixedType32.0, align 4
  %22 = alloca %class.GFixedType32.0, align 4
  %23 = alloca %class.GFixedType32.0, align 4
  %24 = alloca %class.GFixedType32.0, align 4
  %25 = alloca %class.GFixedType32.0, align 4
  %26 = alloca %class.GFixedType32.0, align 4
  %27 = alloca %class.GFixedType32.0, align 4
  %28 = alloca %class.GFixedType32.0, align 4
  %29 = alloca %class.GFixedType32.0, align 4
  %30 = alloca %class.GFixedType32.0, align 4
  %31 = alloca %class.GFixedType32.0, align 4
  %32 = alloca %class.GFixedType32.0, align 4
  %33 = alloca %class.GFixedType32.0, align 4
  %34 = alloca %class.GFixedType32, align 4
  %35 = alloca %class.GFixedType32, align 4
  %36 = alloca %class.GFixedType32, align 4
  %37 = alloca %class.GFixedType32, align 4
  %38 = alloca %class.GFixedType32, align 4
  %39 = alloca %class.GFixedType32, align 4
  %40 = alloca %class.GFixedType32, align 4
  %41 = alloca %class.GFixedType32, align 4
  %42 = getelementptr inbounds %class.GFloat, ptr %3, i32 0, i32 0
  store i32 %0, ptr %42, align 4
  %43 = getelementptr inbounds %class.GFloat, ptr %3, i32 0, i32 0
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = icmp sle i32 %44, 0
  br i1 %45, label %46, label %49

46:                                               ; preds = %1
  %47 = call i32 @_ZN6GFloat4ZeroEv()
  %48 = getelementptr inbounds %class.GFloat, ptr %2, i32 0, i32 0
  store i32 %47, ptr %48, align 4
  br label %162

49:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %50 = call noundef i32 @_ZNK6GFloat11getfractionEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  %51 = call noundef i32 @_ZNK6GFloat11getexponentEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  %52 = call i32 @_ZN6GFloat11Normalize32Eii(i32 noundef %50, i32 noundef %51)
  %53 = getelementptr inbounds %class.GFloat, ptr %4, i32 0, i32 0
  store i32 %52, ptr %53, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %54 = call noundef i32 @_ZNK6GFloat19getfraction_NoShiftEv(ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @_ZN12GFixedType32ILi30EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 noundef %54)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %55 = call noundef i32 @_ZNK6GFloat11getexponentEv(ptr noundef nonnull align 4 dereferenceable(4) %4)
  %56 = sub nsw i32 %55, 127
  %57 = add nsw i32 %56, 22
  store i32 %57, ptr %6, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @_ZN12GFixedType32ILi29EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %7, i32 noundef 0)
  %58 = load i32, ptr %6, align 4, !tbaa !10
  %59 = and i32 %58, 1
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %61, label %98

61:                                               ; preds = %49
  %62 = getelementptr inbounds %class.GFixedType32, ptr %5, i32 0, i32 0
  %63 = load i32, ptr %62, align 4, !tbaa !11
  %64 = ashr i32 %63, 1
  store i32 %64, ptr %62, align 4, !tbaa !11
  %65 = load i32, ptr %6, align 4, !tbaa !10
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %6, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %67 = getelementptr inbounds %class.GFixedType32, ptr %5, i32 0, i32 0
  %68 = load i32, ptr %67, align 4, !tbaa !11
  %69 = ashr i32 %68, 1
  call void @_ZN12GFixedType32ILi29EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 noundef %69)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @_ZN12GFixedType32ILi29EEC2Ejmm(ptr noundef nonnull align 4 dereferenceable(4) %10, i32 noundef 2, i64 noundef 60531, i64 noundef 100000)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @_ZN12GFixedType32ILi29EEC2Ejmm(ptr noundef nonnull align 4 dereferenceable(4) %14, i32 noundef 3, i64 noundef 63965, i64 noundef 100000)
  %70 = call i32 @_ZNK12GFixedType32ILi29EEngEv(ptr noundef nonnull align 4 dereferenceable(4) %14)
  %71 = getelementptr inbounds %class.GFixedType32.0, ptr %13, i32 0, i32 0
  store i32 %70, ptr %71, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @_ZN12GFixedType32ILi29EEC2Ejmm(ptr noundef nonnull align 4 dereferenceable(4) %17, i32 noundef 2, i64 noundef 99053, i64 noundef 100000)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  call void @_ZN12GFixedType32ILi29EEC2Ejmm(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef 0, i64 noundef 956673, i64 noundef 1000000)
  %72 = call i32 @_ZNK12GFixedType32ILi29EEngEv(ptr noundef nonnull align 4 dereferenceable(4) %20)
  %73 = getelementptr inbounds %class.GFixedType32.0, ptr %19, i32 0, i32 0
  store i32 %72, ptr %73, align 4
  %74 = getelementptr inbounds %class.GFixedType32.0, ptr %19, i32 0, i32 0
  %75 = load i32, ptr %74, align 4
  %76 = call i32 @_ZNK12GFixedType32ILi29EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 %75)
  %77 = getelementptr inbounds %class.GFixedType32.0, ptr %18, i32 0, i32 0
  store i32 %76, ptr %77, align 4
  %78 = getelementptr inbounds %class.GFixedType32.0, ptr %18, i32 0, i32 0
  %79 = load i32, ptr %78, align 4
  %80 = call i32 @_ZNK12GFixedType32ILi29EEplES0_(ptr noundef nonnull align 4 dereferenceable(4) %17, i32 %79)
  %81 = getelementptr inbounds %class.GFixedType32.0, ptr %16, i32 0, i32 0
  store i32 %80, ptr %81, align 4
  %82 = getelementptr inbounds %class.GFixedType32.0, ptr %16, i32 0, i32 0
  %83 = load i32, ptr %82, align 4
  %84 = call i32 @_ZNK12GFixedType32ILi29EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 %83)
  %85 = getelementptr inbounds %class.GFixedType32.0, ptr %15, i32 0, i32 0
  store i32 %84, ptr %85, align 4
  %86 = getelementptr inbounds %class.GFixedType32.0, ptr %15, i32 0, i32 0
  %87 = load i32, ptr %86, align 4
  %88 = call i32 @_ZNK12GFixedType32ILi29EEplES0_(ptr noundef nonnull align 4 dereferenceable(4) %13, i32 %87)
  %89 = getelementptr inbounds %class.GFixedType32.0, ptr %12, i32 0, i32 0
  store i32 %88, ptr %89, align 4
  %90 = getelementptr inbounds %class.GFixedType32.0, ptr %12, i32 0, i32 0
  %91 = load i32, ptr %90, align 4
  %92 = call i32 @_ZNK12GFixedType32ILi29EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 %91)
  %93 = getelementptr inbounds %class.GFixedType32.0, ptr %11, i32 0, i32 0
  store i32 %92, ptr %93, align 4
  %94 = getelementptr inbounds %class.GFixedType32.0, ptr %11, i32 0, i32 0
  %95 = load i32, ptr %94, align 4
  %96 = call i32 @_ZNK12GFixedType32ILi29EEplES0_(ptr noundef nonnull align 4 dereferenceable(4) %10, i32 %95)
  %97 = getelementptr inbounds %class.GFixedType32.0, ptr %9, i32 0, i32 0
  store i32 %96, ptr %97, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %9, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %130

98:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %99 = getelementptr inbounds %class.GFixedType32, ptr %5, i32 0, i32 0
  %100 = load i32, ptr %99, align 4, !tbaa !11
  %101 = ashr i32 %100, 1
  call void @_ZN12GFixedType32ILi29EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %21, i32 noundef %101)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  call void @_ZN12GFixedType32ILi29EEC2Ejmm(ptr noundef nonnull align 4 dereferenceable(4) %23, i32 noundef 1, i64 noundef 84223, i64 noundef 100000)
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  call void @_ZN12GFixedType32ILi29EEC2Ejmm(ptr noundef nonnull align 4 dereferenceable(4) %27, i32 noundef 1, i64 noundef 28681, i64 noundef 100000)
  %102 = call i32 @_ZNK12GFixedType32ILi29EEngEv(ptr noundef nonnull align 4 dereferenceable(4) %27)
  %103 = getelementptr inbounds %class.GFixedType32.0, ptr %26, i32 0, i32 0
  store i32 %102, ptr %103, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  call void @_ZN12GFixedType32ILi29EEC2Ejmm(ptr noundef nonnull align 4 dereferenceable(4) %30, i32 noundef 0, i64 noundef 528656, i64 noundef 1000000)
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #5
  call void @_ZN12GFixedType32ILi29EEC2Ejmm(ptr noundef nonnull align 4 dereferenceable(4) %33, i32 noundef 0, i64 noundef 84558, i64 noundef 1000000)
  %104 = call i32 @_ZNK12GFixedType32ILi29EEngEv(ptr noundef nonnull align 4 dereferenceable(4) %33)
  %105 = getelementptr inbounds %class.GFixedType32.0, ptr %32, i32 0, i32 0
  store i32 %104, ptr %105, align 4
  %106 = getelementptr inbounds %class.GFixedType32.0, ptr %32, i32 0, i32 0
  %107 = load i32, ptr %106, align 4
  %108 = call i32 @_ZNK12GFixedType32ILi29EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %21, i32 %107)
  %109 = getelementptr inbounds %class.GFixedType32.0, ptr %31, i32 0, i32 0
  store i32 %108, ptr %109, align 4
  %110 = getelementptr inbounds %class.GFixedType32.0, ptr %31, i32 0, i32 0
  %111 = load i32, ptr %110, align 4
  %112 = call i32 @_ZNK12GFixedType32ILi29EEplES0_(ptr noundef nonnull align 4 dereferenceable(4) %30, i32 %111)
  %113 = getelementptr inbounds %class.GFixedType32.0, ptr %29, i32 0, i32 0
  store i32 %112, ptr %113, align 4
  %114 = getelementptr inbounds %class.GFixedType32.0, ptr %29, i32 0, i32 0
  %115 = load i32, ptr %114, align 4
  %116 = call i32 @_ZNK12GFixedType32ILi29EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %21, i32 %115)
  %117 = getelementptr inbounds %class.GFixedType32.0, ptr %28, i32 0, i32 0
  store i32 %116, ptr %117, align 4
  %118 = getelementptr inbounds %class.GFixedType32.0, ptr %28, i32 0, i32 0
  %119 = load i32, ptr %118, align 4
  %120 = call i32 @_ZNK12GFixedType32ILi29EEplES0_(ptr noundef nonnull align 4 dereferenceable(4) %26, i32 %119)
  %121 = getelementptr inbounds %class.GFixedType32.0, ptr %25, i32 0, i32 0
  store i32 %120, ptr %121, align 4
  %122 = getelementptr inbounds %class.GFixedType32.0, ptr %25, i32 0, i32 0
  %123 = load i32, ptr %122, align 4
  %124 = call i32 @_ZNK12GFixedType32ILi29EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %21, i32 %123)
  %125 = getelementptr inbounds %class.GFixedType32.0, ptr %24, i32 0, i32 0
  store i32 %124, ptr %125, align 4
  %126 = getelementptr inbounds %class.GFixedType32.0, ptr %24, i32 0, i32 0
  %127 = load i32, ptr %126, align 4
  %128 = call i32 @_ZNK12GFixedType32ILi29EEplES0_(ptr noundef nonnull align 4 dereferenceable(4) %23, i32 %127)
  %129 = getelementptr inbounds %class.GFixedType32.0, ptr %22, i32 0, i32 0
  store i32 %128, ptr %129, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %22, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %130

130:                                              ; preds = %98, %61
  %131 = getelementptr inbounds %class.GFixedType32, ptr %5, i32 0, i32 0
  %132 = load i32, ptr %131, align 4, !tbaa !11
  %133 = ashr i32 %132, 1
  store i32 %133, ptr %131, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #5
  %134 = getelementptr inbounds %class.GFixedType32.0, ptr %7, i32 0, i32 0
  %135 = load i32, ptr %134, align 4, !tbaa !14
  %136 = shl i32 %135, 1
  call void @_ZN12GFixedType32ILi30EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %34, i32 noundef %136)
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 4 @__const._ZN6GFloat7InvSqrtES_.F1_5, i64 4, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 4 %34, i64 4, i1 false), !tbaa.struct !13
  %137 = getelementptr inbounds %class.GFixedType32, ptr %40, i32 0, i32 0
  %138 = load i32, ptr %137, align 4
  %139 = call i32 @_ZNK12GFixedType32ILi30EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 %138)
  %140 = getelementptr inbounds %class.GFixedType32, ptr %39, i32 0, i32 0
  store i32 %139, ptr %140, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %41, ptr align 4 %34, i64 4, i1 false), !tbaa.struct !13
  %141 = getelementptr inbounds %class.GFixedType32, ptr %41, i32 0, i32 0
  %142 = load i32, ptr %141, align 4
  %143 = call i32 @_ZNK12GFixedType32ILi30EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %39, i32 %142)
  %144 = getelementptr inbounds %class.GFixedType32, ptr %38, i32 0, i32 0
  store i32 %143, ptr %144, align 4
  %145 = getelementptr inbounds %class.GFixedType32, ptr %38, i32 0, i32 0
  %146 = load i32, ptr %145, align 4
  %147 = call i32 @_ZNK12GFixedType32ILi30EEmiES0_(ptr noundef nonnull align 4 dereferenceable(4) %35, i32 %146)
  %148 = getelementptr inbounds %class.GFixedType32, ptr %37, i32 0, i32 0
  store i32 %147, ptr %148, align 4
  %149 = getelementptr inbounds %class.GFixedType32, ptr %37, i32 0, i32 0
  %150 = load i32, ptr %149, align 4
  %151 = call i32 @_ZNK12GFixedType32ILi30EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %34, i32 %150)
  %152 = getelementptr inbounds %class.GFixedType32, ptr %36, i32 0, i32 0
  store i32 %151, ptr %152, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 4 %36, i64 4, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #5
  %153 = getelementptr inbounds %class.GFixedType32, ptr %34, i32 0, i32 0
  %154 = load i32, ptr %153, align 4, !tbaa !11
  %155 = call noundef i32 @_ZN12GFixedType32ILi30EE13GetTypeNumberEv()
  %156 = sub nsw i32 127, %155
  %157 = load i32, ptr %6, align 4, !tbaa !10
  %158 = ashr i32 %157, 1
  %159 = sub nsw i32 %156, %158
  %160 = call i32 @_ZN6GFloat11Normalize32Eii(i32 noundef %154, i32 noundef %159)
  %161 = getelementptr inbounds %class.GFloat, ptr %2, i32 0, i32 0
  store i32 %160, ptr %161, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %162

162:                                              ; preds = %130, %46
  %163 = getelementptr inbounds %class.GFloat, ptr %2, i32 0, i32 0
  %164 = load i32, ptr %163, align 4
  ret i32 %164
}

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN12GFixedType32ILi30EE13GetTypeNumberEv() #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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, !7, i64 0}
!6 = !{!"_ZTS6GFloat", !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !7, i64 0}
!12 = !{!"_ZTS12GFixedType32ILi30EE", !7, i64 0}
!13 = !{i64 0, i64 4, !10}
!14 = !{!15, !7, i64 0}
!15 = !{!"_ZTS12GFixedType32ILi29EE", !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.GFixedType32 = type { i32 }
%class.GFloat = type { i32 }
%class.GFixedType32.0 = type { i32 }

@__const._ZN6GFloat7InvSqrtES_.F1_5 = external hidden unnamed_addr constant %class.GFixedType32, align 4

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @_ZN6GFloat7InvSqrtES_(i32 %0) local_unnamed_addr #3 align 2 {
  %2 = alloca %class.GFloat, align 4
  %3 = alloca %class.GFloat, align 4
  %4 = alloca %class.GFixedType32, align 4
  %5 = alloca %class.GFixedType32.0, align 4
  %6 = alloca %class.GFixedType32.0, align 4
  %7 = alloca %class.GFixedType32.0, align 4
  %8 = alloca %class.GFixedType32.0, align 4
  %9 = alloca %class.GFixedType32.0, align 4
  %10 = alloca %class.GFixedType32.0, align 4
  %11 = alloca %class.GFixedType32.0, align 4
  %12 = alloca %class.GFixedType32.0, align 4
  %13 = alloca %class.GFixedType32.0, align 4
  %14 = alloca %class.GFixedType32.0, align 4
  %15 = alloca %class.GFixedType32.0, align 4
  %16 = alloca %class.GFixedType32.0, align 4
  %17 = alloca %class.GFixedType32.0, align 4
  %18 = alloca %class.GFixedType32, align 4
  %19 = alloca %class.GFixedType32, align 4
  %20 = alloca %class.GFixedType32, align 4
  store i32 %0, ptr %2, align 4
  %21 = icmp slt i32 %0, 1
  br i1 %21, label %22, label %24

22:                                               ; preds = %1
  %23 = tail call i32 @_ZN6GFloat4ZeroEv()
  br label %70

24:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  %25 = call noundef i32 @_ZNK6GFloat11getfractionEv(ptr noundef nonnull align 4 dereferenceable(4) %2)
  %26 = call noundef i32 @_ZNK6GFloat11getexponentEv(ptr noundef nonnull align 4 dereferenceable(4) %2)
  %27 = call i32 @_ZN6GFloat11Normalize32Eii(i32 noundef %25, i32 noundef %26)
  store i32 %27, ptr %3, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  %28 = call noundef i32 @_ZNK6GFloat19getfraction_NoShiftEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @_ZN12GFixedType32ILi30EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %28)
  %29 = call noundef i32 @_ZNK6GFloat11getexponentEv(ptr noundef nonnull align 4 dereferenceable(4) %3)
  %30 = add nsw i32 %29, -105
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  call void @_ZN12GFixedType32ILi29EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 noundef 0)
  %31 = and i32 %30, 1
  %.not = icmp eq i32 %31, 0
  br i1 %.not, label %45, label %32

32:                                               ; preds = %24
  %33 = load i32, ptr %4, align 4, !tbaa !5
  %34 = ashr i32 %33, 1
  store i32 %34, ptr %4, align 4, !tbaa !5
  %35 = add nsw i32 %29, -104
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  %36 = ashr i32 %33, 2
  call void @_ZN12GFixedType32ILi29EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %6, i32 noundef %36)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  call void @_ZN12GFixedType32ILi29EEC2Ejmm(ptr noundef nonnull align 4 dereferenceable(4) %7, i32 noundef 2, i64 noundef 60531, i64 noundef 100000)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #4
  call void @_ZN12GFixedType32ILi29EEC2Ejmm(ptr noundef nonnull align 4 dereferenceable(4) %9, i32 noundef 3, i64 noundef 63965, i64 noundef 100000)
  %37 = call i32 @_ZNK12GFixedType32ILi29EEngEv(ptr noundef nonnull align 4 dereferenceable(4) %9)
  store i32 %37, ptr %8, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #4
  call void @_ZN12GFixedType32ILi29EEC2Ejmm(ptr noundef nonnull align 4 dereferenceable(4) %10, i32 noundef 2, i64 noundef 99053, i64 noundef 100000)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #4
  call void @_ZN12GFixedType32ILi29EEC2Ejmm(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef 0, i64 noundef 956673, i64 noundef 1000000)
  %38 = call i32 @_ZNK12GFixedType32ILi29EEngEv(ptr noundef nonnull align 4 dereferenceable(4) %11)
  %39 = call i32 @_ZNK12GFixedType32ILi29EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %6, i32 %38)
  %40 = call i32 @_ZNK12GFixedType32ILi29EEplES0_(ptr noundef nonnull align 4 dereferenceable(4) %10, i32 %39)
  %41 = call i32 @_ZNK12GFixedType32ILi29EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %6, i32 %40)
  %42 = call i32 @_ZNK12GFixedType32ILi29EEplES0_(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 %41)
  %43 = call i32 @_ZNK12GFixedType32ILi29EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %6, i32 %42)
  %44 = call i32 @_ZNK12GFixedType32ILi29EEplES0_(ptr noundef nonnull align 4 dereferenceable(4) %7, i32 %43)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  br label %56

45:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #4
  %46 = load i32, ptr %4, align 4, !tbaa !5
  %47 = ashr i32 %46, 1
  call void @_ZN12GFixedType32ILi29EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %12, i32 noundef %47)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #4
  call void @_ZN12GFixedType32ILi29EEC2Ejmm(ptr noundef nonnull align 4 dereferenceable(4) %13, i32 noundef 1, i64 noundef 84223, i64 noundef 100000)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #4
  call void @_ZN12GFixedType32ILi29EEC2Ejmm(ptr noundef nonnull align 4 dereferenceable(4) %15, i32 noundef 1, i64 noundef 28681, i64 noundef 100000)
  %48 = call i32 @_ZNK12GFixedType32ILi29EEngEv(ptr noundef nonnull align 4 dereferenceable(4) %15)
  store i32 %48, ptr %14, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #4
  call void @_ZN12GFixedType32ILi29EEC2Ejmm(ptr noundef nonnull align 4 dereferenceable(4) %16, i32 noundef 0, i64 noundef 528656, i64 noundef 1000000)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #4
  call void @_ZN12GFixedType32ILi29EEC2Ejmm(ptr noundef nonnull align 4 dereferenceable(4) %17, i32 noundef 0, i64 noundef 84558, i64 noundef 1000000)
  %49 = call i32 @_ZNK12GFixedType32ILi29EEngEv(ptr noundef nonnull align 4 dereferenceable(4) %17)
  %50 = call i32 @_ZNK12GFixedType32ILi29EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %12, i32 %49)
  %51 = call i32 @_ZNK12GFixedType32ILi29EEplES0_(ptr noundef nonnull align 4 dereferenceable(4) %16, i32 %50)
  %52 = call i32 @_ZNK12GFixedType32ILi29EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %12, i32 %51)
  %53 = call i32 @_ZNK12GFixedType32ILi29EEplES0_(ptr noundef nonnull align 4 dereferenceable(4) %14, i32 %52)
  %54 = call i32 @_ZNK12GFixedType32ILi29EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %12, i32 %53)
  %55 = call i32 @_ZNK12GFixedType32ILi29EEplES0_(ptr noundef nonnull align 4 dereferenceable(4) %13, i32 %54)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  br label %56

56:                                               ; preds = %45, %32
  %.sink = phi i32 [ %55, %45 ], [ %44, %32 ]
  %.0 = phi i32 [ %30, %45 ], [ %35, %32 ]
  store i32 %.sink, ptr %5, align 4
  %57 = load i32, ptr %4, align 4, !tbaa !5
  %58 = ashr i32 %57, 1
  store i32 %58, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #4
  %59 = shl i32 %.sink, 1
  call void @_ZN12GFixedType32ILi30EEC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %18, i32 noundef %59)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #4
  %60 = load i32, ptr @__const._ZN6GFloat7InvSqrtES_.F1_5, align 4
  store i32 %60, ptr %19, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #4
  %.sroa.01.0.copyload = load i32, ptr %18, align 4, !tbaa !10
  %61 = call i32 @_ZNK12GFixedType32ILi30EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %4, i32 %.sroa.01.0.copyload)
  store i32 %61, ptr %20, align 4
  %.sroa.0.0.copyload = load i32, ptr %18, align 4, !tbaa !10
  %62 = call i32 @_ZNK12GFixedType32ILi30EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %20, i32 %.sroa.0.0.copyload)
  %63 = call i32 @_ZNK12GFixedType32ILi30EEmiES0_(ptr noundef nonnull align 4 dereferenceable(4) %19, i32 %62)
  %64 = call i32 @_ZNK12GFixedType32ILi30EEmlES0_(ptr noundef nonnull align 4 dereferenceable(4) %18, i32 %63)
  store i32 %64, ptr %18, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #4
  %65 = call noundef i32 @_ZN12GFixedType32ILi30EE13GetTypeNumberEv()
  %66 = ashr i32 %.0, 1
  %67 = add i32 %66, %65
  %68 = sub i32 127, %67
  %69 = call i32 @_ZN6GFloat11Normalize32Eii(i32 noundef %64, i32 noundef %68)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  br label %70

70:                                               ; preds = %56, %22
  %.sroa.021.0 = phi i32 [ %23, %22 ], [ %69, %56 ]
  ret i32 %.sroa.021.0
}

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN12GFixedType32ILi30EE13GetTypeNumberEv() local_unnamed_addr #1 align 2

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

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MergedLoadStoreMotionPass,ReassociatePass,SROAPass,TailCallElimPass