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

; 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.b2MassData = type { float, %struct.b2Vec2, float }
%struct.b2Vec2 = type { float, float }
%struct.b2Circle = type { %struct.b2Vec2, float }
%struct.b2Capsule = type { %struct.b2Vec2, %struct.b2Vec2, float }
%struct.b2Polygon = type { [8 x %struct.b2Vec2], [8 x %struct.b2Vec2], %struct.b2Vec2, float, i32 }

@.str.1 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [19 x i8], align 1

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; 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) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2Sub(<2 x float>, <2 x float>) #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @b2Dot(<2 x float>, <2 x float>) #5

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #7

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

; Function Attrs: nounwind uwtable
define dso_local { <2 x float>, <2 x float> } @b2ComputePolygonMass(ptr noundef %0, float noundef %1) #6 {
  %3 = alloca %struct.b2MassData, align 4
  %4 = alloca ptr, align 8
  %5 = alloca float, align 4
  %6 = alloca %struct.b2Circle, align 4
  %7 = alloca %struct.b2Capsule, align 4
  %8 = alloca [8 x %struct.b2Vec2], align 16
  %9 = alloca i32, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %struct.b2Vec2, align 4
  %15 = alloca %struct.b2Vec2, align 4
  %16 = alloca %struct.b2Vec2, align 4
  %17 = alloca %struct.b2Vec2, align 4
  %18 = alloca %struct.b2Vec2, align 4
  %19 = alloca i32, align 4
  %20 = alloca %struct.b2Vec2, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca %struct.b2Vec2, align 4
  %24 = alloca float, align 4
  %25 = alloca i32, align 4
  %26 = alloca %struct.b2Vec2, align 4
  %27 = alloca %struct.b2Vec2, align 4
  %28 = alloca float, align 4
  %29 = alloca float, align 4
  %30 = alloca %struct.b2Vec2, align 4
  %31 = alloca %struct.b2Vec2, align 4
  %32 = alloca float, align 4
  %33 = alloca float, align 4
  %34 = alloca float, align 4
  %35 = alloca float, align 4
  %36 = alloca float, align 4
  %37 = alloca float, align 4
  %38 = alloca float, align 4
  %39 = alloca %struct.b2Vec2, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store float %1, ptr %5, align 4, !tbaa !9
  br label %40

40:                                               ; preds = %2
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.b2Polygon, ptr %41, i32 0, i32 4
  %43 = load i32, ptr %42, align 4, !tbaa !11
  %44 = icmp sgt i32 %43, 0
  br i1 %44, label %49, label %45

45:                                               ; preds = %40
  %46 = call i32 @b2InternalAssertFcn(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 302)
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %49

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

49:                                               ; preds = %48, %45, %40
  br label %50

50:                                               ; preds = %49
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.b2Polygon, ptr %51, i32 0, i32 4
  %53 = load i32, ptr %52, align 4, !tbaa !11
  %54 = icmp eq i32 %53, 1
  br i1 %54, label %55, label %70

55:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 12, ptr %6) #8
  %56 = getelementptr inbounds %struct.b2Circle, ptr %6, i32 0, i32 0
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.b2Polygon, ptr %57, i32 0, i32 0
  %59 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %58, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %56, ptr align 4 %59, i64 8, i1 false), !tbaa.struct !15
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.b2Polygon, ptr %60, i32 0, i32 3
  %62 = load float, ptr %61, align 4, !tbaa !16
  %63 = getelementptr inbounds %struct.b2Circle, ptr %6, i32 0, i32 1
  store float %62, ptr %63, align 4, !tbaa !17
  %64 = load float, ptr %5, align 4, !tbaa !9
  %65 = call { <2 x float>, <2 x float> } @b2ComputeCircleMass(ptr noundef %6, float noundef %64)
  %66 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %3, i32 0, i32 0
  %67 = extractvalue { <2 x float>, <2 x float> } %65, 0
  store <2 x float> %67, ptr %66, align 4
  %68 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %3, i32 0, i32 1
  %69 = extractvalue { <2 x float>, <2 x float> } %65, 1
  store <2 x float> %69, ptr %68, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %6) #8
  br label %293

70:                                               ; preds = %50
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.b2Polygon, ptr %71, i32 0, i32 4
  %73 = load i32, ptr %72, align 4, !tbaa !11
  %74 = icmp eq i32 %73, 2
  br i1 %74, label %75, label %94

75:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 20, ptr %7) #8
  %76 = getelementptr inbounds %struct.b2Capsule, ptr %7, i32 0, i32 0
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.b2Polygon, ptr %77, i32 0, i32 0
  %79 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %78, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %76, ptr align 4 %79, i64 8, i1 false), !tbaa.struct !15
  %80 = getelementptr inbounds %struct.b2Capsule, ptr %7, i32 0, i32 1
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.b2Polygon, ptr %81, i32 0, i32 0
  %83 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %82, i64 0, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %80, ptr align 4 %83, i64 8, i1 false), !tbaa.struct !15
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.b2Polygon, ptr %84, i32 0, i32 3
  %86 = load float, ptr %85, align 4, !tbaa !16
  %87 = getelementptr inbounds %struct.b2Capsule, ptr %7, i32 0, i32 2
  store float %86, ptr %87, align 4, !tbaa !19
  %88 = load float, ptr %5, align 4, !tbaa !9
  %89 = call { <2 x float>, <2 x float> } @b2ComputeCapsuleMass(ptr noundef %7, float noundef %88)
  %90 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %3, i32 0, i32 0
  %91 = extractvalue { <2 x float>, <2 x float> } %89, 0
  store <2 x float> %91, ptr %90, align 4
  %92 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %3, i32 0, i32 1
  %93 = extractvalue { <2 x float>, <2 x float> } %89, 1
  store <2 x float> %93, ptr %92, align 4
  call void @llvm.lifetime.end.p0(i64 20, ptr %7) #8
  br label %293

94:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 64, ptr %8) #8
  call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 64, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.b2Polygon, ptr %95, i32 0, i32 4
  %97 = load i32, ptr %96, align 4, !tbaa !11
  store i32 %97, ptr %9, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.b2Polygon, ptr %98, i32 0, i32 3
  %100 = load float, ptr %99, align 4, !tbaa !16
  store float %100, ptr %10, align 4, !tbaa !9
  %101 = load float, ptr %10, align 4, !tbaa !9
  %102 = fcmp ogt float %101, 0.000000e+00
  br i1 %102, label %103, label %153

103:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store float 0x3FF6978D40000000, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !21
  br label %104

104:                                              ; preds = %149, %103
  %105 = load i32, ptr %12, align 4, !tbaa !21
  %106 = load i32, ptr %9, align 4, !tbaa !21
  %107 = icmp slt i32 %105, %106
  br i1 %107, label %109, label %108

108:                                              ; preds = %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %152

109:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %110 = load i32, ptr %12, align 4, !tbaa !21
  %111 = icmp eq i32 %110, 0
  br i1 %111, label %112, label %115

112:                                              ; preds = %109
  %113 = load i32, ptr %9, align 4, !tbaa !21
  %114 = sub nsw i32 %113, 1
  br label %118

115:                                              ; preds = %109
  %116 = load i32, ptr %12, align 4, !tbaa !21
  %117 = sub nsw i32 %116, 1
  br label %118

118:                                              ; preds = %115, %112
  %119 = phi i32 [ %114, %112 ], [ %117, %115 ]
  store i32 %119, ptr %13, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.b2Polygon, ptr %120, i32 0, i32 1
  %122 = load i32, ptr %13, align 4, !tbaa !21
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %121, i64 0, i64 %123
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %124, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.b2Polygon, ptr %125, i32 0, i32 1
  %127 = load i32, ptr %12, align 4, !tbaa !21
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %126, i64 0, i64 %128
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %129, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %130 = load <2 x float>, ptr %14, align 4
  %131 = load <2 x float>, ptr %15, align 4
  %132 = call <2 x float> @b2Add(<2 x float> %130, <2 x float> %131)
  store <2 x float> %132, ptr %17, align 4
  %133 = load <2 x float>, ptr %17, align 4
  %134 = call <2 x float> @b2Normalize(<2 x float> %133)
  store <2 x float> %134, ptr %16, align 4
  %135 = load i32, ptr %12, align 4, !tbaa !21
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %8, i64 0, i64 %136
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.b2Polygon, ptr %138, i32 0, i32 0
  %140 = load i32, ptr %12, align 4, !tbaa !21
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %139, i64 0, i64 %141
  %143 = load float, ptr %11, align 4, !tbaa !9
  %144 = load float, ptr %10, align 4, !tbaa !9
  %145 = fmul float %143, %144
  %146 = load <2 x float>, ptr %142, align 4
  %147 = load <2 x float>, ptr %16, align 4
  %148 = call <2 x float> @b2MulAdd(<2 x float> %146, float noundef %145, <2 x float> %147)
  store <2 x float> %148, ptr %18, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %137, ptr align 4 %18, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %149

149:                                              ; preds = %118
  %150 = load i32, ptr %12, align 4, !tbaa !21
  %151 = add nsw i32 %150, 1
  store i32 %151, ptr %12, align 4, !tbaa !21
  br label %104, !llvm.loop !22

152:                                              ; preds = %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %172

153:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 0, ptr %19, align 4, !tbaa !21
  br label %154

154:                                              ; preds = %168, %153
  %155 = load i32, ptr %19, align 4, !tbaa !21
  %156 = load i32, ptr %9, align 4, !tbaa !21
  %157 = icmp slt i32 %155, %156
  br i1 %157, label %159, label %158

158:                                              ; preds = %154
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %171

159:                                              ; preds = %154
  %160 = load i32, ptr %19, align 4, !tbaa !21
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %8, i64 0, i64 %161
  %163 = load ptr, ptr %4, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.b2Polygon, ptr %163, i32 0, i32 0
  %165 = load i32, ptr %19, align 4, !tbaa !21
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %164, i64 0, i64 %166
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %162, ptr align 4 %167, i64 8, i1 false), !tbaa.struct !15
  br label %168

168:                                              ; preds = %159
  %169 = load i32, ptr %19, align 4, !tbaa !21
  %170 = add nsw i32 %169, 1
  store i32 %170, ptr %19, align 4, !tbaa !21
  br label %154, !llvm.loop !24

171:                                              ; preds = %158
  br label %172

172:                                              ; preds = %171, %152
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  call void @llvm.memset.p0.i64(ptr align 4 %20, i8 0, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store float 0.000000e+00, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store float 0.000000e+00, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %173 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %8, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 16 %173, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  store float 0x3FD5555560000000, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  store i32 1, ptr %25, align 4, !tbaa !21
  br label %174

174:                                              ; preds = %243, %172
  %175 = load i32, ptr %25, align 4, !tbaa !21
  %176 = load i32, ptr %9, align 4, !tbaa !21
  %177 = sub nsw i32 %176, 1
  %178 = icmp slt i32 %175, %177
  br i1 %178, label %180, label %179

179:                                              ; preds = %174
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %246

180:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %181 = load i32, ptr %25, align 4, !tbaa !21
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %8, i64 0, i64 %182
  %184 = load <2 x float>, ptr %183, align 8
  %185 = load <2 x float>, ptr %23, align 4
  %186 = call <2 x float> @b2Sub(<2 x float> %184, <2 x float> %185)
  store <2 x float> %186, ptr %26, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %187 = load i32, ptr %25, align 4, !tbaa !21
  %188 = add nsw i32 %187, 1
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %8, i64 0, i64 %189
  %191 = load <2 x float>, ptr %190, align 8
  %192 = load <2 x float>, ptr %23, align 4
  %193 = call <2 x float> @b2Sub(<2 x float> %191, <2 x float> %192)
  store <2 x float> %193, ptr %27, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  %194 = load <2 x float>, ptr %26, align 4
  %195 = load <2 x float>, ptr %27, align 4
  %196 = call float @b2Cross(<2 x float> %194, <2 x float> %195)
  store float %196, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  %197 = load float, ptr %28, align 4, !tbaa !9
  %198 = fmul float 5.000000e-01, %197
  store float %198, ptr %29, align 4, !tbaa !9
  %199 = load float, ptr %29, align 4, !tbaa !9
  %200 = load float, ptr %21, align 4, !tbaa !9
  %201 = fadd float %200, %199
  store float %201, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %202 = load float, ptr %29, align 4, !tbaa !9
  %203 = fmul float %202, 0x3FD5555560000000
  %204 = load <2 x float>, ptr %26, align 4
  %205 = load <2 x float>, ptr %27, align 4
  %206 = call <2 x float> @b2Add(<2 x float> %204, <2 x float> %205)
  store <2 x float> %206, ptr %31, align 4
  %207 = load <2 x float>, ptr %20, align 4
  %208 = load <2 x float>, ptr %31, align 4
  %209 = call <2 x float> @b2MulAdd(<2 x float> %207, float noundef %203, <2 x float> %208)
  store <2 x float> %209, ptr %30, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %30, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  %210 = getelementptr inbounds %struct.b2Vec2, ptr %26, i32 0, i32 0
  %211 = load float, ptr %210, align 4, !tbaa !25
  store float %211, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  %212 = getelementptr inbounds %struct.b2Vec2, ptr %26, i32 0, i32 1
  %213 = load float, ptr %212, align 4, !tbaa !26
  store float %213, ptr %33, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  %214 = getelementptr inbounds %struct.b2Vec2, ptr %27, i32 0, i32 0
  %215 = load float, ptr %214, align 4, !tbaa !25
  store float %215, ptr %34, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  %216 = getelementptr inbounds %struct.b2Vec2, ptr %27, i32 0, i32 1
  %217 = load float, ptr %216, align 4, !tbaa !26
  store float %217, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  %218 = load float, ptr %32, align 4, !tbaa !9
  %219 = load float, ptr %32, align 4, !tbaa !9
  %220 = load float, ptr %34, align 4, !tbaa !9
  %221 = load float, ptr %32, align 4, !tbaa !9
  %222 = fmul float %220, %221
  %223 = call float @llvm.fmuladd.f32(float %218, float %219, float %222)
  %224 = load float, ptr %34, align 4, !tbaa !9
  %225 = load float, ptr %34, align 4, !tbaa !9
  %226 = call float @llvm.fmuladd.f32(float %224, float %225, float %223)
  store float %226, ptr %36, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  %227 = load float, ptr %33, align 4, !tbaa !9
  %228 = load float, ptr %33, align 4, !tbaa !9
  %229 = load float, ptr %35, align 4, !tbaa !9
  %230 = load float, ptr %33, align 4, !tbaa !9
  %231 = fmul float %229, %230
  %232 = call float @llvm.fmuladd.f32(float %227, float %228, float %231)
  %233 = load float, ptr %35, align 4, !tbaa !9
  %234 = load float, ptr %35, align 4, !tbaa !9
  %235 = call float @llvm.fmuladd.f32(float %233, float %234, float %232)
  store float %235, ptr %37, align 4, !tbaa !9
  %236 = load float, ptr %28, align 4, !tbaa !9
  %237 = fmul float 0x3FB5555560000000, %236
  %238 = load float, ptr %36, align 4, !tbaa !9
  %239 = load float, ptr %37, align 4, !tbaa !9
  %240 = fadd float %238, %239
  %241 = load float, ptr %22, align 4, !tbaa !9
  %242 = call float @llvm.fmuladd.f32(float %237, float %240, float %241)
  store float %242, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  br label %243

243:                                              ; preds = %180
  %244 = load i32, ptr %25, align 4, !tbaa !21
  %245 = add nsw i32 %244, 1
  store i32 %245, ptr %25, align 4, !tbaa !21
  br label %174, !llvm.loop !27

246:                                              ; preds = %179
  %247 = load float, ptr %5, align 4, !tbaa !9
  %248 = load float, ptr %21, align 4, !tbaa !9
  %249 = fmul float %247, %248
  %250 = getelementptr inbounds %struct.b2MassData, ptr %3, i32 0, i32 0
  store float %249, ptr %250, align 4, !tbaa !28
  br label %251

251:                                              ; preds = %246
  %252 = load float, ptr %21, align 4, !tbaa !9
  %253 = fcmp ogt float %252, 0x3E80000000000000
  br i1 %253, label %258, label %254

254:                                              ; preds = %251
  %255 = call i32 @b2InternalAssertFcn(ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 386)
  %256 = icmp ne i32 %255, 0
  br i1 %256, label %257, label %258

257:                                              ; preds = %254
  call void @llvm.trap()
  br label %258

258:                                              ; preds = %257, %254, %251
  br label %259

259:                                              ; preds = %258
  br label %260

260:                                              ; preds = %259
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #8
  %261 = load float, ptr %21, align 4, !tbaa !9
  %262 = fdiv float 1.000000e+00, %261
  store float %262, ptr %38, align 4, !tbaa !9
  %263 = load float, ptr %38, align 4, !tbaa !9
  %264 = getelementptr inbounds %struct.b2Vec2, ptr %20, i32 0, i32 0
  %265 = load float, ptr %264, align 4, !tbaa !25
  %266 = fmul float %265, %263
  store float %266, ptr %264, align 4, !tbaa !25
  %267 = load float, ptr %38, align 4, !tbaa !9
  %268 = getelementptr inbounds %struct.b2Vec2, ptr %20, i32 0, i32 1
  %269 = load float, ptr %268, align 4, !tbaa !26
  %270 = fmul float %269, %267
  store float %270, ptr %268, align 4, !tbaa !26
  %271 = getelementptr inbounds %struct.b2MassData, ptr %3, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  %272 = load <2 x float>, ptr %23, align 4
  %273 = load <2 x float>, ptr %20, align 4
  %274 = call <2 x float> @b2Add(<2 x float> %272, <2 x float> %273)
  store <2 x float> %274, ptr %39, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %271, ptr align 4 %39, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  %275 = load float, ptr %5, align 4, !tbaa !9
  %276 = load float, ptr %22, align 4, !tbaa !9
  %277 = fmul float %275, %276
  %278 = getelementptr inbounds %struct.b2MassData, ptr %3, i32 0, i32 2
  store float %277, ptr %278, align 4, !tbaa !30
  %279 = getelementptr inbounds %struct.b2MassData, ptr %3, i32 0, i32 0
  %280 = load float, ptr %279, align 4, !tbaa !28
  %281 = getelementptr inbounds %struct.b2MassData, ptr %3, i32 0, i32 1
  %282 = getelementptr inbounds %struct.b2MassData, ptr %3, i32 0, i32 1
  %283 = load <2 x float>, ptr %281, align 4
  %284 = load <2 x float>, ptr %282, align 4
  %285 = call float @b2Dot(<2 x float> %283, <2 x float> %284)
  %286 = load <2 x float>, ptr %20, align 4
  %287 = load <2 x float>, ptr %20, align 4
  %288 = call float @b2Dot(<2 x float> %286, <2 x float> %287)
  %289 = fsub float %285, %288
  %290 = getelementptr inbounds %struct.b2MassData, ptr %3, i32 0, i32 2
  %291 = load float, ptr %290, align 4, !tbaa !30
  %292 = call float @llvm.fmuladd.f32(float %280, float %289, float %291)
  store float %292, ptr %290, align 4, !tbaa !30
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %8) #8
  br label %293

293:                                              ; preds = %260, %75, %55
  %294 = load { <2 x float>, <2 x float> }, ptr %3, align 4
  ret { <2 x float>, <2 x float> } %294
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2Add(<2 x float>, <2 x float>) #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2MulAdd(<2 x float>, float noundef, <2 x float>) #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @b2Cross(<2 x float>, <2 x float>) #5

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !14, i64 140}
!12 = !{!"b2Polygon", !7, i64 0, !7, i64 64, !13, i64 128, !10, i64 136, !14, i64 140}
!13 = !{!"b2Vec2", !10, i64 0, !10, i64 4}
!14 = !{!"int", !7, i64 0}
!15 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}
!16 = !{!12, !10, i64 136}
!17 = !{!18, !10, i64 8}
!18 = !{!"b2Circle", !13, i64 0, !10, i64 8}
!19 = !{!20, !10, i64 16}
!20 = !{!"b2Capsule", !13, i64 0, !13, i64 8, !10, i64 16}
!21 = !{!14, !14, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = !{!13, !10, i64 0}
!26 = !{!13, !10, i64 4}
!27 = distinct !{!27, !23}
!28 = !{!29, !10, i64 0}
!29 = !{!"b2MassData", !10, i64 0, !13, i64 4, !10, i64 12}
!30 = !{!29, !10, i64 12}


; 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.b2MassData = type { float, %struct.b2Vec2, float }
%struct.b2Vec2 = type { float, float }
%struct.b2Circle = type { %struct.b2Vec2, float }
%struct.b2Capsule = type { %struct.b2Vec2, %struct.b2Vec2, float }

@.str.1 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [19 x i8], align 1

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; 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) #4

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #7

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

; Function Attrs: nounwind uwtable
define dso_local { <2 x float>, <2 x float> } @b2ComputePolygonMass(ptr nocapture noundef readonly %0, float noundef %1) local_unnamed_addr #6 {
  %3 = alloca %struct.b2MassData, align 8
  %4 = alloca %struct.b2Circle, align 8
  %5 = alloca %struct.b2Capsule, align 16
  %6 = alloca [8 x %struct.b2Vec2], align 16
  %7 = getelementptr inbounds i8, ptr %0, i64 140
  %8 = load i32, ptr %7, align 4, !tbaa !5
  %9 = icmp sgt i32 %8, 0
  br i1 %9, label %13, label %10

10:                                               ; preds = %2
  %11 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 302) #9
  %.not = icmp eq i32 %11, 0
  br i1 %.not, label %thread-pre-split, label %12

12:                                               ; preds = %10
  tail call void @llvm.trap()
  unreachable

thread-pre-split:                                 ; preds = %10
  %.pr = load i32, ptr %7, align 4, !tbaa !5
  br label %13

13:                                               ; preds = %thread-pre-split, %2
  %14 = phi i32 [ %.pr, %thread-pre-split ], [ %8, %2 ]
  switch i32 %14, label %31 [
    i32 1, label %15
    i32 2, label %23
  ]

15:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #9
  %16 = load i64, ptr %0, align 4
  store i64 %16, ptr %4, align 8
  %17 = getelementptr inbounds i8, ptr %0, i64 136
  %18 = load float, ptr %17, align 4, !tbaa !12
  %19 = getelementptr inbounds i8, ptr %4, i64 8
  store float %18, ptr %19, align 8, !tbaa !13
  %20 = call { <2 x float>, <2 x float> } @b2ComputeCircleMass(ptr noundef nonnull %4, float noundef %1)
  %21 = extractvalue { <2 x float>, <2 x float> } %20, 0
  %22 = extractvalue { <2 x float>, <2 x float> } %20, 1
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #9
  br label %97

23:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %5) #9
  %24 = load <2 x i64>, ptr %0, align 4
  store <2 x i64> %24, ptr %5, align 16
  %25 = getelementptr inbounds i8, ptr %0, i64 136
  %26 = load float, ptr %25, align 4, !tbaa !12
  %27 = getelementptr inbounds i8, ptr %5, i64 16
  store float %26, ptr %27, align 16, !tbaa !15
  %28 = call { <2 x float>, <2 x float> } @b2ComputeCapsuleMass(ptr noundef nonnull %5, float noundef %1)
  %29 = extractvalue { <2 x float>, <2 x float> } %28, 0
  %30 = extractvalue { <2 x float>, <2 x float> } %28, 1
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %5) #9
  br label %97

31:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %6, i8 0, i64 64, i1 false)
  %32 = getelementptr inbounds i8, ptr %0, i64 136
  %33 = load float, ptr %32, align 4, !tbaa !12
  %34 = fcmp ogt float %33, 0.000000e+00
  %35 = icmp sgt i32 %14, 0
  br i1 %34, label %.preheader, label %.preheader111

.preheader111:                                    ; preds = %31
  br i1 %35, label %.loopexit.thread142, label %._crit_edge.thread

.loopexit.thread142:                              ; preds = %.preheader111
  %36 = zext nneg i32 %14 to i64
  %37 = shl nuw nsw i64 %36, 3
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %6, ptr nonnull align 4 %0, i64 %37, i1 false)
  %.sroa.031.0.copyload.pre = load <2 x float>, ptr %6, align 16
  br label %.lr.ph120.preheader

.preheader:                                       ; preds = %31
  br i1 %35, label %.peel.next, label %._crit_edge.thread

.peel.next:                                       ; preds = %.preheader
  %38 = getelementptr inbounds i8, ptr %0, i64 64
  %39 = fmul float %33, 0x3FF6978D40000000
  %wide.trip.count = zext nneg i32 %14 to i64
  %40 = add nsw i32 %14, -1
  %41 = zext nneg i32 %40 to i64
  %42 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %38, i64 0, i64 %41
  %.sroa.055.0.copyload.peel = load <2 x float>, ptr %42, align 4
  %.sroa.054.0.copyload.peel = load <2 x float>, ptr %38, align 4
  %43 = tail call <2 x float> @b2Add(<2 x float> %.sroa.055.0.copyload.peel, <2 x float> %.sroa.054.0.copyload.peel)
  %44 = tail call <2 x float> @b2Normalize(<2 x float> %43)
  %45 = load <2 x float>, ptr %0, align 4
  %46 = tail call <2 x float> @b2MulAdd(<2 x float> %45, float noundef %39, <2 x float> %44)
  store <2 x float> %46, ptr %6, align 16
  br label %47

47:                                               ; preds = %.peel.next, %47
  %indvars.iv = phi i64 [ 1, %.peel.next ], [ %indvars.iv.next, %47 ]
  %48 = shl i64 %indvars.iv, 32
  %sext = add i64 %48, -4294967296
  %49 = ashr exact i64 %sext, 32
  %50 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %38, i64 0, i64 %49
  %.sroa.055.0.copyload = load <2 x float>, ptr %50, align 4
  %51 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %38, i64 0, i64 %indvars.iv
  %.sroa.054.0.copyload = load <2 x float>, ptr %51, align 4
  %52 = tail call <2 x float> @b2Add(<2 x float> %.sroa.055.0.copyload, <2 x float> %.sroa.054.0.copyload)
  %53 = tail call <2 x float> @b2Normalize(<2 x float> %52)
  %54 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %6, i64 0, i64 %indvars.iv
  %55 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %0, i64 0, i64 %indvars.iv
  %56 = load <2 x float>, ptr %55, align 4
  %57 = tail call <2 x float> @b2MulAdd(<2 x float> %56, float noundef %39, <2 x float> %53)
  store <2 x float> %57, ptr %54, align 8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %47, !llvm.loop !17

.loopexit:                                        ; preds = %47
  %58 = icmp sgt i32 %14, 2
  br i1 %58, label %.lr.ph120.preheader, label %._crit_edge.thread

.lr.ph120.preheader:                              ; preds = %.loopexit.thread142, %.loopexit
  %.sroa.031.0.copyload144 = phi <2 x float> [ %.sroa.031.0.copyload.pre, %.loopexit.thread142 ], [ %46, %.loopexit ]
  %59 = add nsw i32 %14, -1
  %wide.trip.count132 = zext nneg i32 %59 to i64
  %.phi.trans.insert = getelementptr inbounds i8, ptr %6, i64 8
  %.pre = load <2 x float>, ptr %.phi.trans.insert, align 8
  br label %.lr.ph120

._crit_edge.thread:                               ; preds = %.loopexit, %.preheader111, %.preheader
  %.sroa.031.0.copyload141.ph = phi <2 x float> [ %46, %.loopexit ], [ zeroinitializer, %.preheader111 ], [ zeroinitializer, %.preheader ]
  %60 = fmul float %1, 0.000000e+00
  store float %60, ptr %3, align 8, !tbaa !20
  br label %81

._crit_edge:                                      ; preds = %.lr.ph120
  %61 = fmul float %70, %1
  store float %61, ptr %3, align 8, !tbaa !20
  %62 = fcmp ogt float %70, 0x3E80000000000000
  br i1 %62, label %85, label %81

.lr.ph120:                                        ; preds = %.lr.ph120.preheader, %.lr.ph120
  %63 = phi <2 x float> [ %.pre, %.lr.ph120.preheader ], [ %66, %.lr.ph120 ]
  %indvars.iv129 = phi i64 [ 1, %.lr.ph120.preheader ], [ %indvars.iv.next130, %.lr.ph120 ]
  %.sroa.040.0119 = phi <2 x float> [ zeroinitializer, %.lr.ph120.preheader ], [ %73, %.lr.ph120 ]
  %.098118 = phi float [ 0.000000e+00, %.lr.ph120.preheader ], [ %70, %.lr.ph120 ]
  %.099117 = phi float [ 0.000000e+00, %.lr.ph120.preheader ], [ %80, %.lr.ph120 ]
  %64 = tail call <2 x float> @b2Sub(<2 x float> %63, <2 x float> %.sroa.031.0.copyload144)
  %indvars.iv.next130 = add nuw nsw i64 %indvars.iv129, 1
  %65 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %6, i64 0, i64 %indvars.iv.next130
  %66 = load <2 x float>, ptr %65, align 8
  %67 = tail call <2 x float> @b2Sub(<2 x float> %66, <2 x float> %.sroa.031.0.copyload144)
  %68 = tail call float @b2Cross(<2 x float> %64, <2 x float> %67)
  %69 = fmul float %68, 5.000000e-01
  %70 = fadd float %.098118, %69
  %71 = fmul float %69, 0x3FD5555560000000
  %72 = tail call <2 x float> @b2Add(<2 x float> %64, <2 x float> %67)
  %73 = tail call <2 x float> @b2MulAdd(<2 x float> %.sroa.040.0119, float noundef %71, <2 x float> %72)
  %74 = fmul <2 x float> %64, %67
  %75 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %64, <2 x float> %64, <2 x float> %74)
  %76 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %67, <2 x float> %67, <2 x float> %75)
  %77 = fmul float %68, 0x3FB5555560000000
  %shift = shufflevector <2 x float> %76, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %78 = fadd <2 x float> %76, %shift
  %79 = extractelement <2 x float> %78, i64 0
  %80 = tail call float @llvm.fmuladd.f32(float %77, float %79, float %.099117)
  %exitcond133.not = icmp eq i64 %indvars.iv.next130, %wide.trip.count132
  br i1 %exitcond133.not, label %._crit_edge, label %.lr.ph120, !llvm.loop !22

81:                                               ; preds = %._crit_edge.thread, %._crit_edge
  %82 = phi float [ %60, %._crit_edge.thread ], [ %61, %._crit_edge ]
  %.sroa.040.0.lcssa155 = phi <2 x float> [ zeroinitializer, %._crit_edge.thread ], [ %73, %._crit_edge ]
  %.098.lcssa153 = phi float [ 0.000000e+00, %._crit_edge.thread ], [ %70, %._crit_edge ]
  %.099.lcssa151 = phi float [ 0.000000e+00, %._crit_edge.thread ], [ %80, %._crit_edge ]
  %.sroa.031.0.copyload141149 = phi <2 x float> [ %.sroa.031.0.copyload141.ph, %._crit_edge.thread ], [ %.sroa.031.0.copyload144, %._crit_edge ]
  %83 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, i32 noundef 386) #9
  %.not104 = icmp eq i32 %83, 0
  br i1 %.not104, label %85, label %84

84:                                               ; preds = %81
  tail call void @llvm.trap()
  unreachable

85:                                               ; preds = %81, %._crit_edge
  %86 = phi float [ %82, %81 ], [ %61, %._crit_edge ]
  %.sroa.040.0.lcssa156 = phi <2 x float> [ %.sroa.040.0.lcssa155, %81 ], [ %73, %._crit_edge ]
  %.098.lcssa154 = phi float [ %.098.lcssa153, %81 ], [ %70, %._crit_edge ]
  %.099.lcssa152 = phi float [ %.099.lcssa151, %81 ], [ %80, %._crit_edge ]
  %.sroa.031.0.copyload141150 = phi <2 x float> [ %.sroa.031.0.copyload141149, %81 ], [ %.sroa.031.0.copyload144, %._crit_edge ]
  %87 = fdiv float 1.000000e+00, %.098.lcssa154
  %88 = insertelement <2 x float> poison, float %87, i64 0
  %89 = shufflevector <2 x float> %88, <2 x float> poison, <2 x i32> zeroinitializer
  %90 = fmul <2 x float> %89, %.sroa.040.0.lcssa156
  %91 = tail call <2 x float> @b2Add(<2 x float> %.sroa.031.0.copyload141150, <2 x float> %90)
  %.4.sroa_idx163 = getelementptr inbounds i8, ptr %3, i64 4
  store <2 x float> %91, ptr %.4.sroa_idx163, align 4
  %92 = fmul float %.099.lcssa152, %1
  %93 = tail call float @b2Dot(<2 x float> %91, <2 x float> %91)
  %94 = tail call float @b2Dot(<2 x float> %90, <2 x float> %90)
  %95 = fsub float %93, %94
  %96 = tail call float @llvm.fmuladd.f32(float %86, float %95, float %92)
  %.12.sroa_idx164 = getelementptr inbounds i8, ptr %3, i64 12
  store float %96, ptr %.12.sroa_idx164, align 4, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #9
  %.0..0..0..0..fca.0.load.pre = load <2 x float>, ptr %3, align 8
  %.8.sroa_idx = getelementptr inbounds i8, ptr %3, i64 8
  %.8..8..8..8..fca.1.load.pre = load <2 x float>, ptr %.8.sroa_idx, align 8
  br label %97

97:                                               ; preds = %85, %23, %15
  %.8..8..8..fca.1.load = phi <2 x float> [ %.8..8..8..8..fca.1.load.pre, %85 ], [ %30, %23 ], [ %22, %15 ]
  %.0..0..0..fca.0.load = phi <2 x float> [ %.0..0..0..0..fca.0.load.pre, %85 ], [ %29, %23 ], [ %21, %15 ]
  %.fca.0.insert = insertvalue { <2 x float>, <2 x float> } poison, <2 x float> %.0..0..0..fca.0.load, 0
  %.fca.1.insert = insertvalue { <2 x float>, <2 x float> } %.fca.0.insert, <2 x float> %.8..8..8..fca.1.load, 1
  ret { <2 x float>, <2 x float> } %.fca.1.insert
}

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @b2MulAdd(<2 x float>, float noundef, <2 x float>) local_unnamed_addr #5

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x float> @llvm.fmuladd.v2f32(<2 x float>, <2 x float>, <2 x float>) #8

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { 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, !11, i64 140}
!6 = !{!"b2Polygon", !7, i64 0, !7, i64 64, !9, i64 128, !10, i64 136, !11, i64 140}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"b2Vec2", !10, i64 0, !10, i64 4}
!10 = !{!"float", !7, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!6, !10, i64 136}
!13 = !{!14, !10, i64 8}
!14 = !{!"b2Circle", !9, i64 0, !10, i64 8}
!15 = !{!16, !10, i64 16}
!16 = !{!"b2Capsule", !9, i64 0, !9, i64 8, !10, i64 16}
!17 = distinct !{!17, !18, !19}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!"llvm.loop.peeled.count", i32 1}
!20 = !{!21, !10, i64 0}
!21 = !{!"b2MassData", !10, i64 0, !9, i64 4, !10, i64 12}
!22 = distinct !{!22, !18}
!23 = !{!21, !10, i64 12}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass