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

; 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 }

@guiState = external hidden global i32, align 4
@guiLocked = external hidden global i8, align 1
@guiAlpha = external hidden global float, align 4
@__const.GuiColorPanelEx.colWhite = external hidden unnamed_addr constant %struct.Color, align 1
@__const.GuiColorPanelEx.colBlack = external hidden unnamed_addr constant %struct.Color, align 1

; 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) #0

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

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

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

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

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

declare i32 @GetColor(i32 noundef) #4

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

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

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

declare zeroext i1 @IsMouseButtonDown(i32 noundef) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #6

; Function Attrs: nounwind uwtable
define dso_local i32 @GuiColorPanelEx(<2 x float> %0, <2 x float> %1, i32 %2, float noundef %3) #3 {
  %5 = alloca %struct.Color, align 1
  %6 = alloca %struct.Rectangle, align 4
  %7 = alloca %struct.Color, align 1
  %8 = alloca float, align 4
  %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 { <2 x float>, float }, align 4
  %14 = alloca { <2 x float>, float }, align 8
  %15 = alloca %struct.Vector3, align 4
  %16 = alloca %struct.Vector3, align 4
  %17 = alloca { <2 x float>, float }, align 4
  %18 = alloca { <2 x float>, float }, align 8
  %19 = alloca %struct.Color, align 1
  %20 = alloca %struct.Color, align 1
  %21 = alloca %struct.Color, align 1
  %22 = alloca %struct.Vector2, align 4
  %23 = alloca %struct.Vector2, align 4
  %24 = alloca %struct.Vector3, align 4
  %25 = alloca { <2 x float>, float }, align 4
  %26 = alloca { <2 x float>, float }, align 8
  %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.Rectangle, align 4
  %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.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.Color, align 1
  %51 = alloca %struct.Color, align 1
  %52 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 0
  store <2 x float> %0, ptr %52, align 4
  %53 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 1
  store <2 x float> %1, ptr %53, align 4
  store i32 %2, ptr %7, align 1
  store float %3, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %54 = load i32, ptr @guiState, align 4, !tbaa !9
  store i32 %54, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  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) #7
  %55 = getelementptr inbounds %struct.Vector3, ptr %11, i32 0, i32 0
  %56 = getelementptr inbounds %struct.Color, ptr %7, i32 0, i32 0
  %57 = load i8, ptr %56, align 1, !tbaa !11
  %58 = uitofp i8 %57 to float
  %59 = fdiv float %58, 2.550000e+02
  store float %59, ptr %55, align 4, !tbaa !13
  %60 = getelementptr inbounds %struct.Vector3, ptr %11, i32 0, i32 1
  %61 = getelementptr inbounds %struct.Color, ptr %7, i32 0, i32 1
  %62 = load i8, ptr %61, align 1, !tbaa !15
  %63 = uitofp i8 %62 to float
  %64 = fdiv float %63, 2.550000e+02
  store float %64, ptr %60, align 4, !tbaa !16
  %65 = getelementptr inbounds %struct.Vector3, ptr %11, i32 0, i32 2
  %66 = getelementptr inbounds %struct.Color, ptr %7, i32 0, i32 2
  %67 = load i8, ptr %66, align 1, !tbaa !17
  %68 = uitofp i8 %67 to float
  %69 = fdiv float %68, 2.550000e+02
  store float %69, ptr %65, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %11, i64 12, i1 false)
  %70 = getelementptr inbounds { <2 x float>, float }, ptr %13, i32 0, i32 0
  %71 = load <2 x float>, ptr %70, align 4
  %72 = getelementptr inbounds { <2 x float>, float }, ptr %13, i32 0, i32 1
  %73 = load float, ptr %72, align 4
  %74 = call { <2 x float>, float } @ConvertRGBtoHSV(<2 x float> %71, float %73)
  store { <2 x float>, float } %74, ptr %14, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 8 %14, i64 12, i1 false)
  %75 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 0
  %76 = load float, ptr %75, align 4, !tbaa !19
  %77 = getelementptr inbounds %struct.Vector3, ptr %12, i32 0, i32 1
  %78 = load float, ptr %77, align 4, !tbaa !16
  %79 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 2
  %80 = load float, ptr %79, align 4, !tbaa !21
  %81 = call float @llvm.fmuladd.f32(float %78, float %80, float %76)
  %82 = getelementptr inbounds %struct.Vector2, ptr %10, i32 0, i32 0
  store float %81, ptr %82, align 4, !tbaa !22
  %83 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 1
  %84 = load float, ptr %83, align 4, !tbaa !24
  %85 = getelementptr inbounds %struct.Vector3, ptr %12, i32 0, i32 2
  %86 = load float, ptr %85, align 4, !tbaa !18
  %87 = fsub float 1.000000e+00, %86
  %88 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 3
  %89 = load float, ptr %88, align 4, !tbaa !25
  %90 = call float @llvm.fmuladd.f32(float %87, float %89, float %84)
  %91 = getelementptr inbounds %struct.Vector2, ptr %10, i32 0, i32 1
  store float %90, ptr %91, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #7
  %92 = getelementptr inbounds %struct.Vector3, ptr %15, i32 0, i32 0
  %93 = load float, ptr %8, align 4, !tbaa !5
  %94 = fcmp oge float %93, 0.000000e+00
  br i1 %94, label %95, label %97

95:                                               ; preds = %4
  %96 = load float, ptr %8, align 4, !tbaa !5
  br label %100

97:                                               ; preds = %4
  %98 = getelementptr inbounds %struct.Vector3, ptr %12, i32 0, i32 0
  %99 = load float, ptr %98, align 4, !tbaa !13
  br label %100

100:                                              ; preds = %97, %95
  %101 = phi float [ %96, %95 ], [ %99, %97 ]
  store float %101, ptr %92, align 4, !tbaa !13
  %102 = getelementptr inbounds %struct.Vector3, ptr %15, i32 0, i32 1
  store float 1.000000e+00, ptr %102, align 4, !tbaa !16
  %103 = getelementptr inbounds %struct.Vector3, ptr %15, i32 0, i32 2
  store float 1.000000e+00, ptr %103, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %15, i64 12, i1 false)
  %104 = getelementptr inbounds { <2 x float>, float }, ptr %17, i32 0, i32 0
  %105 = load <2 x float>, ptr %104, align 4
  %106 = getelementptr inbounds { <2 x float>, float }, ptr %17, i32 0, i32 1
  %107 = load float, ptr %106, align 4
  %108 = call { <2 x float>, float } @ConvertHSVtoRGB(<2 x float> %105, float %107)
  store { <2 x float>, float } %108, ptr %18, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 8 %18, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %109 = getelementptr inbounds %struct.Color, ptr %19, i32 0, i32 0
  %110 = getelementptr inbounds %struct.Vector3, ptr %16, i32 0, i32 0
  %111 = load float, ptr %110, align 4, !tbaa !13
  %112 = fmul float 2.550000e+02, %111
  %113 = fptoui float %112 to i8
  store i8 %113, ptr %109, align 1, !tbaa !11
  %114 = getelementptr inbounds %struct.Color, ptr %19, i32 0, i32 1
  %115 = getelementptr inbounds %struct.Vector3, ptr %16, i32 0, i32 1
  %116 = load float, ptr %115, align 4, !tbaa !16
  %117 = fmul float 2.550000e+02, %116
  %118 = fptoui float %117 to i8
  store i8 %118, ptr %114, align 1, !tbaa !15
  %119 = getelementptr inbounds %struct.Color, ptr %19, i32 0, i32 2
  %120 = getelementptr inbounds %struct.Vector3, ptr %16, i32 0, i32 2
  %121 = load float, ptr %120, align 4, !tbaa !18
  %122 = fmul float 2.550000e+02, %121
  %123 = fptoui float %122 to i8
  store i8 %123, ptr %119, align 1, !tbaa !17
  %124 = getelementptr inbounds %struct.Color, ptr %19, i32 0, i32 3
  store i8 -1, ptr %124, align 1, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %20, ptr align 1 @__const.GuiColorPanelEx.colWhite, i64 4, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %21, ptr align 1 @__const.GuiColorPanelEx.colBlack, i64 4, i1 false)
  %125 = load i32, ptr %9, align 4, !tbaa !9
  %126 = icmp ne i32 %125, 3
  br i1 %126, label %127, label %200

127:                                              ; preds = %100
  %128 = load i8, ptr @guiLocked, align 1, !tbaa !28, !range !30, !noundef !31
  %129 = trunc i8 %128 to i1
  br i1 %129, label %200, label %130

130:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %131 = call <2 x float> @GetMousePosition()
  store <2 x float> %131, ptr %22, align 4
  %132 = load <2 x float>, ptr %22, align 4
  %133 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 0
  %134 = load <2 x float>, ptr %133, align 4
  %135 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 1
  %136 = load <2 x float>, ptr %135, align 4
  %137 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %132, <2 x float> %134, <2 x float> %136)
  br i1 %137, label %138, label %199

138:                                              ; preds = %130
  %139 = call zeroext i1 @IsMouseButtonDown(i32 noundef 0)
  br i1 %139, label %140, label %197

140:                                              ; preds = %138
  store i32 2, ptr %9, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %22, i64 8, i1 false), !tbaa.struct !32
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %141 = getelementptr inbounds %struct.Vector2, ptr %23, i32 0, i32 0
  %142 = getelementptr inbounds %struct.Vector2, ptr %10, i32 0, i32 0
  %143 = load float, ptr %142, align 4, !tbaa !22
  %144 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 0
  %145 = load float, ptr %144, align 4, !tbaa !19
  %146 = fsub float %143, %145
  store float %146, ptr %141, align 4, !tbaa !22
  %147 = getelementptr inbounds %struct.Vector2, ptr %23, i32 0, i32 1
  %148 = getelementptr inbounds %struct.Vector2, ptr %10, i32 0, i32 1
  %149 = load float, ptr %148, align 4, !tbaa !26
  %150 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 1
  %151 = load float, ptr %150, align 4, !tbaa !24
  %152 = fsub float %149, %151
  store float %152, ptr %147, align 4, !tbaa !26
  %153 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 2
  %154 = load float, ptr %153, align 4, !tbaa !21
  %155 = getelementptr inbounds %struct.Vector2, ptr %23, i32 0, i32 0
  %156 = load float, ptr %155, align 4, !tbaa !22
  %157 = fdiv float %156, %154
  store float %157, ptr %155, align 4, !tbaa !22
  %158 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 3
  %159 = load float, ptr %158, align 4, !tbaa !25
  %160 = getelementptr inbounds %struct.Vector2, ptr %23, i32 0, i32 1
  %161 = load float, ptr %160, align 4, !tbaa !26
  %162 = fdiv float %161, %159
  store float %162, ptr %160, align 4, !tbaa !26
  %163 = getelementptr inbounds %struct.Vector2, ptr %23, i32 0, i32 0
  %164 = load float, ptr %163, align 4, !tbaa !22
  %165 = getelementptr inbounds %struct.Vector3, ptr %12, i32 0, i32 1
  store float %164, ptr %165, align 4, !tbaa !16
  %166 = getelementptr inbounds %struct.Vector2, ptr %23, i32 0, i32 1
  %167 = load float, ptr %166, align 4, !tbaa !26
  %168 = fsub float 1.000000e+00, %167
  %169 = getelementptr inbounds %struct.Vector3, ptr %12, i32 0, i32 2
  store float %168, ptr %169, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %12, i64 12, i1 false)
  %170 = getelementptr inbounds { <2 x float>, float }, ptr %25, i32 0, i32 0
  %171 = load <2 x float>, ptr %170, align 4
  %172 = getelementptr inbounds { <2 x float>, float }, ptr %25, i32 0, i32 1
  %173 = load float, ptr %172, align 4
  %174 = call { <2 x float>, float } @ConvertHSVtoRGB(<2 x float> %171, float %173)
  store { <2 x float>, float } %174, ptr %26, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 8 %26, i64 12, i1 false)
  %175 = getelementptr inbounds %struct.Color, ptr %27, i32 0, i32 0
  %176 = getelementptr inbounds %struct.Vector3, ptr %24, i32 0, i32 0
  %177 = load float, ptr %176, align 4, !tbaa !13
  %178 = fmul float 2.550000e+02, %177
  %179 = fptoui float %178 to i8
  store i8 %179, ptr %175, align 1, !tbaa !11
  %180 = getelementptr inbounds %struct.Color, ptr %27, i32 0, i32 1
  %181 = getelementptr inbounds %struct.Vector3, ptr %24, i32 0, i32 1
  %182 = load float, ptr %181, align 4, !tbaa !16
  %183 = fmul float 2.550000e+02, %182
  %184 = fptoui float %183 to i8
  store i8 %184, ptr %180, align 1, !tbaa !15
  %185 = getelementptr inbounds %struct.Color, ptr %27, i32 0, i32 2
  %186 = getelementptr inbounds %struct.Vector3, ptr %24, i32 0, i32 2
  %187 = load float, ptr %186, align 4, !tbaa !18
  %188 = fmul float 2.550000e+02, %187
  %189 = fptoui float %188 to i8
  store i8 %189, ptr %185, align 1, !tbaa !17
  %190 = getelementptr inbounds %struct.Color, ptr %27, i32 0, i32 3
  %191 = getelementptr inbounds %struct.Color, ptr %7, i32 0, i32 3
  %192 = load i8, ptr %191, align 1, !tbaa !27
  %193 = uitofp i8 %192 to float
  %194 = fmul float 2.550000e+02, %193
  %195 = fdiv float %194, 2.550000e+02
  %196 = fptoui float %195 to i8
  store i8 %196, ptr %190, align 1, !tbaa !27
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 %27, i64 4, i1 false), !tbaa.struct !33
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %198

197:                                              ; preds = %138
  store i32 1, ptr %9, align 4, !tbaa !9
  br label %198

198:                                              ; preds = %197, %140
  br label %199

199:                                              ; preds = %198, %130
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %200

200:                                              ; preds = %199, %127, %100
  %201 = load i32, ptr %9, align 4, !tbaa !9
  %202 = icmp ne i32 %201, 3
  br i1 %202, label %203, label %275

203:                                              ; preds = %200
  %204 = load float, ptr @guiAlpha, align 4, !tbaa !5
  %205 = load i32, ptr %20, align 1
  %206 = call i32 @Fade(i32 %205, float noundef %204)
  store i32 %206, ptr %28, align 1
  %207 = load float, ptr @guiAlpha, align 4, !tbaa !5
  %208 = load i32, ptr %20, align 1
  %209 = call i32 @Fade(i32 %208, float noundef %207)
  store i32 %209, ptr %29, align 1
  %210 = load float, ptr @guiAlpha, align 4, !tbaa !5
  %211 = load i32, ptr %19, align 1
  %212 = call i32 @Fade(i32 %211, float noundef %210)
  store i32 %212, ptr %30, align 1
  %213 = load float, ptr @guiAlpha, align 4, !tbaa !5
  %214 = load i32, ptr %19, align 1
  %215 = call i32 @Fade(i32 %214, float noundef %213)
  store i32 %215, ptr %31, align 1
  %216 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 0
  %217 = load <2 x float>, ptr %216, align 4
  %218 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 1
  %219 = load <2 x float>, ptr %218, align 4
  %220 = load i32, ptr %28, align 1
  %221 = load i32, ptr %29, align 1
  %222 = load i32, ptr %30, align 1
  %223 = load i32, ptr %31, align 1
  call void @DrawRectangleGradientEx(<2 x float> %217, <2 x float> %219, i32 %220, i32 %221, i32 %222, i32 %223)
  %224 = load i32, ptr %21, align 1
  %225 = call i32 @Fade(i32 %224, float noundef 0.000000e+00)
  store i32 %225, ptr %32, align 1
  %226 = load float, ptr @guiAlpha, align 4, !tbaa !5
  %227 = load i32, ptr %21, align 1
  %228 = call i32 @Fade(i32 %227, float noundef %226)
  store i32 %228, ptr %33, align 1
  %229 = load float, ptr @guiAlpha, align 4, !tbaa !5
  %230 = load i32, ptr %21, align 1
  %231 = call i32 @Fade(i32 %230, float noundef %229)
  store i32 %231, ptr %34, align 1
  %232 = load i32, ptr %21, align 1
  %233 = call i32 @Fade(i32 %232, float noundef 0.000000e+00)
  store i32 %233, ptr %35, align 1
  %234 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 0
  %235 = load <2 x float>, ptr %234, align 4
  %236 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 1
  %237 = load <2 x float>, ptr %236, align 4
  %238 = load i32, ptr %32, align 1
  %239 = load i32, ptr %33, align 1
  %240 = load i32, ptr %34, align 1
  %241 = load i32, ptr %35, align 1
  call void @DrawRectangleGradientEx(<2 x float> %235, <2 x float> %237, i32 %238, i32 %239, i32 %240, i32 %241)
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #7
  %242 = getelementptr inbounds %struct.Rectangle, ptr %36, i32 0, i32 0
  %243 = getelementptr inbounds %struct.Vector2, ptr %10, i32 0, i32 0
  %244 = load float, ptr %243, align 4, !tbaa !22
  %245 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 16)
  %246 = sdiv i32 %245, 2
  %247 = sitofp i32 %246 to float
  %248 = fsub float %244, %247
  store float %248, ptr %242, align 4, !tbaa !19
  %249 = getelementptr inbounds %struct.Rectangle, ptr %36, i32 0, i32 1
  %250 = getelementptr inbounds %struct.Vector2, ptr %10, i32 0, i32 1
  %251 = load float, ptr %250, align 4, !tbaa !26
  %252 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 16)
  %253 = sdiv i32 %252, 2
  %254 = sitofp i32 %253 to float
  %255 = fsub float %251, %254
  store float %255, ptr %249, align 4, !tbaa !24
  %256 = getelementptr inbounds %struct.Rectangle, ptr %36, i32 0, i32 2
  %257 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 16)
  %258 = sitofp i32 %257 to float
  store float %258, ptr %256, align 4, !tbaa !21
  %259 = getelementptr inbounds %struct.Rectangle, ptr %36, i32 0, i32 3
  %260 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 16)
  %261 = sitofp i32 %260 to float
  store float %261, ptr %259, align 4, !tbaa !25
  %262 = getelementptr inbounds %struct.Color, ptr %37, i32 0, i32 0
  store i8 0, ptr %262, align 1, !tbaa !11
  %263 = getelementptr inbounds %struct.Color, ptr %37, i32 0, i32 1
  store i8 0, ptr %263, align 1, !tbaa !15
  %264 = getelementptr inbounds %struct.Color, ptr %37, i32 0, i32 2
  store i8 0, ptr %264, align 1, !tbaa !17
  %265 = getelementptr inbounds %struct.Color, ptr %37, i32 0, i32 3
  store i8 0, ptr %265, align 1, !tbaa !27
  %266 = load float, ptr @guiAlpha, align 4, !tbaa !5
  %267 = load i32, ptr %20, align 1
  %268 = call i32 @Fade(i32 %267, float noundef %266)
  store i32 %268, ptr %38, align 1
  %269 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %36, i32 0, i32 0
  %270 = load <2 x float>, ptr %269, align 4
  %271 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %36, i32 0, i32 1
  %272 = load <2 x float>, ptr %271, align 4
  %273 = load i32, ptr %37, align 1
  %274 = load i32, ptr %38, align 1
  call void @GuiDrawRectangle(<2 x float> %270, <2 x float> %272, i32 noundef 0, i32 %273, i32 %274)
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #7
  br label %308

275:                                              ; preds = %200
  %276 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 10)
  %277 = call i32 @GetColor(i32 noundef %276)
  store i32 %277, ptr %41, align 1
  %278 = load i32, ptr %41, align 1
  %279 = call i32 @Fade(i32 %278, float noundef 0x3FB99999A0000000)
  store i32 %279, ptr %40, align 1
  %280 = load float, ptr @guiAlpha, align 4, !tbaa !5
  %281 = load i32, ptr %40, align 1
  %282 = call i32 @Fade(i32 %281, float noundef %280)
  store i32 %282, ptr %39, align 1
  %283 = load i32, ptr %21, align 1
  %284 = call i32 @Fade(i32 %283, float noundef 0x3FE3333340000000)
  store i32 %284, ptr %43, align 1
  %285 = load float, ptr @guiAlpha, align 4, !tbaa !5
  %286 = load i32, ptr %43, align 1
  %287 = call i32 @Fade(i32 %286, float noundef %285)
  store i32 %287, ptr %42, align 1
  %288 = load i32, ptr %21, align 1
  %289 = call i32 @Fade(i32 %288, float noundef 0x3FE3333340000000)
  store i32 %289, ptr %45, align 1
  %290 = load float, ptr @guiAlpha, align 4, !tbaa !5
  %291 = load i32, ptr %45, align 1
  %292 = call i32 @Fade(i32 %291, float noundef %290)
  store i32 %292, ptr %44, align 1
  %293 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 9)
  %294 = call i32 @GetColor(i32 noundef %293)
  store i32 %294, ptr %48, align 1
  %295 = load i32, ptr %48, align 1
  %296 = call i32 @Fade(i32 %295, float noundef 0x3FE3333340000000)
  store i32 %296, ptr %47, align 1
  %297 = load float, ptr @guiAlpha, align 4, !tbaa !5
  %298 = load i32, ptr %47, align 1
  %299 = call i32 @Fade(i32 %298, float noundef %297)
  store i32 %299, ptr %46, align 1
  %300 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 0
  %301 = load <2 x float>, ptr %300, align 4
  %302 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 1
  %303 = load <2 x float>, ptr %302, align 4
  %304 = load i32, ptr %39, align 1
  %305 = load i32, ptr %42, align 1
  %306 = load i32, ptr %44, align 1
  %307 = load i32, ptr %46, align 1
  call void @DrawRectangleGradientEx(<2 x float> %301, <2 x float> %303, i32 %304, i32 %305, i32 %306, i32 %307)
  br label %308

308:                                              ; preds = %275, %203
  %309 = load i32, ptr %9, align 4, !tbaa !9
  %310 = mul i32 %309, 3
  %311 = add i32 0, %310
  %312 = call i32 @GuiGetStyle(i32 noundef 13, i32 noundef %311)
  %313 = call i32 @GetColor(i32 noundef %312)
  store i32 %313, ptr %50, align 1
  %314 = load float, ptr @guiAlpha, align 4, !tbaa !5
  %315 = load i32, ptr %50, align 1
  %316 = call i32 @Fade(i32 %315, float noundef %314)
  store i32 %316, ptr %49, align 1
  %317 = getelementptr inbounds %struct.Color, ptr %51, i32 0, i32 0
  store i8 0, ptr %317, align 1, !tbaa !11
  %318 = getelementptr inbounds %struct.Color, ptr %51, i32 0, i32 1
  store i8 0, ptr %318, align 1, !tbaa !15
  %319 = getelementptr inbounds %struct.Color, ptr %51, i32 0, i32 2
  store i8 0, ptr %319, align 1, !tbaa !17
  %320 = getelementptr inbounds %struct.Color, ptr %51, i32 0, i32 3
  store i8 0, ptr %320, align 1, !tbaa !27
  %321 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 0
  %322 = load <2 x float>, ptr %321, align 4
  %323 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 1
  %324 = load <2 x float>, ptr %323, align 4
  %325 = load i32, ptr %49, align 1
  %326 = load i32, ptr %51, align 1
  call void @GuiDrawRectangle(<2 x float> %322, <2 x float> %324, i32 noundef 1, i32 %325, i32 %326)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %5, ptr align 1 %7, i64 4, i1 false), !tbaa.struct !33
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  %327 = load i32, ptr %5, align 1
  ret i32 %327
}

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

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

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

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !7, i64 0}
!12 = !{!"Color", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3}
!13 = !{!14, !6, i64 0}
!14 = !{!"Vector3", !6, i64 0, !6, i64 4, !6, i64 8}
!15 = !{!12, !7, i64 1}
!16 = !{!14, !6, i64 4}
!17 = !{!12, !7, i64 2}
!18 = !{!14, !6, i64 8}
!19 = !{!20, !6, i64 0}
!20 = !{!"Rectangle", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!21 = !{!20, !6, i64 8}
!22 = !{!23, !6, i64 0}
!23 = !{!"Vector2", !6, i64 0, !6, i64 4}
!24 = !{!20, !6, i64 4}
!25 = !{!20, !6, i64 12}
!26 = !{!23, !6, i64 4}
!27 = !{!12, !7, i64 3}
!28 = !{!29, !29, i64 0}
!29 = !{!"_Bool", !7, i64 0}
!30 = !{i8 0, i8 2}
!31 = !{}
!32 = !{i64 0, i64 4, !5, i64 4, i64 4, !5}
!33 = !{i64 0, i64 1, !34, i64 1, i64 1, !34, i64 2, i64 1, !34, i64 3, i64 1, !34}
!34 = !{!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 }

@guiState = external hidden local_unnamed_addr global i32, align 4
@guiLocked = external hidden local_unnamed_addr global i8, align 1
@guiAlpha = external hidden local_unnamed_addr global float, align 4
@__const.GuiColorPanelEx.colWhite = external hidden unnamed_addr constant %struct.Color, align 1
@__const.GuiColorPanelEx.colBlack = external hidden unnamed_addr constant %struct.Color, align 1

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

; Function Attrs: nounwind uwtable
declare hidden void @GuiDrawRectangle(<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: nounwind uwtable
define dso_local i32 @GuiColorPanelEx(<2 x float> %0, <2 x float> %1, i32 %2, float noundef %3) local_unnamed_addr #1 {
  %5 = extractelement <2 x float> %1, i64 1
  %6 = extractelement <2 x float> %1, i64 0
  %.sroa.4109.0.extract.shift = lshr i32 %2, 8
  %.sroa.6110.0.extract.shift = lshr i32 %2, 16
  %.sroa.6110.0.extract.trunc = trunc i32 %.sroa.6110.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
  %7 = load i32, ptr @guiState, align 4, !tbaa !5
  %8 = trunc i32 %2 to i8
  %9 = insertelement <2 x i8> poison, i8 %8, i64 0
  %10 = trunc i32 %.sroa.4109.0.extract.shift to i8
  %11 = insertelement <2 x i8> %9, i8 %10, i64 1
  %12 = uitofp <2 x i8> %11 to <2 x float>
  %13 = fdiv <2 x float> %12, <float 2.550000e+02, float 2.550000e+02>
  %14 = uitofp i8 %.sroa.6110.0.extract.trunc to float
  %15 = fdiv float %14, 2.550000e+02
  %16 = tail call { <2 x float>, float } @ConvertRGBtoHSV(<2 x float> %13, float %15)
  %.fca.0.extract85 = extractvalue { <2 x float>, float } %16, 0
  %.fca.1.extract86 = extractvalue { <2 x float>, float } %16, 1
  %17 = fsub float 1.000000e+00, %.fca.1.extract86
  %18 = shufflevector <2 x float> %.fca.0.extract85, <2 x float> poison, <2 x i32> <i32 1, i32 poison>
  %19 = insertelement <2 x float> %18, float %17, i64 1
  %20 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %19, <2 x float> %1, <2 x float> %0)
  %21 = fcmp oge float %3, 0.000000e+00
  %.sroa.091.0.vec.extract = extractelement <2 x float> %.fca.0.extract85, i64 0
  %22 = select i1 %21, float %3, float %.sroa.091.0.vec.extract
  %.sroa.082.4.vec.insert = insertelement <2 x float> <float poison, float 1.000000e+00>, float %22, i64 0
  %23 = tail call { <2 x float>, float } @ConvertHSVtoRGB(<2 x float> %.sroa.082.4.vec.insert, float 1.000000e+00)
  %.fca.0.extract74 = extractvalue { <2 x float>, float } %23, 0
  %.fca.1.extract75 = extractvalue { <2 x float>, float } %23, 1
  %.sroa.080.0.vec.extract = extractelement <2 x float> %.fca.0.extract74, i64 0
  %24 = fmul float %.sroa.080.0.vec.extract, 2.550000e+02
  %25 = fptoui float %24 to i8
  %.sroa.080.4.vec.extract = extractelement <2 x float> %.fca.0.extract74, i64 1
  %26 = fmul float %.sroa.080.4.vec.extract, 2.550000e+02
  %27 = fptoui float %26 to i8
  %28 = fmul float %.fca.1.extract75, 2.550000e+02
  %29 = fptoui float %28 to i8
  %.sroa.049.0.copyload = load i32, ptr @__const.GuiColorPanelEx.colWhite, align 1
  %.sroa.043.0.copyload = load i32, ptr @__const.GuiColorPanelEx.colBlack, align 1
  %.not = icmp eq i32 %7, 3
  br i1 %.not, label %87, label %30

30:                                               ; preds = %4
  %31 = load i8, ptr @guiLocked, align 1, !tbaa !9, !range !11, !noundef !12
  %32 = trunc nuw i8 %31 to i1
  br i1 %32, label %57, label %33

33:                                               ; preds = %30
  %34 = tail call <2 x float> @GetMousePosition() #4
  %35 = tail call zeroext i1 @CheckCollisionPointRec(<2 x float> %34, <2 x float> %0, <2 x float> %1) #4
  br i1 %35, label %36, label %57

36:                                               ; preds = %33
  %37 = tail call zeroext i1 @IsMouseButtonDown(i32 noundef 0) #4
  br i1 %37, label %38, label %57

38:                                               ; preds = %36
  %39 = fsub <2 x float> %34, %0
  %40 = extractelement <2 x float> %39, i64 0
  %41 = fsub <2 x float> %34, %0
  %42 = extractelement <2 x float> %41, i64 1
  %43 = fdiv float %40, %6
  %44 = fdiv float %42, %5
  %.sroa.091.4.vec.insert = insertelement <2 x float> %.fca.0.extract85, float %43, i64 1
  %45 = fsub float 1.000000e+00, %44
  %46 = tail call { <2 x float>, float } @ConvertHSVtoRGB(<2 x float> %.sroa.091.4.vec.insert, float %45)
  %.fca.0.extract = extractvalue { <2 x float>, float } %46, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %46, 1
  %.sroa.037.0.vec.extract = extractelement <2 x float> %.fca.0.extract, i64 0
  %47 = fmul float %.sroa.037.0.vec.extract, 2.550000e+02
  %48 = fptoui float %47 to i8
  %.sroa.037.4.vec.extract = extractelement <2 x float> %.fca.0.extract, i64 1
  %49 = fmul float %.sroa.037.4.vec.extract, 2.550000e+02
  %50 = fptoui float %49 to i8
  %51 = fmul float %.fca.1.extract, 2.550000e+02
  %52 = fptoui float %51 to i8
  %53 = uitofp i8 %.sroa.8.0.extract.trunc to float
  %54 = fmul float %53, 2.550000e+02
  %55 = fdiv float %54, 2.550000e+02
  %56 = fptoui float %55 to i8
  br label %57

57:                                               ; preds = %30, %38, %33, %36
  %.sroa.098.1.ph = phi <2 x float> [ %20, %36 ], [ %20, %33 ], [ %34, %38 ], [ %20, %30 ]
  %.1.ph = phi i32 [ 1, %36 ], [ %7, %33 ], [ 2, %38 ], [ %7, %30 ]
  %.sroa.0108.1.ph = phi i8 [ %8, %36 ], [ %8, %33 ], [ %48, %38 ], [ %8, %30 ]
  %.sroa.4109.1.ph = phi i8 [ %10, %36 ], [ %10, %33 ], [ %50, %38 ], [ %10, %30 ]
  %.sroa.6110.1.ph = phi i8 [ %.sroa.6110.0.extract.trunc, %36 ], [ %.sroa.6110.0.extract.trunc, %33 ], [ %52, %38 ], [ %.sroa.6110.0.extract.trunc, %30 ]
  %.sroa.8.1.ph = phi i8 [ %.sroa.8.0.extract.trunc, %36 ], [ %.sroa.8.0.extract.trunc, %33 ], [ %56, %38 ], [ %.sroa.8.0.extract.trunc, %30 ]
  %58 = load float, ptr @guiAlpha, align 4, !tbaa !13
  %59 = tail call i32 @Fade(i32 %.sroa.049.0.copyload, float noundef %58) #4
  %60 = load float, ptr @guiAlpha, align 4, !tbaa !13
  %61 = tail call i32 @Fade(i32 %.sroa.049.0.copyload, float noundef %60) #4
  %62 = load float, ptr @guiAlpha, align 4, !tbaa !13
  %.sroa.663.0.insert.ext = zext i8 %29 to i32
  %.sroa.663.0.insert.shift = shl nuw nsw i32 %.sroa.663.0.insert.ext, 16
  %.sroa.557.0.insert.ext = zext i8 %27 to i32
  %.sroa.557.0.insert.shift = shl nuw nsw i32 %.sroa.557.0.insert.ext, 8
  %.sroa.663.0.insert.insert = or disjoint i32 %.sroa.557.0.insert.shift, %.sroa.663.0.insert.shift
  %.sroa.052.0.insert.ext = zext i8 %25 to i32
  %.sroa.557.0.insert.insert = or disjoint i32 %.sroa.663.0.insert.insert, %.sroa.052.0.insert.ext
  %.sroa.052.0.insert.insert = or disjoint i32 %.sroa.557.0.insert.insert, -16777216
  %63 = tail call i32 @Fade(i32 %.sroa.052.0.insert.insert, float noundef %62) #4
  %64 = load float, ptr @guiAlpha, align 4, !tbaa !13
  %65 = tail call i32 @Fade(i32 %.sroa.052.0.insert.insert, float noundef %64) #4
  tail call void @DrawRectangleGradientEx(<2 x float> %0, <2 x float> %1, i32 %59, i32 %61, i32 %63, i32 %65) #4
  %66 = tail call i32 @Fade(i32 %.sroa.043.0.copyload, float noundef 0.000000e+00) #4
  %67 = load float, ptr @guiAlpha, align 4, !tbaa !13
  %68 = tail call i32 @Fade(i32 %.sroa.043.0.copyload, float noundef %67) #4
  %69 = load float, ptr @guiAlpha, align 4, !tbaa !13
  %70 = tail call i32 @Fade(i32 %.sroa.043.0.copyload, float noundef %69) #4
  %71 = tail call i32 @Fade(i32 %.sroa.043.0.copyload, float noundef 0.000000e+00) #4
  tail call void @DrawRectangleGradientEx(<2 x float> %0, <2 x float> %1, i32 %66, i32 %68, i32 %70, i32 %71) #4
  %72 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 16)
  %73 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 16)
  %74 = insertelement <2 x i32> poison, i32 %72, i64 0
  %75 = insertelement <2 x i32> %74, i32 %73, i64 1
  %76 = sdiv <2 x i32> %75, <i32 2, i32 2>
  %77 = sitofp <2 x i32> %76 to <2 x float>
  %78 = fsub <2 x float> %.sroa.098.1.ph, %77
  %79 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 16)
  %80 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef 16)
  %81 = insertelement <2 x i32> poison, i32 %79, i64 0
  %82 = insertelement <2 x i32> %81, i32 %80, i64 1
  %83 = sitofp <2 x i32> %82 to <2 x float>
  %84 = load float, ptr @guiAlpha, align 4, !tbaa !13
  %85 = tail call i32 @Fade(i32 %.sroa.049.0.copyload, float noundef %84) #4
  tail call void @GuiDrawRectangle(<2 x float> %78, <2 x float> %83, i32 noundef 0, i32 0, i32 %85)
  %86 = mul i32 %.1.ph, 3
  br label %104

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

104:                                              ; preds = %87, %57
  %.sroa.8.1153 = phi i8 [ %.sroa.8.0.extract.trunc, %87 ], [ %.sroa.8.1.ph, %57 ]
  %.sroa.6110.1151 = phi i8 [ %.sroa.6110.0.extract.trunc, %87 ], [ %.sroa.6110.1.ph, %57 ]
  %.sroa.4109.1149 = phi i8 [ %10, %87 ], [ %.sroa.4109.1.ph, %57 ]
  %.sroa.0108.1147 = phi i8 [ %8, %87 ], [ %.sroa.0108.1.ph, %57 ]
  %.1145 = phi i32 [ 9, %87 ], [ %86, %57 ]
  %105 = tail call i32 @GuiGetStyle(i32 noundef 13, i32 noundef %.1145)
  %106 = tail call i32 @GetColor(i32 noundef %105) #4
  %107 = load float, ptr @guiAlpha, align 4, !tbaa !13
  %108 = tail call i32 @Fade(i32 %106, float noundef %107) #4
  tail call void @GuiDrawRectangle(<2 x float> %0, <2 x float> %1, i32 noundef 1, i32 %108, i32 0)
  %.sroa.4133.0.insert.ext = zext i8 %.sroa.8.1153 to i32
  %.sroa.4133.0.insert.shift = shl nuw i32 %.sroa.4133.0.insert.ext, 24
  %.sroa.3132.0.insert.ext = zext i8 %.sroa.6110.1151 to i32
  %.sroa.3132.0.insert.shift = shl nuw nsw i32 %.sroa.3132.0.insert.ext, 16
  %.sroa.3132.0.insert.insert = or disjoint i32 %.sroa.3132.0.insert.shift, %.sroa.4133.0.insert.shift
  %.sroa.2131.0.insert.ext = zext i8 %.sroa.4109.1149 to i32
  %.sroa.2131.0.insert.shift = shl nuw nsw i32 %.sroa.2131.0.insert.ext, 8
  %.sroa.2131.0.insert.insert = or disjoint i32 %.sroa.3132.0.insert.insert, %.sroa.2131.0.insert.shift
  %.sroa.0130.0.insert.ext = zext i8 %.sroa.0108.1147 to i32
  %.sroa.0130.0.insert.insert = or disjoint i32 %.sroa.2131.0.insert.insert, %.sroa.0130.0.insert.ext
  ret i32 %.sroa.0130.0.insert.insert
}

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

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

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>) #3

attributes #0 = { 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 #1 = { 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_Bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!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