; LLVM IR from erayzesen/QuarkPhysics :: QuarkPhysics/extensions/qplatformerbody.ll (ZN15QPlatformerBodyC2Ev)

; 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.QPlatformerBody = type { %class.QRigidBody.base, i8, i8, i32, float, float, ptr, %struct.QVector, float, %struct.QVector, %struct.QVector, %struct.QVector, float, %struct.QVector, %struct.QVector, i8, i8, i32, float, float, i32, float, i32, i32, i32, i32, float, float }
%class.QRigidBody.base = type { %class.QBody.base, i8, %struct.QVector, float }
%class.QBody.base = type <{ ptr, float, float, ptr, %struct.QVector, %struct.QVector, float, float, %class.QAABB, i32, i8, i8, i8, i8, float, i32, i8, [3 x i8], float, i8, i8, [2 x i8], %struct.QVector, float, float, float, float, float, i32, i32, i8, i8, i8, i8, i32, i32, i32, i8, [3 x i8], %"class.std::function", %"class.std::function", %"class.std::function.0", i8, [7 x i8], %"class.std::vector", i32, i8 }>
%class.QAABB = type { %struct.QVector, %struct.QVector, %struct.QVector, float }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.std::function.0" = type { %"class.std::_Function_base", ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<QMesh *, std::allocator<QMesh *>>::_Vector_impl" }
%"struct.std::_Vector_base<QMesh *, std::allocator<QMesh *>>::_Vector_impl" = type { %"struct.std::_Vector_base<QMesh *, std::allocator<QMesh *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<QMesh *, std::allocator<QMesh *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.QVector = type { float, float }

@_ZTV15QPlatformerBody = external dso_local unnamed_addr constant { [13 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15QPlatformerBodyC2Ev(ptr noundef nonnull align 8 dereferenceable(440) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %5 = load ptr, ptr %2, align 8
  call void @_ZN10QRigidBodyC2Ev(ptr noundef nonnull align 8 dereferenceable(308) %5)
  store ptr getelementptr inbounds inrange(-16, 88) ({ [13 x ptr] }, ptr @_ZTV15QPlatformerBody, i32 0, i32 0, i32 2), ptr %5, align 8, !tbaa !9
  %6 = getelementptr inbounds %class.QPlatformerBody, ptr %5, i32 0, i32 1
  store i8 0, ptr %6, align 4, !tbaa !11
  %7 = getelementptr inbounds %class.QPlatformerBody, ptr %5, i32 0, i32 2
  store i8 0, ptr %7, align 1, !tbaa !31
  %8 = getelementptr inbounds %class.QPlatformerBody, ptr %5, i32 0, i32 3
  store i32 0, ptr %8, align 8, !tbaa !32
  %9 = getelementptr inbounds %class.QPlatformerBody, ptr %5, i32 0, i32 4
  store float 0x3FE921FB60000000, ptr %9, align 4, !tbaa !33
  %10 = getelementptr inbounds %class.QPlatformerBody, ptr %5, i32 0, i32 5
  store float 1.000000e+01, ptr %10, align 8, !tbaa !34
  %11 = getelementptr inbounds %class.QPlatformerBody, ptr %5, i32 0, i32 6
  store ptr null, ptr %11, align 8, !tbaa !35
  %12 = getelementptr inbounds %class.QPlatformerBody, ptr %5, i32 0, i32 7
  invoke void @_ZN7QVectorC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %12, float noundef 0.000000e+00, float noundef 0x3FD3333340000000)
          to label %13 unwind label %54

13:                                               ; preds = %1
  %14 = getelementptr inbounds %class.QPlatformerBody, ptr %5, i32 0, i32 8
  store float 1.000000e+00, ptr %14, align 8, !tbaa !36
  %15 = getelementptr inbounds %class.QPlatformerBody, ptr %5, i32 0, i32 9
  %16 = invoke <2 x float> @_ZN7QVector4ZeroEv()
          to label %17 unwind label %54

17:                                               ; preds = %13
  store <2 x float> %16, ptr %15, align 4
  %18 = getelementptr inbounds %class.QPlatformerBody, ptr %5, i32 0, i32 10
  %19 = invoke <2 x float> @_ZN7QVector2UpEv()
          to label %20 unwind label %54

20:                                               ; preds = %17
  store <2 x float> %19, ptr %18, align 4
  %21 = getelementptr inbounds %class.QPlatformerBody, ptr %5, i32 0, i32 11
  %22 = invoke <2 x float> @_ZN7QVector5RightEv()
          to label %23 unwind label %54

23:                                               ; preds = %20
  store <2 x float> %22, ptr %21, align 4
  %24 = getelementptr inbounds %class.QPlatformerBody, ptr %5, i32 0, i32 12
  store float 3.000000e+00, ptr %24, align 4, !tbaa !37
  %25 = getelementptr inbounds %class.QPlatformerBody, ptr %5, i32 0, i32 13
  %26 = invoke <2 x float> @_ZN7QVector4ZeroEv()
          to label %27 unwind label %54

27:                                               ; preds = %23
  store <2 x float> %26, ptr %25, align 8
  %28 = getelementptr inbounds %class.QPlatformerBody, ptr %5, i32 0, i32 14
  %29 = invoke <2 x float> @_ZN7QVector4ZeroEv()
          to label %30 unwind label %54

30:                                               ; preds = %27
  store <2 x float> %29, ptr %28, align 8
  %31 = getelementptr inbounds %class.QPlatformerBody, ptr %5, i32 0, i32 15
  store i8 0, ptr %31, align 8, !tbaa !38
  %32 = getelementptr inbounds %class.QPlatformerBody, ptr %5, i32 0, i32 16
  store i8 0, ptr %32, align 1, !tbaa !39
  %33 = getelementptr inbounds %class.QPlatformerBody, ptr %5, i32 0, i32 17
  store i32 0, ptr %33, align 4, !tbaa !40
  %34 = getelementptr inbounds %class.QPlatformerBody, ptr %5, i32 0, i32 18
  store float 0x3FB99999A0000000, ptr %34, align 8, !tbaa !41
  %35 = getelementptr inbounds %class.QPlatformerBody, ptr %5, i32 0, i32 19
  store float 0x3FB99999A0000000, ptr %35, align 4, !tbaa !42
  %36 = getelementptr inbounds %class.QPlatformerBody, ptr %5, i32 0, i32 20
  store i32 0, ptr %36, align 8, !tbaa !43
  %37 = getelementptr inbounds %class.QPlatformerBody, ptr %5, i32 0, i32 21
  store float 5.000000e+00, ptr %37, align 4, !tbaa !44
  %38 = getelementptr inbounds %class.QPlatformerBody, ptr %5, i32 0, i32 22
  store i32 2, ptr %38, align 8, !tbaa !45
  %39 = getelementptr inbounds %class.QPlatformerBody, ptr %5, i32 0, i32 23
  store i32 0, ptr %39, align 4, !tbaa !46
  %40 = getelementptr inbounds %class.QPlatformerBody, ptr %5, i32 0, i32 24
  store i32 30, ptr %40, align 8, !tbaa !47
  %41 = getelementptr inbounds %class.QPlatformerBody, ptr %5, i32 0, i32 25
  store i32 0, ptr %41, align 4, !tbaa !48
  %42 = getelementptr inbounds %class.QPlatformerBody, ptr %5, i32 0, i32 26
  store float 0x3FD99999A0000000, ptr %42, align 8, !tbaa !49
  %43 = getelementptr inbounds %class.QPlatformerBody, ptr %5, i32 0, i32 27
  store float 1.000000e+00, ptr %43, align 4, !tbaa !50
  %44 = invoke noundef ptr @_ZN5QBody30SetIntegratedVelocitiesEnabledEb(ptr noundef nonnull align 8 dereferenceable(293) %5, i1 noundef zeroext false)
          to label %45 unwind label %54

45:                                               ; preds = %30
  %46 = invoke noundef ptr @_ZN10QRigidBody29SetKinematicCollisionsEnabledEb(ptr noundef nonnull align 8 dereferenceable(308) %5, i1 noundef zeroext true)
          to label %47 unwind label %54

47:                                               ; preds = %45
  %48 = invoke noundef ptr @_ZN10QRigidBody23SetFixedRotationEnabledEb(ptr noundef nonnull align 8 dereferenceable(308) %5, i1 noundef zeroext true)
          to label %49 unwind label %54

49:                                               ; preds = %47
  %50 = invoke noundef ptr @_ZN5QBody11SetFrictionEf(ptr noundef nonnull align 8 dereferenceable(293) %5, float noundef 0.000000e+00)
          to label %51 unwind label %54

51:                                               ; preds = %49
  %52 = invoke noundef ptr @_ZN5QBody17SetStaticFrictionEf(ptr noundef nonnull align 8 dereferenceable(293) %5, float noundef 5.000000e-01)
          to label %53 unwind label %54

53:                                               ; preds = %51
  ret void

54:                                               ; preds = %51, %49, %47, %45, %30, %27, %23, %20, %17, %13, %1
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %3, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %4, align 4
  call void @_ZN5QBodyD2Ev(ptr noundef nonnull align 8 dereferenceable(308) %5) #4
  br label %58

58:                                               ; preds = %54
  %59 = load ptr, ptr %3, align 8
  %60 = load i32, ptr %4, align 4
  %61 = insertvalue { ptr, i32 } poison, ptr %59, 0
  %62 = insertvalue { ptr, i32 } %61, i32 %60, 1
  resume { ptr, i32 } %62
}

declare void @_ZN10QRigidBodyC2Ev(ptr noundef nonnull align 8 dereferenceable(308)) unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7QVectorC2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

declare noundef ptr @_ZN5QBody30SetIntegratedVelocitiesEnabledEb(ptr noundef nonnull align 8 dereferenceable(293), i1 noundef zeroext) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN10QRigidBody29SetKinematicCollisionsEnabledEb(ptr noundef nonnull align 8 dereferenceable(308), i1 noundef zeroext) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN10QRigidBody23SetFixedRotationEnabledEb(ptr noundef nonnull align 8 dereferenceable(308), i1 noundef zeroext) #2 align 2

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

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

; Function Attrs: nounwind
declare void @_ZN5QBodyD2Ev(ptr noundef nonnull align 8 dereferenceable(293)) unnamed_addr #3

attributes #0 = { 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 #1 = { "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 = { 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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !19, i64 308}
!12 = !{!"_ZTS15QPlatformerBody", !13, i64 0, !19, i64 308, !19, i64 309, !21, i64 312, !15, i64 316, !15, i64 320, !6, i64 328, !16, i64 336, !15, i64 344, !16, i64 348, !16, i64 356, !16, i64 364, !15, i64 372, !16, i64 376, !16, i64 384, !19, i64 392, !19, i64 393, !21, i64 396, !15, i64 400, !15, i64 404, !30, i64 408, !15, i64 412, !21, i64 416, !21, i64 420, !21, i64 424, !21, i64 428, !15, i64 432, !15, i64 436}
!13 = !{!"_ZTS10QRigidBody", !14, i64 0, !19, i64 293, !16, i64 296, !15, i64 304}
!14 = !{!"_ZTS5QBody", !15, i64 8, !15, i64 12, !6, i64 16, !16, i64 24, !16, i64 32, !15, i64 40, !15, i64 44, !17, i64 48, !18, i64 76, !19, i64 80, !19, i64 81, !19, i64 82, !15, i64 84, !20, i64 88, !19, i64 92, !15, i64 96, !19, i64 100, !19, i64 101, !16, i64 104, !15, i64 112, !15, i64 116, !15, i64 120, !15, i64 124, !15, i64 128, !21, i64 132, !21, i64 136, !19, i64 140, !19, i64 141, !19, i64 142, !21, i64 144, !21, i64 148, !21, i64 152, !19, i64 156, !22, i64 160, !22, i64 192, !24, i64 224, !19, i64 256, !25, i64 264, !29, i64 288, !19, i64 292}
!15 = !{!"float", !7, i64 0}
!16 = !{!"_ZTS7QVector", !15, i64 0, !15, i64 4}
!17 = !{!"_ZTS5QAABB", !16, i64 0, !16, i64 8, !16, i64 16, !15, i64 24}
!18 = !{!"_ZTSN5QBody5ModesE", !7, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSN5QBody9BodyTypesE", !7, i64 0}
!21 = !{!"int", !7, i64 0}
!22 = !{!"_ZTSSt8functionIFvP5QBodyEE", !23, i64 0, !6, i64 24}
!23 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!24 = !{!"_ZTSSt8functionIFbP5QBodyNS0_13CollisionInfoEEE", !23, i64 0, !6, i64 24}
!25 = !{!"_ZTSSt6vectorIP5QMeshSaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIP5QMeshSaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIP5QMeshSaIS1_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIP5QMeshSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!29 = !{!"_ZTSN5QBody16SimulationModelsE", !7, i64 0}
!30 = !{!"_ZTSN15QPlatformerBody9JumpModesE", !7, i64 0}
!31 = !{!12, !19, i64 309}
!32 = !{!12, !21, i64 312}
!33 = !{!12, !15, i64 316}
!34 = !{!12, !15, i64 320}
!35 = !{!12, !6, i64 328}
!36 = !{!12, !15, i64 344}
!37 = !{!12, !15, i64 372}
!38 = !{!12, !19, i64 392}
!39 = !{!12, !19, i64 393}
!40 = !{!12, !21, i64 396}
!41 = !{!12, !15, i64 400}
!42 = !{!12, !15, i64 404}
!43 = !{!12, !30, i64 408}
!44 = !{!12, !15, i64 412}
!45 = !{!12, !21, i64 416}
!46 = !{!12, !21, i64 420}
!47 = !{!12, !21, i64 424}
!48 = !{!12, !21, i64 428}
!49 = !{!12, !15, i64 432}
!50 = !{!12, !15, i64 436}


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

@_ZTV15QPlatformerBody = external dso_local unnamed_addr constant { [13 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15QPlatformerBodyC2Ev(ptr noundef nonnull align 8 dereferenceable(440) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZN10QRigidBodyC2Ev(ptr noundef nonnull align 8 dereferenceable(308) %0)
  store ptr getelementptr inbounds inrange(-16, 88) (i8, ptr @_ZTV15QPlatformerBody, i64 16), ptr %0, align 8, !tbaa !5
  %2 = getelementptr inbounds i8, ptr %0, i64 308
  store i8 0, ptr %2, align 4, !tbaa !8
  %3 = getelementptr inbounds i8, ptr %0, i64 309
  store i8 0, ptr %3, align 1, !tbaa !30
  %4 = getelementptr inbounds i8, ptr %0, i64 312
  store i32 0, ptr %4, align 8, !tbaa !31
  %5 = getelementptr inbounds i8, ptr %0, i64 316
  store <2 x float> <float 0x3FE921FB60000000, float 1.000000e+01>, ptr %5, align 4, !tbaa !32
  %6 = getelementptr inbounds i8, ptr %0, i64 328
  store ptr null, ptr %6, align 8, !tbaa !33
  %7 = getelementptr inbounds i8, ptr %0, i64 336
  tail call void @_ZN7QVectorC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %7, float noundef 0.000000e+00, float noundef 0x3FD3333340000000)
  %8 = getelementptr inbounds i8, ptr %0, i64 344
  store float 1.000000e+00, ptr %8, align 8, !tbaa !34
  %9 = invoke <2 x float> @_ZN7QVector4ZeroEv()
          to label %10 unwind label %39

10:                                               ; preds = %1
  %11 = getelementptr inbounds i8, ptr %0, i64 348
  store <2 x float> %9, ptr %11, align 4
  %12 = invoke <2 x float> @_ZN7QVector2UpEv()
          to label %13 unwind label %39

13:                                               ; preds = %10
  %14 = getelementptr inbounds i8, ptr %0, i64 356
  store <2 x float> %12, ptr %14, align 4
  %15 = invoke <2 x float> @_ZN7QVector5RightEv()
          to label %16 unwind label %39

16:                                               ; preds = %13
  %17 = getelementptr inbounds i8, ptr %0, i64 364
  store <2 x float> %15, ptr %17, align 4
  %18 = getelementptr inbounds i8, ptr %0, i64 372
  store float 3.000000e+00, ptr %18, align 4, !tbaa !35
  %19 = invoke <2 x float> @_ZN7QVector4ZeroEv()
          to label %20 unwind label %39

20:                                               ; preds = %16
  %21 = getelementptr inbounds i8, ptr %0, i64 376
  store <2 x float> %19, ptr %21, align 8
  %22 = invoke <2 x float> @_ZN7QVector4ZeroEv()
          to label %23 unwind label %39

23:                                               ; preds = %20
  %24 = getelementptr inbounds i8, ptr %0, i64 384
  store <2 x float> %22, ptr %24, align 8
  %25 = getelementptr inbounds i8, ptr %0, i64 392
  store i8 0, ptr %25, align 8, !tbaa !36
  %26 = getelementptr inbounds i8, ptr %0, i64 393
  store i8 0, ptr %26, align 1, !tbaa !37
  %27 = getelementptr inbounds i8, ptr %0, i64 396
  store i32 0, ptr %27, align 4, !tbaa !38
  %28 = getelementptr inbounds i8, ptr %0, i64 400
  store <2 x float> <float 0x3FB99999A0000000, float 0x3FB99999A0000000>, ptr %28, align 8, !tbaa !32
  %29 = getelementptr inbounds i8, ptr %0, i64 408
  store i32 0, ptr %29, align 8, !tbaa !39
  %30 = getelementptr inbounds i8, ptr %0, i64 412
  store float 5.000000e+00, ptr %30, align 4, !tbaa !40
  %31 = getelementptr inbounds i8, ptr %0, i64 416
  store <4 x i32> <i32 2, i32 0, i32 30, i32 0>, ptr %31, align 8, !tbaa !41
  %32 = getelementptr inbounds i8, ptr %0, i64 432
  store <2 x float> <float 0x3FD99999A0000000, float 1.000000e+00>, ptr %32, align 8, !tbaa !32
  %33 = invoke noundef ptr @_ZN5QBody30SetIntegratedVelocitiesEnabledEb(ptr noundef nonnull align 8 dereferenceable(293) %0, i1 noundef zeroext false)
          to label %34 unwind label %39

34:                                               ; preds = %23
  %35 = tail call noundef ptr @_ZN10QRigidBody29SetKinematicCollisionsEnabledEb(ptr noundef nonnull align 8 dereferenceable(308) %0, i1 noundef zeroext true)
  %36 = tail call noundef ptr @_ZN10QRigidBody23SetFixedRotationEnabledEb(ptr noundef nonnull align 8 dereferenceable(308) %0, i1 noundef zeroext true)
  %37 = tail call noundef ptr @_ZN5QBody11SetFrictionEf(ptr noundef nonnull align 8 dereferenceable(293) %0, float noundef 0.000000e+00)
  %38 = tail call noundef ptr @_ZN5QBody17SetStaticFrictionEf(ptr noundef nonnull align 8 dereferenceable(293) %0, float noundef 5.000000e-01)
  ret void

39:                                               ; preds = %23, %20, %16, %13, %10, %1
  %40 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN5QBodyD2Ev(ptr noundef nonnull align 8 dereferenceable(308) %0) #4
  resume { ptr, i32 } %40
}

declare void @_ZN10QRigidBodyC2Ev(ptr noundef nonnull align 8 dereferenceable(308)) unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7QVectorC2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

declare noundef ptr @_ZN5QBody30SetIntegratedVelocitiesEnabledEb(ptr noundef nonnull align 8 dereferenceable(293), i1 noundef zeroext) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN10QRigidBody29SetKinematicCollisionsEnabledEb(ptr noundef nonnull align 8 dereferenceable(308), i1 noundef zeroext) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN10QRigidBody23SetFixedRotationEnabledEb(ptr noundef nonnull align 8 dereferenceable(308), i1 noundef zeroext) local_unnamed_addr #2 align 2

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

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

; Function Attrs: nounwind
declare void @_ZN5QBodyD2Ev(ptr noundef nonnull align 8 dereferenceable(293)) unnamed_addr #3

attributes #0 = { 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 #1 = { "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 = { 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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !18, i64 308}
!9 = !{!"_ZTS15QPlatformerBody", !10, i64 0, !18, i64 308, !18, i64 309, !20, i64 312, !12, i64 316, !12, i64 320, !14, i64 328, !15, i64 336, !12, i64 344, !15, i64 348, !15, i64 356, !15, i64 364, !12, i64 372, !15, i64 376, !15, i64 384, !18, i64 392, !18, i64 393, !20, i64 396, !12, i64 400, !12, i64 404, !29, i64 408, !12, i64 412, !20, i64 416, !20, i64 420, !20, i64 424, !20, i64 428, !12, i64 432, !12, i64 436}
!10 = !{!"_ZTS10QRigidBody", !11, i64 0, !18, i64 293, !15, i64 296, !12, i64 304}
!11 = !{!"_ZTS5QBody", !12, i64 8, !12, i64 12, !14, i64 16, !15, i64 24, !15, i64 32, !12, i64 40, !12, i64 44, !16, i64 48, !17, i64 76, !18, i64 80, !18, i64 81, !18, i64 82, !12, i64 84, !19, i64 88, !18, i64 92, !12, i64 96, !18, i64 100, !18, i64 101, !15, i64 104, !12, i64 112, !12, i64 116, !12, i64 120, !12, i64 124, !12, i64 128, !20, i64 132, !20, i64 136, !18, i64 140, !18, i64 141, !18, i64 142, !20, i64 144, !20, i64 148, !20, i64 152, !18, i64 156, !21, i64 160, !21, i64 192, !23, i64 224, !18, i64 256, !24, i64 264, !28, i64 288, !18, i64 292}
!12 = !{!"float", !13, i64 0}
!13 = !{!"omnipotent char", !7, i64 0}
!14 = !{!"any pointer", !13, i64 0}
!15 = !{!"_ZTS7QVector", !12, i64 0, !12, i64 4}
!16 = !{!"_ZTS5QAABB", !15, i64 0, !15, i64 8, !15, i64 16, !12, i64 24}
!17 = !{!"_ZTSN5QBody5ModesE", !13, i64 0}
!18 = !{!"bool", !13, i64 0}
!19 = !{!"_ZTSN5QBody9BodyTypesE", !13, i64 0}
!20 = !{!"int", !13, i64 0}
!21 = !{!"_ZTSSt8functionIFvP5QBodyEE", !22, i64 0, !14, i64 24}
!22 = !{!"_ZTSSt14_Function_base", !13, i64 0, !14, i64 16}
!23 = !{!"_ZTSSt8functionIFbP5QBodyNS0_13CollisionInfoEEE", !22, i64 0, !14, i64 24}
!24 = !{!"_ZTSSt6vectorIP5QMeshSaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIP5QMeshSaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIP5QMeshSaIS1_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIP5QMeshSaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!28 = !{!"_ZTSN5QBody16SimulationModelsE", !13, i64 0}
!29 = !{!"_ZTSN15QPlatformerBody9JumpModesE", !13, i64 0}
!30 = !{!9, !18, i64 309}
!31 = !{!9, !20, i64 312}
!32 = !{!12, !12, i64 0}
!33 = !{!9, !14, i64 328}
!34 = !{!9, !12, i64 344}
!35 = !{!9, !12, i64 372}
!36 = !{!9, !18, i64 392}
!37 = !{!9, !18, i64 393}
!38 = !{!9, !20, i64 396}
!39 = !{!9, !29, i64 408}
!40 = !{!9, !12, i64 412}
!41 = !{!20, !20, i64 0}


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