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

@_ZL8guiState = external hidden global i32, align 4
@_ZL9guiLocked = external hidden global i8, align 1
@_ZL8guiAlpha = external hidden global float, align 4
@__const.GuiColorPanel.colWhite = external hidden unnamed_addr constant %struct.Color, align 1
@__const.GuiColorPanel.colBlack = external hidden unnamed_addr constant %struct.Color, 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

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

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

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

declare i32 @GetColor(i32 noundef) #6

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

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

declare zeroext i1 @IsMouseButtonDown(i32 noundef) #6

; Function Attrs: mustprogress uwtable
define dso_local i32 @GuiColorPanel(<2 x float> %0, <2 x float> %1, i32 %2) #5 {
  %4 = alloca %struct.Color, align 1
  %5 = alloca %struct.Rectangle, align 4
  %6 = alloca %struct.Color, align 1
  %7 = alloca %struct.Color, align 1
  %8 = alloca %struct.Color, align 1
  %9 = alloca i32, align 4
  %10 = alloca %struct.Vector2, align 4
  %11 = alloca %struct.Vector3, align 4
  %12 = alloca %struct.Vector3, align 4
  %13 = alloca %struct.Vector3, align 4
  %14 = alloca { <2 x float>, float }, align 4
  %15 = alloca { <2 x float>, float }, align 8
  %16 = alloca float, align 4
  %17 = alloca %struct.Vector3, align 4
  %18 = alloca %struct.Vector3, align 4
  %19 = alloca %struct.Vector3, align 4
  %20 = alloca { <2 x float>, float }, align 4
  %21 = alloca { <2 x float>, float }, align 8
  %22 = alloca %struct.Color, align 1
  %23 = alloca %struct.Vector2, align 4
  %24 = alloca %struct.Vector2, align 4
  %25 = alloca %struct.Rectangle, align 4
  %26 = alloca %struct.Vector2, align 4
  %27 = alloca %struct.Vector3, align 4
  %28 = alloca %struct.Vector3, align 4
  %29 = alloca { <2 x float>, float }, align 4
  %30 = alloca { <2 x float>, float }, align 8
  %31 = alloca %struct.Color, align 1
  %32 = alloca %struct.Rectangle, align 4
  %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.Rectangle, align 4
  %42 = alloca %struct.Color, align 1
  %43 = alloca %struct.Color, align 1
  %44 = alloca %struct.Color, align 1
  %45 = alloca %struct.Color, align 1
  %46 = alloca %struct.Color, align 1
  %47 = alloca %struct.Color, align 1
  %48 = alloca %struct.Color, align 1
  %49 = alloca %struct.Color, align 1
  %50 = alloca %struct.Rectangle, align 4
  %51 = alloca %struct.Rectangle, align 4
  %52 = alloca %struct.Color, align 1
  %53 = alloca %struct.Color, align 1
  %54 = alloca %struct.Color, align 1
  %55 = alloca %struct.Rectangle, align 4
  %56 = alloca %struct.Color, align 1
  %57 = alloca %struct.Color, align 1
  %58 = alloca %struct.Color, align 1
  %59 = alloca %struct.Color, align 1
  %60 = alloca %struct.Color, align 1
  %61 = alloca %struct.Color, align 1
  %62 = alloca %struct.Color, align 1
  %63 = alloca %struct.Color, align 1
  %64 = alloca %struct.Color, align 1
  %65 = alloca %struct.Color, align 1
  %66 = alloca %struct.Color, align 1
  %67 = alloca %struct.Color, align 1
  %68 = alloca %struct.Rectangle, align 4
  %69 = alloca %struct.Color, align 1
  %70 = alloca %struct.Color, align 1
  %71 = alloca %struct.Color, align 1
  %72 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %5, i32 0, i32 0
  store <2 x float> %0, ptr %72, align 4
  %73 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %5, i32 0, i32 1
  store <2 x float> %1, ptr %73, align 4
  store i32 %2, ptr %6, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.GuiColorPanel.colWhite, i64 4, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 @__const.GuiColorPanel.colBlack, i64 4, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %74 = load i32, ptr @_ZL8guiState, align 4, !tbaa !5
  store i32 %74, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  call void @llvm.memset.p0.i64(ptr align 4 %10, i8 0, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #8
  %75 = getelementptr inbounds %struct.Vector3, ptr %11, i32 0, i32 0
  %76 = getelementptr inbounds %struct.Color, ptr %6, i32 0, i32 0
  %77 = load i8, ptr %76, align 1, !tbaa !9
  %78 = uitofp i8 %77 to float
  %79 = fdiv float %78, 2.550000e+02
  store float %79, ptr %75, align 4, !tbaa !11
  %80 = getelementptr inbounds %struct.Vector3, ptr %11, i32 0, i32 1
  %81 = getelementptr inbounds %struct.Color, ptr %6, i32 0, i32 1
  %82 = load i8, ptr %81, align 1, !tbaa !14
  %83 = uitofp i8 %82 to float
  %84 = fdiv float %83, 2.550000e+02
  store float %84, ptr %80, align 4, !tbaa !15
  %85 = getelementptr inbounds %struct.Vector3, ptr %11, i32 0, i32 2
  %86 = getelementptr inbounds %struct.Color, ptr %6, i32 0, i32 2
  %87 = load i8, ptr %86, align 1, !tbaa !16
  %88 = uitofp i8 %87 to float
  %89 = fdiv float %88, 2.550000e+02
  store float %89, ptr %85, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %11, i64 12, i1 false), !tbaa.struct !18
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %13, i64 12, i1 false)
  %90 = getelementptr inbounds { <2 x float>, float }, ptr %14, i32 0, i32 0
  %91 = load <2 x float>, ptr %90, align 4
  %92 = getelementptr inbounds { <2 x float>, float }, ptr %14, i32 0, i32 1
  %93 = load float, ptr %92, align 4
  %94 = call { <2 x float>, float } @_ZL15ConvertRGBtoHSV7Vector3(<2 x float> %91, float %93)
  store { <2 x float>, float } %94, ptr %15, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 8 %15, i64 12, i1 false)
  %95 = getelementptr inbounds %struct.Rectangle, ptr %5, i32 0, i32 0
  %96 = load float, ptr %95, align 4, !tbaa !20
  %97 = getelementptr inbounds %struct.Vector3, ptr %12, i32 0, i32 1
  %98 = load float, ptr %97, align 4, !tbaa !15
  %99 = getelementptr inbounds %struct.Rectangle, ptr %5, i32 0, i32 2
  %100 = load float, ptr %99, align 4, !tbaa !22
  %101 = call float @llvm.fmuladd.f32(float %98, float %100, float %96)
  %102 = getelementptr inbounds %struct.Vector2, ptr %10, i32 0, i32 0
  store float %101, ptr %102, align 4, !tbaa !23
  %103 = getelementptr inbounds %struct.Rectangle, ptr %5, i32 0, i32 1
  %104 = load float, ptr %103, align 4, !tbaa !25
  %105 = getelementptr inbounds %struct.Vector3, ptr %12, i32 0, i32 2
  %106 = load float, ptr %105, align 4, !tbaa !17
  %107 = fsub float 1.000000e+00, %106
  %108 = getelementptr inbounds %struct.Rectangle, ptr %5, i32 0, i32 3
  %109 = load float, ptr %108, align 4, !tbaa !26
  %110 = call float @llvm.fmuladd.f32(float %107, float %109, float %104)
  %111 = getelementptr inbounds %struct.Vector2, ptr %10, i32 0, i32 1
  store float %110, ptr %111, align 4, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store float -1.000000e+00, ptr %16, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #8
  %112 = getelementptr inbounds %struct.Vector3, ptr %17, i32 0, i32 0
  %113 = load float, ptr %16, align 4, !tbaa !19
  %114 = fcmp oge float %113, 0.000000e+00
  br i1 %114, label %115, label %117

115:                                              ; preds = %3
  %116 = load float, ptr %16, align 4, !tbaa !19
  br label %120

117:                                              ; preds = %3
  %118 = getelementptr inbounds %struct.Vector3, ptr %12, i32 0, i32 0
  %119 = load float, ptr %118, align 4, !tbaa !11
  br label %120

120:                                              ; preds = %117, %115
  %121 = phi float [ %116, %115 ], [ %119, %117 ]
  store float %121, ptr %112, align 4, !tbaa !11
  %122 = getelementptr inbounds %struct.Vector3, ptr %17, i32 0, i32 1
  store float 1.000000e+00, ptr %122, align 4, !tbaa !15
  %123 = getelementptr inbounds %struct.Vector3, ptr %17, i32 0, i32 2
  store float 1.000000e+00, ptr %123, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %17, i64 12, i1 false), !tbaa.struct !18
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %19, i64 12, i1 false)
  %124 = getelementptr inbounds { <2 x float>, float }, ptr %20, i32 0, i32 0
  %125 = load <2 x float>, ptr %124, align 4
  %126 = getelementptr inbounds { <2 x float>, float }, ptr %20, i32 0, i32 1
  %127 = load float, ptr %126, align 4
  %128 = call { <2 x float>, float } @_ZL15ConvertHSVtoRGB7Vector3(<2 x float> %125, float %127)
  store { <2 x float>, float } %128, ptr %21, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 8 %21, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %129 = getelementptr inbounds %struct.Color, ptr %22, i32 0, i32 0
  %130 = getelementptr inbounds %struct.Vector3, ptr %18, i32 0, i32 0
  %131 = load float, ptr %130, align 4, !tbaa !11
  %132 = fmul float 2.550000e+02, %131
  %133 = fptoui float %132 to i8
  store i8 %133, ptr %129, align 1, !tbaa !9
  %134 = getelementptr inbounds %struct.Color, ptr %22, i32 0, i32 1
  %135 = getelementptr inbounds %struct.Vector3, ptr %18, i32 0, i32 1
  %136 = load float, ptr %135, align 4, !tbaa !15
  %137 = fmul float 2.550000e+02, %136
  %138 = fptoui float %137 to i8
  store i8 %138, ptr %134, align 1, !tbaa !14
  %139 = getelementptr inbounds %struct.Color, ptr %22, i32 0, i32 2
  %140 = getelementptr inbounds %struct.Vector3, ptr %18, i32 0, i32 2
  %141 = load float, ptr %140, align 4, !tbaa !17
  %142 = fmul float 2.550000e+02, %141
  %143 = fptoui float %142 to i8
  store i8 %143, ptr %139, align 1, !tbaa !16
  %144 = getelementptr inbounds %struct.Color, ptr %22, i32 0, i32 3
  store i8 -1, ptr %144, align 1, !tbaa !28
  %145 = load i32, ptr %9, align 4, !tbaa !5
  %146 = icmp ne i32 %145, 3
  br i1 %146, label %147, label %220

147:                                              ; preds = %120
  %148 = load i8, ptr @_ZL9guiLocked, align 1, !tbaa !29, !range !31, !noundef !32
  %149 = trunc i8 %148 to i1
  br i1 %149, label %220, label %150

150:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %151 = call <2 x float> @GetMousePosition()
  store <2 x float> %151, ptr %23, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %23, i64 8, i1 false), !tbaa.struct !33
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %5, i64 16, i1 false), !tbaa.struct !34
  %152 = load <2 x float>, ptr %24, align 4
  %153 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %25, i32 0, i32 0
  %154 = load <2 x float>, ptr %153, align 4
  %155 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %25, i32 0, i32 1
  %156 = load <2 x float>, ptr %155, align 4
  %157 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %152, <2 x float> %154, <2 x float> %156)
  br i1 %157, label %158, label %219

158:                                              ; preds = %150
  %159 = call zeroext i1 @IsMouseButtonDown(i32 noundef 0)
  br i1 %159, label %160, label %217

160:                                              ; preds = %158
  store i32 2, ptr %9, align 4, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %23, i64 8, i1 false), !tbaa.struct !33
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %161 = getelementptr inbounds %struct.Vector2, ptr %26, i32 0, i32 0
  %162 = getelementptr inbounds %struct.Vector2, ptr %10, i32 0, i32 0
  %163 = load float, ptr %162, align 4, !tbaa !23
  %164 = getelementptr inbounds %struct.Rectangle, ptr %5, i32 0, i32 0
  %165 = load float, ptr %164, align 4, !tbaa !20
  %166 = fsub float %163, %165
  store float %166, ptr %161, align 4, !tbaa !23
  %167 = getelementptr inbounds %struct.Vector2, ptr %26, i32 0, i32 1
  %168 = getelementptr inbounds %struct.Vector2, ptr %10, i32 0, i32 1
  %169 = load float, ptr %168, align 4, !tbaa !27
  %170 = getelementptr inbounds %struct.Rectangle, ptr %5, i32 0, i32 1
  %171 = load float, ptr %170, align 4, !tbaa !25
  %172 = fsub float %169, %171
  store float %172, ptr %167, align 4, !tbaa !27
  %173 = getelementptr inbounds %struct.Rectangle, ptr %5, i32 0, i32 2
  %174 = load float, ptr %173, align 4, !tbaa !22
  %175 = getelementptr inbounds %struct.Vector2, ptr %26, i32 0, i32 0
  %176 = load float, ptr %175, align 4, !tbaa !23
  %177 = fdiv float %176, %174
  store float %177, ptr %175, align 4, !tbaa !23
  %178 = getelementptr inbounds %struct.Rectangle, ptr %5, i32 0, i32 3
  %179 = load float, ptr %178, align 4, !tbaa !26
  %180 = getelementptr inbounds %struct.Vector2, ptr %26, i32 0, i32 1
  %181 = load float, ptr %180, align 4, !tbaa !27
  %182 = fdiv float %181, %179
  store float %182, ptr %180, align 4, !tbaa !27
  %183 = getelementptr inbounds %struct.Vector2, ptr %26, i32 0, i32 0
  %184 = load float, ptr %183, align 4, !tbaa !23
  %185 = getelementptr inbounds %struct.Vector3, ptr %12, i32 0, i32 1
  store float %184, ptr %185, align 4, !tbaa !15
  %186 = getelementptr inbounds %struct.Vector2, ptr %26, i32 0, i32 1
  %187 = load float, ptr %186, align 4, !tbaa !27
  %188 = fsub float 1.000000e+00, %187
  %189 = getelementptr inbounds %struct.Vector3, ptr %12, i32 0, i32 2
  store float %188, ptr %189, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 12, ptr %27) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %12, i64 12, i1 false), !tbaa.struct !18
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 4 %28, i64 12, i1 false)
  %190 = getelementptr inbounds { <2 x float>, float }, ptr %29, i32 0, i32 0
  %191 = load <2 x float>, ptr %190, align 4
  %192 = getelementptr inbounds { <2 x float>, float }, ptr %29, i32 0, i32 1
  %193 = load float, ptr %192, align 4
  %194 = call { <2 x float>, float } @_ZL15ConvertHSVtoRGB7Vector3(<2 x float> %191, float %193)
  store { <2 x float>, float } %194, ptr %30, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 8 %30, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  %195 = getelementptr inbounds %struct.Color, ptr %31, i32 0, i32 0
  %196 = getelementptr inbounds %struct.Vector3, ptr %27, i32 0, i32 0
  %197 = load float, ptr %196, align 4, !tbaa !11
  %198 = fmul float 2.550000e+02, %197
  %199 = fptoui float %198 to i8
  store i8 %199, ptr %195, align 1, !tbaa !9
  %200 = getelementptr inbounds %struct.Color, ptr %31, i32 0, i32 1
  %201 = getelementptr inbounds %struct.Vector3, ptr %27, i32 0, i32 1
  %202 = load float, ptr %201, align 4, !tbaa !15
  %203 = fmul float 2.550000e+02, %202
  %204 = fptoui float %203 to i8
  store i8 %204, ptr %200, align 1, !tbaa !14
  %205 = getelementptr inbounds %struct.Color, ptr %31, i32 0, i32 2
  %206 = getelementptr inbounds %struct.Vector3, ptr %27, i32 0, i32 2
  %207 = load float, ptr %206, align 4, !tbaa !17
  %208 = fmul float 2.550000e+02, %207
  %209 = fptoui float %208 to i8
  store i8 %209, ptr %205, align 1, !tbaa !16
  %210 = getelementptr inbounds %struct.Color, ptr %31, i32 0, i32 3
  %211 = getelementptr inbounds %struct.Color, ptr %6, i32 0, i32 3
  %212 = load i8, ptr %211, align 1, !tbaa !28
  %213 = uitofp i8 %212 to float
  %214 = fmul float 2.550000e+02, %213
  %215 = fdiv float %214, 2.550000e+02
  %216 = fptoui float %215 to i8
  store i8 %216, ptr %210, align 1, !tbaa !28
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %6, ptr align 1 %31, i64 4, i1 false), !tbaa.struct !35
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  br label %218

217:                                              ; preds = %158
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %218

218:                                              ; preds = %217, %160
  br label %219

219:                                              ; preds = %218, %150
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %220

220:                                              ; preds = %219, %147, %120
  %221 = load i32, ptr %9, align 4, !tbaa !5
  %222 = icmp ne i32 %221, 3
  br i1 %222, label %223, label %295

223:                                              ; preds = %220
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %5, i64 16, i1 false), !tbaa.struct !34
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %34, ptr align 1 %7, i64 4, i1 false), !tbaa.struct !35
  %224 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !19
  %225 = load i32, ptr %34, align 1
  %226 = call i32 @Fade(i32 %225, float noundef %224)
  store i32 %226, ptr %33, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %36, ptr align 1 %7, i64 4, i1 false), !tbaa.struct !35
  %227 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !19
  %228 = load i32, ptr %36, align 1
  %229 = call i32 @Fade(i32 %228, float noundef %227)
  store i32 %229, ptr %35, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %38, ptr align 1 %22, i64 4, i1 false), !tbaa.struct !35
  %230 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !19
  %231 = load i32, ptr %38, align 1
  %232 = call i32 @Fade(i32 %231, float noundef %230)
  store i32 %232, ptr %37, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %40, ptr align 1 %22, i64 4, i1 false), !tbaa.struct !35
  %233 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !19
  %234 = load i32, ptr %40, align 1
  %235 = call i32 @Fade(i32 %234, float noundef %233)
  store i32 %235, ptr %39, align 1
  %236 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %32, i32 0, i32 0
  %237 = load <2 x float>, ptr %236, align 4
  %238 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %32, i32 0, i32 1
  %239 = load <2 x float>, ptr %238, align 4
  %240 = load i32, ptr %33, align 1
  %241 = load i32, ptr %35, align 1
  %242 = load i32, ptr %37, align 1
  %243 = load i32, ptr %39, align 1
  call void @DrawRectangleGradientEx(<2 x float> %237, <2 x float> %239, i32 %240, i32 %241, i32 %242, i32 %243)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %41, ptr align 4 %5, i64 16, i1 false), !tbaa.struct !34
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %43, ptr align 1 %8, i64 4, i1 false), !tbaa.struct !35
  %244 = load i32, ptr %43, align 1
  %245 = call i32 @Fade(i32 %244, float noundef 0.000000e+00)
  store i32 %245, ptr %42, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %45, ptr align 1 %8, i64 4, i1 false), !tbaa.struct !35
  %246 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !19
  %247 = load i32, ptr %45, align 1
  %248 = call i32 @Fade(i32 %247, float noundef %246)
  store i32 %248, ptr %44, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %47, ptr align 1 %8, i64 4, i1 false), !tbaa.struct !35
  %249 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !19
  %250 = load i32, ptr %47, align 1
  %251 = call i32 @Fade(i32 %250, float noundef %249)
  store i32 %251, ptr %46, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %49, ptr align 1 %8, i64 4, i1 false), !tbaa.struct !35
  %252 = load i32, ptr %49, align 1
  %253 = call i32 @Fade(i32 %252, float noundef 0.000000e+00)
  store i32 %253, ptr %48, align 1
  %254 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %41, i32 0, i32 0
  %255 = load <2 x float>, ptr %254, align 4
  %256 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %41, i32 0, i32 1
  %257 = load <2 x float>, ptr %256, align 4
  %258 = load i32, ptr %42, align 1
  %259 = load i32, ptr %44, align 1
  %260 = load i32, ptr %46, align 1
  %261 = load i32, ptr %48, align 1
  call void @DrawRectangleGradientEx(<2 x float> %255, <2 x float> %257, i32 %258, i32 %259, i32 %260, i32 %261)
  call void @llvm.lifetime.start.p0(i64 16, ptr %50) #8
  %262 = getelementptr inbounds %struct.Rectangle, ptr %50, i32 0, i32 0
  %263 = getelementptr inbounds %struct.Vector2, ptr %10, i32 0, i32 0
  %264 = load float, ptr %263, align 4, !tbaa !23
  %265 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 16)
  %266 = sdiv i32 %265, 2
  %267 = sitofp i32 %266 to float
  %268 = fsub float %264, %267
  store float %268, ptr %262, align 4, !tbaa !20
  %269 = getelementptr inbounds %struct.Rectangle, ptr %50, i32 0, i32 1
  %270 = getelementptr inbounds %struct.Vector2, ptr %10, i32 0, i32 1
  %271 = load float, ptr %270, align 4, !tbaa !27
  %272 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 16)
  %273 = sdiv i32 %272, 2
  %274 = sitofp i32 %273 to float
  %275 = fsub float %271, %274
  store float %275, ptr %269, align 4, !tbaa !25
  %276 = getelementptr inbounds %struct.Rectangle, ptr %50, i32 0, i32 2
  %277 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 16)
  %278 = sitofp i32 %277 to float
  store float %278, ptr %276, align 4, !tbaa !22
  %279 = getelementptr inbounds %struct.Rectangle, ptr %50, i32 0, i32 3
  %280 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 16)
  %281 = sitofp i32 %280 to float
  store float %281, ptr %279, align 4, !tbaa !26
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %51, ptr align 4 %50, i64 16, i1 false), !tbaa.struct !34
  %282 = getelementptr inbounds %struct.Color, ptr %52, i32 0, i32 0
  store i8 0, ptr %282, align 1, !tbaa !9
  %283 = getelementptr inbounds %struct.Color, ptr %52, i32 0, i32 1
  store i8 0, ptr %283, align 1, !tbaa !14
  %284 = getelementptr inbounds %struct.Color, ptr %52, i32 0, i32 2
  store i8 0, ptr %284, align 1, !tbaa !16
  %285 = getelementptr inbounds %struct.Color, ptr %52, i32 0, i32 3
  store i8 0, ptr %285, align 1, !tbaa !28
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %54, ptr align 1 %7, i64 4, i1 false), !tbaa.struct !35
  %286 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !19
  %287 = load i32, ptr %54, align 1
  %288 = call i32 @Fade(i32 %287, float noundef %286)
  store i32 %288, ptr %53, align 1
  %289 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %51, i32 0, i32 0
  %290 = load <2 x float>, ptr %289, align 4
  %291 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %51, i32 0, i32 1
  %292 = load <2 x float>, ptr %291, align 4
  %293 = load i32, ptr %52, align 1
  %294 = load i32, ptr %53, align 1
  call void @_ZL16GuiDrawRectangle9Rectanglei5ColorS0_(<2 x float> %290, <2 x float> %292, i32 noundef 0, i32 %293, i32 %294)
  call void @llvm.lifetime.end.p0(i64 16, ptr %50) #8
  br label %328

295:                                              ; preds = %220
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %55, ptr align 4 %5, i64 16, i1 false), !tbaa.struct !34
  %296 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 10)
  %297 = call i32 @GetColor(i32 noundef %296)
  store i32 %297, ptr %58, align 1
  %298 = load i32, ptr %58, align 1
  %299 = call i32 @Fade(i32 %298, float noundef 0x3FB99999A0000000)
  store i32 %299, ptr %57, align 1
  %300 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !19
  %301 = load i32, ptr %57, align 1
  %302 = call i32 @Fade(i32 %301, float noundef %300)
  store i32 %302, ptr %56, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %61, ptr align 1 %8, i64 4, i1 false), !tbaa.struct !35
  %303 = load i32, ptr %61, align 1
  %304 = call i32 @Fade(i32 %303, float noundef 0x3FE3333340000000)
  store i32 %304, ptr %60, align 1
  %305 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !19
  %306 = load i32, ptr %60, align 1
  %307 = call i32 @Fade(i32 %306, float noundef %305)
  store i32 %307, ptr %59, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %64, ptr align 1 %8, i64 4, i1 false), !tbaa.struct !35
  %308 = load i32, ptr %64, align 1
  %309 = call i32 @Fade(i32 %308, float noundef 0x3FE3333340000000)
  store i32 %309, ptr %63, align 1
  %310 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !19
  %311 = load i32, ptr %63, align 1
  %312 = call i32 @Fade(i32 %311, float noundef %310)
  store i32 %312, ptr %62, align 1
  %313 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 9)
  %314 = call i32 @GetColor(i32 noundef %313)
  store i32 %314, ptr %67, align 1
  %315 = load i32, ptr %67, align 1
  %316 = call i32 @Fade(i32 %315, float noundef 0x3FE3333340000000)
  store i32 %316, ptr %66, align 1
  %317 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !19
  %318 = load i32, ptr %66, align 1
  %319 = call i32 @Fade(i32 %318, float noundef %317)
  store i32 %319, ptr %65, align 1
  %320 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %55, i32 0, i32 0
  %321 = load <2 x float>, ptr %320, align 4
  %322 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %55, i32 0, i32 1
  %323 = load <2 x float>, ptr %322, align 4
  %324 = load i32, ptr %56, align 1
  %325 = load i32, ptr %59, align 1
  %326 = load i32, ptr %62, align 1
  %327 = load i32, ptr %65, align 1
  call void @DrawRectangleGradientEx(<2 x float> %321, <2 x float> %323, i32 %324, i32 %325, i32 %326, i32 %327)
  br label %328

328:                                              ; preds = %295, %223
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %68, ptr align 4 %5, i64 16, i1 false), !tbaa.struct !34
  %329 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 12)
  %330 = load i32, ptr %9, align 4, !tbaa !5
  %331 = mul nsw i32 %330, 3
  %332 = add nsw i32 0, %331
  %333 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef %332)
  %334 = call i32 @GetColor(i32 noundef %333)
  store i32 %334, ptr %70, align 1
  %335 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !19
  %336 = load i32, ptr %70, align 1
  %337 = call i32 @Fade(i32 %336, float noundef %335)
  store i32 %337, ptr %69, align 1
  %338 = getelementptr inbounds %struct.Color, ptr %71, i32 0, i32 0
  store i8 0, ptr %338, align 1, !tbaa !9
  %339 = getelementptr inbounds %struct.Color, ptr %71, i32 0, i32 1
  store i8 0, ptr %339, align 1, !tbaa !14
  %340 = getelementptr inbounds %struct.Color, ptr %71, i32 0, i32 2
  store i8 0, ptr %340, align 1, !tbaa !16
  %341 = getelementptr inbounds %struct.Color, ptr %71, i32 0, i32 3
  store i8 0, ptr %341, align 1, !tbaa !28
  %342 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %68, i32 0, i32 0
  %343 = load <2 x float>, ptr %342, align 4
  %344 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %68, i32 0, i32 1
  %345 = load <2 x float>, ptr %344, align 4
  %346 = load i32, ptr %69, align 1
  %347 = load i32, ptr %71, align 1
  call void @_ZL16GuiDrawRectangle9Rectanglei5ColorS0_(<2 x float> %343, <2 x float> %345, i32 noundef %329, i32 %346, i32 %347)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %4, ptr align 1 %6, i64 4, i1 false), !tbaa.struct !35
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  %348 = load i32, ptr %4, align 1
  ret i32 %348
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden { <2 x float>, float } @_ZL15ConvertRGBtoHSV7Vector3(<2 x float>, float) #7

; Function Attrs: mustprogress nounwind uwtable
declare hidden { <2 x float>, float } @_ZL15ConvertHSVtoRGB7Vector3(<2 x float>, float) #7

declare void @DrawRectangleGradientEx(<2 x float>, <2 x float>, i32, i32, i32, i32) #6

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.Color = type { i8, i8, i8, i8 }

@_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
@__const.GuiColorPanel.colWhite = external hidden unnamed_addr constant %struct.Color, align 1
@__const.GuiColorPanel.colBlack = external hidden unnamed_addr constant %struct.Color, align 1

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

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

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

declare i32 @GetColor(i32 noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @GuiColorPanel(<2 x float> %0, <2 x float> %1, i32 %2) local_unnamed_addr #1 {
  %4 = extractelement <2 x float> %1, i64 1
  %5 = extractelement <2 x float> %1, i64 0
  %.sroa.4135.0.extract.shift = lshr i32 %2, 8
  %.sroa.6136.0.extract.shift = lshr i32 %2, 16
  %.sroa.6136.0.extract.trunc = trunc i32 %.sroa.6136.0.extract.shift to i8
  %.sroa.8.0.extract.shift = lshr i32 %2, 24
  %.sroa.8.0.extract.trunc = trunc nuw i32 %.sroa.8.0.extract.shift to i8
  %.sroa.0131.0.copyload = load i32, ptr @__const.GuiColorPanel.colWhite, align 1
  %.sroa.0125.0.copyload = load i32, ptr @__const.GuiColorPanel.colBlack, align 1
  %6 = load i32, ptr @_ZL8guiState, align 4, !tbaa !5
  %7 = trunc i32 %2 to i8
  %8 = insertelement <2 x i8> poison, i8 %7, i64 0
  %9 = trunc i32 %.sroa.4135.0.extract.shift to i8
  %10 = insertelement <2 x i8> %8, i8 %9, i64 1
  %11 = uitofp <2 x i8> %10 to <2 x float>
  %12 = fdiv <2 x float> %11, <float 2.550000e+02, float 2.550000e+02>
  %13 = uitofp i8 %.sroa.6136.0.extract.trunc to float
  %14 = fdiv float %13, 2.550000e+02
  %15 = tail call { <2 x float>, float } @_ZL15ConvertRGBtoHSV7Vector3(<2 x float> %12, float %14)
  %.fca.0.extract101 = extractvalue { <2 x float>, float } %15, 0
  %.fca.1.extract102 = extractvalue { <2 x float>, float } %15, 1
  %16 = fsub float 1.000000e+00, %.fca.1.extract102
  %17 = shufflevector <2 x float> %.fca.0.extract101, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %18 = insertelement <2 x float> %17, float %16, i64 1
  %19 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %18, <2 x float> %1, <2 x float> %0)
  %.sroa.097.4.vec.insert = insertelement <2 x float> %.fca.0.extract101, float 1.000000e+00, i64 1
  %20 = tail call { <2 x float>, float } @_ZL15ConvertHSVtoRGB7Vector3(<2 x float> %.sroa.097.4.vec.insert, float 1.000000e+00)
  %.fca.0.extract87 = extractvalue { <2 x float>, float } %20, 0
  %.fca.1.extract88 = extractvalue { <2 x float>, float } %20, 1
  %.sroa.095.0.vec.extract = extractelement <2 x float> %.fca.0.extract87, i64 0
  %21 = fmul float %.sroa.095.0.vec.extract, 2.550000e+02
  %22 = fptoui float %21 to i8
  %.sroa.095.4.vec.extract = extractelement <2 x float> %.fca.0.extract87, i64 1
  %23 = fmul float %.sroa.095.4.vec.extract, 2.550000e+02
  %24 = fptoui float %23 to i8
  %25 = fmul float %.fca.1.extract88, 2.550000e+02
  %26 = fptoui float %25 to i8
  %.not = icmp eq i32 %6, 3
  br i1 %.not, label %84, label %27

27:                                               ; preds = %3
  %28 = load i8, ptr @_ZL9guiLocked, align 1, !tbaa !9, !range !11, !noundef !12
  %29 = trunc nuw i8 %28 to i1
  br i1 %29, label %54, label %30

30:                                               ; preds = %27
  %31 = tail call <2 x float> @GetMousePosition()
  %32 = tail call zeroext i1 @CheckCollisionPointRec(<2 x float> %31, <2 x float> %0, <2 x float> %1)
  br i1 %32, label %33, label %54

33:                                               ; preds = %30
  %34 = tail call zeroext i1 @IsMouseButtonDown(i32 noundef 0)
  br i1 %34, label %35, label %54

35:                                               ; preds = %33
  %36 = fsub <2 x float> %31, %0
  %37 = extractelement <2 x float> %36, i64 0
  %38 = fsub <2 x float> %31, %0
  %39 = extractelement <2 x float> %38, i64 1
  %40 = fdiv float %37, %5
  %41 = fdiv float %39, %4
  %.sroa.0109.4.vec.insert = insertelement <2 x float> %.fca.0.extract101, float %40, i64 1
  %42 = fsub float 1.000000e+00, %41
  %43 = tail call { <2 x float>, float } @_ZL15ConvertHSVtoRGB7Vector3(<2 x float> %.sroa.0109.4.vec.insert, float %42)
  %.fca.0.extract = extractvalue { <2 x float>, float } %43, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %43, 1
  %.sroa.059.0.vec.extract = extractelement <2 x float> %.fca.0.extract, i64 0
  %44 = fmul float %.sroa.059.0.vec.extract, 2.550000e+02
  %45 = fptoui float %44 to i8
  %.sroa.059.4.vec.extract = extractelement <2 x float> %.fca.0.extract, i64 1
  %46 = fmul float %.sroa.059.4.vec.extract, 2.550000e+02
  %47 = fptoui float %46 to i8
  %48 = fmul float %.fca.1.extract, 2.550000e+02
  %49 = fptoui float %48 to i8
  %50 = uitofp i8 %.sroa.8.0.extract.trunc to float
  %51 = fmul float %50, 2.550000e+02
  %52 = fdiv float %51, 2.550000e+02
  %53 = fptoui float %52 to i8
  br label %54

54:                                               ; preds = %27, %35, %30, %33
  %.sroa.0116.1.ph = phi <2 x float> [ %19, %33 ], [ %19, %30 ], [ %31, %35 ], [ %19, %27 ]
  %.1.ph = phi i32 [ 1, %33 ], [ %6, %30 ], [ 2, %35 ], [ %6, %27 ]
  %.sroa.0134.1.ph = phi i8 [ %7, %33 ], [ %7, %30 ], [ %45, %35 ], [ %7, %27 ]
  %.sroa.4135.1.ph = phi i8 [ %9, %33 ], [ %9, %30 ], [ %47, %35 ], [ %9, %27 ]
  %.sroa.6136.1.ph = phi i8 [ %.sroa.6136.0.extract.trunc, %33 ], [ %.sroa.6136.0.extract.trunc, %30 ], [ %49, %35 ], [ %.sroa.6136.0.extract.trunc, %27 ]
  %.sroa.8.1.ph = phi i8 [ %.sroa.8.0.extract.trunc, %33 ], [ %.sroa.8.0.extract.trunc, %30 ], [ %53, %35 ], [ %.sroa.8.0.extract.trunc, %27 ]
  %55 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %56 = tail call i32 @Fade(i32 %.sroa.0131.0.copyload, float noundef %55)
  %57 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %58 = tail call i32 @Fade(i32 %.sroa.0131.0.copyload, float noundef %57)
  %.sroa.678.0.insert.ext79 = zext i8 %26 to i32
  %.sroa.678.0.insert.shift80 = shl nuw nsw i32 %.sroa.678.0.insert.ext79, 16
  %.sroa.573.0.insert.ext74 = zext i8 %24 to i32
  %.sroa.573.0.insert.shift75 = shl nuw nsw i32 %.sroa.573.0.insert.ext74, 8
  %.sroa.678.0.insert.insert82 = or disjoint i32 %.sroa.573.0.insert.shift75, %.sroa.678.0.insert.shift80
  %.sroa.069.0.insert.ext70 = zext i8 %22 to i32
  %.sroa.573.0.insert.insert77 = or disjoint i32 %.sroa.678.0.insert.insert82, %.sroa.069.0.insert.ext70
  %.sroa.069.0.insert.insert72 = or disjoint i32 %.sroa.573.0.insert.insert77, -16777216
  %59 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %60 = tail call i32 @Fade(i32 %.sroa.069.0.insert.insert72, float noundef %59)
  %61 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %62 = tail call i32 @Fade(i32 %.sroa.069.0.insert.insert72, float noundef %61)
  tail call void @DrawRectangleGradientEx(<2 x float> %0, <2 x float> %1, i32 %56, i32 %58, i32 %60, i32 %62)
  %63 = tail call i32 @Fade(i32 %.sroa.0125.0.copyload, float noundef 0.000000e+00)
  %64 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %65 = tail call i32 @Fade(i32 %.sroa.0125.0.copyload, float noundef %64)
  %66 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %67 = tail call i32 @Fade(i32 %.sroa.0125.0.copyload, float noundef %66)
  %68 = tail call i32 @Fade(i32 %.sroa.0125.0.copyload, float noundef 0.000000e+00)
  tail call void @DrawRectangleGradientEx(<2 x float> %0, <2 x float> %1, i32 %63, i32 %65, i32 %67, i32 %68)
  %69 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 16)
  %70 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 16)
  %71 = insertelement <2 x i32> poison, i32 %69, i64 0
  %72 = insertelement <2 x i32> %71, i32 %70, i64 1
  %73 = sdiv <2 x i32> %72, <i32 2, i32 2>
  %74 = sitofp <2 x i32> %73 to <2 x float>
  %75 = fsub <2 x float> %.sroa.0116.1.ph, %74
  %76 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 16)
  %77 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 16)
  %78 = insertelement <2 x i32> poison, i32 %76, i64 0
  %79 = insertelement <2 x i32> %78, i32 %77, i64 1
  %80 = sitofp <2 x i32> %79 to <2 x float>
  %81 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %82 = tail call i32 @Fade(i32 %.sroa.0131.0.copyload, float noundef %81)
  tail call void @_ZL16GuiDrawRectangle9Rectanglei5ColorS0_(<2 x float> %75, <2 x float> %80, i32 noundef 0, i32 0, i32 %82)
  %83 = mul nsw i32 %.1.ph, 3
  br label %101

84:                                               ; preds = %3
  %85 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 10)
  %86 = tail call i32 @GetColor(i32 noundef %85)
  %87 = tail call i32 @Fade(i32 %86, float noundef 0x3FB99999A0000000)
  %88 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %89 = tail call i32 @Fade(i32 %87, float noundef %88)
  %90 = tail call i32 @Fade(i32 %.sroa.0125.0.copyload, float noundef 0x3FE3333340000000)
  %91 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %92 = tail call i32 @Fade(i32 %90, float noundef %91)
  %93 = tail call i32 @Fade(i32 %.sroa.0125.0.copyload, float noundef 0x3FE3333340000000)
  %94 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %95 = tail call i32 @Fade(i32 %93, float noundef %94)
  %96 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 9)
  %97 = tail call i32 @GetColor(i32 noundef %96)
  %98 = tail call i32 @Fade(i32 %97, float noundef 0x3FE3333340000000)
  %99 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %100 = tail call i32 @Fade(i32 %98, float noundef %99)
  tail call void @DrawRectangleGradientEx(<2 x float> %0, <2 x float> %1, i32 %89, i32 %92, i32 %95, i32 %100)
  br label %101

101:                                              ; preds = %84, %54
  %.sroa.8.1179 = phi i8 [ %.sroa.8.0.extract.trunc, %84 ], [ %.sroa.8.1.ph, %54 ]
  %.sroa.6136.1177 = phi i8 [ %.sroa.6136.0.extract.trunc, %84 ], [ %.sroa.6136.1.ph, %54 ]
  %.sroa.4135.1175 = phi i8 [ %9, %84 ], [ %.sroa.4135.1.ph, %54 ]
  %.sroa.0134.1173 = phi i8 [ %7, %84 ], [ %.sroa.0134.1.ph, %54 ]
  %.1171 = phi i32 [ 9, %84 ], [ %83, %54 ]
  %102 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 12)
  %103 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef %.1171)
  %104 = tail call i32 @GetColor(i32 noundef %103)
  %105 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %106 = tail call i32 @Fade(i32 %104, float noundef %105)
  tail call void @_ZL16GuiDrawRectangle9Rectanglei5ColorS0_(<2 x float> %0, <2 x float> %1, i32 noundef %102, i32 %106, i32 0)
  %.sroa.4159.0.insert.ext = zext i8 %.sroa.8.1179 to i32
  %.sroa.4159.0.insert.shift = shl nuw i32 %.sroa.4159.0.insert.ext, 24
  %.sroa.3158.0.insert.ext = zext i8 %.sroa.6136.1177 to i32
  %.sroa.3158.0.insert.shift = shl nuw nsw i32 %.sroa.3158.0.insert.ext, 16
  %.sroa.3158.0.insert.insert = or disjoint i32 %.sroa.3158.0.insert.shift, %.sroa.4159.0.insert.shift
  %.sroa.2157.0.insert.ext = zext i8 %.sroa.4135.1175 to i32
  %.sroa.2157.0.insert.shift = shl nuw nsw i32 %.sroa.2157.0.insert.ext, 8
  %.sroa.2157.0.insert.insert = or disjoint i32 %.sroa.3158.0.insert.insert, %.sroa.2157.0.insert.shift
  %.sroa.0156.0.insert.ext = zext i8 %.sroa.0134.1173 to i32
  %.sroa.0156.0.insert.insert = or disjoint i32 %.sroa.2157.0.insert.insert, %.sroa.0156.0.insert.ext
  ret i32 %.sroa.0156.0.insert.insert
}

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

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

declare void @DrawRectangleGradientEx(<2 x float>, <2 x float>, i32, i32, i32, i32) local_unnamed_addr #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x float> @llvm.fmuladd.v2f32(<2 x float>, <2 x float>, <2 x float>) #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"_ZTS15GuiControlState", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"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,GlobalDCEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass