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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.Rectangle = type { float, float, float, float }
%struct.Vector2 = type { float, float }
%struct.Color = type { i8, i8, i8, i8 }

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local 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

declare zeroext i1 @IsMouseButtonDown(i32 noundef) #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
define dso_local noundef float @_Z12GuiSliderPro9RectanglePKcS1_fffi(<2 x float> %0, <2 x float> %1, ptr noundef %2, ptr noundef %3, float noundef %4, float noundef %5, float noundef %6, i32 noundef %7) #4 {
  %9 = alloca %struct.Rectangle, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %struct.Rectangle, align 4
  %19 = alloca %struct.Vector2, align 4
  %20 = alloca %struct.Vector2, align 4
  %21 = alloca %struct.Rectangle, align 4
  %22 = alloca %struct.Rectangle, 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.Rectangle, align 4
  %28 = alloca %struct.Color, align 1
  %29 = alloca %struct.Color, align 1
  %30 = alloca %struct.Color, align 1
  %31 = alloca %struct.Rectangle, align 4
  %32 = alloca %struct.Color, align 1
  %33 = alloca %struct.Color, align 1
  %34 = alloca %struct.Color, align 1
  %35 = alloca %struct.Rectangle, align 4
  %36 = alloca %struct.Rectangle, align 4
  %37 = alloca %struct.Color, align 1
  %38 = alloca %struct.Color, align 1
  %39 = alloca %struct.Rectangle, align 4
  %40 = alloca %struct.Rectangle, align 4
  %41 = alloca %struct.Color, align 1
  %42 = alloca %struct.Color, align 1
  %43 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %9, i32 0, i32 0
  store <2 x float> %0, ptr %43, align 4
  %44 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %9, i32 0, i32 1
  store <2 x float> %1, ptr %44, align 4
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store float %4, ptr %12, align 4, !tbaa !9
  store float %5, ptr %13, align 4, !tbaa !9
  store float %6, ptr %14, align 4, !tbaa !9
  store i32 %7, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %45 = load i32, ptr @_ZL8guiState, align 4, !tbaa !13
  store i32 %45, ptr %16, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %46 = load float, ptr %12, align 4, !tbaa !9
  %47 = load float, ptr %13, align 4, !tbaa !9
  %48 = fsub float %46, %47
  %49 = load float, ptr %14, align 4, !tbaa !9
  %50 = load float, ptr %13, align 4, !tbaa !9
  %51 = fsub float %49, %50
  %52 = fdiv float %48, %51
  %53 = getelementptr inbounds %struct.Rectangle, ptr %9, i32 0, i32 2
  %54 = load float, ptr %53, align 4, !tbaa !15
  %55 = call i32 @GuiGetStyle(i32 noundef 4, i32 noundef 12)
  %56 = mul nsw i32 2, %55
  %57 = sitofp i32 %56 to float
  %58 = fsub float %54, %57
  %59 = fmul float %52, %58
  %60 = fptosi float %59 to i32
  store i32 %60, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #6
  %61 = getelementptr inbounds %struct.Rectangle, ptr %18, i32 0, i32 0
  %62 = getelementptr inbounds %struct.Rectangle, ptr %9, i32 0, i32 0
  %63 = load float, ptr %62, align 4, !tbaa !17
  store float %63, ptr %61, align 4, !tbaa !17
  %64 = getelementptr inbounds %struct.Rectangle, ptr %18, i32 0, i32 1
  %65 = getelementptr inbounds %struct.Rectangle, ptr %9, i32 0, i32 1
  %66 = load float, ptr %65, align 4, !tbaa !18
  %67 = call i32 @GuiGetStyle(i32 noundef 4, i32 noundef 12)
  %68 = sitofp i32 %67 to float
  %69 = fadd float %66, %68
  %70 = call i32 @GuiGetStyle(i32 noundef 4, i32 noundef 17)
  %71 = sitofp i32 %70 to float
  %72 = fadd float %69, %71
  store float %72, ptr %64, align 4, !tbaa !18
  %73 = getelementptr inbounds %struct.Rectangle, ptr %18, i32 0, i32 2
  store float 0.000000e+00, ptr %73, align 4, !tbaa !15
  %74 = getelementptr inbounds %struct.Rectangle, ptr %18, i32 0, i32 3
  %75 = getelementptr inbounds %struct.Rectangle, ptr %9, i32 0, i32 3
  %76 = load float, ptr %75, align 4, !tbaa !19
  %77 = call i32 @GuiGetStyle(i32 noundef 4, i32 noundef 12)
  %78 = mul nsw i32 2, %77
  %79 = sitofp i32 %78 to float
  %80 = fsub float %76, %79
  %81 = call i32 @GuiGetStyle(i32 noundef 4, i32 noundef 17)
  %82 = mul nsw i32 2, %81
  %83 = sitofp i32 %82 to float
  %84 = fsub float %80, %83
  store float %84, ptr %74, align 4, !tbaa !19
  %85 = load i32, ptr %15, align 4, !tbaa !11
  %86 = icmp sgt i32 %85, 0
  br i1 %86, label %87, label %99

87:                                               ; preds = %8
  %88 = load i32, ptr %17, align 4, !tbaa !11
  %89 = load i32, ptr %15, align 4, !tbaa !11
  %90 = sdiv i32 %89, 2
  %91 = sub nsw i32 %88, %90
  %92 = sitofp i32 %91 to float
  %93 = getelementptr inbounds %struct.Rectangle, ptr %18, i32 0, i32 0
  %94 = load float, ptr %93, align 4, !tbaa !17
  %95 = fadd float %94, %92
  store float %95, ptr %93, align 4, !tbaa !17
  %96 = load i32, ptr %15, align 4, !tbaa !11
  %97 = sitofp i32 %96 to float
  %98 = getelementptr inbounds %struct.Rectangle, ptr %18, i32 0, i32 2
  store float %97, ptr %98, align 4, !tbaa !15
  br label %112

99:                                               ; preds = %8
  %100 = load i32, ptr %15, align 4, !tbaa !11
  %101 = icmp eq i32 %100, 0
  br i1 %101, label %102, label %111

102:                                              ; preds = %99
  %103 = call i32 @GuiGetStyle(i32 noundef 4, i32 noundef 12)
  %104 = sitofp i32 %103 to float
  %105 = getelementptr inbounds %struct.Rectangle, ptr %18, i32 0, i32 0
  %106 = load float, ptr %105, align 4, !tbaa !17
  %107 = fadd float %106, %104
  store float %107, ptr %105, align 4, !tbaa !17
  %108 = load i32, ptr %17, align 4, !tbaa !11
  %109 = sitofp i32 %108 to float
  %110 = getelementptr inbounds %struct.Rectangle, ptr %18, i32 0, i32 2
  store float %109, ptr %110, align 4, !tbaa !15
  br label %111

111:                                              ; preds = %102, %99
  br label %112

112:                                              ; preds = %111, %87
  %113 = load i32, ptr %16, align 4, !tbaa !13
  %114 = icmp ne i32 %113, 3
  br i1 %114, label %115, label %185

115:                                              ; preds = %112
  %116 = load i8, ptr @_ZL9guiLocked, align 1, !tbaa !20, !range !22, !noundef !23
  %117 = trunc i8 %116 to i1
  br i1 %117, label %185, label %118

118:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %119 = call <2 x float> @GetMousePosition()
  store <2 x float> %119, ptr %19, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %19, i64 8, i1 false), !tbaa.struct !24
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %9, i64 16, i1 false), !tbaa.struct !25
  %120 = load <2 x float>, ptr %20, align 4
  %121 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %21, i32 0, i32 0
  %122 = load <2 x float>, ptr %121, align 4
  %123 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %21, i32 0, i32 1
  %124 = load <2 x float>, ptr %123, align 4
  %125 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %120, <2 x float> %122, <2 x float> %124)
  br i1 %125, label %126, label %171

126:                                              ; preds = %118
  %127 = call zeroext i1 @IsMouseButtonDown(i32 noundef 0)
  br i1 %127, label %128, label %169

128:                                              ; preds = %126
  store i32 2, ptr %16, align 4, !tbaa !13
  %129 = load float, ptr %14, align 4, !tbaa !9
  %130 = load float, ptr %13, align 4, !tbaa !9
  %131 = fsub float %129, %130
  %132 = getelementptr inbounds %struct.Vector2, ptr %19, i32 0, i32 0
  %133 = load float, ptr %132, align 4, !tbaa !26
  %134 = getelementptr inbounds %struct.Rectangle, ptr %9, i32 0, i32 0
  %135 = load float, ptr %134, align 4, !tbaa !17
  %136 = load i32, ptr %15, align 4, !tbaa !11
  %137 = sdiv i32 %136, 2
  %138 = sitofp i32 %137 to float
  %139 = fadd float %135, %138
  %140 = fsub float %133, %139
  %141 = fmul float %131, %140
  %142 = getelementptr inbounds %struct.Rectangle, ptr %9, i32 0, i32 2
  %143 = load float, ptr %142, align 4, !tbaa !15
  %144 = load i32, ptr %15, align 4, !tbaa !11
  %145 = sitofp i32 %144 to float
  %146 = fsub float %143, %145
  %147 = fdiv float %141, %146
  %148 = load float, ptr %13, align 4, !tbaa !9
  %149 = fadd float %147, %148
  store float %149, ptr %12, align 4, !tbaa !9
  %150 = load i32, ptr %15, align 4, !tbaa !11
  %151 = icmp sgt i32 %150, 0
  br i1 %151, label %152, label %160

152:                                              ; preds = %128
  %153 = getelementptr inbounds %struct.Vector2, ptr %19, i32 0, i32 0
  %154 = load float, ptr %153, align 4, !tbaa !26
  %155 = getelementptr inbounds %struct.Rectangle, ptr %18, i32 0, i32 2
  %156 = load float, ptr %155, align 4, !tbaa !15
  %157 = fdiv float %156, 2.000000e+00
  %158 = fsub float %154, %157
  %159 = getelementptr inbounds %struct.Rectangle, ptr %18, i32 0, i32 0
  store float %158, ptr %159, align 4, !tbaa !17
  br label %168

160:                                              ; preds = %128
  %161 = load i32, ptr %15, align 4, !tbaa !11
  %162 = icmp eq i32 %161, 0
  br i1 %162, label %163, label %167

163:                                              ; preds = %160
  %164 = load i32, ptr %17, align 4, !tbaa !11
  %165 = sitofp i32 %164 to float
  %166 = getelementptr inbounds %struct.Rectangle, ptr %18, i32 0, i32 2
  store float %165, ptr %166, align 4, !tbaa !15
  br label %167

167:                                              ; preds = %163, %160
  br label %168

168:                                              ; preds = %167, %152
  br label %170

169:                                              ; preds = %126
  store i32 1, ptr %16, align 4, !tbaa !13
  br label %170

170:                                              ; preds = %169, %168
  br label %171

171:                                              ; preds = %170, %118
  %172 = load float, ptr %12, align 4, !tbaa !9
  %173 = load float, ptr %14, align 4, !tbaa !9
  %174 = fcmp ogt float %172, %173
  br i1 %174, label %175, label %177

175:                                              ; preds = %171
  %176 = load float, ptr %14, align 4, !tbaa !9
  store float %176, ptr %12, align 4, !tbaa !9
  br label %184

177:                                              ; preds = %171
  %178 = load float, ptr %12, align 4, !tbaa !9
  %179 = load float, ptr %13, align 4, !tbaa !9
  %180 = fcmp olt float %178, %179
  br i1 %180, label %181, label %183

181:                                              ; preds = %177
  %182 = load float, ptr %13, align 4, !tbaa !9
  store float %182, ptr %12, align 4, !tbaa !9
  br label %183

183:                                              ; preds = %181, %177
  br label %184

184:                                              ; preds = %183, %175
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %185

185:                                              ; preds = %184, %115, %112
  %186 = load i32, ptr %15, align 4, !tbaa !11
  %187 = icmp sgt i32 %186, 0
  br i1 %187, label %188, label %231

188:                                              ; preds = %185
  %189 = getelementptr inbounds %struct.Rectangle, ptr %18, i32 0, i32 0
  %190 = load float, ptr %189, align 4, !tbaa !17
  %191 = getelementptr inbounds %struct.Rectangle, ptr %9, i32 0, i32 0
  %192 = load float, ptr %191, align 4, !tbaa !17
  %193 = call i32 @GuiGetStyle(i32 noundef 4, i32 noundef 12)
  %194 = sitofp i32 %193 to float
  %195 = fadd float %192, %194
  %196 = fcmp ole float %190, %195
  br i1 %196, label %197, label %204

197:                                              ; preds = %188
  %198 = getelementptr inbounds %struct.Rectangle, ptr %9, i32 0, i32 0
  %199 = load float, ptr %198, align 4, !tbaa !17
  %200 = call i32 @GuiGetStyle(i32 noundef 4, i32 noundef 12)
  %201 = sitofp i32 %200 to float
  %202 = fadd float %199, %201
  %203 = getelementptr inbounds %struct.Rectangle, ptr %18, i32 0, i32 0
  store float %202, ptr %203, align 4, !tbaa !17
  br label %230

204:                                              ; preds = %188
  %205 = getelementptr inbounds %struct.Rectangle, ptr %18, i32 0, i32 0
  %206 = load float, ptr %205, align 4, !tbaa !17
  %207 = getelementptr inbounds %struct.Rectangle, ptr %18, i32 0, i32 2
  %208 = load float, ptr %207, align 4, !tbaa !15
  %209 = fadd float %206, %208
  %210 = getelementptr inbounds %struct.Rectangle, ptr %9, i32 0, i32 0
  %211 = load float, ptr %210, align 4, !tbaa !17
  %212 = getelementptr inbounds %struct.Rectangle, ptr %9, i32 0, i32 2
  %213 = load float, ptr %212, align 4, !tbaa !15
  %214 = fadd float %211, %213
  %215 = fcmp oge float %209, %214
  br i1 %215, label %216, label %229

216:                                              ; preds = %204
  %217 = getelementptr inbounds %struct.Rectangle, ptr %9, i32 0, i32 0
  %218 = load float, ptr %217, align 4, !tbaa !17
  %219 = getelementptr inbounds %struct.Rectangle, ptr %9, i32 0, i32 2
  %220 = load float, ptr %219, align 4, !tbaa !15
  %221 = fadd float %218, %220
  %222 = getelementptr inbounds %struct.Rectangle, ptr %18, i32 0, i32 2
  %223 = load float, ptr %222, align 4, !tbaa !15
  %224 = fsub float %221, %223
  %225 = call i32 @GuiGetStyle(i32 noundef 4, i32 noundef 12)
  %226 = sitofp i32 %225 to float
  %227 = fsub float %224, %226
  %228 = getelementptr inbounds %struct.Rectangle, ptr %18, i32 0, i32 0
  store float %227, ptr %228, align 4, !tbaa !17
  br label %229

229:                                              ; preds = %216, %204
  br label %230

230:                                              ; preds = %229, %197
  br label %250

231:                                              ; preds = %185
  %232 = load i32, ptr %15, align 4, !tbaa !11
  %233 = icmp eq i32 %232, 0
  br i1 %233, label %234, label %249

234:                                              ; preds = %231
  %235 = getelementptr inbounds %struct.Rectangle, ptr %18, i32 0, i32 2
  %236 = load float, ptr %235, align 4, !tbaa !15
  %237 = getelementptr inbounds %struct.Rectangle, ptr %9, i32 0, i32 2
  %238 = load float, ptr %237, align 4, !tbaa !15
  %239 = fcmp ogt float %236, %238
  br i1 %239, label %240, label %248

240:                                              ; preds = %234
  %241 = getelementptr inbounds %struct.Rectangle, ptr %9, i32 0, i32 2
  %242 = load float, ptr %241, align 4, !tbaa !15
  %243 = call i32 @GuiGetStyle(i32 noundef 4, i32 noundef 12)
  %244 = mul nsw i32 2, %243
  %245 = sitofp i32 %244 to float
  %246 = fsub float %242, %245
  %247 = getelementptr inbounds %struct.Rectangle, ptr %18, i32 0, i32 2
  store float %246, ptr %247, align 4, !tbaa !15
  br label %248

248:                                              ; preds = %240, %234
  br label %249

249:                                              ; preds = %248, %231
  br label %250

250:                                              ; preds = %249, %230
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %9, i64 16, i1 false), !tbaa.struct !25
  %251 = call i32 @GuiGetStyle(i32 noundef 4, i32 noundef 12)
  %252 = load i32, ptr %16, align 4, !tbaa !13
  %253 = mul nsw i32 %252, 3
  %254 = add nsw i32 0, %253
  %255 = call i32 @GuiGetStyle(i32 noundef 4, i32 noundef %254)
  %256 = call i32 @GetColor(i32 noundef %255)
  store i32 %256, ptr %24, align 1
  %257 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !9
  %258 = load i32, ptr %24, align 1
  %259 = call i32 @Fade(i32 %258, float noundef %257)
  store i32 %259, ptr %23, align 1
  %260 = load i32, ptr %16, align 4, !tbaa !13
  %261 = icmp ne i32 %260, 3
  %262 = zext i1 %261 to i64
  %263 = select i1 %261, i32 1, i32 10
  %264 = call i32 @GuiGetStyle(i32 noundef 4, i32 noundef %263)
  %265 = call i32 @GetColor(i32 noundef %264)
  store i32 %265, ptr %26, align 1
  %266 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !9
  %267 = load i32, ptr %26, align 1
  %268 = call i32 @Fade(i32 %267, float noundef %266)
  store i32 %268, ptr %25, align 1
  %269 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %22, i32 0, i32 0
  %270 = load <2 x float>, ptr %269, align 4
  %271 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %22, i32 0, i32 1
  %272 = load <2 x float>, ptr %271, align 4
  %273 = load i32, ptr %23, align 1
  %274 = load i32, ptr %25, align 1
  call void @_ZL16GuiDrawRectangle9Rectanglei5ColorS0_(<2 x float> %270, <2 x float> %272, i32 noundef %251, i32 %273, i32 %274)
  %275 = load i32, ptr %16, align 4, !tbaa !13
  %276 = icmp eq i32 %275, 0
  br i1 %276, label %280, label %277

277:                                              ; preds = %250
  %278 = load i32, ptr %16, align 4, !tbaa !13
  %279 = icmp eq i32 %278, 2
  br i1 %279, label %280, label %296

280:                                              ; preds = %277, %250
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %18, i64 16, i1 false), !tbaa.struct !25
  %281 = getelementptr inbounds %struct.Color, ptr %28, i32 0, i32 0
  store i8 0, ptr %281, align 1, !tbaa !28
  %282 = getelementptr inbounds %struct.Color, ptr %28, i32 0, i32 1
  store i8 0, ptr %282, align 1, !tbaa !30
  %283 = getelementptr inbounds %struct.Color, ptr %28, i32 0, i32 2
  store i8 0, ptr %283, align 1, !tbaa !31
  %284 = getelementptr inbounds %struct.Color, ptr %28, i32 0, i32 3
  store i8 0, ptr %284, align 1, !tbaa !32
  %285 = call i32 @GuiGetStyle(i32 noundef 4, i32 noundef 7)
  %286 = call i32 @GetColor(i32 noundef %285)
  store i32 %286, ptr %30, align 1
  %287 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !9
  %288 = load i32, ptr %30, align 1
  %289 = call i32 @Fade(i32 %288, float noundef %287)
  store i32 %289, ptr %29, align 1
  %290 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %27, i32 0, i32 0
  %291 = load <2 x float>, ptr %290, align 4
  %292 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %27, i32 0, i32 1
  %293 = load <2 x float>, ptr %292, align 4
  %294 = load i32, ptr %28, align 1
  %295 = load i32, ptr %29, align 1
  call void @_ZL16GuiDrawRectangle9Rectanglei5ColorS0_(<2 x float> %291, <2 x float> %293, i32 noundef 0, i32 %294, i32 %295)
  br label %316

296:                                              ; preds = %277
  %297 = load i32, ptr %16, align 4, !tbaa !13
  %298 = icmp eq i32 %297, 1
  br i1 %298, label %299, label %315

299:                                              ; preds = %296
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 4 %18, i64 16, i1 false), !tbaa.struct !25
  %300 = getelementptr inbounds %struct.Color, ptr %32, i32 0, i32 0
  store i8 0, ptr %300, align 1, !tbaa !28
  %301 = getelementptr inbounds %struct.Color, ptr %32, i32 0, i32 1
  store i8 0, ptr %301, align 1, !tbaa !30
  %302 = getelementptr inbounds %struct.Color, ptr %32, i32 0, i32 2
  store i8 0, ptr %302, align 1, !tbaa !31
  %303 = getelementptr inbounds %struct.Color, ptr %32, i32 0, i32 3
  store i8 0, ptr %303, align 1, !tbaa !32
  %304 = call i32 @GuiGetStyle(i32 noundef 4, i32 noundef 5)
  %305 = call i32 @GetColor(i32 noundef %304)
  store i32 %305, ptr %34, align 1
  %306 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !9
  %307 = load i32, ptr %34, align 1
  %308 = call i32 @Fade(i32 %307, float noundef %306)
  store i32 %308, ptr %33, align 1
  %309 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %31, i32 0, i32 0
  %310 = load <2 x float>, ptr %309, align 4
  %311 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %31, i32 0, i32 1
  %312 = load <2 x float>, ptr %311, align 4
  %313 = load i32, ptr %32, align 1
  %314 = load i32, ptr %33, align 1
  call void @_ZL16GuiDrawRectangle9Rectanglei5ColorS0_(<2 x float> %310, <2 x float> %312, i32 noundef 0, i32 %313, i32 %314)
  br label %315

315:                                              ; preds = %299, %296
  br label %316

316:                                              ; preds = %315, %280
  %317 = load ptr, ptr %10, align 8, !tbaa !5
  %318 = icmp ne ptr %317, null
  br i1 %318, label %319, label %361

319:                                              ; preds = %316
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #6
  call void @llvm.memset.p0.i64(ptr align 4 %35, i8 0, i64 16, i1 false)
  %320 = load ptr, ptr %10, align 8, !tbaa !5
  %321 = call noundef i32 @_ZL12GetTextWidthPKc(ptr noundef %320)
  %322 = sitofp i32 %321 to float
  %323 = getelementptr inbounds %struct.Rectangle, ptr %35, i32 0, i32 2
  store float %322, ptr %323, align 4, !tbaa !15
  %324 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %325 = sitofp i32 %324 to float
  %326 = getelementptr inbounds %struct.Rectangle, ptr %35, i32 0, i32 3
  store float %325, ptr %326, align 4, !tbaa !19
  %327 = getelementptr inbounds %struct.Rectangle, ptr %9, i32 0, i32 0
  %328 = load float, ptr %327, align 4, !tbaa !17
  %329 = getelementptr inbounds %struct.Rectangle, ptr %35, i32 0, i32 2
  %330 = load float, ptr %329, align 4, !tbaa !15
  %331 = fsub float %328, %330
  %332 = call i32 @GuiGetStyle(i32 noundef 4, i32 noundef 13)
  %333 = sitofp i32 %332 to float
  %334 = fsub float %331, %333
  %335 = getelementptr inbounds %struct.Rectangle, ptr %35, i32 0, i32 0
  store float %334, ptr %335, align 4, !tbaa !17
  %336 = getelementptr inbounds %struct.Rectangle, ptr %9, i32 0, i32 1
  %337 = load float, ptr %336, align 4, !tbaa !18
  %338 = getelementptr inbounds %struct.Rectangle, ptr %9, i32 0, i32 3
  %339 = load float, ptr %338, align 4, !tbaa !19
  %340 = fdiv float %339, 2.000000e+00
  %341 = fadd float %337, %340
  %342 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %343 = sdiv i32 %342, 2
  %344 = sitofp i32 %343 to float
  %345 = fsub float %341, %344
  %346 = getelementptr inbounds %struct.Rectangle, ptr %35, i32 0, i32 1
  store float %345, ptr %346, align 4, !tbaa !18
  %347 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 4 %35, i64 16, i1 false), !tbaa.struct !25
  %348 = load i32, ptr %16, align 4, !tbaa !13
  %349 = mul nsw i32 %348, 3
  %350 = add nsw i32 2, %349
  %351 = call i32 @GuiGetStyle(i32 noundef 4, i32 noundef %350)
  %352 = call i32 @GetColor(i32 noundef %351)
  store i32 %352, ptr %38, align 1
  %353 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !9
  %354 = load i32, ptr %38, align 1
  %355 = call i32 @Fade(i32 %354, float noundef %353)
  store i32 %355, ptr %37, align 1
  %356 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %36, i32 0, i32 0
  %357 = load <2 x float>, ptr %356, align 4
  %358 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %36, i32 0, i32 1
  %359 = load <2 x float>, ptr %358, align 4
  %360 = load i32, ptr %37, align 1
  call void @_ZL11GuiDrawTextPKc9Rectanglei5Color(ptr noundef %347, <2 x float> %357, <2 x float> %359, i32 noundef 2, i32 %360)
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #6
  br label %361

361:                                              ; preds = %319, %316
  %362 = load ptr, ptr %11, align 8, !tbaa !5
  %363 = icmp ne ptr %362, null
  br i1 %363, label %364, label %406

364:                                              ; preds = %361
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #6
  call void @llvm.memset.p0.i64(ptr align 4 %39, i8 0, i64 16, i1 false)
  %365 = load ptr, ptr %11, align 8, !tbaa !5
  %366 = call noundef i32 @_ZL12GetTextWidthPKc(ptr noundef %365)
  %367 = sitofp i32 %366 to float
  %368 = getelementptr inbounds %struct.Rectangle, ptr %39, i32 0, i32 2
  store float %367, ptr %368, align 4, !tbaa !15
  %369 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %370 = sitofp i32 %369 to float
  %371 = getelementptr inbounds %struct.Rectangle, ptr %39, i32 0, i32 3
  store float %370, ptr %371, align 4, !tbaa !19
  %372 = getelementptr inbounds %struct.Rectangle, ptr %9, i32 0, i32 0
  %373 = load float, ptr %372, align 4, !tbaa !17
  %374 = getelementptr inbounds %struct.Rectangle, ptr %9, i32 0, i32 2
  %375 = load float, ptr %374, align 4, !tbaa !15
  %376 = fadd float %373, %375
  %377 = call i32 @GuiGetStyle(i32 noundef 4, i32 noundef 13)
  %378 = sitofp i32 %377 to float
  %379 = fadd float %376, %378
  %380 = getelementptr inbounds %struct.Rectangle, ptr %39, i32 0, i32 0
  store float %379, ptr %380, align 4, !tbaa !17
  %381 = getelementptr inbounds %struct.Rectangle, ptr %9, i32 0, i32 1
  %382 = load float, ptr %381, align 4, !tbaa !18
  %383 = getelementptr inbounds %struct.Rectangle, ptr %9, i32 0, i32 3
  %384 = load float, ptr %383, align 4, !tbaa !19
  %385 = fdiv float %384, 2.000000e+00
  %386 = fadd float %382, %385
  %387 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %388 = sdiv i32 %387, 2
  %389 = sitofp i32 %388 to float
  %390 = fsub float %386, %389
  %391 = getelementptr inbounds %struct.Rectangle, ptr %39, i32 0, i32 1
  store float %390, ptr %391, align 4, !tbaa !18
  %392 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 4 %39, i64 16, i1 false), !tbaa.struct !25
  %393 = load i32, ptr %16, align 4, !tbaa !13
  %394 = mul nsw i32 %393, 3
  %395 = add nsw i32 2, %394
  %396 = call i32 @GuiGetStyle(i32 noundef 4, i32 noundef %395)
  %397 = call i32 @GetColor(i32 noundef %396)
  store i32 %397, ptr %42, align 1
  %398 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !9
  %399 = load i32, ptr %42, align 1
  %400 = call i32 @Fade(i32 %399, float noundef %398)
  store i32 %400, ptr %41, align 1
  %401 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %40, i32 0, i32 0
  %402 = load <2 x float>, ptr %401, align 4
  %403 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %40, i32 0, i32 1
  %404 = load <2 x float>, ptr %403, align 4
  %405 = load i32, ptr %41, align 1
  call void @_ZL11GuiDrawTextPKc9Rectanglei5Color(ptr noundef %392, <2 x float> %402, <2 x float> %404, i32 noundef 0, i32 %405)
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #6
  br label %406

406:                                              ; preds = %364, %361
  %407 = load float, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  ret float %407
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTS15GuiControlState", !7, i64 0}
!15 = !{!16, !10, i64 8}
!16 = !{!"_ZTS9Rectangle", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!17 = !{!16, !10, i64 0}
!18 = !{!16, !10, i64 4}
!19 = !{!16, !10, i64 12}
!20 = !{!21, !21, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}
!25 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 12, i64 4, !9}
!26 = !{!27, !10, i64 0}
!27 = !{!"_ZTS7Vector2", !10, i64 0, !10, i64 4}
!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

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

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

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

declare i32 @GetColor(i32 noundef) local_unnamed_addr #2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef float @_Z12GuiSliderPro9RectanglePKcS1_fffi(<2 x float> %0, <2 x float> %1, ptr noundef %2, ptr noundef %3, float noundef %4, float noundef %5, float noundef %6, i32 noundef %7) local_unnamed_addr #1 {
  %9 = load i32, ptr @_ZL8guiState, align 4, !tbaa !5
  %10 = fsub float %4, %5
  %11 = fsub float %6, %5
  %12 = fdiv float %10, %11
  %.sroa.14.8.vec.extract = extractelement <2 x float> %1, i64 0
  %13 = tail call i32 @GuiGetStyle(i32 noundef 4, i32 noundef 12)
  %14 = shl nsw i32 %13, 1
  %15 = sitofp i32 %14 to float
  %16 = fsub float %.sroa.14.8.vec.extract, %15
  %17 = fmul float %12, %16
  %18 = fptosi float %17 to i32
  %.sroa.0119.0.vec.extract = extractelement <2 x float> %0, i64 0
  %.sroa.0119.4.vec.extract = extractelement <2 x float> %0, i64 1
  %19 = tail call i32 @GuiGetStyle(i32 noundef 4, i32 noundef 12)
  %20 = sitofp i32 %19 to float
  %21 = fadd float %.sroa.0119.4.vec.extract, %20
  %22 = tail call i32 @GuiGetStyle(i32 noundef 4, i32 noundef 17)
  %23 = sitofp i32 %22 to float
  %24 = fadd float %21, %23
  %.sroa.043.4.vec.insert = insertelement <2 x float> %0, float %24, i64 1
  %.sroa.14.12.vec.extract = extractelement <2 x float> %1, i64 1
  %25 = tail call i32 @GuiGetStyle(i32 noundef 4, i32 noundef 12)
  %26 = shl nsw i32 %25, 1
  %27 = sitofp i32 %26 to float
  %28 = fsub float %.sroa.14.12.vec.extract, %27
  %29 = tail call i32 @GuiGetStyle(i32 noundef 4, i32 noundef 17)
  %30 = shl nsw i32 %29, 1
  %31 = sitofp i32 %30 to float
  %32 = fsub float %28, %31
  %.sroa.15.12.vec.insert = insertelement <2 x float> <float 0.000000e+00, float poison>, float %32, i64 1
  %33 = icmp sgt i32 %7, 0
  br i1 %33, label %34, label %40

34:                                               ; preds = %8
  %35 = lshr i32 %7, 1
  %36 = sub nsw i32 %18, %35
  %37 = sitofp i32 %36 to float
  %38 = fadd float %.sroa.0119.0.vec.extract, %37
  %.sroa.043.0.vec.insert48 = insertelement <2 x float> %.sroa.043.4.vec.insert, float %38, i64 0
  %39 = uitofp nneg i32 %7 to float
  %.sroa.15.8.vec.insert66 = insertelement <2 x float> %.sroa.15.12.vec.insert, float %39, i64 0
  br label %47

40:                                               ; preds = %8
  %41 = icmp eq i32 %7, 0
  br i1 %41, label %42, label %47

42:                                               ; preds = %40
  %43 = tail call i32 @GuiGetStyle(i32 noundef 4, i32 noundef 12)
  %44 = sitofp i32 %43 to float
  %45 = fadd float %.sroa.0119.0.vec.extract, %44
  %.sroa.043.0.vec.insert52 = insertelement <2 x float> %.sroa.043.4.vec.insert, float %45, i64 0
  %46 = sitofp i32 %18 to float
  %.sroa.15.8.vec.insert68 = insertelement <2 x float> %.sroa.15.12.vec.insert, float %46, i64 0
  br label %47

47:                                               ; preds = %40, %42, %34
  %.sroa.043.0 = phi <2 x float> [ %.sroa.043.0.vec.insert48, %34 ], [ %.sroa.043.0.vec.insert52, %42 ], [ %.sroa.043.4.vec.insert, %40 ]
  %.sroa.15.0 = phi <2 x float> [ %.sroa.15.8.vec.insert66, %34 ], [ %.sroa.15.8.vec.insert68, %42 ], [ %.sroa.15.12.vec.insert, %40 ]
  %.not = icmp eq i32 %9, 3
  br i1 %.not, label %78, label %48

48:                                               ; preds = %47
  %49 = load i8, ptr @_ZL9guiLocked, align 1, !tbaa !9, !range !11, !noundef !12
  %50 = trunc nuw i8 %49 to i1
  br i1 %50, label %78, label %51

51:                                               ; preds = %48
  %52 = tail call <2 x float> @GetMousePosition()
  %53 = tail call zeroext i1 @CheckCollisionPointRec(<2 x float> %52, <2 x float> %0, <2 x float> %1)
  br i1 %53, label %54, label %73

54:                                               ; preds = %51
  %55 = tail call zeroext i1 @IsMouseButtonDown(i32 noundef 0)
  br i1 %55, label %56, label %73

56:                                               ; preds = %54
  %.sroa.039.0.vec.extract = extractelement <2 x float> %52, i64 0
  %57 = sdiv i32 %7, 2
  %58 = sitofp i32 %57 to float
  %59 = fadd float %.sroa.0119.0.vec.extract, %58
  %60 = fsub float %.sroa.039.0.vec.extract, %59
  %61 = fmul float %11, %60
  %62 = sitofp i32 %7 to float
  %63 = fsub float %.sroa.14.8.vec.extract, %62
  %64 = fdiv float %61, %63
  %65 = fadd float %64, %5
  br i1 %33, label %66, label %69

66:                                               ; preds = %56
  %.sroa.15.8.vec.extract = extractelement <2 x float> %.sroa.15.0, i64 0
  %67 = fmul float %.sroa.15.8.vec.extract, 5.000000e-01
  %68 = fsub float %.sroa.039.0.vec.extract, %67
  %.sroa.043.0.vec.insert54 = insertelement <2 x float> %.sroa.043.0, float %68, i64 0
  br label %73

69:                                               ; preds = %56
  %70 = icmp eq i32 %7, 0
  br i1 %70, label %71, label %73

71:                                               ; preds = %69
  %72 = sitofp i32 %18 to float
  %.sroa.15.8.vec.insert71 = insertelement <2 x float> %.sroa.15.0, float %72, i64 0
  br label %73

73:                                               ; preds = %54, %69, %71, %66, %51
  %.sroa.043.1 = phi <2 x float> [ %.sroa.043.0.vec.insert54, %66 ], [ %.sroa.043.0, %71 ], [ %.sroa.043.0, %69 ], [ %.sroa.043.0, %51 ], [ %.sroa.043.0, %54 ]
  %.sroa.15.1 = phi <2 x float> [ %.sroa.15.0, %66 ], [ %.sroa.15.8.vec.insert71, %71 ], [ %.sroa.15.0, %69 ], [ %.sroa.15.0, %51 ], [ %.sroa.15.0, %54 ]
  %.0158 = phi i32 [ 2, %66 ], [ 2, %71 ], [ 2, %69 ], [ %9, %51 ], [ 1, %54 ]
  %.0 = phi float [ %65, %66 ], [ %65, %71 ], [ %65, %69 ], [ %4, %51 ], [ %4, %54 ]
  %74 = fcmp ogt float %.0, %6
  br i1 %74, label %78, label %75

75:                                               ; preds = %73
  %76 = fcmp olt float %.0, %5
  br i1 %76, label %77, label %78

77:                                               ; preds = %75
  br label %78

78:                                               ; preds = %77, %75, %73, %48, %47
  %.sroa.043.2 = phi <2 x float> [ %.sroa.043.0, %48 ], [ %.sroa.043.0, %47 ], [ %.sroa.043.1, %73 ], [ %.sroa.043.1, %75 ], [ %.sroa.043.1, %77 ]
  %.sroa.15.2 = phi <2 x float> [ %.sroa.15.0, %48 ], [ %.sroa.15.0, %47 ], [ %.sroa.15.1, %73 ], [ %.sroa.15.1, %75 ], [ %.sroa.15.1, %77 ]
  %.1159 = phi i32 [ %9, %48 ], [ 3, %47 ], [ %.0158, %73 ], [ %.0158, %75 ], [ %.0158, %77 ]
  %.2 = phi float [ %4, %48 ], [ %4, %47 ], [ %6, %73 ], [ %.0, %75 ], [ %5, %77 ]
  br i1 %33, label %79, label %100

79:                                               ; preds = %78
  %.sroa.043.0.vec.extract56 = extractelement <2 x float> %.sroa.043.2, i64 0
  %80 = tail call i32 @GuiGetStyle(i32 noundef 4, i32 noundef 12)
  %81 = sitofp i32 %80 to float
  %82 = fadd float %.sroa.0119.0.vec.extract, %81
  %83 = fcmp ugt float %.sroa.043.0.vec.extract56, %82
  br i1 %83, label %88, label %84

84:                                               ; preds = %79
  %85 = tail call i32 @GuiGetStyle(i32 noundef 4, i32 noundef 12)
  %86 = sitofp i32 %85 to float
  %87 = fadd float %.sroa.0119.0.vec.extract, %86
  %.sroa.043.0.vec.insert58 = insertelement <2 x float> %.sroa.043.2, float %87, i64 0
  br label %108

88:                                               ; preds = %79
  %89 = fadd <2 x float> %.sroa.043.2, %.sroa.15.2
  %90 = extractelement <2 x float> %89, i64 0
  %91 = fadd <2 x float> %0, %1
  %92 = extractelement <2 x float> %91, i64 0
  %93 = fcmp ult float %90, %92
  br i1 %93, label %108, label %94

94:                                               ; preds = %88
  %95 = fsub <2 x float> %91, %.sroa.15.2
  %96 = extractelement <2 x float> %95, i64 0
  %97 = tail call i32 @GuiGetStyle(i32 noundef 4, i32 noundef 12)
  %98 = sitofp i32 %97 to float
  %99 = fsub float %96, %98
  %.sroa.043.0.vec.insert62 = insertelement <2 x float> %.sroa.043.2, float %99, i64 0
  br label %108

100:                                              ; preds = %78
  %101 = icmp eq i32 %7, 0
  %.sroa.15.8.vec.extract77 = extractelement <2 x float> %.sroa.15.2, i64 0
  %102 = fcmp ogt float %.sroa.15.8.vec.extract77, %.sroa.14.8.vec.extract
  %or.cond173 = select i1 %101, i1 %102, i1 false
  br i1 %or.cond173, label %103, label %108

103:                                              ; preds = %100
  %104 = tail call i32 @GuiGetStyle(i32 noundef 4, i32 noundef 12)
  %105 = shl nsw i32 %104, 1
  %106 = sitofp i32 %105 to float
  %107 = fsub float %.sroa.14.8.vec.extract, %106
  %.sroa.15.8.vec.insert79 = insertelement <2 x float> %.sroa.15.2, float %107, i64 0
  br label %108

108:                                              ; preds = %100, %103, %84, %94, %88
  %.sroa.043.3 = phi <2 x float> [ %.sroa.043.0.vec.insert58, %84 ], [ %.sroa.043.0.vec.insert62, %94 ], [ %.sroa.043.2, %88 ], [ %.sroa.043.2, %103 ], [ %.sroa.043.2, %100 ]
  %.sroa.15.3 = phi <2 x float> [ %.sroa.15.2, %84 ], [ %.sroa.15.2, %94 ], [ %.sroa.15.2, %88 ], [ %.sroa.15.8.vec.insert79, %103 ], [ %.sroa.15.2, %100 ]
  %109 = tail call i32 @GuiGetStyle(i32 noundef 4, i32 noundef 12)
  %110 = mul nsw i32 %.1159, 3
  %111 = tail call i32 @GuiGetStyle(i32 noundef 4, i32 noundef %110)
  %112 = tail call i32 @GetColor(i32 noundef %111)
  %113 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %114 = tail call i32 @Fade(i32 %112, float noundef %113)
  %.not170 = icmp eq i32 %.1159, 3
  %115 = select i1 %.not170, i32 10, i32 1
  %116 = tail call i32 @GuiGetStyle(i32 noundef 4, i32 noundef %115)
  %117 = tail call i32 @GetColor(i32 noundef %116)
  %118 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %119 = tail call i32 @Fade(i32 %117, float noundef %118)
  tail call void @_ZL16GuiDrawRectangle9Rectanglei5ColorS0_(<2 x float> %0, <2 x float> %1, i32 noundef %109, i32 %114, i32 %119)
  %120 = and i32 %.1159, -3
  %or.cond = icmp eq i32 %120, 0
  br i1 %or.cond, label %.sink.split, label %121

121:                                              ; preds = %108
  %122 = icmp eq i32 %.1159, 1
  br i1 %122, label %.sink.split, label %127

.sink.split:                                      ; preds = %121, %108
  %.sink176 = phi i32 [ 7, %108 ], [ 5, %121 ]
  %123 = tail call i32 @GuiGetStyle(i32 noundef 4, i32 noundef %.sink176)
  %124 = tail call i32 @GetColor(i32 noundef %123)
  %125 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %126 = tail call i32 @Fade(i32 %124, float noundef %125)
  tail call void @_ZL16GuiDrawRectangle9Rectanglei5ColorS0_(<2 x float> %.sroa.043.3, <2 x float> %.sroa.15.3, i32 noundef 0, i32 0, i32 %126)
  br label %127

127:                                              ; preds = %.sink.split, %121
  %.not171 = icmp eq ptr %2, null
  br i1 %.not171, label %150, label %128

128:                                              ; preds = %127
  %129 = tail call noundef i32 @_ZL12GetTextWidthPKc(ptr noundef nonnull %2)
  %130 = tail call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %131 = insertelement <2 x i32> poison, i32 %129, i64 0
  %132 = insertelement <2 x i32> %131, i32 %130, i64 1
  %133 = sitofp <2 x i32> %132 to <2 x float>
  %134 = fsub <2 x float> %0, %133
  %135 = extractelement <2 x float> %134, i64 0
  %136 = tail call i32 @GuiGetStyle(i32 noundef 4, i32 noundef 13)
  %137 = sitofp i32 %136 to float
  %138 = fsub float %135, %137
  %.sroa.011.0.vec.insert = insertelement <2 x float> poison, float %138, i64 0
  %139 = fmul float %.sroa.14.12.vec.extract, 5.000000e-01
  %140 = fadd float %.sroa.0119.4.vec.extract, %139
  %141 = tail call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %142 = sdiv i32 %141, 2
  %143 = sitofp i32 %142 to float
  %144 = fsub float %140, %143
  %.sroa.011.4.vec.insert = insertelement <2 x float> %.sroa.011.0.vec.insert, float %144, i64 1
  %145 = add nsw i32 %110, 2
  %146 = tail call i32 @GuiGetStyle(i32 noundef 4, i32 noundef %145)
  %147 = tail call i32 @GetColor(i32 noundef %146)
  %148 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %149 = tail call i32 @Fade(i32 %147, float noundef %148)
  tail call void @_ZL11GuiDrawTextPKc9Rectanglei5Color(ptr noundef nonnull %2, <2 x float> %.sroa.011.4.vec.insert, <2 x float> %133, i32 noundef 2, i32 %149)
  br label %150

150:                                              ; preds = %128, %127
  %.not172 = icmp eq ptr %3, null
  br i1 %.not172, label %173, label %151

151:                                              ; preds = %150
  %152 = tail call noundef i32 @_ZL12GetTextWidthPKc(ptr noundef nonnull %3)
  %153 = tail call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %154 = insertelement <2 x i32> poison, i32 %152, i64 0
  %155 = insertelement <2 x i32> %154, i32 %153, i64 1
  %156 = sitofp <2 x i32> %155 to <2 x float>
  %157 = fadd <2 x float> %0, %1
  %158 = extractelement <2 x float> %157, i64 0
  %159 = tail call i32 @GuiGetStyle(i32 noundef 4, i32 noundef 13)
  %160 = sitofp i32 %159 to float
  %161 = fadd float %158, %160
  %.sroa.04.0.vec.insert = insertelement <2 x float> poison, float %161, i64 0
  %162 = fmul float %.sroa.14.12.vec.extract, 5.000000e-01
  %163 = fadd float %.sroa.0119.4.vec.extract, %162
  %164 = tail call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %165 = sdiv i32 %164, 2
  %166 = sitofp i32 %165 to float
  %167 = fsub float %163, %166
  %.sroa.04.4.vec.insert = insertelement <2 x float> %.sroa.04.0.vec.insert, float %167, i64 1
  %168 = add nsw i32 %110, 2
  %169 = tail call i32 @GuiGetStyle(i32 noundef 4, i32 noundef %168)
  %170 = tail call i32 @GetColor(i32 noundef %169)
  %171 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %172 = tail call i32 @Fade(i32 %170, float noundef %171)
  tail call void @_ZL11GuiDrawTextPKc9Rectanglei5Color(ptr noundef nonnull %3, <2 x float> %.sroa.04.4.vec.insert, <2 x float> %156, i32 noundef 0, i32 %172)
  br label %173

173:                                              ; preds = %151, %150
  ret float %.2
}

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

!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 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}


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