; 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
@.str.19 = external hidden unnamed_addr constant [3 x i8], align 1

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

; Function Attrs: nocallback nofree 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 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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL12GetTextWidthPKc(ptr noundef) #4

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

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

; 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

declare i32 @GetCharPressed() #5

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

declare zeroext i1 @IsKeyPressed(i32 noundef) #5

; Function Attrs: mustprogress uwtable
define dso_local zeroext i1 @GuiValueBox(<2 x float> %0, <2 x float> %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i1 noundef zeroext %6) #4 {
  %8 = alloca %struct.Rectangle, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i8, align 1
  %14 = alloca i32, align 4
  %15 = alloca i8, align 1
  %16 = alloca [33 x i8], align 16
  %17 = alloca %struct.Rectangle, align 4
  %18 = alloca %struct.Vector2, align 4
  %19 = alloca i8, align 1
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca %struct.Vector2, align 4
  %23 = alloca %struct.Rectangle, align 4
  %24 = alloca %struct.Vector2, align 4
  %25 = alloca %struct.Rectangle, align 4
  %26 = alloca %struct.Color, align 1
  %27 = alloca %struct.Color, align 1
  %28 = alloca %struct.Color, align 1
  %29 = alloca %struct.Rectangle, align 4
  %30 = alloca %struct.Color, align 1
  %31 = alloca %struct.Color, align 1
  %32 = alloca %struct.Color, align 1
  %33 = alloca %struct.Rectangle, align 4
  %34 = alloca %struct.Rectangle, align 4
  %35 = alloca %struct.Color, align 1
  %36 = alloca %struct.Color, align 1
  %37 = alloca %struct.Rectangle, align 4
  %38 = alloca %struct.Rectangle, align 4
  %39 = alloca %struct.Color, align 1
  %40 = alloca %struct.Color, align 1
  %41 = alloca %struct.Color, align 1
  %42 = alloca %struct.Rectangle, align 4
  %43 = alloca %struct.Color, align 1
  %44 = alloca %struct.Color, align 1
  %45 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %8, i32 0, i32 0
  store <2 x float> %0, ptr %45, align 4
  %46 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %8, i32 0, i32 1
  store <2 x float> %1, ptr %46, align 4
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store i32 %4, ptr %11, align 4, !tbaa !9
  store i32 %5, ptr %12, align 4, !tbaa !9
  %47 = zext i1 %6 to i8
  store i8 %47, ptr %13, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  %48 = load i32, ptr @_ZL8guiState, align 4, !tbaa !13
  store i32 %48, ptr %14, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #8
  store i8 0, ptr %15, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 33, ptr %16) #8
  call void @llvm.memset.p0.i64(ptr align 16 %16, i8 0, i64 33, i1 false)
  %49 = getelementptr inbounds [33 x i8], ptr %16, i64 0, i64 0
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  %51 = load i32, ptr %50, align 4, !tbaa !9
  %52 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %49, ptr noundef @.str.19, i32 noundef %51) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #8
  call void @llvm.memset.p0.i64(ptr align 4 %17, i8 0, i64 16, i1 false)
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = icmp ne ptr %53, null
  br i1 %54, label %55, label %96

55:                                               ; preds = %7
  %56 = load ptr, ptr %9, align 8, !tbaa !5
  %57 = call noundef i32 @_ZL12GetTextWidthPKc(ptr noundef %56)
  %58 = sitofp i32 %57 to float
  %59 = getelementptr inbounds %struct.Rectangle, ptr %17, i32 0, i32 2
  store float %58, ptr %59, align 4, !tbaa !15
  %60 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %61 = sitofp i32 %60 to float
  %62 = getelementptr inbounds %struct.Rectangle, ptr %17, i32 0, i32 3
  store float %61, ptr %62, align 4, !tbaa !18
  %63 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 0
  %64 = load float, ptr %63, align 4, !tbaa !19
  %65 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 2
  %66 = load float, ptr %65, align 4, !tbaa !15
  %67 = fadd float %64, %66
  %68 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 13)
  %69 = sitofp i32 %68 to float
  %70 = fadd float %67, %69
  %71 = getelementptr inbounds %struct.Rectangle, ptr %17, i32 0, i32 0
  store float %70, ptr %71, align 4, !tbaa !19
  %72 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 1
  %73 = load float, ptr %72, align 4, !tbaa !20
  %74 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 3
  %75 = load float, ptr %74, align 4, !tbaa !18
  %76 = fdiv float %75, 2.000000e+00
  %77 = fadd float %73, %76
  %78 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %79 = sdiv i32 %78, 2
  %80 = sitofp i32 %79 to float
  %81 = fsub float %77, %80
  %82 = getelementptr inbounds %struct.Rectangle, ptr %17, i32 0, i32 1
  store float %81, ptr %82, align 4, !tbaa !20
  %83 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 14)
  %84 = icmp eq i32 %83, 0
  br i1 %84, label %85, label %95

85:                                               ; preds = %55
  %86 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 0
  %87 = load float, ptr %86, align 4, !tbaa !19
  %88 = getelementptr inbounds %struct.Rectangle, ptr %17, i32 0, i32 2
  %89 = load float, ptr %88, align 4, !tbaa !15
  %90 = fsub float %87, %89
  %91 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 13)
  %92 = sitofp i32 %91 to float
  %93 = fsub float %90, %92
  %94 = getelementptr inbounds %struct.Rectangle, ptr %17, i32 0, i32 0
  store float %93, ptr %94, align 4, !tbaa !19
  br label %95

95:                                               ; preds = %85, %55
  br label %96

96:                                               ; preds = %95, %7
  %97 = load i32, ptr %14, align 4, !tbaa !13
  %98 = icmp ne i32 %97, 3
  br i1 %98, label %99, label %202

99:                                               ; preds = %96
  %100 = load i8, ptr @_ZL9guiLocked, align 1, !tbaa !11, !range !21, !noundef !22
  %101 = trunc i8 %100 to i1
  br i1 %101, label %202, label %102

102:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %103 = call <2 x float> @GetMousePosition()
  store <2 x float> %103, ptr %18, align 4
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #8
  store i8 0, ptr %19, align 1, !tbaa !11
  %104 = load i8, ptr %13, align 1, !tbaa !11, !range !21, !noundef !22
  %105 = trunc i8 %104 to i1
  br i1 %105, label %106, label %172

106:                                              ; preds = %102
  store i32 2, ptr %14, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %107 = getelementptr inbounds [33 x i8], ptr %16, i64 0, i64 0
  %108 = call i64 @strlen(ptr noundef %107) #9
  %109 = trunc i64 %108 to i32
  store i32 %109, ptr %20, align 4, !tbaa !9
  %110 = load i32, ptr %20, align 4, !tbaa !9
  %111 = icmp slt i32 %110, 32
  br i1 %111, label %112, label %136

112:                                              ; preds = %106
  %113 = getelementptr inbounds [33 x i8], ptr %16, i64 0, i64 0
  %114 = call noundef i32 @_ZL12GetTextWidthPKc(ptr noundef %113)
  %115 = sitofp i32 %114 to float
  %116 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 2
  %117 = load float, ptr %116, align 4, !tbaa !15
  %118 = fcmp olt float %115, %117
  br i1 %118, label %119, label %135

119:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %120 = call i32 @GetCharPressed()
  store i32 %120, ptr %21, align 4, !tbaa !9
  %121 = load i32, ptr %21, align 4, !tbaa !9
  %122 = icmp sge i32 %121, 48
  br i1 %122, label %123, label %134

123:                                              ; preds = %119
  %124 = load i32, ptr %21, align 4, !tbaa !9
  %125 = icmp sle i32 %124, 57
  br i1 %125, label %126, label %134

126:                                              ; preds = %123
  %127 = load i32, ptr %21, align 4, !tbaa !9
  %128 = trunc i32 %127 to i8
  %129 = load i32, ptr %20, align 4, !tbaa !9
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [33 x i8], ptr %16, i64 0, i64 %130
  store i8 %128, ptr %131, align 1, !tbaa !23
  %132 = load i32, ptr %20, align 4, !tbaa !9
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %20, align 4, !tbaa !9
  store i8 1, ptr %19, align 1, !tbaa !11
  br label %134

134:                                              ; preds = %126, %123, %119
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %135

135:                                              ; preds = %134, %112
  br label %136

136:                                              ; preds = %135, %106
  %137 = load i32, ptr %20, align 4, !tbaa !9
  %138 = icmp sgt i32 %137, 0
  br i1 %138, label %139, label %152

139:                                              ; preds = %136
  %140 = call zeroext i1 @IsKeyPressed(i32 noundef 259)
  br i1 %140, label %141, label %151

141:                                              ; preds = %139
  %142 = load i32, ptr %20, align 4, !tbaa !9
  %143 = add nsw i32 %142, -1
  store i32 %143, ptr %20, align 4, !tbaa !9
  %144 = load i32, ptr %20, align 4, !tbaa !9
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [33 x i8], ptr %16, i64 0, i64 %145
  store i8 0, ptr %146, align 1, !tbaa !23
  %147 = load i32, ptr %20, align 4, !tbaa !9
  %148 = icmp slt i32 %147, 0
  br i1 %148, label %149, label %150

149:                                              ; preds = %141
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %150

150:                                              ; preds = %149, %141
  store i8 1, ptr %19, align 1, !tbaa !11
  br label %151

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

152:                                              ; preds = %151, %136
  %153 = load i8, ptr %19, align 1, !tbaa !11, !range !21, !noundef !22
  %154 = trunc i8 %153 to i1
  br i1 %154, label %155, label %159

155:                                              ; preds = %152
  %156 = getelementptr inbounds [33 x i8], ptr %16, i64 0, i64 0
  %157 = call i32 @TextToInteger(ptr noundef %156)
  %158 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 %157, ptr %158, align 4, !tbaa !9
  br label %159

159:                                              ; preds = %155, %152
  %160 = call zeroext i1 @IsKeyPressed(i32 noundef 257)
  br i1 %160, label %170, label %161

161:                                              ; preds = %159
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %18, i64 8, i1 false), !tbaa.struct !24
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %8, i64 16, i1 false), !tbaa.struct !26
  %162 = load <2 x float>, ptr %22, align 4
  %163 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %23, i32 0, i32 0
  %164 = load <2 x float>, ptr %163, align 4
  %165 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %23, i32 0, i32 1
  %166 = load <2 x float>, ptr %165, align 4
  %167 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %162, <2 x float> %164, <2 x float> %166)
  br i1 %167, label %171, label %168

168:                                              ; preds = %161
  %169 = call zeroext i1 @IsMouseButtonPressed(i32 noundef 0)
  br i1 %169, label %170, label %171

170:                                              ; preds = %168, %159
  store i8 1, ptr %15, align 1, !tbaa !11
  br label %171

171:                                              ; preds = %170, %168, %161
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %201

172:                                              ; preds = %102
  %173 = load ptr, ptr %10, align 8, !tbaa !5
  %174 = load i32, ptr %173, align 4, !tbaa !9
  %175 = load i32, ptr %12, align 4, !tbaa !9
  %176 = icmp sgt i32 %174, %175
  br i1 %176, label %177, label %180

177:                                              ; preds = %172
  %178 = load i32, ptr %12, align 4, !tbaa !9
  %179 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 %178, ptr %179, align 4, !tbaa !9
  br label %189

180:                                              ; preds = %172
  %181 = load ptr, ptr %10, align 8, !tbaa !5
  %182 = load i32, ptr %181, align 4, !tbaa !9
  %183 = load i32, ptr %11, align 4, !tbaa !9
  %184 = icmp slt i32 %182, %183
  br i1 %184, label %185, label %188

185:                                              ; preds = %180
  %186 = load i32, ptr %11, align 4, !tbaa !9
  %187 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 %186, ptr %187, align 4, !tbaa !9
  br label %188

188:                                              ; preds = %185, %180
  br label %189

189:                                              ; preds = %188, %177
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %18, i64 8, i1 false), !tbaa.struct !24
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %8, i64 16, i1 false), !tbaa.struct !26
  %190 = load <2 x float>, ptr %24, align 4
  %191 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %25, i32 0, i32 0
  %192 = load <2 x float>, ptr %191, align 4
  %193 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %25, i32 0, i32 1
  %194 = load <2 x float>, ptr %193, align 4
  %195 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %190, <2 x float> %192, <2 x float> %194)
  br i1 %195, label %196, label %200

196:                                              ; preds = %189
  store i32 1, ptr %14, align 4, !tbaa !13
  %197 = call zeroext i1 @IsMouseButtonPressed(i32 noundef 0)
  br i1 %197, label %198, label %199

198:                                              ; preds = %196
  store i8 1, ptr %15, align 1, !tbaa !11
  br label %199

199:                                              ; preds = %198, %196
  br label %200

200:                                              ; preds = %199, %189
  br label %201

201:                                              ; preds = %200, %171
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %202

202:                                              ; preds = %201, %99, %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  call void @llvm.memset.p0.i64(ptr align 1 %26, i8 0, i64 4, i1 false)
  %203 = load i32, ptr %14, align 4, !tbaa !13
  %204 = icmp eq i32 %203, 2
  br i1 %204, label %205, label %208

205:                                              ; preds = %202
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %206 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 7)
  %207 = call i32 @GetColor(i32 noundef %206)
  store i32 %207, ptr %27, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %26, ptr align 1 %27, i64 4, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  br label %215

208:                                              ; preds = %202
  %209 = load i32, ptr %14, align 4, !tbaa !13
  %210 = icmp eq i32 %209, 3
  br i1 %210, label %211, label %214

211:                                              ; preds = %208
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  %212 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 10)
  %213 = call i32 @GetColor(i32 noundef %212)
  store i32 %213, ptr %28, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %26, ptr align 1 %28, i64 4, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %214

214:                                              ; preds = %211, %208
  br label %215

215:                                              ; preds = %214, %205
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 4 %8, i64 16, i1 false), !tbaa.struct !26
  %216 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 12)
  %217 = load i32, ptr %14, align 4, !tbaa !13
  %218 = mul nsw i32 %217, 3
  %219 = add nsw i32 0, %218
  %220 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef %219)
  %221 = call i32 @GetColor(i32 noundef %220)
  store i32 %221, ptr %31, align 1
  %222 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !25
  %223 = load i32, ptr %31, align 1
  %224 = call i32 @Fade(i32 %223, float noundef %222)
  store i32 %224, ptr %30, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %32, ptr align 1 %26, i64 4, i1 false), !tbaa.struct !27
  %225 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %29, i32 0, i32 0
  %226 = load <2 x float>, ptr %225, align 4
  %227 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %29, i32 0, i32 1
  %228 = load <2 x float>, ptr %227, align 4
  %229 = load i32, ptr %30, align 1
  %230 = load i32, ptr %32, align 1
  call void @_ZL16GuiDrawRectangle9Rectanglei5ColorS0_(<2 x float> %226, <2 x float> %228, i32 noundef %216, i32 %229, i32 %230)
  %231 = getelementptr inbounds [33 x i8], ptr %16, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 4 %8, i64 16, i1 false), !tbaa.struct !26
  %232 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %34, i32 0, i32 0
  %233 = load <2 x float>, ptr %232, align 4
  %234 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %34, i32 0, i32 1
  %235 = load <2 x float>, ptr %234, align 4
  %236 = call { <2 x float>, <2 x float> } @_ZL13GetTextBoundsi9Rectangle(i32 noundef 10, <2 x float> %233, <2 x float> %235)
  %237 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %33, i32 0, i32 0
  %238 = extractvalue { <2 x float>, <2 x float> } %236, 0
  store <2 x float> %238, ptr %237, align 4
  %239 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %33, i32 0, i32 1
  %240 = extractvalue { <2 x float>, <2 x float> } %236, 1
  store <2 x float> %240, ptr %239, align 4
  %241 = load i32, ptr %14, align 4, !tbaa !13
  %242 = mul nsw i32 %241, 3
  %243 = add nsw i32 2, %242
  %244 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef %243)
  %245 = call i32 @GetColor(i32 noundef %244)
  store i32 %245, ptr %36, align 1
  %246 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !25
  %247 = load i32, ptr %36, align 1
  %248 = call i32 @Fade(i32 %247, float noundef %246)
  store i32 %248, ptr %35, align 1
  %249 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %33, i32 0, i32 0
  %250 = load <2 x float>, ptr %249, align 4
  %251 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %33, i32 0, i32 1
  %252 = load <2 x float>, ptr %251, align 4
  %253 = load i32, ptr %35, align 1
  call void @_ZL11GuiDrawTextPKc9Rectanglei5Color(ptr noundef %231, <2 x float> %250, <2 x float> %252, i32 noundef 1, i32 %253)
  %254 = load i8, ptr %13, align 1, !tbaa !11, !range !21, !noundef !22
  %255 = trunc i8 %254 to i1
  br i1 %255, label %256, label %300

256:                                              ; preds = %215
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #8
  %257 = getelementptr inbounds %struct.Rectangle, ptr %37, i32 0, i32 0
  %258 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 0
  %259 = load float, ptr %258, align 4, !tbaa !19
  %260 = getelementptr inbounds [33 x i8], ptr %16, i64 0, i64 0
  %261 = call noundef i32 @_ZL12GetTextWidthPKc(ptr noundef %260)
  %262 = sdiv i32 %261, 2
  %263 = sitofp i32 %262 to float
  %264 = fadd float %259, %263
  %265 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 2
  %266 = load float, ptr %265, align 4, !tbaa !15
  %267 = fdiv float %266, 2.000000e+00
  %268 = fadd float %264, %267
  %269 = fadd float %268, 2.000000e+00
  store float %269, ptr %257, align 4, !tbaa !19
  %270 = getelementptr inbounds %struct.Rectangle, ptr %37, i32 0, i32 1
  %271 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 1
  %272 = load float, ptr %271, align 4, !tbaa !20
  %273 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 12)
  %274 = mul nsw i32 2, %273
  %275 = sitofp i32 %274 to float
  %276 = fadd float %272, %275
  store float %276, ptr %270, align 4, !tbaa !20
  %277 = getelementptr inbounds %struct.Rectangle, ptr %37, i32 0, i32 2
  store float 4.000000e+00, ptr %277, align 4, !tbaa !15
  %278 = getelementptr inbounds %struct.Rectangle, ptr %37, i32 0, i32 3
  %279 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 3
  %280 = load float, ptr %279, align 4, !tbaa !18
  %281 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 12)
  %282 = mul nsw i32 4, %281
  %283 = sitofp i32 %282 to float
  %284 = fsub float %280, %283
  store float %284, ptr %278, align 4, !tbaa !18
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 4 %37, i64 16, i1 false), !tbaa.struct !26
  %285 = getelementptr inbounds %struct.Color, ptr %39, i32 0, i32 0
  store i8 0, ptr %285, align 1, !tbaa !28
  %286 = getelementptr inbounds %struct.Color, ptr %39, i32 0, i32 1
  store i8 0, ptr %286, align 1, !tbaa !30
  %287 = getelementptr inbounds %struct.Color, ptr %39, i32 0, i32 2
  store i8 0, ptr %287, align 1, !tbaa !31
  %288 = getelementptr inbounds %struct.Color, ptr %39, i32 0, i32 3
  store i8 0, ptr %288, align 1, !tbaa !32
  %289 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 6)
  %290 = call i32 @GetColor(i32 noundef %289)
  store i32 %290, ptr %41, align 1
  %291 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !25
  %292 = load i32, ptr %41, align 1
  %293 = call i32 @Fade(i32 %292, float noundef %291)
  store i32 %293, ptr %40, align 1
  %294 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %38, i32 0, i32 0
  %295 = load <2 x float>, ptr %294, align 4
  %296 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %38, i32 0, i32 1
  %297 = load <2 x float>, ptr %296, align 4
  %298 = load i32, ptr %39, align 1
  %299 = load i32, ptr %40, align 1
  call void @_ZL16GuiDrawRectangle9Rectanglei5ColorS0_(<2 x float> %295, <2 x float> %297, i32 noundef 0, i32 %298, i32 %299)
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #8
  br label %300

300:                                              ; preds = %256, %215
  %301 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 %17, i64 16, i1 false), !tbaa.struct !26
  %302 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 14)
  %303 = icmp eq i32 %302, 2
  %304 = zext i1 %303 to i64
  %305 = select i1 %303, i32 0, i32 2
  %306 = load i32, ptr %14, align 4, !tbaa !13
  %307 = mul nsw i32 %306, 3
  %308 = add nsw i32 2, %307
  %309 = call i32 @GuiGetStyle(i32 noundef 1, i32 noundef %308)
  %310 = call i32 @GetColor(i32 noundef %309)
  store i32 %310, ptr %44, align 1
  %311 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !25
  %312 = load i32, ptr %44, align 1
  %313 = call i32 @Fade(i32 %312, float noundef %311)
  store i32 %313, ptr %43, align 1
  %314 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %42, i32 0, i32 0
  %315 = load <2 x float>, ptr %314, align 4
  %316 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %42, i32 0, i32 1
  %317 = load <2 x float>, ptr %316, align 4
  %318 = load i32, ptr %43, align 1
  call void @_ZL11GuiDrawTextPKc9Rectanglei5Color(ptr noundef %301, <2 x float> %315, <2 x float> %317, i32 noundef %305, i32 %318)
  %319 = load i8, ptr %15, align 1, !tbaa !11, !range !21, !noundef !22
  %320 = trunc i8 %319 to i1
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 33, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  ret i1 %320
}

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #7

declare i32 @TextToInteger(ptr noundef) #5

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 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 #7 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTS15GuiControlState", !7, i64 0}
!15 = !{!16, !17, i64 8}
!16 = !{!"_ZTS9Rectangle", !17, i64 0, !17, i64 4, !17, i64 8, !17, i64 12}
!17 = !{!"float", !7, i64 0}
!18 = !{!16, !17, i64 12}
!19 = !{!16, !17, i64 0}
!20 = !{!16, !17, i64 4}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!7, !7, i64 0}
!24 = !{i64 0, i64 4, !25, i64 4, i64 4, !25}
!25 = !{!17, !17, i64 0}
!26 = !{i64 0, i64 4, !25, i64 4, i64 4, !25, i64 8, i64 4, !25, i64 12, i64 4, !25}
!27 = !{i64 0, i64 1, !23, i64 1, i64 1, !23, i64 2, i64 1, !23, i64 3, i64 1, !23}
!28 = !{!29, !7, i64 0}
!29 = !{!"_ZTS5Color", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3}
!30 = !{!29, !7, i64 1}
!31 = !{!29, !7, i64 2}
!32 = !{!29, !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"

@_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
@.str.19 = external hidden unnamed_addr constant [3 x i8], align 1

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

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

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

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

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

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

declare i32 @GetColor(i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL12GetTextWidthPKc(ptr noundef) local_unnamed_addr #3

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

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

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

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

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

declare i32 @GetCharPressed() local_unnamed_addr #4

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

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

; Function Attrs: mustprogress uwtable
define dso_local zeroext i1 @GuiValueBox(<2 x float> %0, <2 x float> %1, ptr noundef %2, ptr nocapture noundef %3, i32 noundef %4, i32 noundef %5, i1 noundef zeroext %6) local_unnamed_addr #3 {
  %8 = alloca [33 x i8], align 16
  %9 = load i32, ptr @_ZL8guiState, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 33, ptr nonnull %8) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(33) %8, i8 0, i64 33, i1 false)
  %10 = load i32, ptr %3, align 4, !tbaa !9
  %11 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.19, i32 noundef %10) #7
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %37, label %12

12:                                               ; preds = %7
  %13 = tail call noundef i32 @_ZL12GetTextWidthPKc(ptr noundef nonnull %2)
  %14 = tail call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %15 = insertelement <2 x i32> poison, i32 %13, i64 0
  %16 = insertelement <2 x i32> %15, i32 %14, i64 1
  %17 = sitofp <2 x i32> %16 to <2 x float>
  %18 = fadd <2 x float> %0, %1
  %19 = extractelement <2 x float> %18, i64 0
  %20 = tail call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 13)
  %21 = sitofp i32 %20 to float
  %22 = fadd float %19, %21
  %.sroa.045.0.vec.insert = insertelement <2 x float> poison, float %22, i64 0
  %.sroa.072.4.vec.extract = extractelement <2 x float> %0, i64 1
  %.sroa.10.12.vec.extract = extractelement <2 x float> %1, i64 1
  %23 = fmul float %.sroa.10.12.vec.extract, 5.000000e-01
  %24 = fadd float %.sroa.072.4.vec.extract, %23
  %25 = tail call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %26 = sdiv i32 %25, 2
  %27 = sitofp i32 %26 to float
  %28 = fsub float %24, %27
  %.sroa.045.4.vec.insert = insertelement <2 x float> %.sroa.045.0.vec.insert, float %28, i64 1
  %29 = tail call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 14)
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %31, label %37

31:                                               ; preds = %12
  %32 = fsub <2 x float> %0, %17
  %33 = extractelement <2 x float> %32, i64 0
  %34 = tail call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 13)
  %35 = sitofp i32 %34 to float
  %36 = fsub float %33, %35
  %.sroa.045.0.vec.insert48 = insertelement <2 x float> %.sroa.045.4.vec.insert, float %36, i64 0
  br label %37

37:                                               ; preds = %12, %31, %7
  %.sroa.045.0 = phi <2 x float> [ %.sroa.045.0.vec.insert48, %31 ], [ %.sroa.045.4.vec.insert, %12 ], [ zeroinitializer, %7 ]
  %.sroa.7.0 = phi <2 x float> [ %17, %31 ], [ %17, %12 ], [ zeroinitializer, %7 ]
  %.not109 = icmp eq i32 %9, 3
  br i1 %.not109, label %.thread126, label %38

38:                                               ; preds = %37
  %39 = load i8, ptr @_ZL9guiLocked, align 1, !tbaa !11, !range !13, !noundef !14
  %40 = trunc nuw i8 %39 to i1
  br i1 %40, label %83, label %41

41:                                               ; preds = %38
  %42 = tail call <2 x float> @GetMousePosition()
  br i1 %6, label %43, label %75

43:                                               ; preds = %41
  %44 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %8) #8
  %45 = trunc i64 %44 to i32
  %46 = icmp slt i32 %45, 32
  br i1 %46, label %47, label %.thread

47:                                               ; preds = %43
  %48 = call noundef i32 @_ZL12GetTextWidthPKc(ptr noundef nonnull %8)
  %49 = sitofp i32 %48 to float
  %.sroa.10.8.vec.extract88 = extractelement <2 x float> %1, i64 0
  %50 = fcmp ogt float %.sroa.10.8.vec.extract88, %49
  br i1 %50, label %51, label %59

51:                                               ; preds = %47
  %52 = call i32 @GetCharPressed()
  %53 = add i32 %52, -48
  %or.cond = icmp ult i32 %53, 10
  br i1 %or.cond, label %54, label %59

54:                                               ; preds = %51
  %55 = trunc nuw nsw i32 %52 to i8
  %sext = shl i64 %44, 32
  %56 = ashr exact i64 %sext, 32
  %57 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 %56
  store i8 %55, ptr %57, align 1, !tbaa !15
  %58 = add nsw i32 %45, 1
  br label %59

59:                                               ; preds = %51, %54, %47
  %.199 = phi i32 [ %45, %47 ], [ %58, %54 ], [ %45, %51 ]
  %.196 = phi i1 [ false, %47 ], [ true, %54 ], [ false, %51 ]
  %60 = icmp sgt i32 %.199, 0
  br i1 %60, label %.thread, label %65

.thread:                                          ; preds = %43, %59
  %.196113 = phi i1 [ %.196, %59 ], [ false, %43 ]
  %.199112 = phi i32 [ %.199, %59 ], [ %45, %43 ]
  %61 = call zeroext i1 @IsKeyPressed(i32 noundef 259)
  br i1 %61, label %.thread114, label %65

.thread114:                                       ; preds = %.thread
  %62 = add nsw i32 %.199112, -1
  %63 = zext nneg i32 %62 to i64
  %64 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 %63
  store i8 0, ptr %64, align 1, !tbaa !15
  br label %66

65:                                               ; preds = %.thread, %59
  %.297 = phi i1 [ %.196113, %.thread ], [ %.196, %59 ]
  br i1 %.297, label %66, label %68

66:                                               ; preds = %.thread114, %65
  %67 = call i32 @TextToInteger(ptr noundef nonnull %8)
  store i32 %67, ptr %3, align 4, !tbaa !9
  br label %68

68:                                               ; preds = %66, %65
  %69 = call zeroext i1 @IsKeyPressed(i32 noundef 257)
  br i1 %69, label %74, label %70

70:                                               ; preds = %68
  %71 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %42, <2 x float> %0, <2 x float> %1)
  br i1 %71, label %.thread116, label %72

72:                                               ; preds = %70
  %73 = call zeroext i1 @IsMouseButtonPressed(i32 noundef 0)
  br i1 %73, label %74, label %.thread116

74:                                               ; preds = %72, %68
  br label %.thread116

75:                                               ; preds = %41
  %76 = load i32, ptr %3, align 4, !tbaa !9
  %77 = icmp sgt i32 %76, %5
  br i1 %77, label %.sink.split, label %78

78:                                               ; preds = %75
  %79 = icmp slt i32 %76, %4
  br i1 %79, label %.sink.split, label %80

.sink.split:                                      ; preds = %78, %75
  %.sink = phi i32 [ %5, %75 ], [ %4, %78 ]
  store i32 %.sink, ptr %3, align 4, !tbaa !9
  br label %80

80:                                               ; preds = %.sink.split, %78
  %81 = tail call zeroext i1 @CheckCollisionPointRec(<2 x float> %42, <2 x float> %0, <2 x float> %1)
  br i1 %81, label %.thread123, label %83

.thread123:                                       ; preds = %80
  %82 = tail call zeroext i1 @IsMouseButtonPressed(i32 noundef 0)
  br label %88

83:                                               ; preds = %80, %38
  %cond = icmp eq i32 %9, 2
  br i1 %cond, label %.thread116, label %88

.thread116:                                       ; preds = %83, %70, %72, %74
  %.2119 = phi i1 [ false, %83 ], [ false, %72 ], [ false, %70 ], [ true, %74 ]
  %84 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 7)
  %85 = call i32 @GetColor(i32 noundef %84)
  br label %88

.thread126:                                       ; preds = %37
  %86 = tail call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 10)
  %87 = tail call i32 @GetColor(i32 noundef %86)
  br label %88

88:                                               ; preds = %83, %.thread123, %.thread126, %.thread116
  %.1122 = phi i32 [ 2, %.thread116 ], [ 3, %.thread126 ], [ %9, %83 ], [ 1, %.thread123 ]
  %.2120 = phi i1 [ %.2119, %.thread116 ], [ false, %.thread126 ], [ false, %83 ], [ %82, %.thread123 ]
  %.sroa.026.0 = phi i32 [ %85, %.thread116 ], [ %87, %.thread126 ], [ 0, %83 ], [ 0, %.thread123 ]
  %89 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 12)
  %90 = mul nsw i32 %.1122, 3
  %91 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef %90)
  %92 = call i32 @GetColor(i32 noundef %91)
  %93 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !16
  %94 = call i32 @Fade(i32 %92, float noundef %93)
  call void @_ZL16GuiDrawRectangle9Rectanglei5ColorS0_(<2 x float> %0, <2 x float> %1, i32 noundef %89, i32 %94, i32 %.sroa.026.0)
  %95 = call { <2 x float>, <2 x float> } @_ZL13GetTextBoundsi9Rectangle(i32 noundef 10, <2 x float> %0, <2 x float> %1)
  %96 = extractvalue { <2 x float>, <2 x float> } %95, 0
  %97 = extractvalue { <2 x float>, <2 x float> } %95, 1
  %98 = add nsw i32 %90, 2
  %99 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef %98)
  %100 = call i32 @GetColor(i32 noundef %99)
  %101 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !16
  %102 = call i32 @Fade(i32 %100, float noundef %101)
  call void @_ZL11GuiDrawTextPKc9Rectanglei5Color(ptr noundef nonnull %8, <2 x float> %96, <2 x float> %97, i32 noundef 1, i32 %102)
  br i1 %6, label %103, label %124

103:                                              ; preds = %88
  %.sroa.072.0.vec.extract80 = extractelement <2 x float> %0, i64 0
  %104 = call noundef i32 @_ZL12GetTextWidthPKc(ptr noundef nonnull %8)
  %105 = sdiv i32 %104, 2
  %106 = sitofp i32 %105 to float
  %107 = fadd float %.sroa.072.0.vec.extract80, %106
  %.sroa.10.8.vec.extract90 = extractelement <2 x float> %1, i64 0
  %108 = fmul float %.sroa.10.8.vec.extract90, 5.000000e-01
  %109 = fadd float %108, %107
  %110 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 12)
  %111 = shl nsw i32 %110, 1
  %112 = sitofp i32 %111 to float
  %113 = insertelement <2 x float> %0, float %109, i64 0
  %114 = insertelement <2 x float> <float 2.000000e+00, float poison>, float %112, i64 1
  %115 = fadd <2 x float> %113, %114
  %.sroa.10.12.vec.extract92 = extractelement <2 x float> %1, i64 1
  %116 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 12)
  %117 = shl nsw i32 %116, 2
  %118 = sitofp i32 %117 to float
  %119 = fsub float %.sroa.10.12.vec.extract92, %118
  %.sroa.5.12.vec.insert = insertelement <2 x float> <float 4.000000e+00, float poison>, float %119, i64 1
  %120 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 6)
  %121 = call i32 @GetColor(i32 noundef %120)
  %122 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !16
  %123 = call i32 @Fade(i32 %121, float noundef %122)
  call void @_ZL16GuiDrawRectangle9Rectanglei5ColorS0_(<2 x float> %115, <2 x float> %.sroa.5.12.vec.insert, i32 noundef 0, i32 0, i32 %123)
  br label %124

124:                                              ; preds = %103, %88
  %125 = call i32 @GuiGetStyle(i32 noundef 10, i32 noundef 14)
  %126 = icmp eq i32 %125, 2
  %127 = select i1 %126, i32 0, i32 2
  %128 = call i32 @GuiGetStyle(i32 noundef 1, i32 noundef %98)
  %129 = call i32 @GetColor(i32 noundef %128)
  %130 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !16
  %131 = call i32 @Fade(i32 %129, float noundef %130)
  call void @_ZL11GuiDrawTextPKc9Rectanglei5Color(ptr noundef %2, <2 x float> %.sroa.045.0, <2 x float> %.sroa.7.0, i32 noundef %127, i32 %131)
  call void @llvm.lifetime.end.p0(i64 33, ptr nonnull %8) #7
  ret i1 %.2120
}

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #6

declare i32 @TextToInteger(ptr noundef) local_unnamed_addr #4

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


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass