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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #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

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
define dso_local float @GuiColorBarHue(<2 x float> %0, <2 x float> %1, float noundef %2) #4 {
  %4 = alloca %struct.Rectangle, align 4
  %5 = alloca float, align 4
  %6 = alloca i32, align 4
  %7 = alloca %struct.Rectangle, align 4
  %8 = alloca %struct.Vector2, align 4
  %9 = alloca %struct.Vector2, align 4
  %10 = alloca %struct.Rectangle, align 4
  %11 = alloca %struct.Vector2, align 4
  %12 = alloca %struct.Rectangle, align 4
  %13 = alloca %struct.Color, align 1
  %14 = alloca %struct.Color, align 1
  %15 = alloca %struct.Color, align 1
  %16 = alloca %struct.Color, align 1
  %17 = alloca %struct.Color, align 1
  %18 = alloca %struct.Color, align 1
  %19 = alloca %struct.Color, align 1
  %20 = alloca %struct.Color, align 1
  %21 = alloca %struct.Color, align 1
  %22 = alloca %struct.Color, align 1
  %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 = 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 = alloca %struct.Color, align 1
  %46 = alloca %struct.Rectangle, align 4
  %47 = alloca %struct.Color, align 1
  %48 = alloca %struct.Color, align 1
  %49 = alloca %struct.Color, align 1
  %50 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %4, i32 0, i32 0
  store <2 x float> %0, ptr %50, align 4
  %51 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %4, i32 0, i32 1
  store <2 x float> %1, ptr %51, align 4
  store float %2, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  %52 = load i32, ptr @_ZL8guiState, align 4, !tbaa !9
  store i32 %52, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #7
  %53 = getelementptr inbounds %struct.Rectangle, ptr %7, i32 0, i32 0
  %54 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 0
  %55 = load float, ptr %54, align 4, !tbaa !11
  %56 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %57 = sitofp i32 %56 to float
  %58 = fsub float %55, %57
  store float %58, ptr %53, align 4, !tbaa !11
  %59 = getelementptr inbounds %struct.Rectangle, ptr %7, i32 0, i32 1
  %60 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 1
  %61 = load float, ptr %60, align 4, !tbaa !13
  %62 = load float, ptr %5, align 4, !tbaa !5
  %63 = fdiv float %62, 3.600000e+02
  %64 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 3
  %65 = load float, ptr %64, align 4, !tbaa !14
  %66 = call float @llvm.fmuladd.f32(float %63, float %65, float %61)
  %67 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 19)
  %68 = sdiv i32 %67, 2
  %69 = sitofp i32 %68 to float
  %70 = fsub float %66, %69
  store float %70, ptr %59, align 4, !tbaa !13
  %71 = getelementptr inbounds %struct.Rectangle, ptr %7, i32 0, i32 2
  %72 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 2
  %73 = load float, ptr %72, align 4, !tbaa !15
  %74 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %75 = mul nsw i32 %74, 2
  %76 = sitofp i32 %75 to float
  %77 = fadd float %73, %76
  store float %77, ptr %71, align 4, !tbaa !15
  %78 = getelementptr inbounds %struct.Rectangle, ptr %7, i32 0, i32 3
  %79 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 19)
  %80 = sitofp i32 %79 to float
  store float %80, ptr %78, align 4, !tbaa !14
  %81 = load i32, ptr %6, align 4, !tbaa !9
  %82 = icmp ne i32 %81, 3
  br i1 %82, label %83, label %124

83:                                               ; preds = %3
  %84 = load i8, ptr @_ZL9guiLocked, align 1, !tbaa !16, !range !18, !noundef !19
  %85 = trunc i8 %84 to i1
  br i1 %85, label %124, label %86

86:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %87 = call <2 x float> @GetMousePosition()
  store <2 x float> %87, ptr %8, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %8, i64 8, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %4, i64 16, i1 false), !tbaa.struct !21
  %88 = load <2 x float>, ptr %9, align 4
  %89 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %10, i32 0, i32 0
  %90 = load <2 x float>, ptr %89, align 4
  %91 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %10, i32 0, i32 1
  %92 = load <2 x float>, ptr %91, align 4
  %93 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %88, <2 x float> %90, <2 x float> %92)
  br i1 %93, label %101, label %94

94:                                               ; preds = %86
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %8, i64 8, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %7, i64 16, i1 false), !tbaa.struct !21
  %95 = load <2 x float>, ptr %11, align 4
  %96 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %12, i32 0, i32 0
  %97 = load <2 x float>, ptr %96, align 4
  %98 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %12, i32 0, i32 1
  %99 = load <2 x float>, ptr %98, align 4
  %100 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %95, <2 x float> %97, <2 x float> %99)
  br i1 %100, label %101, label %123

101:                                              ; preds = %94, %86
  %102 = call zeroext i1 @IsMouseButtonDown(i32 noundef 0)
  br i1 %102, label %103, label %121

103:                                              ; preds = %101
  store i32 2, ptr %6, align 4, !tbaa !9
  %104 = getelementptr inbounds %struct.Vector2, ptr %8, i32 0, i32 1
  %105 = load float, ptr %104, align 4, !tbaa !22
  %106 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 1
  %107 = load float, ptr %106, align 4, !tbaa !13
  %108 = fsub float %105, %107
  %109 = fmul float %108, 3.600000e+02
  %110 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 3
  %111 = load float, ptr %110, align 4, !tbaa !14
  %112 = fdiv float %109, %111
  store float %112, ptr %5, align 4, !tbaa !5
  %113 = load float, ptr %5, align 4, !tbaa !5
  %114 = fcmp ole float %113, 0.000000e+00
  br i1 %114, label %115, label %116

115:                                              ; preds = %103
  store float 0.000000e+00, ptr %5, align 4, !tbaa !5
  br label %116

116:                                              ; preds = %115, %103
  %117 = load float, ptr %5, align 4, !tbaa !5
  %118 = fcmp oge float %117, 3.590000e+02
  br i1 %118, label %119, label %120

119:                                              ; preds = %116
  store float 3.590000e+02, ptr %5, align 4, !tbaa !5
  br label %120

120:                                              ; preds = %119, %116
  br label %122

121:                                              ; preds = %101
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %122

122:                                              ; preds = %121, %120
  br label %123

123:                                              ; preds = %122, %94
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %124

124:                                              ; preds = %123, %83, %3
  %125 = load i32, ptr %6, align 4, !tbaa !9
  %126 = icmp ne i32 %125, 3
  br i1 %126, label %127, label %327

127:                                              ; preds = %124
  %128 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 0
  %129 = load float, ptr %128, align 4, !tbaa !11
  %130 = fptosi float %129 to i32
  %131 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 1
  %132 = load float, ptr %131, align 4, !tbaa !13
  %133 = fptosi float %132 to i32
  %134 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 2
  %135 = load float, ptr %134, align 4, !tbaa !15
  %136 = fptosi float %135 to i32
  %137 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 3
  %138 = load float, ptr %137, align 4, !tbaa !14
  %139 = fdiv float %138, 6.000000e+00
  %140 = call noundef float @_ZSt4ceilf(float noundef %139)
  %141 = fptosi float %140 to i32
  %142 = getelementptr inbounds %struct.Color, ptr %14, i32 0, i32 0
  store i8 -1, ptr %142, align 1, !tbaa !24
  %143 = getelementptr inbounds %struct.Color, ptr %14, i32 0, i32 1
  store i8 0, ptr %143, align 1, !tbaa !26
  %144 = getelementptr inbounds %struct.Color, ptr %14, i32 0, i32 2
  store i8 0, ptr %144, align 1, !tbaa !27
  %145 = getelementptr inbounds %struct.Color, ptr %14, i32 0, i32 3
  store i8 -1, ptr %145, align 1, !tbaa !28
  %146 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !5
  %147 = load i32, ptr %14, align 1
  %148 = call i32 @Fade(i32 %147, float noundef %146)
  store i32 %148, ptr %13, align 1
  %149 = getelementptr inbounds %struct.Color, ptr %16, i32 0, i32 0
  store i8 -1, ptr %149, align 1, !tbaa !24
  %150 = getelementptr inbounds %struct.Color, ptr %16, i32 0, i32 1
  store i8 -1, ptr %150, align 1, !tbaa !26
  %151 = getelementptr inbounds %struct.Color, ptr %16, i32 0, i32 2
  store i8 0, ptr %151, align 1, !tbaa !27
  %152 = getelementptr inbounds %struct.Color, ptr %16, i32 0, i32 3
  store i8 -1, ptr %152, align 1, !tbaa !28
  %153 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !5
  %154 = load i32, ptr %16, align 1
  %155 = call i32 @Fade(i32 %154, float noundef %153)
  store i32 %155, ptr %15, align 1
  %156 = load i32, ptr %13, align 1
  %157 = load i32, ptr %15, align 1
  call void @DrawRectangleGradientV(i32 noundef %130, i32 noundef %133, i32 noundef %136, i32 noundef %141, i32 %156, i32 %157)
  %158 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 0
  %159 = load float, ptr %158, align 4, !tbaa !11
  %160 = fptosi float %159 to i32
  %161 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 1
  %162 = load float, ptr %161, align 4, !tbaa !13
  %163 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 3
  %164 = load float, ptr %163, align 4, !tbaa !14
  %165 = fdiv float %164, 6.000000e+00
  %166 = fadd float %162, %165
  %167 = fptosi float %166 to i32
  %168 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 2
  %169 = load float, ptr %168, align 4, !tbaa !15
  %170 = fptosi float %169 to i32
  %171 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 3
  %172 = load float, ptr %171, align 4, !tbaa !14
  %173 = fdiv float %172, 6.000000e+00
  %174 = call noundef float @_ZSt4ceilf(float noundef %173)
  %175 = fptosi float %174 to i32
  %176 = getelementptr inbounds %struct.Color, ptr %18, i32 0, i32 0
  store i8 -1, ptr %176, align 1, !tbaa !24
  %177 = getelementptr inbounds %struct.Color, ptr %18, i32 0, i32 1
  store i8 -1, ptr %177, align 1, !tbaa !26
  %178 = getelementptr inbounds %struct.Color, ptr %18, i32 0, i32 2
  store i8 0, ptr %178, align 1, !tbaa !27
  %179 = getelementptr inbounds %struct.Color, ptr %18, i32 0, i32 3
  store i8 -1, ptr %179, align 1, !tbaa !28
  %180 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !5
  %181 = load i32, ptr %18, align 1
  %182 = call i32 @Fade(i32 %181, float noundef %180)
  store i32 %182, ptr %17, align 1
  %183 = getelementptr inbounds %struct.Color, ptr %20, i32 0, i32 0
  store i8 0, ptr %183, align 1, !tbaa !24
  %184 = getelementptr inbounds %struct.Color, ptr %20, i32 0, i32 1
  store i8 -1, ptr %184, align 1, !tbaa !26
  %185 = getelementptr inbounds %struct.Color, ptr %20, i32 0, i32 2
  store i8 0, ptr %185, align 1, !tbaa !27
  %186 = getelementptr inbounds %struct.Color, ptr %20, i32 0, i32 3
  store i8 -1, ptr %186, align 1, !tbaa !28
  %187 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !5
  %188 = load i32, ptr %20, align 1
  %189 = call i32 @Fade(i32 %188, float noundef %187)
  store i32 %189, ptr %19, align 1
  %190 = load i32, ptr %17, align 1
  %191 = load i32, ptr %19, align 1
  call void @DrawRectangleGradientV(i32 noundef %160, i32 noundef %167, i32 noundef %170, i32 noundef %175, i32 %190, i32 %191)
  %192 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 0
  %193 = load float, ptr %192, align 4, !tbaa !11
  %194 = fptosi float %193 to i32
  %195 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 1
  %196 = load float, ptr %195, align 4, !tbaa !13
  %197 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 3
  %198 = load float, ptr %197, align 4, !tbaa !14
  %199 = fdiv float %198, 6.000000e+00
  %200 = call float @llvm.fmuladd.f32(float 2.000000e+00, float %199, float %196)
  %201 = fptosi float %200 to i32
  %202 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 2
  %203 = load float, ptr %202, align 4, !tbaa !15
  %204 = fptosi float %203 to i32
  %205 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 3
  %206 = load float, ptr %205, align 4, !tbaa !14
  %207 = fdiv float %206, 6.000000e+00
  %208 = call noundef float @_ZSt4ceilf(float noundef %207)
  %209 = fptosi float %208 to i32
  %210 = getelementptr inbounds %struct.Color, ptr %22, i32 0, i32 0
  store i8 0, ptr %210, align 1, !tbaa !24
  %211 = getelementptr inbounds %struct.Color, ptr %22, i32 0, i32 1
  store i8 -1, ptr %211, align 1, !tbaa !26
  %212 = getelementptr inbounds %struct.Color, ptr %22, i32 0, i32 2
  store i8 0, ptr %212, align 1, !tbaa !27
  %213 = getelementptr inbounds %struct.Color, ptr %22, i32 0, i32 3
  store i8 -1, ptr %213, align 1, !tbaa !28
  %214 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !5
  %215 = load i32, ptr %22, align 1
  %216 = call i32 @Fade(i32 %215, float noundef %214)
  store i32 %216, ptr %21, align 1
  %217 = getelementptr inbounds %struct.Color, ptr %24, i32 0, i32 0
  store i8 0, ptr %217, align 1, !tbaa !24
  %218 = getelementptr inbounds %struct.Color, ptr %24, i32 0, i32 1
  store i8 -1, ptr %218, align 1, !tbaa !26
  %219 = getelementptr inbounds %struct.Color, ptr %24, i32 0, i32 2
  store i8 -1, ptr %219, align 1, !tbaa !27
  %220 = getelementptr inbounds %struct.Color, ptr %24, i32 0, i32 3
  store i8 -1, ptr %220, align 1, !tbaa !28
  %221 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !5
  %222 = load i32, ptr %24, align 1
  %223 = call i32 @Fade(i32 %222, float noundef %221)
  store i32 %223, ptr %23, align 1
  %224 = load i32, ptr %21, align 1
  %225 = load i32, ptr %23, align 1
  call void @DrawRectangleGradientV(i32 noundef %194, i32 noundef %201, i32 noundef %204, i32 noundef %209, i32 %224, i32 %225)
  %226 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 0
  %227 = load float, ptr %226, align 4, !tbaa !11
  %228 = fptosi float %227 to i32
  %229 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 1
  %230 = load float, ptr %229, align 4, !tbaa !13
  %231 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 3
  %232 = load float, ptr %231, align 4, !tbaa !14
  %233 = fdiv float %232, 6.000000e+00
  %234 = call float @llvm.fmuladd.f32(float 3.000000e+00, float %233, float %230)
  %235 = fptosi float %234 to i32
  %236 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 2
  %237 = load float, ptr %236, align 4, !tbaa !15
  %238 = fptosi float %237 to i32
  %239 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 3
  %240 = load float, ptr %239, align 4, !tbaa !14
  %241 = fdiv float %240, 6.000000e+00
  %242 = call noundef float @_ZSt4ceilf(float noundef %241)
  %243 = fptosi float %242 to i32
  %244 = getelementptr inbounds %struct.Color, ptr %26, i32 0, i32 0
  store i8 0, ptr %244, align 1, !tbaa !24
  %245 = getelementptr inbounds %struct.Color, ptr %26, i32 0, i32 1
  store i8 -1, ptr %245, align 1, !tbaa !26
  %246 = getelementptr inbounds %struct.Color, ptr %26, i32 0, i32 2
  store i8 -1, ptr %246, align 1, !tbaa !27
  %247 = getelementptr inbounds %struct.Color, ptr %26, i32 0, i32 3
  store i8 -1, ptr %247, align 1, !tbaa !28
  %248 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !5
  %249 = load i32, ptr %26, align 1
  %250 = call i32 @Fade(i32 %249, float noundef %248)
  store i32 %250, ptr %25, align 1
  %251 = getelementptr inbounds %struct.Color, ptr %28, i32 0, i32 0
  store i8 0, ptr %251, align 1, !tbaa !24
  %252 = getelementptr inbounds %struct.Color, ptr %28, i32 0, i32 1
  store i8 0, ptr %252, align 1, !tbaa !26
  %253 = getelementptr inbounds %struct.Color, ptr %28, i32 0, i32 2
  store i8 -1, ptr %253, align 1, !tbaa !27
  %254 = getelementptr inbounds %struct.Color, ptr %28, i32 0, i32 3
  store i8 -1, ptr %254, align 1, !tbaa !28
  %255 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !5
  %256 = load i32, ptr %28, align 1
  %257 = call i32 @Fade(i32 %256, float noundef %255)
  store i32 %257, ptr %27, align 1
  %258 = load i32, ptr %25, align 1
  %259 = load i32, ptr %27, align 1
  call void @DrawRectangleGradientV(i32 noundef %228, i32 noundef %235, i32 noundef %238, i32 noundef %243, i32 %258, i32 %259)
  %260 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 0
  %261 = load float, ptr %260, align 4, !tbaa !11
  %262 = fptosi float %261 to i32
  %263 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 1
  %264 = load float, ptr %263, align 4, !tbaa !13
  %265 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 3
  %266 = load float, ptr %265, align 4, !tbaa !14
  %267 = fdiv float %266, 6.000000e+00
  %268 = call float @llvm.fmuladd.f32(float 4.000000e+00, float %267, float %264)
  %269 = fptosi float %268 to i32
  %270 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 2
  %271 = load float, ptr %270, align 4, !tbaa !15
  %272 = fptosi float %271 to i32
  %273 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 3
  %274 = load float, ptr %273, align 4, !tbaa !14
  %275 = fdiv float %274, 6.000000e+00
  %276 = call noundef float @_ZSt4ceilf(float noundef %275)
  %277 = fptosi float %276 to i32
  %278 = getelementptr inbounds %struct.Color, ptr %30, i32 0, i32 0
  store i8 0, ptr %278, align 1, !tbaa !24
  %279 = getelementptr inbounds %struct.Color, ptr %30, i32 0, i32 1
  store i8 0, ptr %279, align 1, !tbaa !26
  %280 = getelementptr inbounds %struct.Color, ptr %30, i32 0, i32 2
  store i8 -1, ptr %280, align 1, !tbaa !27
  %281 = getelementptr inbounds %struct.Color, ptr %30, i32 0, i32 3
  store i8 -1, ptr %281, align 1, !tbaa !28
  %282 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !5
  %283 = load i32, ptr %30, align 1
  %284 = call i32 @Fade(i32 %283, float noundef %282)
  store i32 %284, ptr %29, align 1
  %285 = getelementptr inbounds %struct.Color, ptr %32, i32 0, i32 0
  store i8 -1, ptr %285, align 1, !tbaa !24
  %286 = getelementptr inbounds %struct.Color, ptr %32, i32 0, i32 1
  store i8 0, ptr %286, align 1, !tbaa !26
  %287 = getelementptr inbounds %struct.Color, ptr %32, i32 0, i32 2
  store i8 -1, ptr %287, align 1, !tbaa !27
  %288 = getelementptr inbounds %struct.Color, ptr %32, i32 0, i32 3
  store i8 -1, ptr %288, align 1, !tbaa !28
  %289 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !5
  %290 = load i32, ptr %32, align 1
  %291 = call i32 @Fade(i32 %290, float noundef %289)
  store i32 %291, ptr %31, align 1
  %292 = load i32, ptr %29, align 1
  %293 = load i32, ptr %31, align 1
  call void @DrawRectangleGradientV(i32 noundef %262, i32 noundef %269, i32 noundef %272, i32 noundef %277, i32 %292, i32 %293)
  %294 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 0
  %295 = load float, ptr %294, align 4, !tbaa !11
  %296 = fptosi float %295 to i32
  %297 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 1
  %298 = load float, ptr %297, align 4, !tbaa !13
  %299 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 3
  %300 = load float, ptr %299, align 4, !tbaa !14
  %301 = fdiv float %300, 6.000000e+00
  %302 = call float @llvm.fmuladd.f32(float 5.000000e+00, float %301, float %298)
  %303 = fptosi float %302 to i32
  %304 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 2
  %305 = load float, ptr %304, align 4, !tbaa !15
  %306 = fptosi float %305 to i32
  %307 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 3
  %308 = load float, ptr %307, align 4, !tbaa !14
  %309 = fdiv float %308, 6.000000e+00
  %310 = fptosi float %309 to i32
  %311 = getelementptr inbounds %struct.Color, ptr %34, i32 0, i32 0
  store i8 -1, ptr %311, align 1, !tbaa !24
  %312 = getelementptr inbounds %struct.Color, ptr %34, i32 0, i32 1
  store i8 0, ptr %312, align 1, !tbaa !26
  %313 = getelementptr inbounds %struct.Color, ptr %34, i32 0, i32 2
  store i8 -1, ptr %313, align 1, !tbaa !27
  %314 = getelementptr inbounds %struct.Color, ptr %34, i32 0, i32 3
  store i8 -1, ptr %314, align 1, !tbaa !28
  %315 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !5
  %316 = load i32, ptr %34, align 1
  %317 = call i32 @Fade(i32 %316, float noundef %315)
  store i32 %317, ptr %33, align 1
  %318 = getelementptr inbounds %struct.Color, ptr %36, i32 0, i32 0
  store i8 -1, ptr %318, align 1, !tbaa !24
  %319 = getelementptr inbounds %struct.Color, ptr %36, i32 0, i32 1
  store i8 0, ptr %319, align 1, !tbaa !26
  %320 = getelementptr inbounds %struct.Color, ptr %36, i32 0, i32 2
  store i8 0, ptr %320, align 1, !tbaa !27
  %321 = getelementptr inbounds %struct.Color, ptr %36, i32 0, i32 3
  store i8 -1, ptr %321, align 1, !tbaa !28
  %322 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !5
  %323 = load i32, ptr %36, align 1
  %324 = call i32 @Fade(i32 %323, float noundef %322)
  store i32 %324, ptr %35, align 1
  %325 = load i32, ptr %33, align 1
  %326 = load i32, ptr %35, align 1
  call void @DrawRectangleGradientV(i32 noundef %296, i32 noundef %303, i32 noundef %306, i32 noundef %310, i32 %325, i32 %326)
  br label %354

327:                                              ; preds = %124
  %328 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 0
  %329 = load float, ptr %328, align 4, !tbaa !11
  %330 = fptosi float %329 to i32
  %331 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 1
  %332 = load float, ptr %331, align 4, !tbaa !13
  %333 = fptosi float %332 to i32
  %334 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 2
  %335 = load float, ptr %334, align 4, !tbaa !15
  %336 = fptosi float %335 to i32
  %337 = getelementptr inbounds %struct.Rectangle, ptr %4, i32 0, i32 3
  %338 = load float, ptr %337, align 4, !tbaa !14
  %339 = fptosi float %338 to i32
  %340 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 10)
  %341 = call i32 @GetColor(i32 noundef %340)
  store i32 %341, ptr %39, align 1
  %342 = load i32, ptr %39, align 1
  %343 = call i32 @Fade(i32 %342, float noundef 0x3FB99999A0000000)
  store i32 %343, ptr %38, align 1
  %344 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !5
  %345 = load i32, ptr %38, align 1
  %346 = call i32 @Fade(i32 %345, float noundef %344)
  store i32 %346, ptr %37, align 1
  %347 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 9)
  %348 = call i32 @GetColor(i32 noundef %347)
  store i32 %348, ptr %41, align 1
  %349 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !5
  %350 = load i32, ptr %41, align 1
  %351 = call i32 @Fade(i32 %350, float noundef %349)
  store i32 %351, ptr %40, align 1
  %352 = load i32, ptr %37, align 1
  %353 = load i32, ptr %40, align 1
  call void @DrawRectangleGradientV(i32 noundef %330, i32 noundef %333, i32 noundef %336, i32 noundef %339, i32 %352, i32 %353)
  br label %354

354:                                              ; preds = %327, %127
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 %4, i64 16, i1 false), !tbaa.struct !21
  %355 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 12)
  %356 = load i32, ptr %6, align 4, !tbaa !9
  %357 = mul nsw i32 %356, 3
  %358 = add nsw i32 0, %357
  %359 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef %358)
  %360 = call i32 @GetColor(i32 noundef %359)
  store i32 %360, ptr %44, align 1
  %361 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !5
  %362 = load i32, ptr %44, align 1
  %363 = call i32 @Fade(i32 %362, float noundef %361)
  store i32 %363, ptr %43, align 1
  %364 = getelementptr inbounds %struct.Color, ptr %45, i32 0, i32 0
  store i8 0, ptr %364, align 1, !tbaa !24
  %365 = getelementptr inbounds %struct.Color, ptr %45, i32 0, i32 1
  store i8 0, ptr %365, align 1, !tbaa !26
  %366 = getelementptr inbounds %struct.Color, ptr %45, i32 0, i32 2
  store i8 0, ptr %366, align 1, !tbaa !27
  %367 = getelementptr inbounds %struct.Color, ptr %45, i32 0, i32 3
  store i8 0, ptr %367, align 1, !tbaa !28
  %368 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %42, i32 0, i32 0
  %369 = load <2 x float>, ptr %368, align 4
  %370 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %42, i32 0, i32 1
  %371 = load <2 x float>, ptr %370, align 4
  %372 = load i32, ptr %43, align 1
  %373 = load i32, ptr %45, align 1
  call void @_ZL16GuiDrawRectangle9Rectanglei5ColorS0_(<2 x float> %369, <2 x float> %371, i32 noundef %355, i32 %372, i32 %373)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %46, ptr align 4 %7, i64 16, i1 false), !tbaa.struct !21
  %374 = getelementptr inbounds %struct.Color, ptr %47, i32 0, i32 0
  store i8 0, ptr %374, align 1, !tbaa !24
  %375 = getelementptr inbounds %struct.Color, ptr %47, i32 0, i32 1
  store i8 0, ptr %375, align 1, !tbaa !26
  %376 = getelementptr inbounds %struct.Color, ptr %47, i32 0, i32 2
  store i8 0, ptr %376, align 1, !tbaa !27
  %377 = getelementptr inbounds %struct.Color, ptr %47, i32 0, i32 3
  store i8 0, ptr %377, align 1, !tbaa !28
  %378 = load i32, ptr %6, align 4, !tbaa !9
  %379 = mul nsw i32 %378, 3
  %380 = add nsw i32 0, %379
  %381 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef %380)
  %382 = call i32 @GetColor(i32 noundef %381)
  store i32 %382, ptr %49, align 1
  %383 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !5
  %384 = load i32, ptr %49, align 1
  %385 = call i32 @Fade(i32 %384, float noundef %383)
  store i32 %385, ptr %48, align 1
  %386 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %46, i32 0, i32 0
  %387 = load <2 x float>, ptr %386, align 4
  %388 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %46, i32 0, i32 1
  %389 = load <2 x float>, ptr %388, align 4
  %390 = load i32, ptr %47, align 1
  %391 = load i32, ptr %48, align 1
  call void @_ZL16GuiDrawRectangle9Rectanglei5ColorS0_(<2 x float> %387, <2 x float> %389, i32 noundef 0, i32 %390, i32 %391)
  %392 = load float, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  ret float %392
}

declare void @DrawRectangleGradientV(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32, i32) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4ceilf(float noundef) #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTS15GuiControlState", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTS9Rectangle", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!13 = !{!12, !6, i64 4}
!14 = !{!12, !6, i64 12}
!15 = !{!12, !6, i64 8}
!16 = !{!17, !17, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{i64 0, i64 4, !5, i64 4, i64 4, !5}
!21 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5, i64 12, i64 4, !5}
!22 = !{!23, !6, i64 4}
!23 = !{!"_ZTS7Vector2", !6, i64 0, !6, i64 4}
!24 = !{!25, !7, i64 0}
!25 = !{!"_ZTS5Color", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3}
!26 = !{!25, !7, i64 1}
!27 = !{!25, !7, i64 2}
!28 = !{!25, !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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #0

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL16GuiDrawRectangle9Rectanglei5ColorS0_(<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

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 @IsMouseButtonDown(i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local float @GuiColorBarHue(<2 x float> %0, <2 x float> %1, float noundef %2) local_unnamed_addr #2 {
  %4 = load i32, ptr @_ZL8guiState, align 4, !tbaa !5
  %.sroa.097.0.vec.extract = extractelement <2 x float> %0, i64 0
  %5 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %.sroa.097.4.vec.extract = extractelement <2 x float> %0, i64 1
  %6 = fdiv float %2, 3.600000e+02
  %.sroa.20.12.vec.extract = extractelement <2 x float> %1, i64 1
  %7 = tail call float @llvm.fmuladd.f32(float %6, float %.sroa.20.12.vec.extract, float %.sroa.097.4.vec.extract)
  %8 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 19)
  %9 = sdiv i32 %8, 2
  %10 = insertelement <2 x i32> poison, i32 %5, i64 0
  %11 = insertelement <2 x i32> %10, i32 %9, i64 1
  %12 = sitofp <2 x i32> %11 to <2 x float>
  %13 = insertelement <2 x float> %0, float %7, i64 1
  %14 = fsub <2 x float> %13, %12
  %.sroa.20.8.vec.extract = extractelement <2 x float> %1, i64 0
  %15 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 20)
  %16 = shl nsw i32 %15, 1
  %17 = sitofp i32 %16 to float
  %18 = fadd float %.sroa.20.8.vec.extract, %17
  %.sroa.6.8.vec.insert = insertelement <2 x float> poison, float %18, i64 0
  %19 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 19)
  %20 = sitofp i32 %19 to float
  %.sroa.6.12.vec.insert = insertelement <2 x float> %.sroa.6.8.vec.insert, float %20, i64 1
  %.not = icmp eq i32 %4, 3
  br i1 %.not, label %89, label %21

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

24:                                               ; preds = %21
  %25 = tail call <2 x float> @GetMousePosition()
  %26 = tail call zeroext i1 @CheckCollisionPointRec(<2 x float> %25, <2 x float> %0, <2 x float> %1)
  br i1 %26, label %29, label %27

27:                                               ; preds = %24
  %28 = tail call zeroext i1 @CheckCollisionPointRec(<2 x float> %25, <2 x float> %14, <2 x float> %.sroa.6.12.vec.insert)
  br i1 %28, label %29, label %38

29:                                               ; preds = %27, %24
  %30 = tail call zeroext i1 @IsMouseButtonDown(i32 noundef 0)
  br i1 %30, label %31, label %38

31:                                               ; preds = %29
  %32 = fsub <2 x float> %25, %0
  %33 = extractelement <2 x float> %32, i64 1
  %34 = fmul float %33, 3.600000e+02
  %35 = fdiv float %34, %.sroa.20.12.vec.extract
  %.inv = fcmp ole float %35, 0.000000e+00
  %.0 = select i1 %.inv, float 0.000000e+00, float %35
  %36 = fcmp ult float %.0, 3.590000e+02
  br i1 %36, label %38, label %37

37:                                               ; preds = %31
  br label %38

38:                                               ; preds = %21, %37, %31, %27, %29
  %.1173.ph = phi i32 [ 1, %29 ], [ %4, %27 ], [ 2, %31 ], [ 2, %37 ], [ %4, %21 ]
  %.2.ph = phi float [ %2, %29 ], [ %2, %27 ], [ %.0, %31 ], [ 3.590000e+02, %37 ], [ %2, %21 ]
  %39 = fptosi float %.sroa.097.0.vec.extract to i32
  %40 = fptosi float %.sroa.097.4.vec.extract to i32
  %41 = fptosi float %.sroa.20.8.vec.extract to i32
  %42 = fdiv float %.sroa.20.12.vec.extract, 6.000000e+00
  %43 = tail call noundef float @_ZSt4ceilf(float noundef %42)
  %44 = fptosi float %43 to i32
  %45 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %46 = tail call i32 @Fade(i32 -16776961, float noundef %45)
  %47 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %48 = tail call i32 @Fade(i32 -16711681, float noundef %47)
  tail call void @DrawRectangleGradientV(i32 noundef %39, i32 noundef %40, i32 noundef %41, i32 noundef %44, i32 %46, i32 %48)
  %49 = fadd float %.sroa.097.4.vec.extract, %42
  %50 = fptosi float %49 to i32
  %51 = tail call noundef float @_ZSt4ceilf(float noundef %42)
  %52 = fptosi float %51 to i32
  %53 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %54 = tail call i32 @Fade(i32 -16711681, float noundef %53)
  %55 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %56 = tail call i32 @Fade(i32 -16711936, float noundef %55)
  tail call void @DrawRectangleGradientV(i32 noundef %39, i32 noundef %50, i32 noundef %41, i32 noundef %52, i32 %54, i32 %56)
  %57 = tail call float @llvm.fmuladd.f32(float %42, float 2.000000e+00, float %.sroa.097.4.vec.extract)
  %58 = fptosi float %57 to i32
  %59 = tail call noundef float @_ZSt4ceilf(float noundef %42)
  %60 = fptosi float %59 to i32
  %61 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %62 = tail call i32 @Fade(i32 -16711936, float noundef %61)
  %63 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %64 = tail call i32 @Fade(i32 -256, float noundef %63)
  tail call void @DrawRectangleGradientV(i32 noundef %39, i32 noundef %58, i32 noundef %41, i32 noundef %60, i32 %62, i32 %64)
  %65 = tail call float @llvm.fmuladd.f32(float %42, float 3.000000e+00, float %.sroa.097.4.vec.extract)
  %66 = fptosi float %65 to i32
  %67 = tail call noundef float @_ZSt4ceilf(float noundef %42)
  %68 = fptosi float %67 to i32
  %69 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %70 = tail call i32 @Fade(i32 -256, float noundef %69)
  %71 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %72 = tail call i32 @Fade(i32 -65536, float noundef %71)
  tail call void @DrawRectangleGradientV(i32 noundef %39, i32 noundef %66, i32 noundef %41, i32 noundef %68, i32 %70, i32 %72)
  %73 = tail call float @llvm.fmuladd.f32(float %42, float 4.000000e+00, float %.sroa.097.4.vec.extract)
  %74 = fptosi float %73 to i32
  %75 = tail call noundef float @_ZSt4ceilf(float noundef %42)
  %76 = fptosi float %75 to i32
  %77 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %78 = tail call i32 @Fade(i32 -65536, float noundef %77)
  %79 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %80 = tail call i32 @Fade(i32 -65281, float noundef %79)
  tail call void @DrawRectangleGradientV(i32 noundef %39, i32 noundef %74, i32 noundef %41, i32 noundef %76, i32 %78, i32 %80)
  %81 = tail call float @llvm.fmuladd.f32(float %42, float 5.000000e+00, float %.sroa.097.4.vec.extract)
  %82 = fptosi float %81 to i32
  %83 = fptosi float %42 to i32
  %84 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %85 = tail call i32 @Fade(i32 -65281, float noundef %84)
  %86 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %87 = tail call i32 @Fade(i32 -16776961, float noundef %86)
  tail call void @DrawRectangleGradientV(i32 noundef %39, i32 noundef %82, i32 noundef %41, i32 noundef %83, i32 %85, i32 %87)
  %88 = mul nsw i32 %.1173.ph, 3
  br label %103

89:                                               ; preds = %3
  %90 = fptosi float %.sroa.097.0.vec.extract to i32
  %91 = fptosi float %.sroa.097.4.vec.extract to i32
  %92 = fptosi float %.sroa.20.8.vec.extract to i32
  %93 = fptosi float %.sroa.20.12.vec.extract to i32
  %94 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 10)
  %95 = tail call i32 @GetColor(i32 noundef %94)
  %96 = tail call i32 @Fade(i32 %95, float noundef 0x3FB99999A0000000)
  %97 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %98 = tail call i32 @Fade(i32 %96, float noundef %97)
  %99 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 9)
  %100 = tail call i32 @GetColor(i32 noundef %99)
  %101 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %102 = tail call i32 @Fade(i32 %100, float noundef %101)
  tail call void @DrawRectangleGradientV(i32 noundef %90, i32 noundef %91, i32 noundef %92, i32 noundef %93, i32 %98, i32 %102)
  br label %103

103:                                              ; preds = %89, %38
  %.2183 = phi float [ %2, %89 ], [ %.2.ph, %38 ]
  %.1173181 = phi i32 [ 9, %89 ], [ %88, %38 ]
  %104 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 12)
  %105 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef %.1173181)
  %106 = tail call i32 @GetColor(i32 noundef %105)
  %107 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %108 = tail call i32 @Fade(i32 %106, float noundef %107)
  tail call void @_ZL16GuiDrawRectangle9Rectanglei5ColorS0_(<2 x float> %0, <2 x float> %1, i32 noundef %104, i32 %108, i32 0)
  %109 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef %.1173181)
  %110 = tail call i32 @GetColor(i32 noundef %109)
  %111 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %112 = tail call i32 @Fade(i32 %110, float noundef %111)
  tail call void @_ZL16GuiDrawRectangle9Rectanglei5ColorS0_(<2 x float> %14, <2 x float> %.sroa.6.12.vec.insert, i32 noundef 0, i32 0, i32 %112)
  ret float %.2183
}

declare void @DrawRectangleGradientV(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32, i32) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4ceilf(float noundef) local_unnamed_addr #4

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

!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: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass