; LLVM IR from mtsamis/box2d-optimized :: src/dynamics/b2_wheel_joint.ll (ZN12b2WheelJointC2EPK15b2WheelJointDef)

; 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.b2Vec2 = type { float, float }
%class.b2WheelJoint = type <{ %class.b2Joint, %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, float, float, float, float, float, float, float, float, float, float, i8, i8, [2 x i8], float, float, i32, i32, %struct.b2Vec2, %struct.b2Vec2, float, float, float, float, %struct.b2Vec2, %struct.b2Vec2, float, float, float, float, float, float, float, float, float, float, [4 x i8] }>
%class.b2Joint = type { ptr, i32, ptr, ptr, %struct.b2JointEdge, %struct.b2JointEdge, ptr, ptr, i32, i8, i8, %struct.b2JointUserData }
%struct.b2JointEdge = type { ptr, ptr, ptr, ptr }
%struct.b2JointUserData = type { i64 }
%struct.b2WheelJointDef = type { %struct.b2JointDef.base, %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, i8, float, float, i8, float, float, float, float, [4 x i8] }
%struct.b2JointDef.base = type <{ i32, [4 x i8], %struct.b2JointUserData, ptr, ptr, i8 }>

@_ZTV12b2WheelJoint = external dso_local unnamed_addr constant { [14 x ptr] }, align 8

; 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: mustprogress uwtable
define dso_local void @_ZN12b2WheelJointC2EPK15b2WheelJointDef(ptr noundef nonnull align 8 dereferenceable(308) %0, ptr noundef %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %struct.b2Vec2, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %8 = load ptr, ptr %3, align 8
  %9 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN7b2JointC2EPK10b2JointDef(ptr noundef nonnull align 8 dereferenceable(128) %8, ptr noundef %9)
  store ptr getelementptr inbounds inrange(-16, 96) ({ [14 x ptr] }, ptr @_ZTV12b2WheelJoint, i32 0, i32 0, i32 2), ptr %8, align 8, !tbaa !9
  %10 = getelementptr inbounds %class.b2WheelJoint, ptr %8, i32 0, i32 1
  invoke void @_ZN6b2Vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %10)
          to label %11 unwind label %90

11:                                               ; preds = %2
  %12 = getelementptr inbounds %class.b2WheelJoint, ptr %8, i32 0, i32 2
  invoke void @_ZN6b2Vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %12)
          to label %13 unwind label %90

13:                                               ; preds = %11
  %14 = getelementptr inbounds %class.b2WheelJoint, ptr %8, i32 0, i32 3
  invoke void @_ZN6b2Vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %14)
          to label %15 unwind label %90

15:                                               ; preds = %13
  %16 = getelementptr inbounds %class.b2WheelJoint, ptr %8, i32 0, i32 4
  invoke void @_ZN6b2Vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %16)
          to label %17 unwind label %90

17:                                               ; preds = %15
  %18 = getelementptr inbounds %class.b2WheelJoint, ptr %8, i32 0, i32 22
  invoke void @_ZN6b2Vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %18)
          to label %19 unwind label %90

19:                                               ; preds = %17
  %20 = getelementptr inbounds %class.b2WheelJoint, ptr %8, i32 0, i32 23
  invoke void @_ZN6b2Vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %20)
          to label %21 unwind label %90

21:                                               ; preds = %19
  %22 = getelementptr inbounds %class.b2WheelJoint, ptr %8, i32 0, i32 28
  invoke void @_ZN6b2Vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %22)
          to label %23 unwind label %90

23:                                               ; preds = %21
  %24 = getelementptr inbounds %class.b2WheelJoint, ptr %8, i32 0, i32 29
  invoke void @_ZN6b2Vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %24)
          to label %25 unwind label %90

25:                                               ; preds = %23
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.b2WheelJointDef, ptr %26, i32 0, i32 1
  %28 = getelementptr inbounds %class.b2WheelJoint, ptr %8, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %28, ptr align 4 %27, i64 8, i1 false), !tbaa.struct !11
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.b2WheelJointDef, ptr %29, i32 0, i32 2
  %31 = getelementptr inbounds %class.b2WheelJoint, ptr %8, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %31, ptr align 4 %30, i64 8, i1 false), !tbaa.struct !11
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.b2WheelJointDef, ptr %32, i32 0, i32 3
  %34 = getelementptr inbounds %class.b2WheelJoint, ptr %8, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %34, ptr align 4 %33, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %35 = getelementptr inbounds %class.b2WheelJoint, ptr %8, i32 0, i32 3
  %36 = invoke <2 x float> @_Z7b2CrossfRK6b2Vec2(float noundef 1.000000e+00, ptr noundef nonnull align 4 dereferenceable(8) %35)
          to label %37 unwind label %94

37:                                               ; preds = %25
  store <2 x float> %36, ptr %7, align 4
  %38 = getelementptr inbounds %class.b2WheelJoint, ptr %8, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %38, ptr align 4 %7, i64 8, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  %39 = getelementptr inbounds %class.b2WheelJoint, ptr %8, i32 0, i32 34
  store float 0.000000e+00, ptr %39, align 4, !tbaa !14
  %40 = getelementptr inbounds %class.b2WheelJoint, ptr %8, i32 0, i32 5
  store float 0.000000e+00, ptr %40, align 8, !tbaa !24
  %41 = getelementptr inbounds %class.b2WheelJoint, ptr %8, i32 0, i32 35
  store float 0.000000e+00, ptr %41, align 8, !tbaa !25
  %42 = getelementptr inbounds %class.b2WheelJoint, ptr %8, i32 0, i32 6
  store float 0.000000e+00, ptr %42, align 4, !tbaa !26
  %43 = getelementptr inbounds %class.b2WheelJoint, ptr %8, i32 0, i32 37
  store float 0.000000e+00, ptr %43, align 8, !tbaa !27
  %44 = getelementptr inbounds %class.b2WheelJoint, ptr %8, i32 0, i32 7
  store float 0.000000e+00, ptr %44, align 8, !tbaa !28
  %45 = getelementptr inbounds %class.b2WheelJoint, ptr %8, i32 0, i32 36
  store float 0.000000e+00, ptr %45, align 4, !tbaa !29
  %46 = getelementptr inbounds %class.b2WheelJoint, ptr %8, i32 0, i32 8
  store float 0.000000e+00, ptr %46, align 4, !tbaa !30
  %47 = getelementptr inbounds %class.b2WheelJoint, ptr %8, i32 0, i32 9
  store float 0.000000e+00, ptr %47, align 8, !tbaa !31
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.b2WheelJointDef, ptr %48, i32 0, i32 5
  %50 = load float, ptr %49, align 8, !tbaa !32
  %51 = getelementptr inbounds %class.b2WheelJoint, ptr %8, i32 0, i32 11
  store float %50, ptr %51, align 8, !tbaa !35
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.b2WheelJointDef, ptr %52, i32 0, i32 6
  %54 = load float, ptr %53, align 4, !tbaa !36
  %55 = getelementptr inbounds %class.b2WheelJoint, ptr %8, i32 0, i32 12
  store float %54, ptr %55, align 4, !tbaa !37
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.b2WheelJointDef, ptr %56, i32 0, i32 4
  %58 = load i8, ptr %57, align 4, !tbaa !38, !range !39, !noundef !40
  %59 = trunc i8 %58 to i1
  %60 = getelementptr inbounds %class.b2WheelJoint, ptr %8, i32 0, i32 15
  %61 = zext i1 %59 to i8
  store i8 %61, ptr %60, align 8, !tbaa !41
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.b2WheelJointDef, ptr %62, i32 0, i32 8
  %64 = load float, ptr %63, align 4, !tbaa !42
  %65 = getelementptr inbounds %class.b2WheelJoint, ptr %8, i32 0, i32 13
  store float %64, ptr %65, align 8, !tbaa !43
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.b2WheelJointDef, ptr %66, i32 0, i32 9
  %68 = load float, ptr %67, align 8, !tbaa !44
  %69 = getelementptr inbounds %class.b2WheelJoint, ptr %8, i32 0, i32 14
  store float %68, ptr %69, align 4, !tbaa !45
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.b2WheelJointDef, ptr %70, i32 0, i32 7
  %72 = load i8, ptr %71, align 8, !tbaa !46, !range !39, !noundef !40
  %73 = trunc i8 %72 to i1
  %74 = getelementptr inbounds %class.b2WheelJoint, ptr %8, i32 0, i32 16
  %75 = zext i1 %73 to i8
  store i8 %75, ptr %74, align 1, !tbaa !47
  %76 = getelementptr inbounds %class.b2WheelJoint, ptr %8, i32 0, i32 38
  store float 0.000000e+00, ptr %76, align 4, !tbaa !48
  %77 = getelementptr inbounds %class.b2WheelJoint, ptr %8, i32 0, i32 39
  store float 0.000000e+00, ptr %77, align 8, !tbaa !49
  %78 = getelementptr inbounds %class.b2WheelJoint, ptr %8, i32 0, i32 28
  invoke void @_ZN6b2Vec27SetZeroEv(ptr noundef nonnull align 4 dereferenceable(8) %78)
          to label %79 unwind label %90

79:                                               ; preds = %37
  %80 = getelementptr inbounds %class.b2WheelJoint, ptr %8, i32 0, i32 29
  invoke void @_ZN6b2Vec27SetZeroEv(ptr noundef nonnull align 4 dereferenceable(8) %80)
          to label %81 unwind label %90

81:                                               ; preds = %79
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.b2WheelJointDef, ptr %82, i32 0, i32 10
  %84 = load float, ptr %83, align 4, !tbaa !50
  %85 = getelementptr inbounds %class.b2WheelJoint, ptr %8, i32 0, i32 18
  store float %84, ptr %85, align 4, !tbaa !51
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.b2WheelJointDef, ptr %86, i32 0, i32 11
  %88 = load float, ptr %87, align 8, !tbaa !52
  %89 = getelementptr inbounds %class.b2WheelJoint, ptr %8, i32 0, i32 19
  store float %88, ptr %89, align 8, !tbaa !53
  ret void

90:                                               ; preds = %79, %37, %23, %21, %19, %17, %15, %13, %11, %2
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %5, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %6, align 4
  br label %98

94:                                               ; preds = %25
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %5, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %98

98:                                               ; preds = %94, %90
  call void @_ZN7b2JointD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %8) #6
  br label %99

99:                                               ; preds = %98
  %100 = load ptr, ptr %5, align 8
  %101 = load i32, ptr %6, align 4
  %102 = insertvalue { ptr, i32 } poison, ptr %100, 0
  %103 = insertvalue { ptr, i32 } %102, i32 %101, 1
  resume { ptr, i32 } %103
}

declare void @_ZN7b2JointC2EPK10b2JointDef(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) unnamed_addr #3

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{i64 0, i64 4, !12, i64 4, i64 4, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!15, !13, i64 284}
!15 = !{!"_ZTS12b2WheelJoint", !16, i64 0, !23, i64 128, !23, i64 136, !23, i64 144, !23, i64 152, !13, i64 160, !13, i64 164, !13, i64 168, !13, i64 172, !13, i64 176, !13, i64 180, !13, i64 184, !13, i64 188, !13, i64 192, !13, i64 196, !20, i64 200, !20, i64 201, !13, i64 204, !13, i64 208, !19, i64 212, !19, i64 216, !23, i64 220, !23, i64 228, !13, i64 236, !13, i64 240, !13, i64 244, !13, i64 248, !23, i64 252, !23, i64 260, !13, i64 268, !13, i64 272, !13, i64 276, !13, i64 280, !13, i64 284, !13, i64 288, !13, i64 292, !13, i64 296, !13, i64 300, !13, i64 304}
!16 = !{!"_ZTS7b2Joint", !17, i64 8, !6, i64 16, !6, i64 24, !18, i64 32, !18, i64 64, !6, i64 96, !6, i64 104, !19, i64 112, !20, i64 116, !20, i64 117, !21, i64 120}
!17 = !{!"_ZTS11b2JointType", !7, i64 0}
!18 = !{!"_ZTS11b2JointEdge", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!19 = !{!"int", !7, i64 0}
!20 = !{!"bool", !7, i64 0}
!21 = !{!"_ZTS15b2JointUserData", !22, i64 0}
!22 = !{!"long", !7, i64 0}
!23 = !{!"_ZTS6b2Vec2", !13, i64 0, !13, i64 4}
!24 = !{!15, !13, i64 160}
!25 = !{!15, !13, i64 288}
!26 = !{!15, !13, i64 164}
!27 = !{!15, !13, i64 296}
!28 = !{!15, !13, i64 168}
!29 = !{!15, !13, i64 292}
!30 = !{!15, !13, i64 172}
!31 = !{!15, !13, i64 176}
!32 = !{!33, !13, i64 64}
!33 = !{!"_ZTS15b2WheelJointDef", !34, i64 0, !23, i64 36, !23, i64 44, !23, i64 52, !20, i64 60, !13, i64 64, !13, i64 68, !20, i64 72, !13, i64 76, !13, i64 80, !13, i64 84, !13, i64 88}
!34 = !{!"_ZTS10b2JointDef", !17, i64 0, !21, i64 8, !6, i64 16, !6, i64 24, !20, i64 32}
!35 = !{!15, !13, i64 184}
!36 = !{!33, !13, i64 68}
!37 = !{!15, !13, i64 188}
!38 = !{!33, !20, i64 60}
!39 = !{i8 0, i8 2}
!40 = !{}
!41 = !{!15, !20, i64 200}
!42 = !{!33, !13, i64 76}
!43 = !{!15, !13, i64 192}
!44 = !{!33, !13, i64 80}
!45 = !{!15, !13, i64 196}
!46 = !{!33, !20, i64 72}
!47 = !{!15, !20, i64 201}
!48 = !{!15, !13, i64 300}
!49 = !{!15, !13, i64 304}
!50 = !{!33, !13, i64 84}
!51 = !{!15, !13, i64 204}
!52 = !{!33, !13, i64 88}
!53 = !{!15, !13, i64 208}


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

@_ZTV12b2WheelJoint = external dso_local unnamed_addr constant { [14 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12b2WheelJointC2EPK15b2WheelJointDef(ptr noundef nonnull align 8 dereferenceable(308) %0, ptr noundef %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZN7b2JointC2EPK10b2JointDef(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef %1)
  store ptr getelementptr inbounds inrange(-16, 96) (i8, ptr @_ZTV12b2WheelJoint, i64 16), ptr %0, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 128
  tail call void @_ZN6b2Vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %3)
  %4 = getelementptr inbounds i8, ptr %0, i64 136
  tail call void @_ZN6b2Vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %4)
  %5 = getelementptr inbounds i8, ptr %0, i64 144
  tail call void @_ZN6b2Vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %5)
  %6 = getelementptr inbounds i8, ptr %0, i64 152
  tail call void @_ZN6b2Vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %6)
  %7 = getelementptr inbounds i8, ptr %0, i64 220
  tail call void @_ZN6b2Vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %7)
  %8 = getelementptr inbounds i8, ptr %0, i64 228
  tail call void @_ZN6b2Vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %8)
  %9 = getelementptr inbounds i8, ptr %0, i64 252
  tail call void @_ZN6b2Vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %9)
  %10 = getelementptr inbounds i8, ptr %0, i64 260
  tail call void @_ZN6b2Vec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %10)
  %11 = getelementptr inbounds i8, ptr %1, i64 36
  %12 = load i64, ptr %11, align 4
  store i64 %12, ptr %3, align 8
  %13 = getelementptr inbounds i8, ptr %1, i64 44
  %14 = load i64, ptr %13, align 4
  store i64 %14, ptr %4, align 8
  %15 = getelementptr inbounds i8, ptr %1, i64 52
  %16 = load i64, ptr %15, align 4
  store i64 %16, ptr %5, align 8
  %17 = invoke <2 x float> @_Z7b2CrossfRK6b2Vec2(float noundef 1.000000e+00, ptr noundef nonnull align 4 dereferenceable(8) %5)
          to label %18 unwind label %37

18:                                               ; preds = %2
  store <2 x float> %17, ptr %6, align 8
  %19 = getelementptr inbounds i8, ptr %0, i64 284
  %20 = getelementptr inbounds i8, ptr %0, i64 160
  %21 = getelementptr inbounds i8, ptr %1, i64 64
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %20, i8 0, i64 20, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %19, i8 0, i64 16, i1 false)
  %22 = getelementptr inbounds i8, ptr %0, i64 184
  %23 = load <2 x float>, ptr %21, align 8, !tbaa !8
  %24 = getelementptr inbounds i8, ptr %1, i64 60
  %25 = load i8, ptr %24, align 4, !tbaa !11, !range !20, !noundef !21
  %26 = getelementptr inbounds i8, ptr %0, i64 200
  store i8 %25, ptr %26, align 8, !tbaa !22
  %27 = getelementptr inbounds i8, ptr %1, i64 76
  %28 = load <2 x float>, ptr %27, align 4, !tbaa !8
  %29 = shufflevector <2 x float> %23, <2 x float> %28, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
  store <4 x float> %29, ptr %22, align 8, !tbaa !8
  %30 = getelementptr inbounds i8, ptr %1, i64 72
  %31 = load i8, ptr %30, align 8, !tbaa !27, !range !20, !noundef !21
  %32 = getelementptr inbounds i8, ptr %0, i64 201
  store i8 %31, ptr %32, align 1, !tbaa !28
  %33 = getelementptr inbounds i8, ptr %0, i64 300
  store <2 x float> zeroinitializer, ptr %33, align 4, !tbaa !8
  tail call void @_ZN6b2Vec27SetZeroEv(ptr noundef nonnull align 4 dereferenceable(8) %9)
  tail call void @_ZN6b2Vec27SetZeroEv(ptr noundef nonnull align 4 dereferenceable(8) %10)
  %34 = getelementptr inbounds i8, ptr %1, i64 84
  %35 = getelementptr inbounds i8, ptr %0, i64 204
  %36 = load <2 x float>, ptr %34, align 4, !tbaa !8
  store <2 x float> %36, ptr %35, align 4, !tbaa !8
  ret void

37:                                               ; preds = %2
  %38 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN7b2JointD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %0) #5
  resume { ptr, i32 } %38
}

declare void @_ZN7b2JointC2EPK10b2JointDef(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) unnamed_addr #1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6b2Vec27SetZeroEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7b2JointD2Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #2 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"float", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !18, i64 60}
!12 = !{!"_ZTS15b2WheelJointDef", !13, i64 0, !19, i64 36, !19, i64 44, !19, i64 52, !18, i64 60, !9, i64 64, !9, i64 68, !18, i64 72, !9, i64 76, !9, i64 80, !9, i64 84, !9, i64 88}
!13 = !{!"_ZTS10b2JointDef", !14, i64 0, !15, i64 8, !17, i64 16, !17, i64 24, !18, i64 32}
!14 = !{!"_ZTS11b2JointType", !10, i64 0}
!15 = !{!"_ZTS15b2JointUserData", !16, i64 0}
!16 = !{!"long", !10, i64 0}
!17 = !{!"any pointer", !10, i64 0}
!18 = !{!"bool", !10, i64 0}
!19 = !{!"_ZTS6b2Vec2", !9, i64 0, !9, i64 4}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!23, !18, i64 200}
!23 = !{!"_ZTS12b2WheelJoint", !24, i64 0, !19, i64 128, !19, i64 136, !19, i64 144, !19, i64 152, !9, i64 160, !9, i64 164, !9, i64 168, !9, i64 172, !9, i64 176, !9, i64 180, !9, i64 184, !9, i64 188, !9, i64 192, !9, i64 196, !18, i64 200, !18, i64 201, !9, i64 204, !9, i64 208, !26, i64 212, !26, i64 216, !19, i64 220, !19, i64 228, !9, i64 236, !9, i64 240, !9, i64 244, !9, i64 248, !19, i64 252, !19, i64 260, !9, i64 268, !9, i64 272, !9, i64 276, !9, i64 280, !9, i64 284, !9, i64 288, !9, i64 292, !9, i64 296, !9, i64 300, !9, i64 304}
!24 = !{!"_ZTS7b2Joint", !14, i64 8, !17, i64 16, !17, i64 24, !25, i64 32, !25, i64 64, !17, i64 96, !17, i64 104, !26, i64 112, !18, i64 116, !18, i64 117, !15, i64 120}
!25 = !{!"_ZTS11b2JointEdge", !17, i64 0, !17, i64 8, !17, i64 16, !17, i64 24}
!26 = !{!"int", !10, i64 0}
!27 = !{!12, !18, i64 72}
!28 = !{!23, !18, i64 201}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass