; LLVM IR from erayzesen/QuarkPhysics :: QuarkPhysics/qjoint.ll (ZN6QJoint6UpdateEv)

; 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"

%struct.QVector = type { float, float }
%class.QJoint = type <{ ptr, ptr, ptr, %struct.QVector, %struct.QVector, %struct.QVector, %struct.QVector, i8, i8, [2 x i8], float, float, float, i8, [7 x i8], ptr, i8, [7 x i8] }>

; Function Attrs: 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 <2 x float> @_Zmi7QVectorS_(<2 x float>, <2 x float>) #1

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZNK7QVector6LengthEv(ptr noundef nonnull align 4 dereferenceable(8)) #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: mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZN5QBody11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(293)) #4 align 2

declare <2 x float> @_ZNK7QVector7RotatedEf(ptr noundef nonnull align 4 dereferenceable(8), float noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN5QBody11GetRotationEv(ptr noundef nonnull align 8 dereferenceable(293)) #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6QJoint6UpdateEv(ptr noundef nonnull align 8 dereferenceable(89) %0) unnamed_addr #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca float, align 4
  %4 = alloca float, align 4
  %5 = alloca i32, align 4
  %6 = alloca %struct.QVector, align 4
  %7 = alloca %struct.QVector, align 4
  %8 = alloca %struct.QVector, align 4
  %9 = alloca %struct.QVector, align 4
  %10 = alloca %struct.QVector, align 4
  %11 = alloca %struct.QVector, align 4
  %12 = alloca %struct.QVector, align 4
  %13 = alloca %struct.QVector, align 4
  %14 = alloca %struct.QVector, align 4
  %15 = alloca %struct.QVector, align 4
  %16 = alloca %struct.QVector, align 4
  %17 = alloca %struct.QVector, align 4
  %18 = alloca %struct.QVector, align 4
  %19 = alloca %struct.QVector, align 4
  %20 = alloca %struct.QVector, align 4
  %21 = alloca %struct.QVector, align 4
  %22 = alloca %struct.QVector, align 4
  %23 = alloca float, align 4
  %24 = alloca %struct.QVector, align 4
  %25 = alloca float, align 4
  %26 = alloca %struct.QVector, align 4
  %27 = alloca %struct.QVector, align 4
  %28 = alloca %struct.QVector, align 4
  %29 = alloca %struct.QVector, align 4
  %30 = alloca %struct.QVector, align 4
  %31 = alloca %struct.QVector, align 4
  %32 = alloca %struct.QVector, align 4
  %33 = alloca %struct.QVector, align 4
  %34 = alloca %struct.QVector, align 4
  %35 = alloca %struct.QVector, align 4
  %36 = alloca %struct.QVector, align 4
  %37 = alloca %struct.QVector, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %38 = load ptr, ptr %2, align 8
  %39 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 8
  %40 = load i8, ptr %39, align 1, !tbaa !9, !range !14, !noundef !15
  %41 = trunc i8 %40 to i1
  %42 = zext i1 %41 to i32
  %43 = icmp eq i32 %42, 0
  br i1 %43, label %44, label %45

44:                                               ; preds = %1
  br label %276

45:                                               ; preds = %1
  %46 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 1
  %47 = load ptr, ptr %46, align 8, !tbaa !16
  %48 = icmp eq ptr %47, null
  br i1 %48, label %49, label %54

49:                                               ; preds = %45
  %50 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 2
  %51 = load ptr, ptr %50, align 8, !tbaa !17
  %52 = icmp eq ptr %51, null
  br i1 %52, label %53, label %54

53:                                               ; preds = %49
  br label %276

54:                                               ; preds = %49, %45
  %55 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 1
  %56 = load ptr, ptr %55, align 8, !tbaa !16
  %57 = icmp ne ptr %56, null
  br i1 %57, label %58, label %76

58:                                               ; preds = %54
  %59 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 1
  %60 = load ptr, ptr %59, align 8, !tbaa !16
  %61 = call noundef zeroext i1 @_ZN5QBody10GetEnabledEv(ptr noundef nonnull align 8 dereferenceable(293) %60)
  %62 = zext i1 %61 to i32
  %63 = icmp eq i32 %62, 0
  br i1 %63, label %64, label %65

64:                                               ; preds = %58
  br label %276

65:                                               ; preds = %58
  %66 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 1
  %67 = load ptr, ptr %66, align 8, !tbaa !16
  %68 = call noundef i32 @_ZN5QBody7GetModeEv(ptr noundef nonnull align 8 dereferenceable(293) %67)
  %69 = icmp eq i32 %68, 1
  br i1 %69, label %70, label %75

70:                                               ; preds = %65
  %71 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 2
  %72 = load ptr, ptr %71, align 8, !tbaa !17
  %73 = icmp eq ptr %72, null
  br i1 %73, label %74, label %75

74:                                               ; preds = %70
  br label %276

75:                                               ; preds = %70, %65
  br label %76

76:                                               ; preds = %75, %54
  %77 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 2
  %78 = load ptr, ptr %77, align 8, !tbaa !17
  %79 = icmp ne ptr %78, null
  br i1 %79, label %80, label %98

80:                                               ; preds = %76
  %81 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 2
  %82 = load ptr, ptr %81, align 8, !tbaa !17
  %83 = call noundef zeroext i1 @_ZN5QBody10GetEnabledEv(ptr noundef nonnull align 8 dereferenceable(293) %82)
  %84 = zext i1 %83 to i32
  %85 = icmp eq i32 %84, 0
  br i1 %85, label %86, label %87

86:                                               ; preds = %80
  br label %276

87:                                               ; preds = %80
  %88 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 2
  %89 = load ptr, ptr %88, align 8, !tbaa !17
  %90 = call noundef i32 @_ZN5QBody7GetModeEv(ptr noundef nonnull align 8 dereferenceable(293) %89)
  %91 = icmp eq i32 %90, 1
  br i1 %91, label %92, label %97

92:                                               ; preds = %87
  %93 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 1
  %94 = load ptr, ptr %93, align 8, !tbaa !16
  %95 = icmp eq ptr %94, null
  br i1 %95, label %96, label %97

96:                                               ; preds = %92
  br label %276

97:                                               ; preds = %92, %87
  br label %98

98:                                               ; preds = %97, %76
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  %99 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 11
  %100 = load float, ptr %99, align 8, !tbaa !18
  store float %100, ptr %3, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  %101 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 11
  %102 = load float, ptr %101, align 8, !tbaa !18
  %103 = fsub float 1.000000e+00, %102
  store float %103, ptr %4, align 4, !tbaa !19
  %104 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 1
  %105 = load ptr, ptr %104, align 8, !tbaa !16
  %106 = icmp ne ptr %105, null
  br i1 %106, label %107, label %135

107:                                              ; preds = %98
  %108 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 2
  %109 = load ptr, ptr %108, align 8, !tbaa !17
  %110 = icmp ne ptr %109, null
  br i1 %110, label %111, label %135

111:                                              ; preds = %107
  %112 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 1
  %113 = load ptr, ptr %112, align 8, !tbaa !16
  %114 = call noundef i32 @_ZN5QBody7GetModeEv(ptr noundef nonnull align 8 dereferenceable(293) %113)
  %115 = icmp eq i32 %114, 1
  br i1 %115, label %116, label %122

116:                                              ; preds = %111
  %117 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 2
  %118 = load ptr, ptr %117, align 8, !tbaa !17
  %119 = call noundef i32 @_ZN5QBody7GetModeEv(ptr noundef nonnull align 8 dereferenceable(293) %118)
  %120 = icmp eq i32 %119, 1
  br i1 %120, label %121, label %122

121:                                              ; preds = %116
  store i32 1, ptr %5, align 4
  br label %274

122:                                              ; preds = %116, %111
  %123 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 1
  %124 = load ptr, ptr %123, align 8, !tbaa !16
  %125 = call noundef i32 @_ZN5QBody7GetModeEv(ptr noundef nonnull align 8 dereferenceable(293) %124)
  %126 = icmp eq i32 %125, 1
  br i1 %126, label %127, label %128

127:                                              ; preds = %122
  store float 0.000000e+00, ptr %3, align 4, !tbaa !19
  store float 1.000000e+00, ptr %4, align 4, !tbaa !19
  br label %128

128:                                              ; preds = %127, %122
  %129 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 2
  %130 = load ptr, ptr %129, align 8, !tbaa !17
  %131 = call noundef i32 @_ZN5QBody7GetModeEv(ptr noundef nonnull align 8 dereferenceable(293) %130)
  %132 = icmp eq i32 %131, 1
  br i1 %132, label %133, label %134

133:                                              ; preds = %128
  store float 1.000000e+00, ptr %3, align 4, !tbaa !19
  store float 0.000000e+00, ptr %4, align 4, !tbaa !19
  br label %134

134:                                              ; preds = %133, %128
  br label %146

135:                                              ; preds = %107, %98
  %136 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 1
  %137 = load ptr, ptr %136, align 8, !tbaa !16
  %138 = icmp eq ptr %137, null
  br i1 %138, label %139, label %140

139:                                              ; preds = %135
  store float 0.000000e+00, ptr %3, align 4, !tbaa !19
  store float 1.000000e+00, ptr %4, align 4, !tbaa !19
  br label %140

140:                                              ; preds = %139, %135
  %141 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 2
  %142 = load ptr, ptr %141, align 8, !tbaa !17
  %143 = icmp eq ptr %142, null
  br i1 %143, label %144, label %145

144:                                              ; preds = %140
  store float 1.000000e+00, ptr %3, align 4, !tbaa !19
  store float 0.000000e+00, ptr %4, align 4, !tbaa !19
  br label %145

145:                                              ; preds = %144, %140
  br label %146

146:                                              ; preds = %145, %134
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %147 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 8 %147, i64 8, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %148 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 8 %148, i64 8, i1 false), !tbaa.struct !20
  %149 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 1
  %150 = load ptr, ptr %149, align 8, !tbaa !16
  %151 = icmp ne ptr %150, null
  br i1 %151, label %152, label %165

152:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %153 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 3
  %154 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 1
  %155 = load ptr, ptr %154, align 8, !tbaa !16
  %156 = call noundef float @_ZN5QBody11GetRotationEv(ptr noundef nonnull align 8 dereferenceable(293) %155)
  %157 = call <2 x float> @_ZNK7QVector7RotatedEf(ptr noundef nonnull align 4 dereferenceable(8) %153, float noundef %156)
  store <2 x float> %157, ptr %8, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 %8, i64 8, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %158 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 1
  %159 = load ptr, ptr %158, align 8, !tbaa !16
  %160 = call <2 x float> @_ZN5QBody11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(293) %159)
  store <2 x float> %160, ptr %10, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %6, i64 8, i1 false), !tbaa.struct !20
  %161 = load <2 x float>, ptr %10, align 4
  %162 = load <2 x float>, ptr %11, align 4
  %163 = call <2 x float> @_Zpl7QVectorS_(<2 x float> %161, <2 x float> %162)
  store <2 x float> %163, ptr %9, align 4
  %164 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %164, ptr align 4 %9, i64 8, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  br label %168

165:                                              ; preds = %146
  %166 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 3
  %167 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %167, ptr align 8 %166, i64 8, i1 false), !tbaa.struct !20
  br label %168

168:                                              ; preds = %165, %152
  %169 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 2
  %170 = load ptr, ptr %169, align 8, !tbaa !17
  %171 = icmp ne ptr %170, null
  br i1 %171, label %172, label %185

172:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %173 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 4
  %174 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 2
  %175 = load ptr, ptr %174, align 8, !tbaa !17
  %176 = call noundef float @_ZN5QBody11GetRotationEv(ptr noundef nonnull align 8 dereferenceable(293) %175)
  %177 = call <2 x float> @_ZNK7QVector7RotatedEf(ptr noundef nonnull align 4 dereferenceable(8) %173, float noundef %176)
  store <2 x float> %177, ptr %12, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %12, i64 8, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %178 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 2
  %179 = load ptr, ptr %178, align 8, !tbaa !17
  %180 = call <2 x float> @_ZN5QBody11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(293) %179)
  store <2 x float> %180, ptr %14, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %7, i64 8, i1 false), !tbaa.struct !20
  %181 = load <2 x float>, ptr %14, align 4
  %182 = load <2 x float>, ptr %15, align 4
  %183 = call <2 x float> @_Zpl7QVectorS_(<2 x float> %181, <2 x float> %182)
  store <2 x float> %183, ptr %13, align 4
  %184 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %184, ptr align 4 %13, i64 8, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %188

185:                                              ; preds = %168
  %186 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 4
  %187 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %187, ptr align 8 %186, i64 8, i1 false), !tbaa.struct !20
  br label %188

188:                                              ; preds = %185, %172
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %189 = call <2 x float> @_ZN7QVector4ZeroEv()
  store <2 x float> %189, ptr %16, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %190 = call <2 x float> @_ZN7QVector4ZeroEv()
  store <2 x float> %190, ptr %17, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %191 = call <2 x float> @_ZN7QVector4ZeroEv()
  store <2 x float> %191, ptr %18, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %192 = call <2 x float> @_ZN7QVector4ZeroEv()
  store <2 x float> %192, ptr %19, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %193 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 8 %193, i64 8, i1 false), !tbaa.struct !20
  %194 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 8 %194, i64 8, i1 false), !tbaa.struct !20
  %195 = load <2 x float>, ptr %21, align 4
  %196 = load <2 x float>, ptr %22, align 4
  %197 = call <2 x float> @_Zmi7QVectorS_(<2 x float> %195, <2 x float> %196)
  store <2 x float> %197, ptr %20, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %20, i64 8, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  %198 = call noundef float @_ZNK7QVector6LengthEv(ptr noundef nonnull align 4 dereferenceable(8) %16)
  store float %198, ptr %23, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %199 = call <2 x float> @_ZNK7QVector10NormalizedEv(ptr noundef nonnull align 4 dereferenceable(8) %16)
  store <2 x float> %199, ptr %24, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %200 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 12
  %201 = load float, ptr %200, align 4, !tbaa !21
  %202 = load float, ptr %23, align 4, !tbaa !19
  %203 = fsub float %201, %202
  store float %203, ptr %25, align 4, !tbaa !19
  %204 = load float, ptr %25, align 4, !tbaa !19
  %205 = fpext float %204 to double
  %206 = fcmp oeq double %205, 0.000000e+00
  br i1 %206, label %207, label %208

207:                                              ; preds = %188
  store i32 1, ptr %5, align 4
  br label %273

208:                                              ; preds = %188
  %209 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 13
  %210 = load i8, ptr %209, align 8, !tbaa !22, !range !14, !noundef !15
  %211 = trunc i8 %210 to i1
  %212 = zext i1 %211 to i32
  %213 = icmp eq i32 %212, 1
  br i1 %213, label %214, label %220

214:                                              ; preds = %208
  %215 = load float, ptr %23, align 4, !tbaa !19
  %216 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 12
  %217 = load float, ptr %216, align 4, !tbaa !21
  %218 = fcmp olt float %215, %217
  br i1 %218, label %219, label %220

219:                                              ; preds = %214
  store i32 1, ptr %5, align 4
  br label %273

220:                                              ; preds = %214, %208
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %221 = load float, ptr %25, align 4, !tbaa !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %24, i64 8, i1 false), !tbaa.struct !20
  %222 = load <2 x float>, ptr %27, align 4
  %223 = call <2 x float> @_Zmlf7QVector(float noundef %221, <2 x float> %222)
  store <2 x float> %223, ptr %26, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 4 %26, i64 8, i1 false), !tbaa.struct !20
  %224 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 10
  %225 = load float, ptr %224, align 4, !tbaa !23
  %226 = load <2 x float>, ptr %29, align 4
  %227 = call <2 x float> @_Zml7QVectorf(<2 x float> %226, float noundef %225)
  store <2 x float> %227, ptr %28, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %28, i64 8, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %228 = call <2 x float> @_ZNK7QVectorngEv(ptr noundef nonnull align 4 dereferenceable(8) %17)
  store <2 x float> %228, ptr %31, align 4
  %229 = load float, ptr %3, align 4, !tbaa !19
  %230 = load <2 x float>, ptr %31, align 4
  %231 = call <2 x float> @_Zml7QVectorf(<2 x float> %230, float noundef %229)
  store <2 x float> %231, ptr %30, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %30, i64 8, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %17, i64 8, i1 false), !tbaa.struct !20
  %232 = load float, ptr %4, align 4, !tbaa !19
  %233 = load <2 x float>, ptr %33, align 4
  %234 = call <2 x float> @_Zml7QVectorf(<2 x float> %233, float noundef %232)
  store <2 x float> %234, ptr %32, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %32, i64 8, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  %235 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 1
  %236 = load ptr, ptr %235, align 8, !tbaa !16
  %237 = icmp ne ptr %236, null
  br i1 %237, label %238, label %253

238:                                              ; preds = %220
  %239 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 1
  %240 = load ptr, ptr %239, align 8, !tbaa !16
  %241 = call noundef i32 @_ZN5QBody7GetModeEv(ptr noundef nonnull align 8 dereferenceable(293) %240)
  %242 = icmp ne i32 %241, 1
  br i1 %242, label %243, label %252

243:                                              ; preds = %238
  %244 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 1
  %245 = load ptr, ptr %244, align 8, !tbaa !16
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 4 %18, i64 8, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 4 %6, i64 8, i1 false), !tbaa.struct !20
  %246 = load <2 x float>, ptr %34, align 4
  %247 = load <2 x float>, ptr %35, align 4
  %248 = load ptr, ptr %245, align 8, !tbaa !24
  %249 = getelementptr inbounds ptr, ptr %248, i64 10
  %250 = load ptr, ptr %249, align 8
  %251 = call noundef ptr %250(ptr noundef nonnull align 8 dereferenceable(308) %245, <2 x float> %246, <2 x float> %247, i1 noundef zeroext true)
  br label %252

252:                                              ; preds = %243, %238
  br label %253

253:                                              ; preds = %252, %220
  %254 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 2
  %255 = load ptr, ptr %254, align 8, !tbaa !17
  %256 = icmp ne ptr %255, null
  br i1 %256, label %257, label %272

257:                                              ; preds = %253
  %258 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 2
  %259 = load ptr, ptr %258, align 8, !tbaa !17
  %260 = call noundef i32 @_ZN5QBody7GetModeEv(ptr noundef nonnull align 8 dereferenceable(293) %259)
  %261 = icmp ne i32 %260, 1
  br i1 %261, label %262, label %271

262:                                              ; preds = %257
  %263 = getelementptr inbounds %class.QJoint, ptr %38, i32 0, i32 2
  %264 = load ptr, ptr %263, align 8, !tbaa !17
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 4 %19, i64 8, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 4 %7, i64 8, i1 false), !tbaa.struct !20
  %265 = load <2 x float>, ptr %36, align 4
  %266 = load <2 x float>, ptr %37, align 4
  %267 = load ptr, ptr %264, align 8, !tbaa !24
  %268 = getelementptr inbounds ptr, ptr %267, i64 10
  %269 = load ptr, ptr %268, align 8
  %270 = call noundef ptr %269(ptr noundef nonnull align 8 dereferenceable(308) %264, <2 x float> %265, <2 x float> %266, i1 noundef zeroext true)
  br label %271

271:                                              ; preds = %262, %257
  br label %272

272:                                              ; preds = %271, %253
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  store i32 0, ptr %5, align 4
  br label %273

273:                                              ; preds = %272, %219, %207
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  br label %274

274:                                              ; preds = %273, %121
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  %275 = load i32, ptr %5, align 4
  switch i32 %275, label %277 [
    i32 0, label %276
    i32 1, label %276
  ]

276:                                              ; preds = %274, %274, %96, %86, %74, %64, %53, %44
  ret void

277:                                              ; preds = %274
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN5QBody10GetEnabledEv(ptr noundef nonnull align 8 dereferenceable(293)) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5QBody7GetModeEv(ptr noundef nonnull align 8 dereferenceable(293)) #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_Zpl7QVectorS_(<2 x float>, <2 x float>) #1

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZN7QVector4ZeroEv() #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZNK7QVector10NormalizedEv(ptr noundef nonnull align 4 dereferenceable(8)) #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_Zmlf7QVector(float noundef, <2 x float>) #1

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_Zml7QVectorf(<2 x float>, float noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZNK7QVectorngEv(ptr noundef nonnull align 4 dereferenceable(8)) #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { nocallback nofree 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 nounwind uwtable "min-legal-vector-width"="64" "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 = { "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 = { 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 #7 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "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 #8 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !13, i64 57}
!10 = !{!"_ZTS6QJoint", !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !13, i64 56, !13, i64 57, !12, i64 60, !12, i64 64, !12, i64 68, !13, i64 72, !6, i64 80, !13, i64 88}
!11 = !{!"_ZTS7QVector", !12, i64 0, !12, i64 4}
!12 = !{!"float", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!10, !6, i64 8}
!17 = !{!10, !6, i64 16}
!18 = !{!10, !12, i64 64}
!19 = !{!12, !12, i64 0}
!20 = !{i64 0, i64 4, !19, i64 4, i64 4, !19}
!21 = !{!10, !12, i64 68}
!22 = !{!10, !13, i64 72}
!23 = !{!10, !12, i64 60}
!24 = !{!25, !25, i64 0}
!25 = !{!"vtable pointer", !8, 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"

%struct.QVector = type { float, float }

; 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 <2 x float> @_Zmi7QVectorS_(<2 x float>, <2 x float>) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZNK7QVector6LengthEv(ptr noundef nonnull align 4 dereferenceable(8)) 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) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZN5QBody11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(293)) local_unnamed_addr #3 align 2

declare <2 x float> @_ZNK7QVector7RotatedEf(ptr noundef nonnull align 4 dereferenceable(8), float noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN5QBody11GetRotationEv(ptr noundef nonnull align 8 dereferenceable(293)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6QJoint6UpdateEv(ptr noundef nonnull align 8 dereferenceable(89) %0) unnamed_addr #1 align 2 {
  %2 = alloca %struct.QVector, align 8
  %3 = alloca %struct.QVector, align 8
  %4 = getelementptr inbounds i8, ptr %0, i64 57
  %5 = load i8, ptr %4, align 1, !tbaa !5, !range !13, !noundef !14
  %6 = icmp eq i8 %5, 0
  br i1 %6, label %122, label %7

7:                                                ; preds = %1
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  %9 = load ptr, ptr %8, align 8, !tbaa !15
  %10 = icmp eq ptr %9, null
  %11 = getelementptr inbounds i8, ptr %0, i64 16
  %12 = load ptr, ptr %11, align 8
  %13 = icmp eq ptr %12, null
  %or.cond = select i1 %10, i1 %13, i1 false
  br i1 %or.cond, label %122, label %14

14:                                               ; preds = %7
  br i1 %10, label %23, label %15

15:                                               ; preds = %14
  %16 = tail call noundef zeroext i1 @_ZN5QBody10GetEnabledEv(ptr noundef nonnull align 8 dereferenceable(293) %9)
  br i1 %16, label %17, label %122

17:                                               ; preds = %15
  %18 = load ptr, ptr %8, align 8, !tbaa !15
  %19 = tail call noundef i32 @_ZN5QBody7GetModeEv(ptr noundef nonnull align 8 dereferenceable(293) %18)
  %20 = icmp eq i32 %19, 1
  %21 = load ptr, ptr %11, align 8
  %22 = icmp eq ptr %21, null
  %or.cond59 = select i1 %20, i1 %22, i1 false
  br i1 %or.cond59, label %122, label %23

23:                                               ; preds = %17, %14
  %24 = phi ptr [ %21, %17 ], [ %12, %14 ]
  %.not46 = icmp eq ptr %24, null
  br i1 %.not46, label %.thread72, label %25

25:                                               ; preds = %23
  %26 = tail call noundef zeroext i1 @_ZN5QBody10GetEnabledEv(ptr noundef nonnull align 8 dereferenceable(293) %24)
  br i1 %26, label %27, label %122

27:                                               ; preds = %25
  %28 = load ptr, ptr %11, align 8, !tbaa !16
  %29 = tail call noundef i32 @_ZN5QBody7GetModeEv(ptr noundef nonnull align 8 dereferenceable(293) %28)
  %30 = icmp eq i32 %29, 1
  %31 = load ptr, ptr %8, align 8
  %32 = icmp eq ptr %31, null
  %or.cond61 = select i1 %30, i1 %32, i1 false
  br i1 %or.cond61, label %122, label %33

33:                                               ; preds = %27
  %.pre66 = load ptr, ptr %11, align 8
  %34 = icmp eq ptr %.pre66, null
  %35 = getelementptr inbounds i8, ptr %0, i64 64
  %36 = load float, ptr %35, align 8, !tbaa !17
  %37 = fsub float 1.000000e+00, %36
  %.not47 = icmp eq ptr %31, null
  %or.cond62 = select i1 %.not47, i1 true, i1 %34
  br i1 %or.cond62, label %53, label %38

38:                                               ; preds = %33
  %39 = tail call noundef i32 @_ZN5QBody7GetModeEv(ptr noundef nonnull align 8 dereferenceable(293) %31)
  %40 = icmp eq i32 %39, 1
  br i1 %40, label %41, label %45

41:                                               ; preds = %38
  %42 = load ptr, ptr %11, align 8, !tbaa !16
  %43 = tail call noundef i32 @_ZN5QBody7GetModeEv(ptr noundef nonnull align 8 dereferenceable(293) %42)
  %44 = icmp eq i32 %43, 1
  br i1 %44, label %122, label %45

45:                                               ; preds = %41, %38
  %46 = load ptr, ptr %8, align 8, !tbaa !15
  %47 = tail call noundef i32 @_ZN5QBody7GetModeEv(ptr noundef nonnull align 8 dereferenceable(293) %46)
  %48 = icmp eq i32 %47, 1
  %.036 = select i1 %48, float 1.000000e+00, float %37
  %.0 = select i1 %48, float 0.000000e+00, float %36
  %49 = load ptr, ptr %11, align 8, !tbaa !16
  %50 = tail call noundef i32 @_ZN5QBody7GetModeEv(ptr noundef nonnull align 8 dereferenceable(293) %49)
  %51 = icmp eq i32 %50, 1
  br i1 %51, label %52, label %54

52:                                               ; preds = %45
  br label %54

53:                                               ; preds = %33
  %.137 = select i1 %.not47, float 1.000000e+00, float %37
  %.1 = select i1 %.not47, float 0.000000e+00, float %36
  br i1 %34, label %.thread72, label %54

.thread72:                                        ; preds = %23, %53
  br label %54

54:                                               ; preds = %53, %.thread72, %45, %52
  %.238 = phi float [ 0.000000e+00, %52 ], [ %.036, %45 ], [ 0.000000e+00, %.thread72 ], [ %.137, %53 ]
  %.2 = phi float [ 1.000000e+00, %52 ], [ %.0, %45 ], [ 1.000000e+00, %.thread72 ], [ %.1, %53 ]
  %55 = getelementptr inbounds i8, ptr %0, i64 24
  %56 = getelementptr inbounds i8, ptr %0, i64 32
  %.sroa.029.0.copyload = load <2 x float>, ptr %56, align 8
  %57 = load ptr, ptr %8, align 8, !tbaa !15
  %.not49 = icmp eq ptr %57, null
  br i1 %.not49, label %64, label %58

58:                                               ; preds = %54
  %59 = tail call noundef float @_ZN5QBody11GetRotationEv(ptr noundef nonnull align 8 dereferenceable(293) %57)
  %60 = tail call <2 x float> @_ZNK7QVector7RotatedEf(ptr noundef nonnull align 4 dereferenceable(8) %55, float noundef %59)
  %61 = load ptr, ptr %8, align 8, !tbaa !15
  %62 = tail call <2 x float> @_ZN5QBody11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(293) %61)
  %63 = tail call <2 x float> @_Zpl7QVectorS_(<2 x float> %62, <2 x float> %60)
  br label %65

64:                                               ; preds = %54
  %.sroa.031.0.copyload = load <2 x float>, ptr %55, align 8
  br label %65

65:                                               ; preds = %64, %58
  %.sink = phi <2 x float> [ %.sroa.031.0.copyload, %64 ], [ %63, %58 ]
  %.sroa.031.0 = phi <2 x float> [ %.sroa.031.0.copyload, %64 ], [ %60, %58 ]
  %66 = getelementptr inbounds i8, ptr %0, i64 40
  store <2 x float> %.sink, ptr %66, align 8
  %67 = load ptr, ptr %11, align 8, !tbaa !16
  %.not50 = icmp eq ptr %67, null
  br i1 %.not50, label %74, label %68

68:                                               ; preds = %65
  %69 = tail call noundef float @_ZN5QBody11GetRotationEv(ptr noundef nonnull align 8 dereferenceable(293) %67)
  %70 = tail call <2 x float> @_ZNK7QVector7RotatedEf(ptr noundef nonnull align 4 dereferenceable(8) %56, float noundef %69)
  %71 = load ptr, ptr %11, align 8, !tbaa !16
  %72 = tail call <2 x float> @_ZN5QBody11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(293) %71)
  %73 = tail call <2 x float> @_Zpl7QVectorS_(<2 x float> %72, <2 x float> %70)
  br label %76

74:                                               ; preds = %65
  %75 = load <2 x float>, ptr %56, align 8
  br label %76

76:                                               ; preds = %74, %68
  %.sink64 = phi <2 x float> [ %75, %74 ], [ %73, %68 ]
  %.sroa.029.0 = phi <2 x float> [ %.sroa.029.0.copyload, %74 ], [ %70, %68 ]
  %77 = getelementptr inbounds i8, ptr %0, i64 48
  store <2 x float> %.sink64, ptr %77, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  %78 = tail call <2 x float> @_ZN7QVector4ZeroEv()
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %79 = tail call <2 x float> @_ZN7QVector4ZeroEv()
  %80 = tail call <2 x float> @_ZN7QVector4ZeroEv()
  %81 = tail call <2 x float> @_ZN7QVector4ZeroEv()
  %.sroa.017.0.copyload = load <2 x float>, ptr %77, align 8
  %.sroa.016.0.copyload = load <2 x float>, ptr %66, align 8
  %82 = tail call <2 x float> @_Zmi7QVectorS_(<2 x float> %.sroa.017.0.copyload, <2 x float> %.sroa.016.0.copyload)
  store <2 x float> %82, ptr %2, align 8
  %83 = call noundef float @_ZNK7QVector6LengthEv(ptr noundef nonnull align 4 dereferenceable(8) %2)
  %84 = call <2 x float> @_ZNK7QVector10NormalizedEv(ptr noundef nonnull align 4 dereferenceable(8) %2)
  %85 = getelementptr inbounds i8, ptr %0, i64 68
  %86 = load float, ptr %85, align 4, !tbaa !18
  %87 = fsub float %86, %83
  %88 = fcmp oeq float %87, 0.000000e+00
  br i1 %88, label %121, label %89

89:                                               ; preds = %76
  %90 = getelementptr inbounds i8, ptr %0, i64 72
  %91 = load i8, ptr %90, align 8, !tbaa !19, !range !13, !noundef !14
  %92 = trunc nuw i8 %91 to i1
  %93 = fcmp olt float %83, %86
  %or.cond63 = and i1 %93, %92
  br i1 %or.cond63, label %121, label %94

94:                                               ; preds = %89
  %95 = call <2 x float> @_Zmlf7QVector(float noundef %87, <2 x float> %84)
  %96 = getelementptr inbounds i8, ptr %0, i64 60
  %97 = load float, ptr %96, align 4, !tbaa !20
  %98 = call <2 x float> @_Zml7QVectorf(<2 x float> %95, float noundef %97)
  store <2 x float> %98, ptr %3, align 8
  %99 = call <2 x float> @_ZNK7QVectorngEv(ptr noundef nonnull align 4 dereferenceable(8) %3)
  %100 = call <2 x float> @_Zml7QVectorf(<2 x float> %99, float noundef %.2)
  %.sroa.04.0.copyload = load <2 x float>, ptr %3, align 8
  %101 = call <2 x float> @_Zml7QVectorf(<2 x float> %.sroa.04.0.copyload, float noundef %.238)
  %102 = load ptr, ptr %8, align 8, !tbaa !15
  %.not51 = icmp eq ptr %102, null
  br i1 %.not51, label %111, label %103

103:                                              ; preds = %94
  %104 = call noundef i32 @_ZN5QBody7GetModeEv(ptr noundef nonnull align 8 dereferenceable(293) %102)
  %.not52 = icmp eq i32 %104, 1
  br i1 %.not52, label %111, label %105

105:                                              ; preds = %103
  %106 = load ptr, ptr %8, align 8, !tbaa !15
  %107 = load ptr, ptr %106, align 8, !tbaa !21
  %108 = getelementptr inbounds i8, ptr %107, i64 80
  %109 = load ptr, ptr %108, align 8
  %110 = call noundef ptr %109(ptr noundef nonnull align 8 dereferenceable(308) %106, <2 x float> %100, <2 x float> %.sroa.031.0, i1 noundef zeroext true)
  br label %111

111:                                              ; preds = %103, %105, %94
  %112 = load ptr, ptr %11, align 8, !tbaa !16
  %.not53 = icmp eq ptr %112, null
  br i1 %.not53, label %121, label %113

113:                                              ; preds = %111
  %114 = call noundef i32 @_ZN5QBody7GetModeEv(ptr noundef nonnull align 8 dereferenceable(293) %112)
  %.not54 = icmp eq i32 %114, 1
  br i1 %.not54, label %121, label %115

115:                                              ; preds = %113
  %116 = load ptr, ptr %11, align 8, !tbaa !16
  %117 = load ptr, ptr %116, align 8, !tbaa !21
  %118 = getelementptr inbounds i8, ptr %117, i64 80
  %119 = load ptr, ptr %118, align 8
  %120 = call noundef ptr %119(ptr noundef nonnull align 8 dereferenceable(308) %116, <2 x float> %101, <2 x float> %.sroa.029.0, i1 noundef zeroext true)
  br label %121

121:                                              ; preds = %111, %115, %113, %89, %76
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  br label %122

122:                                              ; preds = %121, %41, %27, %17, %7, %25, %15, %1
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN5QBody10GetEnabledEv(ptr noundef nonnull align 8 dereferenceable(293)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5QBody7GetModeEv(ptr noundef nonnull align 8 dereferenceable(293)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_Zpl7QVectorS_(<2 x float>, <2 x float>) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZN7QVector4ZeroEv() local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZNK7QVector10NormalizedEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_Zmlf7QVector(float noundef, <2 x float>) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_Zml7QVectorf(<2 x float>, float noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZNK7QVectorngEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="64" "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 nounwind uwtable "min-legal-vector-width"="64" "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 = { "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 = { 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "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 #7 = { 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, !12, i64 57}
!6 = !{!"_ZTS6QJoint", !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !12, i64 56, !12, i64 57, !11, i64 60, !11, i64 64, !11, i64 68, !12, i64 72, !7, i64 80, !12, i64 88}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS7QVector", !11, i64 0, !11, i64 4}
!11 = !{!"float", !8, i64 0}
!12 = !{!"bool", !8, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!6, !7, i64 8}
!16 = !{!6, !7, i64 16}
!17 = !{!6, !11, i64 64}
!18 = !{!6, !11, i64 68}
!19 = !{!6, !12, i64 72}
!20 = !{!6, !11, i64 60}
!21 = !{!22, !22, i64 0}
!22 = !{!"vtable pointer", !9, i64 0}


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