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

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

%struct.b2Transform = type { %struct.b2Vec2, %struct.b2Rot }
%struct.b2Vec2 = type { float, float }
%struct.b2Rot = type { float, float }
%struct.b2JointSim = type { i32, i32, i32, i32, %struct.b2Vec2, %struct.b2Vec2, float, float, float, float, %union.anon }
%union.anon = type { %struct.b2PrismaticJoint }
%struct.b2PrismaticJoint = type { %struct.b2Vec2, %struct.b2Vec2, float, float, float, float, float, float, float, float, float, float, float, i32, i32, %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, %struct.b2Vec2, float, float, %struct.b2Softness, i8, i8, i8 }
%struct.b2Softness = type { float, float, float }
%struct.b2DebugDraw = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.b2AABB, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, ptr }
%struct.b2AABB = type { %struct.b2Vec2, %struct.b2Vec2 }

@.str.1 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [32 x i8], align 1

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @b2DrawPrismaticJoint(ptr noundef %0, ptr noundef %1, <2 x float> %2, <2 x float> %3, <2 x float> %4, <2 x float> %5) #4 {
  %7 = alloca %struct.b2Transform, align 4
  %8 = alloca %struct.b2Transform, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %struct.b2Vec2, align 4
  %13 = alloca %struct.b2Vec2, align 4
  %14 = alloca %struct.b2Vec2, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %struct.b2Vec2, align 4
  %21 = alloca %struct.b2Vec2, align 4
  %22 = alloca %struct.b2Vec2, align 4
  %23 = alloca %struct.b2Vec2, align 4
  %24 = alloca %struct.b2Vec2, align 4
  %25 = alloca %struct.b2Vec2, align 4
  %26 = alloca %struct.b2Vec2, align 4
  %27 = alloca %struct.b2Vec2, align 4
  %28 = alloca %struct.b2Vec2, align 4
  %29 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %7, i32 0, i32 0
  store <2 x float> %2, ptr %29, align 4
  %30 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %7, i32 0, i32 1
  store <2 x float> %3, ptr %30, align 4
  %31 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %8, i32 0, i32 0
  store <2 x float> %4, ptr %31, align 4
  %32 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %8, i32 0, i32 1
  store <2 x float> %5, ptr %32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  br label %33

33:                                               ; preds = %6
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.b2JointSim, ptr %34, i32 0, i32 3
  %36 = load i32, ptr %35, align 4, !tbaa !9
  %37 = icmp eq i32 %36, 4
  br i1 %37, label %42, label %38

38:                                               ; preds = %33
  %39 = call i32 @b2InternalAssertFcn(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 623)
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %41, label %42

41:                                               ; preds = %38
  call void @llvm.trap()
  br label %42

42:                                               ; preds = %41, %38, %33
  br label %43

43:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %44 = load ptr, ptr %10, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.b2JointSim, ptr %44, i32 0, i32 10
  store ptr %45, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.b2JointSim, ptr %46, i32 0, i32 4
  %48 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %7, i32 0, i32 0
  %49 = load <2 x float>, ptr %48, align 4
  %50 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %7, i32 0, i32 1
  %51 = load <2 x float>, ptr %50, align 4
  %52 = load <2 x float>, ptr %47, align 4
  %53 = call <2 x float> @b2TransformPoint(<2 x float> %49, <2 x float> %51, <2 x float> %52)
  store <2 x float> %53, ptr %12, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.b2JointSim, ptr %54, i32 0, i32 5
  %56 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %8, i32 0, i32 0
  %57 = load <2 x float>, ptr %56, align 4
  %58 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %8, i32 0, i32 1
  %59 = load <2 x float>, ptr %58, align 4
  %60 = load <2 x float>, ptr %55, align 4
  %61 = call <2 x float> @b2TransformPoint(<2 x float> %57, <2 x float> %59, <2 x float> %60)
  store <2 x float> %61, ptr %13, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %62 = getelementptr inbounds %struct.b2Transform, ptr %7, i32 0, i32 1
  %63 = load ptr, ptr %11, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.b2PrismaticJoint, ptr %63, i32 0, i32 0
  %65 = load <2 x float>, ptr %62, align 4
  %66 = load <2 x float>, ptr %64, align 4
  %67 = call <2 x float> @b2RotateVector(<2 x float> %65, <2 x float> %66)
  store <2 x float> %67, ptr %14, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 8421504, ptr %15, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 32768, ptr %16, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 16711680, ptr %17, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 255, ptr %18, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 6908265, ptr %19, align 4, !tbaa !14
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.b2DebugDraw, ptr %68, i32 0, i32 5
  %70 = load ptr, ptr %69, align 8, !tbaa !15
  %71 = load i32, ptr %19, align 4, !tbaa !14
  %72 = load ptr, ptr %9, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.b2DebugDraw, ptr %72, i32 0, i32 24
  %74 = load ptr, ptr %73, align 8, !tbaa !19
  %75 = load <2 x float>, ptr %12, align 4
  %76 = load <2 x float>, ptr %13, align 4
  call void %70(<2 x float> %75, <2 x float> %76, i32 noundef %71, ptr noundef %74)
  %77 = load ptr, ptr %11, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.b2PrismaticJoint, ptr %77, i32 0, i32 23
  %79 = load i8, ptr %78, align 1, !tbaa !20, !range !23, !noundef !24
  %80 = trunc i8 %79 to i1
  br i1 %80, label %81, label %135

81:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %82 = load ptr, ptr %11, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.b2PrismaticJoint, ptr %82, i32 0, i32 11
  %84 = load float, ptr %83, align 4, !tbaa !25
  %85 = load <2 x float>, ptr %12, align 4
  %86 = load <2 x float>, ptr %14, align 4
  %87 = call <2 x float> @b2MulAdd(<2 x float> %85, float noundef %84, <2 x float> %86)
  store <2 x float> %87, ptr %20, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.b2PrismaticJoint, ptr %88, i32 0, i32 12
  %90 = load float, ptr %89, align 4, !tbaa !26
  %91 = load <2 x float>, ptr %12, align 4
  %92 = load <2 x float>, ptr %14, align 4
  %93 = call <2 x float> @b2MulAdd(<2 x float> %91, float noundef %90, <2 x float> %92)
  store <2 x float> %93, ptr %21, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %94 = load <2 x float>, ptr %14, align 4
  %95 = call <2 x float> @b2LeftPerp(<2 x float> %94)
  store <2 x float> %95, ptr %22, align 4
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.b2DebugDraw, ptr %96, i32 0, i32 5
  %98 = load ptr, ptr %97, align 8, !tbaa !15
  %99 = load i32, ptr %15, align 4, !tbaa !14
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.b2DebugDraw, ptr %100, i32 0, i32 24
  %102 = load ptr, ptr %101, align 8, !tbaa !19
  %103 = load <2 x float>, ptr %20, align 4
  %104 = load <2 x float>, ptr %21, align 4
  call void %98(<2 x float> %103, <2 x float> %104, i32 noundef %99, ptr noundef %102)
  %105 = load ptr, ptr %9, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.b2DebugDraw, ptr %105, i32 0, i32 5
  %107 = load ptr, ptr %106, align 8, !tbaa !15
  %108 = load <2 x float>, ptr %20, align 4
  %109 = load <2 x float>, ptr %22, align 4
  %110 = call <2 x float> @b2MulSub(<2 x float> %108, float noundef 0x3FB99999A0000000, <2 x float> %109)
  store <2 x float> %110, ptr %23, align 4
  %111 = load <2 x float>, ptr %20, align 4
  %112 = load <2 x float>, ptr %22, align 4
  %113 = call <2 x float> @b2MulAdd(<2 x float> %111, float noundef 0x3FB99999A0000000, <2 x float> %112)
  store <2 x float> %113, ptr %24, align 4
  %114 = load i32, ptr %16, align 4, !tbaa !14
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.b2DebugDraw, ptr %115, i32 0, i32 24
  %117 = load ptr, ptr %116, align 8, !tbaa !19
  %118 = load <2 x float>, ptr %23, align 4
  %119 = load <2 x float>, ptr %24, align 4
  call void %107(<2 x float> %118, <2 x float> %119, i32 noundef %114, ptr noundef %117)
  %120 = load ptr, ptr %9, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.b2DebugDraw, ptr %120, i32 0, i32 5
  %122 = load ptr, ptr %121, align 8, !tbaa !15
  %123 = load <2 x float>, ptr %21, align 4
  %124 = load <2 x float>, ptr %22, align 4
  %125 = call <2 x float> @b2MulSub(<2 x float> %123, float noundef 0x3FB99999A0000000, <2 x float> %124)
  store <2 x float> %125, ptr %25, align 4
  %126 = load <2 x float>, ptr %21, align 4
  %127 = load <2 x float>, ptr %22, align 4
  %128 = call <2 x float> @b2MulAdd(<2 x float> %126, float noundef 0x3FB99999A0000000, <2 x float> %127)
  store <2 x float> %128, ptr %26, align 4
  %129 = load i32, ptr %17, align 4, !tbaa !14
  %130 = load ptr, ptr %9, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.b2DebugDraw, ptr %130, i32 0, i32 24
  %132 = load ptr, ptr %131, align 8, !tbaa !19
  %133 = load <2 x float>, ptr %25, align 4
  %134 = load <2 x float>, ptr %26, align 4
  call void %122(<2 x float> %133, <2 x float> %134, i32 noundef %129, ptr noundef %132)
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %151

135:                                              ; preds = %43
  %136 = load ptr, ptr %9, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.b2DebugDraw, ptr %136, i32 0, i32 5
  %138 = load ptr, ptr %137, align 8, !tbaa !15
  %139 = load <2 x float>, ptr %12, align 4
  %140 = load <2 x float>, ptr %14, align 4
  %141 = call <2 x float> @b2MulSub(<2 x float> %139, float noundef 1.000000e+00, <2 x float> %140)
  store <2 x float> %141, ptr %27, align 4
  %142 = load <2 x float>, ptr %12, align 4
  %143 = load <2 x float>, ptr %14, align 4
  %144 = call <2 x float> @b2MulAdd(<2 x float> %142, float noundef 1.000000e+00, <2 x float> %143)
  store <2 x float> %144, ptr %28, align 4
  %145 = load i32, ptr %15, align 4, !tbaa !14
  %146 = load ptr, ptr %9, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.b2DebugDraw, ptr %146, i32 0, i32 24
  %148 = load ptr, ptr %147, align 8, !tbaa !19
  %149 = load <2 x float>, ptr %27, align 4
  %150 = load <2 x float>, ptr %28, align 4
  call void %138(<2 x float> %149, <2 x float> %150, i32 noundef %145, ptr noundef %148)
  br label %151

151:                                              ; preds = %135, %81
  %152 = load ptr, ptr %9, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.b2DebugDraw, ptr %152, i32 0, i32 7
  %154 = load ptr, ptr %153, align 8, !tbaa !27
  %155 = load i32, ptr %15, align 4, !tbaa !14
  %156 = load ptr, ptr %9, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.b2DebugDraw, ptr %156, i32 0, i32 24
  %158 = load ptr, ptr %157, align 8, !tbaa !19
  %159 = load <2 x float>, ptr %12, align 4
  call void %154(<2 x float> %159, float noundef 5.000000e+00, i32 noundef %155, ptr noundef %158)
  %160 = load ptr, ptr %9, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.b2DebugDraw, ptr %160, i32 0, i32 7
  %162 = load ptr, ptr %161, align 8, !tbaa !27
  %163 = load i32, ptr %18, align 4, !tbaa !14
  %164 = load ptr, ptr %9, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.b2DebugDraw, ptr %164, i32 0, i32 24
  %166 = load ptr, ptr %165, align 8, !tbaa !19
  %167 = load <2 x float>, ptr %13, align 4
  call void %162(<2 x float> %167, float noundef 5.000000e+00, i32 noundef %163, ptr noundef %166)
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  ret void
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 12}
!10 = !{!"b2JointSim", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !12, i64 16, !12, i64 24, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !7, i64 48}
!11 = !{!"int", !7, i64 0}
!12 = !{!"b2Vec2", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!11, !11, i64 0}
!15 = !{!16, !6, i64 40}
!16 = !{!"b2DebugDraw", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !17, i64 72, !18, i64 88, !18, i64 89, !18, i64 90, !18, i64 91, !18, i64 92, !18, i64 93, !18, i64 94, !18, i64 95, !18, i64 96, !18, i64 97, !18, i64 98, !18, i64 99, !18, i64 100, !18, i64 101, !6, i64 104}
!17 = !{!"b2AABB", !12, i64 0, !12, i64 8}
!18 = !{!"_Bool", !7, i64 0}
!19 = !{!16, !6, i64 104}
!20 = !{!21, !18, i64 121}
!21 = !{!"b2PrismaticJoint", !12, i64 0, !12, i64 8, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !13, i64 48, !13, i64 52, !13, i64 56, !11, i64 60, !11, i64 64, !12, i64 68, !12, i64 76, !12, i64 84, !12, i64 92, !13, i64 100, !13, i64 104, !22, i64 108, !18, i64 120, !18, i64 121, !18, i64 122}
!22 = !{!"b2Softness", !13, i64 0, !13, i64 4, !13, i64 8}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!21, !13, i64 52}
!26 = !{!21, !13, i64 56}
!27 = !{!16, !6, i64 56}


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

@.str.1 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [32 x i8], align 1

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @b2DrawPrismaticJoint(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, <2 x float> %2, <2 x float> %3, <2 x float> %4, <2 x float> %5) local_unnamed_addr #3 {
  %7 = getelementptr inbounds i8, ptr %1, i64 12
  %8 = load i32, ptr %7, align 4, !tbaa !5
  %9 = icmp eq i32 %8, 4
  br i1 %9, label %13, label %10

10:                                               ; preds = %6
  %11 = tail call i32 @b2InternalAssertFcn(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 623) #4
  %.not = icmp eq i32 %11, 0
  br i1 %.not, label %13, label %12

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

13:                                               ; preds = %6, %10
  %14 = getelementptr inbounds i8, ptr %1, i64 48
  %15 = getelementptr inbounds i8, ptr %1, i64 16
  %16 = load <2 x float>, ptr %15, align 4
  %17 = tail call <2 x float> @b2TransformPoint(<2 x float> %2, <2 x float> %3, <2 x float> %16)
  %18 = getelementptr inbounds i8, ptr %1, i64 24
  %19 = load <2 x float>, ptr %18, align 4
  %20 = tail call <2 x float> @b2TransformPoint(<2 x float> %4, <2 x float> %5, <2 x float> %19)
  %21 = load <2 x float>, ptr %14, align 4
  %22 = tail call <2 x float> @b2RotateVector(<2 x float> %3, <2 x float> %21)
  %23 = getelementptr inbounds i8, ptr %0, i64 40
  %24 = load ptr, ptr %23, align 8, !tbaa !12
  %25 = getelementptr inbounds i8, ptr %0, i64 104
  %26 = load ptr, ptr %25, align 8, !tbaa !17
  tail call void %24(<2 x float> %17, <2 x float> %20, i32 noundef 6908265, ptr noundef %26) #4
  %27 = getelementptr inbounds i8, ptr %1, i64 169
  %28 = load i8, ptr %27, align 1, !tbaa !18, !range !21, !noundef !22
  %29 = trunc nuw i8 %28 to i1
  br i1 %29, label %30, label %48

30:                                               ; preds = %13
  %31 = getelementptr inbounds i8, ptr %1, i64 100
  %32 = load float, ptr %31, align 4, !tbaa !23
  %33 = tail call <2 x float> @b2MulAdd(<2 x float> %17, float noundef %32, <2 x float> %22)
  %34 = getelementptr inbounds i8, ptr %1, i64 104
  %35 = load float, ptr %34, align 4, !tbaa !24
  %36 = tail call <2 x float> @b2MulAdd(<2 x float> %17, float noundef %35, <2 x float> %22)
  %37 = tail call <2 x float> @b2LeftPerp(<2 x float> %22)
  %38 = load ptr, ptr %23, align 8, !tbaa !12
  %39 = load ptr, ptr %25, align 8, !tbaa !17
  tail call void %38(<2 x float> %33, <2 x float> %36, i32 noundef 8421504, ptr noundef %39) #4
  %40 = load ptr, ptr %23, align 8, !tbaa !12
  %41 = tail call <2 x float> @b2MulSub(<2 x float> %33, float noundef 0x3FB99999A0000000, <2 x float> %37)
  %42 = tail call <2 x float> @b2MulAdd(<2 x float> %33, float noundef 0x3FB99999A0000000, <2 x float> %37)
  %43 = load ptr, ptr %25, align 8, !tbaa !17
  tail call void %40(<2 x float> %41, <2 x float> %42, i32 noundef 32768, ptr noundef %43) #4
  %44 = load ptr, ptr %23, align 8, !tbaa !12
  %45 = tail call <2 x float> @b2MulSub(<2 x float> %36, float noundef 0x3FB99999A0000000, <2 x float> %37)
  %46 = tail call <2 x float> @b2MulAdd(<2 x float> %36, float noundef 0x3FB99999A0000000, <2 x float> %37)
  %47 = load ptr, ptr %25, align 8, !tbaa !17
  tail call void %44(<2 x float> %45, <2 x float> %46, i32 noundef 16711680, ptr noundef %47) #4
  br label %53

48:                                               ; preds = %13
  %49 = load ptr, ptr %23, align 8, !tbaa !12
  %50 = tail call <2 x float> @b2MulSub(<2 x float> %17, float noundef 1.000000e+00, <2 x float> %22)
  %51 = tail call <2 x float> @b2MulAdd(<2 x float> %17, float noundef 1.000000e+00, <2 x float> %22)
  %52 = load ptr, ptr %25, align 8, !tbaa !17
  tail call void %49(<2 x float> %50, <2 x float> %51, i32 noundef 8421504, ptr noundef %52) #4
  br label %53

53:                                               ; preds = %48, %30
  %54 = getelementptr inbounds i8, ptr %0, i64 56
  %55 = load ptr, ptr %54, align 8, !tbaa !25
  %56 = load ptr, ptr %25, align 8, !tbaa !17
  tail call void %55(<2 x float> %17, float noundef 5.000000e+00, i32 noundef 8421504, ptr noundef %56) #4
  %57 = load ptr, ptr %54, align 8, !tbaa !25
  %58 = load ptr, ptr %25, align 8, !tbaa !17
  tail call void %57(<2 x float> %20, float noundef 5.000000e+00, i32 noundef 255, ptr noundef %58) #4
  ret void
}

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { cold noreturn nounwind memory(inaccessiblemem: write) }
attributes #2 = { inlinehint nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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, !7, i64 12}
!6 = !{!"b2JointSim", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !10, i64 24, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !8, i64 48}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"b2Vec2", !11, i64 0, !11, i64 4}
!11 = !{!"float", !8, i64 0}
!12 = !{!13, !14, i64 40}
!13 = !{!"b2DebugDraw", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !15, i64 72, !16, i64 88, !16, i64 89, !16, i64 90, !16, i64 91, !16, i64 92, !16, i64 93, !16, i64 94, !16, i64 95, !16, i64 96, !16, i64 97, !16, i64 98, !16, i64 99, !16, i64 100, !16, i64 101, !14, i64 104}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"b2AABB", !10, i64 0, !10, i64 8}
!16 = !{!"_Bool", !8, i64 0}
!17 = !{!13, !14, i64 104}
!18 = !{!19, !16, i64 121}
!19 = !{!"b2PrismaticJoint", !10, i64 0, !10, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !7, i64 60, !7, i64 64, !10, i64 68, !10, i64 76, !10, i64 84, !10, i64 92, !11, i64 100, !11, i64 104, !20, i64 108, !16, i64 120, !16, i64 121, !16, i64 122}
!20 = !{!"b2Softness", !11, i64 0, !11, i64 4, !11, i64 8}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!19, !11, i64 52}
!24 = !{!19, !11, i64 56}
!25 = !{!13, !14, i64 56}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass