; LLVM IR from VTIvanov20/eight-ball-pool :: src/game_scene.ll (ZN9GameScene6UpdateEv)

; 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.Vector2 = type { float, float }
%struct.TableState = type { i32, i32, i8, i32, i32 }
%"struct.std::_List_iterator" = type { ptr }
%class.GameScene = type { %"class.DrawableManager::Drawable.base", i32, i32, i8, i8, i32, i32, %"class.std::__cxx11::list", ptr, ptr, ptr, %struct.Vector2, %struct.Vector2 }
%"class.DrawableManager::Drawable.base" = type <{ ptr, i32 }>
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<Ball *, std::allocator<Ball *>>::_List_impl" }
%"struct.std::__cxx11::_List_base<Ball *, std::allocator<Ball *>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }

@__const._ZN9GameScene6UpdateEv.position = external hidden unnamed_addr constant [6 x %struct.Vector2], align 16

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt7__cxx114listIP4BallSaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14_List_iteratorIP4BallEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

declare void @_ZN4Ball11SetPositionE7Vector2(ptr noundef nonnull align 8 dereferenceable(64), <2 x float>) #3

declare noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48)) #3

declare noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48)) #3

declare void @_ZN4Ball18DisablePhysicsBodyEv(ptr noundef nonnull align 8 dereferenceable(64)) #3

declare <2 x float> @_ZN4Ball11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(64)) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9GameScene6UpdateEv(ptr noundef nonnull align 8 dereferenceable(96) %0) unnamed_addr #4 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca %struct.TableState, align 8
  %4 = alloca %struct.Vector2, align 4
  %5 = alloca %struct.Vector2, align 4
  %6 = alloca i32, align 4
  %7 = alloca [6 x %struct.Vector2], align 16
  %8 = alloca i32, align 4
  %9 = alloca %struct.Vector2, align 4
  %10 = alloca %struct.Vector2, align 4
  %11 = alloca %struct.Vector2, align 4
  %12 = alloca %struct.Vector2, align 4
  %13 = alloca %struct.Vector2, align 4
  %14 = alloca ptr, align 8
  %15 = alloca %"struct.std::_List_iterator", align 8
  %16 = alloca %"struct.std::_List_iterator", align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %struct.Vector2, align 4
  %20 = alloca %struct.Vector2, align 4
  %21 = alloca %struct.Vector2, align 4
  %22 = alloca %struct.Vector2, align 4
  %23 = alloca %struct.Vector2, align 4
  %24 = alloca %struct.Vector2, align 4
  %25 = alloca %struct.Vector2, align 4
  %26 = alloca i8, align 1
  %27 = alloca ptr, align 8
  %28 = alloca %"struct.std::_List_iterator", align 8
  %29 = alloca %"struct.std::_List_iterator", align 8
  %30 = alloca ptr, align 8
  %31 = alloca %struct.Vector2, align 4
  %32 = alloca %struct.Vector2, align 4
  %33 = alloca %struct.Vector2, align 4
  %34 = alloca %struct.Vector2, align 4
  %35 = alloca i32, align 4
  %36 = alloca %struct.Vector2, align 4
  %37 = alloca %struct.Vector2, align 4
  %38 = alloca %struct.Vector2, align 4
  %39 = alloca %struct.Vector2, align 4
  %40 = alloca %struct.Vector2, align 4
  %41 = alloca %struct.Vector2, align 4
  %42 = alloca %struct.Vector2, align 4
  %43 = alloca %struct.Vector2, align 4
  %44 = alloca %struct.Vector2, align 4
  %45 = alloca ptr, align 8
  %46 = alloca %"struct.std::_List_iterator", align 8
  %47 = alloca %"struct.std::_List_iterator", align 8
  %48 = alloca ptr, align 8
  %49 = alloca %struct.Vector2, align 4
  %50 = alloca %struct.Vector2, align 4
  %51 = alloca ptr, align 8
  %52 = alloca %"struct.std::_List_iterator", align 8
  %53 = alloca %"struct.std::_List_iterator", align 8
  %54 = alloca ptr, align 8
  %55 = alloca %struct.Vector2, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %56 = load ptr, ptr %2, align 8
  %57 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 10
  %58 = load ptr, ptr %57, align 8, !tbaa !9
  call void @_ZN9GameScene13GetTableStateEv(ptr dead_on_unwind writable sret(%struct.TableState) align 4 %3, ptr noundef nonnull align 8 dereferenceable(96) %56)
  call void @_ZN3HUD19UpdateInternalStateE10TableState(ptr noundef nonnull align 8 dereferenceable(38) %58, ptr noundef byval(%struct.TableState) align 8 %3)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %59 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 8
  %60 = load ptr, ptr %59, align 8, !tbaa !23
  %61 = call <2 x float> @_ZN4Ball11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(64) %60)
  store <2 x float> %61, ptr %4, align 4
  %62 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 9
  %63 = load ptr, ptr %62, align 8, !tbaa !24
  %64 = getelementptr inbounds %struct.Vector2, ptr %5, i32 0, i32 0
  %65 = getelementptr inbounds %struct.Vector2, ptr %4, i32 0, i32 0
  %66 = load float, ptr %65, align 4, !tbaa !25
  %67 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 8
  %68 = load ptr, ptr %67, align 8, !tbaa !23
  %69 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %68)
  %70 = fdiv float %69, 2.000000e+00
  %71 = fadd float %66, %70
  store float %71, ptr %64, align 4, !tbaa !25
  %72 = getelementptr inbounds %struct.Vector2, ptr %5, i32 0, i32 1
  %73 = getelementptr inbounds %struct.Vector2, ptr %4, i32 0, i32 1
  %74 = load float, ptr %73, align 4, !tbaa !26
  %75 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 8
  %76 = load ptr, ptr %75, align 8, !tbaa !23
  %77 = call noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %76)
  %78 = fdiv float %77, 2.000000e+00
  %79 = fadd float %74, %78
  store float %79, ptr %72, align 4, !tbaa !26
  %80 = load <2 x float>, ptr %5, align 4
  call void @_ZN6Sprite11SetPositionE7Vector2(ptr noundef nonnull align 8 dereferenceable(48) %63, <2 x float> %80)
  %81 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 2
  %82 = load i32, ptr %81, align 8, !tbaa !27
  %83 = icmp ne i32 %82, -1
  br i1 %83, label %84, label %85

84:                                               ; preds = %1
  store i32 1, ptr %6, align 4
  br label %637

85:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 48, ptr %7) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 @__const._ZN9GameScene6UpdateEv.position, i64 48, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !28
  br label %86

86:                                               ; preds = %152, %85
  %87 = load i32, ptr %8, align 4, !tbaa !28
  %88 = icmp slt i32 %87, 6
  br i1 %88, label %90, label %89

89:                                               ; preds = %86
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %155

90:                                               ; preds = %86
  %91 = load i32, ptr %8, align 4, !tbaa !28
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [6 x %struct.Vector2], ptr %7, i64 0, i64 %92
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 8 %93, i64 8, i1 false), !tbaa.struct !29
  %94 = getelementptr inbounds %struct.Vector2, ptr %10, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %95 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 8
  %96 = load ptr, ptr %95, align 8, !tbaa !23
  %97 = call <2 x float> @_ZN4Ball11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(64) %96)
  store <2 x float> %97, ptr %11, align 4
  %98 = getelementptr inbounds %struct.Vector2, ptr %11, i32 0, i32 0
  %99 = load float, ptr %98, align 4, !tbaa !25
  %100 = fadd float %99, 2.500000e+01
  store float %100, ptr %94, align 4, !tbaa !25
  %101 = getelementptr inbounds %struct.Vector2, ptr %10, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %102 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 8
  %103 = load ptr, ptr %102, align 8, !tbaa !23
  %104 = call <2 x float> @_ZN4Ball11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(64) %103)
  store <2 x float> %104, ptr %12, align 4
  %105 = getelementptr inbounds %struct.Vector2, ptr %12, i32 0, i32 1
  %106 = load float, ptr %105, align 4, !tbaa !26
  %107 = fadd float %106, 2.500000e+01
  store float %107, ptr %101, align 4, !tbaa !26
  %108 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 8
  %109 = load ptr, ptr %108, align 8, !tbaa !23
  %110 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %109)
  %111 = load <2 x float>, ptr %9, align 4
  %112 = load <2 x float>, ptr %10, align 4
  %113 = call zeroext i1 @CheckCollisionCircles(<2 x float> %111, float noundef 3.000000e+01, <2 x float> %112, float noundef %110)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br i1 %113, label %114, label %151

114:                                              ; preds = %90
  %115 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 8
  %116 = load ptr, ptr %115, align 8, !tbaa !23
  call void @_ZN4Ball18DisablePhysicsBodyEv(ptr noundef nonnull align 8 dereferenceable(64) %116)
  %117 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 8
  %118 = load ptr, ptr %117, align 8, !tbaa !23
  %119 = getelementptr inbounds %struct.Vector2, ptr %13, i32 0, i32 0
  %120 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 8
  %121 = load ptr, ptr %120, align 8, !tbaa !23
  %122 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %121)
  %123 = fneg float %122
  %124 = fmul float %123, 2.000000e+00
  store float %124, ptr %119, align 4, !tbaa !25
  %125 = getelementptr inbounds %struct.Vector2, ptr %13, i32 0, i32 1
  %126 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 8
  %127 = load ptr, ptr %126, align 8, !tbaa !23
  %128 = call noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %127)
  %129 = fneg float %128
  %130 = fmul float %129, 2.000000e+00
  store float %130, ptr %125, align 4, !tbaa !26
  %131 = load <2 x float>, ptr %13, align 4
  call void @_ZN4Ball11SetPositionE7Vector2(ptr noundef nonnull align 8 dereferenceable(64) %118, <2 x float> %131)
  %132 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 10
  %133 = load ptr, ptr %132, align 8, !tbaa !9
  %134 = call noundef zeroext i1 @_ZN3HUD9GetHasWonEv(ptr noundef nonnull align 8 dereferenceable(38) %133)
  br i1 %134, label %150, label %135

135:                                              ; preds = %114
  %136 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 1
  %137 = load i32, ptr %136, align 4, !tbaa !31
  %138 = icmp ne i32 %137, -1
  br i1 %138, label %139, label %146

139:                                              ; preds = %135
  %140 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 1
  %141 = load i32, ptr %140, align 4, !tbaa !31
  %142 = icmp ne i32 %141, 0
  %143 = xor i1 %142, true
  %144 = zext i1 %143 to i32
  %145 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 1
  store i32 %144, ptr %145, align 4, !tbaa !31
  br label %148

146:                                              ; preds = %135
  %147 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 1
  store i32 -1, ptr %147, align 4, !tbaa !31
  br label %148

148:                                              ; preds = %146, %139
  %149 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 3
  store i8 1, ptr %149, align 4, !tbaa !32
  br label %150

150:                                              ; preds = %148, %114
  br label %151

151:                                              ; preds = %150, %90
  br label %152

152:                                              ; preds = %151
  %153 = load i32, ptr %8, align 4, !tbaa !28
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %8, align 4, !tbaa !28
  br label %86, !llvm.loop !33

155:                                              ; preds = %89
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %156 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 7
  store ptr %156, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %157 = load ptr, ptr %14, align 8, !tbaa !5
  %158 = call ptr @_ZNSt7__cxx114listIP4BallSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %157) #5
  %159 = getelementptr inbounds %"struct.std::_List_iterator", ptr %15, i32 0, i32 0
  store ptr %158, ptr %159, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %160 = load ptr, ptr %14, align 8, !tbaa !5
  %161 = call ptr @_ZNSt7__cxx114listIP4BallSaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %160) #5
  %162 = getelementptr inbounds %"struct.std::_List_iterator", ptr %16, i32 0, i32 0
  store ptr %161, ptr %162, align 8
  br label %163

163:                                              ; preds = %358, %155
  %164 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorIP4BallES4_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  br i1 %164, label %166, label %165

165:                                              ; preds = %163
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %360

166:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %167 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14_List_iteratorIP4BallEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  %168 = load ptr, ptr %167, align 8, !tbaa !5
  store ptr %168, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !28
  br label %169

169:                                              ; preds = %354, %166
  %170 = load i32, ptr %18, align 4, !tbaa !28
  %171 = icmp slt i32 %170, 6
  br i1 %171, label %173, label %172

172:                                              ; preds = %169
  store i32 7, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %357

173:                                              ; preds = %169
  %174 = load i32, ptr %18, align 4, !tbaa !28
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [6 x %struct.Vector2], ptr %7, i64 0, i64 %175
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 8 %176, i64 8, i1 false), !tbaa.struct !29
  %177 = getelementptr inbounds %struct.Vector2, ptr %20, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %178 = load ptr, ptr %17, align 8, !tbaa !5
  %179 = call <2 x float> @_ZN4Ball11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(64) %178)
  store <2 x float> %179, ptr %21, align 4
  %180 = getelementptr inbounds %struct.Vector2, ptr %21, i32 0, i32 0
  %181 = load float, ptr %180, align 4, !tbaa !25
  %182 = fadd float %181, 2.500000e+01
  store float %182, ptr %177, align 4, !tbaa !25
  %183 = getelementptr inbounds %struct.Vector2, ptr %20, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %184 = load ptr, ptr %17, align 8, !tbaa !5
  %185 = call <2 x float> @_ZN4Ball11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(64) %184)
  store <2 x float> %185, ptr %22, align 4
  %186 = getelementptr inbounds %struct.Vector2, ptr %22, i32 0, i32 1
  %187 = load float, ptr %186, align 4, !tbaa !26
  %188 = fadd float %187, 2.500000e+01
  store float %188, ptr %183, align 4, !tbaa !26
  %189 = load ptr, ptr %17, align 8, !tbaa !5
  %190 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %189)
  %191 = load <2 x float>, ptr %19, align 4
  %192 = load <2 x float>, ptr %20, align 4
  %193 = call zeroext i1 @CheckCollisionCircles(<2 x float> %191, float noundef 3.000000e+01, <2 x float> %192, float noundef %190)
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br i1 %193, label %194, label %353

194:                                              ; preds = %173
  %195 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN4Ball18DisablePhysicsBodyEv(ptr noundef nonnull align 8 dereferenceable(64) %195)
  %196 = load ptr, ptr %17, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.Vector2, ptr %23, i32 0, i32 0
  %198 = load ptr, ptr %17, align 8, !tbaa !5
  %199 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %198)
  %200 = fneg float %199
  %201 = fmul float %200, 2.000000e+00
  store float %201, ptr %197, align 4, !tbaa !25
  %202 = getelementptr inbounds %struct.Vector2, ptr %23, i32 0, i32 1
  %203 = load ptr, ptr %17, align 8, !tbaa !5
  %204 = call noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %203)
  %205 = fneg float %204
  %206 = fmul float %205, 2.000000e+00
  store float %206, ptr %202, align 4, !tbaa !26
  %207 = load <2 x float>, ptr %23, align 4
  call void @_ZN4Ball11SetPositionE7Vector2(ptr noundef nonnull align 8 dereferenceable(64) %196, <2 x float> %207)
  %208 = load ptr, ptr %17, align 8, !tbaa !5
  %209 = call noundef i32 @_ZN4Ball9GetNumberEv(ptr noundef nonnull align 8 dereferenceable(64) %208)
  %210 = icmp slt i32 %209, 8
  br i1 %210, label %211, label %215

211:                                              ; preds = %194
  %212 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 6
  %213 = load i32, ptr %212, align 4, !tbaa !35
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr %212, align 4, !tbaa !35
  br label %224

215:                                              ; preds = %194
  %216 = load ptr, ptr %17, align 8, !tbaa !5
  %217 = call noundef i32 @_ZN4Ball9GetNumberEv(ptr noundef nonnull align 8 dereferenceable(64) %216)
  %218 = icmp sgt i32 %217, 8
  br i1 %218, label %219, label %223

219:                                              ; preds = %215
  %220 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 5
  %221 = load i32, ptr %220, align 8, !tbaa !36
  %222 = add nsw i32 %221, 1
  store i32 %222, ptr %220, align 8, !tbaa !36
  br label %223

223:                                              ; preds = %219, %215
  br label %224

224:                                              ; preds = %223, %211
  %225 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 4
  store i8 1, ptr %225, align 1, !tbaa !37
  %226 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 1
  %227 = load i32, ptr %226, align 4, !tbaa !31
  %228 = icmp eq i32 %227, -1
  br i1 %228, label %229, label %243

229:                                              ; preds = %224
  %230 = load ptr, ptr %17, align 8, !tbaa !5
  %231 = call noundef i32 @_ZN4Ball9GetNumberEv(ptr noundef nonnull align 8 dereferenceable(64) %230)
  %232 = icmp slt i32 %231, 8
  br i1 %232, label %233, label %235

233:                                              ; preds = %229
  %234 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 1
  store i32 0, ptr %234, align 4, !tbaa !31
  br label %242

235:                                              ; preds = %229
  %236 = load ptr, ptr %17, align 8, !tbaa !5
  %237 = call noundef i32 @_ZN4Ball9GetNumberEv(ptr noundef nonnull align 8 dereferenceable(64) %236)
  %238 = icmp sgt i32 %237, 8
  br i1 %238, label %239, label %241

239:                                              ; preds = %235
  %240 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 1
  store i32 1, ptr %240, align 4, !tbaa !31
  br label %241

241:                                              ; preds = %239, %235
  br label %242

242:                                              ; preds = %241, %233
  br label %301

243:                                              ; preds = %224
  %244 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 1
  %245 = load i32, ptr %244, align 4, !tbaa !31
  %246 = icmp eq i32 %245, 0
  br i1 %246, label %247, label %271

247:                                              ; preds = %243
  %248 = load ptr, ptr %17, align 8, !tbaa !5
  %249 = call noundef i32 @_ZN4Ball9GetNumberEv(ptr noundef nonnull align 8 dereferenceable(64) %248)
  %250 = icmp sgt i32 %249, 8
  br i1 %250, label %251, label %271

251:                                              ; preds = %247
  %252 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 3
  store i8 1, ptr %252, align 4, !tbaa !32
  %253 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 1
  store i32 1, ptr %253, align 4, !tbaa !31
  %254 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 8
  %255 = load ptr, ptr %254, align 8, !tbaa !23
  %256 = getelementptr inbounds %struct.Vector2, ptr %24, i32 0, i32 0
  %257 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 8
  %258 = load ptr, ptr %257, align 8, !tbaa !23
  %259 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %258)
  %260 = fneg float %259
  %261 = fmul float %260, 2.000000e+00
  store float %261, ptr %256, align 4, !tbaa !25
  %262 = getelementptr inbounds %struct.Vector2, ptr %24, i32 0, i32 1
  %263 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 8
  %264 = load ptr, ptr %263, align 8, !tbaa !23
  %265 = call noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %264)
  %266 = fneg float %265
  %267 = fmul float %266, 2.000000e+00
  store float %267, ptr %262, align 4, !tbaa !26
  %268 = load <2 x float>, ptr %24, align 4
  call void @_ZN4Ball11SetPositionE7Vector2(ptr noundef nonnull align 8 dereferenceable(64) %255, <2 x float> %268)
  %269 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 8
  %270 = load ptr, ptr %269, align 8, !tbaa !23
  call void @_ZN4Ball18DisablePhysicsBodyEv(ptr noundef nonnull align 8 dereferenceable(64) %270)
  br label %300

271:                                              ; preds = %247, %243
  %272 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 1
  %273 = load i32, ptr %272, align 4, !tbaa !31
  %274 = icmp eq i32 %273, 1
  br i1 %274, label %275, label %299

275:                                              ; preds = %271
  %276 = load ptr, ptr %17, align 8, !tbaa !5
  %277 = call noundef i32 @_ZN4Ball9GetNumberEv(ptr noundef nonnull align 8 dereferenceable(64) %276)
  %278 = icmp slt i32 %277, 8
  br i1 %278, label %279, label %299

279:                                              ; preds = %275
  %280 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 3
  store i8 1, ptr %280, align 4, !tbaa !32
  %281 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 1
  store i32 0, ptr %281, align 4, !tbaa !31
  %282 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 8
  %283 = load ptr, ptr %282, align 8, !tbaa !23
  %284 = getelementptr inbounds %struct.Vector2, ptr %25, i32 0, i32 0
  %285 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 8
  %286 = load ptr, ptr %285, align 8, !tbaa !23
  %287 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %286)
  %288 = fneg float %287
  %289 = fmul float %288, 2.000000e+00
  store float %289, ptr %284, align 4, !tbaa !25
  %290 = getelementptr inbounds %struct.Vector2, ptr %25, i32 0, i32 1
  %291 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 8
  %292 = load ptr, ptr %291, align 8, !tbaa !23
  %293 = call noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %292)
  %294 = fneg float %293
  %295 = fmul float %294, 2.000000e+00
  store float %295, ptr %290, align 4, !tbaa !26
  %296 = load <2 x float>, ptr %25, align 4
  call void @_ZN4Ball11SetPositionE7Vector2(ptr noundef nonnull align 8 dereferenceable(64) %283, <2 x float> %296)
  %297 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 8
  %298 = load ptr, ptr %297, align 8, !tbaa !23
  call void @_ZN4Ball18DisablePhysicsBodyEv(ptr noundef nonnull align 8 dereferenceable(64) %298)
  br label %299

299:                                              ; preds = %279, %275, %271
  br label %300

300:                                              ; preds = %299, %251
  br label %301

301:                                              ; preds = %300, %242
  %302 = load ptr, ptr %17, align 8, !tbaa !5
  %303 = call noundef i32 @_ZN4Ball9GetNumberEv(ptr noundef nonnull align 8 dereferenceable(64) %302)
  %304 = icmp eq i32 %303, 8
  br i1 %304, label %305, label %352

305:                                              ; preds = %301
  %306 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 1
  %307 = load i32, ptr %306, align 4, !tbaa !31
  %308 = icmp eq i32 %307, 0
  br i1 %308, label %309, label %315

309:                                              ; preds = %305
  %310 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 6
  %311 = load i32, ptr %310, align 4, !tbaa !35
  %312 = icmp eq i32 %311, 7
  br i1 %312, label %313, label %315

313:                                              ; preds = %309
  %314 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 2
  store i32 0, ptr %314, align 8, !tbaa !27
  br label %324

315:                                              ; preds = %309, %305
  %316 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 4
  %317 = load i8, ptr %316, align 1, !tbaa !37, !range !38, !noundef !39
  %318 = trunc i8 %317 to i1
  br i1 %318, label %321, label %319

319:                                              ; preds = %315
  %320 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 2
  store i32 1, ptr %320, align 8, !tbaa !27
  br label %323

321:                                              ; preds = %315
  %322 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 2
  store i32 0, ptr %322, align 8, !tbaa !27
  br label %323

323:                                              ; preds = %321, %319
  br label %324

324:                                              ; preds = %323, %313
  %325 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 1
  %326 = load i32, ptr %325, align 4, !tbaa !31
  %327 = icmp eq i32 %326, 1
  br i1 %327, label %328, label %334

328:                                              ; preds = %324
  %329 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 5
  %330 = load i32, ptr %329, align 8, !tbaa !36
  %331 = icmp eq i32 %330, 7
  br i1 %331, label %332, label %334

332:                                              ; preds = %328
  %333 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 2
  store i32 1, ptr %333, align 8, !tbaa !27
  br label %343

334:                                              ; preds = %328, %324
  %335 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 4
  %336 = load i8, ptr %335, align 1, !tbaa !37, !range !38, !noundef !39
  %337 = trunc i8 %336 to i1
  br i1 %337, label %340, label %338

338:                                              ; preds = %334
  %339 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 2
  store i32 0, ptr %339, align 8, !tbaa !27
  br label %342

340:                                              ; preds = %334
  %341 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 2
  store i32 1, ptr %341, align 8, !tbaa !27
  br label %342

342:                                              ; preds = %340, %338
  br label %343

343:                                              ; preds = %342, %332
  %344 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 1
  %345 = load i32, ptr %344, align 4, !tbaa !31
  %346 = icmp eq i32 %345, -1
  br i1 %346, label %347, label %349

347:                                              ; preds = %343
  %348 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 2
  store i32 -1, ptr %348, align 8, !tbaa !27
  br label %349

349:                                              ; preds = %347, %343
  %350 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 10
  %351 = load ptr, ptr %350, align 8, !tbaa !9
  call void @_ZN3HUD9SetHasWonEv(ptr noundef nonnull align 8 dereferenceable(38) %351)
  br label %352

352:                                              ; preds = %349, %301
  br label %353

353:                                              ; preds = %352, %173
  br label %354

354:                                              ; preds = %353
  %355 = load i32, ptr %18, align 4, !tbaa !28
  %356 = add nsw i32 %355, 1
  store i32 %356, ptr %18, align 4, !tbaa !28
  br label %169, !llvm.loop !40

357:                                              ; preds = %172
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %358

358:                                              ; preds = %357
  %359 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt14_List_iteratorIP4BallEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  br label %163

360:                                              ; preds = %165
  %361 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 3
  %362 = load i8, ptr %361, align 4, !tbaa !32, !range !38, !noundef !39
  %363 = trunc i8 %362 to i1
  br i1 %363, label %364, label %499

364:                                              ; preds = %360
  %365 = call zeroext i1 @IsMouseButtonPressed(i32 noundef 0)
  br i1 %365, label %366, label %498

366:                                              ; preds = %364
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #5
  store i8 1, ptr %26, align 1, !tbaa !41
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  %367 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 7
  store ptr %367, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  %368 = load ptr, ptr %27, align 8, !tbaa !5
  %369 = call ptr @_ZNSt7__cxx114listIP4BallSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %368) #5
  %370 = getelementptr inbounds %"struct.std::_List_iterator", ptr %28, i32 0, i32 0
  store ptr %369, ptr %370, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  %371 = load ptr, ptr %27, align 8, !tbaa !5
  %372 = call ptr @_ZNSt7__cxx114listIP4BallSaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %371) #5
  %373 = getelementptr inbounds %"struct.std::_List_iterator", ptr %29, i32 0, i32 0
  store ptr %372, ptr %373, align 8
  br label %374

374:                                              ; preds = %410, %366
  %375 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorIP4BallES4_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %29) #5
  br i1 %375, label %377, label %376

376:                                              ; preds = %374
  store i32 10, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  br label %412

377:                                              ; preds = %374
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  %378 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14_List_iteratorIP4BallEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #5
  %379 = load ptr, ptr %378, align 8, !tbaa !5
  store ptr %379, ptr %30, align 8, !tbaa !5
  %380 = getelementptr inbounds %struct.Vector2, ptr %31, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  %381 = call <2 x float> @GetMousePosition()
  store <2 x float> %381, ptr %32, align 4
  %382 = getelementptr inbounds %struct.Vector2, ptr %32, i32 0, i32 0
  %383 = load float, ptr %382, align 4, !tbaa !25
  %384 = load ptr, ptr %30, align 8, !tbaa !5
  %385 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %384)
  %386 = fdiv float %385, 2.000000e+00
  %387 = fsub float %383, %386
  store float %387, ptr %380, align 4, !tbaa !25
  %388 = getelementptr inbounds %struct.Vector2, ptr %31, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #5
  %389 = call <2 x float> @GetMousePosition()
  store <2 x float> %389, ptr %33, align 4
  %390 = getelementptr inbounds %struct.Vector2, ptr %33, i32 0, i32 1
  %391 = load float, ptr %390, align 4, !tbaa !26
  %392 = load ptr, ptr %30, align 8, !tbaa !5
  %393 = call noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %392)
  %394 = fdiv float %393, 2.000000e+00
  %395 = fsub float %391, %394
  store float %395, ptr %388, align 4, !tbaa !26
  %396 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 8
  %397 = load ptr, ptr %396, align 8, !tbaa !23
  %398 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %397)
  %399 = fdiv float %398, 2.000000e+00
  %400 = load ptr, ptr %30, align 8, !tbaa !5
  %401 = call <2 x float> @_ZN4Ball11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(64) %400)
  store <2 x float> %401, ptr %34, align 4
  %402 = load ptr, ptr %30, align 8, !tbaa !5
  %403 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %402)
  %404 = fdiv float %403, 2.000000e+00
  %405 = load <2 x float>, ptr %31, align 4
  %406 = load <2 x float>, ptr %34, align 4
  %407 = call zeroext i1 @CheckCollisionCircles(<2 x float> %405, float noundef %399, <2 x float> %406, float noundef %404)
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  br i1 %407, label %408, label %409

408:                                              ; preds = %377
  store i8 0, ptr %26, align 1, !tbaa !41
  br label %409

409:                                              ; preds = %408, %377
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  br label %410

410:                                              ; preds = %409
  %411 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt14_List_iteratorIP4BallEppEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #5
  br label %374

412:                                              ; preds = %376
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #5
  store i32 0, ptr %35, align 4, !tbaa !28
  br label %413

413:                                              ; preds = %448, %412
  %414 = load i32, ptr %35, align 4, !tbaa !28
  %415 = icmp slt i32 %414, 6
  br i1 %415, label %417, label %416

416:                                              ; preds = %413
  store i32 12, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #5
  br label %451

417:                                              ; preds = %413
  %418 = load i32, ptr %35, align 4, !tbaa !28
  %419 = sext i32 %418 to i64
  %420 = getelementptr inbounds [6 x %struct.Vector2], ptr %7, i64 0, i64 %419
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 8 %420, i64 8, i1 false), !tbaa.struct !29
  %421 = getelementptr inbounds %struct.Vector2, ptr %37, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #5
  %422 = call <2 x float> @GetMousePosition()
  store <2 x float> %422, ptr %38, align 4
  %423 = getelementptr inbounds %struct.Vector2, ptr %38, i32 0, i32 0
  %424 = load float, ptr %423, align 4, !tbaa !25
  %425 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 8
  %426 = load ptr, ptr %425, align 8, !tbaa !23
  %427 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %426)
  %428 = fdiv float %427, 2.000000e+00
  %429 = fsub float %424, %428
  store float %429, ptr %421, align 4, !tbaa !25
  %430 = getelementptr inbounds %struct.Vector2, ptr %37, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #5
  %431 = call <2 x float> @GetMousePosition()
  store <2 x float> %431, ptr %39, align 4
  %432 = getelementptr inbounds %struct.Vector2, ptr %39, i32 0, i32 1
  %433 = load float, ptr %432, align 4, !tbaa !26
  %434 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 8
  %435 = load ptr, ptr %434, align 8, !tbaa !23
  %436 = call noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %435)
  %437 = fdiv float %436, 2.000000e+00
  %438 = fsub float %433, %437
  store float %438, ptr %430, align 4, !tbaa !26
  %439 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 8
  %440 = load ptr, ptr %439, align 8, !tbaa !23
  %441 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %440)
  %442 = fdiv float %441, 2.000000e+00
  %443 = load <2 x float>, ptr %36, align 4
  %444 = load <2 x float>, ptr %37, align 4
  %445 = call zeroext i1 @CheckCollisionCircles(<2 x float> %443, float noundef 3.000000e+01, <2 x float> %444, float noundef %442)
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #5
  br i1 %445, label %446, label %447

446:                                              ; preds = %417
  store i8 0, ptr %26, align 1, !tbaa !41
  br label %447

447:                                              ; preds = %446, %417
  br label %448

448:                                              ; preds = %447
  %449 = load i32, ptr %35, align 4, !tbaa !28
  %450 = add nsw i32 %449, 1
  store i32 %450, ptr %35, align 4, !tbaa !28
  br label %413, !llvm.loop !42

451:                                              ; preds = %416
  %452 = load i8, ptr %26, align 1, !tbaa !41, !range !38, !noundef !39
  %453 = trunc i8 %452 to i1
  br i1 %453, label %454, label %497

454:                                              ; preds = %451
  %455 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 3
  store i8 0, ptr %455, align 4, !tbaa !32
  %456 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 1
  %457 = load i32, ptr %456, align 4, !tbaa !31
  %458 = icmp eq i32 %457, -1
  br i1 %458, label %459, label %461

459:                                              ; preds = %454
  %460 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 1
  store i32 -1, ptr %460, align 4, !tbaa !31
  br label %473

461:                                              ; preds = %454
  %462 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 4
  %463 = load i8, ptr %462, align 1, !tbaa !37, !range !38, !noundef !39
  %464 = trunc i8 %463 to i1
  br i1 %464, label %472, label %465

465:                                              ; preds = %461
  %466 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 1
  %467 = load i32, ptr %466, align 4, !tbaa !31
  %468 = icmp ne i32 %467, 0
  %469 = xor i1 %468, true
  %470 = zext i1 %469 to i32
  %471 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 1
  store i32 %470, ptr %471, align 4, !tbaa !31
  br label %472

472:                                              ; preds = %465, %461
  br label %473

473:                                              ; preds = %472, %459
  %474 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 8
  %475 = load ptr, ptr %474, align 8, !tbaa !23
  %476 = getelementptr inbounds %struct.Vector2, ptr %40, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #5
  %477 = call <2 x float> @GetMousePosition()
  store <2 x float> %477, ptr %41, align 4
  %478 = getelementptr inbounds %struct.Vector2, ptr %41, i32 0, i32 0
  %479 = load float, ptr %478, align 4, !tbaa !25
  %480 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 8
  %481 = load ptr, ptr %480, align 8, !tbaa !23
  %482 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %481)
  %483 = fdiv float %482, 2.000000e+00
  %484 = fsub float %479, %483
  store float %484, ptr %476, align 4, !tbaa !25
  %485 = getelementptr inbounds %struct.Vector2, ptr %40, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #5
  %486 = call <2 x float> @GetMousePosition()
  store <2 x float> %486, ptr %42, align 4
  %487 = getelementptr inbounds %struct.Vector2, ptr %42, i32 0, i32 1
  %488 = load float, ptr %487, align 4, !tbaa !26
  %489 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 8
  %490 = load ptr, ptr %489, align 8, !tbaa !23
  %491 = call noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %490)
  %492 = fdiv float %491, 2.000000e+00
  %493 = fsub float %488, %492
  store float %493, ptr %485, align 4, !tbaa !26
  %494 = load <2 x float>, ptr %40, align 4
  call void @_ZN4Ball11SetPositionE7Vector2(ptr noundef nonnull align 8 dereferenceable(64) %475, <2 x float> %494)
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #5
  %495 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 9
  %496 = load ptr, ptr %495, align 8, !tbaa !24
  call void @_ZN6Sprite11SetRotationEf(ptr noundef nonnull align 8 dereferenceable(48) %496, float noundef 1.800000e+02)
  br label %497

497:                                              ; preds = %473, %451
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #5
  br label %498

498:                                              ; preds = %497, %364
  br label %499

499:                                              ; preds = %498, %360
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #5
  %500 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 8
  %501 = load ptr, ptr %500, align 8, !tbaa !23
  %502 = call <2 x float> @_ZN4Ball11GetVelocityEv(ptr noundef nonnull align 8 dereferenceable(64) %501)
  store <2 x float> %502, ptr %43, align 4
  %503 = getelementptr inbounds %struct.Vector2, ptr %43, i32 0, i32 0
  %504 = load float, ptr %503, align 4, !tbaa !25
  %505 = fcmp oeq float %504, 0.000000e+00
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #5
  br i1 %505, label %506, label %518

506:                                              ; preds = %499
  %507 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 8
  %508 = load ptr, ptr %507, align 8, !tbaa !23
  %509 = call <2 x float> @_ZN4Ball11GetVelocityEv(ptr noundef nonnull align 8 dereferenceable(64) %508)
  store <2 x float> %509, ptr %44, align 4
  %510 = getelementptr inbounds %struct.Vector2, ptr %44, i32 0, i32 1
  %511 = load float, ptr %510, align 4, !tbaa !26
  %512 = fcmp oeq float %511, 0.000000e+00
  br i1 %512, label %513, label %518

513:                                              ; preds = %506
  %514 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 3
  %515 = load i8, ptr %514, align 4, !tbaa !32, !range !38, !noundef !39
  %516 = trunc i8 %515 to i1
  %517 = xor i1 %516, true
  br label %518

518:                                              ; preds = %513, %506, %499
  %519 = phi i1 [ false, %506 ], [ false, %499 ], [ %517, %513 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #5
  br i1 %519, label %520, label %590

520:                                              ; preds = %518
  %521 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 4
  %522 = load i8, ptr %521, align 1, !tbaa !37, !range !38, !noundef !39
  %523 = trunc i8 %522 to i1
  br i1 %523, label %539, label %524

524:                                              ; preds = %520
  %525 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 9
  %526 = load ptr, ptr %525, align 8, !tbaa !24
  %527 = call noundef zeroext i1 @_ZN5Stick8GetShownEv(ptr noundef nonnull align 8 dereferenceable(61) %526)
  br i1 %527, label %539, label %528

528:                                              ; preds = %524
  %529 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 1
  %530 = load i32, ptr %529, align 4, !tbaa !31
  %531 = icmp ne i32 %530, -1
  br i1 %531, label %532, label %539

532:                                              ; preds = %528
  %533 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 1
  %534 = load i32, ptr %533, align 4, !tbaa !31
  %535 = icmp ne i32 %534, 0
  %536 = xor i1 %535, true
  %537 = zext i1 %536 to i32
  %538 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 1
  store i32 %537, ptr %538, align 4, !tbaa !31
  br label %539

539:                                              ; preds = %532, %528, %524, %520
  %540 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 9
  %541 = load ptr, ptr %540, align 8, !tbaa !24
  call void @_ZN5Stick8SetShownEb(ptr noundef nonnull align 8 dereferenceable(61) %541, i1 noundef zeroext true)
  %542 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 8
  %543 = load ptr, ptr %542, align 8, !tbaa !23
  call void @_ZN4Ball18DisablePhysicsBodyEv(ptr noundef nonnull align 8 dereferenceable(64) %543)
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #5
  %544 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 7
  store ptr %544, ptr %45, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #5
  %545 = load ptr, ptr %45, align 8, !tbaa !5
  %546 = call ptr @_ZNSt7__cxx114listIP4BallSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %545) #5
  %547 = getelementptr inbounds %"struct.std::_List_iterator", ptr %46, i32 0, i32 0
  store ptr %546, ptr %547, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #5
  %548 = load ptr, ptr %45, align 8, !tbaa !5
  %549 = call ptr @_ZNSt7__cxx114listIP4BallSaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %548) #5
  %550 = getelementptr inbounds %"struct.std::_List_iterator", ptr %47, i32 0, i32 0
  store ptr %549, ptr %550, align 8
  br label %551

551:                                              ; preds = %558, %539
  %552 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorIP4BallES4_(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef nonnull align 8 dereferenceable(8) %47) #5
  br i1 %552, label %554, label %553

553:                                              ; preds = %551
  store i32 15, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #5
  br label %560

554:                                              ; preds = %551
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #5
  %555 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14_List_iteratorIP4BallEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %46) #5
  %556 = load ptr, ptr %555, align 8, !tbaa !5
  store ptr %556, ptr %48, align 8, !tbaa !5
  %557 = load ptr, ptr %48, align 8, !tbaa !5
  call void @_ZN4Ball18DisablePhysicsBodyEv(ptr noundef nonnull align 8 dereferenceable(64) %557)
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #5
  br label %558

558:                                              ; preds = %554
  %559 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt14_List_iteratorIP4BallEppEv(ptr noundef nonnull align 8 dereferenceable(8) %46) #5
  br label %551

560:                                              ; preds = %553
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #5
  %561 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 8
  %562 = load ptr, ptr %561, align 8, !tbaa !23
  %563 = call <2 x float> @_ZN4Ball11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(64) %562)
  store <2 x float> %563, ptr %49, align 4
  %564 = getelementptr inbounds %struct.Vector2, ptr %49, i32 0, i32 0
  %565 = load float, ptr %564, align 4, !tbaa !25
  %566 = fcmp olt float %565, 0.000000e+00
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #5
  br i1 %566, label %567, label %589

567:                                              ; preds = %560
  %568 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 8
  %569 = load ptr, ptr %568, align 8, !tbaa !23
  %570 = getelementptr inbounds %struct.Vector2, ptr %50, i32 0, i32 0
  %571 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 12
  %572 = getelementptr inbounds %struct.Vector2, ptr %571, i32 0, i32 0
  %573 = load float, ptr %572, align 8, !tbaa !43
  %574 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 8
  %575 = load ptr, ptr %574, align 8, !tbaa !23
  %576 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %575)
  %577 = fdiv float %576, 2.000000e+00
  %578 = fsub float %573, %577
  store float %578, ptr %570, align 4, !tbaa !25
  %579 = getelementptr inbounds %struct.Vector2, ptr %50, i32 0, i32 1
  %580 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 12
  %581 = getelementptr inbounds %struct.Vector2, ptr %580, i32 0, i32 1
  %582 = load float, ptr %581, align 4, !tbaa !44
  %583 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 8
  %584 = load ptr, ptr %583, align 8, !tbaa !23
  %585 = call noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %584)
  %586 = fdiv float %585, 2.000000e+00
  %587 = fsub float %582, %586
  store float %587, ptr %579, align 4, !tbaa !26
  %588 = load <2 x float>, ptr %50, align 4
  call void @_ZN4Ball11SetPositionE7Vector2(ptr noundef nonnull align 8 dereferenceable(64) %569, <2 x float> %588)
  br label %589

589:                                              ; preds = %567, %560
  br label %593

590:                                              ; preds = %518
  %591 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 9
  %592 = load ptr, ptr %591, align 8, !tbaa !24
  call void @_ZN5Stick8SetShownEb(ptr noundef nonnull align 8 dereferenceable(61) %592, i1 noundef zeroext false)
  br label %593

593:                                              ; preds = %590, %589
  %594 = call zeroext i1 @IsKeyPressed(i32 noundef 32)
  br i1 %594, label %595, label %636

595:                                              ; preds = %593
  %596 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 9
  %597 = load ptr, ptr %596, align 8, !tbaa !24
  %598 = call noundef zeroext i1 @_ZN5Stick8GetShownEv(ptr noundef nonnull align 8 dereferenceable(61) %597)
  br i1 %598, label %599, label %636

599:                                              ; preds = %595
  %600 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 8
  %601 = load ptr, ptr %600, align 8, !tbaa !23
  call void @_ZN4Ball17EnablePhysicsBodyEv(ptr noundef nonnull align 8 dereferenceable(64) %601)
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #5
  %602 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 7
  store ptr %602, ptr %51, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #5
  %603 = load ptr, ptr %51, align 8, !tbaa !5
  %604 = call ptr @_ZNSt7__cxx114listIP4BallSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %603) #5
  %605 = getelementptr inbounds %"struct.std::_List_iterator", ptr %52, i32 0, i32 0
  store ptr %604, ptr %605, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #5
  %606 = load ptr, ptr %51, align 8, !tbaa !5
  %607 = call ptr @_ZNSt7__cxx114listIP4BallSaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %606) #5
  %608 = getelementptr inbounds %"struct.std::_List_iterator", ptr %53, i32 0, i32 0
  store ptr %607, ptr %608, align 8
  br label %609

609:                                              ; preds = %616, %599
  %610 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorIP4BallES4_(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef nonnull align 8 dereferenceable(8) %53) #5
  br i1 %610, label %612, label %611

611:                                              ; preds = %609
  store i32 17, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #5
  br label %618

612:                                              ; preds = %609
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #5
  %613 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14_List_iteratorIP4BallEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %52) #5
  %614 = load ptr, ptr %613, align 8, !tbaa !5
  store ptr %614, ptr %54, align 8, !tbaa !5
  %615 = load ptr, ptr %54, align 8, !tbaa !5
  call void @_ZN4Ball17EnablePhysicsBodyEv(ptr noundef nonnull align 8 dereferenceable(64) %615)
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #5
  br label %616

616:                                              ; preds = %612
  %617 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt14_List_iteratorIP4BallEppEv(ptr noundef nonnull align 8 dereferenceable(8) %52) #5
  br label %609

618:                                              ; preds = %611
  %619 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 10
  %620 = load ptr, ptr %619, align 8, !tbaa !9
  %621 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 10
  %622 = load ptr, ptr %621, align 8, !tbaa !9
  %623 = call noundef zeroext i1 @_ZN3HUD9GetPlayerEv(ptr noundef nonnull align 8 dereferenceable(38) %622)
  %624 = xor i1 %623, true
  call void @_ZN3HUD9SetPlayerEb(ptr noundef nonnull align 8 dereferenceable(38) %620, i1 noundef zeroext %624)
  %625 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 4
  store i8 0, ptr %625, align 1, !tbaa !37
  %626 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 8
  %627 = load ptr, ptr %626, align 8, !tbaa !23
  %628 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 9
  %629 = load ptr, ptr %628, align 8, !tbaa !24
  %630 = call <2 x float> @_ZN5Stick15GetCurrentForceEv(ptr noundef nonnull align 8 dereferenceable(61) %629)
  store <2 x float> %630, ptr %55, align 4
  %631 = load <2 x float>, ptr %55, align 4
  call void @_ZN4Ball8AddForceE7Vector2(ptr noundef nonnull align 8 dereferenceable(64) %627, <2 x float> %631)
  %632 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 9
  %633 = load ptr, ptr %632, align 8, !tbaa !24
  call void @_ZN6Sprite11SetRotationEf(ptr noundef nonnull align 8 dereferenceable(48) %633, float noundef 1.800000e+02)
  %634 = getelementptr inbounds %class.GameScene, ptr %56, i32 0, i32 9
  %635 = load ptr, ptr %634, align 8, !tbaa !24
  call void @_ZN5Stick8SetForceEf(ptr noundef nonnull align 8 dereferenceable(61) %635, float noundef 3.000000e+01)
  br label %636

636:                                              ; preds = %618, %595, %593
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #5
  store i32 0, ptr %6, align 4
  br label %637

637:                                              ; preds = %636, %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  %638 = load i32, ptr %6, align 4
  switch i32 %638, label %640 [
    i32 0, label %639
    i32 1, label %639
  ]

639:                                              ; preds = %637, %637
  ret void

640:                                              ; preds = %637
  unreachable
}

declare void @_ZN3HUD19UpdateInternalStateE10TableState(ptr noundef nonnull align 8 dereferenceable(38), ptr noundef byval(%struct.TableState) align 8) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9GameScene13GetTableStateEv(ptr dead_on_unwind noalias writable sret(%struct.TableState) align 4, ptr noundef nonnull align 8 dereferenceable(96)) #2 align 2

declare void @_ZN6Sprite11SetPositionE7Vector2(ptr noundef nonnull align 8 dereferenceable(48), <2 x float>) #3

declare zeroext i1 @CheckCollisionCircles(<2 x float>, float noundef, <2 x float>, float noundef) #3

declare noundef zeroext i1 @_ZN3HUD9GetHasWonEv(ptr noundef nonnull align 8 dereferenceable(38)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt7__cxx114listIP4BallSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt14_List_iteratorIP4BallES4_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2

declare noundef i32 @_ZN4Ball9GetNumberEv(ptr noundef nonnull align 8 dereferenceable(64)) #3

declare void @_ZN3HUD9SetHasWonEv(ptr noundef nonnull align 8 dereferenceable(38)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt14_List_iteratorIP4BallEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

declare zeroext i1 @IsMouseButtonPressed(i32 noundef) #3

declare <2 x float> @GetMousePosition() #3

declare void @_ZN6Sprite11SetRotationEf(ptr noundef nonnull align 8 dereferenceable(48), float noundef) #3

declare <2 x float> @_ZN4Ball11GetVelocityEv(ptr noundef nonnull align 8 dereferenceable(64)) #3

declare noundef zeroext i1 @_ZN5Stick8GetShownEv(ptr noundef nonnull align 8 dereferenceable(61)) #3

declare void @_ZN5Stick8SetShownEb(ptr noundef nonnull align 8 dereferenceable(61), i1 noundef zeroext) #3

declare zeroext i1 @IsKeyPressed(i32 noundef) #3

declare void @_ZN4Ball17EnablePhysicsBodyEv(ptr noundef nonnull align 8 dereferenceable(64)) #3

declare void @_ZN3HUD9SetPlayerEb(ptr noundef nonnull align 8 dereferenceable(38), i1 noundef zeroext) #3

declare noundef zeroext i1 @_ZN3HUD9GetPlayerEv(ptr noundef nonnull align 8 dereferenceable(38)) #3

declare void @_ZN4Ball8AddForceE7Vector2(ptr noundef nonnull align 8 dereferenceable(64), <2 x float>) #3

declare <2 x float> @_ZN5Stick15GetCurrentForceEv(ptr noundef nonnull align 8 dereferenceable(61)) #3

declare void @_ZN5Stick8SetForceEf(ptr noundef nonnull align 8 dereferenceable(61), float noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "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 = { 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 #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++ TBAA"}
!9 = !{!10, !6, i64 72}
!10 = !{!"_ZTS9GameScene", !11, i64 0, !13, i64 12, !13, i64 16, !14, i64 20, !14, i64 21, !12, i64 24, !12, i64 28, !15, i64 32, !6, i64 56, !6, i64 64, !6, i64 72, !21, i64 80, !21, i64 88}
!11 = !{!"_ZTSN15DrawableManager8DrawableE", !12, i64 8}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTS4Turn", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTSNSt7__cxx114listIP4BallSaIS2_EEE", !16, i64 0}
!16 = !{!"_ZTSNSt7__cxx1110_List_baseIP4BallSaIS2_EEE", !17, i64 0}
!17 = !{!"_ZTSNSt7__cxx1110_List_baseIP4BallSaIS2_EE10_List_implE", !18, i64 0}
!18 = !{!"_ZTSNSt8__detail17_List_node_headerE", !19, i64 0, !20, i64 16}
!19 = !{!"_ZTSNSt8__detail15_List_node_baseE", !6, i64 0, !6, i64 8}
!20 = !{!"long", !7, i64 0}
!21 = !{!"_ZTS7Vector2", !22, i64 0, !22, i64 4}
!22 = !{!"float", !7, i64 0}
!23 = !{!10, !6, i64 56}
!24 = !{!10, !6, i64 64}
!25 = !{!21, !22, i64 0}
!26 = !{!21, !22, i64 4}
!27 = !{!10, !13, i64 16}
!28 = !{!12, !12, i64 0}
!29 = !{i64 0, i64 4, !30, i64 4, i64 4, !30}
!30 = !{!22, !22, i64 0}
!31 = !{!10, !13, i64 12}
!32 = !{!10, !14, i64 20}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!10, !12, i64 28}
!36 = !{!10, !12, i64 24}
!37 = !{!10, !14, i64 21}
!38 = !{i8 0, i8 2}
!39 = !{}
!40 = distinct !{!40, !34}
!41 = !{!14, !14, i64 0}
!42 = distinct !{!42, !34}
!43 = !{!10, !22, i64 88}
!44 = !{!10, !22, i64 92}


; 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.Vector2 = type { float, float }
%struct.TableState = type { i32, i32, i8, i32, i32 }
%"struct.std::_List_iterator" = type { ptr }

@__const._ZN9GameScene6UpdateEv.position = external hidden unnamed_addr constant [6 x %struct.Vector2], align 16

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt7__cxx114listIP4BallSaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14_List_iteratorIP4BallEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

declare void @_ZN4Ball11SetPositionE7Vector2(ptr noundef nonnull align 8 dereferenceable(64), <2 x float>) local_unnamed_addr #2

declare noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2

declare noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2

declare void @_ZN4Ball18DisablePhysicsBodyEv(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #2

declare <2 x float> @_ZN4Ball11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9GameScene6UpdateEv(ptr noundef nonnull align 8 dereferenceable(96) %0) unnamed_addr #3 align 2 {
  %2 = alloca %struct.TableState, align 8
  %3 = alloca %"struct.std::_List_iterator", align 8
  %4 = alloca %"struct.std::_List_iterator", align 8
  %5 = alloca %"struct.std::_List_iterator", align 8
  %6 = alloca %"struct.std::_List_iterator", align 8
  %7 = alloca %"struct.std::_List_iterator", align 8
  %8 = alloca %"struct.std::_List_iterator", align 8
  %9 = alloca %"struct.std::_List_iterator", align 8
  %10 = alloca %"struct.std::_List_iterator", align 8
  %11 = getelementptr inbounds i8, ptr %0, i64 72
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN9GameScene13GetTableStateEv(ptr dead_on_unwind nonnull writable sret(%struct.TableState) align 4 %2, ptr noundef nonnull align 8 dereferenceable(96) %0)
  call void @_ZN3HUD19UpdateInternalStateE10TableState(ptr noundef nonnull align 8 dereferenceable(38) %12, ptr noundef nonnull byval(%struct.TableState) align 8 %2)
  %13 = getelementptr inbounds i8, ptr %0, i64 56
  %14 = load ptr, ptr %13, align 8, !tbaa !22
  %15 = call <2 x float> @_ZN4Ball11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(64) %14)
  %16 = getelementptr inbounds i8, ptr %0, i64 64
  %17 = load ptr, ptr %16, align 8, !tbaa !23
  %18 = load ptr, ptr %13, align 8, !tbaa !22
  %19 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %18)
  %20 = load ptr, ptr %13, align 8, !tbaa !22
  %21 = call noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %20)
  %22 = insertelement <2 x float> poison, float %19, i64 0
  %23 = insertelement <2 x float> %22, float %21, i64 1
  %24 = fmul <2 x float> %23, <float 5.000000e-01, float 5.000000e-01>
  %25 = fadd <2 x float> %15, %24
  call void @_ZN6Sprite11SetPositionE7Vector2(ptr noundef nonnull align 8 dereferenceable(48) %17, <2 x float> %25)
  %26 = getelementptr inbounds i8, ptr %0, i64 16
  %27 = load i32, ptr %26, align 8, !tbaa !24
  %.not = icmp eq i32 %27, -1
  br i1 %.not, label %.preheader, label %485

.preheader:                                       ; preds = %1
  %28 = getelementptr inbounds i8, ptr %0, i64 12
  %29 = getelementptr inbounds i8, ptr %0, i64 20
  %.sroa.070.0.copyload = load <2 x float>, ptr @__const._ZN9GameScene6UpdateEv.position, align 16
  %30 = load ptr, ptr %13, align 8, !tbaa !22
  %31 = call <2 x float> @_ZN4Ball11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(64) %30)
  %32 = load ptr, ptr %13, align 8, !tbaa !22
  %33 = call <2 x float> @_ZN4Ball11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(64) %32)
  %34 = shufflevector <2 x float> %31, <2 x float> %33, <2 x i32> <i32 0, i32 3>
  %35 = fadd <2 x float> %34, <float 2.500000e+01, float 2.500000e+01>
  %36 = load ptr, ptr %13, align 8, !tbaa !22
  %37 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %36)
  %38 = call zeroext i1 @CheckCollisionCircles(<2 x float> %.sroa.070.0.copyload, float noundef 3.000000e+01, <2 x float> %35, float noundef %37)
  br i1 %38, label %42, label %56

.lr.ph:                                           ; preds = %176
  %39 = getelementptr inbounds i8, ptr %0, i64 24
  %40 = getelementptr inbounds i8, ptr %0, i64 28
  %41 = getelementptr inbounds i8, ptr %0, i64 21
  br label %183

42:                                               ; preds = %.preheader
  %43 = load ptr, ptr %13, align 8, !tbaa !22
  call void @_ZN4Ball18DisablePhysicsBodyEv(ptr noundef nonnull align 8 dereferenceable(64) %43)
  %44 = load ptr, ptr %13, align 8, !tbaa !22
  %45 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %44)
  %46 = load ptr, ptr %13, align 8, !tbaa !22
  %47 = call noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %46)
  %48 = insertelement <2 x float> poison, float %45, i64 0
  %49 = insertelement <2 x float> %48, float %47, i64 1
  %50 = fmul <2 x float> %49, <float -2.000000e+00, float -2.000000e+00>
  call void @_ZN4Ball11SetPositionE7Vector2(ptr noundef nonnull align 8 dereferenceable(64) %44, <2 x float> %50)
  %51 = load ptr, ptr %11, align 8, !tbaa !5
  %52 = call noundef zeroext i1 @_ZN3HUD9GetHasWonEv(ptr noundef nonnull align 8 dereferenceable(38) %51)
  br i1 %52, label %56, label %53

53:                                               ; preds = %42
  %54 = load i32, ptr %28, align 4, !tbaa !25
  %.not88 = icmp eq i32 %54, -1
  %.not89 = icmp eq i32 %54, 0
  %55 = zext i1 %.not89 to i32
  %storemerge = select i1 %.not88, i32 -1, i32 %55
  store i32 %storemerge, ptr %28, align 4, !tbaa !25
  store i8 1, ptr %29, align 4, !tbaa !26
  br label %56

56:                                               ; preds = %.preheader, %53, %42
  %.sroa.070.0.copyload.1 = load <2 x float>, ptr getelementptr inbounds (i8, ptr @__const._ZN9GameScene6UpdateEv.position, i64 8), align 8
  %57 = load ptr, ptr %13, align 8, !tbaa !22
  %58 = call <2 x float> @_ZN4Ball11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(64) %57)
  %59 = load ptr, ptr %13, align 8, !tbaa !22
  %60 = call <2 x float> @_ZN4Ball11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(64) %59)
  %61 = shufflevector <2 x float> %58, <2 x float> %60, <2 x i32> <i32 0, i32 3>
  %62 = fadd <2 x float> %61, <float 2.500000e+01, float 2.500000e+01>
  %63 = load ptr, ptr %13, align 8, !tbaa !22
  %64 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %63)
  %65 = call zeroext i1 @CheckCollisionCircles(<2 x float> %.sroa.070.0.copyload.1, float noundef 3.000000e+01, <2 x float> %62, float noundef %64)
  br i1 %65, label %66, label %80

66:                                               ; preds = %56
  %67 = load ptr, ptr %13, align 8, !tbaa !22
  call void @_ZN4Ball18DisablePhysicsBodyEv(ptr noundef nonnull align 8 dereferenceable(64) %67)
  %68 = load ptr, ptr %13, align 8, !tbaa !22
  %69 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %68)
  %70 = load ptr, ptr %13, align 8, !tbaa !22
  %71 = call noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %70)
  %72 = insertelement <2 x float> poison, float %69, i64 0
  %73 = insertelement <2 x float> %72, float %71, i64 1
  %74 = fmul <2 x float> %73, <float -2.000000e+00, float -2.000000e+00>
  call void @_ZN4Ball11SetPositionE7Vector2(ptr noundef nonnull align 8 dereferenceable(64) %68, <2 x float> %74)
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  %76 = call noundef zeroext i1 @_ZN3HUD9GetHasWonEv(ptr noundef nonnull align 8 dereferenceable(38) %75)
  br i1 %76, label %80, label %77

77:                                               ; preds = %66
  %78 = load i32, ptr %28, align 4, !tbaa !25
  %.not88.1 = icmp eq i32 %78, -1
  %.not89.1 = icmp eq i32 %78, 0
  %79 = zext i1 %.not89.1 to i32
  %storemerge.1 = select i1 %.not88.1, i32 -1, i32 %79
  store i32 %storemerge.1, ptr %28, align 4, !tbaa !25
  store i8 1, ptr %29, align 4, !tbaa !26
  br label %80

80:                                               ; preds = %77, %66, %56
  %.sroa.070.0.copyload.2 = load <2 x float>, ptr getelementptr inbounds (i8, ptr @__const._ZN9GameScene6UpdateEv.position, i64 16), align 16
  %81 = load ptr, ptr %13, align 8, !tbaa !22
  %82 = call <2 x float> @_ZN4Ball11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(64) %81)
  %83 = load ptr, ptr %13, align 8, !tbaa !22
  %84 = call <2 x float> @_ZN4Ball11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(64) %83)
  %85 = shufflevector <2 x float> %82, <2 x float> %84, <2 x i32> <i32 0, i32 3>
  %86 = fadd <2 x float> %85, <float 2.500000e+01, float 2.500000e+01>
  %87 = load ptr, ptr %13, align 8, !tbaa !22
  %88 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %87)
  %89 = call zeroext i1 @CheckCollisionCircles(<2 x float> %.sroa.070.0.copyload.2, float noundef 3.000000e+01, <2 x float> %86, float noundef %88)
  br i1 %89, label %90, label %104

90:                                               ; preds = %80
  %91 = load ptr, ptr %13, align 8, !tbaa !22
  call void @_ZN4Ball18DisablePhysicsBodyEv(ptr noundef nonnull align 8 dereferenceable(64) %91)
  %92 = load ptr, ptr %13, align 8, !tbaa !22
  %93 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %92)
  %94 = load ptr, ptr %13, align 8, !tbaa !22
  %95 = call noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %94)
  %96 = insertelement <2 x float> poison, float %93, i64 0
  %97 = insertelement <2 x float> %96, float %95, i64 1
  %98 = fmul <2 x float> %97, <float -2.000000e+00, float -2.000000e+00>
  call void @_ZN4Ball11SetPositionE7Vector2(ptr noundef nonnull align 8 dereferenceable(64) %92, <2 x float> %98)
  %99 = load ptr, ptr %11, align 8, !tbaa !5
  %100 = call noundef zeroext i1 @_ZN3HUD9GetHasWonEv(ptr noundef nonnull align 8 dereferenceable(38) %99)
  br i1 %100, label %104, label %101

101:                                              ; preds = %90
  %102 = load i32, ptr %28, align 4, !tbaa !25
  %.not88.2 = icmp eq i32 %102, -1
  %.not89.2 = icmp eq i32 %102, 0
  %103 = zext i1 %.not89.2 to i32
  %storemerge.2 = select i1 %.not88.2, i32 -1, i32 %103
  store i32 %storemerge.2, ptr %28, align 4, !tbaa !25
  store i8 1, ptr %29, align 4, !tbaa !26
  br label %104

104:                                              ; preds = %101, %90, %80
  %.sroa.070.0.copyload.3 = load <2 x float>, ptr getelementptr inbounds (i8, ptr @__const._ZN9GameScene6UpdateEv.position, i64 24), align 8
  %105 = load ptr, ptr %13, align 8, !tbaa !22
  %106 = call <2 x float> @_ZN4Ball11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(64) %105)
  %107 = load ptr, ptr %13, align 8, !tbaa !22
  %108 = call <2 x float> @_ZN4Ball11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(64) %107)
  %109 = shufflevector <2 x float> %106, <2 x float> %108, <2 x i32> <i32 0, i32 3>
  %110 = fadd <2 x float> %109, <float 2.500000e+01, float 2.500000e+01>
  %111 = load ptr, ptr %13, align 8, !tbaa !22
  %112 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %111)
  %113 = call zeroext i1 @CheckCollisionCircles(<2 x float> %.sroa.070.0.copyload.3, float noundef 3.000000e+01, <2 x float> %110, float noundef %112)
  br i1 %113, label %114, label %128

114:                                              ; preds = %104
  %115 = load ptr, ptr %13, align 8, !tbaa !22
  call void @_ZN4Ball18DisablePhysicsBodyEv(ptr noundef nonnull align 8 dereferenceable(64) %115)
  %116 = load ptr, ptr %13, align 8, !tbaa !22
  %117 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %116)
  %118 = load ptr, ptr %13, align 8, !tbaa !22
  %119 = call noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %118)
  %120 = insertelement <2 x float> poison, float %117, i64 0
  %121 = insertelement <2 x float> %120, float %119, i64 1
  %122 = fmul <2 x float> %121, <float -2.000000e+00, float -2.000000e+00>
  call void @_ZN4Ball11SetPositionE7Vector2(ptr noundef nonnull align 8 dereferenceable(64) %116, <2 x float> %122)
  %123 = load ptr, ptr %11, align 8, !tbaa !5
  %124 = call noundef zeroext i1 @_ZN3HUD9GetHasWonEv(ptr noundef nonnull align 8 dereferenceable(38) %123)
  br i1 %124, label %128, label %125

125:                                              ; preds = %114
  %126 = load i32, ptr %28, align 4, !tbaa !25
  %.not88.3 = icmp eq i32 %126, -1
  %.not89.3 = icmp eq i32 %126, 0
  %127 = zext i1 %.not89.3 to i32
  %storemerge.3 = select i1 %.not88.3, i32 -1, i32 %127
  store i32 %storemerge.3, ptr %28, align 4, !tbaa !25
  store i8 1, ptr %29, align 4, !tbaa !26
  br label %128

128:                                              ; preds = %125, %114, %104
  %.sroa.070.0.copyload.4 = load <2 x float>, ptr getelementptr inbounds (i8, ptr @__const._ZN9GameScene6UpdateEv.position, i64 32), align 16
  %129 = load ptr, ptr %13, align 8, !tbaa !22
  %130 = call <2 x float> @_ZN4Ball11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(64) %129)
  %131 = load ptr, ptr %13, align 8, !tbaa !22
  %132 = call <2 x float> @_ZN4Ball11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(64) %131)
  %133 = shufflevector <2 x float> %130, <2 x float> %132, <2 x i32> <i32 0, i32 3>
  %134 = fadd <2 x float> %133, <float 2.500000e+01, float 2.500000e+01>
  %135 = load ptr, ptr %13, align 8, !tbaa !22
  %136 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %135)
  %137 = call zeroext i1 @CheckCollisionCircles(<2 x float> %.sroa.070.0.copyload.4, float noundef 3.000000e+01, <2 x float> %134, float noundef %136)
  br i1 %137, label %138, label %152

138:                                              ; preds = %128
  %139 = load ptr, ptr %13, align 8, !tbaa !22
  call void @_ZN4Ball18DisablePhysicsBodyEv(ptr noundef nonnull align 8 dereferenceable(64) %139)
  %140 = load ptr, ptr %13, align 8, !tbaa !22
  %141 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %140)
  %142 = load ptr, ptr %13, align 8, !tbaa !22
  %143 = call noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %142)
  %144 = insertelement <2 x float> poison, float %141, i64 0
  %145 = insertelement <2 x float> %144, float %143, i64 1
  %146 = fmul <2 x float> %145, <float -2.000000e+00, float -2.000000e+00>
  call void @_ZN4Ball11SetPositionE7Vector2(ptr noundef nonnull align 8 dereferenceable(64) %140, <2 x float> %146)
  %147 = load ptr, ptr %11, align 8, !tbaa !5
  %148 = call noundef zeroext i1 @_ZN3HUD9GetHasWonEv(ptr noundef nonnull align 8 dereferenceable(38) %147)
  br i1 %148, label %152, label %149

149:                                              ; preds = %138
  %150 = load i32, ptr %28, align 4, !tbaa !25
  %.not88.4 = icmp eq i32 %150, -1
  %.not89.4 = icmp eq i32 %150, 0
  %151 = zext i1 %.not89.4 to i32
  %storemerge.4 = select i1 %.not88.4, i32 -1, i32 %151
  store i32 %storemerge.4, ptr %28, align 4, !tbaa !25
  store i8 1, ptr %29, align 4, !tbaa !26
  br label %152

152:                                              ; preds = %149, %138, %128
  %.sroa.070.0.copyload.5 = load <2 x float>, ptr getelementptr inbounds (i8, ptr @__const._ZN9GameScene6UpdateEv.position, i64 40), align 8
  %153 = load ptr, ptr %13, align 8, !tbaa !22
  %154 = call <2 x float> @_ZN4Ball11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(64) %153)
  %155 = load ptr, ptr %13, align 8, !tbaa !22
  %156 = call <2 x float> @_ZN4Ball11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(64) %155)
  %157 = shufflevector <2 x float> %154, <2 x float> %156, <2 x i32> <i32 0, i32 3>
  %158 = fadd <2 x float> %157, <float 2.500000e+01, float 2.500000e+01>
  %159 = load ptr, ptr %13, align 8, !tbaa !22
  %160 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %159)
  %161 = call zeroext i1 @CheckCollisionCircles(<2 x float> %.sroa.070.0.copyload.5, float noundef 3.000000e+01, <2 x float> %158, float noundef %160)
  br i1 %161, label %162, label %176

162:                                              ; preds = %152
  %163 = load ptr, ptr %13, align 8, !tbaa !22
  call void @_ZN4Ball18DisablePhysicsBodyEv(ptr noundef nonnull align 8 dereferenceable(64) %163)
  %164 = load ptr, ptr %13, align 8, !tbaa !22
  %165 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %164)
  %166 = load ptr, ptr %13, align 8, !tbaa !22
  %167 = call noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %166)
  %168 = insertelement <2 x float> poison, float %165, i64 0
  %169 = insertelement <2 x float> %168, float %167, i64 1
  %170 = fmul <2 x float> %169, <float -2.000000e+00, float -2.000000e+00>
  call void @_ZN4Ball11SetPositionE7Vector2(ptr noundef nonnull align 8 dereferenceable(64) %164, <2 x float> %170)
  %171 = load ptr, ptr %11, align 8, !tbaa !5
  %172 = call noundef zeroext i1 @_ZN3HUD9GetHasWonEv(ptr noundef nonnull align 8 dereferenceable(38) %171)
  br i1 %172, label %176, label %173

173:                                              ; preds = %162
  %174 = load i32, ptr %28, align 4, !tbaa !25
  %.not88.5 = icmp eq i32 %174, -1
  %.not89.5 = icmp eq i32 %174, 0
  %175 = zext i1 %.not89.5 to i32
  %storemerge.5 = select i1 %.not88.5, i32 -1, i32 %175
  store i32 %storemerge.5, ptr %28, align 4, !tbaa !25
  store i8 1, ptr %29, align 4, !tbaa !26
  br label %176

176:                                              ; preds = %173, %162, %152
  %177 = getelementptr inbounds i8, ptr %0, i64 32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %178 = call ptr @_ZNSt7__cxx114listIP4BallSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %177) #4
  store ptr %178, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %179 = call ptr @_ZNSt7__cxx114listIP4BallSaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %177) #4
  store ptr %179, ptr %4, align 8
  %180 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorIP4BallES4_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  br i1 %180, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %186, %176
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  %181 = load i8, ptr %29, align 4, !tbaa !26, !range !27, !noundef !28
  %182 = trunc nuw i8 %181 to i1
  br i1 %182, label %266, label %411

183:                                              ; preds = %.lr.ph, %186
  %184 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14_List_iteratorIP4BallEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %185 = load ptr, ptr %184, align 8, !tbaa !29
  br label %189

186:                                              ; preds = %265
  %187 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt14_List_iteratorIP4BallEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %188 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorIP4BallES4_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  br i1 %188, label %183, label %._crit_edge

189:                                              ; preds = %183, %265
  %indvars.iv125 = phi i64 [ 0, %183 ], [ %indvars.iv.next126, %265 ]
  %190 = getelementptr inbounds [6 x %struct.Vector2], ptr @__const._ZN9GameScene6UpdateEv.position, i64 0, i64 %indvars.iv125
  %.sroa.044.0.copyload = load <2 x float>, ptr %190, align 8
  %191 = call <2 x float> @_ZN4Ball11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(64) %185)
  %192 = call <2 x float> @_ZN4Ball11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(64) %185)
  %193 = shufflevector <2 x float> %191, <2 x float> %192, <2 x i32> <i32 0, i32 3>
  %194 = fadd <2 x float> %193, <float 2.500000e+01, float 2.500000e+01>
  %195 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %185)
  %196 = call zeroext i1 @CheckCollisionCircles(<2 x float> %.sroa.044.0.copyload, float noundef 3.000000e+01, <2 x float> %194, float noundef %195)
  br i1 %196, label %197, label %265

197:                                              ; preds = %189
  call void @_ZN4Ball18DisablePhysicsBodyEv(ptr noundef nonnull align 8 dereferenceable(64) %185)
  %198 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %185)
  %199 = call noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %185)
  %200 = insertelement <2 x float> poison, float %198, i64 0
  %201 = insertelement <2 x float> %200, float %199, i64 1
  %202 = fmul <2 x float> %201, <float -2.000000e+00, float -2.000000e+00>
  call void @_ZN4Ball11SetPositionE7Vector2(ptr noundef nonnull align 8 dereferenceable(64) %185, <2 x float> %202)
  %203 = call noundef i32 @_ZN4Ball9GetNumberEv(ptr noundef nonnull align 8 dereferenceable(64) %185)
  %204 = icmp slt i32 %203, 8
  br i1 %204, label %205, label %208

205:                                              ; preds = %197
  %206 = load i32, ptr %40, align 4, !tbaa !30
  %207 = add nsw i32 %206, 1
  store i32 %207, ptr %40, align 4, !tbaa !30
  br label %214

208:                                              ; preds = %197
  %209 = call noundef i32 @_ZN4Ball9GetNumberEv(ptr noundef nonnull align 8 dereferenceable(64) %185)
  %210 = icmp sgt i32 %209, 8
  br i1 %210, label %211, label %214

211:                                              ; preds = %208
  %212 = load i32, ptr %39, align 8, !tbaa !31
  %213 = add nsw i32 %212, 1
  store i32 %213, ptr %39, align 8, !tbaa !31
  br label %214

214:                                              ; preds = %208, %211, %205
  store i8 1, ptr %41, align 1, !tbaa !32
  %215 = load i32, ptr %28, align 4, !tbaa !25
  switch i32 %215, label %236 [
    i32 -1, label %216
    i32 0, label %224
  ]

216:                                              ; preds = %214
  %217 = call noundef i32 @_ZN4Ball9GetNumberEv(ptr noundef nonnull align 8 dereferenceable(64) %185)
  %218 = icmp slt i32 %217, 8
  br i1 %218, label %219, label %220

219:                                              ; preds = %216
  store i32 0, ptr %28, align 4, !tbaa !25
  br label %251

220:                                              ; preds = %216
  %221 = call noundef i32 @_ZN4Ball9GetNumberEv(ptr noundef nonnull align 8 dereferenceable(64) %185)
  %222 = icmp sgt i32 %221, 8
  br i1 %222, label %223, label %251

223:                                              ; preds = %220
  store i32 1, ptr %28, align 4, !tbaa !25
  br label %251

224:                                              ; preds = %214
  %225 = call noundef i32 @_ZN4Ball9GetNumberEv(ptr noundef nonnull align 8 dereferenceable(64) %185)
  %226 = icmp sgt i32 %225, 8
  br i1 %226, label %227, label %thread-pre-split

227:                                              ; preds = %224
  store i8 1, ptr %29, align 4, !tbaa !26
  store i32 1, ptr %28, align 4, !tbaa !25
  %228 = load ptr, ptr %13, align 8, !tbaa !22
  %229 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %228)
  %230 = load ptr, ptr %13, align 8, !tbaa !22
  %231 = call noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %230)
  %232 = insertelement <2 x float> poison, float %229, i64 0
  %233 = insertelement <2 x float> %232, float %231, i64 1
  %234 = fmul <2 x float> %233, <float -2.000000e+00, float -2.000000e+00>
  call void @_ZN4Ball11SetPositionE7Vector2(ptr noundef nonnull align 8 dereferenceable(64) %228, <2 x float> %234)
  %235 = load ptr, ptr %13, align 8, !tbaa !22
  call void @_ZN4Ball18DisablePhysicsBodyEv(ptr noundef nonnull align 8 dereferenceable(64) %235)
  br label %251

thread-pre-split:                                 ; preds = %224
  %.pr = load i32, ptr %28, align 4, !tbaa !25
  br label %236

236:                                              ; preds = %thread-pre-split, %214
  %237 = phi i32 [ %.pr, %thread-pre-split ], [ %215, %214 ]
  %238 = icmp eq i32 %237, 1
  br i1 %238, label %239, label %251

239:                                              ; preds = %236
  %240 = call noundef i32 @_ZN4Ball9GetNumberEv(ptr noundef nonnull align 8 dereferenceable(64) %185)
  %241 = icmp slt i32 %240, 8
  br i1 %241, label %242, label %251

242:                                              ; preds = %239
  store i8 1, ptr %29, align 4, !tbaa !26
  store i32 0, ptr %28, align 4, !tbaa !25
  %243 = load ptr, ptr %13, align 8, !tbaa !22
  %244 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %243)
  %245 = load ptr, ptr %13, align 8, !tbaa !22
  %246 = call noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %245)
  %247 = insertelement <2 x float> poison, float %244, i64 0
  %248 = insertelement <2 x float> %247, float %246, i64 1
  %249 = fmul <2 x float> %248, <float -2.000000e+00, float -2.000000e+00>
  call void @_ZN4Ball11SetPositionE7Vector2(ptr noundef nonnull align 8 dereferenceable(64) %243, <2 x float> %249)
  %250 = load ptr, ptr %13, align 8, !tbaa !22
  call void @_ZN4Ball18DisablePhysicsBodyEv(ptr noundef nonnull align 8 dereferenceable(64) %250)
  br label %251

251:                                              ; preds = %227, %242, %239, %236, %219, %223, %220
  %252 = call noundef i32 @_ZN4Ball9GetNumberEv(ptr noundef nonnull align 8 dereferenceable(64) %185)
  %253 = icmp eq i32 %252, 8
  br i1 %253, label %254, label %265

254:                                              ; preds = %251
  %255 = load i32, ptr %28, align 4, !tbaa !25
  %256 = icmp eq i32 %255, 0
  %257 = load i32, ptr %40, align 4
  %258 = icmp eq i32 %257, 7
  %or.cond = select i1 %256, i1 %258, i1 false
  %.pre = load i8, ptr %41, align 1, !tbaa !32, !range !27
  br i1 %or.cond, label %.thread, label %259

259:                                              ; preds = %254
  %260 = icmp eq i32 %255, 1
  %261 = load i32, ptr %39, align 8
  %262 = icmp eq i32 %261, 7
  %or.cond94 = select i1 %260, i1 %262, i1 false
  br i1 %or.cond94, label %.thread97, label %.thread

.thread:                                          ; preds = %254, %259
  %.100 = zext nneg i8 %.pre to i32
  %263 = icmp eq i32 %255, -1
  %spec.store.select = select i1 %263, i32 -1, i32 %.100
  br label %.thread97

.thread97:                                        ; preds = %259, %.thread
  %storemerge121 = phi i32 [ %spec.store.select, %.thread ], [ 1, %259 ]
  store i32 %storemerge121, ptr %26, align 8
  %264 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN3HUD9SetHasWonEv(ptr noundef nonnull align 8 dereferenceable(38) %264)
  br label %265

265:                                              ; preds = %189, %.thread97, %251
  %indvars.iv.next126 = add nuw nsw i64 %indvars.iv125, 1
  %exitcond128.not = icmp eq i64 %indvars.iv.next126, 6
  br i1 %exitcond128.not, label %186, label %189, !llvm.loop !33

266:                                              ; preds = %._crit_edge
  %267 = call zeroext i1 @IsMouseButtonPressed(i32 noundef 0)
  br i1 %267, label %268, label %411

268:                                              ; preds = %266
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %269 = call ptr @_ZNSt7__cxx114listIP4BallSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %177) #4
  store ptr %269, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %270 = call ptr @_ZNSt7__cxx114listIP4BallSaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %177) #4
  store ptr %270, ptr %6, align 8
  %271 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorIP4BallES4_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  br i1 %271, label %.lr.ph111, label %._crit_edge112

._crit_edge112:                                   ; preds = %.lr.ph111, %268
  %.079.lcssa = phi i1 [ true, %268 ], [ %spec.select, %.lr.ph111 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  %.sroa.019.0.copyload = load <2 x float>, ptr @__const._ZN9GameScene6UpdateEv.position, align 16
  %272 = call <2 x float> @GetMousePosition()
  %273 = load ptr, ptr %13, align 8, !tbaa !22
  %274 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %273)
  %275 = call <2 x float> @GetMousePosition()
  %276 = load ptr, ptr %13, align 8, !tbaa !22
  %277 = call noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %276)
  %278 = insertelement <2 x float> poison, float %274, i64 0
  %279 = insertelement <2 x float> %278, float %277, i64 1
  %280 = fmul <2 x float> %279, <float 5.000000e-01, float 5.000000e-01>
  %281 = shufflevector <2 x float> %272, <2 x float> %275, <2 x i32> <i32 0, i32 3>
  %282 = fsub <2 x float> %281, %280
  %283 = load ptr, ptr %13, align 8, !tbaa !22
  %284 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %283)
  %285 = fmul float %284, 5.000000e-01
  %286 = call zeroext i1 @CheckCollisionCircles(<2 x float> %.sroa.019.0.copyload, float noundef 3.000000e+01, <2 x float> %282, float noundef %285)
  %.sroa.019.0.copyload.1 = load <2 x float>, ptr getelementptr inbounds (i8, ptr @__const._ZN9GameScene6UpdateEv.position, i64 8), align 8
  %287 = call <2 x float> @GetMousePosition()
  %288 = load ptr, ptr %13, align 8, !tbaa !22
  %289 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %288)
  %290 = call <2 x float> @GetMousePosition()
  %291 = load ptr, ptr %13, align 8, !tbaa !22
  %292 = call noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %291)
  %293 = insertelement <2 x float> poison, float %289, i64 0
  %294 = insertelement <2 x float> %293, float %292, i64 1
  %295 = fmul <2 x float> %294, <float 5.000000e-01, float 5.000000e-01>
  %296 = shufflevector <2 x float> %287, <2 x float> %290, <2 x i32> <i32 0, i32 3>
  %297 = fsub <2 x float> %296, %295
  %298 = load ptr, ptr %13, align 8, !tbaa !22
  %299 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %298)
  %300 = fmul float %299, 5.000000e-01
  %301 = call zeroext i1 @CheckCollisionCircles(<2 x float> %.sroa.019.0.copyload.1, float noundef 3.000000e+01, <2 x float> %297, float noundef %300)
  %.sroa.019.0.copyload.2 = load <2 x float>, ptr getelementptr inbounds (i8, ptr @__const._ZN9GameScene6UpdateEv.position, i64 16), align 16
  %302 = call <2 x float> @GetMousePosition()
  %303 = load ptr, ptr %13, align 8, !tbaa !22
  %304 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %303)
  %305 = call <2 x float> @GetMousePosition()
  %306 = load ptr, ptr %13, align 8, !tbaa !22
  %307 = call noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %306)
  %308 = insertelement <2 x float> poison, float %304, i64 0
  %309 = insertelement <2 x float> %308, float %307, i64 1
  %310 = fmul <2 x float> %309, <float 5.000000e-01, float 5.000000e-01>
  %311 = shufflevector <2 x float> %302, <2 x float> %305, <2 x i32> <i32 0, i32 3>
  %312 = fsub <2 x float> %311, %310
  %313 = load ptr, ptr %13, align 8, !tbaa !22
  %314 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %313)
  %315 = fmul float %314, 5.000000e-01
  %316 = call zeroext i1 @CheckCollisionCircles(<2 x float> %.sroa.019.0.copyload.2, float noundef 3.000000e+01, <2 x float> %312, float noundef %315)
  %.sroa.019.0.copyload.3 = load <2 x float>, ptr getelementptr inbounds (i8, ptr @__const._ZN9GameScene6UpdateEv.position, i64 24), align 8
  %317 = call <2 x float> @GetMousePosition()
  %318 = load ptr, ptr %13, align 8, !tbaa !22
  %319 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %318)
  %320 = call <2 x float> @GetMousePosition()
  %321 = load ptr, ptr %13, align 8, !tbaa !22
  %322 = call noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %321)
  %323 = insertelement <2 x float> poison, float %319, i64 0
  %324 = insertelement <2 x float> %323, float %322, i64 1
  %325 = fmul <2 x float> %324, <float 5.000000e-01, float 5.000000e-01>
  %326 = shufflevector <2 x float> %317, <2 x float> %320, <2 x i32> <i32 0, i32 3>
  %327 = fsub <2 x float> %326, %325
  %328 = load ptr, ptr %13, align 8, !tbaa !22
  %329 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %328)
  %330 = fmul float %329, 5.000000e-01
  %331 = call zeroext i1 @CheckCollisionCircles(<2 x float> %.sroa.019.0.copyload.3, float noundef 3.000000e+01, <2 x float> %327, float noundef %330)
  %.sroa.019.0.copyload.4 = load <2 x float>, ptr getelementptr inbounds (i8, ptr @__const._ZN9GameScene6UpdateEv.position, i64 32), align 16
  %332 = call <2 x float> @GetMousePosition()
  %333 = load ptr, ptr %13, align 8, !tbaa !22
  %334 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %333)
  %335 = call <2 x float> @GetMousePosition()
  %336 = load ptr, ptr %13, align 8, !tbaa !22
  %337 = call noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %336)
  %338 = insertelement <2 x float> poison, float %334, i64 0
  %339 = insertelement <2 x float> %338, float %337, i64 1
  %340 = fmul <2 x float> %339, <float 5.000000e-01, float 5.000000e-01>
  %341 = shufflevector <2 x float> %332, <2 x float> %335, <2 x i32> <i32 0, i32 3>
  %342 = fsub <2 x float> %341, %340
  %343 = load ptr, ptr %13, align 8, !tbaa !22
  %344 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %343)
  %345 = fmul float %344, 5.000000e-01
  %346 = call zeroext i1 @CheckCollisionCircles(<2 x float> %.sroa.019.0.copyload.4, float noundef 3.000000e+01, <2 x float> %342, float noundef %345)
  %.sroa.019.0.copyload.5 = load <2 x float>, ptr getelementptr inbounds (i8, ptr @__const._ZN9GameScene6UpdateEv.position, i64 40), align 8
  %347 = call <2 x float> @GetMousePosition()
  %348 = load ptr, ptr %13, align 8, !tbaa !22
  %349 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %348)
  %350 = call <2 x float> @GetMousePosition()
  %351 = load ptr, ptr %13, align 8, !tbaa !22
  %352 = call noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %351)
  %353 = insertelement <2 x float> poison, float %349, i64 0
  %354 = insertelement <2 x float> %353, float %352, i64 1
  %355 = fmul <2 x float> %354, <float 5.000000e-01, float 5.000000e-01>
  %356 = shufflevector <2 x float> %347, <2 x float> %350, <2 x i32> <i32 0, i32 3>
  %357 = fsub <2 x float> %356, %355
  %358 = load ptr, ptr %13, align 8, !tbaa !22
  %359 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %358)
  %360 = fmul float %359, 5.000000e-01
  %361 = call zeroext i1 @CheckCollisionCircles(<2 x float> %.sroa.019.0.copyload.5, float noundef 3.000000e+01, <2 x float> %357, float noundef %360)
  %362 = select i1 %361, i1 true, i1 %346
  %363 = select i1 %362, i1 true, i1 %331
  %364 = select i1 %363, i1 true, i1 %316
  %365 = select i1 %364, i1 true, i1 %301
  %366 = select i1 %365, i1 true, i1 %286
  %367 = xor i1 %366, true
  %spec.select95.5 = select i1 %367, i1 %.079.lcssa, i1 false
  br i1 %spec.select95.5, label %388, label %411

.lr.ph111:                                        ; preds = %268, %.lr.ph111
  %.079109 = phi i1 [ %spec.select, %.lr.ph111 ], [ true, %268 ]
  %368 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14_List_iteratorIP4BallEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %369 = load ptr, ptr %368, align 8, !tbaa !29
  %370 = call <2 x float> @GetMousePosition()
  %371 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %369)
  %372 = call <2 x float> @GetMousePosition()
  %373 = call noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %369)
  %374 = insertelement <2 x float> poison, float %371, i64 0
  %375 = insertelement <2 x float> %374, float %373, i64 1
  %376 = fmul <2 x float> %375, <float 5.000000e-01, float 5.000000e-01>
  %377 = shufflevector <2 x float> %370, <2 x float> %372, <2 x i32> <i32 0, i32 3>
  %378 = fsub <2 x float> %377, %376
  %379 = load ptr, ptr %13, align 8, !tbaa !22
  %380 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %379)
  %381 = fmul float %380, 5.000000e-01
  %382 = call <2 x float> @_ZN4Ball11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(64) %369)
  %383 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %369)
  %384 = fmul float %383, 5.000000e-01
  %385 = call zeroext i1 @CheckCollisionCircles(<2 x float> %378, float noundef %381, <2 x float> %382, float noundef %384)
  %not.122 = xor i1 %385, true
  %spec.select = select i1 %not.122, i1 %.079109, i1 false
  %386 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt14_List_iteratorIP4BallEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %387 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorIP4BallES4_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  br i1 %387, label %.lr.ph111, label %._crit_edge112

388:                                              ; preds = %._crit_edge112
  store i8 0, ptr %29, align 4, !tbaa !26
  %389 = load i32, ptr %28, align 4, !tbaa !25
  %390 = icmp eq i32 %389, -1
  br i1 %390, label %397, label %391

391:                                              ; preds = %388
  %392 = getelementptr inbounds i8, ptr %0, i64 21
  %393 = load i8, ptr %392, align 1, !tbaa !32, !range !27, !noundef !28
  %394 = trunc nuw i8 %393 to i1
  br i1 %394, label %397, label %395

395:                                              ; preds = %391
  %.not85 = icmp eq i32 %389, 0
  %396 = zext i1 %.not85 to i32
  store i32 %396, ptr %28, align 4, !tbaa !25
  br label %397

397:                                              ; preds = %388, %391, %395
  %398 = load ptr, ptr %13, align 8, !tbaa !22
  %399 = call <2 x float> @GetMousePosition()
  %400 = load ptr, ptr %13, align 8, !tbaa !22
  %401 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %400)
  %402 = call <2 x float> @GetMousePosition()
  %403 = load ptr, ptr %13, align 8, !tbaa !22
  %404 = call noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %403)
  %405 = insertelement <2 x float> poison, float %401, i64 0
  %406 = insertelement <2 x float> %405, float %404, i64 1
  %407 = fmul <2 x float> %406, <float 5.000000e-01, float 5.000000e-01>
  %408 = shufflevector <2 x float> %399, <2 x float> %402, <2 x i32> <i32 0, i32 3>
  %409 = fsub <2 x float> %408, %407
  call void @_ZN4Ball11SetPositionE7Vector2(ptr noundef nonnull align 8 dereferenceable(64) %398, <2 x float> %409)
  %410 = load ptr, ptr %16, align 8, !tbaa !23
  call void @_ZN6Sprite11SetRotationEf(ptr noundef nonnull align 8 dereferenceable(48) %410, float noundef 1.800000e+02)
  br label %411

411:                                              ; preds = %._crit_edge112, %397, %266, %._crit_edge
  %412 = load ptr, ptr %13, align 8, !tbaa !22
  %413 = call <2 x float> @_ZN4Ball11GetVelocityEv(ptr noundef nonnull align 8 dereferenceable(64) %412)
  %.sroa.010.0.vec.extract = extractelement <2 x float> %413, i64 0
  %414 = fcmp oeq float %.sroa.010.0.vec.extract, 0.000000e+00
  br i1 %414, label %415, label %.critedge

415:                                              ; preds = %411
  %416 = load ptr, ptr %13, align 8, !tbaa !22
  %417 = call <2 x float> @_ZN4Ball11GetVelocityEv(ptr noundef nonnull align 8 dereferenceable(64) %416)
  %.sroa.09.4.vec.extract = extractelement <2 x float> %417, i64 1
  %418 = fcmp oeq float %.sroa.09.4.vec.extract, 0.000000e+00
  br i1 %418, label %419, label %.critedge

419:                                              ; preds = %415
  %420 = load i8, ptr %29, align 4, !tbaa !26, !range !27, !noundef !28
  %421 = trunc nuw i8 %420 to i1
  br i1 %421, label %.critedge, label %422

422:                                              ; preds = %419
  %423 = getelementptr inbounds i8, ptr %0, i64 21
  %424 = load i8, ptr %423, align 1, !tbaa !32, !range !27, !noundef !28
  %425 = trunc nuw i8 %424 to i1
  br i1 %425, label %433, label %426

426:                                              ; preds = %422
  %427 = load ptr, ptr %16, align 8, !tbaa !23
  %428 = call noundef zeroext i1 @_ZN5Stick8GetShownEv(ptr noundef nonnull align 8 dereferenceable(61) %427)
  br i1 %428, label %433, label %429

429:                                              ; preds = %426
  %430 = load i32, ptr %28, align 4, !tbaa !25
  %.not86 = icmp eq i32 %430, -1
  br i1 %.not86, label %433, label %431

431:                                              ; preds = %429
  %.not87 = icmp eq i32 %430, 0
  %432 = zext i1 %.not87 to i32
  store i32 %432, ptr %28, align 4, !tbaa !25
  br label %433

433:                                              ; preds = %431, %429, %426, %422
  %434 = load ptr, ptr %16, align 8, !tbaa !23
  call void @_ZN5Stick8SetShownEb(ptr noundef nonnull align 8 dereferenceable(61) %434, i1 noundef zeroext true)
  %435 = load ptr, ptr %13, align 8, !tbaa !22
  call void @_ZN4Ball18DisablePhysicsBodyEv(ptr noundef nonnull align 8 dereferenceable(64) %435)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %436 = call ptr @_ZNSt7__cxx114listIP4BallSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %177) #4
  store ptr %436, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %437 = call ptr @_ZNSt7__cxx114listIP4BallSaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %177) #4
  store ptr %437, ptr %8, align 8
  %438 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorIP4BallES4_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  br i1 %438, label %.lr.ph116, label %._crit_edge117

._crit_edge117:                                   ; preds = %.lr.ph116, %433
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  %439 = load ptr, ptr %13, align 8, !tbaa !22
  %440 = call <2 x float> @_ZN4Ball11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(64) %439)
  %.sroa.05.0.vec.extract = extractelement <2 x float> %440, i64 0
  %441 = fcmp olt float %.sroa.05.0.vec.extract, 0.000000e+00
  br i1 %441, label %446, label %462

.lr.ph116:                                        ; preds = %433, %.lr.ph116
  %442 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14_List_iteratorIP4BallEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %443 = load ptr, ptr %442, align 8, !tbaa !29
  call void @_ZN4Ball18DisablePhysicsBodyEv(ptr noundef nonnull align 8 dereferenceable(64) %443)
  %444 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt14_List_iteratorIP4BallEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %445 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorIP4BallES4_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  br i1 %445, label %.lr.ph116, label %._crit_edge117

446:                                              ; preds = %._crit_edge117
  %447 = load ptr, ptr %13, align 8, !tbaa !22
  %448 = getelementptr inbounds i8, ptr %0, i64 88
  %449 = getelementptr inbounds i8, ptr %0, i64 92
  %450 = load float, ptr %448, align 8, !tbaa !35
  %451 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %447)
  %452 = load float, ptr %449, align 4, !tbaa !36
  %453 = load ptr, ptr %13, align 8, !tbaa !22
  %454 = call noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %453)
  %455 = insertelement <2 x float> poison, float %451, i64 0
  %456 = insertelement <2 x float> %455, float %454, i64 1
  %457 = fmul <2 x float> %456, <float 5.000000e-01, float 5.000000e-01>
  %458 = insertelement <2 x float> poison, float %450, i64 0
  %459 = insertelement <2 x float> %458, float %452, i64 1
  %460 = fsub <2 x float> %459, %457
  call void @_ZN4Ball11SetPositionE7Vector2(ptr noundef nonnull align 8 dereferenceable(64) %447, <2 x float> %460)
  br label %462

.critedge:                                        ; preds = %415, %411, %419
  %461 = load ptr, ptr %16, align 8, !tbaa !23
  call void @_ZN5Stick8SetShownEb(ptr noundef nonnull align 8 dereferenceable(61) %461, i1 noundef zeroext false)
  br label %462

462:                                              ; preds = %._crit_edge117, %446, %.critedge
  %463 = call zeroext i1 @IsKeyPressed(i32 noundef 32)
  br i1 %463, label %464, label %485

464:                                              ; preds = %462
  %465 = load ptr, ptr %16, align 8, !tbaa !23
  %466 = call noundef zeroext i1 @_ZN5Stick8GetShownEv(ptr noundef nonnull align 8 dereferenceable(61) %465)
  br i1 %466, label %467, label %485

467:                                              ; preds = %464
  %468 = load ptr, ptr %13, align 8, !tbaa !22
  call void @_ZN4Ball17EnablePhysicsBodyEv(ptr noundef nonnull align 8 dereferenceable(64) %468)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %469 = call ptr @_ZNSt7__cxx114listIP4BallSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %177) #4
  store ptr %469, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  %470 = call ptr @_ZNSt7__cxx114listIP4BallSaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %177) #4
  store ptr %470, ptr %10, align 8
  %471 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorIP4BallES4_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  br i1 %471, label %.lr.ph119, label %._crit_edge120

._crit_edge120:                                   ; preds = %.lr.ph119, %467
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  %472 = load ptr, ptr %11, align 8, !tbaa !5
  %473 = call noundef zeroext i1 @_ZN3HUD9GetPlayerEv(ptr noundef nonnull align 8 dereferenceable(38) %472)
  %474 = xor i1 %473, true
  call void @_ZN3HUD9SetPlayerEb(ptr noundef nonnull align 8 dereferenceable(38) %472, i1 noundef zeroext %474)
  %475 = getelementptr inbounds i8, ptr %0, i64 21
  store i8 0, ptr %475, align 1, !tbaa !32
  %476 = load ptr, ptr %13, align 8, !tbaa !22
  %477 = load ptr, ptr %16, align 8, !tbaa !23
  %478 = call <2 x float> @_ZN5Stick15GetCurrentForceEv(ptr noundef nonnull align 8 dereferenceable(61) %477)
  call void @_ZN4Ball8AddForceE7Vector2(ptr noundef nonnull align 8 dereferenceable(64) %476, <2 x float> %478)
  %479 = load ptr, ptr %16, align 8, !tbaa !23
  call void @_ZN6Sprite11SetRotationEf(ptr noundef nonnull align 8 dereferenceable(48) %479, float noundef 1.800000e+02)
  %480 = load ptr, ptr %16, align 8, !tbaa !23
  call void @_ZN5Stick8SetForceEf(ptr noundef nonnull align 8 dereferenceable(61) %480, float noundef 3.000000e+01)
  br label %485

.lr.ph119:                                        ; preds = %467, %.lr.ph119
  %481 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14_List_iteratorIP4BallEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  %482 = load ptr, ptr %481, align 8, !tbaa !29
  call void @_ZN4Ball17EnablePhysicsBodyEv(ptr noundef nonnull align 8 dereferenceable(64) %482)
  %483 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt14_List_iteratorIP4BallEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  %484 = call noundef zeroext i1 @_ZStneRKSt14_List_iteratorIP4BallES4_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  br i1 %484, label %.lr.ph119, label %._crit_edge120

485:                                              ; preds = %462, %464, %._crit_edge120, %1
  ret void
}

declare void @_ZN3HUD19UpdateInternalStateE10TableState(ptr noundef nonnull align 8 dereferenceable(38), ptr noundef byval(%struct.TableState) align 8) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9GameScene13GetTableStateEv(ptr dead_on_unwind noalias writable sret(%struct.TableState) align 4, ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #1 align 2

declare void @_ZN6Sprite11SetPositionE7Vector2(ptr noundef nonnull align 8 dereferenceable(48), <2 x float>) local_unnamed_addr #2

declare zeroext i1 @CheckCollisionCircles(<2 x float>, float noundef, <2 x float>, float noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN3HUD9GetHasWonEv(ptr noundef nonnull align 8 dereferenceable(38)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt7__cxx114listIP4BallSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt14_List_iteratorIP4BallES4_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

declare noundef i32 @_ZN4Ball9GetNumberEv(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #2

declare void @_ZN3HUD9SetHasWonEv(ptr noundef nonnull align 8 dereferenceable(38)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt14_List_iteratorIP4BallEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

declare zeroext i1 @IsMouseButtonPressed(i32 noundef) local_unnamed_addr #2

declare <2 x float> @GetMousePosition() local_unnamed_addr #2

declare void @_ZN6Sprite11SetRotationEf(ptr noundef nonnull align 8 dereferenceable(48), float noundef) local_unnamed_addr #2

declare <2 x float> @_ZN4Ball11GetVelocityEv(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN5Stick8GetShownEv(ptr noundef nonnull align 8 dereferenceable(61)) local_unnamed_addr #2

declare void @_ZN5Stick8SetShownEb(ptr noundef nonnull align 8 dereferenceable(61), i1 noundef zeroext) local_unnamed_addr #2

declare zeroext i1 @IsKeyPressed(i32 noundef) local_unnamed_addr #2

declare void @_ZN4Ball17EnablePhysicsBodyEv(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #2

declare void @_ZN3HUD9SetPlayerEb(ptr noundef nonnull align 8 dereferenceable(38), i1 noundef zeroext) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN3HUD9GetPlayerEv(ptr noundef nonnull align 8 dereferenceable(38)) local_unnamed_addr #2

declare void @_ZN4Ball8AddForceE7Vector2(ptr noundef nonnull align 8 dereferenceable(64), <2 x float>) local_unnamed_addr #2

declare <2 x float> @_ZN5Stick15GetCurrentForceEv(ptr noundef nonnull align 8 dereferenceable(61)) local_unnamed_addr #2

declare void @_ZN5Stick8SetForceEf(ptr noundef nonnull align 8 dereferenceable(61), float noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "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 = { 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 #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, !18, i64 72}
!6 = !{!"_ZTS9GameScene", !7, i64 0, !11, i64 12, !11, i64 16, !12, i64 20, !12, i64 21, !8, i64 24, !8, i64 28, !13, i64 32, !18, i64 56, !18, i64 64, !18, i64 72, !20, i64 80, !20, i64 88}
!7 = !{!"_ZTSN15DrawableManager8DrawableE", !8, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTS4Turn", !9, i64 0}
!12 = !{!"bool", !9, i64 0}
!13 = !{!"_ZTSNSt7__cxx114listIP4BallSaIS2_EEE", !14, i64 0}
!14 = !{!"_ZTSNSt7__cxx1110_List_baseIP4BallSaIS2_EEE", !15, i64 0}
!15 = !{!"_ZTSNSt7__cxx1110_List_baseIP4BallSaIS2_EE10_List_implE", !16, i64 0}
!16 = !{!"_ZTSNSt8__detail17_List_node_headerE", !17, i64 0, !19, i64 16}
!17 = !{!"_ZTSNSt8__detail15_List_node_baseE", !18, i64 0, !18, i64 8}
!18 = !{!"any pointer", !9, i64 0}
!19 = !{!"long", !9, i64 0}
!20 = !{!"_ZTS7Vector2", !21, i64 0, !21, i64 4}
!21 = !{!"float", !9, i64 0}
!22 = !{!6, !18, i64 56}
!23 = !{!6, !18, i64 64}
!24 = !{!6, !11, i64 16}
!25 = !{!6, !11, i64 12}
!26 = !{!6, !12, i64 20}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = !{!18, !18, i64 0}
!30 = !{!6, !8, i64 28}
!31 = !{!6, !8, i64 24}
!32 = !{!6, !12, i64 21}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!6, !21, i64 88}
!36 = !{!6, !21, i64 92}


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