; LLVM IR from VTIvanov20/eight-ball-pool :: src (main)

; 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.Rectangle = type { float, float, float, float }
%struct.Vector2 = type { float, float }
%struct.Color = type { i8, i8, i8, i8 }

@_ZL8guiState = external hidden global i32, align 4
@_ZL9guiLocked = external hidden global i8, align 1
@_ZL8guiAlpha = external hidden global float, align 4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @GuiSetStyle(i32 noundef, i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local i32 @GuiGetStyle(i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL16GuiDrawRectangle9Rectanglei5ColorS0_(<2 x float>, <2 x float>, i32 noundef, i32, i32) #4

declare i32 @Fade(i32, float noundef) #5

declare i32 @GetColor(i32 noundef) #5

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

declare zeroext i1 @CheckCollisionPointRec(<2 x float>, <2 x float>, <2 x float>) #5

declare float @GetMouseWheelMove() #5

; Function Attrs: mustprogress uwtable
declare dso_local i32 @GuiScrollBar(<2 x float>, <2 x float>, i32 noundef, i32 noundef, i32 noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL11GuiDrawTextPKc9Rectanglei5Color(ptr noundef, <2 x float>, <2 x float>, i32 noundef, i32) #4

; Function Attrs: mustprogress uwtable
declare hidden { <2 x float>, <2 x float> } @_ZL13GetTextBoundsi9Rectangle(i32 noundef, <2 x float>, <2 x float>) #4

declare zeroext i1 @IsMouseButtonPressed(i32 noundef) #5

; Function Attrs: mustprogress uwtable
define dso_local i32 @GuiListViewEx(<2 x float> %0, <2 x float> %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6) #4 {
  %8 = alloca %struct.Rectangle, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i8, align 1
  %18 = alloca %struct.Rectangle, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca %struct.Vector2, align 4
  %23 = alloca %struct.Vector2, align 4
  %24 = alloca %struct.Rectangle, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca %struct.Vector2, align 4
  %28 = alloca %struct.Rectangle, align 4
  %29 = alloca i32, align 4
  %30 = alloca %struct.Rectangle, align 4
  %31 = alloca %struct.Color, align 1
  %32 = alloca %struct.Color, align 1
  %33 = alloca %struct.Color, align 1
  %34 = alloca i32, align 4
  %35 = alloca %struct.Rectangle, align 4
  %36 = alloca %struct.Color, align 1
  %37 = alloca %struct.Color, align 1
  %38 = alloca %struct.Color, align 1
  %39 = alloca %struct.Color, align 1
  %40 = alloca %struct.Rectangle, align 4
  %41 = alloca %struct.Rectangle, align 4
  %42 = alloca %struct.Color, align 1
  %43 = alloca %struct.Color, align 1
  %44 = alloca %struct.Rectangle, align 4
  %45 = alloca %struct.Color, align 1
  %46 = alloca %struct.Color, align 1
  %47 = alloca %struct.Color, align 1
  %48 = alloca %struct.Color, align 1
  %49 = alloca %struct.Rectangle, align 4
  %50 = alloca %struct.Rectangle, align 4
  %51 = alloca %struct.Color, align 1
  %52 = alloca %struct.Color, align 1
  %53 = alloca %struct.Rectangle, align 4
  %54 = alloca %struct.Color, align 1
  %55 = alloca %struct.Color, align 1
  %56 = alloca %struct.Color, align 1
  %57 = alloca %struct.Color, align 1
  %58 = alloca %struct.Rectangle, align 4
  %59 = alloca %struct.Rectangle, align 4
  %60 = alloca %struct.Color, align 1
  %61 = alloca %struct.Color, align 1
  %62 = alloca %struct.Rectangle, align 4
  %63 = alloca %struct.Rectangle, align 4
  %64 = alloca %struct.Color, align 1
  %65 = alloca %struct.Color, align 1
  %66 = alloca %struct.Rectangle, align 4
  %67 = alloca float, align 4
  %68 = alloca float, align 4
  %69 = alloca i32, align 4
  %70 = alloca i32, align 4
  %71 = alloca %struct.Rectangle, align 4
  %72 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %8, i32 0, i32 0
  store <2 x float> %0, ptr %72, align 4
  %73 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %8, i32 0, i32 1
  store <2 x float> %1, ptr %73, align 4
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  store i32 %6, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %74 = load i32, ptr @_ZL8guiState, align 4, !tbaa !11
  store i32 %74, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  %76 = icmp eq ptr %75, null
  br i1 %76, label %77, label %78

77:                                               ; preds = %7
  br label %81

78:                                               ; preds = %7
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  %80 = load i32, ptr %79, align 4, !tbaa !9
  br label %81

81:                                               ; preds = %78, %77
  %82 = phi i32 [ -1, %77 ], [ %80, %78 ]
  store i32 %82, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %83 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %83, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #6
  store i8 0, ptr %17, align 1, !tbaa !13
  %84 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 16)
  %85 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 17)
  %86 = add nsw i32 %84, %85
  %87 = load i32, ptr %10, align 4, !tbaa !9
  %88 = mul nsw i32 %86, %87
  %89 = sitofp i32 %88 to float
  %90 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 3
  %91 = load float, ptr %90, align 4, !tbaa !15
  %92 = fcmp ogt float %89, %91
  br i1 %92, label %93, label %94

93:                                               ; preds = %81
  store i8 1, ptr %17, align 1, !tbaa !13
  br label %94

94:                                               ; preds = %93, %81
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #6
  call void @llvm.memset.p0.i64(ptr align 4 %18, i8 0, i64 16, i1 false)
  %95 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 0
  %96 = load float, ptr %95, align 4, !tbaa !18
  %97 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 17)
  %98 = sitofp i32 %97 to float
  %99 = fadd float %96, %98
  %100 = getelementptr inbounds %struct.Rectangle, ptr %18, i32 0, i32 0
  store float %99, ptr %100, align 4, !tbaa !18
  %101 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 1
  %102 = load float, ptr %101, align 4, !tbaa !19
  %103 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 17)
  %104 = sitofp i32 %103 to float
  %105 = fadd float %102, %104
  %106 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 12)
  %107 = sitofp i32 %106 to float
  %108 = fadd float %105, %107
  %109 = getelementptr inbounds %struct.Rectangle, ptr %18, i32 0, i32 1
  store float %108, ptr %109, align 4, !tbaa !19
  %110 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 2
  %111 = load float, ptr %110, align 4, !tbaa !20
  %112 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 17)
  %113 = mul nsw i32 2, %112
  %114 = sitofp i32 %113 to float
  %115 = fsub float %111, %114
  %116 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 12)
  %117 = sitofp i32 %116 to float
  %118 = fsub float %115, %117
  %119 = getelementptr inbounds %struct.Rectangle, ptr %18, i32 0, i32 2
  store float %118, ptr %119, align 4, !tbaa !20
  %120 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 16)
  %121 = sitofp i32 %120 to float
  %122 = getelementptr inbounds %struct.Rectangle, ptr %18, i32 0, i32 3
  store float %121, ptr %122, align 4, !tbaa !15
  %123 = load i8, ptr %17, align 1, !tbaa !13, !range !21, !noundef !22
  %124 = trunc i8 %123 to i1
  br i1 %124, label %125, label %131

125:                                              ; preds = %94
  %126 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 18)
  %127 = sitofp i32 %126 to float
  %128 = getelementptr inbounds %struct.Rectangle, ptr %18, i32 0, i32 2
  %129 = load float, ptr %128, align 4, !tbaa !20
  %130 = fsub float %129, %127
  store float %130, ptr %128, align 4, !tbaa !20
  br label %131

131:                                              ; preds = %125, %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %132 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 3
  %133 = load float, ptr %132, align 4, !tbaa !15
  %134 = fptosi float %133 to i32
  %135 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 16)
  %136 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 17)
  %137 = add nsw i32 %135, %136
  %138 = sdiv i32 %134, %137
  store i32 %138, ptr %19, align 4, !tbaa !9
  %139 = load i32, ptr %19, align 4, !tbaa !9
  %140 = load i32, ptr %10, align 4, !tbaa !9
  %141 = icmp sgt i32 %139, %140
  br i1 %141, label %142, label %144

142:                                              ; preds = %131
  %143 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %143, ptr %19, align 4, !tbaa !9
  br label %144

144:                                              ; preds = %142, %131
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %145 = load ptr, ptr %12, align 8, !tbaa !5
  %146 = icmp eq ptr %145, null
  br i1 %146, label %147, label %148

147:                                              ; preds = %144
  br label %151

148:                                              ; preds = %144
  %149 = load ptr, ptr %12, align 8, !tbaa !5
  %150 = load i32, ptr %149, align 4, !tbaa !9
  br label %151

151:                                              ; preds = %148, %147
  %152 = phi i32 [ 0, %147 ], [ %150, %148 ]
  store i32 %152, ptr %20, align 4, !tbaa !9
  %153 = load i32, ptr %20, align 4, !tbaa !9
  %154 = icmp slt i32 %153, 0
  br i1 %154, label %161, label %155

155:                                              ; preds = %151
  %156 = load i32, ptr %20, align 4, !tbaa !9
  %157 = load i32, ptr %10, align 4, !tbaa !9
  %158 = load i32, ptr %19, align 4, !tbaa !9
  %159 = sub nsw i32 %157, %158
  %160 = icmp sgt i32 %156, %159
  br i1 %160, label %161, label %162

161:                                              ; preds = %155, %151
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %162

162:                                              ; preds = %161, %155
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %163 = load i32, ptr %20, align 4, !tbaa !9
  %164 = load i32, ptr %19, align 4, !tbaa !9
  %165 = add nsw i32 %163, %164
  store i32 %165, ptr %21, align 4, !tbaa !9
  %166 = load i32, ptr %14, align 4, !tbaa !11
  %167 = icmp ne i32 %166, 3
  br i1 %167, label %168, label %267

168:                                              ; preds = %162
  %169 = load i8, ptr @_ZL9guiLocked, align 1, !tbaa !13, !range !21, !noundef !22
  %170 = trunc i8 %169 to i1
  br i1 %170, label %267, label %171

171:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %172 = call <2 x float> @GetMousePosition()
  store <2 x float> %172, ptr %22, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %22, i64 8, i1 false), !tbaa.struct !23
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %8, i64 16, i1 false), !tbaa.struct !25
  %173 = load <2 x float>, ptr %23, align 4
  %174 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %24, i32 0, i32 0
  %175 = load <2 x float>, ptr %174, align 4
  %176 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %24, i32 0, i32 1
  %177 = load <2 x float>, ptr %176, align 4
  %178 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %173, <2 x float> %175, <2 x float> %177)
  br i1 %178, label %179, label %256

179:                                              ; preds = %171
  store i32 1, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %180

180:                                              ; preds = %218, %179
  %181 = load i32, ptr %25, align 4, !tbaa !9
  %182 = load i32, ptr %19, align 4, !tbaa !9
  %183 = icmp slt i32 %181, %182
  br i1 %183, label %185, label %184

184:                                              ; preds = %180
  store i32 2, ptr %26, align 4
  br label %221

185:                                              ; preds = %180
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %22, i64 8, i1 false), !tbaa.struct !23
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %18, i64 16, i1 false), !tbaa.struct !25
  %186 = load <2 x float>, ptr %27, align 4
  %187 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %28, i32 0, i32 0
  %188 = load <2 x float>, ptr %187, align 4
  %189 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %28, i32 0, i32 1
  %190 = load <2 x float>, ptr %189, align 4
  %191 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %186, <2 x float> %188, <2 x float> %190)
  br i1 %191, label %192, label %210

192:                                              ; preds = %185
  %193 = load i32, ptr %20, align 4, !tbaa !9
  %194 = load i32, ptr %25, align 4, !tbaa !9
  %195 = add nsw i32 %193, %194
  store i32 %195, ptr %15, align 4, !tbaa !9
  %196 = call zeroext i1 @IsMouseButtonPressed(i32 noundef 0)
  br i1 %196, label %197, label %209

197:                                              ; preds = %192
  %198 = load i32, ptr %16, align 4, !tbaa !9
  %199 = load i32, ptr %20, align 4, !tbaa !9
  %200 = load i32, ptr %25, align 4, !tbaa !9
  %201 = add nsw i32 %199, %200
  %202 = icmp eq i32 %198, %201
  br i1 %202, label %203, label %204

203:                                              ; preds = %197
  store i32 -1, ptr %16, align 4, !tbaa !9
  br label %208

204:                                              ; preds = %197
  %205 = load i32, ptr %20, align 4, !tbaa !9
  %206 = load i32, ptr %25, align 4, !tbaa !9
  %207 = add nsw i32 %205, %206
  store i32 %207, ptr %16, align 4, !tbaa !9
  br label %208

208:                                              ; preds = %204, %203
  br label %209

209:                                              ; preds = %208, %192
  store i32 2, ptr %26, align 4
  br label %221

210:                                              ; preds = %185
  %211 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 16)
  %212 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 17)
  %213 = add nsw i32 %211, %212
  %214 = sitofp i32 %213 to float
  %215 = getelementptr inbounds %struct.Rectangle, ptr %18, i32 0, i32 1
  %216 = load float, ptr %215, align 4, !tbaa !19
  %217 = fadd float %216, %214
  store float %217, ptr %215, align 4, !tbaa !19
  br label %218

218:                                              ; preds = %210
  %219 = load i32, ptr %25, align 4, !tbaa !9
  %220 = add nsw i32 %219, 1
  store i32 %220, ptr %25, align 4, !tbaa !9
  br label %180, !llvm.loop !26

221:                                              ; preds = %209, %184
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %222

222:                                              ; preds = %221
  %223 = load i8, ptr %17, align 1, !tbaa !13, !range !21, !noundef !22
  %224 = trunc i8 %223 to i1
  br i1 %224, label %225, label %255

225:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %226 = call float @GetMouseWheelMove()
  %227 = fptosi float %226 to i32
  store i32 %227, ptr %29, align 4, !tbaa !9
  %228 = load i32, ptr %29, align 4, !tbaa !9
  %229 = load i32, ptr %20, align 4, !tbaa !9
  %230 = sub nsw i32 %229, %228
  store i32 %230, ptr %20, align 4, !tbaa !9
  %231 = load i32, ptr %20, align 4, !tbaa !9
  %232 = icmp slt i32 %231, 0
  br i1 %232, label %233, label %234

233:                                              ; preds = %225
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %245

234:                                              ; preds = %225
  %235 = load i32, ptr %20, align 4, !tbaa !9
  %236 = load i32, ptr %10, align 4, !tbaa !9
  %237 = load i32, ptr %19, align 4, !tbaa !9
  %238 = sub nsw i32 %236, %237
  %239 = icmp sgt i32 %235, %238
  br i1 %239, label %240, label %244

240:                                              ; preds = %234
  %241 = load i32, ptr %10, align 4, !tbaa !9
  %242 = load i32, ptr %19, align 4, !tbaa !9
  %243 = sub nsw i32 %241, %242
  store i32 %243, ptr %20, align 4, !tbaa !9
  br label %244

244:                                              ; preds = %240, %234
  br label %245

245:                                              ; preds = %244, %233
  %246 = load i32, ptr %20, align 4, !tbaa !9
  %247 = load i32, ptr %19, align 4, !tbaa !9
  %248 = add nsw i32 %246, %247
  store i32 %248, ptr %21, align 4, !tbaa !9
  %249 = load i32, ptr %21, align 4, !tbaa !9
  %250 = load i32, ptr %10, align 4, !tbaa !9
  %251 = icmp sgt i32 %249, %250
  br i1 %251, label %252, label %254

252:                                              ; preds = %245
  %253 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %253, ptr %21, align 4, !tbaa !9
  br label %254

254:                                              ; preds = %252, %245
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %255

255:                                              ; preds = %254, %222
  br label %257

256:                                              ; preds = %171
  store i32 -1, ptr %15, align 4, !tbaa !9
  br label %257

257:                                              ; preds = %256, %255
  %258 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 1
  %259 = load float, ptr %258, align 4, !tbaa !19
  %260 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 17)
  %261 = sitofp i32 %260 to float
  %262 = fadd float %259, %261
  %263 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 12)
  %264 = sitofp i32 %263 to float
  %265 = fadd float %262, %264
  %266 = getelementptr inbounds %struct.Rectangle, ptr %18, i32 0, i32 1
  store float %265, ptr %266, align 4, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %267

267:                                              ; preds = %257, %168, %162
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 4 %8, i64 16, i1 false), !tbaa.struct !25
  %268 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 12)
  %269 = load i32, ptr %14, align 4, !tbaa !11
  %270 = mul nsw i32 %269, 3
  %271 = add nsw i32 0, %270
  %272 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef %271)
  %273 = call i32 @GetColor(i32 noundef %272)
  store i32 %273, ptr %32, align 1
  %274 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !24
  %275 = load i32, ptr %32, align 1
  %276 = call i32 @Fade(i32 %275, float noundef %274)
  store i32 %276, ptr %31, align 1
  %277 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 19)
  %278 = call i32 @GetColor(i32 noundef %277)
  store i32 %278, ptr %33, align 1
  %279 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %30, i32 0, i32 0
  %280 = load <2 x float>, ptr %279, align 4
  %281 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %30, i32 0, i32 1
  %282 = load <2 x float>, ptr %281, align 4
  %283 = load i32, ptr %31, align 1
  %284 = load i32, ptr %33, align 1
  call void @_ZL16GuiDrawRectangle9Rectanglei5ColorS0_(<2 x float> %280, <2 x float> %282, i32 noundef %268, i32 %283, i32 %284)
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  store i32 0, ptr %34, align 4, !tbaa !9
  br label %285

285:                                              ; preds = %490, %267
  %286 = load i32, ptr %34, align 4, !tbaa !9
  %287 = load i32, ptr %19, align 4, !tbaa !9
  %288 = icmp slt i32 %286, %287
  br i1 %288, label %289, label %292

289:                                              ; preds = %285
  %290 = load ptr, ptr %9, align 8, !tbaa !5
  %291 = icmp ne ptr %290, null
  br label %292

292:                                              ; preds = %289, %285
  %293 = phi i1 [ false, %285 ], [ %291, %289 ]
  br i1 %293, label %295, label %294

294:                                              ; preds = %292
  store i32 5, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  br label %493

295:                                              ; preds = %292
  %296 = load i32, ptr %14, align 4, !tbaa !11
  %297 = icmp eq i32 %296, 3
  br i1 %297, label %298, label %350

298:                                              ; preds = %295
  %299 = load i32, ptr %20, align 4, !tbaa !9
  %300 = load i32, ptr %34, align 4, !tbaa !9
  %301 = add nsw i32 %299, %300
  %302 = load i32, ptr %16, align 4, !tbaa !9
  %303 = icmp eq i32 %301, %302
  br i1 %303, label %304, label %322

304:                                              ; preds = %298
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 4 %18, i64 16, i1 false), !tbaa.struct !25
  %305 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 12)
  %306 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 9)
  %307 = call i32 @GetColor(i32 noundef %306)
  store i32 %307, ptr %37, align 1
  %308 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !24
  %309 = load i32, ptr %37, align 1
  %310 = call i32 @Fade(i32 %309, float noundef %308)
  store i32 %310, ptr %36, align 1
  %311 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 10)
  %312 = call i32 @GetColor(i32 noundef %311)
  store i32 %312, ptr %39, align 1
  %313 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !24
  %314 = load i32, ptr %39, align 1
  %315 = call i32 @Fade(i32 %314, float noundef %313)
  store i32 %315, ptr %38, align 1
  %316 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %35, i32 0, i32 0
  %317 = load <2 x float>, ptr %316, align 4
  %318 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %35, i32 0, i32 1
  %319 = load <2 x float>, ptr %318, align 4
  %320 = load i32, ptr %36, align 1
  %321 = load i32, ptr %38, align 1
  call void @_ZL16GuiDrawRectangle9Rectanglei5ColorS0_(<2 x float> %317, <2 x float> %319, i32 noundef %305, i32 %320, i32 %321)
  br label %322

322:                                              ; preds = %304, %298
  %323 = load ptr, ptr %9, align 8, !tbaa !5
  %324 = load i32, ptr %20, align 4, !tbaa !9
  %325 = load i32, ptr %34, align 4, !tbaa !9
  %326 = add nsw i32 %324, %325
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds ptr, ptr %323, i64 %327
  %329 = load ptr, ptr %328, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %41, ptr align 4 %18, i64 16, i1 false), !tbaa.struct !25
  %330 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %41, i32 0, i32 0
  %331 = load <2 x float>, ptr %330, align 4
  %332 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %41, i32 0, i32 1
  %333 = load <2 x float>, ptr %332, align 4
  %334 = call { <2 x float>, <2 x float> } @_ZL13GetTextBoundsi9Rectangle(i32 noundef 0, <2 x float> %331, <2 x float> %333)
  %335 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %40, i32 0, i32 0
  %336 = extractvalue { <2 x float>, <2 x float> } %334, 0
  store <2 x float> %336, ptr %335, align 4
  %337 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %40, i32 0, i32 1
  %338 = extractvalue { <2 x float>, <2 x float> } %334, 1
  store <2 x float> %338, ptr %337, align 4
  %339 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 14)
  %340 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 11)
  %341 = call i32 @GetColor(i32 noundef %340)
  store i32 %341, ptr %43, align 1
  %342 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !24
  %343 = load i32, ptr %43, align 1
  %344 = call i32 @Fade(i32 %343, float noundef %342)
  store i32 %344, ptr %42, align 1
  %345 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %40, i32 0, i32 0
  %346 = load <2 x float>, ptr %345, align 4
  %347 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %40, i32 0, i32 1
  %348 = load <2 x float>, ptr %347, align 4
  %349 = load i32, ptr %42, align 1
  call void @_ZL11GuiDrawTextPKc9Rectanglei5Color(ptr noundef %329, <2 x float> %346, <2 x float> %348, i32 noundef %339, i32 %349)
  br label %482

350:                                              ; preds = %295
  %351 = load i32, ptr %20, align 4, !tbaa !9
  %352 = load i32, ptr %34, align 4, !tbaa !9
  %353 = add nsw i32 %351, %352
  %354 = load i32, ptr %16, align 4, !tbaa !9
  %355 = icmp eq i32 %353, %354
  br i1 %355, label %356, label %401

356:                                              ; preds = %350
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %44, ptr align 4 %18, i64 16, i1 false), !tbaa.struct !25
  %357 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 12)
  %358 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 6)
  %359 = call i32 @GetColor(i32 noundef %358)
  store i32 %359, ptr %46, align 1
  %360 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !24
  %361 = load i32, ptr %46, align 1
  %362 = call i32 @Fade(i32 %361, float noundef %360)
  store i32 %362, ptr %45, align 1
  %363 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 7)
  %364 = call i32 @GetColor(i32 noundef %363)
  store i32 %364, ptr %48, align 1
  %365 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !24
  %366 = load i32, ptr %48, align 1
  %367 = call i32 @Fade(i32 %366, float noundef %365)
  store i32 %367, ptr %47, align 1
  %368 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %44, i32 0, i32 0
  %369 = load <2 x float>, ptr %368, align 4
  %370 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %44, i32 0, i32 1
  %371 = load <2 x float>, ptr %370, align 4
  %372 = load i32, ptr %45, align 1
  %373 = load i32, ptr %47, align 1
  call void @_ZL16GuiDrawRectangle9Rectanglei5ColorS0_(<2 x float> %369, <2 x float> %371, i32 noundef %357, i32 %372, i32 %373)
  %374 = load ptr, ptr %9, align 8, !tbaa !5
  %375 = load i32, ptr %20, align 4, !tbaa !9
  %376 = load i32, ptr %34, align 4, !tbaa !9
  %377 = add nsw i32 %375, %376
  %378 = sext i32 %377 to i64
  %379 = getelementptr inbounds ptr, ptr %374, i64 %378
  %380 = load ptr, ptr %379, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %50, ptr align 4 %18, i64 16, i1 false), !tbaa.struct !25
  %381 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %50, i32 0, i32 0
  %382 = load <2 x float>, ptr %381, align 4
  %383 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %50, i32 0, i32 1
  %384 = load <2 x float>, ptr %383, align 4
  %385 = call { <2 x float>, <2 x float> } @_ZL13GetTextBoundsi9Rectangle(i32 noundef 0, <2 x float> %382, <2 x float> %384)
  %386 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %49, i32 0, i32 0
  %387 = extractvalue { <2 x float>, <2 x float> } %385, 0
  store <2 x float> %387, ptr %386, align 4
  %388 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %49, i32 0, i32 1
  %389 = extractvalue { <2 x float>, <2 x float> } %385, 1
  store <2 x float> %389, ptr %388, align 4
  %390 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 14)
  %391 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 8)
  %392 = call i32 @GetColor(i32 noundef %391)
  store i32 %392, ptr %52, align 1
  %393 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !24
  %394 = load i32, ptr %52, align 1
  %395 = call i32 @Fade(i32 %394, float noundef %393)
  store i32 %395, ptr %51, align 1
  %396 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %49, i32 0, i32 0
  %397 = load <2 x float>, ptr %396, align 4
  %398 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %49, i32 0, i32 1
  %399 = load <2 x float>, ptr %398, align 4
  %400 = load i32, ptr %51, align 1
  call void @_ZL11GuiDrawTextPKc9Rectanglei5Color(ptr noundef %380, <2 x float> %397, <2 x float> %399, i32 noundef %390, i32 %400)
  br label %481

401:                                              ; preds = %350
  %402 = load i32, ptr %20, align 4, !tbaa !9
  %403 = load i32, ptr %34, align 4, !tbaa !9
  %404 = add nsw i32 %402, %403
  %405 = load i32, ptr %15, align 4, !tbaa !9
  %406 = icmp eq i32 %404, %405
  br i1 %406, label %407, label %452

407:                                              ; preds = %401
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %53, ptr align 4 %18, i64 16, i1 false), !tbaa.struct !25
  %408 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 12)
  %409 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 3)
  %410 = call i32 @GetColor(i32 noundef %409)
  store i32 %410, ptr %55, align 1
  %411 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !24
  %412 = load i32, ptr %55, align 1
  %413 = call i32 @Fade(i32 %412, float noundef %411)
  store i32 %413, ptr %54, align 1
  %414 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 4)
  %415 = call i32 @GetColor(i32 noundef %414)
  store i32 %415, ptr %57, align 1
  %416 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !24
  %417 = load i32, ptr %57, align 1
  %418 = call i32 @Fade(i32 %417, float noundef %416)
  store i32 %418, ptr %56, align 1
  %419 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %53, i32 0, i32 0
  %420 = load <2 x float>, ptr %419, align 4
  %421 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %53, i32 0, i32 1
  %422 = load <2 x float>, ptr %421, align 4
  %423 = load i32, ptr %54, align 1
  %424 = load i32, ptr %56, align 1
  call void @_ZL16GuiDrawRectangle9Rectanglei5ColorS0_(<2 x float> %420, <2 x float> %422, i32 noundef %408, i32 %423, i32 %424)
  %425 = load ptr, ptr %9, align 8, !tbaa !5
  %426 = load i32, ptr %20, align 4, !tbaa !9
  %427 = load i32, ptr %34, align 4, !tbaa !9
  %428 = add nsw i32 %426, %427
  %429 = sext i32 %428 to i64
  %430 = getelementptr inbounds ptr, ptr %425, i64 %429
  %431 = load ptr, ptr %430, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %59, ptr align 4 %18, i64 16, i1 false), !tbaa.struct !25
  %432 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %59, i32 0, i32 0
  %433 = load <2 x float>, ptr %432, align 4
  %434 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %59, i32 0, i32 1
  %435 = load <2 x float>, ptr %434, align 4
  %436 = call { <2 x float>, <2 x float> } @_ZL13GetTextBoundsi9Rectangle(i32 noundef 0, <2 x float> %433, <2 x float> %435)
  %437 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %58, i32 0, i32 0
  %438 = extractvalue { <2 x float>, <2 x float> } %436, 0
  store <2 x float> %438, ptr %437, align 4
  %439 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %58, i32 0, i32 1
  %440 = extractvalue { <2 x float>, <2 x float> } %436, 1
  store <2 x float> %440, ptr %439, align 4
  %441 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 14)
  %442 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 5)
  %443 = call i32 @GetColor(i32 noundef %442)
  store i32 %443, ptr %61, align 1
  %444 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !24
  %445 = load i32, ptr %61, align 1
  %446 = call i32 @Fade(i32 %445, float noundef %444)
  store i32 %446, ptr %60, align 1
  %447 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %58, i32 0, i32 0
  %448 = load <2 x float>, ptr %447, align 4
  %449 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %58, i32 0, i32 1
  %450 = load <2 x float>, ptr %449, align 4
  %451 = load i32, ptr %60, align 1
  call void @_ZL11GuiDrawTextPKc9Rectanglei5Color(ptr noundef %431, <2 x float> %448, <2 x float> %450, i32 noundef %441, i32 %451)
  br label %480

452:                                              ; preds = %401
  %453 = load ptr, ptr %9, align 8, !tbaa !5
  %454 = load i32, ptr %20, align 4, !tbaa !9
  %455 = load i32, ptr %34, align 4, !tbaa !9
  %456 = add nsw i32 %454, %455
  %457 = sext i32 %456 to i64
  %458 = getelementptr inbounds ptr, ptr %453, i64 %457
  %459 = load ptr, ptr %458, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %63, ptr align 4 %18, i64 16, i1 false), !tbaa.struct !25
  %460 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %63, i32 0, i32 0
  %461 = load <2 x float>, ptr %460, align 4
  %462 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %63, i32 0, i32 1
  %463 = load <2 x float>, ptr %462, align 4
  %464 = call { <2 x float>, <2 x float> } @_ZL13GetTextBoundsi9Rectangle(i32 noundef 0, <2 x float> %461, <2 x float> %463)
  %465 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %62, i32 0, i32 0
  %466 = extractvalue { <2 x float>, <2 x float> } %464, 0
  store <2 x float> %466, ptr %465, align 4
  %467 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %62, i32 0, i32 1
  %468 = extractvalue { <2 x float>, <2 x float> } %464, 1
  store <2 x float> %468, ptr %467, align 4
  %469 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 14)
  %470 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 2)
  %471 = call i32 @GetColor(i32 noundef %470)
  store i32 %471, ptr %65, align 1
  %472 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !24
  %473 = load i32, ptr %65, align 1
  %474 = call i32 @Fade(i32 %473, float noundef %472)
  store i32 %474, ptr %64, align 1
  %475 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %62, i32 0, i32 0
  %476 = load <2 x float>, ptr %475, align 4
  %477 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %62, i32 0, i32 1
  %478 = load <2 x float>, ptr %477, align 4
  %479 = load i32, ptr %64, align 1
  call void @_ZL11GuiDrawTextPKc9Rectanglei5Color(ptr noundef %459, <2 x float> %476, <2 x float> %478, i32 noundef %469, i32 %479)
  br label %480

480:                                              ; preds = %452, %407
  br label %481

481:                                              ; preds = %480, %356
  br label %482

482:                                              ; preds = %481, %322
  %483 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 16)
  %484 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 17)
  %485 = add nsw i32 %483, %484
  %486 = sitofp i32 %485 to float
  %487 = getelementptr inbounds %struct.Rectangle, ptr %18, i32 0, i32 1
  %488 = load float, ptr %487, align 4, !tbaa !19
  %489 = fadd float %488, %486
  store float %489, ptr %487, align 4, !tbaa !19
  br label %490

490:                                              ; preds = %482
  %491 = load i32, ptr %34, align 4, !tbaa !9
  %492 = add nsw i32 %491, 1
  store i32 %492, ptr %34, align 4, !tbaa !9
  br label %285, !llvm.loop !28

493:                                              ; preds = %294
  %494 = load i8, ptr %17, align 1, !tbaa !13, !range !21, !noundef !22
  %495 = trunc i8 %494 to i1
  br i1 %495, label %496, label %554

496:                                              ; preds = %493
  call void @llvm.lifetime.start.p0(i64 16, ptr %66) #6
  %497 = getelementptr inbounds %struct.Rectangle, ptr %66, i32 0, i32 0
  %498 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 0
  %499 = load float, ptr %498, align 4, !tbaa !18
  %500 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 2
  %501 = load float, ptr %500, align 4, !tbaa !20
  %502 = fadd float %499, %501
  %503 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 12)
  %504 = sitofp i32 %503 to float
  %505 = fsub float %502, %504
  %506 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 18)
  %507 = sitofp i32 %506 to float
  %508 = fsub float %505, %507
  store float %508, ptr %497, align 4, !tbaa !18
  %509 = getelementptr inbounds %struct.Rectangle, ptr %66, i32 0, i32 1
  %510 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 1
  %511 = load float, ptr %510, align 4, !tbaa !19
  %512 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 12)
  %513 = sitofp i32 %512 to float
  %514 = fadd float %511, %513
  store float %514, ptr %509, align 4, !tbaa !19
  %515 = getelementptr inbounds %struct.Rectangle, ptr %66, i32 0, i32 2
  %516 = call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 18)
  %517 = sitofp i32 %516 to float
  store float %517, ptr %515, align 4, !tbaa !20
  %518 = getelementptr inbounds %struct.Rectangle, ptr %66, i32 0, i32 3
  %519 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 3
  %520 = load float, ptr %519, align 4, !tbaa !15
  %521 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 12)
  %522 = mul nsw i32 2, %521
  %523 = sitofp i32 %522 to float
  %524 = fsub float %520, %523
  store float %524, ptr %518, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %67) #6
  %525 = load i32, ptr %21, align 4, !tbaa !9
  %526 = load i32, ptr %20, align 4, !tbaa !9
  %527 = sub nsw i32 %525, %526
  %528 = sitofp i32 %527 to float
  %529 = load i32, ptr %10, align 4, !tbaa !9
  %530 = sitofp i32 %529 to float
  %531 = fdiv float %528, %530
  store float %531, ptr %67, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %68) #6
  %532 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 3
  %533 = load float, ptr %532, align 4, !tbaa !15
  %534 = load float, ptr %67, align 4, !tbaa !24
  %535 = fmul float %533, %534
  store float %535, ptr %68, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %69) #6
  %536 = call i32 @GuiGetStyle(i32 noundef 14, i32 noundef 19)
  store i32 %536, ptr %69, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %70) #6
  %537 = call i32 @GuiGetStyle(i32 noundef 14, i32 noundef 21)
  store i32 %537, ptr %70, align 4, !tbaa !9
  %538 = load float, ptr %68, align 4, !tbaa !24
  %539 = fptosi float %538 to i32
  call void @GuiSetStyle(i32 noundef 14, i32 noundef 19, i32 noundef %539)
  %540 = load i32, ptr %10, align 4, !tbaa !9
  %541 = load i32, ptr %19, align 4, !tbaa !9
  %542 = sub nsw i32 %540, %541
  call void @GuiSetStyle(i32 noundef 14, i32 noundef 21, i32 noundef %542)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %71, ptr align 4 %66, i64 16, i1 false), !tbaa.struct !25
  %543 = load i32, ptr %20, align 4, !tbaa !9
  %544 = load i32, ptr %10, align 4, !tbaa !9
  %545 = load i32, ptr %19, align 4, !tbaa !9
  %546 = sub nsw i32 %544, %545
  %547 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %71, i32 0, i32 0
  %548 = load <2 x float>, ptr %547, align 4
  %549 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %71, i32 0, i32 1
  %550 = load <2 x float>, ptr %549, align 4
  %551 = call i32 @GuiScrollBar(<2 x float> %548, <2 x float> %550, i32 noundef %543, i32 noundef 0, i32 noundef %546)
  store i32 %551, ptr %20, align 4, !tbaa !9
  %552 = load i32, ptr %70, align 4, !tbaa !9
  call void @GuiSetStyle(i32 noundef 14, i32 noundef 21, i32 noundef %552)
  %553 = load i32, ptr %69, align 4, !tbaa !9
  call void @GuiSetStyle(i32 noundef 14, i32 noundef 19, i32 noundef %553)
  call void @llvm.lifetime.end.p0(i64 4, ptr %70) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %69) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %68) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %66) #6
  br label %554

554:                                              ; preds = %496, %493
  %555 = load ptr, ptr %11, align 8, !tbaa !5
  %556 = icmp ne ptr %555, null
  br i1 %556, label %557, label %560

557:                                              ; preds = %554
  %558 = load i32, ptr %15, align 4, !tbaa !9
  %559 = load ptr, ptr %11, align 8, !tbaa !5
  store i32 %558, ptr %559, align 4, !tbaa !9
  br label %560

560:                                              ; preds = %557, %554
  %561 = load ptr, ptr %12, align 8, !tbaa !5
  %562 = icmp ne ptr %561, null
  br i1 %562, label %563, label %566

563:                                              ; preds = %560
  %564 = load i32, ptr %20, align 4, !tbaa !9
  %565 = load ptr, ptr %12, align 8, !tbaa !5
  store i32 %564, ptr %565, align 4, !tbaa !9
  br label %566

566:                                              ; preds = %563, %560
  %567 = load i32, ptr %16, align 4, !tbaa !9
  store i32 1, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  ret i32 %567
}

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

!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 = !{!"_ZTS15GuiControlState", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!16, !17, i64 12}
!16 = !{!"_ZTS9Rectangle", !17, i64 0, !17, i64 4, !17, i64 8, !17, i64 12}
!17 = !{!"float", !7, i64 0}
!18 = !{!16, !17, i64 0}
!19 = !{!16, !17, i64 4}
!20 = !{!16, !17, i64 8}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{i64 0, i64 4, !24, i64 4, i64 4, !24}
!24 = !{!17, !17, i64 0}
!25 = !{i64 0, i64 4, !24, i64 4, i64 4, !24, i64 8, i64 4, !24, i64 12, i64 4, !24}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}


; 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"

@_ZL8guiState = external hidden local_unnamed_addr global i32, align 4
@_ZL9guiLocked = external hidden local_unnamed_addr global i8, align 1
@_ZL8guiAlpha = external hidden local_unnamed_addr global float, align 4

; Function Attrs: mustprogress uwtable
declare dso_local void @GuiSetStyle(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local i32 @GuiGetStyle(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL16GuiDrawRectangle9Rectanglei5ColorS0_(<2 x float>, <2 x float>, i32 noundef, i32, i32) local_unnamed_addr #1

declare i32 @Fade(i32, float noundef) local_unnamed_addr #2

declare i32 @GetColor(i32 noundef) local_unnamed_addr #2

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

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

declare float @GetMouseWheelMove() local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local i32 @GuiScrollBar(<2 x float>, <2 x float>, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL11GuiDrawTextPKc9Rectanglei5Color(ptr noundef, <2 x float>, <2 x float>, i32 noundef, i32) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden { <2 x float>, <2 x float> } @_ZL13GetTextBoundsi9Rectangle(i32 noundef, <2 x float>, <2 x float>) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @GuiListViewEx(<2 x float> %0, <2 x float> %1, ptr noundef readonly %2, i32 noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6) local_unnamed_addr #1 {
  %8 = load i32, ptr @_ZL8guiState, align 4, !tbaa !5
  %9 = icmp eq ptr %4, null
  br i1 %9, label %12, label %10

10:                                               ; preds = %7
  %11 = load i32, ptr %4, align 4, !tbaa !9
  br label %12

12:                                               ; preds = %7, %10
  %13 = phi i32 [ %11, %10 ], [ -1, %7 ]
  %14 = tail call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 16)
  %15 = tail call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 17)
  %16 = add nsw i32 %15, %14
  %17 = mul nsw i32 %16, %3
  %18 = sitofp i32 %17 to float
  %.sroa.8.12.vec.extract = extractelement <2 x float> %1, i64 1
  %19 = fcmp olt float %.sroa.8.12.vec.extract, %18
  %20 = tail call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 17)
  %.sroa.0174.4.vec.extract = extractelement <2 x float> %0, i64 1
  %21 = tail call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 17)
  %22 = sitofp i32 %21 to float
  %23 = fadd float %.sroa.0174.4.vec.extract, %22
  %24 = tail call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 12)
  %25 = insertelement <2 x i32> poison, i32 %20, i64 0
  %26 = insertelement <2 x i32> %25, i32 %24, i64 1
  %27 = sitofp <2 x i32> %26 to <2 x float>
  %28 = insertelement <2 x float> %0, float %23, i64 1
  %29 = fadd <2 x float> %28, %27
  %.sroa.8.8.vec.extract = extractelement <2 x float> %1, i64 0
  %30 = tail call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 17)
  %31 = shl nsw i32 %30, 1
  %32 = sitofp i32 %31 to float
  %33 = fsub float %.sroa.8.8.vec.extract, %32
  %34 = tail call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 12)
  %35 = sitofp i32 %34 to float
  %36 = fsub float %33, %35
  %.sroa.18.8.vec.insert = insertelement <2 x float> poison, float %36, i64 0
  %37 = tail call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 16)
  %38 = sitofp i32 %37 to float
  %.sroa.18.12.vec.insert = insertelement <2 x float> %.sroa.18.8.vec.insert, float %38, i64 1
  br i1 %19, label %39, label %43

39:                                               ; preds = %12
  %40 = tail call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 18)
  %41 = sitofp i32 %40 to float
  %42 = fsub float %36, %41
  %.sroa.18.8.vec.insert136 = insertelement <2 x float> %.sroa.18.12.vec.insert, float %42, i64 0
  br label %43

43:                                               ; preds = %39, %12
  %.sroa.18.0 = phi <2 x float> [ %.sroa.18.8.vec.insert136, %39 ], [ %.sroa.18.12.vec.insert, %12 ]
  %44 = fptosi float %.sroa.8.12.vec.extract to i32
  %45 = tail call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 16)
  %46 = tail call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 17)
  %47 = add nsw i32 %46, %45
  %48 = sdiv i32 %44, %47
  %spec.select = tail call i32 @llvm.smin.i32(i32 %48, i32 %3)
  %49 = icmp eq ptr %5, null
  br i1 %49, label %52, label %50

50:                                               ; preds = %43
  %51 = load i32, ptr %5, align 4, !tbaa !9
  br label %52

52:                                               ; preds = %43, %50
  %53 = phi i32 [ %51, %50 ], [ 0, %43 ]
  %54 = icmp slt i32 %53, 0
  %55 = sub nsw i32 %3, %spec.select
  %56 = icmp sgt i32 %53, %55
  %or.cond = select i1 %54, i1 true, i1 %56
  %.0200 = select i1 %or.cond, i32 0, i32 %53
  %57 = add nsw i32 %.0200, %spec.select
  %.not = icmp eq i32 %8, 3
  br i1 %.not, label %90, label %58

58:                                               ; preds = %52
  %59 = load i8, ptr @_ZL9guiLocked, align 1, !tbaa !11, !range !13, !noundef !14
  %60 = trunc nuw i8 %59 to i1
  br i1 %60, label %90, label %61

61:                                               ; preds = %58
  %62 = tail call <2 x float> @GetMousePosition()
  %63 = tail call zeroext i1 @CheckCollisionPointRec(<2 x float> %62, <2 x float> %0, <2 x float> %1)
  br i1 %63, label %.preheader, label %83

.preheader:                                       ; preds = %61
  %64 = icmp sgt i32 %spec.select, 0
  br i1 %64, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %.preheader, %70
  %.sroa.0108.0235 = phi <2 x float> [ %.sroa.0108.4.vec.insert119, %70 ], [ %29, %.preheader ]
  %.0207234 = phi i32 [ %76, %70 ], [ 0, %.preheader ]
  %65 = tail call zeroext i1 @CheckCollisionPointRec(<2 x float> %62, <2 x float> %.sroa.0108.0235, <2 x float> %.sroa.18.0)
  br i1 %65, label %66, label %70

66:                                               ; preds = %.lr.ph
  %67 = add nuw nsw i32 %.0207234, %.0200
  %68 = tail call zeroext i1 @IsMouseButtonPressed(i32 noundef 0)
  %69 = icmp eq i32 %67, %6
  %. = select i1 %69, i32 -1, i32 %67
  %.0195 = select i1 %68, i32 %., i32 %6
  br label %.loopexit

70:                                               ; preds = %.lr.ph
  %71 = tail call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 16)
  %72 = tail call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 17)
  %73 = add nsw i32 %72, %71
  %74 = sitofp i32 %73 to float
  %.sroa.0108.4.vec.extract = extractelement <2 x float> %.sroa.0108.0235, i64 1
  %75 = fadd float %.sroa.0108.4.vec.extract, %74
  %.sroa.0108.4.vec.insert119 = insertelement <2 x float> %.sroa.0108.0235, float %75, i64 1
  %76 = add nuw nsw i32 %.0207234, 1
  %exitcond.not = icmp eq i32 %76, %spec.select
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph, !llvm.loop !15

.loopexit:                                        ; preds = %70, %.preheader, %66
  %.sroa.0108.0232 = phi <2 x float> [ %.sroa.0108.0235, %66 ], [ %29, %.preheader ], [ %.sroa.0108.4.vec.insert119, %70 ]
  %.1196 = phi i32 [ %.0195, %66 ], [ %6, %.preheader ], [ %6, %70 ]
  %.0193 = phi i32 [ %67, %66 ], [ %13, %.preheader ], [ %13, %70 ]
  br i1 %19, label %77, label %83

77:                                               ; preds = %.loopexit
  %78 = tail call float @GetMouseWheelMove()
  %79 = fptosi float %78 to i32
  %80 = sub nsw i32 %.0200, %79
  %81 = icmp slt i32 %80, 0
  %spec.select229 = tail call i32 @llvm.smin.i32(i32 %80, i32 %55)
  %.1201 = select i1 %81, i32 0, i32 %spec.select229
  %82 = add nsw i32 %.1201, %spec.select
  %spec.select230 = tail call i32 @llvm.smin.i32(i32 %82, i32 %3)
  br label %83

83:                                               ; preds = %61, %.loopexit, %77
  %.1205 = phi i32 [ %spec.select230, %77 ], [ %57, %.loopexit ], [ %57, %61 ]
  %.2202 = phi i32 [ %.1201, %77 ], [ %.0200, %.loopexit ], [ %.0200, %61 ]
  %.sroa.0108.1 = phi <2 x float> [ %.sroa.0108.0232, %77 ], [ %.sroa.0108.0232, %.loopexit ], [ %29, %61 ]
  %.2197 = phi i32 [ %.1196, %77 ], [ %.1196, %.loopexit ], [ %6, %61 ]
  %.1194 = phi i32 [ %.0193, %77 ], [ %.0193, %.loopexit ], [ -1, %61 ]
  %.0 = phi i32 [ 1, %77 ], [ 1, %.loopexit ], [ %8, %61 ]
  %84 = tail call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 17)
  %85 = sitofp i32 %84 to float
  %86 = fadd float %.sroa.0174.4.vec.extract, %85
  %87 = tail call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 12)
  %88 = sitofp i32 %87 to float
  %89 = fadd float %86, %88
  %.sroa.0108.4.vec.insert121 = insertelement <2 x float> %.sroa.0108.1, float %89, i64 1
  br label %90

90:                                               ; preds = %83, %58, %52
  %.2206 = phi i32 [ %57, %58 ], [ %.1205, %83 ], [ %57, %52 ]
  %.3203 = phi i32 [ %.0200, %58 ], [ %.2202, %83 ], [ %.0200, %52 ]
  %.sroa.0108.2 = phi <2 x float> [ %29, %58 ], [ %.sroa.0108.4.vec.insert121, %83 ], [ %29, %52 ]
  %.3 = phi i32 [ %6, %58 ], [ %.2197, %83 ], [ %6, %52 ]
  %.2 = phi i32 [ %13, %58 ], [ %.1194, %83 ], [ %13, %52 ]
  %.1 = phi i32 [ %8, %58 ], [ %.0, %83 ], [ 3, %52 ]
  %91 = tail call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 12)
  %92 = mul nsw i32 %.1, 3
  %93 = tail call i32 @GuiGetStyle(i32 noundef 12, i32 noundef %92)
  %94 = tail call i32 @GetColor(i32 noundef %93)
  %95 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !17
  %96 = tail call i32 @Fade(i32 %94, float noundef %95)
  %97 = tail call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 19)
  %98 = tail call i32 @GetColor(i32 noundef %97)
  tail call void @_ZL16GuiDrawRectangle9Rectanglei5ColorS0_(<2 x float> %0, <2 x float> %1, i32 noundef %91, i32 %96, i32 %98)
  %99 = icmp ne ptr %2, null
  %100 = icmp sgt i32 %spec.select, 0
  %101 = and i1 %99, %100
  br i1 %101, label %.lr.ph238, label %._crit_edge

.lr.ph238:                                        ; preds = %90
  %102 = icmp eq i32 %.1, 3
  %sext246 = sext i32 %.3 to i64
  br i1 %102, label %.lr.ph238.split.us.preheader, label %.lr.ph238.split.preheader

.lr.ph238.split.preheader:                        ; preds = %.lr.ph238
  %103 = zext nneg i32 %spec.select to i64
  %104 = sext i32 %.3203 to i64
  %sext242 = sext i32 %.2 to i64
  %105 = getelementptr inbounds ptr, ptr %2, i64 %sext242
  %106 = getelementptr inbounds ptr, ptr %2, i64 %sext246
  br label %.lr.ph238.split

.lr.ph238.split.us.preheader:                     ; preds = %.lr.ph238
  %107 = sext i32 %.3203 to i64
  %108 = zext nneg i32 %spec.select to i64
  br label %.lr.ph238.split.us

.lr.ph238.split.us:                               ; preds = %.lr.ph238.split.us.preheader, %121
  %indvars.iv244 = phi i64 [ 0, %.lr.ph238.split.us.preheader ], [ %indvars.iv.next245, %121 ]
  %.sroa.0108.3237.us = phi <2 x float> [ %.sroa.0108.2, %.lr.ph238.split.us.preheader ], [ %.sroa.0108.4.vec.insert125.us, %121 ]
  %109 = add nsw i64 %indvars.iv244, %107
  %110 = icmp eq i64 %109, %sext246
  br i1 %110, label %111, label %121

111:                                              ; preds = %.lr.ph238.split.us
  %112 = tail call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 12)
  %113 = tail call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 9)
  %114 = tail call i32 @GetColor(i32 noundef %113)
  %115 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !17
  %116 = tail call i32 @Fade(i32 %114, float noundef %115)
  %117 = tail call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 10)
  %118 = tail call i32 @GetColor(i32 noundef %117)
  %119 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !17
  %120 = tail call i32 @Fade(i32 %118, float noundef %119)
  tail call void @_ZL16GuiDrawRectangle9Rectanglei5ColorS0_(<2 x float> %.sroa.0108.3237.us, <2 x float> %.sroa.18.0, i32 noundef %112, i32 %116, i32 %120)
  br label %121

121:                                              ; preds = %111, %.lr.ph238.split.us
  %122 = getelementptr inbounds ptr, ptr %2, i64 %109
  %123 = load ptr, ptr %122, align 8, !tbaa !19
  %124 = tail call { <2 x float>, <2 x float> } @_ZL13GetTextBoundsi9Rectangle(i32 noundef 0, <2 x float> %.sroa.0108.3237.us, <2 x float> %.sroa.18.0)
  %125 = extractvalue { <2 x float>, <2 x float> } %124, 0
  %126 = extractvalue { <2 x float>, <2 x float> } %124, 1
  %127 = tail call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 14)
  %128 = tail call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 11)
  %129 = tail call i32 @GetColor(i32 noundef %128)
  %130 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !17
  %131 = tail call i32 @Fade(i32 %129, float noundef %130)
  tail call void @_ZL11GuiDrawTextPKc9Rectanglei5Color(ptr noundef %123, <2 x float> %125, <2 x float> %126, i32 noundef %127, i32 %131)
  %132 = tail call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 16)
  %133 = tail call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 17)
  %134 = add nsw i32 %133, %132
  %135 = sitofp i32 %134 to float
  %.sroa.0108.4.vec.extract123.us = extractelement <2 x float> %.sroa.0108.3237.us, i64 1
  %136 = fadd float %.sroa.0108.4.vec.extract123.us, %135
  %.sroa.0108.4.vec.insert125.us = insertelement <2 x float> %.sroa.0108.3237.us, float %136, i64 1
  %indvars.iv.next245 = add nuw nsw i64 %indvars.iv244, 1
  %137 = icmp ult i64 %indvars.iv.next245, %108
  br i1 %137, label %.lr.ph238.split.us, label %._crit_edge, !llvm.loop !21

._crit_edge:                                      ; preds = %164, %121, %90
  br i1 %19, label %180, label %207

.lr.ph238.split:                                  ; preds = %.lr.ph238.split.preheader, %164
  %indvars.iv = phi i64 [ 0, %.lr.ph238.split.preheader ], [ %indvars.iv.next, %164 ]
  %.sroa.0108.3237 = phi <2 x float> [ %.sroa.0108.2, %.lr.ph238.split.preheader ], [ %.sroa.0108.4.vec.insert125, %164 ]
  %138 = add nsw i64 %indvars.iv, %104
  %139 = icmp eq i64 %138, %sext246
  br i1 %139, label %140, label %150

140:                                              ; preds = %.lr.ph238.split
  %141 = tail call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 12)
  %142 = tail call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 6)
  %143 = tail call i32 @GetColor(i32 noundef %142)
  %144 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !17
  %145 = tail call i32 @Fade(i32 %143, float noundef %144)
  %146 = tail call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 7)
  %147 = tail call i32 @GetColor(i32 noundef %146)
  %148 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !17
  %149 = tail call i32 @Fade(i32 %147, float noundef %148)
  tail call void @_ZL16GuiDrawRectangle9Rectanglei5ColorS0_(<2 x float> %.sroa.0108.3237, <2 x float> %.sroa.18.0, i32 noundef %141, i32 %145, i32 %149)
  br label %164

150:                                              ; preds = %.lr.ph238.split
  %151 = icmp eq i64 %138, %sext242
  br i1 %151, label %152, label %162

152:                                              ; preds = %150
  %153 = tail call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 12)
  %154 = tail call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 3)
  %155 = tail call i32 @GetColor(i32 noundef %154)
  %156 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !17
  %157 = tail call i32 @Fade(i32 %155, float noundef %156)
  %158 = tail call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 4)
  %159 = tail call i32 @GetColor(i32 noundef %158)
  %160 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !17
  %161 = tail call i32 @Fade(i32 %159, float noundef %160)
  tail call void @_ZL16GuiDrawRectangle9Rectanglei5ColorS0_(<2 x float> %.sroa.0108.3237, <2 x float> %.sroa.18.0, i32 noundef %153, i32 %157, i32 %161)
  br label %164

162:                                              ; preds = %150
  %163 = getelementptr inbounds ptr, ptr %2, i64 %138
  br label %164

164:                                              ; preds = %140, %162, %152
  %.sink261 = phi ptr [ %106, %140 ], [ %163, %162 ], [ %105, %152 ]
  %.sink258 = phi i32 [ 8, %140 ], [ 2, %162 ], [ 5, %152 ]
  %165 = load ptr, ptr %.sink261, align 8, !tbaa !19
  %166 = tail call { <2 x float>, <2 x float> } @_ZL13GetTextBoundsi9Rectangle(i32 noundef 0, <2 x float> %.sroa.0108.3237, <2 x float> %.sroa.18.0)
  %167 = extractvalue { <2 x float>, <2 x float> } %166, 0
  %168 = extractvalue { <2 x float>, <2 x float> } %166, 1
  %169 = tail call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 14)
  %170 = tail call i32 @GuiGetStyle(i32 noundef 12, i32 noundef %.sink258)
  %171 = tail call i32 @GetColor(i32 noundef %170)
  %172 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !17
  %173 = tail call i32 @Fade(i32 %171, float noundef %172)
  tail call void @_ZL11GuiDrawTextPKc9Rectanglei5Color(ptr noundef %165, <2 x float> %167, <2 x float> %168, i32 noundef %169, i32 %173)
  %174 = tail call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 16)
  %175 = tail call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 17)
  %176 = add nsw i32 %175, %174
  %177 = sitofp i32 %176 to float
  %.sroa.0108.4.vec.extract123 = extractelement <2 x float> %.sroa.0108.3237, i64 1
  %178 = fadd float %.sroa.0108.4.vec.extract123, %177
  %.sroa.0108.4.vec.insert125 = insertelement <2 x float> %.sroa.0108.3237, float %178, i64 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %179 = icmp ult i64 %indvars.iv.next, %103
  br i1 %179, label %.lr.ph238.split, label %._crit_edge, !llvm.loop !21

180:                                              ; preds = %._crit_edge
  %181 = fadd <2 x float> %0, %1
  %182 = extractelement <2 x float> %181, i64 0
  %183 = tail call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 12)
  %184 = sitofp i32 %183 to float
  %185 = fsub float %182, %184
  %186 = tail call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 18)
  %187 = sitofp i32 %186 to float
  %188 = fsub float %185, %187
  %.sroa.03.0.vec.insert = insertelement <2 x float> poison, float %188, i64 0
  %189 = tail call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 12)
  %190 = sitofp i32 %189 to float
  %191 = fadd float %.sroa.0174.4.vec.extract, %190
  %.sroa.03.4.vec.insert = insertelement <2 x float> %.sroa.03.0.vec.insert, float %191, i64 1
  %192 = tail call i32 @GuiGetStyle(i32 noundef 12, i32 noundef 18)
  %193 = sitofp i32 %192 to float
  %.sroa.5.8.vec.insert = insertelement <2 x float> poison, float %193, i64 0
  %194 = tail call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 12)
  %195 = shl nsw i32 %194, 1
  %196 = sitofp i32 %195 to float
  %197 = fsub float %.sroa.8.12.vec.extract, %196
  %.sroa.5.12.vec.insert = insertelement <2 x float> %.sroa.5.8.vec.insert, float %197, i64 1
  %198 = sub nsw i32 %.2206, %.3203
  %199 = sitofp i32 %198 to float
  %200 = sitofp i32 %3 to float
  %201 = fdiv float %199, %200
  %202 = fmul float %.sroa.8.12.vec.extract, %201
  %203 = tail call i32 @GuiGetStyle(i32 noundef 14, i32 noundef 19)
  %204 = tail call i32 @GuiGetStyle(i32 noundef 14, i32 noundef 21)
  %205 = fptosi float %202 to i32
  tail call void @GuiSetStyle(i32 noundef 14, i32 noundef 19, i32 noundef %205)
  tail call void @GuiSetStyle(i32 noundef 14, i32 noundef 21, i32 noundef %55)
  %206 = tail call i32 @GuiScrollBar(<2 x float> %.sroa.03.4.vec.insert, <2 x float> %.sroa.5.12.vec.insert, i32 noundef %.3203, i32 noundef 0, i32 noundef %55)
  tail call void @GuiSetStyle(i32 noundef 14, i32 noundef 21, i32 noundef %204)
  tail call void @GuiSetStyle(i32 noundef 14, i32 noundef 19, i32 noundef %203)
  br label %207

207:                                              ; preds = %180, %._crit_edge
  %.4 = phi i32 [ %206, %180 ], [ %.3203, %._crit_edge ]
  br i1 %9, label %209, label %208

208:                                              ; preds = %207
  store i32 %.2, ptr %4, align 4, !tbaa !9
  br label %209

209:                                              ; preds = %208, %207
  br i1 %49, label %211, label %210

210:                                              ; preds = %209
  store i32 %.4, ptr %5, align 4, !tbaa !9
  br label %211

211:                                              ; preds = %210, %209
  ret i32 %.3
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #3

attributes #0 = { 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 #1 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "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 speculatable willreturn memory(none) }

!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 = !{!"_ZTS15GuiControlState", !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 = !{i8 0, i8 2}
!14 = !{}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !18, i64 0}
!18 = !{!"float", !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"any pointer", !7, i64 0}
!21 = distinct !{!21, !16}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass