; LLVM IR from erincatto/box2d :: samples/car.ll (ZN3Car5SpawnE9b2WorldId6b2Vec2ffffPv)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.b2Vec2 = type { float, float }
%struct.b2WorldId = type { i16, i16 }
%struct.b2Hull = type { [8 x %struct.b2Vec2], i32 }
%struct.b2Polygon = type { [8 x %struct.b2Vec2], [8 x %struct.b2Vec2], %struct.b2Vec2, float, i32 }
%struct.b2ShapeDef = type { ptr, %struct.b2SurfaceMaterial, float, %struct.b2Filter, i8, i8, i8, i8, i8, i8, i8, i32 }
%struct.b2SurfaceMaterial = type { float, float, float, float, i32, i32 }
%struct.b2Filter = type { i64, i64, i32 }
%struct.b2Circle = type { %struct.b2Vec2, float }
%struct.b2BodyDef = type { i32, %struct.b2Vec2, %struct.b2Rot, %struct.b2Vec2, float, float, float, float, float, ptr, ptr, i8, i8, i8, i8, i8, i8, i32 }
%struct.b2Rot = type { float, float }
%struct.b2BodyId = type { i32, i16, i16 }
%struct.b2ShapeId = type { i32, i16, i16 }
%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.b2JointId = type { i32, i16, i16 }
%class.Car = type <{ %struct.b2BodyId, %struct.b2BodyId, %struct.b2BodyId, %struct.b2JointId, %struct.b2JointId, i8, [3 x i8] }>

@.str = external hidden unnamed_addr constant [21 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [65 x i8], align 1
@__PRETTY_FUNCTION__._ZN3Car5SpawnE9b2WorldId6b2Vec2ffffPv = external hidden unnamed_addr constant [71 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [28 x i8], align 1
@__const._ZN3Car5SpawnE9b2WorldId6b2Vec2ffffPv.vertices = external hidden unnamed_addr constant [6 x %struct.b2Vec2], align 16
@__const._ZN3Car5SpawnE9b2WorldId6b2Vec2ffffPv.axis = external hidden unnamed_addr constant %struct.b2Vec2, align 4

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3Car5SpawnE9b2WorldId6b2Vec2ffffPv(ptr noundef nonnull align 4 dereferenceable(41) %0, i32 %1, <2 x float> %2, float noundef %3, float noundef %4, float noundef %5, float noundef %6, ptr noundef %7) #2 align 2 {
  %9 = alloca %struct.b2WorldId, align 2
  %10 = alloca %struct.b2Vec2, align 4
  %11 = alloca ptr, align 8
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca ptr, align 8
  %17 = alloca [6 x %struct.b2Vec2], align 16
  %18 = alloca i32, align 4
  %19 = alloca %struct.b2Hull, align 4
  %20 = alloca %struct.b2Polygon, align 4
  %21 = alloca %struct.b2ShapeDef, align 8
  %22 = alloca %struct.b2Circle, align 4
  %23 = alloca %struct.b2BodyDef, align 8
  %24 = alloca %struct.b2Vec2, align 4
  %25 = alloca %struct.b2Vec2, align 4
  %26 = alloca %struct.b2Vec2, align 4
  %27 = alloca %struct.b2BodyId, align 4
  %28 = alloca %struct.b2WorldId, align 2
  %29 = alloca %struct.b2BodyId, align 4
  %30 = alloca %struct.b2ShapeId, align 4
  %31 = alloca %struct.b2Vec2, align 4
  %32 = alloca %struct.b2Vec2, align 4
  %33 = alloca %struct.b2Vec2, align 4
  %34 = alloca %struct.b2BodyId, align 4
  %35 = alloca %struct.b2WorldId, align 2
  %36 = alloca %struct.b2BodyId, align 4
  %37 = alloca %struct.b2ShapeId, align 4
  %38 = alloca %struct.b2Vec2, align 4
  %39 = alloca %struct.b2Vec2, align 4
  %40 = alloca %struct.b2Vec2, align 4
  %41 = alloca %struct.b2BodyId, align 4
  %42 = alloca %struct.b2WorldId, align 2
  %43 = alloca %struct.b2BodyId, align 4
  %44 = alloca %struct.b2ShapeId, align 4
  %45 = alloca %struct.b2Vec2, align 4
  %46 = alloca %struct.b2Vec2, align 4
  %47 = alloca %struct.b2BodyId, align 4
  %48 = alloca %struct.b2WheelJointDef, align 8
  %49 = alloca %struct.b2Vec2, align 4
  %50 = alloca %struct.b2BodyId, align 4
  %51 = alloca %struct.b2Vec2, align 4
  %52 = alloca %struct.b2Vec2, align 4
  %53 = alloca %struct.b2BodyId, align 4
  %54 = alloca %struct.b2Vec2, align 4
  %55 = alloca %struct.b2Vec2, align 4
  %56 = alloca %struct.b2BodyId, align 4
  %57 = alloca %struct.b2Vec2, align 4
  %58 = alloca %struct.b2JointId, align 4
  %59 = alloca %struct.b2WorldId, align 2
  %60 = alloca %struct.b2Vec2, align 4
  %61 = alloca %struct.b2BodyId, align 4
  %62 = alloca %struct.b2Vec2, align 4
  %63 = alloca %struct.b2BodyId, align 4
  %64 = alloca %struct.b2Vec2, align 4
  %65 = alloca %struct.b2Vec2, align 4
  %66 = alloca %struct.b2BodyId, align 4
  %67 = alloca %struct.b2Vec2, align 4
  %68 = alloca %struct.b2Vec2, align 4
  %69 = alloca %struct.b2BodyId, align 4
  %70 = alloca %struct.b2Vec2, align 4
  %71 = alloca %struct.b2JointId, align 4
  %72 = alloca %struct.b2WorldId, align 2
  store i32 %1, ptr %9, align 2
  store <2 x float> %2, ptr %10, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store float %3, ptr %12, align 4, !tbaa !9
  store float %4, ptr %13, align 4, !tbaa !9
  store float %5, ptr %14, align 4, !tbaa !9
  store float %6, ptr %15, align 4, !tbaa !9
  store ptr %7, ptr %16, align 8, !tbaa !5
  %73 = load ptr, ptr %11, align 8
  %74 = getelementptr inbounds %class.Car, ptr %73, i32 0, i32 5
  %75 = load i8, ptr %74, align 4, !tbaa !11, !range !18, !noundef !19
  %76 = trunc i8 %75 to i1
  %77 = zext i1 %76 to i32
  %78 = icmp eq i32 %77, 0
  br i1 %78, label %79, label %80

79:                                               ; preds = %8
  br label %82

80:                                               ; preds = %8
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 23, ptr noundef @__PRETTY_FUNCTION__._ZN3Car5SpawnE9b2WorldId6b2Vec2ffffPv) #6
  unreachable

81:                                               ; No predecessors!
  br label %82

82:                                               ; preds = %81, %79
  %83 = getelementptr inbounds %class.Car, ptr %73, i32 0, i32 0
  %84 = getelementptr inbounds %struct.b2BodyId, ptr %83, i32 0, i32 0
  %85 = load i32, ptr %84, align 4, !tbaa !20
  %86 = icmp eq i32 %85, 0
  br i1 %86, label %87, label %88

87:                                               ; preds = %82
  br label %90

88:                                               ; preds = %82
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 25, ptr noundef @__PRETTY_FUNCTION__._ZN3Car5SpawnE9b2WorldId6b2Vec2ffffPv) #6
  unreachable

89:                                               ; No predecessors!
  br label %90

90:                                               ; preds = %89, %87
  %91 = getelementptr inbounds %class.Car, ptr %73, i32 0, i32 2
  %92 = getelementptr inbounds %struct.b2BodyId, ptr %91, i32 0, i32 0
  %93 = load i32, ptr %92, align 4, !tbaa !21
  %94 = icmp eq i32 %93, 0
  br i1 %94, label %95, label %96

95:                                               ; preds = %90
  br label %98

96:                                               ; preds = %90
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 26, ptr noundef @__PRETTY_FUNCTION__._ZN3Car5SpawnE9b2WorldId6b2Vec2ffffPv) #6
  unreachable

97:                                               ; No predecessors!
  br label %98

98:                                               ; preds = %97, %95
  %99 = getelementptr inbounds %class.Car, ptr %73, i32 0, i32 1
  %100 = getelementptr inbounds %struct.b2BodyId, ptr %99, i32 0, i32 0
  %101 = load i32, ptr %100, align 4, !tbaa !22
  %102 = icmp eq i32 %101, 0
  br i1 %102, label %103, label %104

103:                                              ; preds = %98
  br label %106

104:                                              ; preds = %98
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 27, ptr noundef @__PRETTY_FUNCTION__._ZN3Car5SpawnE9b2WorldId6b2Vec2ffffPv) #6
  unreachable

105:                                              ; No predecessors!
  br label %106

106:                                              ; preds = %105, %103
  call void @llvm.lifetime.start.p0(i64 48, ptr %17) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 @__const._ZN3Car5SpawnE9b2WorldId6b2Vec2ffffPv.vertices, i64 48, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !23
  br label %107

107:                                              ; preds = %128, %106
  %108 = load i32, ptr %18, align 4, !tbaa !23
  %109 = icmp slt i32 %108, 6
  br i1 %109, label %111, label %110

110:                                              ; preds = %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %131

111:                                              ; preds = %107
  %112 = load float, ptr %12, align 4, !tbaa !9
  %113 = fmul float 0x3FEB333340000000, %112
  %114 = load i32, ptr %18, align 4, !tbaa !23
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [6 x %struct.b2Vec2], ptr %17, i64 0, i64 %115
  %117 = getelementptr inbounds %struct.b2Vec2, ptr %116, i32 0, i32 0
  %118 = load float, ptr %117, align 8, !tbaa !24
  %119 = fmul float %118, %113
  store float %119, ptr %117, align 8, !tbaa !24
  %120 = load float, ptr %12, align 4, !tbaa !9
  %121 = fmul float 0x3FEB333340000000, %120
  %122 = load i32, ptr %18, align 4, !tbaa !23
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [6 x %struct.b2Vec2], ptr %17, i64 0, i64 %123
  %125 = getelementptr inbounds %struct.b2Vec2, ptr %124, i32 0, i32 1
  %126 = load float, ptr %125, align 4, !tbaa !26
  %127 = fmul float %126, %121
  store float %127, ptr %125, align 4, !tbaa !26
  br label %128

128:                                              ; preds = %111
  %129 = load i32, ptr %18, align 4, !tbaa !23
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %18, align 4, !tbaa !23
  br label %107, !llvm.loop !27

131:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 68, ptr %19) #7
  %132 = getelementptr inbounds [6 x %struct.b2Vec2], ptr %17, i64 0, i64 0
  call void @b2ComputeHull(ptr dead_on_unwind writable sret(%struct.b2Hull) align 4 %19, ptr noundef %132, i32 noundef 6)
  call void @llvm.lifetime.start.p0(i64 144, ptr %20) #7
  %133 = load float, ptr %12, align 4, !tbaa !9
  %134 = fmul float 0x3FC3333340000000, %133
  call void @b2MakePolygon(ptr dead_on_unwind writable sret(%struct.b2Polygon) align 4 %20, ptr noundef %19, float noundef %134)
  call void @llvm.lifetime.start.p0(i64 80, ptr %21) #7
  call void @b2DefaultShapeDef(ptr dead_on_unwind writable sret(%struct.b2ShapeDef) align 8 %21)
  %135 = load float, ptr %12, align 4, !tbaa !9
  %136 = fdiv float 1.000000e+00, %135
  %137 = getelementptr inbounds %struct.b2ShapeDef, ptr %21, i32 0, i32 2
  store float %136, ptr %137, align 8, !tbaa !29
  %138 = getelementptr inbounds %struct.b2ShapeDef, ptr %21, i32 0, i32 1
  %139 = getelementptr inbounds %struct.b2SurfaceMaterial, ptr %138, i32 0, i32 0
  store float 0x3FC99999A0000000, ptr %139, align 8, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 12, ptr %22) #7
  %140 = getelementptr inbounds %struct.b2Circle, ptr %22, i32 0, i32 0
  %141 = getelementptr inbounds %struct.b2Vec2, ptr %140, i32 0, i32 0
  store float 0.000000e+00, ptr %141, align 4, !tbaa !24
  %142 = getelementptr inbounds %struct.b2Vec2, ptr %140, i32 0, i32 1
  store float 0.000000e+00, ptr %142, align 4, !tbaa !26
  %143 = getelementptr inbounds %struct.b2Circle, ptr %22, i32 0, i32 1
  %144 = load float, ptr %12, align 4, !tbaa !9
  %145 = fmul float 0x3FD99999A0000000, %144
  store float %145, ptr %143, align 4, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 80, ptr %23) #7
  call void @b2DefaultBodyDef(ptr dead_on_unwind writable sret(%struct.b2BodyDef) align 8 %23)
  %146 = getelementptr inbounds %struct.b2BodyDef, ptr %23, i32 0, i32 0
  store i32 2, ptr %146, align 8, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %147 = getelementptr inbounds %struct.b2Vec2, ptr %25, i32 0, i32 0
  store float 0.000000e+00, ptr %147, align 4, !tbaa !24
  %148 = getelementptr inbounds %struct.b2Vec2, ptr %25, i32 0, i32 1
  %149 = load float, ptr %12, align 4, !tbaa !9
  %150 = fmul float 1.000000e+00, %149
  store float %150, ptr %148, align 4, !tbaa !26
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %10, i64 8, i1 false), !tbaa.struct !41
  %151 = load <2 x float>, ptr %25, align 4
  %152 = load <2 x float>, ptr %26, align 4
  %153 = call <2 x float> @_Z5b2Add6b2Vec2S_(<2 x float> %151, <2 x float> %152)
  store <2 x float> %153, ptr %24, align 4
  %154 = getelementptr inbounds %struct.b2BodyDef, ptr %23, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %154, ptr align 4 %24, i64 8, i1 false), !tbaa.struct !41
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %28, ptr align 2 %9, i64 4, i1 false), !tbaa.struct !42
  %155 = load i32, ptr %28, align 2
  %156 = call i64 @b2CreateBody(i32 %155, ptr noundef %23)
  store i64 %156, ptr %27, align 4
  %157 = getelementptr inbounds %class.Car, ptr %73, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %157, ptr align 4 %27, i64 8, i1 false), !tbaa.struct !44
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  %158 = getelementptr inbounds %class.Car, ptr %73, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 4 %158, i64 8, i1 false), !tbaa.struct !44
  %159 = load i64, ptr %29, align 4
  %160 = call i64 @b2CreatePolygonShape(i64 %159, ptr noundef %21, ptr noundef %20)
  store i64 %160, ptr %30, align 4
  %161 = load float, ptr %12, align 4, !tbaa !9
  %162 = fdiv float 2.000000e+00, %161
  %163 = getelementptr inbounds %struct.b2ShapeDef, ptr %21, i32 0, i32 2
  store float %162, ptr %163, align 8, !tbaa !29
  %164 = getelementptr inbounds %struct.b2ShapeDef, ptr %21, i32 0, i32 1
  %165 = getelementptr inbounds %struct.b2SurfaceMaterial, ptr %164, i32 0, i32 0
  store float 1.500000e+00, ptr %165, align 8, !tbaa !34
  %166 = getelementptr inbounds %struct.b2ShapeDef, ptr %21, i32 0, i32 1
  %167 = getelementptr inbounds %struct.b2SurfaceMaterial, ptr %166, i32 0, i32 2
  store float 0x3FB99999A0000000, ptr %167, align 8, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %168 = getelementptr inbounds %struct.b2Vec2, ptr %32, i32 0, i32 0
  %169 = load float, ptr %12, align 4, !tbaa !9
  %170 = fmul float -1.000000e+00, %169
  store float %170, ptr %168, align 4, !tbaa !24
  %171 = getelementptr inbounds %struct.b2Vec2, ptr %32, i32 0, i32 1
  %172 = load float, ptr %12, align 4, !tbaa !9
  %173 = fmul float 0x3FD6666660000000, %172
  store float %173, ptr %171, align 4, !tbaa !26
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %10, i64 8, i1 false), !tbaa.struct !41
  %174 = load <2 x float>, ptr %32, align 4
  %175 = load <2 x float>, ptr %33, align 4
  %176 = call <2 x float> @_Z5b2Add6b2Vec2S_(<2 x float> %174, <2 x float> %175)
  store <2 x float> %176, ptr %31, align 4
  %177 = getelementptr inbounds %struct.b2BodyDef, ptr %23, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %177, ptr align 4 %31, i64 8, i1 false), !tbaa.struct !41
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  %178 = getelementptr inbounds %struct.b2BodyDef, ptr %23, i32 0, i32 16
  store i8 1, ptr %178, align 1, !tbaa !46
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %35, ptr align 2 %9, i64 4, i1 false), !tbaa.struct !42
  %179 = load i32, ptr %35, align 2
  %180 = call i64 @b2CreateBody(i32 %179, ptr noundef %23)
  store i64 %180, ptr %34, align 4
  %181 = getelementptr inbounds %class.Car, ptr %73, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %181, ptr align 4 %34, i64 8, i1 false), !tbaa.struct !44
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  %182 = getelementptr inbounds %class.Car, ptr %73, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 4 %182, i64 8, i1 false), !tbaa.struct !44
  %183 = load i64, ptr %36, align 4
  %184 = call i64 @b2CreateCircleShape(i64 %183, ptr noundef %21, ptr noundef %22)
  store i64 %184, ptr %37, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #7
  %185 = getelementptr inbounds %struct.b2Vec2, ptr %39, i32 0, i32 0
  %186 = load float, ptr %12, align 4, !tbaa !9
  %187 = fmul float 1.000000e+00, %186
  store float %187, ptr %185, align 4, !tbaa !24
  %188 = getelementptr inbounds %struct.b2Vec2, ptr %39, i32 0, i32 1
  %189 = load float, ptr %12, align 4, !tbaa !9
  %190 = fmul float 0x3FD99999A0000000, %189
  store float %190, ptr %188, align 4, !tbaa !26
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 4 %10, i64 8, i1 false), !tbaa.struct !41
  %191 = load <2 x float>, ptr %39, align 4
  %192 = load <2 x float>, ptr %40, align 4
  %193 = call <2 x float> @_Z5b2Add6b2Vec2S_(<2 x float> %191, <2 x float> %192)
  store <2 x float> %193, ptr %38, align 4
  %194 = getelementptr inbounds %struct.b2BodyDef, ptr %23, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %194, ptr align 4 %38, i64 8, i1 false), !tbaa.struct !41
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  %195 = getelementptr inbounds %struct.b2BodyDef, ptr %23, i32 0, i32 16
  store i8 1, ptr %195, align 1, !tbaa !46
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %42, ptr align 2 %9, i64 4, i1 false), !tbaa.struct !42
  %196 = load i32, ptr %42, align 2
  %197 = call i64 @b2CreateBody(i32 %196, ptr noundef %23)
  store i64 %197, ptr %41, align 4
  %198 = getelementptr inbounds %class.Car, ptr %73, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %198, ptr align 4 %41, i64 8, i1 false), !tbaa.struct !44
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #7
  %199 = getelementptr inbounds %class.Car, ptr %73, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 4 %199, i64 8, i1 false), !tbaa.struct !44
  %200 = load i64, ptr %43, align 4
  %201 = call i64 @b2CreateCircleShape(i64 %200, ptr noundef %21, ptr noundef %22)
  store i64 %201, ptr %44, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %45, ptr align 4 @__const._ZN3Car5SpawnE9b2WorldId6b2Vec2ffffPv.axis, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #7
  %202 = getelementptr inbounds %class.Car, ptr %73, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %47, ptr align 4 %202, i64 8, i1 false), !tbaa.struct !44
  %203 = load i64, ptr %47, align 4
  %204 = call <2 x float> @b2Body_GetPosition(i64 %203)
  store <2 x float> %204, ptr %46, align 4
  call void @llvm.lifetime.start.p0(i64 96, ptr %48) #7
  call void @b2DefaultWheelJointDef(ptr dead_on_unwind writable sret(%struct.b2WheelJointDef) align 8 %48)
  %205 = getelementptr inbounds %class.Car, ptr %73, i32 0, i32 0
  %206 = getelementptr inbounds %struct.b2WheelJointDef, ptr %48, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %206, ptr align 4 %205, i64 8, i1 false), !tbaa.struct !44
  %207 = getelementptr inbounds %class.Car, ptr %73, i32 0, i32 1
  %208 = getelementptr inbounds %struct.b2WheelJointDef, ptr %48, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %208, ptr align 4 %207, i64 8, i1 false), !tbaa.struct !44
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #7
  %209 = getelementptr inbounds %struct.b2WheelJointDef, ptr %48, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %50, ptr align 8 %209, i64 8, i1 false), !tbaa.struct !44
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %51, ptr align 4 %45, i64 8, i1 false), !tbaa.struct !41
  %210 = load i64, ptr %50, align 4
  %211 = load <2 x float>, ptr %51, align 4
  %212 = call <2 x float> @b2Body_GetLocalVector(i64 %210, <2 x float> %211)
  store <2 x float> %212, ptr %49, align 4
  %213 = getelementptr inbounds %struct.b2WheelJointDef, ptr %48, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %213, ptr align 4 %49, i64 8, i1 false), !tbaa.struct !41
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #7
  %214 = getelementptr inbounds %struct.b2WheelJointDef, ptr %48, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %53, ptr align 8 %214, i64 8, i1 false), !tbaa.struct !44
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %54, ptr align 4 %46, i64 8, i1 false), !tbaa.struct !41
  %215 = load i64, ptr %53, align 4
  %216 = load <2 x float>, ptr %54, align 4
  %217 = call <2 x float> @b2Body_GetLocalPoint(i64 %215, <2 x float> %216)
  store <2 x float> %217, ptr %52, align 4
  %218 = getelementptr inbounds %struct.b2WheelJointDef, ptr %48, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %218, ptr align 4 %52, i64 8, i1 false), !tbaa.struct !41
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #7
  %219 = getelementptr inbounds %struct.b2WheelJointDef, ptr %48, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %56, ptr align 8 %219, i64 8, i1 false), !tbaa.struct !44
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %57, ptr align 4 %46, i64 8, i1 false), !tbaa.struct !41
  %220 = load i64, ptr %56, align 4
  %221 = load <2 x float>, ptr %57, align 4
  %222 = call <2 x float> @b2Body_GetLocalPoint(i64 %220, <2 x float> %221)
  store <2 x float> %222, ptr %55, align 4
  %223 = getelementptr inbounds %struct.b2WheelJointDef, ptr %48, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %223, ptr align 4 %55, i64 8, i1 false), !tbaa.struct !41
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #7
  %224 = getelementptr inbounds %struct.b2WheelJointDef, ptr %48, i32 0, i32 13
  store float 0.000000e+00, ptr %224, align 8, !tbaa !47
  %225 = load float, ptr %15, align 4, !tbaa !9
  %226 = getelementptr inbounds %struct.b2WheelJointDef, ptr %48, i32 0, i32 12
  store float %225, ptr %226, align 4, !tbaa !49
  %227 = getelementptr inbounds %struct.b2WheelJointDef, ptr %48, i32 0, i32 11
  store i8 1, ptr %227, align 8, !tbaa !50
  %228 = load float, ptr %13, align 4, !tbaa !9
  %229 = getelementptr inbounds %struct.b2WheelJointDef, ptr %48, i32 0, i32 6
  store float %228, ptr %229, align 4, !tbaa !51
  %230 = load float, ptr %14, align 4, !tbaa !9
  %231 = getelementptr inbounds %struct.b2WheelJointDef, ptr %48, i32 0, i32 7
  store float %230, ptr %231, align 8, !tbaa !52
  %232 = load float, ptr %12, align 4, !tbaa !9
  %233 = fmul float -2.500000e-01, %232
  %234 = getelementptr inbounds %struct.b2WheelJointDef, ptr %48, i32 0, i32 9
  store float %233, ptr %234, align 8, !tbaa !53
  %235 = load float, ptr %12, align 4, !tbaa !9
  %236 = fmul float 2.500000e-01, %235
  %237 = getelementptr inbounds %struct.b2WheelJointDef, ptr %48, i32 0, i32 10
  store float %236, ptr %237, align 4, !tbaa !54
  %238 = getelementptr inbounds %struct.b2WheelJointDef, ptr %48, i32 0, i32 8
  store i8 1, ptr %238, align 4, !tbaa !55
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %59, ptr align 2 %9, i64 4, i1 false), !tbaa.struct !42
  %239 = load i32, ptr %59, align 2
  %240 = call i64 @b2CreateWheelJoint(i32 %239, ptr noundef %48)
  store i64 %240, ptr %58, align 4
  %241 = getelementptr inbounds %class.Car, ptr %73, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %241, ptr align 4 %58, i64 8, i1 false), !tbaa.struct !44
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #7
  %242 = getelementptr inbounds %class.Car, ptr %73, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %61, ptr align 4 %242, i64 8, i1 false), !tbaa.struct !44
  %243 = load i64, ptr %61, align 4
  %244 = call <2 x float> @b2Body_GetPosition(i64 %243)
  store <2 x float> %244, ptr %60, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %46, ptr align 4 %60, i64 8, i1 false), !tbaa.struct !41
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #7
  %245 = getelementptr inbounds %class.Car, ptr %73, i32 0, i32 0
  %246 = getelementptr inbounds %struct.b2WheelJointDef, ptr %48, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %246, ptr align 4 %245, i64 8, i1 false), !tbaa.struct !44
  %247 = getelementptr inbounds %class.Car, ptr %73, i32 0, i32 2
  %248 = getelementptr inbounds %struct.b2WheelJointDef, ptr %48, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %248, ptr align 4 %247, i64 8, i1 false), !tbaa.struct !44
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #7
  %249 = getelementptr inbounds %struct.b2WheelJointDef, ptr %48, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %63, ptr align 8 %249, i64 8, i1 false), !tbaa.struct !44
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %64, ptr align 4 %45, i64 8, i1 false), !tbaa.struct !41
  %250 = load i64, ptr %63, align 4
  %251 = load <2 x float>, ptr %64, align 4
  %252 = call <2 x float> @b2Body_GetLocalVector(i64 %250, <2 x float> %251)
  store <2 x float> %252, ptr %62, align 4
  %253 = getelementptr inbounds %struct.b2WheelJointDef, ptr %48, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %253, ptr align 4 %62, i64 8, i1 false), !tbaa.struct !41
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %65) #7
  %254 = getelementptr inbounds %struct.b2WheelJointDef, ptr %48, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %66, ptr align 8 %254, i64 8, i1 false), !tbaa.struct !44
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %67, ptr align 4 %46, i64 8, i1 false), !tbaa.struct !41
  %255 = load i64, ptr %66, align 4
  %256 = load <2 x float>, ptr %67, align 4
  %257 = call <2 x float> @b2Body_GetLocalPoint(i64 %255, <2 x float> %256)
  store <2 x float> %257, ptr %65, align 4
  %258 = getelementptr inbounds %struct.b2WheelJointDef, ptr %48, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %258, ptr align 4 %65, i64 8, i1 false), !tbaa.struct !41
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %68) #7
  %259 = getelementptr inbounds %struct.b2WheelJointDef, ptr %48, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %69, ptr align 8 %259, i64 8, i1 false), !tbaa.struct !44
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %70, ptr align 4 %46, i64 8, i1 false), !tbaa.struct !41
  %260 = load i64, ptr %69, align 4
  %261 = load <2 x float>, ptr %70, align 4
  %262 = call <2 x float> @b2Body_GetLocalPoint(i64 %260, <2 x float> %261)
  store <2 x float> %262, ptr %68, align 4
  %263 = getelementptr inbounds %struct.b2WheelJointDef, ptr %48, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %263, ptr align 4 %68, i64 8, i1 false), !tbaa.struct !41
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #7
  %264 = getelementptr inbounds %struct.b2WheelJointDef, ptr %48, i32 0, i32 13
  store float 0.000000e+00, ptr %264, align 8, !tbaa !47
  %265 = load float, ptr %15, align 4, !tbaa !9
  %266 = getelementptr inbounds %struct.b2WheelJointDef, ptr %48, i32 0, i32 12
  store float %265, ptr %266, align 4, !tbaa !49
  %267 = getelementptr inbounds %struct.b2WheelJointDef, ptr %48, i32 0, i32 11
  store i8 1, ptr %267, align 8, !tbaa !50
  %268 = load float, ptr %13, align 4, !tbaa !9
  %269 = getelementptr inbounds %struct.b2WheelJointDef, ptr %48, i32 0, i32 6
  store float %268, ptr %269, align 4, !tbaa !51
  %270 = load float, ptr %14, align 4, !tbaa !9
  %271 = getelementptr inbounds %struct.b2WheelJointDef, ptr %48, i32 0, i32 7
  store float %270, ptr %271, align 8, !tbaa !52
  %272 = load float, ptr %12, align 4, !tbaa !9
  %273 = fmul float -2.500000e-01, %272
  %274 = getelementptr inbounds %struct.b2WheelJointDef, ptr %48, i32 0, i32 9
  store float %273, ptr %274, align 8, !tbaa !53
  %275 = load float, ptr %12, align 4, !tbaa !9
  %276 = fmul float 2.500000e-01, %275
  %277 = getelementptr inbounds %struct.b2WheelJointDef, ptr %48, i32 0, i32 10
  store float %276, ptr %277, align 4, !tbaa !54
  %278 = getelementptr inbounds %struct.b2WheelJointDef, ptr %48, i32 0, i32 8
  store i8 1, ptr %278, align 4, !tbaa !55
  call void @llvm.lifetime.start.p0(i64 8, ptr %71) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %72, ptr align 2 %9, i64 4, i1 false), !tbaa.struct !42
  %279 = load i32, ptr %72, align 2
  %280 = call i64 @b2CreateWheelJoint(i32 %279, ptr noundef %48)
  store i64 %280, ptr %71, align 4
  %281 = getelementptr inbounds %class.Car, ptr %73, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %281, ptr align 4 %71, i64 8, i1 false), !tbaa.struct !44
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #7
  call void @llvm.lifetime.end.p0(i64 96, ptr %48) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 144, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 68, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %17) #7
  ret void
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

declare void @b2ComputeHull(ptr dead_on_unwind writable sret(%struct.b2Hull) align 4, ptr noundef, i32 noundef) #4

declare void @b2MakePolygon(ptr dead_on_unwind writable sret(%struct.b2Polygon) align 4, ptr noundef, float noundef) #4

declare void @b2DefaultShapeDef(ptr dead_on_unwind writable sret(%struct.b2ShapeDef) align 8) #4

declare void @b2DefaultBodyDef(ptr dead_on_unwind writable sret(%struct.b2BodyDef) align 8) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local <2 x float> @_Z5b2Add6b2Vec2S_(<2 x float>, <2 x float>) #5

declare i64 @b2CreateBody(i32, ptr noundef) #4

declare i64 @b2CreatePolygonShape(i64, ptr noundef, ptr noundef) #4

declare i64 @b2CreateCircleShape(i64, ptr noundef, ptr noundef) #4

declare <2 x float> @b2Body_GetPosition(i64) #4

declare void @b2DefaultWheelJointDef(ptr dead_on_unwind writable sret(%struct.b2WheelJointDef) align 8) #4

declare <2 x float> @b2Body_GetLocalVector(i64, <2 x float>) #4

declare <2 x float> @b2Body_GetLocalPoint(i64, <2 x float>) #4

declare i64 @b2CreateWheelJoint(i32, ptr noundef) #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !17, i64 40}
!12 = !{!"_ZTS3Car", !13, i64 0, !13, i64 8, !13, i64 16, !16, i64 24, !16, i64 32, !17, i64 40}
!13 = !{!"_ZTS8b2BodyId", !14, i64 0, !15, i64 4, !15, i64 6}
!14 = !{!"int", !7, i64 0}
!15 = !{!"short", !7, i64 0}
!16 = !{!"_ZTS9b2JointId", !14, i64 0, !15, i64 4, !15, i64 6}
!17 = !{!"bool", !7, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!12, !14, i64 0}
!21 = !{!12, !14, i64 16}
!22 = !{!12, !14, i64 8}
!23 = !{!14, !14, i64 0}
!24 = !{!25, !10, i64 0}
!25 = !{!"_ZTS6b2Vec2", !10, i64 0, !10, i64 4}
!26 = !{!25, !10, i64 4}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!30, !10, i64 32}
!30 = !{!"_ZTS10b2ShapeDef", !6, i64 0, !31, i64 8, !10, i64 32, !32, i64 40, !17, i64 64, !17, i64 65, !17, i64 66, !17, i64 67, !17, i64 68, !17, i64 69, !17, i64 70, !14, i64 72}
!31 = !{!"_ZTS17b2SurfaceMaterial", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !14, i64 16, !14, i64 20}
!32 = !{!"_ZTS8b2Filter", !33, i64 0, !33, i64 8, !14, i64 16}
!33 = !{!"long", !7, i64 0}
!34 = !{!30, !10, i64 8}
!35 = !{!36, !10, i64 8}
!36 = !{!"_ZTS8b2Circle", !25, i64 0, !10, i64 8}
!37 = !{!38, !39, i64 0}
!38 = !{!"_ZTS9b2BodyDef", !39, i64 0, !25, i64 4, !40, i64 12, !25, i64 20, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !6, i64 48, !6, i64 56, !17, i64 64, !17, i64 65, !17, i64 66, !17, i64 67, !17, i64 68, !17, i64 69, !14, i64 72}
!39 = !{!"_ZTS10b2BodyType", !7, i64 0}
!40 = !{!"_ZTS5b2Rot", !10, i64 0, !10, i64 4}
!41 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}
!42 = !{i64 0, i64 2, !43, i64 2, i64 2, !43}
!43 = !{!15, !15, i64 0}
!44 = !{i64 0, i64 4, !23, i64 4, i64 2, !43, i64 6, i64 2, !43}
!45 = !{!30, !10, i64 16}
!46 = !{!38, !17, i64 69}
!47 = !{!48, !10, i64 72}
!48 = !{!"_ZTS15b2WheelJointDef", !13, i64 0, !13, i64 8, !25, i64 16, !25, i64 24, !25, i64 32, !17, i64 40, !10, i64 44, !10, i64 48, !17, i64 52, !10, i64 56, !10, i64 60, !17, i64 64, !10, i64 68, !10, i64 72, !17, i64 76, !6, i64 80, !14, i64 88}
!49 = !{!48, !10, i64 68}
!50 = !{!48, !17, i64 64}
!51 = !{!48, !10, i64 44}
!52 = !{!48, !10, i64 48}
!53 = !{!48, !10, i64 56}
!54 = !{!48, !10, i64 60}
!55 = !{!48, !17, i64 52}


; 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.b2Vec2 = type { float, float }
%struct.b2Hull = type { [8 x %struct.b2Vec2], i32 }
%struct.b2Polygon = type { [8 x %struct.b2Vec2], [8 x %struct.b2Vec2], %struct.b2Vec2, float, i32 }
%struct.b2ShapeDef = type { ptr, %struct.b2SurfaceMaterial, float, %struct.b2Filter, i8, i8, i8, i8, i8, i8, i8, i32 }
%struct.b2SurfaceMaterial = type { float, float, float, float, i32, i32 }
%struct.b2Filter = type { i64, i64, i32 }
%struct.b2Circle = type { %struct.b2Vec2, float }
%struct.b2BodyDef = type { i32, %struct.b2Vec2, %struct.b2Rot, %struct.b2Vec2, float, float, float, float, float, ptr, ptr, i8, i8, i8, i8, i8, i8, i32 }
%struct.b2Rot = type { 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 }

@.str = external hidden unnamed_addr constant [21 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [65 x i8], align 1
@__PRETTY_FUNCTION__._ZN3Car5SpawnE9b2WorldId6b2Vec2ffffPv = external hidden unnamed_addr constant [71 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [28 x i8], align 1
@__const._ZN3Car5SpawnE9b2WorldId6b2Vec2ffffPv.vertices = external hidden unnamed_addr constant [6 x %struct.b2Vec2], align 16
@__const._ZN3Car5SpawnE9b2WorldId6b2Vec2ffffPv.axis = external hidden unnamed_addr constant %struct.b2Vec2, align 4

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

; Function Attrs: mustprogress 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3Car5SpawnE9b2WorldId6b2Vec2ffffPv(ptr nocapture noundef nonnull align 4 dereferenceable(41) %0, i32 %1, <2 x float> %2, float noundef %3, float noundef %4, float noundef %5, float noundef %6, ptr nocapture noundef readnone %7) local_unnamed_addr #2 align 2 {
  %9 = alloca [6 x %struct.b2Vec2], align 16
  %10 = alloca %struct.b2Hull, align 4
  %11 = alloca %struct.b2Polygon, align 4
  %12 = alloca %struct.b2ShapeDef, align 8
  %13 = alloca %struct.b2Circle, align 8
  %14 = alloca %struct.b2BodyDef, align 8
  %15 = alloca %struct.b2WheelJointDef, align 16
  %16 = getelementptr inbounds i8, ptr %0, i64 40
  %17 = load i8, ptr %16, align 4, !tbaa !5, !range !14, !noundef !15
  %18 = icmp eq i8 %17, 0
  br i1 %18, label %20, label %19

19:                                               ; preds = %8
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 23, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3Car5SpawnE9b2WorldId6b2Vec2ffffPv) #6
  unreachable

20:                                               ; preds = %8
  %21 = load i32, ptr %0, align 4, !tbaa !16
  %22 = icmp eq i32 %21, 0
  br i1 %22, label %24, label %23

23:                                               ; preds = %20
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 25, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3Car5SpawnE9b2WorldId6b2Vec2ffffPv) #6
  unreachable

24:                                               ; preds = %20
  %25 = getelementptr inbounds i8, ptr %0, i64 16
  %26 = load i32, ptr %25, align 4, !tbaa !17
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %29, label %28

28:                                               ; preds = %24
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 26, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3Car5SpawnE9b2WorldId6b2Vec2ffffPv) #6
  unreachable

29:                                               ; preds = %24
  %30 = getelementptr inbounds i8, ptr %0, i64 8
  %31 = load i32, ptr %30, align 4, !tbaa !18
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %34, label %33

33:                                               ; preds = %29
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 27, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3Car5SpawnE9b2WorldId6b2Vec2ffffPv) #6
  unreachable

34:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %9) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(48) %9, ptr noundef nonnull align 16 dereferenceable(48) @__const._ZN3Car5SpawnE9b2WorldId6b2Vec2ffffPv.vertices, i64 48, i1 false)
  %35 = fmul float %3, 0x3FEB333340000000
  %36 = load <4 x float>, ptr %9, align 16, !tbaa !19
  %37 = insertelement <4 x float> poison, float %35, i64 0
  %38 = shufflevector <4 x float> %37, <4 x float> poison, <4 x i32> zeroinitializer
  %39 = fmul <4 x float> %38, %36
  store <4 x float> %39, ptr %9, align 16, !tbaa !19
  %40 = getelementptr inbounds i8, ptr %9, i64 16
  %41 = load <4 x float>, ptr %40, align 16, !tbaa !19
  %42 = fmul <4 x float> %38, %41
  store <4 x float> %42, ptr %40, align 16, !tbaa !19
  %43 = getelementptr inbounds i8, ptr %9, i64 32
  %44 = load <4 x float>, ptr %43, align 16, !tbaa !19
  %45 = fmul <4 x float> %38, %44
  store <4 x float> %45, ptr %43, align 16, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %10) #7
  call void @b2ComputeHull(ptr dead_on_unwind nonnull writable sret(%struct.b2Hull) align 4 %10, ptr noundef nonnull %9, i32 noundef 6)
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %11) #7
  %46 = fmul float %3, 0x3FC3333340000000
  call void @b2MakePolygon(ptr dead_on_unwind nonnull writable sret(%struct.b2Polygon) align 4 %11, ptr noundef nonnull %10, float noundef %46)
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %12) #7
  call void @b2DefaultShapeDef(ptr dead_on_unwind nonnull writable sret(%struct.b2ShapeDef) align 8 %12)
  %47 = fdiv float 1.000000e+00, %3
  %48 = getelementptr inbounds i8, ptr %12, i64 32
  store float %47, ptr %48, align 8, !tbaa !21
  %49 = getelementptr inbounds i8, ptr %12, i64 8
  store float 0x3FC99999A0000000, ptr %49, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #7
  store <2 x float> zeroinitializer, ptr %13, align 8, !tbaa !19
  %50 = getelementptr inbounds i8, ptr %13, i64 8
  %51 = fmul float %3, 0x3FD99999A0000000
  store float %51, ptr %50, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %14) #7
  call void @b2DefaultBodyDef(ptr dead_on_unwind nonnull writable sret(%struct.b2BodyDef) align 8 %14)
  store i32 2, ptr %14, align 8, !tbaa !31
  %.sroa.052.4.vec.insert = insertelement <2 x float> <float 0.000000e+00, float poison>, float %3, i64 1
  %52 = call <2 x float> @_Z5b2Add6b2Vec2S_(<2 x float> %.sroa.052.4.vec.insert, <2 x float> %2)
  %53 = getelementptr inbounds i8, ptr %14, i64 4
  store <2 x float> %52, ptr %53, align 4
  %54 = call i64 @b2CreateBody(i32 %1, ptr noundef nonnull %14)
  store i64 %54, ptr %0, align 4
  %55 = call i64 @b2CreatePolygonShape(i64 %54, ptr noundef nonnull %12, ptr noundef nonnull %11)
  %56 = fdiv float 2.000000e+00, %3
  store float %56, ptr %48, align 8, !tbaa !21
  store float 1.500000e+00, ptr %49, align 8, !tbaa !27
  %57 = getelementptr inbounds i8, ptr %12, i64 16
  store float 0x3FB99999A0000000, ptr %57, align 8, !tbaa !35
  %58 = fneg float %3
  %.sroa.044.0.vec.insert = insertelement <2 x float> poison, float %58, i64 0
  %59 = fmul float %3, 0x3FD6666660000000
  %.sroa.044.4.vec.insert = insertelement <2 x float> %.sroa.044.0.vec.insert, float %59, i64 1
  %60 = call <2 x float> @_Z5b2Add6b2Vec2S_(<2 x float> %.sroa.044.4.vec.insert, <2 x float> %2)
  store <2 x float> %60, ptr %53, align 4
  %61 = getelementptr inbounds i8, ptr %14, i64 69
  store i8 1, ptr %61, align 1, !tbaa !36
  %62 = call i64 @b2CreateBody(i32 %1, ptr noundef nonnull %14)
  store i64 %62, ptr %30, align 4
  %63 = call i64 @b2CreateCircleShape(i64 %62, ptr noundef nonnull %12, ptr noundef nonnull %13)
  %.sroa.036.0.vec.insert = insertelement <2 x float> poison, float %3, i64 0
  %.sroa.036.4.vec.insert = insertelement <2 x float> %.sroa.036.0.vec.insert, float %51, i64 1
  %64 = call <2 x float> @_Z5b2Add6b2Vec2S_(<2 x float> %.sroa.036.4.vec.insert, <2 x float> %2)
  store <2 x float> %64, ptr %53, align 4
  store i8 1, ptr %61, align 1, !tbaa !36
  %65 = call i64 @b2CreateBody(i32 %1, ptr noundef nonnull %14)
  store i64 %65, ptr %25, align 4
  %66 = call i64 @b2CreateCircleShape(i64 %65, ptr noundef nonnull %12, ptr noundef nonnull %13)
  %.sroa.029.0.copyload = load <2 x float>, ptr @__const._ZN3Car5SpawnE9b2WorldId6b2Vec2ffffPv.axis, align 4
  %.sroa.024.0.copyload = load i64, ptr %30, align 4
  %67 = call <2 x float> @b2Body_GetPosition(i64 %.sroa.024.0.copyload)
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %15) #7
  call void @b2DefaultWheelJointDef(ptr dead_on_unwind nonnull writable sret(%struct.b2WheelJointDef) align 8 %15)
  %68 = getelementptr inbounds i8, ptr %15, i64 8
  %69 = load <2 x i64>, ptr %0, align 4
  store <2 x i64> %69, ptr %15, align 16
  %70 = extractelement <2 x i64> %69, i64 0
  %71 = call <2 x float> @b2Body_GetLocalVector(i64 %70, <2 x float> %.sroa.029.0.copyload)
  %72 = getelementptr inbounds i8, ptr %15, i64 32
  store <2 x float> %71, ptr %72, align 16
  %.sroa.019.0.copyload = load i64, ptr %15, align 16
  %73 = call <2 x float> @b2Body_GetLocalPoint(i64 %.sroa.019.0.copyload, <2 x float> %67)
  %74 = getelementptr inbounds i8, ptr %15, i64 16
  store <2 x float> %73, ptr %74, align 16
  %.sroa.016.0.copyload = load i64, ptr %68, align 8
  %75 = call <2 x float> @b2Body_GetLocalPoint(i64 %.sroa.016.0.copyload, <2 x float> %67)
  %76 = getelementptr inbounds i8, ptr %15, i64 24
  store <2 x float> %75, ptr %76, align 8
  %77 = getelementptr inbounds i8, ptr %15, i64 72
  store float 0.000000e+00, ptr %77, align 8, !tbaa !37
  %78 = getelementptr inbounds i8, ptr %15, i64 68
  store float %6, ptr %78, align 4, !tbaa !39
  %79 = getelementptr inbounds i8, ptr %15, i64 64
  store i8 1, ptr %79, align 16, !tbaa !40
  %80 = getelementptr inbounds i8, ptr %15, i64 44
  store float %4, ptr %80, align 4, !tbaa !41
  %81 = getelementptr inbounds i8, ptr %15, i64 48
  store float %5, ptr %81, align 16, !tbaa !42
  %82 = insertelement <2 x float> poison, float %3, i64 0
  %83 = shufflevector <2 x float> %82, <2 x float> poison, <2 x i32> zeroinitializer
  %84 = fmul <2 x float> %83, <float -2.500000e-01, float 2.500000e-01>
  %85 = getelementptr inbounds i8, ptr %15, i64 56
  store <2 x float> %84, ptr %85, align 8, !tbaa !19
  %86 = getelementptr inbounds i8, ptr %15, i64 52
  store i8 1, ptr %86, align 4, !tbaa !43
  %87 = call i64 @b2CreateWheelJoint(i32 %1, ptr noundef nonnull %15)
  %88 = getelementptr inbounds i8, ptr %0, i64 24
  store i64 %87, ptr %88, align 4
  %.sroa.011.0.copyload = load i64, ptr %25, align 4
  %89 = call <2 x float> @b2Body_GetPosition(i64 %.sroa.011.0.copyload)
  %90 = load i64, ptr %0, align 4
  store i64 %90, ptr %15, align 16
  %91 = load i64, ptr %25, align 4
  store i64 %91, ptr %68, align 8
  %92 = call <2 x float> @b2Body_GetLocalVector(i64 %90, <2 x float> %.sroa.029.0.copyload)
  store <2 x float> %92, ptr %72, align 16
  %.sroa.06.0.copyload = load i64, ptr %15, align 16
  %93 = call <2 x float> @b2Body_GetLocalPoint(i64 %.sroa.06.0.copyload, <2 x float> %89)
  store <2 x float> %93, ptr %74, align 16
  %.sroa.03.0.copyload = load i64, ptr %68, align 8
  %94 = call <2 x float> @b2Body_GetLocalPoint(i64 %.sroa.03.0.copyload, <2 x float> %89)
  store <2 x float> %94, ptr %76, align 8
  store float 0.000000e+00, ptr %77, align 8, !tbaa !37
  store float %6, ptr %78, align 4, !tbaa !39
  store i8 1, ptr %79, align 16, !tbaa !40
  store float %4, ptr %80, align 4, !tbaa !41
  store float %5, ptr %81, align 16, !tbaa !42
  store <2 x float> %84, ptr %85, align 8, !tbaa !19
  store i8 1, ptr %86, align 4, !tbaa !43
  %95 = call i64 @b2CreateWheelJoint(i32 %1, ptr noundef nonnull %15)
  %96 = getelementptr inbounds i8, ptr %0, i64 32
  store i64 %95, ptr %96, align 4
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #7
  ret void
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare void @b2ComputeHull(ptr dead_on_unwind writable sret(%struct.b2Hull) align 4, ptr noundef, i32 noundef) local_unnamed_addr #4

declare void @b2MakePolygon(ptr dead_on_unwind writable sret(%struct.b2Polygon) align 4, ptr noundef, float noundef) local_unnamed_addr #4

declare void @b2DefaultShapeDef(ptr dead_on_unwind writable sret(%struct.b2ShapeDef) align 8) local_unnamed_addr #4

declare void @b2DefaultBodyDef(ptr dead_on_unwind writable sret(%struct.b2BodyDef) align 8) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local <2 x float> @_Z5b2Add6b2Vec2S_(<2 x float>, <2 x float>) local_unnamed_addr #5

declare i64 @b2CreateBody(i32, ptr noundef) local_unnamed_addr #4

declare i64 @b2CreatePolygonShape(i64, ptr noundef, ptr noundef) local_unnamed_addr #4

declare i64 @b2CreateCircleShape(i64, ptr noundef, ptr noundef) local_unnamed_addr #4

declare <2 x float> @b2Body_GetPosition(i64) local_unnamed_addr #4

declare void @b2DefaultWheelJointDef(ptr dead_on_unwind writable sret(%struct.b2WheelJointDef) align 8) local_unnamed_addr #4

declare <2 x float> @b2Body_GetLocalVector(i64, <2 x float>) local_unnamed_addr #4

declare <2 x float> @b2Body_GetLocalPoint(i64, <2 x float>) local_unnamed_addr #4

declare i64 @b2CreateWheelJoint(i32, ptr noundef) local_unnamed_addr #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !13, i64 40}
!6 = !{!"_ZTS3Car", !7, i64 0, !7, i64 8, !7, i64 16, !12, i64 24, !12, i64 32, !13, i64 40}
!7 = !{!"_ZTS8b2BodyId", !8, i64 0, !11, i64 4, !11, i64 6}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"short", !9, i64 0}
!12 = !{!"_ZTS9b2JointId", !8, i64 0, !11, i64 4, !11, i64 6}
!13 = !{!"bool", !9, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!6, !8, i64 0}
!17 = !{!6, !8, i64 16}
!18 = !{!6, !8, i64 8}
!19 = !{!20, !20, i64 0}
!20 = !{!"float", !9, i64 0}
!21 = !{!22, !20, i64 32}
!22 = !{!"_ZTS10b2ShapeDef", !23, i64 0, !24, i64 8, !20, i64 32, !25, i64 40, !13, i64 64, !13, i64 65, !13, i64 66, !13, i64 67, !13, i64 68, !13, i64 69, !13, i64 70, !8, i64 72}
!23 = !{!"any pointer", !9, i64 0}
!24 = !{!"_ZTS17b2SurfaceMaterial", !20, i64 0, !20, i64 4, !20, i64 8, !20, i64 12, !8, i64 16, !8, i64 20}
!25 = !{!"_ZTS8b2Filter", !26, i64 0, !26, i64 8, !8, i64 16}
!26 = !{!"long", !9, i64 0}
!27 = !{!22, !20, i64 8}
!28 = !{!29, !20, i64 8}
!29 = !{!"_ZTS8b2Circle", !30, i64 0, !20, i64 8}
!30 = !{!"_ZTS6b2Vec2", !20, i64 0, !20, i64 4}
!31 = !{!32, !33, i64 0}
!32 = !{!"_ZTS9b2BodyDef", !33, i64 0, !30, i64 4, !34, i64 12, !30, i64 20, !20, i64 28, !20, i64 32, !20, i64 36, !20, i64 40, !20, i64 44, !23, i64 48, !23, i64 56, !13, i64 64, !13, i64 65, !13, i64 66, !13, i64 67, !13, i64 68, !13, i64 69, !8, i64 72}
!33 = !{!"_ZTS10b2BodyType", !9, i64 0}
!34 = !{!"_ZTS5b2Rot", !20, i64 0, !20, i64 4}
!35 = !{!22, !20, i64 16}
!36 = !{!32, !13, i64 69}
!37 = !{!38, !20, i64 72}
!38 = !{!"_ZTS15b2WheelJointDef", !7, i64 0, !7, i64 8, !30, i64 16, !30, i64 24, !30, i64 32, !13, i64 40, !20, i64 44, !20, i64 48, !13, i64 52, !20, i64 56, !20, i64 60, !13, i64 64, !20, i64 68, !20, i64 72, !13, i64 76, !23, i64 80, !8, i64 88}
!39 = !{!38, !20, i64 68}
!40 = !{!38, !13, i64 64}
!41 = !{!38, !20, i64 44}
!42 = !{!38, !20, i64 48}
!43 = !{!38, !13, i64 52}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass