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

; 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.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 }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9GameScene6CreateEv(ptr noundef nonnull align 8 dereferenceable(96) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca [20 x i32], align 16
  %8 = alloca i8, align 1
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca ptr, align 8
  %13 = alloca %struct.Vector2, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca %struct.Vector2, align 4
  %17 = alloca ptr, align 8
  %18 = alloca %"struct.std::_List_iterator", align 8
  %19 = alloca %struct.Vector2, align 4
  %20 = alloca %struct.Vector2, align 4
  %21 = alloca %struct.Vector2, align 4
  %22 = alloca %struct.Vector2, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %23 = load ptr, ptr %2, align 8
  %24 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 112) #10
  invoke void @_ZN5TableC2Ev(ptr noundef nonnull align 8 dereferenceable(112) %24)
          to label %25 unwind label %32

25:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #11
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #11
  call void @llvm.lifetime.start.p0(i64 80, ptr %7) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #11
  store i8 0, ptr %8, align 1, !tbaa !11
  %26 = call i64 @time(ptr noundef null) #11
  %27 = trunc i64 %26 to i32
  call void @srand(i32 noundef %27) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #11
  store i32 1, ptr %9, align 4, !tbaa !9
  br label %28

28:                                               ; preds = %184, %25
  %29 = load i32, ptr %9, align 4, !tbaa !9
  %30 = icmp sle i32 %29, 5
  br i1 %30, label %36, label %31

31:                                               ; preds = %28
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #11
  br label %188

32:                                               ; preds = %1
  %33 = landingpad { ptr, i32 }
          cleanup
  %34 = extractvalue { ptr, i32 } %33, 0
  store ptr %34, ptr %3, align 8
  %35 = extractvalue { ptr, i32 } %33, 1
  store i32 %35, ptr %4, align 4
  call void @_ZdlPvm(ptr noundef %24, i64 noundef 112) #12
  br label %235

36:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #11
  %37 = load i32, ptr %9, align 4, !tbaa !9
  %38 = srem i32 %37, 2
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %40, label %46

40:                                               ; preds = %36
  %41 = load i32, ptr %9, align 4, !tbaa !9
  %42 = sdiv i32 %41, 2
  %43 = sitofp i32 %42 to double
  %44 = fsub double 5.000000e-01, %43
  %45 = fptrunc double %44 to float
  store float %45, ptr %11, align 4, !tbaa !13
  br label %51

46:                                               ; preds = %36
  %47 = load i32, ptr %9, align 4, !tbaa !9
  %48 = sdiv i32 %47, 2
  %49 = sub nsw i32 0, %48
  %50 = sitofp i32 %49 to float
  store float %50, ptr %11, align 4, !tbaa !13
  br label %51

51:                                               ; preds = %46, %40
  br label %52

52:                                               ; preds = %180, %51
  %53 = load float, ptr %11, align 4, !tbaa !13
  %54 = load i32, ptr %9, align 4, !tbaa !9
  %55 = sitofp i32 %54 to float
  %56 = fdiv float %55, 2.000000e+00
  %57 = fcmp olt float %53, %56
  br i1 %57, label %58, label %183

58:                                               ; preds = %52
  %59 = load i32, ptr %5, align 4, !tbaa !9
  %60 = icmp eq i32 %59, 4
  br i1 %60, label %61, label %71

61:                                               ; preds = %58
  %62 = getelementptr inbounds %class.GameScene, ptr %23, i32 0, i32 7
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #11
  %63 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 64) #10
  %64 = getelementptr inbounds %class.GameScene, ptr %23, i32 0, i32 11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 8 %64, i64 8, i1 false), !tbaa.struct !15
  %65 = load <2 x float>, ptr %13, align 4
  invoke void @_ZN4BallC2Ei7Vector2(ptr noundef nonnull align 8 dereferenceable(64) %63, i32 noundef 8, <2 x float> %65)
          to label %66 unwind label %67

66:                                               ; preds = %61
  store ptr %63, ptr %12, align 8, !tbaa !5
  call void @_ZNSt7__cxx114listIP4BallSaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %62, ptr noundef nonnull align 8 dereferenceable(8) %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #11
  br label %138

67:                                               ; preds = %61
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %3, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %4, align 4
  call void @_ZdlPvm(ptr noundef %63, i64 noundef 64) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #11
  br label %187

71:                                               ; preds = %58
  br label %72

72:                                               ; preds = %120, %71
  store i8 0, ptr %8, align 1, !tbaa !11
  %73 = load i32, ptr %5, align 4, !tbaa !9
  %74 = icmp eq i32 %73, 0
  br i1 %74, label %93, label %75

75:                                               ; preds = %72
  %76 = load i32, ptr %5, align 4, !tbaa !9
  %77 = icmp eq i32 %76, 1
  br i1 %77, label %93, label %78

78:                                               ; preds = %75
  %79 = load i32, ptr %5, align 4, !tbaa !9
  %80 = icmp eq i32 %79, 5
  br i1 %80, label %93, label %81

81:                                               ; preds = %78
  %82 = load i32, ptr %5, align 4, !tbaa !9
  %83 = icmp eq i32 %82, 6
  br i1 %83, label %93, label %84

84:                                               ; preds = %81
  %85 = load i32, ptr %5, align 4, !tbaa !9
  %86 = icmp eq i32 %85, 8
  br i1 %86, label %93, label %87

87:                                               ; preds = %84
  %88 = load i32, ptr %5, align 4, !tbaa !9
  %89 = icmp eq i32 %88, 12
  br i1 %89, label %93, label %90

90:                                               ; preds = %87
  %91 = load i32, ptr %5, align 4, !tbaa !9
  %92 = icmp eq i32 %91, 14
  br i1 %92, label %93, label %97

93:                                               ; preds = %90, %87, %84, %81, %78, %75, %72
  %94 = call i32 @rand() #11
  %95 = srem i32 %94, 7
  %96 = add nsw i32 %95, 9
  store i32 %96, ptr %6, align 4, !tbaa !9
  br label %101

97:                                               ; preds = %90
  %98 = call i32 @rand() #11
  %99 = srem i32 %98, 7
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %6, align 4, !tbaa !9
  br label %101

101:                                              ; preds = %97, %93
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #11
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %102

102:                                              ; preds = %116, %101
  %103 = load i32, ptr %14, align 4, !tbaa !9
  %104 = load i32, ptr %5, align 4, !tbaa !9
  %105 = icmp slt i32 %103, %104
  br i1 %105, label %107, label %106

106:                                              ; preds = %102
  store i32 10, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #11
  br label %119

107:                                              ; preds = %102
  %108 = load i32, ptr %14, align 4, !tbaa !9
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [20 x i32], ptr %7, i64 0, i64 %109
  %111 = load i32, ptr %110, align 4, !tbaa !9
  %112 = load i32, ptr %6, align 4, !tbaa !9
  %113 = icmp eq i32 %111, %112
  br i1 %113, label %114, label %115

114:                                              ; preds = %107
  store i8 1, ptr %8, align 1, !tbaa !11
  br label %115

115:                                              ; preds = %114, %107
  br label %116

116:                                              ; preds = %115
  %117 = load i32, ptr %14, align 4, !tbaa !9
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %14, align 4, !tbaa !9
  br label %102, !llvm.loop !16

119:                                              ; preds = %106
  br label %120

120:                                              ; preds = %119
  %121 = load i8, ptr %8, align 1, !tbaa !11, !range !18, !noundef !19
  %122 = trunc i8 %121 to i1
  br i1 %122, label %72, label %123, !llvm.loop !20

123:                                              ; preds = %120
  %124 = getelementptr inbounds %class.GameScene, ptr %23, i32 0, i32 7
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #11
  %125 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 64) #10
  %126 = load i32, ptr %6, align 4, !tbaa !9
  %127 = getelementptr inbounds %class.GameScene, ptr %23, i32 0, i32 11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 8 %127, i64 8, i1 false), !tbaa.struct !15
  %128 = load <2 x float>, ptr %16, align 4
  invoke void @_ZN4BallC2Ei7Vector2(ptr noundef nonnull align 8 dereferenceable(64) %125, i32 noundef %126, <2 x float> %128)
          to label %129 unwind label %134

129:                                              ; preds = %123
  store ptr %125, ptr %15, align 8, !tbaa !5
  call void @_ZNSt7__cxx114listIP4BallSaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %124, ptr noundef nonnull align 8 dereferenceable(8) %15)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #11
  %130 = load i32, ptr %6, align 4, !tbaa !9
  %131 = load i32, ptr %5, align 4, !tbaa !9
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [20 x i32], ptr %7, i64 0, i64 %132
  store i32 %130, ptr %133, align 4, !tbaa !9
  br label %138

134:                                              ; preds = %123
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %3, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %4, align 4
  call void @_ZdlPvm(ptr noundef %125, i64 noundef 64) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #11
  br label %187

138:                                              ; preds = %129, %66
  %139 = load i32, ptr %5, align 4, !tbaa !9
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #11
  %141 = getelementptr inbounds %class.GameScene, ptr %23, i32 0, i32 7
  %142 = call ptr @_ZNSt7__cxx114listIP4BallSaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %141) #11
  %143 = getelementptr inbounds %"struct.std::_List_iterator", ptr %18, i32 0, i32 0
  store ptr %142, ptr %143, align 8
  %144 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt14_List_iteratorIP4BallEmmEv(ptr noundef nonnull align 8 dereferenceable(8) %18) #11
  %145 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14_List_iteratorIP4BallEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %144) #11
  %146 = load ptr, ptr %145, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #11
  store ptr %146, ptr %17, align 8, !tbaa !5
  %147 = load ptr, ptr %17, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.Vector2, ptr %19, i32 0, i32 0
  %149 = getelementptr inbounds %class.GameScene, ptr %23, i32 0, i32 11
  %150 = getelementptr inbounds %struct.Vector2, ptr %149, i32 0, i32 0
  %151 = load float, ptr %150, align 8, !tbaa !21
  %152 = load ptr, ptr %17, align 8, !tbaa !5
  %153 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %152)
  %154 = fdiv float %153, 2.000000e+00
  %155 = fsub float %151, %154
  %156 = load ptr, ptr %17, align 8, !tbaa !5
  %157 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %156)
  %158 = load i32, ptr %9, align 4, !tbaa !9
  %159 = sub nsw i32 %158, 1
  %160 = sitofp i32 %159 to float
  %161 = call float @llvm.fmuladd.f32(float %157, float %160, float %155)
  %162 = load ptr, ptr %17, align 8, !tbaa !5
  %163 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %162)
  %164 = fneg float %163
  %165 = call float @llvm.fmuladd.f32(float %164, float 2.000000e+00, float %161)
  store float %165, ptr %148, align 4, !tbaa !32
  %166 = getelementptr inbounds %struct.Vector2, ptr %19, i32 0, i32 1
  %167 = getelementptr inbounds %class.GameScene, ptr %23, i32 0, i32 11
  %168 = getelementptr inbounds %struct.Vector2, ptr %167, i32 0, i32 1
  %169 = load float, ptr %168, align 4, !tbaa !33
  %170 = load ptr, ptr %17, align 8, !tbaa !5
  %171 = call noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %170)
  %172 = fdiv float %171, 2.000000e+00
  %173 = fsub float %169, %172
  %174 = load float, ptr %11, align 4, !tbaa !13
  %175 = load ptr, ptr %17, align 8, !tbaa !5
  %176 = call noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %175)
  %177 = call float @llvm.fmuladd.f32(float %174, float %176, float %173)
  store float %177, ptr %166, align 4, !tbaa !34
  %178 = load <2 x float>, ptr %19, align 4
  call void @_ZN4Ball11SetPositionE7Vector2(ptr noundef nonnull align 8 dereferenceable(64) %147, <2 x float> %178)
  %179 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN4Ball18DisablePhysicsBodyEv(ptr noundef nonnull align 8 dereferenceable(64) %179)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #11
  br label %180

180:                                              ; preds = %138
  %181 = load float, ptr %11, align 4, !tbaa !13
  %182 = fadd float %181, 1.000000e+00
  store float %182, ptr %11, align 4, !tbaa !13
  br label %52, !llvm.loop !35

183:                                              ; preds = %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #11
  br label %184

184:                                              ; preds = %183
  %185 = load i32, ptr %9, align 4, !tbaa !9
  %186 = add nsw i32 %185, 1
  store i32 %186, ptr %9, align 4, !tbaa !9
  br label %28, !llvm.loop !36

187:                                              ; preds = %134, %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #11
  br label %234

188:                                              ; preds = %31
  %189 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 64) #10
  %190 = getelementptr inbounds %class.GameScene, ptr %23, i32 0, i32 12
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 8 %190, i64 8, i1 false), !tbaa.struct !15
  %191 = load <2 x float>, ptr %20, align 4
  invoke void @_ZN4BallC2Ei7Vector2(ptr noundef nonnull align 8 dereferenceable(64) %189, i32 noundef 0, <2 x float> %191)
          to label %192 unwind label %222

192:                                              ; preds = %188
  %193 = getelementptr inbounds %class.GameScene, ptr %23, i32 0, i32 8
  store ptr %189, ptr %193, align 8, !tbaa !37
  %194 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 64) #10
  %195 = getelementptr inbounds %class.GameScene, ptr %23, i32 0, i32 8
  %196 = load ptr, ptr %195, align 8, !tbaa !37
  %197 = invoke <2 x float> @_ZN4Ball11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(64) %196)
          to label %198 unwind label %226

198:                                              ; preds = %192
  store <2 x float> %197, ptr %21, align 4
  %199 = load <2 x float>, ptr %21, align 4
  invoke void @_ZN5StickC2E7Vector2(ptr noundef nonnull align 8 dereferenceable(61) %194, <2 x float> %199)
          to label %200 unwind label %226

200:                                              ; preds = %198
  %201 = getelementptr inbounds %class.GameScene, ptr %23, i32 0, i32 9
  store ptr %194, ptr %201, align 8, !tbaa !38
  %202 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #10
  invoke void @_ZN3HUDC2Ev(ptr noundef nonnull align 8 dereferenceable(38) %202)
          to label %203 unwind label %230

203:                                              ; preds = %200
  %204 = getelementptr inbounds %class.GameScene, ptr %23, i32 0, i32 10
  store ptr %202, ptr %204, align 8, !tbaa !39
  %205 = getelementptr inbounds %class.GameScene, ptr %23, i32 0, i32 8
  %206 = load ptr, ptr %205, align 8, !tbaa !37
  %207 = getelementptr inbounds %struct.Vector2, ptr %22, i32 0, i32 0
  %208 = getelementptr inbounds %class.GameScene, ptr %23, i32 0, i32 8
  %209 = load ptr, ptr %208, align 8, !tbaa !37
  %210 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %209)
  %211 = fdiv float %210, 2.000000e+00
  %212 = fsub float 3.500000e+02, %211
  store float %212, ptr %207, align 4, !tbaa !32
  %213 = getelementptr inbounds %struct.Vector2, ptr %22, i32 0, i32 1
  %214 = getelementptr inbounds %class.GameScene, ptr %23, i32 0, i32 8
  %215 = load ptr, ptr %214, align 8, !tbaa !37
  %216 = call noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %215)
  %217 = fdiv float %216, 2.000000e+00
  %218 = fsub float 3.500000e+02, %217
  store float %218, ptr %213, align 4, !tbaa !34
  %219 = load <2 x float>, ptr %22, align 4
  call void @_ZN4Ball11SetPositionE7Vector2(ptr noundef nonnull align 8 dereferenceable(64) %206, <2 x float> %219)
  %220 = getelementptr inbounds %class.GameScene, ptr %23, i32 0, i32 8
  %221 = load ptr, ptr %220, align 8, !tbaa !37
  call void @_ZN4Ball18DisablePhysicsBodyEv(ptr noundef nonnull align 8 dereferenceable(64) %221)
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #11
  call void @llvm.lifetime.end.p0(i64 80, ptr %7) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #11
  ret void

222:                                              ; preds = %188
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %3, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %4, align 4
  call void @_ZdlPvm(ptr noundef %189, i64 noundef 64) #12
  br label %234

226:                                              ; preds = %198, %192
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %3, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %4, align 4
  call void @_ZdlPvm(ptr noundef %194, i64 noundef 64) #12
  br label %234

230:                                              ; preds = %200
  %231 = landingpad { ptr, i32 }
          cleanup
  %232 = extractvalue { ptr, i32 } %231, 0
  store ptr %232, ptr %3, align 8
  %233 = extractvalue { ptr, i32 } %231, 1
  store i32 %233, ptr %4, align 4
  call void @_ZdlPvm(ptr noundef %202, i64 noundef 40) #12
  br label %234

234:                                              ; preds = %230, %226, %222, %187
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #11
  call void @llvm.lifetime.end.p0(i64 80, ptr %7) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #11
  br label %235

235:                                              ; preds = %234, %32
  %236 = load ptr, ptr %3, align 8
  %237 = load i32, ptr %4, align 4
  %238 = insertvalue { ptr, i32 } poison, ptr %236, 0
  %239 = insertvalue { ptr, i32 } %238, i32 %237, 1
  resume { ptr, i32 } %239
}

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5TableC2Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #2

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

; Function Attrs: nounwind
declare void @srand(i32 noundef) #4

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx114listIP4BallSaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #5 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4BallC2Ei7Vector2(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, <2 x float>) unnamed_addr #0 align 2

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

; Function Attrs: nounwind
declare i32 @rand() #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt14_List_iteratorIP4BallEmmEv(ptr noundef nonnull align 8 dereferenceable(8)) #7 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)) #7 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5StickC2E7Vector2(ptr noundef nonnull align 8 dereferenceable(61), <2 x float>) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3HUDC2Ev(ptr noundef nonnull align 8 dereferenceable(38)) unnamed_addr #5 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{i64 0, i64 4, !13, i64 4, i64 4, !13}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = distinct !{!20, !17}
!21 = !{!22, !14, i64 80}
!22 = !{!"_ZTS9GameScene", !23, i64 0, !24, i64 12, !24, i64 16, !12, i64 20, !12, i64 21, !10, i64 24, !10, i64 28, !25, i64 32, !6, i64 56, !6, i64 64, !6, i64 72, !31, i64 80, !31, i64 88}
!23 = !{!"_ZTSN15DrawableManager8DrawableE", !10, i64 8}
!24 = !{!"_ZTS4Turn", !7, i64 0}
!25 = !{!"_ZTSNSt7__cxx114listIP4BallSaIS2_EEE", !26, i64 0}
!26 = !{!"_ZTSNSt7__cxx1110_List_baseIP4BallSaIS2_EEE", !27, i64 0}
!27 = !{!"_ZTSNSt7__cxx1110_List_baseIP4BallSaIS2_EE10_List_implE", !28, i64 0}
!28 = !{!"_ZTSNSt8__detail17_List_node_headerE", !29, i64 0, !30, i64 16}
!29 = !{!"_ZTSNSt8__detail15_List_node_baseE", !6, i64 0, !6, i64 8}
!30 = !{!"long", !7, i64 0}
!31 = !{!"_ZTS7Vector2", !14, i64 0, !14, i64 4}
!32 = !{!31, !14, i64 0}
!33 = !{!22, !14, i64 84}
!34 = !{!31, !14, i64 4}
!35 = distinct !{!35, !17}
!36 = distinct !{!36, !17}
!37 = !{!22, !6, i64 56}
!38 = !{!22, !6, i64 64}
!39 = !{!22, !6, i64 72}


; 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.std::_List_iterator" = type { ptr }

@switch.table._ZN9GameScene6CreateEv = private unnamed_addr constant [15 x i32] [i32 9, i32 9, i32 1, i32 1, i32 1, i32 9, i32 9, i32 1, i32 9, i32 1, i32 1, i32 1, i32 9, i32 1, i32 9], align 4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9GameScene6CreateEv(ptr noundef nonnull align 8 dereferenceable(96) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca [20 x i32], align 16
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.std::_List_iterator", align 8
  %6 = tail call noalias noundef nonnull dereferenceable(112) ptr @_Znwm(i64 noundef 112) #10
  invoke void @_ZN5TableC2Ev(ptr noundef nonnull align 8 dereferenceable(112) %6)
          to label %7 unwind label %16

7:                                                ; preds = %1
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %2) #11
  %8 = tail call i64 @time(ptr noundef null) #11
  %9 = trunc i64 %8 to i32
  tail call void @srand(i32 noundef %9) #11
  %10 = getelementptr inbounds i8, ptr %0, i64 80
  %11 = getelementptr inbounds i8, ptr %0, i64 32
  %12 = getelementptr inbounds i8, ptr %0, i64 84
  br label %18

13:                                               ; preds = %._crit_edge79
  %14 = call noalias noundef nonnull dereferenceable(64) ptr @_Znwm(i64 noundef 64) #10
  %15 = getelementptr inbounds i8, ptr %0, i64 88
  %.sroa.014.0.copyload = load <2 x float>, ptr %15, align 8
  invoke void @_ZN4BallC2Ei7Vector2(ptr noundef nonnull align 8 dereferenceable(64) %14, i32 noundef 0, <2 x float> %.sroa.014.0.copyload)
          to label %97 unwind label %116

16:                                               ; preds = %1
  %17 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %6, i64 noundef 112) #12
  br label %123

18:                                               ; preds = %7, %._crit_edge79
  %.05882 = phi i32 [ 0, %7 ], [ %.159.lcssa, %._crit_edge79 ]
  %.06681 = phi i32 [ 1, %7 ], [ %96, %._crit_edge79 ]
  %19 = and i32 %.06681, 1
  %20 = icmp eq i32 %19, 0
  %21 = lshr i32 %.06681, 1
  br i1 %20, label %22, label %26

22:                                               ; preds = %18
  %23 = uitofp nneg i32 %21 to double
  %24 = fsub double 5.000000e-01, %23
  %25 = fptrunc double %24 to float
  br label %29

26:                                               ; preds = %18
  %27 = sub nsw i32 0, %21
  %28 = sitofp i32 %27 to float
  br label %29

29:                                               ; preds = %26, %22
  %.064 = phi float [ %25, %22 ], [ %28, %26 ]
  %30 = uitofp nneg i32 %.06681 to float
  %31 = fmul float %30, 5.000000e-01
  %32 = fcmp olt float %.064, %31
  br i1 %32, label %.lr.ph78, label %._crit_edge79

.lr.ph78:                                         ; preds = %29
  %33 = add nsw i32 %.06681, -1
  %34 = sitofp i32 %33 to float
  %35 = sext i32 %.05882 to i64
  br label %36

36:                                               ; preds = %.lr.ph78, %69
  %indvar = phi i32 [ 0, %.lr.ph78 ], [ %indvar.next, %69 ]
  %indvars.iv85 = phi i64 [ %35, %.lr.ph78 ], [ %indvars.iv.next86, %69 ]
  %.16575 = phi float [ %.064, %.lr.ph78 ], [ %93, %69 ]
  %37 = add i32 %.05882, %indvar
  %38 = zext i32 %37 to i64
  %39 = trunc nsw i64 %indvars.iv85 to i32
  switch i32 %39, label %.loopexit [
    i32 4, label %40
    i32 14, label %.preheader
    i32 12, label %.preheader
    i32 8, label %.preheader
    i32 6, label %.preheader
    i32 5, label %.preheader
    i32 1, label %.preheader
    i32 0, label %.preheader
  ]

40:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #11
  %41 = call noalias noundef nonnull dereferenceable(64) ptr @_Znwm(i64 noundef 64) #10
  %.sroa.026.0.copyload = load <2 x float>, ptr %10, align 8
  invoke void @_ZN4BallC2Ei7Vector2(ptr noundef nonnull align 8 dereferenceable(64) %41, i32 noundef 8, <2 x float> %.sroa.026.0.copyload)
          to label %42 unwind label %43

42:                                               ; preds = %40
  store ptr %41, ptr %3, align 8, !tbaa !5
  call void @_ZNSt7__cxx114listIP4BallSaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #11
  br label %69

43:                                               ; preds = %40
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %41, i64 noundef 64) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #11
  br label %122

45:                                               ; preds = %._crit_edge
  br i1 %47, label %switch.lookup, label %.loopexit

.loopexit:                                        ; preds = %45, %36
  br label %.preheader

.preheader:                                       ; preds = %.loopexit, %36, %36, %36, %36, %36, %36, %36
  %.sink90.ph = phi i32 [ 9, %36 ], [ 9, %36 ], [ 9, %36 ], [ 9, %36 ], [ 9, %36 ], [ 9, %36 ], [ 9, %36 ], [ 1, %.loopexit ]
  %46 = icmp sgt i64 %indvars.iv85, 0
  %wide.trip.count = and i64 %indvars.iv85, 4294967295
  %min.iters.check = icmp ult i32 %37, 8
  %n.vec = and i64 %38, 4294967288
  %cmp.n = icmp eq i64 %n.vec, %38
  %47 = icmp ult i64 %indvars.iv85, 15
  %switch.gep = getelementptr inbounds [15 x i32], ptr @switch.table._ZN9GameScene6CreateEv, i64 0, i64 %indvars.iv85
  br label %48

switch.lookup:                                    ; preds = %45
  %switch.load = load i32, ptr %switch.gep, align 4
  br label %48

48:                                               ; preds = %.preheader, %switch.lookup
  %.sink90 = phi i32 [ %switch.load, %switch.lookup ], [ %.sink90.ph, %.preheader ]
  %49 = call i32 @rand() #11
  %50 = srem i32 %49, 7
  %51 = add nsw i32 %50, %.sink90
  br i1 %46, label %.lr.ph.preheader, label %.critedge

.lr.ph.preheader:                                 ; preds = %48
  br i1 %min.iters.check, label %.lr.ph.preheader95, label %vector.ph

.lr.ph.preheader95:                               ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  %.06273.ph = phi i1 [ false, %.lr.ph.preheader ], [ %60, %middle.block ]
  br label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %51, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i1> [ zeroinitializer, %vector.ph ], [ %56, %vector.body ]
  %vec.phi93 = phi <4 x i1> [ zeroinitializer, %vector.ph ], [ %57, %vector.body ]
  %52 = getelementptr inbounds [20 x i32], ptr %2, i64 0, i64 %index
  %53 = getelementptr inbounds i8, ptr %52, i64 16
  %wide.load = load <4 x i32>, ptr %52, align 16, !tbaa !9
  %wide.load94 = load <4 x i32>, ptr %53, align 16, !tbaa !9
  %54 = icmp eq <4 x i32> %wide.load, %broadcast.splat
  %55 = icmp eq <4 x i32> %wide.load94, %broadcast.splat
  %56 = or <4 x i1> %vec.phi, %54
  %57 = or <4 x i1> %vec.phi93, %55
  %index.next = add nuw i64 %index, 8
  %58 = icmp eq i64 %index.next, %n.vec
  br i1 %58, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %bin.rdx = or <4 x i1> %57, %56
  %bin.rdx.fr = freeze <4 x i1> %bin.rdx
  %59 = bitcast <4 x i1> %bin.rdx.fr to i4
  %60 = icmp ne i4 %59, 0
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader95

._crit_edge:                                      ; preds = %.lr.ph, %middle.block
  %spec.select.lcssa = phi i1 [ %60, %middle.block ], [ %spec.select, %.lr.ph ]
  br i1 %spec.select.lcssa, label %45, label %.critedge, !llvm.loop !15

.lr.ph:                                           ; preds = %.lr.ph.preheader95, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader95 ]
  %.06273 = phi i1 [ %spec.select, %.lr.ph ], [ %.06273.ph, %.lr.ph.preheader95 ]
  %61 = getelementptr inbounds [20 x i32], ptr %2, i64 0, i64 %indvars.iv
  %62 = load i32, ptr %61, align 4, !tbaa !9
  %63 = icmp eq i32 %62, %51
  %spec.select = select i1 %63, i1 true, i1 %.06273
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !16

.critedge:                                        ; preds = %48, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #11
  %64 = call noalias noundef nonnull dereferenceable(64) ptr @_Znwm(i64 noundef 64) #10
  %.sroa.023.0.copyload = load <2 x float>, ptr %10, align 8
  invoke void @_ZN4BallC2Ei7Vector2(ptr noundef nonnull align 8 dereferenceable(64) %64, i32 noundef %51, <2 x float> %.sroa.023.0.copyload)
          to label %65 unwind label %67

65:                                               ; preds = %.critedge
  store ptr %64, ptr %4, align 8, !tbaa !5
  call void @_ZNSt7__cxx114listIP4BallSaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #11
  %66 = getelementptr inbounds [20 x i32], ptr %2, i64 0, i64 %indvars.iv85
  store i32 %51, ptr %66, align 4, !tbaa !9
  br label %69

67:                                               ; preds = %.critedge
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %64, i64 noundef 64) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #11
  br label %122

69:                                               ; preds = %65, %42
  %indvars.iv.next86 = add nsw i64 %indvars.iv85, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #11
  %70 = call ptr @_ZNSt7__cxx114listIP4BallSaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #11
  store ptr %70, ptr %5, align 8
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt14_List_iteratorIP4BallEmmEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #11
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt14_List_iteratorIP4BallEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %71) #11
  %73 = load ptr, ptr %72, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #11
  %74 = load float, ptr %10, align 8, !tbaa !17
  %75 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %73)
  %76 = fmul float %75, 5.000000e-01
  %77 = fsub float %74, %76
  %78 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %73)
  %79 = call float @llvm.fmuladd.f32(float %78, float %34, float %77)
  %80 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %73)
  %81 = fneg float %80
  %82 = load float, ptr %12, align 4, !tbaa !30
  %83 = call noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %73)
  %84 = fmul float %83, 5.000000e-01
  %85 = fsub float %82, %84
  %86 = call noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %73)
  %87 = insertelement <2 x float> poison, float %81, i64 0
  %88 = insertelement <2 x float> %87, float %.16575, i64 1
  %89 = insertelement <2 x float> <float 2.000000e+00, float poison>, float %86, i64 1
  %90 = insertelement <2 x float> poison, float %79, i64 0
  %91 = insertelement <2 x float> %90, float %85, i64 1
  %92 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %88, <2 x float> %89, <2 x float> %91)
  call void @_ZN4Ball11SetPositionE7Vector2(ptr noundef nonnull align 8 dereferenceable(64) %73, <2 x float> %92)
  call void @_ZN4Ball18DisablePhysicsBodyEv(ptr noundef nonnull align 8 dereferenceable(64) %73)
  %93 = fadd float %.16575, 1.000000e+00
  %94 = fcmp olt float %93, %31
  %indvar.next = add i32 %indvar, 1
  br i1 %94, label %36, label %._crit_edge79.loopexit, !llvm.loop !31

._crit_edge79.loopexit:                           ; preds = %69
  %95 = trunc nsw i64 %indvars.iv.next86 to i32
  br label %._crit_edge79

._crit_edge79:                                    ; preds = %._crit_edge79.loopexit, %29
  %.159.lcssa = phi i32 [ %.05882, %29 ], [ %95, %._crit_edge79.loopexit ]
  %96 = add nuw nsw i32 %.06681, 1
  %exitcond88.not = icmp eq i32 %96, 6
  br i1 %exitcond88.not, label %13, label %18, !llvm.loop !32

97:                                               ; preds = %13
  %98 = getelementptr inbounds i8, ptr %0, i64 56
  store ptr %14, ptr %98, align 8, !tbaa !33
  %99 = call noalias noundef nonnull dereferenceable(64) ptr @_Znwm(i64 noundef 64) #10
  %100 = invoke <2 x float> @_ZN4Ball11GetPositionEv(ptr noundef nonnull align 8 dereferenceable(64) %14)
          to label %101 unwind label %118

101:                                              ; preds = %97
  invoke void @_ZN5StickC2E7Vector2(ptr noundef nonnull align 8 dereferenceable(61) %99, <2 x float> %100)
          to label %102 unwind label %118

102:                                              ; preds = %101
  %103 = getelementptr inbounds i8, ptr %0, i64 64
  store ptr %99, ptr %103, align 8, !tbaa !34
  %104 = call noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #10
  invoke void @_ZN3HUDC2Ev(ptr noundef nonnull align 8 dereferenceable(38) %104)
          to label %105 unwind label %120

105:                                              ; preds = %102
  %106 = getelementptr inbounds i8, ptr %0, i64 72
  store ptr %104, ptr %106, align 8, !tbaa !35
  %107 = load ptr, ptr %98, align 8, !tbaa !33
  %108 = call noundef float @_ZN6Sprite8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(48) %107)
  %109 = load ptr, ptr %98, align 8, !tbaa !33
  %110 = call noundef float @_ZN6Sprite9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(48) %109)
  %111 = insertelement <2 x float> poison, float %108, i64 0
  %112 = insertelement <2 x float> %111, float %110, i64 1
  %113 = fmul <2 x float> %112, <float 5.000000e-01, float 5.000000e-01>
  %114 = fsub <2 x float> <float 3.500000e+02, float 3.500000e+02>, %113
  call void @_ZN4Ball11SetPositionE7Vector2(ptr noundef nonnull align 8 dereferenceable(64) %107, <2 x float> %114)
  %115 = load ptr, ptr %98, align 8, !tbaa !33
  call void @_ZN4Ball18DisablePhysicsBodyEv(ptr noundef nonnull align 8 dereferenceable(64) %115)
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %2) #11
  ret void

116:                                              ; preds = %13
  %117 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %14, i64 noundef 64) #12
  br label %122

118:                                              ; preds = %101, %97
  %119 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %99, i64 noundef 64) #12
  br label %122

120:                                              ; preds = %102
  %121 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %104, i64 noundef 40) #12
  br label %122

122:                                              ; preds = %43, %67, %120, %118, %116
  %.pn.pn = phi { ptr, i32 } [ %121, %120 ], [ %119, %118 ], [ %117, %116 ], [ %44, %43 ], [ %68, %67 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %2) #11
  br label %123

123:                                              ; preds = %122, %16
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %122 ], [ %17, %16 ]
  resume { ptr, i32 } %.pn.pn.pn
}

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5TableC2Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #4

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx114listIP4BallSaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4BallC2Ei7Vector2(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, <2 x float>) unnamed_addr #0 align 2

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

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt14_List_iteratorIP4BallEmmEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6 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 #6 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5StickC2E7Vector2(ptr noundef nonnull align 8 dereferenceable(61), <2 x float>) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3HUDC2Ev(ptr noundef nonnull align 8 dereferenceable(38)) unnamed_addr #5 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12, !13, !14}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12, !14, !13}
!17 = !{!18, !29, i64 80}
!18 = !{!"_ZTS9GameScene", !19, i64 0, !20, i64 12, !20, i64 16, !21, i64 20, !21, i64 21, !10, i64 24, !10, i64 28, !22, i64 32, !6, i64 56, !6, i64 64, !6, i64 72, !28, i64 80, !28, i64 88}
!19 = !{!"_ZTSN15DrawableManager8DrawableE", !10, i64 8}
!20 = !{!"_ZTS4Turn", !7, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{!"_ZTSNSt7__cxx114listIP4BallSaIS2_EEE", !23, i64 0}
!23 = !{!"_ZTSNSt7__cxx1110_List_baseIP4BallSaIS2_EEE", !24, i64 0}
!24 = !{!"_ZTSNSt7__cxx1110_List_baseIP4BallSaIS2_EE10_List_implE", !25, i64 0}
!25 = !{!"_ZTSNSt8__detail17_List_node_headerE", !26, i64 0, !27, i64 16}
!26 = !{!"_ZTSNSt8__detail15_List_node_baseE", !6, i64 0, !6, i64 8}
!27 = !{!"long", !7, i64 0}
!28 = !{!"_ZTS7Vector2", !29, i64 0, !29, i64 4}
!29 = !{!"float", !7, i64 0}
!30 = !{!18, !29, i64 84}
!31 = distinct !{!31, !12}
!32 = distinct !{!32, !12}
!33 = !{!18, !6, i64 56}
!34 = !{!18, !6, i64 64}
!35 = !{!18, !6, i64 72}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass