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

; 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.b2BodyId = type { i32, i16, i16 }
%struct.b2Transform = type { %struct.b2Vec2, %struct.b2Rot }
%struct.b2Vec2 = type { float, float }
%struct.b2Rot = type { float, float }
%struct.b2Body = type { [32 x i8], ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float, float, float, float, i32, i32, i32, i16, i8, i8, i8, i8 }
%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.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 }
%struct.b2Shape = type { i32, i32, i32, i32, i32, i32, float, float, float, float, float, i32, %struct.b2AABB, %struct.b2AABB, %struct.b2Vec2, i32, %struct.b2Filter, ptr, i32, %union.anon.0, i16, i8, i8, i8, i8, i8 }
%struct.b2AABB = type { %struct.b2Vec2, %struct.b2Vec2 }
%struct.b2Filter = type { i64, i64, i32 }
%union.anon.0 = type { %struct.b2Polygon }
%struct.b2Polygon = type { [8 x %struct.b2Vec2], [8 x %struct.b2Vec2], %struct.b2Vec2, float, i32 }
%struct.b2SolverSet = type { %struct.b2BodySimArray, %struct.b2BodyStateArray, %struct.b2JointSimArray, %struct.b2ContactSimArray, %struct.b2IslandSimArray, i32 }
%struct.b2BodySimArray = type { ptr, i32, i32 }
%struct.b2BodyStateArray = type { ptr, i32, i32 }
%struct.b2IslandSimArray = type { ptr, i32, i32 }
%struct.b2BodySim = type { %struct.b2Transform, %struct.b2Vec2, %struct.b2Rot, %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, float, float, float, float, float, float, float, float, i32, i8, i8, i8, i8, i8 }

@.str.1 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [51 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @b2GetBodyFullId(ptr noundef, i64) #0

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @b2BodyArray_Get(ptr noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, <2 x float> } @b2GetBodyTransformQuick(ptr noundef, ptr noundef) #0

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @b2SolverSetArray_Get(ptr noundef, i32 noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @b2BodySimArray_Get(ptr noundef, i32 noundef) #3

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

; Function Attrs: nounwind uwtable
declare hidden void @b2CreateIslandForBody(ptr noundef, i32 noundef, ptr noundef) #0

declare void @b2ValidateSolverSets(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @b2WakeBody(ptr noundef, ptr noundef) #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @b2JointArray_Get(ptr noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
declare hidden void @b2DestroyBodyContacts(ptr noundef, ptr noundef, i1 noundef zeroext) #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @b2ShapeArray_Get(ptr noundef, i32 noundef) #3

declare void @b2DestroyShapeProxy(ptr noundef, ptr noundef) #1

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

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

declare ptr @b2GetWorld(i32 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @b2Body_SetType(i64 %0, i32 noundef %1) #5 {
  %3 = alloca %struct.b2BodyId, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i8, align 1
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca %struct.b2Transform, align 4
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  %25 = alloca i8, align 1
  %26 = alloca i32, align 4
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca ptr, align 8
  %34 = alloca i32, align 4
  %35 = alloca ptr, align 8
  %36 = alloca %struct.b2Transform, align 4
  %37 = alloca i32, align 4
  %38 = alloca ptr, align 8
  %39 = alloca i8, align 1
  %40 = alloca %struct.b2Transform, align 4
  %41 = alloca i32, align 4
  %42 = alloca ptr, align 8
  %43 = alloca i32, align 4
  %44 = alloca i8, align 1
  %45 = alloca i32, align 4
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  %48 = alloca ptr, align 8
  %49 = alloca i32, align 4
  %50 = alloca i32, align 4
  %51 = alloca ptr, align 8
  store i64 %0, ptr %3, align 4
  store i32 %1, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %52 = getelementptr inbounds %struct.b2BodyId, ptr %3, i32 0, i32 1
  %53 = load i16, ptr %52, align 4, !tbaa !9
  %54 = zext i16 %53 to i32
  %55 = call ptr @b2GetWorld(i32 noundef %54)
  store ptr %55, ptr %5, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %56 = load ptr, ptr %5, align 8, !tbaa !12
  %57 = load i64, ptr %3, align 4
  %58 = call ptr @b2GetBodyFullId(ptr noundef %56, i64 %57)
  store ptr %58, ptr %6, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %59 = load ptr, ptr %6, align 8, !tbaa !12
  %60 = getelementptr inbounds %struct.b2Body, ptr %59, i32 0, i32 20
  %61 = load i32, ptr %60, align 8, !tbaa !14
  store i32 %61, ptr %7, align 4, !tbaa !5
  %62 = load i32, ptr %7, align 4, !tbaa !5
  %63 = load i32, ptr %4, align 4, !tbaa !5
  %64 = icmp eq i32 %62, %63
  br i1 %64, label %65, label %66

65:                                               ; preds = %2
  store i32 1, ptr %8, align 4
  br label %578

66:                                               ; preds = %2
  %67 = load ptr, ptr %6, align 8, !tbaa !12
  %68 = getelementptr inbounds %struct.b2Body, ptr %67, i32 0, i32 2
  %69 = load i32, ptr %68, align 8, !tbaa !18
  %70 = icmp eq i32 %69, 1
  br i1 %70, label %71, label %77

71:                                               ; preds = %66
  %72 = load i32, ptr %4, align 4, !tbaa !5
  %73 = load ptr, ptr %6, align 8, !tbaa !12
  %74 = getelementptr inbounds %struct.b2Body, ptr %73, i32 0, i32 20
  store i32 %72, ptr %74, align 8, !tbaa !14
  %75 = load ptr, ptr %5, align 8, !tbaa !12
  %76 = load ptr, ptr %6, align 8, !tbaa !12
  call void @b2UpdateBodyMassData(ptr noundef %75, ptr noundef %76)
  store i32 1, ptr %8, align 4
  br label %578

77:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #6
  store i8 0, ptr %9, align 1, !tbaa !19
  %78 = load ptr, ptr %5, align 8, !tbaa !12
  %79 = load ptr, ptr %6, align 8, !tbaa !12
  %80 = load i8, ptr %9, align 1, !tbaa !19, !range !20, !noundef !21
  %81 = trunc i8 %80 to i1
  call void @b2DestroyBodyContacts(ptr noundef %78, ptr noundef %79, i1 noundef zeroext %81)
  %82 = load ptr, ptr %5, align 8, !tbaa !12
  %83 = load ptr, ptr %6, align 8, !tbaa !12
  %84 = call zeroext i1 @b2WakeBody(ptr noundef %82, ptr noundef %83)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %85 = load ptr, ptr %6, align 8, !tbaa !12
  %86 = getelementptr inbounds %struct.b2Body, ptr %85, i32 0, i32 9
  %87 = load i32, ptr %86, align 4, !tbaa !22
  store i32 %87, ptr %10, align 4, !tbaa !5
  br label %88

88:                                               ; preds = %107, %77
  %89 = load i32, ptr %10, align 4, !tbaa !5
  %90 = icmp ne i32 %89, -1
  br i1 %90, label %91, label %137

91:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %92 = load i32, ptr %10, align 4, !tbaa !5
  %93 = ashr i32 %92, 1
  store i32 %93, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %94 = load i32, ptr %10, align 4, !tbaa !5
  %95 = and i32 %94, 1
  store i32 %95, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %96 = load ptr, ptr %5, align 8, !tbaa !12
  %97 = getelementptr inbounds %struct.b2World, ptr %96, i32 0, i32 8
  %98 = load i32, ptr %11, align 4, !tbaa !5
  %99 = call ptr @b2JointArray_Get(ptr noundef %97, i32 noundef %98)
  store ptr %99, ptr %13, align 8, !tbaa !12
  %100 = load ptr, ptr %13, align 8, !tbaa !12
  %101 = getelementptr inbounds %struct.b2Joint, ptr %100, i32 0, i32 6
  %102 = load i32, ptr %101, align 8, !tbaa !23
  %103 = icmp ne i32 %102, -1
  br i1 %103, label %104, label %107

104:                                              ; preds = %91
  %105 = load ptr, ptr %5, align 8, !tbaa !12
  %106 = load ptr, ptr %13, align 8, !tbaa !12
  call void @b2UnlinkJoint(ptr noundef %105, ptr noundef %106)
  br label %107

107:                                              ; preds = %104, %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %108 = load ptr, ptr %5, align 8, !tbaa !12
  %109 = getelementptr inbounds %struct.b2World, ptr %108, i32 0, i32 4
  %110 = load ptr, ptr %13, align 8, !tbaa !12
  %111 = getelementptr inbounds %struct.b2Joint, ptr %110, i32 0, i32 4
  %112 = getelementptr inbounds [2 x %struct.b2JointEdge], ptr %111, i64 0, i64 0
  %113 = getelementptr inbounds %struct.b2JointEdge, ptr %112, i32 0, i32 0
  %114 = load i32, ptr %113, align 4, !tbaa !25
  %115 = call ptr @b2BodyArray_Get(ptr noundef %109, i32 noundef %114)
  store ptr %115, ptr %14, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %116 = load ptr, ptr %5, align 8, !tbaa !12
  %117 = getelementptr inbounds %struct.b2World, ptr %116, i32 0, i32 4
  %118 = load ptr, ptr %13, align 8, !tbaa !12
  %119 = getelementptr inbounds %struct.b2Joint, ptr %118, i32 0, i32 4
  %120 = getelementptr inbounds [2 x %struct.b2JointEdge], ptr %119, i64 0, i64 1
  %121 = getelementptr inbounds %struct.b2JointEdge, ptr %120, i32 0, i32 0
  %122 = load i32, ptr %121, align 4, !tbaa !25
  %123 = call ptr @b2BodyArray_Get(ptr noundef %117, i32 noundef %122)
  store ptr %123, ptr %15, align 8, !tbaa !12
  %124 = load ptr, ptr %5, align 8, !tbaa !12
  %125 = load ptr, ptr %14, align 8, !tbaa !12
  %126 = call zeroext i1 @b2WakeBody(ptr noundef %124, ptr noundef %125)
  %127 = load ptr, ptr %5, align 8, !tbaa !12
  %128 = load ptr, ptr %15, align 8, !tbaa !12
  %129 = call zeroext i1 @b2WakeBody(ptr noundef %127, ptr noundef %128)
  %130 = load ptr, ptr %13, align 8, !tbaa !12
  %131 = getelementptr inbounds %struct.b2Joint, ptr %130, i32 0, i32 4
  %132 = load i32, ptr %12, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [2 x %struct.b2JointEdge], ptr %131, i64 0, i64 %133
  %135 = getelementptr inbounds %struct.b2JointEdge, ptr %134, i32 0, i32 2
  %136 = load i32, ptr %135, align 4, !tbaa !27
  store i32 %136, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %88, !llvm.loop !28

137:                                              ; preds = %88
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  %138 = load i32, ptr %4, align 4, !tbaa !5
  %139 = load ptr, ptr %6, align 8, !tbaa !12
  %140 = getelementptr inbounds %struct.b2Body, ptr %139, i32 0, i32 20
  store i32 %138, ptr %140, align 8, !tbaa !14
  %141 = load i32, ptr %7, align 4, !tbaa !5
  %142 = icmp eq i32 %141, 0
  br i1 %142, label %143, label %265

143:                                              ; preds = %137
  br label %144

144:                                              ; preds = %143
  %145 = load ptr, ptr %6, align 8, !tbaa !12
  %146 = getelementptr inbounds %struct.b2Body, ptr %145, i32 0, i32 2
  %147 = load i32, ptr %146, align 8, !tbaa !18
  %148 = icmp eq i32 %147, 0
  br i1 %148, label %153, label %149

149:                                              ; preds = %144
  %150 = call i32 @b2InternalAssertFcn(ptr noundef @.str.23, ptr noundef @.str.1, i32 noundef 1082)
  %151 = icmp ne i32 %150, 0
  br i1 %151, label %152, label %153

152:                                              ; preds = %149
  call void @llvm.trap()
  br label %153

153:                                              ; preds = %152, %149, %144
  br label %154

154:                                              ; preds = %153
  br label %155

155:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %156 = load ptr, ptr %5, align 8, !tbaa !12
  %157 = getelementptr inbounds %struct.b2World, ptr %156, i32 0, i32 6
  %158 = call ptr @b2SolverSetArray_Get(ptr noundef %157, i32 noundef 0)
  store ptr %158, ptr %16, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %159 = load ptr, ptr %5, align 8, !tbaa !12
  %160 = getelementptr inbounds %struct.b2World, ptr %159, i32 0, i32 6
  %161 = call ptr @b2SolverSetArray_Get(ptr noundef %160, i32 noundef 2)
  store ptr %161, ptr %17, align 8, !tbaa !12
  %162 = load ptr, ptr %5, align 8, !tbaa !12
  %163 = load ptr, ptr %17, align 8, !tbaa !12
  %164 = load ptr, ptr %16, align 8, !tbaa !12
  %165 = load ptr, ptr %6, align 8, !tbaa !12
  call void @b2TransferBody(ptr noundef %162, ptr noundef %163, ptr noundef %164, ptr noundef %165)
  %166 = load ptr, ptr %5, align 8, !tbaa !12
  %167 = load ptr, ptr %6, align 8, !tbaa !12
  call void @b2CreateIslandForBody(ptr noundef %166, i32 noundef 2, ptr noundef %167)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %168 = load ptr, ptr %6, align 8, !tbaa !12
  %169 = getelementptr inbounds %struct.b2Body, ptr %168, i32 0, i32 9
  %170 = load i32, ptr %169, align 4, !tbaa !22
  store i32 %170, ptr %18, align 4, !tbaa !5
  br label %171

171:                                              ; preds = %220, %155
  %172 = load i32, ptr %18, align 4, !tbaa !5
  %173 = icmp ne i32 %172, -1
  br i1 %173, label %174, label %228

174:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %175 = load i32, ptr %18, align 4, !tbaa !5
  %176 = ashr i32 %175, 1
  store i32 %176, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %177 = load i32, ptr %18, align 4, !tbaa !5
  %178 = and i32 %177, 1
  store i32 %178, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %179 = load ptr, ptr %5, align 8, !tbaa !12
  %180 = getelementptr inbounds %struct.b2World, ptr %179, i32 0, i32 8
  %181 = load i32, ptr %19, align 4, !tbaa !5
  %182 = call ptr @b2JointArray_Get(ptr noundef %180, i32 noundef %181)
  store ptr %182, ptr %21, align 8, !tbaa !12
  %183 = load ptr, ptr %21, align 8, !tbaa !12
  %184 = getelementptr inbounds %struct.b2Joint, ptr %183, i32 0, i32 1
  %185 = load i32, ptr %184, align 8, !tbaa !30
  %186 = icmp eq i32 %185, 0
  br i1 %186, label %187, label %192

187:                                              ; preds = %174
  %188 = load ptr, ptr %5, align 8, !tbaa !12
  %189 = load ptr, ptr %17, align 8, !tbaa !12
  %190 = load ptr, ptr %16, align 8, !tbaa !12
  %191 = load ptr, ptr %21, align 8, !tbaa !12
  call void @b2TransferJoint(ptr noundef %188, ptr noundef %189, ptr noundef %190, ptr noundef %191)
  br label %220

192:                                              ; preds = %174
  %193 = load ptr, ptr %21, align 8, !tbaa !12
  %194 = getelementptr inbounds %struct.b2Joint, ptr %193, i32 0, i32 1
  %195 = load i32, ptr %194, align 8, !tbaa !30
  %196 = icmp eq i32 %195, 2
  br i1 %196, label %197, label %206

197:                                              ; preds = %192
  %198 = load ptr, ptr %5, align 8, !tbaa !12
  %199 = load ptr, ptr %16, align 8, !tbaa !12
  %200 = load ptr, ptr %17, align 8, !tbaa !12
  %201 = load ptr, ptr %21, align 8, !tbaa !12
  call void @b2TransferJoint(ptr noundef %198, ptr noundef %199, ptr noundef %200, ptr noundef %201)
  %202 = load ptr, ptr %5, align 8, !tbaa !12
  %203 = load ptr, ptr %17, align 8, !tbaa !12
  %204 = load ptr, ptr %16, align 8, !tbaa !12
  %205 = load ptr, ptr %21, align 8, !tbaa !12
  call void @b2TransferJoint(ptr noundef %202, ptr noundef %203, ptr noundef %204, ptr noundef %205)
  br label %219

206:                                              ; preds = %192
  br label %207

207:                                              ; preds = %206
  %208 = load ptr, ptr %21, align 8, !tbaa !12
  %209 = getelementptr inbounds %struct.b2Joint, ptr %208, i32 0, i32 1
  %210 = load i32, ptr %209, align 8, !tbaa !30
  %211 = icmp eq i32 %210, 1
  br i1 %211, label %216, label %212

212:                                              ; preds = %207
  %213 = call i32 @b2InternalAssertFcn(ptr noundef @.str.24, ptr noundef @.str.1, i32 noundef 1121)
  %214 = icmp ne i32 %213, 0
  br i1 %214, label %215, label %216

215:                                              ; preds = %212
  call void @llvm.trap()
  br label %216

216:                                              ; preds = %215, %212, %207
  br label %217

217:                                              ; preds = %216
  br label %218

218:                                              ; preds = %217
  br label %219

219:                                              ; preds = %218, %197
  br label %220

220:                                              ; preds = %219, %187
  %221 = load ptr, ptr %21, align 8, !tbaa !12
  %222 = getelementptr inbounds %struct.b2Joint, ptr %221, i32 0, i32 4
  %223 = load i32, ptr %20, align 4, !tbaa !5
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds [2 x %struct.b2JointEdge], ptr %222, i64 0, i64 %224
  %226 = getelementptr inbounds %struct.b2JointEdge, ptr %225, i32 0, i32 2
  %227 = load i32, ptr %226, align 4, !tbaa !27
  store i32 %227, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %171, !llvm.loop !31

228:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  %229 = load ptr, ptr %5, align 8, !tbaa !12
  %230 = load ptr, ptr %6, align 8, !tbaa !12
  %231 = call { <2 x float>, <2 x float> } @b2GetBodyTransformQuick(ptr noundef %229, ptr noundef %230)
  %232 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %22, i32 0, i32 0
  %233 = extractvalue { <2 x float>, <2 x float> } %231, 0
  store <2 x float> %233, ptr %232, align 4
  %234 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %22, i32 0, i32 1
  %235 = extractvalue { <2 x float>, <2 x float> } %231, 1
  store <2 x float> %235, ptr %234, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %236 = load ptr, ptr %6, align 8, !tbaa !12
  %237 = getelementptr inbounds %struct.b2Body, ptr %236, i32 0, i32 6
  %238 = load i32, ptr %237, align 8, !tbaa !32
  store i32 %238, ptr %23, align 4, !tbaa !5
  br label %239

239:                                              ; preds = %242, %228
  %240 = load i32, ptr %23, align 4, !tbaa !5
  %241 = icmp ne i32 %240, -1
  br i1 %241, label %242, label %264

242:                                              ; preds = %239
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %243 = load ptr, ptr %5, align 8, !tbaa !12
  %244 = getelementptr inbounds %struct.b2World, ptr %243, i32 0, i32 15
  %245 = load i32, ptr %23, align 4, !tbaa !5
  %246 = call ptr @b2ShapeArray_Get(ptr noundef %244, i32 noundef %245)
  store ptr %246, ptr %24, align 8, !tbaa !12
  %247 = load ptr, ptr %24, align 8, !tbaa !12
  %248 = getelementptr inbounds %struct.b2Shape, ptr %247, i32 0, i32 3
  %249 = load i32, ptr %248, align 4, !tbaa !33
  store i32 %249, ptr %23, align 4, !tbaa !5
  %250 = load ptr, ptr %24, align 8, !tbaa !12
  %251 = load ptr, ptr %5, align 8, !tbaa !12
  %252 = getelementptr inbounds %struct.b2World, ptr %251, i32 0, i32 1
  call void @b2DestroyShapeProxy(ptr noundef %250, ptr noundef %252)
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #6
  store i8 1, ptr %25, align 1, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %253 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %253, ptr %26, align 4, !tbaa !5
  %254 = load ptr, ptr %24, align 8, !tbaa !12
  %255 = load ptr, ptr %5, align 8, !tbaa !12
  %256 = getelementptr inbounds %struct.b2World, ptr %255, i32 0, i32 1
  %257 = load i32, ptr %26, align 4, !tbaa !5
  %258 = load i8, ptr %25, align 1, !tbaa !19, !range !20, !noundef !21
  %259 = trunc i8 %258 to i1
  %260 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %22, i32 0, i32 0
  %261 = load <2 x float>, ptr %260, align 4
  %262 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %22, i32 0, i32 1
  %263 = load <2 x float>, ptr %262, align 4
  call void @b2CreateShapeProxy(ptr noundef %254, ptr noundef %256, i32 noundef %257, <2 x float> %261, <2 x float> %263, i1 noundef zeroext %259)
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %239, !llvm.loop !39

264:                                              ; preds = %239
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %515

265:                                              ; preds = %137
  %266 = load i32, ptr %4, align 4, !tbaa !5
  %267 = icmp eq i32 %266, 0
  br i1 %267, label %268, label %451

268:                                              ; preds = %265
  br label %269

269:                                              ; preds = %268
  %270 = load ptr, ptr %6, align 8, !tbaa !12
  %271 = getelementptr inbounds %struct.b2Body, ptr %270, i32 0, i32 2
  %272 = load i32, ptr %271, align 8, !tbaa !18
  %273 = icmp eq i32 %272, 2
  br i1 %273, label %278, label %274

274:                                              ; preds = %269
  %275 = call i32 @b2InternalAssertFcn(ptr noundef @.str.25, ptr noundef @.str.1, i32 noundef 1143)
  %276 = icmp ne i32 %275, 0
  br i1 %276, label %277, label %278

277:                                              ; preds = %274
  call void @llvm.trap()
  br label %278

278:                                              ; preds = %277, %274, %269
  br label %279

279:                                              ; preds = %278
  br label %280

280:                                              ; preds = %279
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %281 = load ptr, ptr %5, align 8, !tbaa !12
  %282 = getelementptr inbounds %struct.b2World, ptr %281, i32 0, i32 6
  %283 = call ptr @b2SolverSetArray_Get(ptr noundef %282, i32 noundef 0)
  store ptr %283, ptr %27, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %284 = load ptr, ptr %5, align 8, !tbaa !12
  %285 = getelementptr inbounds %struct.b2World, ptr %284, i32 0, i32 6
  %286 = call ptr @b2SolverSetArray_Get(ptr noundef %285, i32 noundef 2)
  store ptr %286, ptr %28, align 8, !tbaa !12
  %287 = load ptr, ptr %5, align 8, !tbaa !12
  %288 = load ptr, ptr %27, align 8, !tbaa !12
  %289 = load ptr, ptr %28, align 8, !tbaa !12
  %290 = load ptr, ptr %6, align 8, !tbaa !12
  call void @b2TransferBody(ptr noundef %287, ptr noundef %288, ptr noundef %289, ptr noundef %290)
  %291 = load ptr, ptr %5, align 8, !tbaa !12
  %292 = load ptr, ptr %6, align 8, !tbaa !12
  call void @b2RemoveBodyFromIsland(ptr noundef %291, ptr noundef %292)
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %293 = load ptr, ptr %27, align 8, !tbaa !12
  %294 = getelementptr inbounds %struct.b2SolverSet, ptr %293, i32 0, i32 0
  %295 = load ptr, ptr %6, align 8, !tbaa !12
  %296 = getelementptr inbounds %struct.b2Body, ptr %295, i32 0, i32 3
  %297 = load i32, ptr %296, align 4, !tbaa !40
  %298 = call ptr @b2BodySimArray_Get(ptr noundef %294, i32 noundef %297)
  store ptr %298, ptr %29, align 8, !tbaa !12
  %299 = load ptr, ptr %29, align 8, !tbaa !12
  %300 = getelementptr inbounds %struct.b2BodySim, ptr %299, i32 0, i32 15
  store i8 0, ptr %300, align 4, !tbaa !41
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %301 = load ptr, ptr %6, align 8, !tbaa !12
  %302 = getelementptr inbounds %struct.b2Body, ptr %301, i32 0, i32 9
  %303 = load i32, ptr %302, align 4, !tbaa !22
  store i32 %303, ptr %30, align 4, !tbaa !5
  br label %304

304:                                              ; preds = %415, %413, %280
  %305 = load i32, ptr %30, align 4, !tbaa !5
  %306 = icmp ne i32 %305, -1
  br i1 %306, label %307, label %416

307:                                              ; preds = %304
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  %308 = load i32, ptr %30, align 4, !tbaa !5
  %309 = ashr i32 %308, 1
  store i32 %309, ptr %31, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  %310 = load i32, ptr %30, align 4, !tbaa !5
  %311 = and i32 %310, 1
  store i32 %311, ptr %32, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  %312 = load ptr, ptr %5, align 8, !tbaa !12
  %313 = getelementptr inbounds %struct.b2World, ptr %312, i32 0, i32 8
  %314 = load i32, ptr %31, align 4, !tbaa !5
  %315 = call ptr @b2JointArray_Get(ptr noundef %313, i32 noundef %314)
  store ptr %315, ptr %33, align 8, !tbaa !12
  %316 = load ptr, ptr %33, align 8, !tbaa !12
  %317 = getelementptr inbounds %struct.b2Joint, ptr %316, i32 0, i32 4
  %318 = load i32, ptr %32, align 4, !tbaa !5
  %319 = sext i32 %318 to i64
  %320 = getelementptr inbounds [2 x %struct.b2JointEdge], ptr %317, i64 0, i64 %319
  %321 = getelementptr inbounds %struct.b2JointEdge, ptr %320, i32 0, i32 2
  %322 = load i32, ptr %321, align 4, !tbaa !27
  store i32 %322, ptr %30, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  %323 = load i32, ptr %32, align 4, !tbaa !5
  %324 = xor i32 %323, 1
  store i32 %324, ptr %34, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  %325 = load ptr, ptr %5, align 8, !tbaa !12
  %326 = getelementptr inbounds %struct.b2World, ptr %325, i32 0, i32 4
  %327 = load ptr, ptr %33, align 8, !tbaa !12
  %328 = getelementptr inbounds %struct.b2Joint, ptr %327, i32 0, i32 4
  %329 = load i32, ptr %34, align 4, !tbaa !5
  %330 = sext i32 %329 to i64
  %331 = getelementptr inbounds [2 x %struct.b2JointEdge], ptr %328, i64 0, i64 %330
  %332 = getelementptr inbounds %struct.b2JointEdge, ptr %331, i32 0, i32 0
  %333 = load i32, ptr %332, align 4, !tbaa !25
  %334 = call ptr @b2BodyArray_Get(ptr noundef %326, i32 noundef %333)
  store ptr %334, ptr %35, align 8, !tbaa !12
  %335 = load ptr, ptr %33, align 8, !tbaa !12
  %336 = getelementptr inbounds %struct.b2Joint, ptr %335, i32 0, i32 1
  %337 = load i32, ptr %336, align 8, !tbaa !30
  %338 = icmp eq i32 %337, 1
  br i1 %338, label %339, label %352

339:                                              ; preds = %307
  br label %340

340:                                              ; preds = %339
  %341 = load ptr, ptr %35, align 8, !tbaa !12
  %342 = getelementptr inbounds %struct.b2Body, ptr %341, i32 0, i32 2
  %343 = load i32, ptr %342, align 8, !tbaa !18
  %344 = icmp eq i32 %343, 1
  br i1 %344, label %349, label %345

345:                                              ; preds = %340
  %346 = call i32 @b2InternalAssertFcn(ptr noundef @.str.26, ptr noundef @.str.1, i32 noundef 1174)
  %347 = icmp ne i32 %346, 0
  br i1 %347, label %348, label %349

348:                                              ; preds = %345
  call void @llvm.trap()
  br label %349

349:                                              ; preds = %348, %345, %340
  br label %350

350:                                              ; preds = %349
  br label %351

351:                                              ; preds = %350
  store i32 14, ptr %8, align 4
  br label %413, !llvm.loop !45

352:                                              ; preds = %307
  br label %353

353:                                              ; preds = %352
  %354 = load ptr, ptr %33, align 8, !tbaa !12
  %355 = getelementptr inbounds %struct.b2Joint, ptr %354, i32 0, i32 1
  %356 = load i32, ptr %355, align 8, !tbaa !30
  %357 = icmp eq i32 %356, 2
  br i1 %357, label %362, label %358

358:                                              ; preds = %353
  %359 = call i32 @b2InternalAssertFcn(ptr noundef @.str.27, ptr noundef @.str.1, i32 noundef 1179)
  %360 = icmp ne i32 %359, 0
  br i1 %360, label %361, label %362

361:                                              ; preds = %358
  call void @llvm.trap()
  br label %362

362:                                              ; preds = %361, %358, %353
  br label %363

363:                                              ; preds = %362
  br label %364

364:                                              ; preds = %363
  %365 = load ptr, ptr %35, align 8, !tbaa !12
  %366 = getelementptr inbounds %struct.b2Body, ptr %365, i32 0, i32 2
  %367 = load i32, ptr %366, align 8, !tbaa !18
  %368 = icmp eq i32 %367, 0
  br i1 %368, label %369, label %374

369:                                              ; preds = %364
  %370 = load ptr, ptr %5, align 8, !tbaa !12
  %371 = load ptr, ptr %27, align 8, !tbaa !12
  %372 = load ptr, ptr %28, align 8, !tbaa !12
  %373 = load ptr, ptr %33, align 8, !tbaa !12
  call void @b2TransferJoint(ptr noundef %370, ptr noundef %371, ptr noundef %372, ptr noundef %373)
  br label %412

374:                                              ; preds = %364
  br label %375

375:                                              ; preds = %374
  %376 = load ptr, ptr %35, align 8, !tbaa !12
  %377 = getelementptr inbounds %struct.b2Body, ptr %376, i32 0, i32 2
  %378 = load i32, ptr %377, align 8, !tbaa !18
  %379 = icmp eq i32 %378, 2
  br i1 %379, label %384, label %380

380:                                              ; preds = %375
  %381 = call i32 @b2InternalAssertFcn(ptr noundef @.str.28, ptr noundef @.str.1, i32 noundef 1189)
  %382 = icmp ne i32 %381, 0
  br i1 %382, label %383, label %384

383:                                              ; preds = %380
  call void @llvm.trap()
  br label %384

384:                                              ; preds = %383, %380, %375
  br label %385

385:                                              ; preds = %384
  br label %386

386:                                              ; preds = %385
  br label %387

387:                                              ; preds = %386
  %388 = load ptr, ptr %33, align 8, !tbaa !12
  %389 = getelementptr inbounds %struct.b2Joint, ptr %388, i32 0, i32 2
  %390 = load i32, ptr %389, align 4, !tbaa !46
  %391 = icmp sle i32 0, %390
  br i1 %391, label %392, label %397

392:                                              ; preds = %387
  %393 = load ptr, ptr %33, align 8, !tbaa !12
  %394 = getelementptr inbounds %struct.b2Joint, ptr %393, i32 0, i32 2
  %395 = load i32, ptr %394, align 4, !tbaa !46
  %396 = icmp slt i32 %395, 12
  br i1 %396, label %401, label %397

397:                                              ; preds = %392, %387
  %398 = call i32 @b2InternalAssertFcn(ptr noundef @.str.29, ptr noundef @.str.1, i32 noundef 1192)
  %399 = icmp ne i32 %398, 0
  br i1 %399, label %400, label %401

400:                                              ; preds = %397
  call void @llvm.trap()
  br label %401

401:                                              ; preds = %400, %397, %392
  br label %402

402:                                              ; preds = %401
  br label %403

403:                                              ; preds = %402
  %404 = load ptr, ptr %5, align 8, !tbaa !12
  %405 = load ptr, ptr %27, align 8, !tbaa !12
  %406 = load ptr, ptr %28, align 8, !tbaa !12
  %407 = load ptr, ptr %33, align 8, !tbaa !12
  call void @b2TransferJoint(ptr noundef %404, ptr noundef %405, ptr noundef %406, ptr noundef %407)
  %408 = load ptr, ptr %5, align 8, !tbaa !12
  %409 = load ptr, ptr %28, align 8, !tbaa !12
  %410 = load ptr, ptr %27, align 8, !tbaa !12
  %411 = load ptr, ptr %33, align 8, !tbaa !12
  call void @b2TransferJoint(ptr noundef %408, ptr noundef %409, ptr noundef %410, ptr noundef %411)
  br label %412

412:                                              ; preds = %403, %369
  store i32 0, ptr %8, align 4
  br label %413

413:                                              ; preds = %412, %351
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  %414 = load i32, ptr %8, align 4
  switch i32 %414, label %581 [
    i32 0, label %415
    i32 14, label %304
  ]

415:                                              ; preds = %413
  br label %304, !llvm.loop !45

416:                                              ; preds = %304
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #6
  %417 = load ptr, ptr %5, align 8, !tbaa !12
  %418 = load ptr, ptr %6, align 8, !tbaa !12
  %419 = call { <2 x float>, <2 x float> } @b2GetBodyTransformQuick(ptr noundef %417, ptr noundef %418)
  %420 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %36, i32 0, i32 0
  %421 = extractvalue { <2 x float>, <2 x float> } %419, 0
  store <2 x float> %421, ptr %420, align 4
  %422 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %36, i32 0, i32 1
  %423 = extractvalue { <2 x float>, <2 x float> } %419, 1
  store <2 x float> %423, ptr %422, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #6
  %424 = load ptr, ptr %6, align 8, !tbaa !12
  %425 = getelementptr inbounds %struct.b2Body, ptr %424, i32 0, i32 6
  %426 = load i32, ptr %425, align 8, !tbaa !32
  store i32 %426, ptr %37, align 4, !tbaa !5
  br label %427

427:                                              ; preds = %430, %416
  %428 = load i32, ptr %37, align 4, !tbaa !5
  %429 = icmp ne i32 %428, -1
  br i1 %429, label %430, label %450

430:                                              ; preds = %427
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #6
  %431 = load ptr, ptr %5, align 8, !tbaa !12
  %432 = getelementptr inbounds %struct.b2World, ptr %431, i32 0, i32 15
  %433 = load i32, ptr %37, align 4, !tbaa !5
  %434 = call ptr @b2ShapeArray_Get(ptr noundef %432, i32 noundef %433)
  store ptr %434, ptr %38, align 8, !tbaa !12
  %435 = load ptr, ptr %38, align 8, !tbaa !12
  %436 = getelementptr inbounds %struct.b2Shape, ptr %435, i32 0, i32 3
  %437 = load i32, ptr %436, align 4, !tbaa !33
  store i32 %437, ptr %37, align 4, !tbaa !5
  %438 = load ptr, ptr %38, align 8, !tbaa !12
  %439 = load ptr, ptr %5, align 8, !tbaa !12
  %440 = getelementptr inbounds %struct.b2World, ptr %439, i32 0, i32 1
  call void @b2DestroyShapeProxy(ptr noundef %438, ptr noundef %440)
  call void @llvm.lifetime.start.p0(i64 1, ptr %39) #6
  store i8 1, ptr %39, align 1, !tbaa !19
  %441 = load ptr, ptr %38, align 8, !tbaa !12
  %442 = load ptr, ptr %5, align 8, !tbaa !12
  %443 = getelementptr inbounds %struct.b2World, ptr %442, i32 0, i32 1
  %444 = load i8, ptr %39, align 1, !tbaa !19, !range !20, !noundef !21
  %445 = trunc i8 %444 to i1
  %446 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %36, i32 0, i32 0
  %447 = load <2 x float>, ptr %446, align 4
  %448 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %36, i32 0, i32 1
  %449 = load <2 x float>, ptr %448, align 4
  call void @b2CreateShapeProxy(ptr noundef %441, ptr noundef %443, i32 noundef 0, <2 x float> %447, <2 x float> %449, i1 noundef zeroext %445)
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #6
  br label %427, !llvm.loop !47

450:                                              ; preds = %427
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br label %514

451:                                              ; preds = %265
  br label %452

452:                                              ; preds = %451
  %453 = load i32, ptr %7, align 4, !tbaa !5
  %454 = icmp eq i32 %453, 2
  br i1 %454, label %462, label %455

455:                                              ; preds = %452
  %456 = load i32, ptr %7, align 4, !tbaa !5
  %457 = icmp eq i32 %456, 1
  br i1 %457, label %462, label %458

458:                                              ; preds = %455
  %459 = call i32 @b2InternalAssertFcn(ptr noundef @.str.30, ptr noundef @.str.1, i32 noundef 1219)
  %460 = icmp ne i32 %459, 0
  br i1 %460, label %461, label %462

461:                                              ; preds = %458
  call void @llvm.trap()
  br label %462

462:                                              ; preds = %461, %458, %455, %452
  br label %463

463:                                              ; preds = %462
  br label %464

464:                                              ; preds = %463
  br label %465

465:                                              ; preds = %464
  %466 = load i32, ptr %4, align 4, !tbaa !5
  %467 = icmp eq i32 %466, 2
  br i1 %467, label %475, label %468

468:                                              ; preds = %465
  %469 = load i32, ptr %4, align 4, !tbaa !5
  %470 = icmp eq i32 %469, 1
  br i1 %470, label %475, label %471

471:                                              ; preds = %468
  %472 = call i32 @b2InternalAssertFcn(ptr noundef @.str.31, ptr noundef @.str.1, i32 noundef 1220)
  %473 = icmp ne i32 %472, 0
  br i1 %473, label %474, label %475

474:                                              ; preds = %471
  call void @llvm.trap()
  br label %475

475:                                              ; preds = %474, %471, %468, %465
  br label %476

476:                                              ; preds = %475
  br label %477

477:                                              ; preds = %476
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #6
  %478 = load ptr, ptr %5, align 8, !tbaa !12
  %479 = load ptr, ptr %6, align 8, !tbaa !12
  %480 = call { <2 x float>, <2 x float> } @b2GetBodyTransformQuick(ptr noundef %478, ptr noundef %479)
  %481 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %40, i32 0, i32 0
  %482 = extractvalue { <2 x float>, <2 x float> } %480, 0
  store <2 x float> %482, ptr %481, align 4
  %483 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %40, i32 0, i32 1
  %484 = extractvalue { <2 x float>, <2 x float> } %480, 1
  store <2 x float> %484, ptr %483, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #6
  %485 = load ptr, ptr %6, align 8, !tbaa !12
  %486 = getelementptr inbounds %struct.b2Body, ptr %485, i32 0, i32 6
  %487 = load i32, ptr %486, align 8, !tbaa !32
  store i32 %487, ptr %41, align 4, !tbaa !5
  br label %488

488:                                              ; preds = %491, %477
  %489 = load i32, ptr %41, align 4, !tbaa !5
  %490 = icmp ne i32 %489, -1
  br i1 %490, label %491, label %513

491:                                              ; preds = %488
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #6
  %492 = load ptr, ptr %5, align 8, !tbaa !12
  %493 = getelementptr inbounds %struct.b2World, ptr %492, i32 0, i32 15
  %494 = load i32, ptr %41, align 4, !tbaa !5
  %495 = call ptr @b2ShapeArray_Get(ptr noundef %493, i32 noundef %494)
  store ptr %495, ptr %42, align 8, !tbaa !12
  %496 = load ptr, ptr %42, align 8, !tbaa !12
  %497 = getelementptr inbounds %struct.b2Shape, ptr %496, i32 0, i32 3
  %498 = load i32, ptr %497, align 4, !tbaa !33
  store i32 %498, ptr %41, align 4, !tbaa !5
  %499 = load ptr, ptr %42, align 8, !tbaa !12
  %500 = load ptr, ptr %5, align 8, !tbaa !12
  %501 = getelementptr inbounds %struct.b2World, ptr %500, i32 0, i32 1
  call void @b2DestroyShapeProxy(ptr noundef %499, ptr noundef %501)
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #6
  %502 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %502, ptr %43, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %44) #6
  store i8 1, ptr %44, align 1, !tbaa !19
  %503 = load ptr, ptr %42, align 8, !tbaa !12
  %504 = load ptr, ptr %5, align 8, !tbaa !12
  %505 = getelementptr inbounds %struct.b2World, ptr %504, i32 0, i32 1
  %506 = load i32, ptr %43, align 4, !tbaa !5
  %507 = load i8, ptr %44, align 1, !tbaa !19, !range !20, !noundef !21
  %508 = trunc i8 %507 to i1
  %509 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %40, i32 0, i32 0
  %510 = load <2 x float>, ptr %509, align 4
  %511 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %40, i32 0, i32 1
  %512 = load <2 x float>, ptr %511, align 4
  call void @b2CreateShapeProxy(ptr noundef %503, ptr noundef %505, i32 noundef %506, <2 x float> %510, <2 x float> %512, i1 noundef zeroext %508)
  call void @llvm.lifetime.end.p0(i64 1, ptr %44) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #6
  br label %488, !llvm.loop !48

513:                                              ; preds = %488
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #6
  br label %514

514:                                              ; preds = %513, %450
  br label %515

515:                                              ; preds = %514, %264
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #6
  %516 = load ptr, ptr %6, align 8, !tbaa !12
  %517 = getelementptr inbounds %struct.b2Body, ptr %516, i32 0, i32 9
  %518 = load i32, ptr %517, align 4, !tbaa !22
  store i32 %518, ptr %45, align 4, !tbaa !5
  br label %519

519:                                              ; preds = %572, %570, %515
  %520 = load i32, ptr %45, align 4, !tbaa !5
  %521 = icmp ne i32 %520, -1
  br i1 %521, label %522, label %573

522:                                              ; preds = %519
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #6
  %523 = load i32, ptr %45, align 4, !tbaa !5
  %524 = ashr i32 %523, 1
  store i32 %524, ptr %46, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #6
  %525 = load i32, ptr %45, align 4, !tbaa !5
  %526 = and i32 %525, 1
  store i32 %526, ptr %47, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #6
  %527 = load ptr, ptr %5, align 8, !tbaa !12
  %528 = getelementptr inbounds %struct.b2World, ptr %527, i32 0, i32 8
  %529 = load i32, ptr %46, align 4, !tbaa !5
  %530 = call ptr @b2JointArray_Get(ptr noundef %528, i32 noundef %529)
  store ptr %530, ptr %48, align 8, !tbaa !12
  %531 = load ptr, ptr %48, align 8, !tbaa !12
  %532 = getelementptr inbounds %struct.b2Joint, ptr %531, i32 0, i32 4
  %533 = load i32, ptr %47, align 4, !tbaa !5
  %534 = sext i32 %533 to i64
  %535 = getelementptr inbounds [2 x %struct.b2JointEdge], ptr %532, i64 0, i64 %534
  %536 = getelementptr inbounds %struct.b2JointEdge, ptr %535, i32 0, i32 2
  %537 = load i32, ptr %536, align 4, !tbaa !27
  store i32 %537, ptr %45, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #6
  %538 = load i32, ptr %47, align 4, !tbaa !5
  %539 = xor i32 %538, 1
  store i32 %539, ptr %49, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #6
  %540 = load ptr, ptr %48, align 8, !tbaa !12
  %541 = getelementptr inbounds %struct.b2Joint, ptr %540, i32 0, i32 4
  %542 = load i32, ptr %49, align 4, !tbaa !5
  %543 = sext i32 %542 to i64
  %544 = getelementptr inbounds [2 x %struct.b2JointEdge], ptr %541, i64 0, i64 %543
  %545 = getelementptr inbounds %struct.b2JointEdge, ptr %544, i32 0, i32 0
  %546 = load i32, ptr %545, align 4, !tbaa !25
  store i32 %546, ptr %50, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #6
  %547 = load ptr, ptr %5, align 8, !tbaa !12
  %548 = getelementptr inbounds %struct.b2World, ptr %547, i32 0, i32 4
  %549 = load i32, ptr %50, align 4, !tbaa !5
  %550 = call ptr @b2BodyArray_Get(ptr noundef %548, i32 noundef %549)
  store ptr %550, ptr %51, align 8, !tbaa !12
  %551 = load ptr, ptr %51, align 8, !tbaa !12
  %552 = getelementptr inbounds %struct.b2Body, ptr %551, i32 0, i32 2
  %553 = load i32, ptr %552, align 8, !tbaa !18
  %554 = icmp eq i32 %553, 1
  br i1 %554, label %555, label %556

555:                                              ; preds = %522
  store i32 32, ptr %8, align 4
  br label %570, !llvm.loop !49

556:                                              ; preds = %522
  %557 = load ptr, ptr %6, align 8, !tbaa !12
  %558 = getelementptr inbounds %struct.b2Body, ptr %557, i32 0, i32 20
  %559 = load i32, ptr %558, align 8, !tbaa !14
  %560 = icmp eq i32 %559, 0
  br i1 %560, label %561, label %567

561:                                              ; preds = %556
  %562 = load ptr, ptr %51, align 8, !tbaa !12
  %563 = getelementptr inbounds %struct.b2Body, ptr %562, i32 0, i32 20
  %564 = load i32, ptr %563, align 8, !tbaa !14
  %565 = icmp eq i32 %564, 0
  br i1 %565, label %566, label %567

566:                                              ; preds = %561
  store i32 32, ptr %8, align 4
  br label %570, !llvm.loop !49

567:                                              ; preds = %561, %556
  %568 = load ptr, ptr %5, align 8, !tbaa !12
  %569 = load ptr, ptr %48, align 8, !tbaa !12
  call void @b2LinkJoint(ptr noundef %568, ptr noundef %569, i1 noundef zeroext false)
  store i32 0, ptr %8, align 4
  br label %570

570:                                              ; preds = %567, %566, %555
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #6
  %571 = load i32, ptr %8, align 4
  switch i32 %571, label %581 [
    i32 0, label %572
    i32 32, label %519
  ]

572:                                              ; preds = %570
  br label %519, !llvm.loop !49

573:                                              ; preds = %519
  %574 = load ptr, ptr %5, align 8, !tbaa !12
  call void @b2MergeAwakeIslands(ptr noundef %574)
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #6
  %575 = load ptr, ptr %5, align 8, !tbaa !12
  %576 = load ptr, ptr %6, align 8, !tbaa !12
  call void @b2UpdateBodyMassData(ptr noundef %575, ptr noundef %576)
  %577 = load ptr, ptr %5, align 8, !tbaa !12
  call void @b2ValidateSolverSets(ptr noundef %577)
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  store i32 0, ptr %8, align 4
  br label %578

578:                                              ; preds = %573, %71, %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  %579 = load i32, ptr %8, align 4
  switch i32 %579, label %581 [
    i32 0, label %580
    i32 1, label %580
  ]

580:                                              ; preds = %578, %578
  ret void

581:                                              ; preds = %578, %570, %413
  unreachable
}

declare void @b2UnlinkJoint(ptr noundef, ptr noundef) #1

declare void @b2TransferBody(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare void @b2TransferJoint(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare void @b2CreateShapeProxy(ptr noundef, ptr noundef, i32 noundef, <2 x float>, <2 x float>, i1 noundef zeroext) #1

declare void @b2LinkJoint(ptr noundef, ptr noundef, i1 noundef zeroext) #1

declare void @b2MergeAwakeIslands(ptr noundef) #1

attributes #0 = { 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 #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 = { inlinehint 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 4}
!10 = !{!"b2BodyId", !6, i64 0, !11, i64 4, !11, i64 6}
!11 = !{!"short", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!15, !6, i64 112}
!15 = !{!"b2Body", !7, i64 0, !13, i64 32, !6, i64 40, !6, i64 44, !6, i64 48, !6, i64 52, !6, i64 56, !6, i64 60, !6, i64 64, !6, i64 68, !6, i64 72, !6, i64 76, !6, i64 80, !6, i64 84, !16, i64 88, !16, i64 92, !16, i64 96, !16, i64 100, !6, i64 104, !6, i64 108, !6, i64 112, !11, i64 116, !17, i64 118, !17, i64 119, !17, i64 120, !17, i64 121}
!16 = !{!"float", !7, i64 0}
!17 = !{!"_Bool", !7, i64 0}
!18 = !{!15, !6, i64 40}
!19 = !{!17, !17, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!15, !6, i64 68}
!23 = !{!24, !6, i64 48}
!24 = !{!"b2Joint", !13, i64 0, !6, i64 8, !6, i64 12, !6, i64 16, !7, i64 20, !6, i64 44, !6, i64 48, !6, i64 52, !6, i64 56, !16, i64 60, !6, i64 64, !11, i64 68, !17, i64 70, !17, i64 71}
!25 = !{!26, !6, i64 0}
!26 = !{!"b2JointEdge", !6, i64 0, !6, i64 4, !6, i64 8}
!27 = !{!26, !6, i64 8}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!24, !6, i64 8}
!31 = distinct !{!31, !29}
!32 = !{!15, !6, i64 56}
!33 = !{!34, !6, i64 12}
!34 = !{!"b2Shape", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !16, i64 24, !16, i64 28, !16, i64 32, !16, i64 36, !16, i64 40, !6, i64 44, !35, i64 48, !35, i64 64, !36, i64 80, !6, i64 88, !37, i64 96, !13, i64 120, !6, i64 128, !7, i64 132, !11, i64 276, !17, i64 278, !17, i64 279, !17, i64 280, !17, i64 281, !17, i64 282}
!35 = !{!"b2AABB", !36, i64 0, !36, i64 8}
!36 = !{!"b2Vec2", !16, i64 0, !16, i64 4}
!37 = !{!"b2Filter", !38, i64 0, !38, i64 8, !6, i64 16}
!38 = !{!"long", !7, i64 0}
!39 = distinct !{!39, !29}
!40 = !{!15, !6, i64 44}
!41 = !{!42, !17, i64 92}
!42 = !{!"b2BodySim", !43, i64 0, !36, i64 16, !44, i64 24, !36, i64 32, !36, i64 40, !36, i64 48, !16, i64 56, !16, i64 60, !16, i64 64, !16, i64 68, !16, i64 72, !16, i64 76, !16, i64 80, !16, i64 84, !6, i64 88, !17, i64 92, !17, i64 93, !17, i64 94, !17, i64 95, !17, i64 96}
!43 = !{!"b2Transform", !36, i64 0, !44, i64 8}
!44 = !{!"b2Rot", !16, i64 0, !16, i64 4}
!45 = distinct !{!45, !29}
!46 = !{!24, !6, i64 12}
!47 = distinct !{!47, !29}
!48 = distinct !{!48, !29}
!49 = distinct !{!49, !29}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.b2JointEdge = type { i32, i32, i32 }

@.str.1 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [51 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @b2GetBodyFullId(ptr noundef, i64) local_unnamed_addr #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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @b2BodyArray_Get(ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local { <2 x float>, <2 x float> } @b2GetBodyTransformQuick(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @b2SolverSetArray_Get(ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @b2BodySimArray_Get(ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden void @b2CreateIslandForBody(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

declare void @b2ValidateSolverSets(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @b2WakeBody(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @b2JointArray_Get(ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden void @b2DestroyBodyContacts(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @b2ShapeArray_Get(ptr noundef, i32 noundef) local_unnamed_addr #3

declare void @b2DestroyShapeProxy(ptr noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @b2UpdateBodyMassData(ptr noundef, ptr noundef) local_unnamed_addr #4

declare ptr @b2GetWorld(i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @b2Body_SetType(i64 %0, i32 noundef %1) local_unnamed_addr #4 {
  %.sroa.2.0.extract.shift = lshr i64 %0, 32
  %3 = trunc nuw i64 %.sroa.2.0.extract.shift to i32
  %4 = and i32 %3, 65535
  %5 = tail call ptr @b2GetWorld(i32 noundef %4) #5
  %6 = tail call ptr @b2GetBodyFullId(ptr noundef %5, i64 %0)
  %7 = getelementptr inbounds i8, ptr %6, i64 112
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %9 = icmp eq i32 %8, %1
  br i1 %9, label %193, label %10

10:                                               ; preds = %2
  %11 = getelementptr inbounds i8, ptr %6, i64 40
  %12 = load i32, ptr %11, align 8, !tbaa !14
  %13 = icmp eq i32 %12, 1
  br i1 %13, label %14, label %15

14:                                               ; preds = %10
  store i32 %1, ptr %7, align 8, !tbaa !5
  tail call void @b2UpdateBodyMassData(ptr noundef %5, ptr noundef nonnull %6)
  br label %193

15:                                               ; preds = %10
  tail call void @b2DestroyBodyContacts(ptr noundef %5, ptr noundef nonnull %6, i1 noundef zeroext false)
  %16 = tail call zeroext i1 @b2WakeBody(ptr noundef %5, ptr noundef nonnull %6)
  %17 = getelementptr inbounds i8, ptr %6, i64 68
  %.0216 = load i32, ptr %17, align 4, !tbaa !15
  %.not217 = icmp eq i32 %.0216, -1
  br i1 %.not217, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %15
  %18 = getelementptr inbounds i8, ptr %5, i64 1112
  %19 = getelementptr inbounds i8, ptr %5, i64 1032
  br label %20

20:                                               ; preds = %.lr.ph, %27
  %.0218 = phi i32 [ %.0216, %.lr.ph ], [ %.0, %27 ]
  %21 = ashr i32 %.0218, 1
  %22 = and i32 %.0218, 1
  %23 = tail call ptr @b2JointArray_Get(ptr noundef nonnull %18, i32 noundef %21)
  %24 = getelementptr inbounds i8, ptr %23, i64 48
  %25 = load i32, ptr %24, align 8, !tbaa !16
  %.not212 = icmp eq i32 %25, -1
  br i1 %.not212, label %27, label %26

26:                                               ; preds = %20
  tail call void @b2UnlinkJoint(ptr noundef %5, ptr noundef nonnull %23) #5
  br label %27

27:                                               ; preds = %26, %20
  %28 = getelementptr inbounds i8, ptr %23, i64 20
  %29 = load i32, ptr %28, align 4, !tbaa !18
  %30 = tail call ptr @b2BodyArray_Get(ptr noundef nonnull %19, i32 noundef %29)
  %31 = getelementptr inbounds i8, ptr %23, i64 32
  %32 = load i32, ptr %31, align 4, !tbaa !18
  %33 = tail call ptr @b2BodyArray_Get(ptr noundef nonnull %19, i32 noundef %32)
  %34 = tail call zeroext i1 @b2WakeBody(ptr noundef %5, ptr noundef %30)
  %35 = tail call zeroext i1 @b2WakeBody(ptr noundef %5, ptr noundef %33)
  %36 = zext nneg i32 %22 to i64
  %37 = getelementptr inbounds [2 x %struct.b2JointEdge], ptr %28, i64 0, i64 %36, i32 2
  %.0 = load i32, ptr %37, align 4, !tbaa !15
  %.not = icmp eq i32 %.0, -1
  br i1 %.not, label %._crit_edge, label %20, !llvm.loop !20

._crit_edge:                                      ; preds = %27, %15
  store i32 %1, ptr %7, align 8, !tbaa !5
  %38 = icmp eq i32 %8, 0
  br i1 %38, label %39, label %75

39:                                               ; preds = %._crit_edge
  %40 = load i32, ptr %11, align 8, !tbaa !14
  %41 = icmp eq i32 %40, 0
  br i1 %41, label %45, label %42

42:                                               ; preds = %39
  %43 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.1, i32 noundef 1082) #5
  %.not207 = icmp eq i32 %43, 0
  br i1 %.not207, label %45, label %44

44:                                               ; preds = %42
  tail call void @llvm.trap()
  unreachable

45:                                               ; preds = %42, %39
  %46 = getelementptr inbounds i8, ptr %5, i64 1072
  %47 = tail call ptr @b2SolverSetArray_Get(ptr noundef nonnull %46, i32 noundef 0)
  %48 = tail call ptr @b2SolverSetArray_Get(ptr noundef nonnull %46, i32 noundef 2)
  tail call void @b2TransferBody(ptr noundef %5, ptr noundef %48, ptr noundef %47, ptr noundef nonnull %6) #5
  tail call void @b2CreateIslandForBody(ptr noundef %5, i32 noundef 2, ptr noundef nonnull %6)
  %.0185232 = load i32, ptr %17, align 4, !tbaa !15
  %.not208233 = icmp eq i32 %.0185232, -1
  br i1 %.not208233, label %._crit_edge237, label %.lr.ph236

.lr.ph236:                                        ; preds = %45
  %49 = getelementptr inbounds i8, ptr %5, i64 1112
  br label %50

50:                                               ; preds = %.lr.ph236, %60
  %.0185234 = phi i32 [ %.0185232, %.lr.ph236 ], [ %.0185, %60 ]
  %51 = ashr i32 %.0185234, 1
  %52 = and i32 %.0185234, 1
  %53 = tail call ptr @b2JointArray_Get(ptr noundef nonnull %49, i32 noundef %51)
  %54 = getelementptr inbounds i8, ptr %53, i64 8
  %55 = load i32, ptr %54, align 8, !tbaa !22
  switch i32 %55, label %57 [
    i32 0, label %.sink.split
    i32 2, label %56
    i32 1, label %60
  ]

56:                                               ; preds = %50
  tail call void @b2TransferJoint(ptr noundef %5, ptr noundef %47, ptr noundef %48, ptr noundef nonnull %53) #5
  br label %.sink.split

57:                                               ; preds = %50
  %58 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.24, ptr noundef nonnull @.str.1, i32 noundef 1121) #5
  %.not211 = icmp eq i32 %58, 0
  br i1 %.not211, label %60, label %59

59:                                               ; preds = %57
  tail call void @llvm.trap()
  unreachable

.sink.split:                                      ; preds = %50, %56
  tail call void @b2TransferJoint(ptr noundef %5, ptr noundef %48, ptr noundef %47, ptr noundef nonnull %53) #5
  br label %60

60:                                               ; preds = %.sink.split, %50, %57
  %61 = getelementptr inbounds i8, ptr %53, i64 20
  %62 = zext nneg i32 %52 to i64
  %63 = getelementptr inbounds [2 x %struct.b2JointEdge], ptr %61, i64 0, i64 %62, i32 2
  %.0185 = load i32, ptr %63, align 4, !tbaa !15
  %.not208 = icmp eq i32 %.0185, -1
  br i1 %.not208, label %._crit_edge237, label %50, !llvm.loop !23

._crit_edge237:                                   ; preds = %60, %45
  %64 = tail call { <2 x float>, <2 x float> } @b2GetBodyTransformQuick(ptr noundef %5, ptr noundef %6)
  %65 = extractvalue { <2 x float>, <2 x float> } %64, 0
  %66 = extractvalue { <2 x float>, <2 x float> } %64, 1
  %67 = getelementptr inbounds i8, ptr %6, i64 56
  %68 = load i32, ptr %67, align 8, !tbaa !24
  %.not209238 = icmp eq i32 %68, -1
  br i1 %.not209238, label %.loopexit, label %.lr.ph241

.lr.ph241:                                        ; preds = %._crit_edge237
  %69 = getelementptr inbounds i8, ptr %5, i64 1256
  %70 = getelementptr inbounds i8, ptr %5, i64 40
  br label %71

71:                                               ; preds = %.lr.ph241, %71
  %.0186239 = phi i32 [ %68, %.lr.ph241 ], [ %74, %71 ]
  %72 = tail call ptr @b2ShapeArray_Get(ptr noundef nonnull %69, i32 noundef %.0186239)
  %73 = getelementptr inbounds i8, ptr %72, i64 12
  %74 = load i32, ptr %73, align 4, !tbaa !25
  tail call void @b2DestroyShapeProxy(ptr noundef %72, ptr noundef nonnull %70) #5
  tail call void @b2CreateShapeProxy(ptr noundef %72, ptr noundef nonnull %70, i32 noundef %1, <2 x float> %65, <2 x float> %66, i1 noundef zeroext true) #5
  %.not209 = icmp eq i32 %74, -1
  br i1 %.not209, label %.loopexit, label %71, !llvm.loop !31

75:                                               ; preds = %._crit_edge
  %76 = icmp eq i32 %1, 0
  br i1 %76, label %77, label %145

77:                                               ; preds = %75
  %78 = load i32, ptr %11, align 8, !tbaa !14
  %79 = icmp eq i32 %78, 2
  br i1 %79, label %83, label %80

80:                                               ; preds = %77
  %81 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.25, ptr noundef nonnull @.str.1, i32 noundef 1143) #5
  %.not200 = icmp eq i32 %81, 0
  br i1 %.not200, label %83, label %82

82:                                               ; preds = %80
  tail call void @llvm.trap()
  unreachable

83:                                               ; preds = %80, %77
  %84 = getelementptr inbounds i8, ptr %5, i64 1072
  %85 = tail call ptr @b2SolverSetArray_Get(ptr noundef nonnull %84, i32 noundef 0)
  %86 = tail call ptr @b2SolverSetArray_Get(ptr noundef nonnull %84, i32 noundef 2)
  tail call void @b2TransferBody(ptr noundef %5, ptr noundef %85, ptr noundef %86, ptr noundef nonnull %6) #5
  tail call void @b2RemoveBodyFromIsland(ptr noundef %5, ptr noundef nonnull %6)
  %87 = getelementptr inbounds i8, ptr %6, i64 44
  %88 = load i32, ptr %87, align 4, !tbaa !32
  %89 = tail call ptr @b2BodySimArray_Get(ptr noundef %85, i32 noundef %88)
  %90 = getelementptr inbounds i8, ptr %89, i64 92
  store i8 0, ptr %90, align 4, !tbaa !33
  %91 = load i32, ptr %17, align 4, !tbaa !37
  %.not201223 = icmp eq i32 %91, -1
  br i1 %.not201223, label %._crit_edge227, label %.lr.ph226

.lr.ph226:                                        ; preds = %83
  %92 = getelementptr inbounds i8, ptr %5, i64 1112
  %93 = getelementptr inbounds i8, ptr %5, i64 1032
  br label %94

94:                                               ; preds = %.lr.ph226, %133
  %.0187224 = phi i32 [ %91, %.lr.ph226 ], [ %101, %133 ]
  %95 = ashr i32 %.0187224, 1
  %96 = and i32 %.0187224, 1
  %97 = tail call ptr @b2JointArray_Get(ptr noundef nonnull %92, i32 noundef %95)
  %98 = getelementptr inbounds i8, ptr %97, i64 20
  %99 = zext nneg i32 %96 to i64
  %100 = getelementptr inbounds [2 x %struct.b2JointEdge], ptr %98, i64 0, i64 %99, i32 2
  %101 = load i32, ptr %100, align 4, !tbaa !38
  %102 = xor i32 %96, 1
  %103 = zext nneg i32 %102 to i64
  %104 = getelementptr inbounds [2 x %struct.b2JointEdge], ptr %98, i64 0, i64 %103
  %105 = load i32, ptr %104, align 4, !tbaa !18
  %106 = tail call ptr @b2BodyArray_Get(ptr noundef nonnull %93, i32 noundef %105)
  %107 = getelementptr inbounds i8, ptr %97, i64 8
  %108 = load i32, ptr %107, align 8, !tbaa !22
  switch i32 %108, label %116 [
    i32 1, label %109
    i32 2, label %119
  ]

109:                                              ; preds = %94
  %110 = getelementptr inbounds i8, ptr %106, i64 40
  %111 = load i32, ptr %110, align 8, !tbaa !14
  %112 = icmp eq i32 %111, 1
  br i1 %112, label %133, label %113, !llvm.loop !39

113:                                              ; preds = %109
  %114 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.26, ptr noundef nonnull @.str.1, i32 noundef 1174) #5
  %.not206 = icmp eq i32 %114, 0
  br i1 %.not206, label %133, label %115, !llvm.loop !39

115:                                              ; preds = %113
  tail call void @llvm.trap()
  unreachable

116:                                              ; preds = %94
  %117 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.27, ptr noundef nonnull @.str.1, i32 noundef 1179) #5
  %.not203 = icmp eq i32 %117, 0
  br i1 %.not203, label %119, label %118

118:                                              ; preds = %116
  tail call void @llvm.trap()
  unreachable

119:                                              ; preds = %94, %116
  %120 = getelementptr inbounds i8, ptr %106, i64 40
  %121 = load i32, ptr %120, align 8, !tbaa !14
  switch i32 %121, label %123 [
    i32 0, label %122
    i32 2, label %126
  ]

122:                                              ; preds = %119
  tail call void @b2TransferJoint(ptr noundef %5, ptr noundef %85, ptr noundef %86, ptr noundef nonnull %97) #5
  br label %133

123:                                              ; preds = %119
  %124 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.28, ptr noundef nonnull @.str.1, i32 noundef 1189) #5
  %.not204 = icmp eq i32 %124, 0
  br i1 %.not204, label %126, label %125

125:                                              ; preds = %123
  tail call void @llvm.trap()
  unreachable

126:                                              ; preds = %119, %123
  %127 = getelementptr inbounds i8, ptr %97, i64 12
  %128 = load i32, ptr %127, align 4, !tbaa !40
  %or.cond213 = icmp ult i32 %128, 12
  br i1 %or.cond213, label %132, label %129

129:                                              ; preds = %126
  %130 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.29, ptr noundef nonnull @.str.1, i32 noundef 1192) #5
  %.not205 = icmp eq i32 %130, 0
  br i1 %.not205, label %132, label %131

131:                                              ; preds = %129
  tail call void @llvm.trap()
  unreachable

132:                                              ; preds = %126, %129
  tail call void @b2TransferJoint(ptr noundef %5, ptr noundef %85, ptr noundef %86, ptr noundef nonnull %97) #5
  tail call void @b2TransferJoint(ptr noundef %5, ptr noundef %86, ptr noundef %85, ptr noundef nonnull %97) #5
  br label %133

133:                                              ; preds = %122, %132, %109, %113
  %.not201 = icmp eq i32 %101, -1
  br i1 %.not201, label %._crit_edge227, label %94

._crit_edge227:                                   ; preds = %133, %83
  %134 = tail call { <2 x float>, <2 x float> } @b2GetBodyTransformQuick(ptr noundef %5, ptr noundef %6)
  %135 = extractvalue { <2 x float>, <2 x float> } %134, 0
  %136 = extractvalue { <2 x float>, <2 x float> } %134, 1
  %137 = getelementptr inbounds i8, ptr %6, i64 56
  %138 = load i32, ptr %137, align 8, !tbaa !24
  %.not202228 = icmp eq i32 %138, -1
  br i1 %.not202228, label %.loopexit, label %.lr.ph231

.lr.ph231:                                        ; preds = %._crit_edge227
  %139 = getelementptr inbounds i8, ptr %5, i64 1256
  %140 = getelementptr inbounds i8, ptr %5, i64 40
  br label %141

141:                                              ; preds = %.lr.ph231, %141
  %.0188229 = phi i32 [ %138, %.lr.ph231 ], [ %144, %141 ]
  %142 = tail call ptr @b2ShapeArray_Get(ptr noundef nonnull %139, i32 noundef %.0188229)
  %143 = getelementptr inbounds i8, ptr %142, i64 12
  %144 = load i32, ptr %143, align 4, !tbaa !25
  tail call void @b2DestroyShapeProxy(ptr noundef %142, ptr noundef nonnull %140) #5
  tail call void @b2CreateShapeProxy(ptr noundef %142, ptr noundef nonnull %140, i32 noundef 0, <2 x float> %135, <2 x float> %136, i1 noundef zeroext true) #5
  %.not202 = icmp eq i32 %144, -1
  br i1 %.not202, label %.loopexit, label %141, !llvm.loop !41

145:                                              ; preds = %75
  %or.cond = icmp ult i32 %8, 3
  br i1 %or.cond, label %149, label %146

146:                                              ; preds = %145
  %147 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.30, ptr noundef nonnull @.str.1, i32 noundef 1219) #5
  %.not197 = icmp eq i32 %147, 0
  br i1 %.not197, label %149, label %148

148:                                              ; preds = %146
  tail call void @llvm.trap()
  unreachable

149:                                              ; preds = %145, %146
  %or.cond3 = icmp ult i32 %1, 3
  br i1 %or.cond3, label %153, label %150

150:                                              ; preds = %149
  %151 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.31, ptr noundef nonnull @.str.1, i32 noundef 1220) #5
  %.not198 = icmp eq i32 %151, 0
  br i1 %.not198, label %153, label %152

152:                                              ; preds = %150
  tail call void @llvm.trap()
  unreachable

153:                                              ; preds = %150, %149
  %154 = tail call { <2 x float>, <2 x float> } @b2GetBodyTransformQuick(ptr noundef %5, ptr noundef nonnull %6)
  %155 = extractvalue { <2 x float>, <2 x float> } %154, 0
  %156 = extractvalue { <2 x float>, <2 x float> } %154, 1
  %157 = getelementptr inbounds i8, ptr %6, i64 56
  %158 = load i32, ptr %157, align 8, !tbaa !24
  %.not199219 = icmp eq i32 %158, -1
  br i1 %.not199219, label %.loopexit, label %.lr.ph222

.lr.ph222:                                        ; preds = %153
  %159 = getelementptr inbounds i8, ptr %5, i64 1256
  %160 = getelementptr inbounds i8, ptr %5, i64 40
  br label %161

161:                                              ; preds = %.lr.ph222, %161
  %.0190220 = phi i32 [ %158, %.lr.ph222 ], [ %164, %161 ]
  %162 = tail call ptr @b2ShapeArray_Get(ptr noundef nonnull %159, i32 noundef %.0190220)
  %163 = getelementptr inbounds i8, ptr %162, i64 12
  %164 = load i32, ptr %163, align 4, !tbaa !25
  tail call void @b2DestroyShapeProxy(ptr noundef %162, ptr noundef nonnull %160) #5
  tail call void @b2CreateShapeProxy(ptr noundef %162, ptr noundef nonnull %160, i32 noundef %1, <2 x float> %155, <2 x float> %156, i1 noundef zeroext true) #5
  %.not199 = icmp eq i32 %164, -1
  br i1 %.not199, label %.loopexit, label %161, !llvm.loop !42

.loopexit:                                        ; preds = %161, %141, %71, %153, %._crit_edge227, %._crit_edge237
  %165 = load i32, ptr %17, align 4, !tbaa !37
  %.not210242 = icmp eq i32 %165, -1
  br i1 %.not210242, label %._crit_edge246, label %.lr.ph245

.lr.ph245:                                        ; preds = %.loopexit
  %166 = getelementptr inbounds i8, ptr %5, i64 1112
  %167 = getelementptr inbounds i8, ptr %5, i64 1032
  br label %168

168:                                              ; preds = %.lr.ph245, %192
  %.0189243 = phi i32 [ %165, %.lr.ph245 ], [ %175, %192 ]
  %169 = ashr i32 %.0189243, 1
  %170 = and i32 %.0189243, 1
  %171 = tail call ptr @b2JointArray_Get(ptr noundef nonnull %166, i32 noundef %169)
  %172 = getelementptr inbounds i8, ptr %171, i64 20
  %173 = zext nneg i32 %170 to i64
  %174 = getelementptr inbounds [2 x %struct.b2JointEdge], ptr %172, i64 0, i64 %173, i32 2
  %175 = load i32, ptr %174, align 4, !tbaa !38
  %176 = xor i32 %170, 1
  %177 = zext nneg i32 %176 to i64
  %178 = getelementptr inbounds [2 x %struct.b2JointEdge], ptr %172, i64 0, i64 %177
  %179 = load i32, ptr %178, align 4, !tbaa !18
  %180 = tail call ptr @b2BodyArray_Get(ptr noundef nonnull %167, i32 noundef %179)
  %181 = getelementptr inbounds i8, ptr %180, i64 40
  %182 = load i32, ptr %181, align 8, !tbaa !14
  %183 = icmp eq i32 %182, 1
  br i1 %183, label %192, label %184, !llvm.loop !43

184:                                              ; preds = %168
  %185 = load i32, ptr %7, align 8, !tbaa !5
  %186 = icmp eq i32 %185, 0
  br i1 %186, label %187, label %191

187:                                              ; preds = %184
  %188 = getelementptr inbounds i8, ptr %180, i64 112
  %189 = load i32, ptr %188, align 8, !tbaa !5
  %190 = icmp eq i32 %189, 0
  br i1 %190, label %192, label %191, !llvm.loop !43

191:                                              ; preds = %187, %184
  tail call void @b2LinkJoint(ptr noundef %5, ptr noundef nonnull %171, i1 noundef zeroext false) #5
  br label %192

192:                                              ; preds = %187, %168, %191
  %.not210 = icmp eq i32 %175, -1
  br i1 %.not210, label %._crit_edge246, label %168

._crit_edge246:                                   ; preds = %192, %.loopexit
  tail call void @b2MergeAwakeIslands(ptr noundef %5) #5
  tail call void @b2UpdateBodyMassData(ptr noundef %5, ptr noundef %6)
  tail call void @b2ValidateSolverSets(ptr noundef %5) #5
  br label %193

193:                                              ; preds = %2, %._crit_edge246, %14
  ret void
}

declare void @b2UnlinkJoint(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @b2TransferBody(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @b2TransferJoint(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @b2CreateShapeProxy(ptr noundef, ptr noundef, i32 noundef, <2 x float>, <2 x float>, i1 noundef zeroext) local_unnamed_addr #1

declare void @b2LinkJoint(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #1

declare void @b2MergeAwakeIslands(ptr noundef) local_unnamed_addr #1

attributes #0 = { 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 #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 = { inlinehint 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 = { 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 }

!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, !10, i64 112}
!6 = !{!"b2Body", !7, i64 0, !9, i64 32, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !12, i64 116, !13, i64 118, !13, i64 119, !13, i64 120, !13, i64 121}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"any pointer", !7, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!"float", !7, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!"_Bool", !7, i64 0}
!14 = !{!6, !10, i64 40}
!15 = !{!10, !10, i64 0}
!16 = !{!17, !10, i64 48}
!17 = !{!"b2Joint", !9, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !7, i64 20, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !11, i64 60, !10, i64 64, !12, i64 68, !13, i64 70, !13, i64 71}
!18 = !{!19, !10, i64 0}
!19 = !{!"b2JointEdge", !10, i64 0, !10, i64 4, !10, i64 8}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!17, !10, i64 8}
!23 = distinct !{!23, !21}
!24 = !{!6, !10, i64 56}
!25 = !{!26, !10, i64 12}
!26 = !{!"b2Shape", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !10, i64 44, !27, i64 48, !27, i64 64, !28, i64 80, !10, i64 88, !29, i64 96, !9, i64 120, !10, i64 128, !7, i64 132, !12, i64 276, !13, i64 278, !13, i64 279, !13, i64 280, !13, i64 281, !13, i64 282}
!27 = !{!"b2AABB", !28, i64 0, !28, i64 8}
!28 = !{!"b2Vec2", !11, i64 0, !11, i64 4}
!29 = !{!"b2Filter", !30, i64 0, !30, i64 8, !10, i64 16}
!30 = !{!"long", !7, i64 0}
!31 = distinct !{!31, !21}
!32 = !{!6, !10, i64 44}
!33 = !{!34, !13, i64 92}
!34 = !{!"b2BodySim", !35, i64 0, !28, i64 16, !36, i64 24, !28, i64 32, !28, i64 40, !28, i64 48, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !10, i64 88, !13, i64 92, !13, i64 93, !13, i64 94, !13, i64 95, !13, i64 96}
!35 = !{!"b2Transform", !28, i64 0, !36, i64 8}
!36 = !{!"b2Rot", !11, i64 0, !11, i64 4}
!37 = !{!6, !10, i64 68}
!38 = !{!19, !10, i64 8}
!39 = distinct !{!39, !21}
!40 = !{!17, !10, i64 12}
!41 = distinct !{!41, !21}
!42 = distinct !{!42, !21}
!43 = distinct !{!43, !21}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass