; LLVM IR from mtsamis/box2d-optimized :: src/collision (b2_collide_edge)

; 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.b2Transform = type { %struct.b2Vec2, %struct.b2Rot }
%struct.b2Vec2 = type { float, float }
%struct.b2Rot = type { float, float }
%struct.b2TempPolygon = type { [8 x %struct.b2Vec2], [8 x %struct.b2Vec2], i32 }
%struct.b2EPAxis = type { %struct.b2Vec2, i32, i32, float }
%struct.b2ClipVertex = type { %struct.b2Vec2, %union.b2ContactID }
%union.b2ContactID = type { i32 }
%struct.b2ReferenceFace = type { i32, i32, %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, float, %struct.b2Vec2, float }
%struct.b2Manifold = type { [2 x %struct.b2ManifoldPoint], %struct.b2Vec2, %struct.b2Vec2, i32, i32 }
%struct.b2ManifoldPoint = type { %struct.b2Vec2, float, float, %union.b2ContactID }
%class.b2PolygonShape = type <{ %class.b2Shape, %struct.b2Vec2, [8 x %struct.b2Vec2], [8 x %struct.b2Vec2], i32, [4 x i8] }>
%class.b2Shape = type { ptr, i32, float }
%class.b2EdgeShape = type <{ %class.b2Shape, %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, i8, [7 x i8] }>
%struct.b2ContactFeature = type { i8, i8, i8, i8 }

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.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) #2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN6b2Vec29NormalizeEv(ptr noundef nonnull align 4 dereferenceable(8)) #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z23b2CollideEdgeAndPolygonP10b2ManifoldPK11b2EdgeShapeRK11b2TransformPK14b2PolygonShapeS6_(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef %3, ptr noundef nonnull align 4 dereferenceable(16) %4) #6 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %struct.b2Transform, align 4
  %12 = alloca %struct.b2Vec2, align 4
  %13 = alloca %struct.b2Vec2, align 4
  %14 = alloca %struct.b2Vec2, align 4
  %15 = alloca %struct.b2Vec2, align 4
  %16 = alloca %struct.b2Vec2, align 4
  %17 = alloca float, align 4
  %18 = alloca %struct.b2Vec2, align 4
  %19 = alloca i8, align 1
  %20 = alloca i32, align 4
  %21 = alloca %struct.b2TempPolygon, align 4
  %22 = alloca i32, align 4
  %23 = alloca %struct.b2Vec2, align 4
  %24 = alloca %struct.b2Vec2, align 4
  %25 = alloca float, align 4
  %26 = alloca %struct.b2EPAxis, align 4
  %27 = alloca %struct.b2EPAxis, align 4
  %28 = alloca float, align 4
  %29 = alloca float, align 4
  %30 = alloca %struct.b2EPAxis, align 4
  %31 = alloca %struct.b2Vec2, align 4
  %32 = alloca %struct.b2Vec2, align 4
  %33 = alloca i8, align 1
  %34 = alloca %struct.b2Vec2, align 4
  %35 = alloca %struct.b2Vec2, align 4
  %36 = alloca i8, align 1
  %37 = alloca float, align 4
  %38 = alloca i8, align 1
  %39 = alloca [2 x %struct.b2ClipVertex], align 16
  %40 = alloca %struct.b2ReferenceFace, align 4
  %41 = alloca i32, align 4
  %42 = alloca float, align 4
  %43 = alloca i32, align 4
  %44 = alloca float, align 4
  %45 = alloca i32, align 4
  %46 = alloca i32, align 4
  %47 = alloca %struct.b2Vec2, align 4
  %48 = alloca %struct.b2Vec2, align 4
  %49 = alloca [2 x %struct.b2ClipVertex], align 16
  %50 = alloca [2 x %struct.b2ClipVertex], align 16
  %51 = alloca i32, align 4
  %52 = alloca i32, align 4
  %53 = alloca i32, align 4
  %54 = alloca float, align 4
  %55 = alloca %struct.b2Vec2, align 4
  %56 = alloca ptr, align 8
  %57 = alloca %struct.b2Vec2, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.b2Manifold, ptr %58, i32 0, i32 4
  store i32 0, ptr %59, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #10
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  %62 = call { <2 x float>, <2 x float> } @_Z6b2MulTRK11b2TransformS1_(ptr noundef nonnull align 4 dereferenceable(16) %60, ptr noundef nonnull align 4 dereferenceable(16) %61)
  %63 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %11, i32 0, i32 0
  %64 = extractvalue { <2 x float>, <2 x float> } %62, 0
  store <2 x float> %64, ptr %63, align 4
  %65 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %11, i32 0, i32 1
  %66 = extractvalue { <2 x float>, <2 x float> } %62, 1
  store <2 x float> %66, ptr %65, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #10
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = getelementptr inbounds %class.b2PolygonShape, ptr %67, i32 0, i32 1
  %69 = call <2 x float> @_Z5b2MulRK11b2TransformRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(8) %68)
  store <2 x float> %69, ptr %12, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #10
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = getelementptr inbounds %class.b2EdgeShape, ptr %70, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 8 %71, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #10
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = getelementptr inbounds %class.b2EdgeShape, ptr %72, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 8 %73, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #10
  %74 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %74, ptr %15, align 4
  %75 = call noundef float @_ZN6b2Vec29NormalizeEv(ptr noundef nonnull align 4 dereferenceable(8) %15)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #10
  %76 = getelementptr inbounds %struct.b2Vec2, ptr %15, i32 0, i32 1
  %77 = load float, ptr %76, align 4, !tbaa !17
  %78 = getelementptr inbounds %struct.b2Vec2, ptr %15, i32 0, i32 0
  %79 = load float, ptr %78, align 4, !tbaa !18
  %80 = fneg float %79
  call void @_ZN6b2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %16, float noundef %77, float noundef %80)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #10
  %81 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %81, ptr %18, align 4
  %82 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %18)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #10
  store float %82, ptr %17, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #10
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = getelementptr inbounds %class.b2EdgeShape, ptr %83, i32 0, i32 5
  %85 = load i8, ptr %84, align 8, !tbaa !19, !range !24, !noundef !25
  %86 = trunc i8 %85 to i1
  %87 = zext i1 %86 to i8
  store i8 %87, ptr %19, align 1, !tbaa !26
  %88 = load i8, ptr %19, align 1, !tbaa !26, !range !24, !noundef !25
  %89 = trunc i8 %88 to i1
  br i1 %89, label %90, label %94

90:                                               ; preds = %5
  %91 = load float, ptr %17, align 4, !tbaa !16
  %92 = fcmp olt float %91, 0.000000e+00
  br i1 %92, label %93, label %94

93:                                               ; preds = %90
  store i32 1, ptr %20, align 4
  br label %582

94:                                               ; preds = %90, %5
  call void @llvm.lifetime.start.p0(i64 132, ptr %21) #10
  call void @_ZN13b2TempPolygonC2Ev(ptr noundef nonnull align 4 dereferenceable(132) %21)
  %95 = load ptr, ptr %9, align 8, !tbaa !5
  %96 = getelementptr inbounds %class.b2PolygonShape, ptr %95, i32 0, i32 4
  %97 = load i32, ptr %96, align 8, !tbaa !27
  %98 = getelementptr inbounds %struct.b2TempPolygon, ptr %21, i32 0, i32 2
  store i32 %97, ptr %98, align 4, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #10
  store i32 0, ptr %22, align 4, !tbaa !31
  br label %99

99:                                               ; preds = %128, %94
  %100 = load i32, ptr %22, align 4, !tbaa !31
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  %102 = getelementptr inbounds %class.b2PolygonShape, ptr %101, i32 0, i32 4
  %103 = load i32, ptr %102, align 8, !tbaa !27
  %104 = icmp slt i32 %100, %103
  br i1 %104, label %106, label %105

105:                                              ; preds = %99
  store i32 2, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #10
  br label %131

106:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #10
  %107 = load ptr, ptr %9, align 8, !tbaa !5
  %108 = getelementptr inbounds %class.b2PolygonShape, ptr %107, i32 0, i32 2
  %109 = load i32, ptr %22, align 4, !tbaa !31
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %108, i64 0, i64 %110
  %112 = call <2 x float> @_Z5b2MulRK11b2TransformRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(8) %111)
  store <2 x float> %112, ptr %23, align 4
  %113 = getelementptr inbounds %struct.b2TempPolygon, ptr %21, i32 0, i32 0
  %114 = load i32, ptr %22, align 4, !tbaa !31
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %113, i64 0, i64 %115
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %116, ptr align 4 %23, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #10
  %117 = getelementptr inbounds %struct.b2Transform, ptr %11, i32 0, i32 1
  %118 = load ptr, ptr %9, align 8, !tbaa !5
  %119 = getelementptr inbounds %class.b2PolygonShape, ptr %118, i32 0, i32 3
  %120 = load i32, ptr %22, align 4, !tbaa !31
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %119, i64 0, i64 %121
  %123 = call <2 x float> @_Z5b2MulRK5b2RotRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(8) %117, ptr noundef nonnull align 4 dereferenceable(8) %122)
  store <2 x float> %123, ptr %24, align 4
  %124 = getelementptr inbounds %struct.b2TempPolygon, ptr %21, i32 0, i32 1
  %125 = load i32, ptr %22, align 4, !tbaa !31
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %124, i64 0, i64 %126
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %127, ptr align 4 %24, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #10
  br label %128

128:                                              ; preds = %106
  %129 = load i32, ptr %22, align 4, !tbaa !31
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %22, align 4, !tbaa !31
  br label %99, !llvm.loop !32

131:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #10
  %132 = load ptr, ptr %9, align 8, !tbaa !5
  %133 = getelementptr inbounds %class.b2Shape, ptr %132, i32 0, i32 2
  %134 = load float, ptr %133, align 4, !tbaa !34
  %135 = load ptr, ptr %7, align 8, !tbaa !5
  %136 = getelementptr inbounds %class.b2Shape, ptr %135, i32 0, i32 2
  %137 = load float, ptr %136, align 4, !tbaa !34
  %138 = fadd float %134, %137
  store float %138, ptr %25, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 20, ptr %26) #10
  call void @_ZL23b2ComputeEdgeSeparationRK13b2TempPolygonRK6b2Vec2S4_(ptr dead_on_unwind writable sret(%struct.b2EPAxis) align 4 %26, ptr noundef nonnull align 4 dereferenceable(132) %21, ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %16)
  %139 = getelementptr inbounds %struct.b2EPAxis, ptr %26, i32 0, i32 3
  %140 = load float, ptr %139, align 4, !tbaa !35
  %141 = load float, ptr %25, align 4, !tbaa !16
  %142 = fcmp ogt float %140, %141
  br i1 %142, label %143, label %144

143:                                              ; preds = %131
  store i32 1, ptr %20, align 4
  br label %581

144:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 20, ptr %27) #10
  call void @_ZL26b2ComputePolygonSeparationRK13b2TempPolygonRK6b2Vec2S4_(ptr dead_on_unwind writable sret(%struct.b2EPAxis) align 4 %27, ptr noundef nonnull align 4 dereferenceable(132) %21, ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %14)
  %145 = getelementptr inbounds %struct.b2EPAxis, ptr %27, i32 0, i32 3
  %146 = load float, ptr %145, align 4, !tbaa !35
  %147 = load float, ptr %25, align 4, !tbaa !16
  %148 = fcmp ogt float %146, %147
  br i1 %148, label %149, label %150

149:                                              ; preds = %144
  store i32 1, ptr %20, align 4
  br label %580

150:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #10
  store float 0x3FEF5C2900000000, ptr %28, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #10
  store float 0x3F50624DE0000000, ptr %29, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 20, ptr %30) #10
  call void @_ZN8b2EPAxisC2Ev(ptr noundef nonnull align 4 dereferenceable(20) %30)
  %151 = getelementptr inbounds %struct.b2EPAxis, ptr %27, i32 0, i32 3
  %152 = load float, ptr %151, align 4, !tbaa !35
  %153 = load float, ptr %25, align 4, !tbaa !16
  %154 = fsub float %152, %153
  %155 = getelementptr inbounds %struct.b2EPAxis, ptr %26, i32 0, i32 3
  %156 = load float, ptr %155, align 4, !tbaa !35
  %157 = load float, ptr %25, align 4, !tbaa !16
  %158 = fsub float %156, %157
  %159 = call float @llvm.fmuladd.f32(float 0x3FEF5C2900000000, float %158, float 0x3F50624DE0000000)
  %160 = fcmp ogt float %154, %159
  br i1 %160, label %161, label %162

161:                                              ; preds = %150
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 %27, i64 20, i1 false), !tbaa.struct !38
  br label %163

162:                                              ; preds = %150
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 %26, i64 20, i1 false), !tbaa.struct !38
  br label %163

163:                                              ; preds = %162, %161
  %164 = load i8, ptr %19, align 1, !tbaa !26, !range !24, !noundef !25
  %165 = trunc i8 %164 to i1
  br i1 %165, label %166, label %223

166:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #10
  %167 = load ptr, ptr %7, align 8, !tbaa !5
  %168 = getelementptr inbounds %class.b2EdgeShape, ptr %167, i32 0, i32 3
  %169 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %168)
  store <2 x float> %169, ptr %31, align 4
  %170 = call noundef float @_ZN6b2Vec29NormalizeEv(ptr noundef nonnull align 4 dereferenceable(8) %31)
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #10
  %171 = getelementptr inbounds %struct.b2Vec2, ptr %31, i32 0, i32 1
  %172 = load float, ptr %171, align 4, !tbaa !17
  %173 = getelementptr inbounds %struct.b2Vec2, ptr %31, i32 0, i32 0
  %174 = load float, ptr %173, align 4, !tbaa !18
  %175 = fneg float %174
  call void @_ZN6b2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %32, float noundef %172, float noundef %175)
  call void @llvm.lifetime.start.p0(i64 1, ptr %33) #10
  %176 = call noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %31, ptr noundef nonnull align 4 dereferenceable(8) %15)
  %177 = fcmp oge float %176, 0.000000e+00
  %178 = zext i1 %177 to i8
  store i8 %178, ptr %33, align 1, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #10
  %179 = load ptr, ptr %7, align 8, !tbaa !5
  %180 = getelementptr inbounds %class.b2EdgeShape, ptr %179, i32 0, i32 4
  %181 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %180, ptr noundef nonnull align 4 dereferenceable(8) %14)
  store <2 x float> %181, ptr %34, align 4
  %182 = call noundef float @_ZN6b2Vec29NormalizeEv(ptr noundef nonnull align 4 dereferenceable(8) %34)
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #10
  %183 = getelementptr inbounds %struct.b2Vec2, ptr %34, i32 0, i32 1
  %184 = load float, ptr %183, align 4, !tbaa !17
  %185 = getelementptr inbounds %struct.b2Vec2, ptr %34, i32 0, i32 0
  %186 = load float, ptr %185, align 4, !tbaa !18
  %187 = fneg float %186
  call void @_ZN6b2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %35, float noundef %184, float noundef %187)
  call void @llvm.lifetime.start.p0(i64 1, ptr %36) #10
  %188 = call noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(8) %34)
  %189 = fcmp oge float %188, 0.000000e+00
  %190 = zext i1 %189 to i8
  store i8 %190, ptr %36, align 1, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #10
  store float 0x3FB99999A0000000, ptr %37, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 1, ptr %38) #10
  %191 = getelementptr inbounds %struct.b2EPAxis, ptr %30, i32 0, i32 0
  %192 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %191, ptr noundef nonnull align 4 dereferenceable(8) %15)
  %193 = fcmp ole float %192, 0.000000e+00
  %194 = zext i1 %193 to i8
  store i8 %194, ptr %38, align 1, !tbaa !26
  %195 = load i8, ptr %38, align 1, !tbaa !26, !range !24, !noundef !25
  %196 = trunc i8 %195 to i1
  br i1 %196, label %197, label %208

197:                                              ; preds = %166
  %198 = load i8, ptr %33, align 1, !tbaa !26, !range !24, !noundef !25
  %199 = trunc i8 %198 to i1
  br i1 %199, label %200, label %206

200:                                              ; preds = %197
  %201 = getelementptr inbounds %struct.b2EPAxis, ptr %30, i32 0, i32 0
  %202 = call noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %201, ptr noundef nonnull align 4 dereferenceable(8) %32)
  %203 = fcmp ogt float %202, 0x3FB99999A0000000
  br i1 %203, label %204, label %205

204:                                              ; preds = %200
  store i32 1, ptr %20, align 4
  br label %220

205:                                              ; preds = %200
  br label %207

206:                                              ; preds = %197
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 %26, i64 20, i1 false), !tbaa.struct !38
  br label %207

207:                                              ; preds = %206, %205
  br label %219

208:                                              ; preds = %166
  %209 = load i8, ptr %36, align 1, !tbaa !26, !range !24, !noundef !25
  %210 = trunc i8 %209 to i1
  br i1 %210, label %211, label %217

211:                                              ; preds = %208
  %212 = getelementptr inbounds %struct.b2EPAxis, ptr %30, i32 0, i32 0
  %213 = call noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %35, ptr noundef nonnull align 4 dereferenceable(8) %212)
  %214 = fcmp ogt float %213, 0x3FB99999A0000000
  br i1 %214, label %215, label %216

215:                                              ; preds = %211
  store i32 1, ptr %20, align 4
  br label %220

216:                                              ; preds = %211
  br label %218

217:                                              ; preds = %208
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 %26, i64 20, i1 false), !tbaa.struct !38
  br label %218

218:                                              ; preds = %217, %216
  br label %219

219:                                              ; preds = %218, %207
  store i32 0, ptr %20, align 4
  br label %220

220:                                              ; preds = %219, %215, %204
  call void @llvm.lifetime.end.p0(i64 1, ptr %38) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #10
  %221 = load i32, ptr %20, align 4
  switch i32 %221, label %579 [
    i32 0, label %222
  ]

222:                                              ; preds = %220
  br label %223

223:                                              ; preds = %222, %163
  call void @llvm.lifetime.start.p0(i64 24, ptr %39) #10
  %224 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %39, i32 0, i32 0
  %225 = getelementptr inbounds %struct.b2ClipVertex, ptr %224, i64 2
  br label %226

226:                                              ; preds = %226, %223
  %227 = phi ptr [ %224, %223 ], [ %228, %226 ]
  call void @_ZN12b2ClipVertexC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %227)
  %228 = getelementptr inbounds %struct.b2ClipVertex, ptr %227, i64 1
  %229 = icmp eq ptr %228, %225
  br i1 %229, label %230, label %226

230:                                              ; preds = %226
  call void @llvm.lifetime.start.p0(i64 56, ptr %40) #10
  call void @_ZN15b2ReferenceFaceC2Ev(ptr noundef nonnull align 4 dereferenceable(56) %40)
  %231 = getelementptr inbounds %struct.b2EPAxis, ptr %30, i32 0, i32 1
  %232 = load i32, ptr %231, align 4, !tbaa !40
  %233 = icmp eq i32 %232, 1
  br i1 %233, label %234, label %326

234:                                              ; preds = %230
  %235 = load ptr, ptr %6, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.b2Manifold, ptr %235, i32 0, i32 3
  store i32 1, ptr %236, align 4, !tbaa !41
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #10
  store i32 0, ptr %41, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #10
  %237 = getelementptr inbounds %struct.b2EPAxis, ptr %30, i32 0, i32 0
  %238 = getelementptr inbounds %struct.b2TempPolygon, ptr %21, i32 0, i32 1
  %239 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %238, i64 0, i64 0
  %240 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %237, ptr noundef nonnull align 4 dereferenceable(8) %239)
  store float %240, ptr %42, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #10
  store i32 1, ptr %43, align 4, !tbaa !31
  br label %241

241:                                              ; preds = %261, %234
  %242 = load i32, ptr %43, align 4, !tbaa !31
  %243 = getelementptr inbounds %struct.b2TempPolygon, ptr %21, i32 0, i32 2
  %244 = load i32, ptr %243, align 4, !tbaa !29
  %245 = icmp slt i32 %242, %244
  br i1 %245, label %247, label %246

246:                                              ; preds = %241
  store i32 5, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #10
  br label %264

247:                                              ; preds = %241
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #10
  %248 = getelementptr inbounds %struct.b2EPAxis, ptr %30, i32 0, i32 0
  %249 = getelementptr inbounds %struct.b2TempPolygon, ptr %21, i32 0, i32 1
  %250 = load i32, ptr %43, align 4, !tbaa !31
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %249, i64 0, i64 %251
  %253 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %248, ptr noundef nonnull align 4 dereferenceable(8) %252)
  store float %253, ptr %44, align 4, !tbaa !16
  %254 = load float, ptr %44, align 4, !tbaa !16
  %255 = load float, ptr %42, align 4, !tbaa !16
  %256 = fcmp olt float %254, %255
  br i1 %256, label %257, label %260

257:                                              ; preds = %247
  %258 = load float, ptr %44, align 4, !tbaa !16
  store float %258, ptr %42, align 4, !tbaa !16
  %259 = load i32, ptr %43, align 4, !tbaa !31
  store i32 %259, ptr %41, align 4, !tbaa !31
  br label %260

260:                                              ; preds = %257, %247
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #10
  br label %261

261:                                              ; preds = %260
  %262 = load i32, ptr %43, align 4, !tbaa !31
  %263 = add nsw i32 %262, 1
  store i32 %263, ptr %43, align 4, !tbaa !31
  br label %241, !llvm.loop !42

264:                                              ; preds = %246
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #10
  %265 = load i32, ptr %41, align 4, !tbaa !31
  store i32 %265, ptr %45, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #10
  %266 = load i32, ptr %45, align 4, !tbaa !31
  %267 = add nsw i32 %266, 1
  %268 = getelementptr inbounds %struct.b2TempPolygon, ptr %21, i32 0, i32 2
  %269 = load i32, ptr %268, align 4, !tbaa !29
  %270 = icmp slt i32 %267, %269
  br i1 %270, label %271, label %274

271:                                              ; preds = %264
  %272 = load i32, ptr %45, align 4, !tbaa !31
  %273 = add nsw i32 %272, 1
  br label %275

274:                                              ; preds = %264
  br label %275

275:                                              ; preds = %274, %271
  %276 = phi i32 [ %273, %271 ], [ 0, %274 ]
  store i32 %276, ptr %46, align 4, !tbaa !31
  %277 = getelementptr inbounds %struct.b2TempPolygon, ptr %21, i32 0, i32 0
  %278 = load i32, ptr %45, align 4, !tbaa !31
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %277, i64 0, i64 %279
  %281 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %39, i64 0, i64 0
  %282 = getelementptr inbounds %struct.b2ClipVertex, ptr %281, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %282, ptr align 4 %280, i64 8, i1 false), !tbaa.struct !15
  %283 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %39, i64 0, i64 0
  %284 = getelementptr inbounds %struct.b2ClipVertex, ptr %283, i32 0, i32 1
  %285 = getelementptr inbounds %struct.b2ContactFeature, ptr %284, i32 0, i32 0
  store i8 0, ptr %285, align 8, !tbaa !43
  %286 = load i32, ptr %45, align 4, !tbaa !31
  %287 = trunc i32 %286 to i8
  %288 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %39, i64 0, i64 0
  %289 = getelementptr inbounds %struct.b2ClipVertex, ptr %288, i32 0, i32 1
  %290 = getelementptr inbounds %struct.b2ContactFeature, ptr %289, i32 0, i32 1
  store i8 %287, ptr %290, align 1, !tbaa !43
  %291 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %39, i64 0, i64 0
  %292 = getelementptr inbounds %struct.b2ClipVertex, ptr %291, i32 0, i32 1
  %293 = getelementptr inbounds %struct.b2ContactFeature, ptr %292, i32 0, i32 2
  store i8 1, ptr %293, align 2, !tbaa !43
  %294 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %39, i64 0, i64 0
  %295 = getelementptr inbounds %struct.b2ClipVertex, ptr %294, i32 0, i32 1
  %296 = getelementptr inbounds %struct.b2ContactFeature, ptr %295, i32 0, i32 3
  store i8 0, ptr %296, align 1, !tbaa !43
  %297 = getelementptr inbounds %struct.b2TempPolygon, ptr %21, i32 0, i32 0
  %298 = load i32, ptr %46, align 4, !tbaa !31
  %299 = sext i32 %298 to i64
  %300 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %297, i64 0, i64 %299
  %301 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %39, i64 0, i64 1
  %302 = getelementptr inbounds %struct.b2ClipVertex, ptr %301, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %302, ptr align 4 %300, i64 8, i1 false), !tbaa.struct !15
  %303 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %39, i64 0, i64 1
  %304 = getelementptr inbounds %struct.b2ClipVertex, ptr %303, i32 0, i32 1
  %305 = getelementptr inbounds %struct.b2ContactFeature, ptr %304, i32 0, i32 0
  store i8 0, ptr %305, align 4, !tbaa !43
  %306 = load i32, ptr %46, align 4, !tbaa !31
  %307 = trunc i32 %306 to i8
  %308 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %39, i64 0, i64 1
  %309 = getelementptr inbounds %struct.b2ClipVertex, ptr %308, i32 0, i32 1
  %310 = getelementptr inbounds %struct.b2ContactFeature, ptr %309, i32 0, i32 1
  store i8 %307, ptr %310, align 1, !tbaa !43
  %311 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %39, i64 0, i64 1
  %312 = getelementptr inbounds %struct.b2ClipVertex, ptr %311, i32 0, i32 1
  %313 = getelementptr inbounds %struct.b2ContactFeature, ptr %312, i32 0, i32 2
  store i8 1, ptr %313, align 2, !tbaa !43
  %314 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %39, i64 0, i64 1
  %315 = getelementptr inbounds %struct.b2ClipVertex, ptr %314, i32 0, i32 1
  %316 = getelementptr inbounds %struct.b2ContactFeature, ptr %315, i32 0, i32 3
  store i8 0, ptr %316, align 1, !tbaa !43
  %317 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 0
  store i32 0, ptr %317, align 4, !tbaa !44
  %318 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 1
  store i32 1, ptr %318, align 4, !tbaa !46
  %319 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %319, ptr align 4 %13, i64 8, i1 false), !tbaa.struct !15
  %320 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %320, ptr align 4 %14, i64 8, i1 false), !tbaa.struct !15
  %321 = getelementptr inbounds %struct.b2EPAxis, ptr %30, i32 0, i32 0
  %322 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %322, ptr align 4 %321, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #10
  %323 = call <2 x float> @_ZNK6b2Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8) %15)
  store <2 x float> %323, ptr %47, align 4
  %324 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %324, ptr align 4 %47, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #10
  %325 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %325, ptr align 4 %15, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #10
  br label %409

326:                                              ; preds = %230
  %327 = load ptr, ptr %6, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.b2Manifold, ptr %327, i32 0, i32 3
  store i32 2, ptr %328, align 4, !tbaa !41
  %329 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %39, i64 0, i64 0
  %330 = getelementptr inbounds %struct.b2ClipVertex, ptr %329, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %330, ptr align 4 %14, i64 8, i1 false), !tbaa.struct !15
  %331 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %39, i64 0, i64 0
  %332 = getelementptr inbounds %struct.b2ClipVertex, ptr %331, i32 0, i32 1
  %333 = getelementptr inbounds %struct.b2ContactFeature, ptr %332, i32 0, i32 0
  store i8 1, ptr %333, align 8, !tbaa !43
  %334 = getelementptr inbounds %struct.b2EPAxis, ptr %30, i32 0, i32 2
  %335 = load i32, ptr %334, align 4, !tbaa !47
  %336 = trunc i32 %335 to i8
  %337 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %39, i64 0, i64 0
  %338 = getelementptr inbounds %struct.b2ClipVertex, ptr %337, i32 0, i32 1
  %339 = getelementptr inbounds %struct.b2ContactFeature, ptr %338, i32 0, i32 1
  store i8 %336, ptr %339, align 1, !tbaa !43
  %340 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %39, i64 0, i64 0
  %341 = getelementptr inbounds %struct.b2ClipVertex, ptr %340, i32 0, i32 1
  %342 = getelementptr inbounds %struct.b2ContactFeature, ptr %341, i32 0, i32 2
  store i8 0, ptr %342, align 2, !tbaa !43
  %343 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %39, i64 0, i64 0
  %344 = getelementptr inbounds %struct.b2ClipVertex, ptr %343, i32 0, i32 1
  %345 = getelementptr inbounds %struct.b2ContactFeature, ptr %344, i32 0, i32 3
  store i8 1, ptr %345, align 1, !tbaa !43
  %346 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %39, i64 0, i64 1
  %347 = getelementptr inbounds %struct.b2ClipVertex, ptr %346, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %347, ptr align 4 %13, i64 8, i1 false), !tbaa.struct !15
  %348 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %39, i64 0, i64 1
  %349 = getelementptr inbounds %struct.b2ClipVertex, ptr %348, i32 0, i32 1
  %350 = getelementptr inbounds %struct.b2ContactFeature, ptr %349, i32 0, i32 0
  store i8 0, ptr %350, align 4, !tbaa !43
  %351 = getelementptr inbounds %struct.b2EPAxis, ptr %30, i32 0, i32 2
  %352 = load i32, ptr %351, align 4, !tbaa !47
  %353 = trunc i32 %352 to i8
  %354 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %39, i64 0, i64 1
  %355 = getelementptr inbounds %struct.b2ClipVertex, ptr %354, i32 0, i32 1
  %356 = getelementptr inbounds %struct.b2ContactFeature, ptr %355, i32 0, i32 1
  store i8 %353, ptr %356, align 1, !tbaa !43
  %357 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %39, i64 0, i64 1
  %358 = getelementptr inbounds %struct.b2ClipVertex, ptr %357, i32 0, i32 1
  %359 = getelementptr inbounds %struct.b2ContactFeature, ptr %358, i32 0, i32 2
  store i8 0, ptr %359, align 2, !tbaa !43
  %360 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %39, i64 0, i64 1
  %361 = getelementptr inbounds %struct.b2ClipVertex, ptr %360, i32 0, i32 1
  %362 = getelementptr inbounds %struct.b2ContactFeature, ptr %361, i32 0, i32 3
  store i8 1, ptr %362, align 1, !tbaa !43
  %363 = getelementptr inbounds %struct.b2EPAxis, ptr %30, i32 0, i32 2
  %364 = load i32, ptr %363, align 4, !tbaa !47
  %365 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 0
  store i32 %364, ptr %365, align 4, !tbaa !44
  %366 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 0
  %367 = load i32, ptr %366, align 4, !tbaa !44
  %368 = add nsw i32 %367, 1
  %369 = getelementptr inbounds %struct.b2TempPolygon, ptr %21, i32 0, i32 2
  %370 = load i32, ptr %369, align 4, !tbaa !29
  %371 = icmp slt i32 %368, %370
  br i1 %371, label %372, label %376

372:                                              ; preds = %326
  %373 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 0
  %374 = load i32, ptr %373, align 4, !tbaa !44
  %375 = add nsw i32 %374, 1
  br label %377

376:                                              ; preds = %326
  br label %377

377:                                              ; preds = %376, %372
  %378 = phi i32 [ %375, %372 ], [ 0, %376 ]
  %379 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 1
  store i32 %378, ptr %379, align 4, !tbaa !46
  %380 = getelementptr inbounds %struct.b2TempPolygon, ptr %21, i32 0, i32 0
  %381 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 0
  %382 = load i32, ptr %381, align 4, !tbaa !44
  %383 = sext i32 %382 to i64
  %384 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %380, i64 0, i64 %383
  %385 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %385, ptr align 4 %384, i64 8, i1 false), !tbaa.struct !15
  %386 = getelementptr inbounds %struct.b2TempPolygon, ptr %21, i32 0, i32 0
  %387 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 1
  %388 = load i32, ptr %387, align 4, !tbaa !46
  %389 = sext i32 %388 to i64
  %390 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %386, i64 0, i64 %389
  %391 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %391, ptr align 4 %390, i64 8, i1 false), !tbaa.struct !15
  %392 = getelementptr inbounds %struct.b2TempPolygon, ptr %21, i32 0, i32 1
  %393 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 0
  %394 = load i32, ptr %393, align 4, !tbaa !44
  %395 = sext i32 %394 to i64
  %396 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %392, i64 0, i64 %395
  %397 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %397, ptr align 4 %396, i64 8, i1 false), !tbaa.struct !15
  %398 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 5
  %399 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 4
  %400 = getelementptr inbounds %struct.b2Vec2, ptr %399, i32 0, i32 1
  %401 = load float, ptr %400, align 4, !tbaa !48
  %402 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 4
  %403 = getelementptr inbounds %struct.b2Vec2, ptr %402, i32 0, i32 0
  %404 = load float, ptr %403, align 4, !tbaa !49
  %405 = fneg float %404
  call void @_ZN6b2Vec23SetEff(ptr noundef nonnull align 4 dereferenceable(8) %398, float noundef %401, float noundef %405)
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #10
  %406 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 5
  %407 = call <2 x float> @_ZNK6b2Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8) %406)
  store <2 x float> %407, ptr %48, align 4
  %408 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %408, ptr align 4 %48, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #10
  br label %409

409:                                              ; preds = %377, %275
  %410 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 5
  %411 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 2
  %412 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %410, ptr noundef nonnull align 4 dereferenceable(8) %411)
  %413 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 6
  store float %412, ptr %413, align 4, !tbaa !50
  %414 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 7
  %415 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 3
  %416 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %414, ptr noundef nonnull align 4 dereferenceable(8) %415)
  %417 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 8
  store float %416, ptr %417, align 4, !tbaa !51
  call void @llvm.lifetime.start.p0(i64 24, ptr %49) #10
  %418 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %49, i32 0, i32 0
  %419 = getelementptr inbounds %struct.b2ClipVertex, ptr %418, i64 2
  br label %420

420:                                              ; preds = %420, %409
  %421 = phi ptr [ %418, %409 ], [ %422, %420 ]
  call void @_ZN12b2ClipVertexC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %421)
  %422 = getelementptr inbounds %struct.b2ClipVertex, ptr %421, i64 1
  %423 = icmp eq ptr %422, %419
  br i1 %423, label %424, label %420

424:                                              ; preds = %420
  call void @llvm.lifetime.start.p0(i64 24, ptr %50) #10
  %425 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %50, i32 0, i32 0
  %426 = getelementptr inbounds %struct.b2ClipVertex, ptr %425, i64 2
  br label %427

427:                                              ; preds = %427, %424
  %428 = phi ptr [ %425, %424 ], [ %429, %427 ]
  call void @_ZN12b2ClipVertexC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %428)
  %429 = getelementptr inbounds %struct.b2ClipVertex, ptr %428, i64 1
  %430 = icmp eq ptr %429, %426
  br i1 %430, label %431, label %427

431:                                              ; preds = %427
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #10
  %432 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %49, i64 0, i64 0
  %433 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %39, i64 0, i64 0
  %434 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 5
  %435 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 6
  %436 = load float, ptr %435, align 4, !tbaa !50
  %437 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 0
  %438 = load i32, ptr %437, align 4, !tbaa !44
  %439 = call noundef i32 @_Z19b2ClipSegmentToLineP12b2ClipVertexPKS_RK6b2Vec2fi(ptr noundef %432, ptr noundef %433, ptr noundef nonnull align 4 dereferenceable(8) %434, float noundef %436, i32 noundef %438)
  store i32 %439, ptr %51, align 4, !tbaa !31
  %440 = load i32, ptr %51, align 4, !tbaa !31
  %441 = icmp slt i32 %440, 2
  br i1 %441, label %442, label %443

442:                                              ; preds = %431
  store i32 1, ptr %20, align 4
  br label %578

443:                                              ; preds = %431
  %444 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %50, i64 0, i64 0
  %445 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %49, i64 0, i64 0
  %446 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 7
  %447 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 8
  %448 = load float, ptr %447, align 4, !tbaa !51
  %449 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 1
  %450 = load i32, ptr %449, align 4, !tbaa !46
  %451 = call noundef i32 @_Z19b2ClipSegmentToLineP12b2ClipVertexPKS_RK6b2Vec2fi(ptr noundef %444, ptr noundef %445, ptr noundef nonnull align 4 dereferenceable(8) %446, float noundef %448, i32 noundef %450)
  store i32 %451, ptr %51, align 4, !tbaa !31
  %452 = load i32, ptr %51, align 4, !tbaa !31
  %453 = icmp slt i32 %452, 2
  br i1 %453, label %454, label %455

454:                                              ; preds = %443
  store i32 1, ptr %20, align 4
  br label %578

455:                                              ; preds = %443
  %456 = getelementptr inbounds %struct.b2EPAxis, ptr %30, i32 0, i32 1
  %457 = load i32, ptr %456, align 4, !tbaa !40
  %458 = icmp eq i32 %457, 1
  br i1 %458, label %459, label %466

459:                                              ; preds = %455
  %460 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 4
  %461 = load ptr, ptr %6, align 8, !tbaa !5
  %462 = getelementptr inbounds %struct.b2Manifold, ptr %461, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %462, ptr align 4 %460, i64 8, i1 false), !tbaa.struct !15
  %463 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 2
  %464 = load ptr, ptr %6, align 8, !tbaa !5
  %465 = getelementptr inbounds %struct.b2Manifold, ptr %464, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %465, ptr align 4 %463, i64 8, i1 false), !tbaa.struct !15
  br label %483

466:                                              ; preds = %455
  %467 = load ptr, ptr %9, align 8, !tbaa !5
  %468 = getelementptr inbounds %class.b2PolygonShape, ptr %467, i32 0, i32 3
  %469 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 0
  %470 = load i32, ptr %469, align 4, !tbaa !44
  %471 = sext i32 %470 to i64
  %472 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %468, i64 0, i64 %471
  %473 = load ptr, ptr %6, align 8, !tbaa !5
  %474 = getelementptr inbounds %struct.b2Manifold, ptr %473, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %474, ptr align 8 %472, i64 8, i1 false), !tbaa.struct !15
  %475 = load ptr, ptr %9, align 8, !tbaa !5
  %476 = getelementptr inbounds %class.b2PolygonShape, ptr %475, i32 0, i32 2
  %477 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 0
  %478 = load i32, ptr %477, align 4, !tbaa !44
  %479 = sext i32 %478 to i64
  %480 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %476, i64 0, i64 %479
  %481 = load ptr, ptr %6, align 8, !tbaa !5
  %482 = getelementptr inbounds %struct.b2Manifold, ptr %481, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %482, ptr align 8 %480, i64 8, i1 false), !tbaa.struct !15
  br label %483

483:                                              ; preds = %466, %459
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #10
  store i32 0, ptr %52, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #10
  store i32 0, ptr %53, align 4, !tbaa !31
  br label %484

484:                                              ; preds = %571, %483
  %485 = load i32, ptr %53, align 4, !tbaa !31
  %486 = icmp slt i32 %485, 2
  br i1 %486, label %488, label %487

487:                                              ; preds = %484
  store i32 8, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #10
  br label %574

488:                                              ; preds = %484
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #10
  %489 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #10
  %490 = load i32, ptr %53, align 4, !tbaa !31
  %491 = sext i32 %490 to i64
  %492 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %50, i64 0, i64 %491
  %493 = getelementptr inbounds %struct.b2ClipVertex, ptr %492, i32 0, i32 0
  %494 = getelementptr inbounds %struct.b2ReferenceFace, ptr %40, i32 0, i32 2
  %495 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %493, ptr noundef nonnull align 4 dereferenceable(8) %494)
  store <2 x float> %495, ptr %55, align 4
  %496 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %489, ptr noundef nonnull align 4 dereferenceable(8) %55)
  store float %496, ptr %54, align 4, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #10
  %497 = load float, ptr %54, align 4, !tbaa !16
  %498 = load float, ptr %25, align 4, !tbaa !16
  %499 = fcmp ole float %497, %498
  br i1 %499, label %500, label %570

500:                                              ; preds = %488
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #10
  %501 = load ptr, ptr %6, align 8, !tbaa !5
  %502 = getelementptr inbounds %struct.b2Manifold, ptr %501, i32 0, i32 0
  %503 = getelementptr inbounds [2 x %struct.b2ManifoldPoint], ptr %502, i64 0, i64 0
  %504 = load i32, ptr %52, align 4, !tbaa !31
  %505 = sext i32 %504 to i64
  %506 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %503, i64 %505
  store ptr %506, ptr %56, align 8, !tbaa !5
  %507 = getelementptr inbounds %struct.b2EPAxis, ptr %30, i32 0, i32 1
  %508 = load i32, ptr %507, align 4, !tbaa !40
  %509 = icmp eq i32 %508, 1
  br i1 %509, label %510, label %524

510:                                              ; preds = %500
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #10
  %511 = load i32, ptr %53, align 4, !tbaa !31
  %512 = sext i32 %511 to i64
  %513 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %50, i64 0, i64 %512
  %514 = getelementptr inbounds %struct.b2ClipVertex, ptr %513, i32 0, i32 0
  %515 = call <2 x float> @_Z6b2MulTRK11b2TransformRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(8) %514)
  store <2 x float> %515, ptr %57, align 4
  %516 = load ptr, ptr %56, align 8, !tbaa !5
  %517 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %516, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %517, ptr align 4 %57, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #10
  %518 = load i32, ptr %53, align 4, !tbaa !31
  %519 = sext i32 %518 to i64
  %520 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %50, i64 0, i64 %519
  %521 = getelementptr inbounds %struct.b2ClipVertex, ptr %520, i32 0, i32 1
  %522 = load ptr, ptr %56, align 8, !tbaa !5
  %523 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %522, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %523, ptr align 4 %521, i64 4, i1 false), !tbaa.struct !52
  br label %567

524:                                              ; preds = %500
  %525 = load i32, ptr %53, align 4, !tbaa !31
  %526 = sext i32 %525 to i64
  %527 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %50, i64 0, i64 %526
  %528 = getelementptr inbounds %struct.b2ClipVertex, ptr %527, i32 0, i32 0
  %529 = load ptr, ptr %56, align 8, !tbaa !5
  %530 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %529, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %530, ptr align 4 %528, i64 8, i1 false), !tbaa.struct !15
  %531 = load i32, ptr %53, align 4, !tbaa !31
  %532 = sext i32 %531 to i64
  %533 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %50, i64 0, i64 %532
  %534 = getelementptr inbounds %struct.b2ClipVertex, ptr %533, i32 0, i32 1
  %535 = getelementptr inbounds %struct.b2ContactFeature, ptr %534, i32 0, i32 3
  %536 = load i8, ptr %535, align 1, !tbaa !43
  %537 = load ptr, ptr %56, align 8, !tbaa !5
  %538 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %537, i32 0, i32 3
  %539 = getelementptr inbounds %struct.b2ContactFeature, ptr %538, i32 0, i32 2
  store i8 %536, ptr %539, align 2, !tbaa !43
  %540 = load i32, ptr %53, align 4, !tbaa !31
  %541 = sext i32 %540 to i64
  %542 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %50, i64 0, i64 %541
  %543 = getelementptr inbounds %struct.b2ClipVertex, ptr %542, i32 0, i32 1
  %544 = getelementptr inbounds %struct.b2ContactFeature, ptr %543, i32 0, i32 2
  %545 = load i8, ptr %544, align 2, !tbaa !43
  %546 = load ptr, ptr %56, align 8, !tbaa !5
  %547 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %546, i32 0, i32 3
  %548 = getelementptr inbounds %struct.b2ContactFeature, ptr %547, i32 0, i32 3
  store i8 %545, ptr %548, align 1, !tbaa !43
  %549 = load i32, ptr %53, align 4, !tbaa !31
  %550 = sext i32 %549 to i64
  %551 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %50, i64 0, i64 %550
  %552 = getelementptr inbounds %struct.b2ClipVertex, ptr %551, i32 0, i32 1
  %553 = getelementptr inbounds %struct.b2ContactFeature, ptr %552, i32 0, i32 1
  %554 = load i8, ptr %553, align 1, !tbaa !43
  %555 = load ptr, ptr %56, align 8, !tbaa !5
  %556 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %555, i32 0, i32 3
  %557 = getelementptr inbounds %struct.b2ContactFeature, ptr %556, i32 0, i32 0
  store i8 %554, ptr %557, align 4, !tbaa !43
  %558 = load i32, ptr %53, align 4, !tbaa !31
  %559 = sext i32 %558 to i64
  %560 = getelementptr inbounds [2 x %struct.b2ClipVertex], ptr %50, i64 0, i64 %559
  %561 = getelementptr inbounds %struct.b2ClipVertex, ptr %560, i32 0, i32 1
  %562 = getelementptr inbounds %struct.b2ContactFeature, ptr %561, i32 0, i32 0
  %563 = load i8, ptr %562, align 4, !tbaa !43
  %564 = load ptr, ptr %56, align 8, !tbaa !5
  %565 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %564, i32 0, i32 3
  %566 = getelementptr inbounds %struct.b2ContactFeature, ptr %565, i32 0, i32 1
  store i8 %563, ptr %566, align 1, !tbaa !43
  br label %567

567:                                              ; preds = %524, %510
  %568 = load i32, ptr %52, align 4, !tbaa !31
  %569 = add nsw i32 %568, 1
  store i32 %569, ptr %52, align 4, !tbaa !31
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #10
  br label %570

570:                                              ; preds = %567, %488
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #10
  br label %571

571:                                              ; preds = %570
  %572 = load i32, ptr %53, align 4, !tbaa !31
  %573 = add nsw i32 %572, 1
  store i32 %573, ptr %53, align 4, !tbaa !31
  br label %484, !llvm.loop !53

574:                                              ; preds = %487
  %575 = load i32, ptr %52, align 4, !tbaa !31
  %576 = load ptr, ptr %6, align 8, !tbaa !5
  %577 = getelementptr inbounds %struct.b2Manifold, ptr %576, i32 0, i32 4
  store i32 %575, ptr %577, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #10
  store i32 0, ptr %20, align 4
  br label %578

578:                                              ; preds = %574, %454, %442
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %50) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %49) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr %40) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %39) #10
  br label %579

579:                                              ; preds = %578, %220
  call void @llvm.lifetime.end.p0(i64 20, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #10
  br label %580

580:                                              ; preds = %579, %149
  call void @llvm.lifetime.end.p0(i64 20, ptr %27) #10
  br label %581

581:                                              ; preds = %580, %143
  call void @llvm.lifetime.end.p0(i64 20, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 132, ptr %21) #10
  br label %582

582:                                              ; preds = %581, %93
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #10
  %583 = load i32, ptr %20, align 4
  switch i32 %583, label %585 [
    i32 0, label %584
    i32 1, label %584
  ]

584:                                              ; preds = %582, %582
  ret void

585:                                              ; preds = %582
  unreachable
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_Z6b2MulTRK11b2TransformS1_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN13b2TempPolygonC2Ev(ptr noundef nonnull align 4 dereferenceable(132)) unnamed_addr #7 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL23b2ComputeEdgeSeparationRK13b2TempPolygonRK6b2Vec2S4_(ptr dead_on_unwind noalias writable sret(%struct.b2EPAxis) align 4, ptr noundef nonnull align 4 dereferenceable(132), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #6

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL26b2ComputePolygonSeparationRK13b2TempPolygonRK6b2Vec2S4_(ptr dead_on_unwind noalias writable sret(%struct.b2EPAxis) align 4, ptr noundef nonnull align 4 dereferenceable(132), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8b2EPAxisC2Ev(ptr noundef nonnull align 4 dereferenceable(20)) unnamed_addr #7 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN12b2ClipVertexC2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN15b2ReferenceFaceC2Ev(ptr noundef nonnull align 4 dereferenceable(56)) unnamed_addr #7 align 2

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

declare noundef i32 @_Z19b2ClipSegmentToLineP12b2ClipVertexPKS_RK6b2Vec2fi(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(8), float noundef, i32 noundef) #9

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { "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 #10 = { 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, !14, i64 60}
!10 = !{!"_ZTS10b2Manifold", !7, i64 0, !11, i64 40, !11, i64 48, !13, i64 56, !14, i64 60}
!11 = !{!"_ZTS6b2Vec2", !12, i64 0, !12, i64 4}
!12 = !{!"float", !7, i64 0}
!13 = !{!"_ZTSN10b2Manifold4TypeE", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{i64 0, i64 4, !16, i64 4, i64 4, !16}
!16 = !{!12, !12, i64 0}
!17 = !{!11, !12, i64 4}
!18 = !{!11, !12, i64 0}
!19 = !{!20, !23, i64 48}
!20 = !{!"_ZTS11b2EdgeShape", !21, i64 0, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !23, i64 48}
!21 = !{!"_ZTS7b2Shape", !22, i64 8, !12, i64 12}
!22 = !{!"_ZTSN7b2Shape4TypeE", !7, i64 0}
!23 = !{!"bool", !7, i64 0}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!23, !23, i64 0}
!27 = !{!28, !14, i64 152}
!28 = !{!"_ZTS14b2PolygonShape", !21, i64 0, !11, i64 16, !7, i64 24, !7, i64 88, !14, i64 152}
!29 = !{!30, !14, i64 128}
!30 = !{!"_ZTS13b2TempPolygon", !7, i64 0, !7, i64 64, !14, i64 128}
!31 = !{!14, !14, i64 0}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!21, !12, i64 12}
!35 = !{!36, !12, i64 16}
!36 = !{!"_ZTS8b2EPAxis", !11, i64 0, !37, i64 8, !14, i64 12, !12, i64 16}
!37 = !{!"_ZTSN8b2EPAxis4TypeE", !7, i64 0}
!38 = !{i64 0, i64 4, !16, i64 4, i64 4, !16, i64 8, i64 4, !39, i64 12, i64 4, !31, i64 16, i64 4, !16}
!39 = !{!37, !37, i64 0}
!40 = !{!36, !37, i64 8}
!41 = !{!10, !13, i64 56}
!42 = distinct !{!42, !33}
!43 = !{!7, !7, i64 0}
!44 = !{!45, !14, i64 0}
!45 = !{!"_ZTS15b2ReferenceFace", !14, i64 0, !14, i64 4, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !12, i64 40, !11, i64 44, !12, i64 52}
!46 = !{!45, !14, i64 4}
!47 = !{!36, !14, i64 12}
!48 = !{!45, !12, i64 28}
!49 = !{!45, !12, i64 24}
!50 = !{!45, !12, i64 40}
!51 = !{!45, !12, i64 52}
!52 = !{i64 0, i64 4, !43}
!53 = distinct !{!53, !33}


; 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.b2Transform = type { %struct.b2Vec2, %struct.b2Rot }
%struct.b2Vec2 = type { float, float }
%struct.b2Rot = type { float, float }
%struct.b2TempPolygon = type { [8 x %struct.b2Vec2], [8 x %struct.b2Vec2], i32 }
%struct.b2EPAxis = type { %struct.b2Vec2, i32, i32, float }
%struct.b2ClipVertex = type { %struct.b2Vec2, %union.b2ContactID }
%union.b2ContactID = type { i32 }
%struct.b2ReferenceFace = type { i32, i32, %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, float, %struct.b2Vec2, float }
%struct.b2ManifoldPoint = type { %struct.b2Vec2, float, float, %union.b2ContactID }

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_Z5b2MulRK11b2TransformRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #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 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) #2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN6b2Vec29NormalizeEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z23b2CollideEdgeAndPolygonP10b2ManifoldPK11b2EdgeShapeRK11b2TransformPK14b2PolygonShapeS6_(ptr nocapture noundef writeonly %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef %3, ptr noundef nonnull align 4 dereferenceable(16) %4) local_unnamed_addr #6 {
  %6 = alloca %struct.b2Transform, align 8
  %7 = alloca %struct.b2Vec2, align 8
  %8 = alloca %struct.b2Vec2, align 8
  %9 = alloca %struct.b2Vec2, align 8
  %10 = alloca %struct.b2Vec2, align 8
  %11 = alloca %struct.b2Vec2, align 4
  %12 = alloca %struct.b2Vec2, align 8
  %13 = alloca %struct.b2TempPolygon, align 4
  %14 = alloca %struct.b2EPAxis, align 4
  %15 = alloca %struct.b2EPAxis, align 4
  %16 = alloca %struct.b2EPAxis, align 8
  %17 = alloca %struct.b2Vec2, align 8
  %18 = alloca %struct.b2Vec2, align 4
  %19 = alloca %struct.b2Vec2, align 8
  %20 = alloca %struct.b2Vec2, align 4
  %21 = alloca [2 x %struct.b2ClipVertex], align 16
  %22 = alloca %struct.b2ReferenceFace, align 4
  %23 = alloca [2 x %struct.b2ClipVertex], align 16
  %24 = alloca [2 x %struct.b2ClipVertex], align 16
  %25 = alloca %struct.b2Vec2, align 8
  %26 = getelementptr inbounds i8, ptr %0, i64 60
  store i32 0, ptr %26, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #10
  %27 = tail call { <2 x float>, <2 x float> } @_Z6b2MulTRK11b2TransformS1_(ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(16) %4)
  %28 = extractvalue { <2 x float>, <2 x float> } %27, 0
  store <2 x float> %28, ptr %6, align 8
  %29 = getelementptr inbounds i8, ptr %6, i64 8
  %30 = extractvalue { <2 x float>, <2 x float> } %27, 1
  store <2 x float> %30, ptr %29, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #10
  %31 = getelementptr inbounds i8, ptr %3, i64 16
  %32 = call <2 x float> @_Z5b2MulRK11b2TransformRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(8) %31)
  store <2 x float> %32, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #10
  %33 = getelementptr inbounds i8, ptr %1, i64 16
  %34 = load i64, ptr %33, align 8
  store i64 %34, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #10
  %35 = getelementptr inbounds i8, ptr %1, i64 24
  %36 = load i64, ptr %35, align 8
  store i64 %36, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #10
  %37 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %8)
  store <2 x float> %37, ptr %10, align 8
  %38 = call noundef float @_ZN6b2Vec29NormalizeEv(ptr noundef nonnull align 4 dereferenceable(8) %10)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #10
  %39 = getelementptr inbounds i8, ptr %10, i64 4
  %40 = load float, ptr %39, align 4, !tbaa !13
  %41 = load float, ptr %10, align 8, !tbaa !14
  %42 = fneg float %41
  call void @_ZN6b2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %11, float noundef %40, float noundef %42)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #10
  %43 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %8)
  store <2 x float> %43, ptr %12, align 8
  %44 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #10
  %45 = getelementptr inbounds i8, ptr %1, i64 48
  %46 = load i8, ptr %45, align 8, !tbaa !15, !range !20, !noundef !21
  %47 = trunc nuw i8 %46 to i1
  %48 = fcmp olt float %44, 0.000000e+00
  %or.cond = and i1 %48, %47
  br i1 %or.cond, label %290, label %49

49:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 132, ptr nonnull %13) #10
  call void @_ZN13b2TempPolygonC2Ev(ptr noundef nonnull align 4 dereferenceable(132) %13)
  %50 = getelementptr inbounds i8, ptr %3, i64 152
  %51 = load i32, ptr %50, align 8, !tbaa !22
  %52 = getelementptr inbounds i8, ptr %13, i64 128
  store i32 %51, ptr %52, align 4, !tbaa !24
  %53 = icmp sgt i32 %51, 0
  br i1 %53, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %49
  %54 = getelementptr inbounds i8, ptr %3, i64 24
  %55 = getelementptr inbounds i8, ptr %3, i64 88
  %56 = getelementptr inbounds i8, ptr %13, i64 64
  br label %65

._crit_edge:                                      ; preds = %65, %49
  %57 = getelementptr inbounds i8, ptr %3, i64 12
  %58 = load float, ptr %57, align 4, !tbaa !26
  %59 = getelementptr inbounds i8, ptr %1, i64 12
  %60 = load float, ptr %59, align 4, !tbaa !26
  %61 = fadd float %58, %60
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %14) #10
  call void @_ZL23b2ComputeEdgeSeparationRK13b2TempPolygonRK6b2Vec2S4_(ptr dead_on_unwind nonnull writable sret(%struct.b2EPAxis) align 4 %14, ptr noundef nonnull align 4 dereferenceable(132) %13, ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %11)
  %62 = getelementptr inbounds i8, ptr %14, i64 16
  %63 = load float, ptr %62, align 4, !tbaa !27
  %64 = fcmp ogt float %63, %61
  br i1 %64, label %289, label %75

65:                                               ; preds = %.lr.ph, %65
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %65 ]
  %66 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %54, i64 0, i64 %indvars.iv
  %67 = call <2 x float> @_Z5b2MulRK11b2TransformRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(8) %66)
  %68 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %13, i64 0, i64 %indvars.iv
  store <2 x float> %67, ptr %68, align 4
  %69 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %55, i64 0, i64 %indvars.iv
  %70 = call <2 x float> @_Z5b2MulRK5b2RotRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(8) %29, ptr noundef nonnull align 4 dereferenceable(8) %69)
  %71 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %56, i64 0, i64 %indvars.iv
  store <2 x float> %70, ptr %71, align 4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %72 = load i32, ptr %50, align 8, !tbaa !22
  %73 = sext i32 %72 to i64
  %74 = icmp slt i64 %indvars.iv.next, %73
  br i1 %74, label %65, label %._crit_edge, !llvm.loop !30

75:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %15) #10
  call void @_ZL26b2ComputePolygonSeparationRK13b2TempPolygonRK6b2Vec2S4_(ptr dead_on_unwind nonnull writable sret(%struct.b2EPAxis) align 4 %15, ptr noundef nonnull align 4 dereferenceable(132) %13, ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %9)
  %76 = getelementptr inbounds i8, ptr %15, i64 16
  %77 = load float, ptr %76, align 4, !tbaa !27
  %78 = fcmp ogt float %77, %61
  br i1 %78, label %288, label %79

79:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %16) #10
  call void @_ZN8b2EPAxisC2Ev(ptr noundef nonnull align 4 dereferenceable(20) %16)
  %80 = load float, ptr %76, align 4, !tbaa !27
  %81 = fsub float %80, %61
  %82 = load float, ptr %62, align 4, !tbaa !27
  %83 = fsub float %82, %61
  %84 = call float @llvm.fmuladd.f32(float %83, float 0x3FEF5C2900000000, float 0x3F50624DE0000000)
  %85 = fcmp ogt float %81, %84
  %. = select i1 %85, ptr %15, ptr %14
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %16, ptr noundef nonnull align 4 dereferenceable(20) %., i64 20, i1 false)
  br i1 %47, label %86, label %116

86:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #10
  %87 = getelementptr inbounds i8, ptr %1, i64 32
  %88 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %87)
  store <2 x float> %88, ptr %17, align 8
  %89 = call noundef float @_ZN6b2Vec29NormalizeEv(ptr noundef nonnull align 4 dereferenceable(8) %17)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #10
  %90 = getelementptr inbounds i8, ptr %17, i64 4
  %91 = load float, ptr %90, align 4, !tbaa !13
  %92 = load float, ptr %17, align 8, !tbaa !14
  %93 = fneg float %92
  call void @_ZN6b2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %18, float noundef %91, float noundef %93)
  %94 = call noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %10)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #10
  %95 = getelementptr inbounds i8, ptr %1, i64 40
  %96 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %95, ptr noundef nonnull align 4 dereferenceable(8) %9)
  store <2 x float> %96, ptr %19, align 8
  %97 = call noundef float @_ZN6b2Vec29NormalizeEv(ptr noundef nonnull align 4 dereferenceable(8) %19)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #10
  %98 = getelementptr inbounds i8, ptr %19, i64 4
  %99 = load float, ptr %98, align 4, !tbaa !13
  %100 = load float, ptr %19, align 8, !tbaa !14
  %101 = fneg float %100
  call void @_ZN6b2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %20, float noundef %99, float noundef %101)
  %102 = call noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %19)
  %103 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %10)
  %104 = fcmp ugt float %103, 0.000000e+00
  br i1 %104, label %110, label %105

105:                                              ; preds = %86
  %106 = fcmp ult float %94, 0.000000e+00
  br i1 %106, label %.critedge.sink.split, label %107

107:                                              ; preds = %105
  %108 = call noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %18)
  %109 = fcmp ogt float %108, 0x3FB99999A0000000
  br i1 %109, label %115, label %.critedge

110:                                              ; preds = %86
  %111 = fcmp ult float %102, 0.000000e+00
  br i1 %111, label %.critedge.sink.split, label %112

112:                                              ; preds = %110
  %113 = call noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %20, ptr noundef nonnull align 4 dereferenceable(8) %16)
  %114 = fcmp ogt float %113, 0x3FB99999A0000000
  br i1 %114, label %115, label %.critedge

.critedge.sink.split:                             ; preds = %110, %105
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %16, ptr noundef nonnull align 4 dereferenceable(20) %14, i64 20, i1 false)
  br label %.critedge

.critedge:                                        ; preds = %.critedge.sink.split, %112, %107
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #10
  br label %116

115:                                              ; preds = %112, %107
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #10
  br label %287

116:                                              ; preds = %.critedge, %79
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %21) #10
  call void @_ZN12b2ClipVertexC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %21)
  %.ptr.1 = getelementptr inbounds i8, ptr %21, i64 12
  call void @_ZN12b2ClipVertexC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %.ptr.1)
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %22) #10
  call void @_ZN15b2ReferenceFaceC2Ev(ptr noundef nonnull align 4 dereferenceable(56) %22)
  %117 = getelementptr inbounds i8, ptr %16, i64 8
  %118 = load i32, ptr %117, align 8, !tbaa !32
  %119 = icmp eq i32 %118, 1
  %120 = getelementptr inbounds i8, ptr %0, i64 56
  br i1 %119, label %121, label %163

121:                                              ; preds = %116
  store i32 1, ptr %120, align 4, !tbaa !33
  %122 = getelementptr inbounds i8, ptr %13, i64 64
  %123 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %122)
  %124 = load i32, ptr %52, align 4, !tbaa !24
  %125 = icmp sgt i32 %124, 1
  br i1 %125, label %.lr.ph109, label %._crit_edge110

._crit_edge110:                                   ; preds = %.lr.ph109, %121
  %.085.lcssa = phi i32 [ 0, %121 ], [ %.1, %.lr.ph109 ]
  %.lcssa = phi i32 [ %124, %121 ], [ %160, %.lr.ph109 ]
  %126 = add nsw i32 %.085.lcssa, 1
  %127 = icmp slt i32 %126, %.lcssa
  %128 = select i1 %127, i32 %126, i32 0
  %129 = sext i32 %.085.lcssa to i64
  %130 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %13, i64 0, i64 %129
  %131 = load i64, ptr %130, align 4
  store i64 %131, ptr %21, align 16
  %132 = getelementptr inbounds i8, ptr %21, i64 8
  store i8 0, ptr %132, align 8, !tbaa !34
  %133 = trunc i32 %.085.lcssa to i8
  %134 = getelementptr inbounds i8, ptr %21, i64 9
  store i8 %133, ptr %134, align 1, !tbaa !34
  %135 = getelementptr inbounds i8, ptr %21, i64 10
  store i8 1, ptr %135, align 2, !tbaa !34
  %136 = getelementptr inbounds i8, ptr %21, i64 11
  store i8 0, ptr %136, align 1, !tbaa !34
  %137 = sext i32 %128 to i64
  %138 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %13, i64 0, i64 %137
  %139 = load i64, ptr %138, align 4
  store i64 %139, ptr %.ptr.1, align 4
  %140 = getelementptr inbounds i8, ptr %21, i64 20
  store i8 0, ptr %140, align 4, !tbaa !34
  %141 = trunc i32 %128 to i8
  %142 = getelementptr inbounds i8, ptr %21, i64 21
  store i8 %141, ptr %142, align 1, !tbaa !34
  %143 = getelementptr inbounds i8, ptr %21, i64 22
  store i8 1, ptr %143, align 2, !tbaa !34
  %144 = getelementptr inbounds i8, ptr %21, i64 23
  store i8 0, ptr %144, align 1, !tbaa !34
  store i32 0, ptr %22, align 4, !tbaa !35
  %145 = getelementptr inbounds i8, ptr %22, i64 4
  store i32 1, ptr %145, align 4, !tbaa !37
  %146 = getelementptr inbounds i8, ptr %22, i64 8
  %147 = load i64, ptr %8, align 8
  store i64 %147, ptr %146, align 4
  %148 = getelementptr inbounds i8, ptr %22, i64 16
  %149 = load i64, ptr %9, align 8
  store i64 %149, ptr %148, align 4
  %150 = getelementptr inbounds i8, ptr %22, i64 24
  %151 = load i64, ptr %16, align 8
  store i64 %151, ptr %150, align 4
  %152 = call <2 x float> @_ZNK6b2Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8) %10)
  %153 = getelementptr inbounds i8, ptr %22, i64 32
  store <2 x float> %152, ptr %153, align 4
  %154 = getelementptr inbounds i8, ptr %22, i64 44
  %155 = load i64, ptr %10, align 8
  store i64 %155, ptr %154, align 4
  br label %203

.lr.ph109:                                        ; preds = %121, %.lr.ph109
  %indvars.iv116 = phi i64 [ %indvars.iv.next117, %.lr.ph109 ], [ 1, %121 ]
  %.085107 = phi i32 [ %.1, %.lr.ph109 ], [ 0, %121 ]
  %.089106 = phi float [ %.190, %.lr.ph109 ], [ %123, %121 ]
  %156 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %122, i64 0, i64 %indvars.iv116
  %157 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %156)
  %158 = fcmp olt float %157, %.089106
  %.190 = select i1 %158, float %157, float %.089106
  %159 = trunc nuw nsw i64 %indvars.iv116 to i32
  %.1 = select i1 %158, i32 %159, i32 %.085107
  %indvars.iv.next117 = add nuw nsw i64 %indvars.iv116, 1
  %160 = load i32, ptr %52, align 4, !tbaa !24
  %161 = sext i32 %160 to i64
  %162 = icmp slt i64 %indvars.iv.next117, %161
  br i1 %162, label %.lr.ph109, label %._crit_edge110, !llvm.loop !38

163:                                              ; preds = %116
  store i32 2, ptr %120, align 4, !tbaa !33
  %164 = load i64, ptr %9, align 8
  store i64 %164, ptr %21, align 16
  %165 = getelementptr inbounds i8, ptr %21, i64 8
  store i8 1, ptr %165, align 8, !tbaa !34
  %166 = getelementptr inbounds i8, ptr %16, i64 12
  %167 = load i32, ptr %166, align 4, !tbaa !39
  %168 = trunc i32 %167 to i8
  %169 = getelementptr inbounds i8, ptr %21, i64 9
  store i8 %168, ptr %169, align 1, !tbaa !34
  %170 = getelementptr inbounds i8, ptr %21, i64 10
  store i8 0, ptr %170, align 2, !tbaa !34
  %171 = getelementptr inbounds i8, ptr %21, i64 11
  store i8 1, ptr %171, align 1, !tbaa !34
  %172 = load i64, ptr %8, align 8
  store i64 %172, ptr %.ptr.1, align 4
  %173 = getelementptr inbounds i8, ptr %21, i64 20
  store i8 0, ptr %173, align 4, !tbaa !34
  %174 = getelementptr inbounds i8, ptr %21, i64 21
  store i8 %168, ptr %174, align 1, !tbaa !34
  %175 = getelementptr inbounds i8, ptr %21, i64 22
  store i8 0, ptr %175, align 2, !tbaa !34
  %176 = getelementptr inbounds i8, ptr %21, i64 23
  store i8 1, ptr %176, align 1, !tbaa !34
  store i32 %167, ptr %22, align 4, !tbaa !35
  %177 = add nsw i32 %167, 1
  %178 = load i32, ptr %52, align 4, !tbaa !24
  %179 = icmp slt i32 %177, %178
  %180 = select i1 %179, i32 %177, i32 0
  %181 = getelementptr inbounds i8, ptr %22, i64 4
  store i32 %180, ptr %181, align 4, !tbaa !37
  %182 = sext i32 %167 to i64
  %183 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %13, i64 0, i64 %182
  %184 = getelementptr inbounds i8, ptr %22, i64 8
  %185 = load i64, ptr %183, align 4
  store i64 %185, ptr %184, align 4
  %186 = sext i32 %180 to i64
  %187 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %13, i64 0, i64 %186
  %188 = getelementptr inbounds i8, ptr %22, i64 16
  %189 = load i64, ptr %187, align 4
  store i64 %189, ptr %188, align 4
  %190 = getelementptr inbounds i8, ptr %13, i64 64
  %191 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %190, i64 0, i64 %182
  %192 = getelementptr inbounds i8, ptr %22, i64 24
  %193 = load i64, ptr %191, align 4
  store i64 %193, ptr %192, align 4
  %194 = getelementptr inbounds i8, ptr %22, i64 32
  %195 = lshr i64 %193, 32
  %196 = trunc nuw i64 %195 to i32
  %197 = bitcast i32 %196 to float
  %198 = trunc i64 %193 to i32
  %199 = bitcast i32 %198 to float
  %200 = fneg float %199
  call void @_ZN6b2Vec23SetEff(ptr noundef nonnull align 4 dereferenceable(8) %194, float noundef %197, float noundef %200)
  %201 = call <2 x float> @_ZNK6b2Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8) %194)
  %202 = getelementptr inbounds i8, ptr %22, i64 44
  store <2 x float> %201, ptr %202, align 4
  br label %203

203:                                              ; preds = %163, %._crit_edge110
  %204 = getelementptr inbounds i8, ptr %22, i64 32
  %205 = getelementptr inbounds i8, ptr %22, i64 8
  %206 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %204, ptr noundef nonnull align 4 dereferenceable(8) %205)
  %207 = getelementptr inbounds i8, ptr %22, i64 40
  store float %206, ptr %207, align 4, !tbaa !40
  %208 = getelementptr inbounds i8, ptr %22, i64 44
  %209 = getelementptr inbounds i8, ptr %22, i64 16
  %210 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %208, ptr noundef nonnull align 4 dereferenceable(8) %209)
  %211 = getelementptr inbounds i8, ptr %22, i64 52
  store float %210, ptr %211, align 4, !tbaa !41
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %23) #10
  call void @_ZN12b2ClipVertexC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %23)
  %.ptr98.1 = getelementptr inbounds i8, ptr %23, i64 12
  call void @_ZN12b2ClipVertexC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %.ptr98.1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %24) #10
  call void @_ZN12b2ClipVertexC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %24)
  %.ptr102.1 = getelementptr inbounds i8, ptr %24, i64 12
  call void @_ZN12b2ClipVertexC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %.ptr102.1)
  %212 = load float, ptr %207, align 4, !tbaa !40
  %213 = load i32, ptr %22, align 4, !tbaa !35
  %214 = call noundef i32 @_Z19b2ClipSegmentToLineP12b2ClipVertexPKS_RK6b2Vec2fi(ptr noundef nonnull %23, ptr noundef nonnull %21, ptr noundef nonnull align 4 dereferenceable(8) %204, float noundef %212, i32 noundef %213)
  %215 = icmp slt i32 %214, 2
  br i1 %215, label %286, label %216

216:                                              ; preds = %203
  %217 = load float, ptr %211, align 4, !tbaa !41
  %218 = getelementptr inbounds i8, ptr %22, i64 4
  %219 = load i32, ptr %218, align 4, !tbaa !37
  %220 = call noundef i32 @_Z19b2ClipSegmentToLineP12b2ClipVertexPKS_RK6b2Vec2fi(ptr noundef nonnull %24, ptr noundef nonnull %23, ptr noundef nonnull align 4 dereferenceable(8) %208, float noundef %217, i32 noundef %219)
  %221 = icmp slt i32 %220, 2
  br i1 %221, label %286, label %222

222:                                              ; preds = %216
  %223 = load i32, ptr %117, align 8, !tbaa !32
  %224 = icmp eq i32 %223, 1
  br i1 %224, label %225, label %230

225:                                              ; preds = %222
  %226 = getelementptr inbounds i8, ptr %22, i64 24
  %227 = getelementptr inbounds i8, ptr %0, i64 40
  %228 = load i64, ptr %226, align 4
  store i64 %228, ptr %227, align 4
  %229 = load i64, ptr %205, align 4
  br label %240

230:                                              ; preds = %222
  %231 = getelementptr inbounds i8, ptr %3, i64 88
  %232 = load i32, ptr %22, align 4, !tbaa !35
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %231, i64 0, i64 %233
  %235 = getelementptr inbounds i8, ptr %0, i64 40
  %236 = load i64, ptr %234, align 8
  store i64 %236, ptr %235, align 4
  %237 = getelementptr inbounds i8, ptr %3, i64 24
  %238 = getelementptr inbounds [8 x %struct.b2Vec2], ptr %237, i64 0, i64 %233
  %239 = load i64, ptr %238, align 8
  br label %240

240:                                              ; preds = %230, %225
  %.sink = phi i64 [ %229, %225 ], [ %239, %230 ]
  %241 = getelementptr inbounds i8, ptr %0, i64 48
  store i64 %.sink, ptr %241, align 4
  %242 = getelementptr inbounds i8, ptr %22, i64 24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #10
  %243 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(8) %205)
  store <2 x float> %243, ptr %25, align 8
  %244 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %242, ptr noundef nonnull align 4 dereferenceable(8) %25)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #10
  %245 = fcmp ugt float %244, %61
  br i1 %245, label %262, label %246

246:                                              ; preds = %240
  %247 = load i32, ptr %117, align 8, !tbaa !32
  %248 = icmp eq i32 %247, 1
  br i1 %248, label %249, label %255

249:                                              ; preds = %246
  %250 = call <2 x float> @_Z6b2MulTRK11b2TransformRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(8) %24)
  %251 = bitcast <2 x float> %250 to i64
  %252 = getelementptr inbounds i8, ptr %24, i64 8
  %253 = getelementptr inbounds i8, ptr %0, i64 16
  %254 = load i32, ptr %252, align 8, !tbaa !34
  store i32 %254, ptr %253, align 4, !tbaa !34
  br label %261

255:                                              ; preds = %246
  %256 = load i64, ptr %24, align 16
  %257 = getelementptr inbounds i8, ptr %24, i64 8
  %258 = getelementptr inbounds i8, ptr %0, i64 16
  %259 = load <4 x i8>, ptr %257, align 8, !tbaa !34
  %260 = shufflevector <4 x i8> %259, <4 x i8> poison, <4 x i32> <i32 1, i32 0, i32 3, i32 2>
  store <4 x i8> %260, ptr %258, align 4, !tbaa !34
  br label %261

261:                                              ; preds = %255, %249
  %.sink122 = phi i64 [ %251, %249 ], [ %256, %255 ]
  store i64 %.sink122, ptr %0, align 4
  br label %262

262:                                              ; preds = %261, %240
  %.188 = phi i32 [ 1, %261 ], [ 0, %240 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #10
  %263 = call <2 x float> @_ZmiRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %.ptr102.1, ptr noundef nonnull align 4 dereferenceable(8) %205)
  store <2 x float> %263, ptr %25, align 8
  %264 = call noundef float @_Z5b2DotRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %242, ptr noundef nonnull align 4 dereferenceable(8) %25)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #10
  %265 = fcmp ugt float %264, %61
  br i1 %265, label %285, label %266

266:                                              ; preds = %262
  %267 = zext nneg i32 %.188 to i64
  %268 = getelementptr inbounds %struct.b2ManifoldPoint, ptr %0, i64 %267
  %269 = load i32, ptr %117, align 8, !tbaa !32
  %270 = icmp eq i32 %269, 1
  br i1 %270, label %277, label %271

271:                                              ; preds = %266
  %272 = load i64, ptr %.ptr102.1, align 4
  %273 = getelementptr inbounds i8, ptr %24, i64 20
  %274 = getelementptr inbounds i8, ptr %268, i64 16
  %275 = load <4 x i8>, ptr %273, align 4, !tbaa !34
  %276 = shufflevector <4 x i8> %275, <4 x i8> poison, <4 x i32> <i32 1, i32 0, i32 3, i32 2>
  store <4 x i8> %276, ptr %274, align 4, !tbaa !34
  br label %283

277:                                              ; preds = %266
  %278 = call <2 x float> @_Z6b2MulTRK11b2TransformRK6b2Vec2(ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(8) %.ptr102.1)
  %279 = bitcast <2 x float> %278 to i64
  %280 = getelementptr inbounds i8, ptr %24, i64 20
  %281 = getelementptr inbounds i8, ptr %268, i64 16
  %282 = load i32, ptr %280, align 4, !tbaa !34
  store i32 %282, ptr %281, align 4, !tbaa !34
  br label %283

283:                                              ; preds = %277, %271
  %.sink123 = phi i64 [ %279, %277 ], [ %272, %271 ]
  store i64 %.sink123, ptr %268, align 4
  %284 = add nuw nsw i32 %.188, 1
  br label %285

285:                                              ; preds = %283, %262
  %.188.1 = phi i32 [ %284, %283 ], [ %.188, %262 ]
  store i32 %.188.1, ptr %26, align 4, !tbaa !5
  br label %286

286:                                              ; preds = %216, %203, %285
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %24) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %22) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #10
  br label %287

287:                                              ; preds = %115, %286
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %16) #10
  br label %288

288:                                              ; preds = %75, %287
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %15) #10
  br label %289

289:                                              ; preds = %._crit_edge, %288
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %14) #10
  call void @llvm.lifetime.end.p0(i64 132, ptr nonnull %13) #10
  br label %290

290:                                              ; preds = %5, %289
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #10
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, <2 x float> } @_Z6b2MulTRK11b2TransformS1_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN13b2TempPolygonC2Ev(ptr noundef nonnull align 4 dereferenceable(132)) unnamed_addr #7 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL23b2ComputeEdgeSeparationRK13b2TempPolygonRK6b2Vec2S4_(ptr dead_on_unwind noalias writable sret(%struct.b2EPAxis) align 4, ptr noundef nonnull align 4 dereferenceable(132), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL26b2ComputePolygonSeparationRK13b2TempPolygonRK6b2Vec2S4_(ptr dead_on_unwind noalias writable sret(%struct.b2EPAxis) align 4, ptr noundef nonnull align 4 dereferenceable(132), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8b2EPAxisC2Ev(ptr noundef nonnull align 4 dereferenceable(20)) unnamed_addr #7 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_Z7b2CrossRK6b2Vec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN12b2ClipVertexC2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN15b2ReferenceFaceC2Ev(ptr noundef nonnull align 4 dereferenceable(56)) unnamed_addr #7 align 2

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

declare noundef i32 @_Z19b2ClipSegmentToLineP12b2ClipVertexPKS_RK6b2Vec2fi(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(8), float noundef, i32 noundef) local_unnamed_addr #9

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { "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 #10 = { 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, !12, i64 60}
!6 = !{!"_ZTS10b2Manifold", !7, i64 0, !9, i64 40, !9, i64 48, !11, i64 56, !12, i64 60}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!"_ZTS6b2Vec2", !10, i64 0, !10, i64 4}
!10 = !{!"float", !7, i64 0}
!11 = !{!"_ZTSN10b2Manifold4TypeE", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!9, !10, i64 4}
!14 = !{!9, !10, i64 0}
!15 = !{!16, !19, i64 48}
!16 = !{!"_ZTS11b2EdgeShape", !17, i64 0, !9, i64 16, !9, i64 24, !9, i64 32, !9, i64 40, !19, i64 48}
!17 = !{!"_ZTS7b2Shape", !18, i64 8, !10, i64 12}
!18 = !{!"_ZTSN7b2Shape4TypeE", !7, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!23, !12, i64 152}
!23 = !{!"_ZTS14b2PolygonShape", !17, i64 0, !9, i64 16, !7, i64 24, !7, i64 88, !12, i64 152}
!24 = !{!25, !12, i64 128}
!25 = !{!"_ZTS13b2TempPolygon", !7, i64 0, !7, i64 64, !12, i64 128}
!26 = !{!17, !10, i64 12}
!27 = !{!28, !10, i64 16}
!28 = !{!"_ZTS8b2EPAxis", !9, i64 0, !29, i64 8, !12, i64 12, !10, i64 16}
!29 = !{!"_ZTSN8b2EPAxis4TypeE", !7, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!28, !29, i64 8}
!33 = !{!6, !11, i64 56}
!34 = !{!7, !7, i64 0}
!35 = !{!36, !12, i64 0}
!36 = !{!"_ZTS15b2ReferenceFace", !12, i64 0, !12, i64 4, !9, i64 8, !9, i64 16, !9, i64 24, !9, i64 32, !10, i64 40, !9, i64 44, !10, i64 52}
!37 = !{!36, !12, i64 4}
!38 = distinct !{!38, !31}
!39 = !{!28, !12, i64 12}
!40 = !{!36, !10, i64 40}
!41 = !{!36, !10, i64 52}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass