; LLVM IR from erincatto/box2d :: src (joint)

; 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.b2JointId = type { i32, i16, i16 }
%struct.b2WorldId = type { i16, i16 }
%struct.b2JointPair = type { ptr, ptr }
%struct.b2WheelJoint = type { %struct.b2Vec2, float, float, float, float, float, float, float, float, float, float, float, i32, i32, %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, float, float, float, %struct.b2Softness, i8, i8, i8 }
%struct.b2Vec2 = type { float, float }
%struct.b2Softness = type { float, float, float }
%struct.b2WheelJointDef = type { %struct.b2BodyId, %struct.b2BodyId, %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, i8, float, float, i8, float, float, i8, float, float, i8, ptr, i32 }
%struct.b2BodyId = type { i32, i16, i16 }
%struct.b2World = type { %struct.b2ArenaAllocator, %struct.b2BroadPhase, %struct.b2ConstraintGraph, %struct.b2IdPool, %struct.b2BodyArray, %struct.b2IdPool, %struct.b2SolverSetArray, %struct.b2IdPool, %struct.b2JointArray, %struct.b2IdPool, %struct.b2ContactArray, %struct.b2IdPool, %struct.b2IslandArray, %struct.b2IdPool, %struct.b2IdPool, %struct.b2ShapeArray, %struct.b2ChainShapeArray, %struct.b2SensorArray, %struct.b2TaskContextArray, %struct.b2SensorTaskContextArray, %struct.b2BodyMoveEventArray, %struct.b2SensorBeginTouchEventArray, %struct.b2ContactBeginTouchEventArray, [2 x %struct.b2SensorEndTouchEventArray], [2 x %struct.b2ContactEndTouchEventArray], i32, %struct.b2ContactHitEventArray, %struct.b2BitSet, %struct.b2BitSet, %struct.b2BitSet, %struct.b2BitSet, i64, i32, %struct.b2Vec2, float, float, float, float, float, float, float, float, ptr, ptr, i16, %struct.b2Profile, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, float, i32, i32, i16, i8, i8, i8, i8, i8, i8 }
%struct.b2ArenaAllocator = type { ptr, i32, i32, i32, i32, %struct.b2ArenaEntryArray }
%struct.b2ArenaEntryArray = type { ptr, i32, i32 }
%struct.b2BroadPhase = type { [3 x %struct.b2DynamicTree], i32, %struct.b2HashSet, %struct.b2IntArray, ptr, ptr, i32, %struct.b2AtomicInt, %struct.b2HashSet }
%struct.b2DynamicTree = type { ptr, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, i32 }
%struct.b2IntArray = type { ptr, i32, i32 }
%struct.b2AtomicInt = type { i32 }
%struct.b2HashSet = type { ptr, i32, i32 }
%struct.b2ConstraintGraph = type { [12 x %struct.b2GraphColor] }
%struct.b2GraphColor = type { %struct.b2BitSet, %struct.b2ContactSimArray, %struct.b2JointSimArray, %union.anon }
%struct.b2ContactSimArray = type { ptr, i32, i32 }
%struct.b2JointSimArray = type { ptr, i32, i32 }
%union.anon = type { ptr }
%struct.b2BodyArray = type { ptr, i32, i32 }
%struct.b2SolverSetArray = type { ptr, i32, i32 }
%struct.b2JointArray = type { ptr, i32, i32 }
%struct.b2ContactArray = type { ptr, i32, i32 }
%struct.b2IslandArray = type { ptr, i32, i32 }
%struct.b2IdPool = type { %struct.b2IntArray, i32 }
%struct.b2ShapeArray = type { ptr, i32, i32 }
%struct.b2ChainShapeArray = type { ptr, i32, i32 }
%struct.b2SensorArray = type { ptr, i32, i32 }
%struct.b2TaskContextArray = type { ptr, i32, i32 }
%struct.b2SensorTaskContextArray = type { ptr, i32, i32 }
%struct.b2BodyMoveEventArray = type { ptr, i32, i32 }
%struct.b2SensorBeginTouchEventArray = type { ptr, i32, i32 }
%struct.b2ContactBeginTouchEventArray = type { ptr, i32, i32 }
%struct.b2SensorEndTouchEventArray = type { ptr, i32, i32 }
%struct.b2ContactEndTouchEventArray = type { ptr, i32, i32 }
%struct.b2ContactHitEventArray = type { ptr, i32, i32 }
%struct.b2BitSet = type { ptr, i32, i32 }
%struct.b2Profile = type { float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float }
%struct.b2JointSim = type { i32, i32, i32, i32, %struct.b2Vec2, %struct.b2Vec2, float, float, float, float, %union.anon.0 }
%union.anon.0 = type { %struct.b2PrismaticJoint }
%struct.b2PrismaticJoint = type { %struct.b2Vec2, %struct.b2Vec2, float, float, float, float, float, float, float, float, float, float, float, i32, i32, %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, float, float, %struct.b2Softness, i8, i8, i8 }
%struct.b2Joint = type { ptr, i32, i32, i32, [2 x %struct.b2JointEdge], i32, i32, i32, i32, float, i32, i16, i8, i8 }
%struct.b2JointEdge = type { i32, i32, i32 }

@.str.1 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [47 x i8], align 1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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.start.p0(i64 immarg, ptr nocapture) #2

declare i32 @b2InternalAssertFcn(ptr noundef, ptr noundef, i32 noundef) #3

; Function Attrs: cold noreturn nounwind memory(inaccessiblemem: write)
declare void @llvm.trap() #4

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

declare ptr @b2GetWorldFromId(i32) #3

declare ptr @b2GetBodyFullId(ptr noundef, i64) #3

; Function Attrs: nounwind uwtable
declare hidden { ptr, ptr } @b2CreateJoint(ptr noundef, ptr noundef, ptr noundef, ptr noundef, float noundef, i32 noundef, i1 noundef zeroext) #5

; Function Attrs: nounwind uwtable
declare hidden void @b2DestroyContactsBetweenBodies(ptr noundef, ptr noundef, ptr noundef) #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2Normalize(<2 x float>) #6

; Function Attrs: nounwind uwtable
define dso_local i64 @b2CreateWheelJoint(i32 %0, ptr noundef %1) #7 {
  %3 = alloca %struct.b2JointId, align 4
  %4 = alloca %struct.b2WorldId, align 2
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %struct.b2JointPair, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %struct.b2WheelJoint, align 4
  %13 = alloca %struct.b2Vec2, align 4
  store i32 %0, ptr %4, align 2
  store ptr %1, ptr %5, align 8, !tbaa !5
  br label %14

14:                                               ; preds = %2
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.b2WheelJointDef, ptr %15, i32 0, i32 16
  %17 = load i32, ptr %16, align 8, !tbaa !9
  %18 = icmp eq i32 %17, 1152023
  br i1 %18, label %23, label %19

19:                                               ; preds = %14
  %20 = call i32 @b2InternalAssertFcn(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 655)
  %21 = icmp ne i32 %20, 0
  br i1 %21, label %22, label %23

22:                                               ; preds = %19
  call void @llvm.trap()
  br label %23

23:                                               ; preds = %22, %19, %14
  br label %24

24:                                               ; preds = %23
  br label %25

25:                                               ; preds = %24
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.b2WheelJointDef, ptr %26, i32 0, i32 9
  %28 = load float, ptr %27, align 8, !tbaa !17
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.b2WheelJointDef, ptr %29, i32 0, i32 10
  %31 = load float, ptr %30, align 4, !tbaa !18
  %32 = fcmp ole float %28, %31
  br i1 %32, label %37, label %33

33:                                               ; preds = %25
  %34 = call i32 @b2InternalAssertFcn(ptr noundef @.str.13, ptr noundef @.str.1, i32 noundef 656)
  %35 = icmp ne i32 %34, 0
  br i1 %35, label %36, label %37

36:                                               ; preds = %33
  call void @llvm.trap()
  br label %37

37:                                               ; preds = %36, %33, %25
  br label %38

38:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %39 = load i32, ptr %4, align 2
  %40 = call ptr @b2GetWorldFromId(i32 %39)
  store ptr %40, ptr %6, align 8, !tbaa !5
  br label %41

41:                                               ; preds = %38
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.b2World, ptr %42, i32 0, i32 61
  %44 = load i8, ptr %43, align 1, !tbaa !19, !range !31, !noundef !32
  %45 = trunc i8 %44 to i1
  %46 = zext i1 %45 to i32
  %47 = icmp eq i32 %46, 0
  br i1 %47, label %52, label %48

48:                                               ; preds = %41
  %49 = call i32 @b2InternalAssertFcn(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 660)
  %50 = icmp ne i32 %49, 0
  br i1 %50, label %51, label %52

51:                                               ; preds = %48
  call void @llvm.trap()
  br label %52

52:                                               ; preds = %51, %48, %41
  br label %53

53:                                               ; preds = %52
  br label %54

54:                                               ; preds = %53
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.b2World, ptr %55, i32 0, i32 61
  %57 = load i8, ptr %56, align 1, !tbaa !19, !range !31, !noundef !32
  %58 = trunc i8 %57 to i1
  br i1 %58, label %59, label %63

59:                                               ; preds = %54
  %60 = getelementptr inbounds %struct.b2JointId, ptr %3, i32 0, i32 0
  store i32 0, ptr %60, align 4, !tbaa !33
  %61 = getelementptr inbounds %struct.b2JointId, ptr %3, i32 0, i32 1
  store i16 0, ptr %61, align 4, !tbaa !35
  %62 = getelementptr inbounds %struct.b2JointId, ptr %3, i32 0, i32 2
  store i16 0, ptr %62, align 2, !tbaa !36
  store i32 1, ptr %7, align 4
  br label %237

63:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.b2WheelJointDef, ptr %65, i32 0, i32 0
  %67 = load i64, ptr %66, align 8
  %68 = call ptr @b2GetBodyFullId(ptr noundef %64, i64 %67)
  store ptr %68, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.b2WheelJointDef, ptr %70, i32 0, i32 1
  %72 = load i64, ptr %71, align 8
  %73 = call ptr @b2GetBodyFullId(ptr noundef %69, i64 %72)
  store ptr %73, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #8
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.b2WheelJointDef, ptr %77, i32 0, i32 15
  %79 = load ptr, ptr %78, align 8, !tbaa !37
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.b2WheelJointDef, ptr %80, i32 0, i32 14
  %82 = load i8, ptr %81, align 4, !tbaa !38, !range !31, !noundef !32
  %83 = trunc i8 %82 to i1
  %84 = call { ptr, ptr } @b2CreateJoint(ptr noundef %74, ptr noundef %75, ptr noundef %76, ptr noundef %79, float noundef 1.000000e+00, i32 noundef 7, i1 noundef zeroext %83)
  %85 = getelementptr inbounds { ptr, ptr }, ptr %10, i32 0, i32 0
  %86 = extractvalue { ptr, ptr } %84, 0
  store ptr %86, ptr %85, align 8
  %87 = getelementptr inbounds { ptr, ptr }, ptr %10, i32 0, i32 1
  %88 = extractvalue { ptr, ptr } %84, 1
  store ptr %88, ptr %87, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %89 = getelementptr inbounds %struct.b2JointPair, ptr %10, i32 0, i32 1
  %90 = load ptr, ptr %89, align 8, !tbaa !39
  store ptr %90, ptr %11, align 8, !tbaa !5
  %91 = load ptr, ptr %11, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.b2JointSim, ptr %91, i32 0, i32 3
  store i32 7, ptr %92, align 4, !tbaa !41
  %93 = load ptr, ptr %11, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.b2JointSim, ptr %93, i32 0, i32 4
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.b2WheelJointDef, ptr %95, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %94, ptr align 8 %96, i64 8, i1 false), !tbaa.struct !43
  %97 = load ptr, ptr %11, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.b2JointSim, ptr %97, i32 0, i32 5
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.b2WheelJointDef, ptr %99, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %98, ptr align 8 %100, i64 8, i1 false), !tbaa.struct !43
  %101 = load ptr, ptr %11, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.b2JointSim, ptr %101, i32 0, i32 10
  call void @llvm.memset.p0.i64(ptr align 4 %12, i8 0, i64 120, i1 false)
  %103 = getelementptr inbounds %struct.b2WheelJoint, ptr %12, i32 0, i32 0
  %104 = getelementptr inbounds %struct.b2Vec2, ptr %103, i32 0, i32 0
  %105 = getelementptr inbounds %struct.b2Vec2, ptr %103, i32 0, i32 1
  %106 = getelementptr inbounds %struct.b2WheelJoint, ptr %12, i32 0, i32 1
  %107 = getelementptr inbounds %struct.b2WheelJoint, ptr %12, i32 0, i32 2
  %108 = getelementptr inbounds %struct.b2WheelJoint, ptr %12, i32 0, i32 3
  %109 = getelementptr inbounds %struct.b2WheelJoint, ptr %12, i32 0, i32 4
  %110 = getelementptr inbounds %struct.b2WheelJoint, ptr %12, i32 0, i32 5
  %111 = getelementptr inbounds %struct.b2WheelJoint, ptr %12, i32 0, i32 6
  %112 = getelementptr inbounds %struct.b2WheelJoint, ptr %12, i32 0, i32 7
  %113 = getelementptr inbounds %struct.b2WheelJoint, ptr %12, i32 0, i32 8
  %114 = getelementptr inbounds %struct.b2WheelJoint, ptr %12, i32 0, i32 9
  %115 = getelementptr inbounds %struct.b2WheelJoint, ptr %12, i32 0, i32 10
  %116 = getelementptr inbounds %struct.b2WheelJoint, ptr %12, i32 0, i32 11
  %117 = getelementptr inbounds %struct.b2WheelJoint, ptr %12, i32 0, i32 12
  %118 = getelementptr inbounds %struct.b2WheelJoint, ptr %12, i32 0, i32 13
  %119 = getelementptr inbounds %struct.b2WheelJoint, ptr %12, i32 0, i32 14
  %120 = getelementptr inbounds %struct.b2WheelJoint, ptr %12, i32 0, i32 15
  %121 = getelementptr inbounds %struct.b2WheelJoint, ptr %12, i32 0, i32 16
  %122 = getelementptr inbounds %struct.b2WheelJoint, ptr %12, i32 0, i32 17
  %123 = getelementptr inbounds %struct.b2WheelJoint, ptr %12, i32 0, i32 18
  %124 = getelementptr inbounds %struct.b2WheelJoint, ptr %12, i32 0, i32 19
  %125 = getelementptr inbounds %struct.b2WheelJoint, ptr %12, i32 0, i32 20
  %126 = getelementptr inbounds %struct.b2WheelJoint, ptr %12, i32 0, i32 21
  %127 = getelementptr inbounds %struct.b2WheelJoint, ptr %12, i32 0, i32 22
  %128 = getelementptr inbounds %struct.b2WheelJoint, ptr %12, i32 0, i32 23
  %129 = getelementptr inbounds %struct.b2WheelJoint, ptr %12, i32 0, i32 24
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %102, ptr align 4 %12, i64 120, i1 false), !tbaa.struct !45
  %130 = load ptr, ptr %11, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.b2JointSim, ptr %130, i32 0, i32 10
  %132 = getelementptr inbounds %struct.b2WheelJoint, ptr %131, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.b2WheelJointDef, ptr %133, i32 0, i32 4
  %135 = load <2 x float>, ptr %134, align 8
  %136 = call <2 x float> @b2Normalize(<2 x float> %135)
  store <2 x float> %136, ptr %13, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %132, ptr align 4 %13, i64 8, i1 false), !tbaa.struct !43
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  %137 = load ptr, ptr %11, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.b2JointSim, ptr %137, i32 0, i32 10
  %139 = getelementptr inbounds %struct.b2WheelJoint, ptr %138, i32 0, i32 18
  store float 0.000000e+00, ptr %139, align 4, !tbaa !48
  %140 = load ptr, ptr %11, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.b2JointSim, ptr %140, i32 0, i32 10
  %142 = getelementptr inbounds %struct.b2WheelJoint, ptr %141, i32 0, i32 20
  store float 0.000000e+00, ptr %142, align 4, !tbaa !48
  %143 = load ptr, ptr %11, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.b2JointSim, ptr %143, i32 0, i32 10
  %145 = getelementptr inbounds %struct.b2WheelJoint, ptr %144, i32 0, i32 2
  store float 0.000000e+00, ptr %145, align 4, !tbaa !48
  %146 = load ptr, ptr %11, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.b2JointSim, ptr %146, i32 0, i32 10
  %148 = getelementptr inbounds %struct.b2WheelJoint, ptr %147, i32 0, i32 4
  store float 0.000000e+00, ptr %148, align 4, !tbaa !48
  %149 = load ptr, ptr %11, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.b2JointSim, ptr %149, i32 0, i32 10
  %151 = getelementptr inbounds %struct.b2WheelJoint, ptr %150, i32 0, i32 5
  store float 0.000000e+00, ptr %151, align 4, !tbaa !48
  %152 = load ptr, ptr %5, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.b2WheelJointDef, ptr %152, i32 0, i32 9
  %154 = load float, ptr %153, align 8, !tbaa !17
  %155 = load ptr, ptr %11, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.b2JointSim, ptr %155, i32 0, i32 10
  %157 = getelementptr inbounds %struct.b2WheelJoint, ptr %156, i32 0, i32 8
  store float %154, ptr %157, align 4, !tbaa !48
  %158 = load ptr, ptr %5, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.b2WheelJointDef, ptr %158, i32 0, i32 10
  %160 = load float, ptr %159, align 4, !tbaa !18
  %161 = load ptr, ptr %11, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.b2JointSim, ptr %161, i32 0, i32 10
  %163 = getelementptr inbounds %struct.b2WheelJoint, ptr %162, i32 0, i32 9
  store float %160, ptr %163, align 4, !tbaa !48
  %164 = load ptr, ptr %5, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.b2WheelJointDef, ptr %164, i32 0, i32 12
  %166 = load float, ptr %165, align 4, !tbaa !49
  %167 = load ptr, ptr %11, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.b2JointSim, ptr %167, i32 0, i32 10
  %169 = getelementptr inbounds %struct.b2WheelJoint, ptr %168, i32 0, i32 6
  store float %166, ptr %169, align 4, !tbaa !48
  %170 = load ptr, ptr %5, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.b2WheelJointDef, ptr %170, i32 0, i32 13
  %172 = load float, ptr %171, align 8, !tbaa !50
  %173 = load ptr, ptr %11, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.b2JointSim, ptr %173, i32 0, i32 10
  %175 = getelementptr inbounds %struct.b2WheelJoint, ptr %174, i32 0, i32 7
  store float %172, ptr %175, align 4, !tbaa !48
  %176 = load ptr, ptr %5, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.b2WheelJointDef, ptr %176, i32 0, i32 6
  %178 = load float, ptr %177, align 4, !tbaa !51
  %179 = load ptr, ptr %11, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.b2JointSim, ptr %179, i32 0, i32 10
  %181 = getelementptr inbounds %struct.b2WheelJoint, ptr %180, i32 0, i32 10
  store float %178, ptr %181, align 4, !tbaa !48
  %182 = load ptr, ptr %5, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.b2WheelJointDef, ptr %182, i32 0, i32 7
  %184 = load float, ptr %183, align 8, !tbaa !52
  %185 = load ptr, ptr %11, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.b2JointSim, ptr %185, i32 0, i32 10
  %187 = getelementptr inbounds %struct.b2WheelJoint, ptr %186, i32 0, i32 11
  store float %184, ptr %187, align 4, !tbaa !48
  %188 = load ptr, ptr %5, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.b2WheelJointDef, ptr %188, i32 0, i32 5
  %190 = load i8, ptr %189, align 8, !tbaa !53, !range !31, !noundef !32
  %191 = trunc i8 %190 to i1
  %192 = load ptr, ptr %11, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.b2JointSim, ptr %192, i32 0, i32 10
  %194 = getelementptr inbounds %struct.b2WheelJoint, ptr %193, i32 0, i32 22
  %195 = zext i1 %191 to i8
  store i8 %195, ptr %194, align 4, !tbaa !48
  %196 = load ptr, ptr %5, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.b2WheelJointDef, ptr %196, i32 0, i32 8
  %198 = load i8, ptr %197, align 4, !tbaa !54, !range !31, !noundef !32
  %199 = trunc i8 %198 to i1
  %200 = load ptr, ptr %11, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.b2JointSim, ptr %200, i32 0, i32 10
  %202 = getelementptr inbounds %struct.b2WheelJoint, ptr %201, i32 0, i32 24
  %203 = zext i1 %199 to i8
  store i8 %203, ptr %202, align 2, !tbaa !48
  %204 = load ptr, ptr %5, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.b2WheelJointDef, ptr %204, i32 0, i32 11
  %206 = load i8, ptr %205, align 8, !tbaa !55, !range !31, !noundef !32
  %207 = trunc i8 %206 to i1
  %208 = load ptr, ptr %11, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.b2JointSim, ptr %208, i32 0, i32 10
  %210 = getelementptr inbounds %struct.b2WheelJoint, ptr %209, i32 0, i32 23
  %211 = zext i1 %207 to i8
  store i8 %211, ptr %210, align 1, !tbaa !48
  %212 = load ptr, ptr %5, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.b2WheelJointDef, ptr %212, i32 0, i32 14
  %214 = load i8, ptr %213, align 4, !tbaa !38, !range !31, !noundef !32
  %215 = trunc i8 %214 to i1
  %216 = zext i1 %215 to i32
  %217 = icmp eq i32 %216, 0
  br i1 %217, label %218, label %222

218:                                              ; preds = %63
  %219 = load ptr, ptr %6, align 8, !tbaa !5
  %220 = load ptr, ptr %8, align 8, !tbaa !5
  %221 = load ptr, ptr %9, align 8, !tbaa !5
  call void @b2DestroyContactsBetweenBodies(ptr noundef %219, ptr noundef %220, ptr noundef %221)
  br label %222

222:                                              ; preds = %218, %63
  %223 = getelementptr inbounds %struct.b2JointId, ptr %3, i32 0, i32 0
  %224 = load ptr, ptr %11, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.b2JointSim, ptr %224, i32 0, i32 0
  %226 = load i32, ptr %225, align 4, !tbaa !56
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %223, align 4, !tbaa !33
  %228 = getelementptr inbounds %struct.b2JointId, ptr %3, i32 0, i32 1
  %229 = load ptr, ptr %6, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.b2World, ptr %229, i32 0, i32 59
  %231 = load i16, ptr %230, align 4, !tbaa !57
  store i16 %231, ptr %228, align 4, !tbaa !35
  %232 = getelementptr inbounds %struct.b2JointId, ptr %3, i32 0, i32 2
  %233 = getelementptr inbounds %struct.b2JointPair, ptr %10, i32 0, i32 0
  %234 = load ptr, ptr %233, align 8, !tbaa !58
  %235 = getelementptr inbounds %struct.b2Joint, ptr %234, i32 0, i32 11
  %236 = load i16, ptr %235, align 4, !tbaa !59
  store i16 %236, ptr %232, align 2, !tbaa !36
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %237

237:                                              ; preds = %222, %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  %238 = load i64, ptr %3, align 4
  ret i64 %238
}

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { cold noreturn nounwind memory(inaccessiblemem: write) }
attributes #5 = { 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 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 #7 = { 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 #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/C++ TBAA"}
!9 = !{!10, !12, i64 88}
!10 = !{!"b2WheelJointDef", !11, i64 0, !11, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !16, i64 40, !15, i64 44, !15, i64 48, !16, i64 52, !15, i64 56, !15, i64 60, !16, i64 64, !15, i64 68, !15, i64 72, !16, i64 76, !6, i64 80, !12, i64 88}
!11 = !{!"b2BodyId", !12, i64 0, !13, i64 4, !13, i64 6}
!12 = !{!"int", !7, i64 0}
!13 = !{!"short", !7, i64 0}
!14 = !{!"b2Vec2", !15, i64 0, !15, i64 4}
!15 = !{!"float", !7, i64 0}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{!10, !15, i64 56}
!18 = !{!10, !15, i64 60}
!19 = !{!20, !16, i64 1799}
!20 = !{!"b2World", !21, i64 0, !23, i64 40, !26, i64 336, !27, i64 1008, !22, i64 1032, !27, i64 1048, !22, i64 1072, !27, i64 1088, !22, i64 1112, !27, i64 1128, !22, i64 1152, !27, i64 1168, !22, i64 1192, !27, i64 1208, !27, i64 1232, !22, i64 1256, !22, i64 1272, !22, i64 1288, !22, i64 1304, !22, i64 1320, !22, i64 1336, !22, i64 1352, !22, i64 1368, !7, i64 1384, !7, i64 1416, !12, i64 1448, !22, i64 1456, !28, i64 1472, !28, i64 1488, !28, i64 1504, !28, i64 1520, !29, i64 1536, !12, i64 1544, !14, i64 1548, !15, i64 1556, !15, i64 1560, !15, i64 1564, !15, i64 1568, !15, i64 1572, !15, i64 1576, !15, i64 1580, !15, i64 1584, !6, i64 1592, !6, i64 1600, !13, i64 1608, !30, i64 1612, !6, i64 1704, !6, i64 1712, !6, i64 1720, !6, i64 1728, !12, i64 1736, !6, i64 1744, !6, i64 1752, !6, i64 1760, !6, i64 1768, !6, i64 1776, !15, i64 1784, !12, i64 1788, !12, i64 1792, !13, i64 1796, !16, i64 1798, !16, i64 1799, !16, i64 1800, !16, i64 1801, !16, i64 1802, !16, i64 1803}
!21 = !{!"b2ArenaAllocator", !6, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !22, i64 24}
!22 = !{!"", !6, i64 0, !12, i64 8, !12, i64 12}
!23 = !{!"b2BroadPhase", !7, i64 0, !12, i64 216, !24, i64 224, !22, i64 240, !6, i64 256, !6, i64 264, !12, i64 272, !25, i64 276, !24, i64 280}
!24 = !{!"b2HashSet", !6, i64 0, !12, i64 8, !12, i64 12}
!25 = !{!"b2AtomicInt", !12, i64 0}
!26 = !{!"b2ConstraintGraph", !7, i64 0}
!27 = !{!"b2IdPool", !22, i64 0, !12, i64 16}
!28 = !{!"b2BitSet", !6, i64 0, !12, i64 8, !12, i64 12}
!29 = !{!"long", !7, i64 0}
!30 = !{!"b2Profile", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20, !15, i64 24, !15, i64 28, !15, i64 32, !15, i64 36, !15, i64 40, !15, i64 44, !15, i64 48, !15, i64 52, !15, i64 56, !15, i64 60, !15, i64 64, !15, i64 68, !15, i64 72, !15, i64 76, !15, i64 80, !15, i64 84}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = !{!34, !12, i64 0}
!34 = !{!"b2JointId", !12, i64 0, !13, i64 4, !13, i64 6}
!35 = !{!34, !13, i64 4}
!36 = !{!34, !13, i64 6}
!37 = !{!10, !6, i64 80}
!38 = !{!10, !16, i64 76}
!39 = !{!40, !6, i64 8}
!40 = !{!"b2JointPair", !6, i64 0, !6, i64 8}
!41 = !{!42, !12, i64 12}
!42 = !{!"b2JointSim", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !14, i64 16, !14, i64 24, !15, i64 32, !15, i64 36, !15, i64 40, !15, i64 44, !7, i64 48}
!43 = !{i64 0, i64 4, !44, i64 4, i64 4, !44}
!44 = !{!15, !15, i64 0}
!45 = !{i64 0, i64 4, !44, i64 4, i64 4, !44, i64 8, i64 4, !44, i64 12, i64 4, !44, i64 16, i64 4, !44, i64 20, i64 4, !44, i64 24, i64 4, !44, i64 28, i64 4, !44, i64 32, i64 4, !44, i64 36, i64 4, !44, i64 40, i64 4, !44, i64 44, i64 4, !44, i64 48, i64 4, !44, i64 52, i64 4, !46, i64 56, i64 4, !46, i64 60, i64 4, !44, i64 64, i64 4, !44, i64 68, i64 4, !44, i64 72, i64 4, !44, i64 76, i64 4, !44, i64 80, i64 4, !44, i64 84, i64 4, !44, i64 88, i64 4, !44, i64 92, i64 4, !44, i64 96, i64 4, !44, i64 100, i64 4, !44, i64 104, i64 4, !44, i64 108, i64 4, !44, i64 112, i64 4, !44, i64 116, i64 1, !47, i64 117, i64 1, !47, i64 118, i64 1, !47}
!46 = !{!12, !12, i64 0}
!47 = !{!16, !16, i64 0}
!48 = !{!7, !7, i64 0}
!49 = !{!10, !15, i64 68}
!50 = !{!10, !15, i64 72}
!51 = !{!10, !15, i64 44}
!52 = !{!10, !15, i64 48}
!53 = !{!10, !16, i64 40}
!54 = !{!10, !16, i64 52}
!55 = !{!10, !16, i64 64}
!56 = !{!42, !12, i64 0}
!57 = !{!20, !13, i64 1796}
!58 = !{!40, !6, i64 0}
!59 = !{!60, !13, i64 68}
!60 = !{!"b2Joint", !6, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !7, i64 20, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !15, i64 60, !12, i64 64, !13, i64 68, !16, i64 70, !16, i64 71}


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

@.str.1 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [47 x i8], align 1

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

declare i32 @b2InternalAssertFcn(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: cold noreturn nounwind memory(inaccessiblemem: write)
declare void @llvm.trap() #2

declare ptr @b2GetWorldFromId(i32) local_unnamed_addr #1

declare ptr @b2GetBodyFullId(ptr noundef, i64) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden { ptr, ptr } @b2CreateJoint(ptr noundef, ptr noundef, ptr noundef, ptr noundef, float noundef, i32 noundef, i1 noundef zeroext) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden void @b2DestroyContactsBetweenBodies(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2Normalize(<2 x float>) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define dso_local i64 @b2CreateWheelJoint(i32 %0, ptr nocapture noundef readonly %1) local_unnamed_addr #5 {
  %3 = getelementptr inbounds i8, ptr %1, i64 88
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = icmp eq i32 %4, 1152023
  br i1 %5, label %9, label %6

6:                                                ; preds = %2
  %7 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 655) #6
  %.not = icmp eq i32 %7, 0
  br i1 %.not, label %9, label %8

8:                                                ; preds = %6
  tail call void @llvm.trap()
  unreachable

9:                                                ; preds = %6, %2
  %10 = getelementptr inbounds i8, ptr %1, i64 56
  %11 = load float, ptr %10, align 8, !tbaa !16
  %12 = getelementptr inbounds i8, ptr %1, i64 60
  %13 = load float, ptr %12, align 4, !tbaa !17
  %14 = fcmp ugt float %11, %13
  br i1 %14, label %15, label %18

15:                                               ; preds = %9
  %16 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.1, i32 noundef 656) #6
  %.not54 = icmp eq i32 %16, 0
  br i1 %.not54, label %18, label %17

17:                                               ; preds = %15
  tail call void @llvm.trap()
  unreachable

18:                                               ; preds = %9, %15
  %19 = tail call ptr @b2GetWorldFromId(i32 %0) #6
  %20 = getelementptr inbounds i8, ptr %19, i64 1799
  %21 = load i8, ptr %20, align 1, !tbaa !18, !range !30, !noundef !31
  %22 = icmp eq i8 %21, 0
  br i1 %22, label %.thread, label %23

23:                                               ; preds = %18
  %24 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 660) #6
  %.not55 = icmp eq i32 %24, 0
  br i1 %.not55, label %26, label %25

25:                                               ; preds = %23
  tail call void @llvm.trap()
  unreachable

26:                                               ; preds = %23
  %.pre = load i8, ptr %20, align 1, !tbaa !18, !range !30
  %27 = trunc nuw i8 %.pre to i1
  br i1 %27, label %98, label %.thread

.thread:                                          ; preds = %18, %26
  %28 = load i64, ptr %1, align 8
  %29 = tail call ptr @b2GetBodyFullId(ptr noundef nonnull %19, i64 %28) #6
  %30 = getelementptr inbounds i8, ptr %1, i64 8
  %31 = load i64, ptr %30, align 8
  %32 = tail call ptr @b2GetBodyFullId(ptr noundef nonnull %19, i64 %31) #6
  %33 = getelementptr inbounds i8, ptr %1, i64 80
  %34 = load ptr, ptr %33, align 8, !tbaa !32
  %35 = getelementptr inbounds i8, ptr %1, i64 76
  %36 = load i8, ptr %35, align 4, !tbaa !33, !range !30, !noundef !31
  %37 = trunc nuw i8 %36 to i1
  %38 = tail call { ptr, ptr } @b2CreateJoint(ptr noundef nonnull %19, ptr noundef %29, ptr noundef %32, ptr noundef %34, float noundef 1.000000e+00, i32 noundef 7, i1 noundef zeroext %37)
  %39 = extractvalue { ptr, ptr } %38, 0
  %40 = extractvalue { ptr, ptr } %38, 1
  %41 = getelementptr inbounds i8, ptr %40, i64 12
  store i32 7, ptr %41, align 4, !tbaa !34
  %42 = getelementptr inbounds i8, ptr %40, i64 16
  %43 = getelementptr inbounds i8, ptr %1, i64 16
  %44 = load i64, ptr %43, align 8
  store i64 %44, ptr %42, align 4
  %45 = getelementptr inbounds i8, ptr %40, i64 24
  %46 = getelementptr inbounds i8, ptr %1, i64 24
  %47 = load i64, ptr %46, align 8
  store i64 %47, ptr %45, align 4
  %48 = getelementptr inbounds i8, ptr %40, i64 48
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(120) %48, i8 0, i64 120, i1 false)
  %49 = getelementptr inbounds i8, ptr %1, i64 32
  %50 = load <2 x float>, ptr %49, align 8
  %51 = tail call <2 x float> @b2Normalize(<2 x float> %50)
  store <2 x float> %51, ptr %48, align 4
  %52 = getelementptr inbounds i8, ptr %40, i64 140
  store float 0.000000e+00, ptr %52, align 4, !tbaa !36
  %53 = getelementptr inbounds i8, ptr %40, i64 148
  store float 0.000000e+00, ptr %53, align 4, !tbaa !36
  %54 = getelementptr inbounds i8, ptr %40, i64 60
  store float 0.000000e+00, ptr %54, align 4, !tbaa !36
  %55 = getelementptr inbounds i8, ptr %40, i64 68
  store <2 x float> zeroinitializer, ptr %55, align 4, !tbaa !36
  %56 = load float, ptr %10, align 8, !tbaa !16
  %57 = getelementptr inbounds i8, ptr %40, i64 84
  store float %56, ptr %57, align 4, !tbaa !36
  %58 = load float, ptr %12, align 4, !tbaa !17
  %59 = getelementptr inbounds i8, ptr %40, i64 88
  store float %58, ptr %59, align 4, !tbaa !36
  %60 = getelementptr inbounds i8, ptr %1, i64 68
  %61 = load float, ptr %60, align 4, !tbaa !37
  %62 = getelementptr inbounds i8, ptr %40, i64 76
  store float %61, ptr %62, align 4, !tbaa !36
  %63 = getelementptr inbounds i8, ptr %1, i64 72
  %64 = load float, ptr %63, align 8, !tbaa !38
  %65 = getelementptr inbounds i8, ptr %40, i64 80
  store float %64, ptr %65, align 4, !tbaa !36
  %66 = getelementptr inbounds i8, ptr %1, i64 44
  %67 = load float, ptr %66, align 4, !tbaa !39
  %68 = getelementptr inbounds i8, ptr %40, i64 92
  store float %67, ptr %68, align 4, !tbaa !36
  %69 = getelementptr inbounds i8, ptr %1, i64 48
  %70 = load float, ptr %69, align 8, !tbaa !40
  %71 = getelementptr inbounds i8, ptr %40, i64 96
  store float %70, ptr %71, align 4, !tbaa !36
  %72 = getelementptr inbounds i8, ptr %1, i64 40
  %73 = load i8, ptr %72, align 8, !tbaa !41, !range !30, !noundef !31
  %74 = getelementptr inbounds i8, ptr %40, i64 164
  store i8 %73, ptr %74, align 4, !tbaa !36
  %75 = getelementptr inbounds i8, ptr %1, i64 52
  %76 = load i8, ptr %75, align 4, !tbaa !42, !range !30, !noundef !31
  %77 = getelementptr inbounds i8, ptr %40, i64 166
  store i8 %76, ptr %77, align 2, !tbaa !36
  %78 = getelementptr inbounds i8, ptr %1, i64 64
  %79 = load i8, ptr %78, align 8, !tbaa !43, !range !30, !noundef !31
  %80 = getelementptr inbounds i8, ptr %40, i64 165
  store i8 %79, ptr %80, align 1, !tbaa !36
  %81 = load i8, ptr %35, align 4, !tbaa !33, !range !30, !noundef !31
  %82 = icmp eq i8 %81, 0
  br i1 %82, label %83, label %84

83:                                               ; preds = %.thread
  tail call void @b2DestroyContactsBetweenBodies(ptr noundef nonnull %19, ptr noundef %29, ptr noundef %32)
  br label %84

84:                                               ; preds = %83, %.thread
  %85 = load i32, ptr %40, align 4, !tbaa !44
  %86 = add nsw i32 %85, 1
  %87 = getelementptr inbounds i8, ptr %19, i64 1796
  %88 = load i16, ptr %87, align 4, !tbaa !45
  %89 = getelementptr inbounds i8, ptr %39, i64 68
  %90 = load i16, ptr %89, align 4, !tbaa !46
  %91 = zext i16 %90 to i64
  %92 = shl nuw i64 %91, 48
  %93 = zext i16 %88 to i64
  %94 = shl nuw nsw i64 %93, 32
  %95 = zext i32 %86 to i64
  %96 = or disjoint i64 %94, %95
  %97 = or disjoint i64 %96, %92
  br label %98

98:                                               ; preds = %26, %84
  %.sroa.053.0.insert.insert = phi i64 [ %97, %84 ], [ 0, %26 ]
  ret i64 %.sroa.053.0.insert.insert
}

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { cold noreturn nounwind memory(inaccessiblemem: write) }
attributes #3 = { 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 #4 = { inlinehint 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 = { 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 #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, !8, i64 88}
!6 = !{!"b2WheelJointDef", !7, i64 0, !7, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !14, i64 40, !13, i64 44, !13, i64 48, !14, i64 52, !13, i64 56, !13, i64 60, !14, i64 64, !13, i64 68, !13, i64 72, !14, i64 76, !15, i64 80, !8, i64 88}
!7 = !{!"b2BodyId", !8, i64 0, !11, i64 4, !11, i64 6}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"short", !9, i64 0}
!12 = !{!"b2Vec2", !13, i64 0, !13, i64 4}
!13 = !{!"float", !9, i64 0}
!14 = !{!"_Bool", !9, i64 0}
!15 = !{!"any pointer", !9, i64 0}
!16 = !{!6, !13, i64 56}
!17 = !{!6, !13, i64 60}
!18 = !{!19, !14, i64 1799}
!19 = !{!"b2World", !20, i64 0, !22, i64 40, !25, i64 336, !26, i64 1008, !21, i64 1032, !26, i64 1048, !21, i64 1072, !26, i64 1088, !21, i64 1112, !26, i64 1128, !21, i64 1152, !26, i64 1168, !21, i64 1192, !26, i64 1208, !26, i64 1232, !21, i64 1256, !21, i64 1272, !21, i64 1288, !21, i64 1304, !21, i64 1320, !21, i64 1336, !21, i64 1352, !21, i64 1368, !9, i64 1384, !9, i64 1416, !8, i64 1448, !21, i64 1456, !27, i64 1472, !27, i64 1488, !27, i64 1504, !27, i64 1520, !28, i64 1536, !8, i64 1544, !12, i64 1548, !13, i64 1556, !13, i64 1560, !13, i64 1564, !13, i64 1568, !13, i64 1572, !13, i64 1576, !13, i64 1580, !13, i64 1584, !15, i64 1592, !15, i64 1600, !11, i64 1608, !29, i64 1612, !15, i64 1704, !15, i64 1712, !15, i64 1720, !15, i64 1728, !8, i64 1736, !15, i64 1744, !15, i64 1752, !15, i64 1760, !15, i64 1768, !15, i64 1776, !13, i64 1784, !8, i64 1788, !8, i64 1792, !11, i64 1796, !14, i64 1798, !14, i64 1799, !14, i64 1800, !14, i64 1801, !14, i64 1802, !14, i64 1803}
!20 = !{!"b2ArenaAllocator", !15, i64 0, !8, i64 8, !8, i64 12, !8, i64 16, !8, i64 20, !21, i64 24}
!21 = !{!"", !15, i64 0, !8, i64 8, !8, i64 12}
!22 = !{!"b2BroadPhase", !9, i64 0, !8, i64 216, !23, i64 224, !21, i64 240, !15, i64 256, !15, i64 264, !8, i64 272, !24, i64 276, !23, i64 280}
!23 = !{!"b2HashSet", !15, i64 0, !8, i64 8, !8, i64 12}
!24 = !{!"b2AtomicInt", !8, i64 0}
!25 = !{!"b2ConstraintGraph", !9, i64 0}
!26 = !{!"b2IdPool", !21, i64 0, !8, i64 16}
!27 = !{!"b2BitSet", !15, i64 0, !8, i64 8, !8, i64 12}
!28 = !{!"long", !9, i64 0}
!29 = !{!"b2Profile", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !13, i64 48, !13, i64 52, !13, i64 56, !13, i64 60, !13, i64 64, !13, i64 68, !13, i64 72, !13, i64 76, !13, i64 80, !13, i64 84}
!30 = !{i8 0, i8 2}
!31 = !{}
!32 = !{!6, !15, i64 80}
!33 = !{!6, !14, i64 76}
!34 = !{!35, !8, i64 12}
!35 = !{!"b2JointSim", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !12, i64 16, !12, i64 24, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !9, i64 48}
!36 = !{!9, !9, i64 0}
!37 = !{!6, !13, i64 68}
!38 = !{!6, !13, i64 72}
!39 = !{!6, !13, i64 44}
!40 = !{!6, !13, i64 48}
!41 = !{!6, !14, i64 40}
!42 = !{!6, !14, i64 52}
!43 = !{!6, !14, i64 64}
!44 = !{!35, !8, i64 0}
!45 = !{!19, !11, i64 1796}
!46 = !{!47, !11, i64 68}
!47 = !{!"b2Joint", !15, i64 0, !8, i64 8, !8, i64 12, !8, i64 16, !9, i64 20, !8, i64 44, !8, i64 48, !8, i64 52, !8, i64 56, !13, i64 60, !8, i64 64, !11, i64 68, !14, i64 70, !14, i64 71}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass