; LLVM IR from NotManyIdeasDev/double-pendulum-sim :: double-pendulum-sim/Libraries/raygui-2.8/examples/controls_test_suite (GuiTextBoxMulti)

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

@guiState = external hidden global i32, align 4
@guiLocked = external hidden global i8, align 1
@guiAlpha = external hidden global float, align 4
@guiFont = external hidden global %struct.Font, align 8
@GuiTextBoxMulti.framesCounter = external hidden global i32, 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @GuiGetStyle(i32 noundef, i32 noundef) #1

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

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

declare i32 @GetColor(i32 noundef) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: nounwind uwtable
declare hidden i32 @GetTextWidth(ptr noundef) #2

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

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

declare zeroext i1 @IsKeyDown(i32 noundef) #3

declare <2 x float> @MeasureTextEx(ptr noundef byval(%struct.Font) align 8, ptr noundef, float noundef, float noundef) #3

declare zeroext i1 @IsMouseButtonPressed(i32 noundef) #3

declare i32 @GetCharPressed() #3

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #5

declare zeroext i1 @IsKeyPressed(i32 noundef) #3

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

78:                                               ; preds = %5
  %79 = load i8, ptr @guiLocked, align 1, !tbaa !11, !range !19, !noundef !20
  %80 = trunc i8 %79 to i1
  br i1 %80, label %312, label %81

81:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %82 = call <2 x float> @GetMousePosition()
  store <2 x float> %82, ptr %16, align 4
  %83 = load i8, ptr %9, align 1, !tbaa !11, !range !19, !noundef !20
  %84 = trunc i8 %83 to i1
  br i1 %84, label %85, label %295

85:                                               ; preds = %81
  store i32 2, ptr %10, align 4, !tbaa !9
  %86 = load i32, ptr @GuiTextBoxMulti.framesCounter, align 4, !tbaa !9
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr @GuiTextBoxMulti.framesCounter, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %88 = call i32 @GetCharPressed()
  store i32 %88, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = call i64 @strlen(ptr noundef %89) #7
  %91 = trunc i64 %90 to i32
  store i32 %91, ptr %18, align 4, !tbaa !9
  %92 = load i32, ptr %18, align 4, !tbaa !9
  %93 = load i32, ptr %8, align 4, !tbaa !9
  %94 = sub nsw i32 %93, 1
  %95 = icmp slt i32 %92, %94
  br i1 %95, label %96, label %138

96:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %99 = sitofp i32 %98 to float
  %100 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 17)
  %101 = sitofp i32 %100 to float
  %102 = call <2 x float> @MeasureTextEx(ptr noundef byval(%struct.Font) align 8 @guiFont, ptr noundef %97, float noundef %99, float noundef %101)
  store <2 x float> %102, ptr %19, align 4
  %103 = getelementptr inbounds %struct.Vector2, ptr %19, i32 0, i32 1
  %104 = load float, ptr %103, align 4, !tbaa !21
  %105 = getelementptr inbounds %struct.Rectangle, ptr %12, i32 0, i32 3
  %106 = load float, ptr %105, align 4, !tbaa !18
  %107 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %108 = sitofp i32 %107 to float
  %109 = fsub float %106, %108
  %110 = fcmp olt float %104, %109
  br i1 %110, label %111, label %137

111:                                              ; preds = %96
  %112 = call zeroext i1 @IsKeyPressed(i32 noundef 257)
  br i1 %112, label %113, label %120

113:                                              ; preds = %111
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  %115 = load i32, ptr %18, align 4, !tbaa !9
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds i8, ptr %114, i64 %116
  store i8 10, ptr %117, align 1, !tbaa !23
  %118 = load i32, ptr %18, align 4, !tbaa !9
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %18, align 4, !tbaa !9
  br label %136

120:                                              ; preds = %111
  %121 = load i32, ptr %17, align 4, !tbaa !9
  %122 = icmp sge i32 %121, 32
  br i1 %122, label %123, label %135

123:                                              ; preds = %120
  %124 = load i32, ptr %17, align 4, !tbaa !9
  %125 = icmp slt i32 %124, 255
  br i1 %125, label %126, label %135

126:                                              ; preds = %123
  %127 = load i32, ptr %17, align 4, !tbaa !9
  %128 = trunc i32 %127 to i8
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  %130 = load i32, ptr %18, align 4, !tbaa !9
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds i8, ptr %129, i64 %131
  store i8 %128, ptr %132, align 1, !tbaa !23
  %133 = load i32, ptr %18, align 4, !tbaa !9
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %18, align 4, !tbaa !9
  br label %135

135:                                              ; preds = %126, %123, %120
  br label %136

136:                                              ; preds = %135, %113
  br label %137

137:                                              ; preds = %136, %96
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %138

138:                                              ; preds = %137, %85
  %139 = load i32, ptr %18, align 4, !tbaa !9
  %140 = icmp sgt i32 %139, 0
  br i1 %140, label %141, label %177

141:                                              ; preds = %138
  %142 = call zeroext i1 @IsKeyPressed(i32 noundef 259)
  br i1 %142, label %143, label %154

143:                                              ; preds = %141
  %144 = load i32, ptr %18, align 4, !tbaa !9
  %145 = add nsw i32 %144, -1
  store i32 %145, ptr %18, align 4, !tbaa !9
  %146 = load ptr, ptr %7, align 8, !tbaa !5
  %147 = load i32, ptr %18, align 4, !tbaa !9
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds i8, ptr %146, i64 %148
  store i8 0, ptr %149, align 1, !tbaa !23
  store i32 0, ptr @GuiTextBoxMulti.framesCounter, align 4, !tbaa !9
  %150 = load i32, ptr %18, align 4, !tbaa !9
  %151 = icmp slt i32 %150, 0
  br i1 %151, label %152, label %153

152:                                              ; preds = %143
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %153

153:                                              ; preds = %152, %143
  br label %176

154:                                              ; preds = %141
  %155 = call zeroext i1 @IsKeyDown(i32 noundef 259)
  br i1 %155, label %156, label %175

156:                                              ; preds = %154
  %157 = load i32, ptr @GuiTextBoxMulti.framesCounter, align 4, !tbaa !9
  %158 = icmp sgt i32 %157, 20
  br i1 %158, label %159, label %166

159:                                              ; preds = %156
  %160 = load i32, ptr @GuiTextBoxMulti.framesCounter, align 4, !tbaa !9
  %161 = srem i32 %160, 2
  %162 = icmp eq i32 %161, 0
  br i1 %162, label %163, label %166

163:                                              ; preds = %159
  %164 = load i32, ptr %18, align 4, !tbaa !9
  %165 = add nsw i32 %164, -1
  store i32 %165, ptr %18, align 4, !tbaa !9
  br label %166

166:                                              ; preds = %163, %159, %156
  %167 = load ptr, ptr %7, align 8, !tbaa !5
  %168 = load i32, ptr %18, align 4, !tbaa !9
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds i8, ptr %167, i64 %169
  store i8 0, ptr %170, align 1, !tbaa !23
  %171 = load i32, ptr %18, align 4, !tbaa !9
  %172 = icmp slt i32 %171, 0
  br i1 %172, label %173, label %174

173:                                              ; preds = %166
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %174

174:                                              ; preds = %173, %166
  br label %175

175:                                              ; preds = %174, %154
  br label %176

176:                                              ; preds = %175, %153
  br label %177

177:                                              ; preds = %176, %138
  call void @llvm.lifetime.start.p0(i64 2, ptr %20) #6
  call void @llvm.memset.p0.i64(ptr align 1 %20, i8 0, i64 2, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 -1, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %178

178:                                              ; preds = %249, %177
  %179 = load i32, ptr %22, align 4, !tbaa !9
  %180 = load i32, ptr %18, align 4, !tbaa !9
  %181 = icmp slt i32 %179, %180
  br i1 %181, label %182, label %186

182:                                              ; preds = %178
  %183 = load i32, ptr %15, align 4, !tbaa !9
  %184 = load i32, ptr %18, align 4, !tbaa !9
  %185 = icmp slt i32 %183, %184
  br label %186

186:                                              ; preds = %182, %178
  %187 = phi i1 [ false, %178 ], [ %185, %182 ]
  br i1 %187, label %189, label %188

188:                                              ; preds = %186
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %252

189:                                              ; preds = %186
  %190 = load ptr, ptr %7, align 8, !tbaa !5
  %191 = load i32, ptr %22, align 4, !tbaa !9
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds i8, ptr %190, i64 %192
  %194 = load i8, ptr %193, align 1, !tbaa !23
  %195 = getelementptr inbounds [2 x i8], ptr %20, i64 0, i64 0
  store i8 %194, ptr %195, align 1, !tbaa !23
  %196 = getelementptr inbounds [2 x i8], ptr %20, i64 0, i64 0
  %197 = call i32 @GetTextWidth(ptr noundef %196)
  %198 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 17)
  %199 = add nsw i32 %197, %198
  %200 = load i32, ptr %14, align 4, !tbaa !9
  %201 = add nsw i32 %200, %199
  store i32 %201, ptr %14, align 4, !tbaa !9
  %202 = load ptr, ptr %7, align 8, !tbaa !5
  %203 = load i32, ptr %22, align 4, !tbaa !9
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds i8, ptr %202, i64 %204
  %206 = load i8, ptr %205, align 1, !tbaa !23
  %207 = sext i8 %206 to i32
  %208 = icmp eq i32 %207, 32
  br i1 %208, label %217, label %209

209:                                              ; preds = %189
  %210 = load ptr, ptr %7, align 8, !tbaa !5
  %211 = load i32, ptr %22, align 4, !tbaa !9
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds i8, ptr %210, i64 %212
  %214 = load i8, ptr %213, align 1, !tbaa !23
  %215 = sext i8 %214 to i32
  %216 = icmp eq i32 %215, 10
  br i1 %216, label %217, label %219

217:                                              ; preds = %209, %189
  %218 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %218, ptr %21, align 4, !tbaa !9
  br label %219

219:                                              ; preds = %217, %209
  %220 = load ptr, ptr %7, align 8, !tbaa !5
  %221 = load i32, ptr %22, align 4, !tbaa !9
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds i8, ptr %220, i64 %222
  %224 = load i8, ptr %223, align 1, !tbaa !23
  %225 = sext i8 %224 to i32
  %226 = icmp eq i32 %225, 10
  br i1 %226, label %233, label %227

227:                                              ; preds = %219
  %228 = load i32, ptr %14, align 4, !tbaa !9
  %229 = sitofp i32 %228 to float
  %230 = getelementptr inbounds %struct.Rectangle, ptr %12, i32 0, i32 2
  %231 = load float, ptr %230, align 4, !tbaa !17
  %232 = fcmp oge float %229, %231
  br i1 %232, label %233, label %248

233:                                              ; preds = %227, %219
  %234 = load i32, ptr %15, align 4, !tbaa !9
  %235 = add nsw i32 %234, 1
  store i32 %235, ptr %15, align 4, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !9
  %236 = load i32, ptr %21, align 4, !tbaa !9
  %237 = icmp sgt i32 %236, 0
  br i1 %237, label %238, label %240

238:                                              ; preds = %233
  %239 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %239, ptr %22, align 4, !tbaa !9
  br label %247

240:                                              ; preds = %233
  %241 = getelementptr inbounds [2 x i8], ptr %20, i64 0, i64 0
  %242 = call i32 @GetTextWidth(ptr noundef %241)
  %243 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 17)
  %244 = add nsw i32 %242, %243
  %245 = load i32, ptr %14, align 4, !tbaa !9
  %246 = add nsw i32 %245, %244
  store i32 %246, ptr %14, align 4, !tbaa !9
  br label %247

247:                                              ; preds = %240, %238
  store i32 -1, ptr %21, align 4, !tbaa !9
  br label %248

248:                                              ; preds = %247, %227
  br label %249

249:                                              ; preds = %248
  %250 = load i32, ptr %22, align 4, !tbaa !9
  %251 = add nsw i32 %250, 1
  store i32 %251, ptr %22, align 4, !tbaa !9
  br label %178, !llvm.loop !24

252:                                              ; preds = %188
  %253 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 0
  %254 = load float, ptr %253, align 4, !tbaa !13
  %255 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 12)
  %256 = sitofp i32 %255 to float
  %257 = fadd float %254, %256
  %258 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 16)
  %259 = sitofp i32 %258 to float
  %260 = fadd float %257, %259
  %261 = load i32, ptr %14, align 4, !tbaa !9
  %262 = sitofp i32 %261 to float
  %263 = fadd float %260, %262
  %264 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 17)
  %265 = sitofp i32 %264 to float
  %266 = fsub float %263, %265
  %267 = getelementptr inbounds %struct.Rectangle, ptr %13, i32 0, i32 0
  store float %266, ptr %267, align 4, !tbaa !13
  %268 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 1
  %269 = load float, ptr %268, align 4, !tbaa !16
  %270 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 12)
  %271 = sitofp i32 %270 to float
  %272 = fadd float %269, %271
  %273 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 16)
  %274 = sdiv i32 %273, 2
  %275 = sitofp i32 %274 to float
  %276 = fadd float %272, %275
  %277 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %278 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 16)
  %279 = add nsw i32 %277, %278
  %280 = load i32, ptr %15, align 4, !tbaa !9
  %281 = mul nsw i32 %279, %280
  %282 = sitofp i32 %281 to float
  %283 = fadd float %276, %282
  %284 = getelementptr inbounds %struct.Rectangle, ptr %13, i32 0, i32 1
  store float %283, ptr %284, align 4, !tbaa !16
  %285 = load <2 x float>, ptr %16, align 4
  %286 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 0
  %287 = load <2 x float>, ptr %286, align 4
  %288 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 1
  %289 = load <2 x float>, ptr %288, align 4
  %290 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %285, <2 x float> %287, <2 x float> %289)
  br i1 %290, label %294, label %291

291:                                              ; preds = %252
  %292 = call zeroext i1 @IsMouseButtonPressed(i32 noundef 0)
  br i1 %292, label %293, label %294

293:                                              ; preds = %291
  store i8 1, ptr %11, align 1, !tbaa !11
  br label %294

294:                                              ; preds = %293, %291, %252
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %307

295:                                              ; preds = %81
  %296 = load <2 x float>, ptr %16, align 4
  %297 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 0
  %298 = load <2 x float>, ptr %297, align 4
  %299 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 1
  %300 = load <2 x float>, ptr %299, align 4
  %301 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %296, <2 x float> %298, <2 x float> %300)
  br i1 %301, label %302, label %306

302:                                              ; preds = %295
  store i32 1, ptr %10, align 4, !tbaa !9
  %303 = call zeroext i1 @IsMouseButtonPressed(i32 noundef 0)
  br i1 %303, label %304, label %305

304:                                              ; preds = %302
  store i8 1, ptr %11, align 1, !tbaa !11
  br label %305

305:                                              ; preds = %304, %302
  br label %306

306:                                              ; preds = %305, %295
  br label %307

307:                                              ; preds = %306, %294
  %308 = load i8, ptr %11, align 1, !tbaa !11, !range !19, !noundef !20
  %309 = trunc i8 %308 to i1
  br i1 %309, label %310, label %311

310:                                              ; preds = %307
  store i32 0, ptr @GuiTextBoxMulti.framesCounter, align 4, !tbaa !9
  br label %311

311:                                              ; preds = %310, %307
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %312

312:                                              ; preds = %311, %78, %5
  %313 = load i32, ptr %10, align 4, !tbaa !9
  %314 = icmp eq i32 %313, 2
  br i1 %314, label %315, label %360

315:                                              ; preds = %312
  %316 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 12)
  %317 = load i32, ptr %10, align 4, !tbaa !9
  %318 = mul i32 %317, 3
  %319 = add i32 0, %318
  %320 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef %319)
  %321 = call i32 @GetColor(i32 noundef %320)
  store i32 %321, ptr %24, align 1
  %322 = load float, ptr @guiAlpha, align 4, !tbaa !26
  %323 = load i32, ptr %24, align 1
  %324 = call i32 @Fade(i32 %323, float noundef %322)
  store i32 %324, ptr %23, align 1
  %325 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 7)
  %326 = call i32 @GetColor(i32 noundef %325)
  store i32 %326, ptr %26, align 1
  %327 = load float, ptr @guiAlpha, align 4, !tbaa !26
  %328 = load i32, ptr %26, align 1
  %329 = call i32 @Fade(i32 %328, float noundef %327)
  store i32 %329, ptr %25, align 1
  %330 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 0
  %331 = load <2 x float>, ptr %330, align 4
  %332 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 1
  %333 = load <2 x float>, ptr %332, align 4
  %334 = load i32, ptr %23, align 1
  %335 = load i32, ptr %25, align 1
  call void @GuiDrawRectangle(<2 x float> %331, <2 x float> %333, i32 noundef %316, i32 %334, i32 %335)
  %336 = load i8, ptr %9, align 1, !tbaa !11, !range !19, !noundef !20
  %337 = trunc i8 %336 to i1
  br i1 %337, label %338, label %359

338:                                              ; preds = %315
  %339 = load i32, ptr @GuiTextBoxMulti.framesCounter, align 4, !tbaa !9
  %340 = sdiv i32 %339, 20
  %341 = srem i32 %340, 2
  %342 = icmp eq i32 %341, 0
  br i1 %342, label %343, label %359

343:                                              ; preds = %338
  %344 = getelementptr inbounds %struct.Color, ptr %27, i32 0, i32 0
  store i8 0, ptr %344, align 1, !tbaa !27
  %345 = getelementptr inbounds %struct.Color, ptr %27, i32 0, i32 1
  store i8 0, ptr %345, align 1, !tbaa !29
  %346 = getelementptr inbounds %struct.Color, ptr %27, i32 0, i32 2
  store i8 0, ptr %346, align 1, !tbaa !30
  %347 = getelementptr inbounds %struct.Color, ptr %27, i32 0, i32 3
  store i8 0, ptr %347, align 1, !tbaa !31
  %348 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 6)
  %349 = call i32 @GetColor(i32 noundef %348)
  store i32 %349, ptr %29, align 1
  %350 = load float, ptr @guiAlpha, align 4, !tbaa !26
  %351 = load i32, ptr %29, align 1
  %352 = call i32 @Fade(i32 %351, float noundef %350)
  store i32 %352, ptr %28, align 1
  %353 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %13, i32 0, i32 0
  %354 = load <2 x float>, ptr %353, align 4
  %355 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %13, i32 0, i32 1
  %356 = load <2 x float>, ptr %355, align 4
  %357 = load i32, ptr %27, align 1
  %358 = load i32, ptr %28, align 1
  call void @GuiDrawRectangle(<2 x float> %354, <2 x float> %356, i32 noundef 0, i32 %357, i32 %358)
  br label %359

359:                                              ; preds = %343, %338, %315
  br label %404

360:                                              ; preds = %312
  %361 = load i32, ptr %10, align 4, !tbaa !9
  %362 = icmp eq i32 %361, 3
  br i1 %362, label %363, label %384

363:                                              ; preds = %360
  %364 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 12)
  %365 = load i32, ptr %10, align 4, !tbaa !9
  %366 = mul i32 %365, 3
  %367 = add i32 0, %366
  %368 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef %367)
  %369 = call i32 @GetColor(i32 noundef %368)
  store i32 %369, ptr %31, align 1
  %370 = load float, ptr @guiAlpha, align 4, !tbaa !26
  %371 = load i32, ptr %31, align 1
  %372 = call i32 @Fade(i32 %371, float noundef %370)
  store i32 %372, ptr %30, align 1
  %373 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 10)
  %374 = call i32 @GetColor(i32 noundef %373)
  store i32 %374, ptr %33, align 1
  %375 = load float, ptr @guiAlpha, align 4, !tbaa !26
  %376 = load i32, ptr %33, align 1
  %377 = call i32 @Fade(i32 %376, float noundef %375)
  store i32 %377, ptr %32, align 1
  %378 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 0
  %379 = load <2 x float>, ptr %378, align 4
  %380 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 1
  %381 = load <2 x float>, ptr %380, align 4
  %382 = load i32, ptr %30, align 1
  %383 = load i32, ptr %32, align 1
  call void @GuiDrawRectangle(<2 x float> %379, <2 x float> %381, i32 noundef %364, i32 %382, i32 %383)
  br label %403

384:                                              ; preds = %360
  %385 = load i32, ptr %10, align 4, !tbaa !9
  %386 = mul i32 %385, 3
  %387 = add i32 0, %386
  %388 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef %387)
  %389 = call i32 @GetColor(i32 noundef %388)
  store i32 %389, ptr %35, align 1
  %390 = load float, ptr @guiAlpha, align 4, !tbaa !26
  %391 = load i32, ptr %35, align 1
  %392 = call i32 @Fade(i32 %391, float noundef %390)
  store i32 %392, ptr %34, align 1
  %393 = getelementptr inbounds %struct.Color, ptr %36, i32 0, i32 0
  store i8 0, ptr %393, align 1, !tbaa !27
  %394 = getelementptr inbounds %struct.Color, ptr %36, i32 0, i32 1
  store i8 0, ptr %394, align 1, !tbaa !29
  %395 = getelementptr inbounds %struct.Color, ptr %36, i32 0, i32 2
  store i8 0, ptr %395, align 1, !tbaa !30
  %396 = getelementptr inbounds %struct.Color, ptr %36, i32 0, i32 3
  store i8 0, ptr %396, align 1, !tbaa !31
  %397 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 0
  %398 = load <2 x float>, ptr %397, align 4
  %399 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 1
  %400 = load <2 x float>, ptr %399, align 4
  %401 = load i32, ptr %34, align 1
  %402 = load i32, ptr %36, align 1
  call void @GuiDrawRectangle(<2 x float> %398, <2 x float> %400, i32 noundef 1, i32 %401, i32 %402)
  br label %403

403:                                              ; preds = %384, %363
  br label %404

404:                                              ; preds = %403, %359
  %405 = load ptr, ptr %7, align 8, !tbaa !5
  %406 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %407 = sitofp i32 %406 to float
  %408 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 17)
  %409 = sitofp i32 %408 to float
  %410 = load i32, ptr %10, align 4, !tbaa !9
  %411 = mul i32 %410, 3
  %412 = add i32 2, %411
  %413 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef %412)
  %414 = call i32 @GetColor(i32 noundef %413)
  store i32 %414, ptr %38, align 1
  %415 = load float, ptr @guiAlpha, align 4, !tbaa !26
  %416 = load i32, ptr %38, align 1
  %417 = call i32 @Fade(i32 %416, float noundef %415)
  store i32 %417, ptr %37, align 1
  %418 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %12, i32 0, i32 0
  %419 = load <2 x float>, ptr %418, align 4
  %420 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %12, i32 0, i32 1
  %421 = load <2 x float>, ptr %420, align 4
  %422 = load i32, ptr %37, align 1
  call void @DrawTextRec(ptr noundef byval(%struct.Font) align 8 @guiFont, ptr noundef %405, <2 x float> %419, <2 x float> %421, float noundef %407, float noundef %409, i1 noundef zeroext true, i32 %422)
  %423 = load i8, ptr %11, align 1, !tbaa !11, !range !19, !noundef !20
  %424 = trunc i8 %423 to i1
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  ret i1 %424
}

declare void @DrawTextRec(ptr noundef byval(%struct.Font) align 8, ptr noundef, <2 x float>, <2 x float>, float noundef, float noundef, i1 noundef zeroext, i32) #3

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_Bool", !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"Rectangle", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!15 = !{!"float", !7, i64 0}
!16 = !{!14, !15, i64 4}
!17 = !{!14, !15, i64 8}
!18 = !{!14, !15, i64 12}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!22, !15, i64 4}
!22 = !{!"Vector2", !15, i64 0, !15, i64 4}
!23 = !{!7, !7, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!15, !15, i64 0}
!27 = !{!28, !7, i64 0}
!28 = !{!"Color", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3}
!29 = !{!28, !7, i64 1}
!30 = !{!28, !7, i64 2}
!31 = !{!28, !7, i64 3}


; 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.Font = type { i32, i32, i32, %struct.Texture, ptr, ptr }
%struct.Texture = type { i32, i32, i32, i32, i32 }

@guiState = external hidden local_unnamed_addr global i32, align 4
@guiLocked = external hidden local_unnamed_addr global i8, align 1
@guiAlpha = external hidden local_unnamed_addr global float, align 4
@guiFont = external hidden global %struct.Font, align 8
@GuiTextBoxMulti.framesCounter = external hidden local_unnamed_addr global i32, align 4

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

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

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

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

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

declare i32 @GetColor(i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden i32 @GetTextWidth(ptr noundef) local_unnamed_addr #2

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

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

declare zeroext i1 @IsKeyDown(i32 noundef) local_unnamed_addr #3

declare <2 x float> @MeasureTextEx(ptr noundef byval(%struct.Font) align 8, ptr noundef, float noundef, float noundef) local_unnamed_addr #3

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

declare i32 @GetCharPressed() local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #4

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

; Function Attrs: nounwind uwtable
define dso_local noundef zeroext i1 @GuiTextBoxMulti(<2 x float> %0, <2 x float> %1, ptr noundef %2, i32 noundef %3, i1 noundef zeroext %4) local_unnamed_addr #2 {
  %6 = extractelement <2 x float> %0, i64 0
  %7 = alloca [2 x i8], align 2
  %8 = load i32, ptr @guiState, align 4, !tbaa !5
  %9 = tail call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 16)
  %10 = tail call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 16)
  %11 = tail call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 16)
  %12 = tail call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 16)
  %13 = insertelement <2 x i32> poison, i32 %11, i64 0
  %14 = insertelement <2 x i32> %13, i32 %12, i64 1
  %15 = shl nsw <2 x i32> %14, <i32 1, i32 1>
  %16 = sitofp <2 x i32> %15 to <2 x float>
  %17 = fsub <2 x float> %1, %16
  %18 = tail call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %19 = add nsw i32 %18, 2
  %20 = sitofp i32 %19 to float
  %.sroa.7.12.vec.insert = insertelement <2 x float> <float 1.000000e+00, float poison>, float %20, i64 1
  %.not = icmp eq i32 %8, 3
  br i1 %.not, label %.thread155, label %21

21:                                               ; preds = %5
  %22 = load i8, ptr @guiLocked, align 1, !tbaa !9, !range !11, !noundef !12
  %23 = trunc nuw i8 %22 to i1
  br i1 %23, label %.thread, label %24

24:                                               ; preds = %21
  %25 = tail call <2 x float> @GetMousePosition() #5
  br i1 %4, label %26, label %130

26:                                               ; preds = %24
  %27 = load i32, ptr @GuiTextBoxMulti.framesCounter, align 4, !tbaa !5
  %28 = add nsw i32 %27, 1
  store i32 %28, ptr @GuiTextBoxMulti.framesCounter, align 4, !tbaa !5
  %29 = tail call i32 @GetCharPressed() #5
  %30 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %2) #6
  %31 = trunc i64 %30 to i32
  %32 = add nsw i32 %3, -1
  %33 = icmp sgt i32 %32, %31
  br i1 %33, label %34, label %54

34:                                               ; preds = %26
  %35 = tail call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %36 = sitofp i32 %35 to float
  %37 = tail call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 17)
  %38 = sitofp i32 %37 to float
  %39 = tail call <2 x float> @MeasureTextEx(ptr noundef nonnull byval(%struct.Font) align 8 @guiFont, ptr noundef %2, float noundef %36, float noundef %38) #5
  %.sroa.029.4.vec.extract = extractelement <2 x float> %39, i64 1
  %40 = tail call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %41 = sitofp i32 %40 to float
  %42 = extractelement <2 x float> %17, i64 1
  %43 = fsub float %42, %41
  %44 = fcmp olt float %.sroa.029.4.vec.extract, %43
  br i1 %44, label %45, label %54

45:                                               ; preds = %34
  %46 = tail call zeroext i1 @IsKeyPressed(i32 noundef 257) #5
  br i1 %46, label %.sink.split, label %47

47:                                               ; preds = %45
  %48 = add i32 %29, -32
  %or.cond = icmp ult i32 %48, 223
  br i1 %or.cond, label %49, label %54

49:                                               ; preds = %47
  %50 = trunc nuw i32 %29 to i8
  br label %.sink.split

.sink.split:                                      ; preds = %45, %49
  %.sink = phi i8 [ %50, %49 ], [ 10, %45 ]
  %sext = shl i64 %30, 32
  %51 = ashr exact i64 %sext, 32
  %52 = getelementptr inbounds i8, ptr %2, i64 %51
  store i8 %.sink, ptr %52, align 1, !tbaa !13
  %53 = add nsw i32 %31, 1
  br label %54

54:                                               ; preds = %.sink.split, %34, %47, %26
  %.1113 = phi i32 [ %31, %26 ], [ %31, %47 ], [ %31, %34 ], [ %53, %.sink.split ]
  %55 = icmp sgt i32 %.1113, 0
  br i1 %55, label %56, label %.thread172

.thread172:                                       ; preds = %54
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %7) #5
  store i16 0, ptr %7, align 2
  br label %._crit_edge

56:                                               ; preds = %54
  %57 = tail call zeroext i1 @IsKeyPressed(i32 noundef 259) #5
  br i1 %57, label %58, label %62

58:                                               ; preds = %56
  %59 = add nsw i32 %.1113, -1
  %60 = zext nneg i32 %59 to i64
  %61 = getelementptr inbounds i8, ptr %2, i64 %60
  store i8 0, ptr %61, align 1, !tbaa !13
  store i32 0, ptr @GuiTextBoxMulti.framesCounter, align 4, !tbaa !5
  br label %72

62:                                               ; preds = %56
  %63 = tail call zeroext i1 @IsKeyDown(i32 noundef 259) #5
  br i1 %63, label %64, label %.thread169

.thread169:                                       ; preds = %62
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %7) #5
  store i16 0, ptr %7, align 2
  br label %.lr.ph.preheader

64:                                               ; preds = %62
  %65 = load i32, ptr @GuiTextBoxMulti.framesCounter, align 4, !tbaa !5
  %66 = icmp sgt i32 %65, 20
  %67 = and i32 %65, 1
  %68 = icmp eq i32 %67, 0
  %or.cond130 = and i1 %66, %68
  %69 = sext i1 %or.cond130 to i32
  %.2114 = add nsw i32 %.1113, %69
  %70 = zext nneg i32 %.2114 to i64
  %71 = getelementptr inbounds i8, ptr %2, i64 %70
  store i8 0, ptr %71, align 1, !tbaa !13
  br label %72

72:                                               ; preds = %58, %64
  %.3 = phi i32 [ %59, %58 ], [ %.2114, %64 ]
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %7) #5
  store i16 0, ptr %7, align 2
  %.not176 = icmp eq i32 %.3, 0
  br i1 %.not176, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.thread169, %72
  %.3171 = phi i32 [ %.1113, %.thread169 ], [ %.3, %72 ]
  %73 = extractelement <2 x float> %17, i64 0
  br label %.lr.ph

._crit_edge.loopexit:                             ; preds = %123
  %74 = sitofp i32 %.2109 to float
  br label %._crit_edge

._crit_edge:                                      ; preds = %.thread172, %._crit_edge.loopexit, %72
  %.0110.lcssa = phi i32 [ 0, %72 ], [ %.1111, %._crit_edge.loopexit ], [ 0, %.thread172 ]
  %.0107.lcssa = phi float [ 0.000000e+00, %72 ], [ %74, %._crit_edge.loopexit ], [ 0.000000e+00, %.thread172 ]
  %75 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 12)
  %76 = sitofp i32 %75 to float
  %77 = fadd float %6, %76
  %78 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 16)
  %79 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 17)
  %80 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 12)
  %81 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 16)
  %82 = sdiv i32 %81, 2
  %83 = sitofp i32 %82 to float
  %84 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %85 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 16)
  %86 = add nsw i32 %85, %84
  %87 = mul nsw i32 %86, %.0110.lcssa
  %88 = insertelement <2 x i32> poison, i32 %78, i64 0
  %89 = insertelement <2 x i32> %88, i32 %80, i64 1
  %90 = sitofp <2 x i32> %89 to <2 x float>
  %91 = insertelement <2 x float> %0, float %77, i64 0
  %92 = fadd <2 x float> %91, %90
  %93 = insertelement <2 x float> poison, float %.0107.lcssa, i64 0
  %94 = insertelement <2 x float> %93, float %83, i64 1
  %95 = fadd <2 x float> %92, %94
  %96 = insertelement <2 x i32> poison, i32 %79, i64 0
  %97 = insertelement <2 x i32> %96, i32 %87, i64 1
  %98 = sitofp <2 x i32> %97 to <2 x float>
  %99 = fsub <2 x float> %95, %98
  %100 = fadd <2 x float> %95, %98
  %101 = shufflevector <2 x float> %99, <2 x float> %100, <2 x i32> <i32 0, i32 3>
  %102 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %25, <2 x float> %0, <2 x float> %1) #5
  br i1 %102, label %.thread161, label %128

.thread161:                                       ; preds = %._crit_edge
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %7) #5
  br label %.thread148

.lr.ph:                                           ; preds = %.lr.ph.preheader, %123
  %.0107167 = phi i32 [ %.2109, %123 ], [ 0, %.lr.ph.preheader ]
  %.0110166 = phi i32 [ %.1111, %123 ], [ 0, %.lr.ph.preheader ]
  %.0115165 = phi i32 [ %.2117, %123 ], [ -1, %.lr.ph.preheader ]
  %.0118164 = phi i32 [ %124, %123 ], [ 0, %.lr.ph.preheader ]
  %103 = sext i32 %.0118164 to i64
  %104 = getelementptr inbounds i8, ptr %2, i64 %103
  %105 = load i8, ptr %104, align 1, !tbaa !13
  store i8 %105, ptr %7, align 2, !tbaa !13
  %106 = call i32 @GetTextWidth(ptr noundef nonnull %7)
  %107 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 17)
  %108 = add i32 %106, %.0107167
  %109 = add i32 %108, %107
  %110 = load i8, ptr %104, align 1, !tbaa !13
  switch i8 %110, label %112 [
    i8 32, label %111
    i8 10, label %111
  ]

111:                                              ; preds = %.lr.ph, %.lr.ph
  br label %112

112:                                              ; preds = %.lr.ph, %111
  %.1116 = phi i32 [ %.0118164, %111 ], [ %.0115165, %.lr.ph ]
  %113 = icmp ne i8 %110, 10
  %114 = sitofp i32 %109 to float
  %115 = fcmp ugt float %73, %114
  %or.cond132 = select i1 %113, i1 %115, i1 false
  br i1 %or.cond132, label %123, label %116

116:                                              ; preds = %112
  %117 = add nsw i32 %.0110166, 1
  %118 = icmp sgt i32 %.1116, 0
  br i1 %118, label %123, label %119

119:                                              ; preds = %116
  %120 = call i32 @GetTextWidth(ptr noundef nonnull %7)
  %121 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 17)
  %122 = add nsw i32 %121, %120
  br label %123

123:                                              ; preds = %119, %116, %112
  %.2120 = phi i32 [ %.0118164, %112 ], [ %.0118164, %119 ], [ %.1116, %116 ]
  %.2117 = phi i32 [ %.1116, %112 ], [ -1, %119 ], [ -1, %116 ]
  %.1111 = phi i32 [ %.0110166, %112 ], [ %117, %119 ], [ %117, %116 ]
  %.2109 = phi i32 [ %109, %112 ], [ %122, %119 ], [ 0, %116 ]
  %124 = add nsw i32 %.2120, 1
  %125 = icmp slt i32 %124, %.3171
  %126 = icmp slt i32 %.1111, %.3171
  %127 = select i1 %125, i1 %126, i1 false
  br i1 %127, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !14

128:                                              ; preds = %._crit_edge
  %129 = call zeroext i1 @IsMouseButtonPressed(i32 noundef 0) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %7) #5
  br i1 %129, label %134, label %.thread148

130:                                              ; preds = %24
  %131 = tail call zeroext i1 @CheckCollisionPointRec(<2 x float> %25, <2 x float> %0, <2 x float> %1) #5
  br i1 %131, label %132, label %.thread

132:                                              ; preds = %130
  %133 = tail call zeroext i1 @IsMouseButtonPressed(i32 noundef 0) #5
  br i1 %133, label %134, label %.thread140

134:                                              ; preds = %128, %132
  %.0139 = phi i32 [ 2, %128 ], [ 1, %132 ]
  %.sroa.056.0137 = phi <2 x float> [ %101, %128 ], [ zeroinitializer, %132 ]
  store i32 0, ptr @GuiTextBoxMulti.framesCounter, align 4, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %130, %134, %21
  %.sroa.056.1 = phi <2 x float> [ zeroinitializer, %21 ], [ %.sroa.056.0137, %134 ], [ zeroinitializer, %130 ]
  %.2 = phi i1 [ false, %21 ], [ true, %134 ], [ false, %130 ]
  %.1 = phi i32 [ %8, %21 ], [ %.0139, %134 ], [ %8, %130 ]
  %cond = icmp eq i32 %.1, 2
  br i1 %cond, label %.thread148, label %.thread140

.thread148:                                       ; preds = %.thread, %128, %.thread161
  %.2153 = phi i1 [ %.2, %.thread ], [ false, %.thread161 ], [ false, %128 ]
  %.sroa.056.1152 = phi <2 x float> [ %.sroa.056.1, %.thread ], [ %101, %.thread161 ], [ %101, %128 ]
  %135 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 12)
  %136 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 6)
  %137 = call i32 @GetColor(i32 noundef %136) #5
  %138 = load float, ptr @guiAlpha, align 4, !tbaa !16
  %139 = call i32 @Fade(i32 %137, float noundef %138) #5
  %140 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 7)
  %141 = call i32 @GetColor(i32 noundef %140) #5
  %142 = load float, ptr @guiAlpha, align 4, !tbaa !16
  %143 = call i32 @Fade(i32 %141, float noundef %142) #5
  call void @GuiDrawRectangle(<2 x float> %0, <2 x float> %1, i32 noundef %135, i32 %139, i32 %143)
  br i1 %4, label %144, label %169

144:                                              ; preds = %.thread148
  %145 = load i32, ptr @GuiTextBoxMulti.framesCounter, align 4, !tbaa !5
  %146 = sdiv i32 %145, 20
  %147 = and i32 %146, 1
  %148 = icmp eq i32 %147, 0
  br i1 %148, label %149, label %169

149:                                              ; preds = %144
  %150 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 6)
  %151 = call i32 @GetColor(i32 noundef %150) #5
  %152 = load float, ptr @guiAlpha, align 4, !tbaa !16
  %153 = call i32 @Fade(i32 %151, float noundef %152) #5
  call void @GuiDrawRectangle(<2 x float> %.sroa.056.1152, <2 x float> %.sroa.7.12.vec.insert, i32 noundef 0, i32 0, i32 %153)
  br label %169

.thread155:                                       ; preds = %5
  %154 = tail call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 12)
  %155 = tail call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 9)
  %156 = tail call i32 @GetColor(i32 noundef %155) #5
  %157 = load float, ptr @guiAlpha, align 4, !tbaa !16
  %158 = tail call i32 @Fade(i32 %156, float noundef %157) #5
  %159 = tail call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 10)
  %160 = tail call i32 @GetColor(i32 noundef %159) #5
  %161 = load float, ptr @guiAlpha, align 4, !tbaa !16
  %162 = tail call i32 @Fade(i32 %160, float noundef %161) #5
  tail call void @GuiDrawRectangle(<2 x float> %0, <2 x float> %1, i32 noundef %154, i32 %158, i32 %162)
  br label %169

.thread140:                                       ; preds = %.thread, %132
  %.1147 = phi i32 [ %.1, %.thread ], [ 1, %132 ]
  %.2145 = phi i1 [ %.2, %.thread ], [ false, %132 ]
  %163 = mul i32 %.1147, 3
  %164 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef %163)
  %165 = call i32 @GetColor(i32 noundef %164) #5
  %166 = load float, ptr @guiAlpha, align 4, !tbaa !16
  %167 = call i32 @Fade(i32 %165, float noundef %166) #5
  call void @GuiDrawRectangle(<2 x float> %0, <2 x float> %1, i32 noundef 1, i32 %167, i32 0)
  %168 = add i32 %163, 2
  br label %169

169:                                              ; preds = %.thread155, %.thread140, %.thread148, %144, %149
  %.1146 = phi i32 [ 11, %.thread155 ], [ %168, %.thread140 ], [ 8, %.thread148 ], [ 8, %144 ], [ 8, %149 ]
  %.2144 = phi i1 [ false, %.thread155 ], [ %.2145, %.thread140 ], [ %.2153, %.thread148 ], [ %.2153, %144 ], [ %.2153, %149 ]
  %170 = insertelement <2 x i32> poison, i32 %9, i64 0
  %171 = insertelement <2 x i32> %170, i32 %10, i64 1
  %172 = sitofp <2 x i32> %171 to <2 x float>
  %173 = fadd <2 x float> %172, %0
  %174 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %175 = sitofp i32 %174 to float
  %176 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 17)
  %177 = sitofp i32 %176 to float
  %178 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef %.1146)
  %179 = call i32 @GetColor(i32 noundef %178) #5
  %180 = load float, ptr @guiAlpha, align 4, !tbaa !16
  %181 = call i32 @Fade(i32 %179, float noundef %180) #5
  call void @DrawTextRec(ptr noundef nonnull byval(%struct.Font) align 8 @guiFont, ptr noundef %2, <2 x float> %173, <2 x float> %17, float noundef %175, float noundef %177, i1 noundef zeroext true, i32 %181) #5
  ret i1 %.2144
}

declare void @DrawTextRec(ptr noundef byval(%struct.Font) align 8, ptr noundef, <2 x float>, <2 x float>, float noundef, float noundef, i1 noundef zeroext, i32) local_unnamed_addr #3

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

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_Bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !17, i64 0}
!17 = !{!"float", !7, i64 0}


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