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

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

@guiState = external hidden global i32, align 4
@guiLocked = external hidden global i8, align 1
@guiAlpha = external hidden global float, align 4

; 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 dso_local void @GuiPanel(<2 x float>, <2 x float>) #3

; 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

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

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

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

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

declare zeroext i1 @IsMouseButtonReleased(i32 noundef) #4

; Function Attrs: nounwind uwtable
declare hidden ptr @GuiTextSplit(ptr noundef, ptr noundef, ptr noundef) #2

declare zeroext i1 @IsMouseButtonPressed(i32 noundef) #4

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @GuiDropdownBox(<2 x float> %0, <2 x float> %1, ptr noundef %2, ptr noundef %3, i1 noundef zeroext %4) #3 {
  %6 = alloca %struct.Rectangle, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i8, align 1
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca %struct.Rectangle, align 4
  %16 = alloca %struct.Rectangle, align 4
  %17 = alloca i8, align 1
  %18 = alloca %struct.Vector2, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %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.Rectangle, align 4
  %26 = alloca %struct.Color, align 1
  %27 = alloca %struct.Color, align 1
  %28 = alloca i32, align 4
  %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.Rectangle, align 4
  %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.Rectangle, align 4
  %41 = alloca %struct.Color, align 1
  %42 = alloca %struct.Color, align 1
  %43 = alloca %struct.Rectangle, align 4
  %44 = alloca %struct.Color, align 1
  %45 = alloca %struct.Color, align 1
  %46 = alloca %struct.Vector2, align 4
  %47 = alloca %struct.Vector2, align 4
  %48 = alloca %struct.Vector2, align 4
  %49 = alloca %struct.Color, align 1
  %50 = alloca %struct.Color, align 1
  %51 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 0
  store <2 x float> %0, ptr %51, align 4
  %52 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 1
  store <2 x float> %1, ptr %52, align 4
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %53 = zext i1 %4 to i8
  store i8 %53, ptr %9, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %54 = load i32, ptr @guiState, align 4, !tbaa !11
  store i32 %54, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = load i32, ptr %55, align 4, !tbaa !11
  store i32 %56, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 -1, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = call ptr @GuiTextSplit(ptr noundef %57, ptr noundef %13, ptr noundef null)
  store ptr %58, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %6, i64 16, i1 false), !tbaa.struct !13
  %59 = load i32, ptr %13, align 4, !tbaa !11
  %60 = add nsw i32 %59, 1
  %61 = sitofp i32 %60 to float
  %62 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 3
  %63 = load float, ptr %62, align 4, !tbaa !16
  %64 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 17)
  %65 = sitofp i32 %64 to float
  %66 = fadd float %63, %65
  %67 = fmul float %61, %66
  %68 = getelementptr inbounds %struct.Rectangle, ptr %15, i32 0, i32 3
  store float %67, ptr %68, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %6, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #5
  store i8 0, ptr %17, align 1, !tbaa !9
  %69 = load i32, ptr %10, align 4, !tbaa !11
  %70 = icmp ne i32 %69, 3
  br i1 %70, label %71, label %151

71:                                               ; preds = %5
  %72 = load i8, ptr @guiLocked, align 1, !tbaa !9, !range !18, !noundef !19
  %73 = trunc i8 %72 to i1
  br i1 %73, label %151, label %74

74:                                               ; preds = %71
  %75 = load i32, ptr %13, align 4, !tbaa !11
  %76 = icmp sgt i32 %75, 1
  br i1 %76, label %77, label %151

77:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %78 = call <2 x float> @GetMousePosition()
  store <2 x float> %78, ptr %18, align 4
  %79 = load i8, ptr %9, align 1, !tbaa !9, !range !18, !noundef !19
  %80 = trunc i8 %79 to i1
  br i1 %80, label %81, label %137

81:                                               ; preds = %77
  store i32 2, ptr %10, align 4, !tbaa !11
  %82 = load <2 x float>, ptr %18, align 4
  %83 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %15, i32 0, i32 0
  %84 = load <2 x float>, ptr %83, align 4
  %85 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %15, i32 0, i32 1
  %86 = load <2 x float>, ptr %85, align 4
  %87 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %82, <2 x float> %84, <2 x float> %86)
  br i1 %87, label %94, label %88

88:                                               ; preds = %81
  %89 = call zeroext i1 @IsMouseButtonPressed(i32 noundef 0)
  br i1 %89, label %92, label %90

90:                                               ; preds = %88
  %91 = call zeroext i1 @IsMouseButtonReleased(i32 noundef 0)
  br i1 %91, label %92, label %93

92:                                               ; preds = %90, %88
  store i8 1, ptr %17, align 1, !tbaa !9
  br label %93

93:                                               ; preds = %92, %90
  br label %94

94:                                               ; preds = %93, %81
  %95 = load <2 x float>, ptr %18, align 4
  %96 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 0
  %97 = load <2 x float>, ptr %96, align 4
  %98 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, 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 %104

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

103:                                              ; preds = %101
  store i8 1, ptr %17, align 1, !tbaa !9
  br label %104

104:                                              ; preds = %103, %101, %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !11
  br label %105

105:                                              ; preds = %132, %104
  %106 = load i32, ptr %19, align 4, !tbaa !11
  %107 = load i32, ptr %13, align 4, !tbaa !11
  %108 = icmp slt i32 %106, %107
  br i1 %108, label %110, label %109

109:                                              ; preds = %105
  store i32 2, ptr %20, align 4
  br label %135

110:                                              ; preds = %105
  %111 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 3
  %112 = load float, ptr %111, align 4, !tbaa !16
  %113 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 17)
  %114 = sitofp i32 %113 to float
  %115 = fadd float %112, %114
  %116 = getelementptr inbounds %struct.Rectangle, ptr %16, i32 0, i32 1
  %117 = load float, ptr %116, align 4, !tbaa !20
  %118 = fadd float %117, %115
  store float %118, ptr %116, align 4, !tbaa !20
  %119 = load <2 x float>, ptr %18, align 4
  %120 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %16, i32 0, i32 0
  %121 = load <2 x float>, ptr %120, align 4
  %122 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %16, i32 0, i32 1
  %123 = load <2 x float>, ptr %122, align 4
  %124 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %119, <2 x float> %121, <2 x float> %123)
  br i1 %124, label %125, label %131

125:                                              ; preds = %110
  %126 = load i32, ptr %19, align 4, !tbaa !11
  store i32 %126, ptr %12, align 4, !tbaa !11
  %127 = call zeroext i1 @IsMouseButtonReleased(i32 noundef 0)
  br i1 %127, label %128, label %130

128:                                              ; preds = %125
  %129 = load i32, ptr %19, align 4, !tbaa !11
  store i32 %129, ptr %11, align 4, !tbaa !11
  store i8 1, ptr %17, align 1, !tbaa !9
  br label %130

130:                                              ; preds = %128, %125
  store i32 2, ptr %20, align 4
  br label %135

131:                                              ; preds = %110
  br label %132

132:                                              ; preds = %131
  %133 = load i32, ptr %19, align 4, !tbaa !11
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %19, align 4, !tbaa !11
  br label %105, !llvm.loop !21

135:                                              ; preds = %130, %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %136

136:                                              ; preds = %135
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %6, i64 16, i1 false), !tbaa.struct !13
  br label %150

137:                                              ; preds = %77
  %138 = load <2 x float>, ptr %18, align 4
  %139 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 0
  %140 = load <2 x float>, ptr %139, align 4
  %141 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 1
  %142 = load <2 x float>, ptr %141, align 4
  %143 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %138, <2 x float> %140, <2 x float> %142)
  br i1 %143, label %144, label %149

144:                                              ; preds = %137
  %145 = call zeroext i1 @IsMouseButtonPressed(i32 noundef 0)
  br i1 %145, label %146, label %147

146:                                              ; preds = %144
  store i8 1, ptr %17, align 1, !tbaa !9
  store i32 2, ptr %10, align 4, !tbaa !11
  br label %148

147:                                              ; preds = %144
  store i32 1, ptr %10, align 4, !tbaa !11
  br label %148

148:                                              ; preds = %147, %146
  br label %149

149:                                              ; preds = %148, %137
  br label %150

150:                                              ; preds = %149, %136
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %151

151:                                              ; preds = %150, %74, %71, %5
  %152 = load i8, ptr %9, align 1, !tbaa !9, !range !18, !noundef !19
  %153 = trunc i8 %152 to i1
  br i1 %153, label %154, label %159

154:                                              ; preds = %151
  %155 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %15, i32 0, i32 0
  %156 = load <2 x float>, ptr %155, align 4
  %157 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %15, i32 0, i32 1
  %158 = load <2 x float>, ptr %157, align 4
  call void @GuiPanel(<2 x float> %156, <2 x float> %158)
  br label %159

159:                                              ; preds = %154, %151
  %160 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 12)
  %161 = load i32, ptr %10, align 4, !tbaa !11
  %162 = mul i32 %161, 3
  %163 = add i32 0, %162
  %164 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef %163)
  %165 = call i32 @GetColor(i32 noundef %164)
  store i32 %165, ptr %22, align 1
  %166 = load float, ptr @guiAlpha, align 4, !tbaa !14
  %167 = load i32, ptr %22, align 1
  %168 = call i32 @Fade(i32 %167, float noundef %166)
  store i32 %168, ptr %21, align 1
  %169 = load i32, ptr %10, align 4, !tbaa !11
  %170 = mul i32 %169, 3
  %171 = add i32 1, %170
  %172 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef %171)
  %173 = call i32 @GetColor(i32 noundef %172)
  store i32 %173, ptr %24, align 1
  %174 = load float, ptr @guiAlpha, align 4, !tbaa !14
  %175 = load i32, ptr %24, align 1
  %176 = call i32 @Fade(i32 %175, float noundef %174)
  store i32 %176, ptr %23, align 1
  %177 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 0
  %178 = load <2 x float>, ptr %177, align 4
  %179 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 1
  %180 = load <2 x float>, ptr %179, align 4
  %181 = load i32, ptr %21, align 1
  %182 = load i32, ptr %23, align 1
  call void @GuiDrawRectangle(<2 x float> %178, <2 x float> %180, i32 noundef %160, i32 %181, i32 %182)
  %183 = load ptr, ptr %14, align 8, !tbaa !5
  %184 = load i32, ptr %11, align 4, !tbaa !11
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds ptr, ptr %183, i64 %185
  %187 = load ptr, ptr %186, align 8, !tbaa !5
  %188 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 0
  %189 = load <2 x float>, ptr %188, align 4
  %190 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 1
  %191 = load <2 x float>, ptr %190, align 4
  %192 = call { <2 x float>, <2 x float> } @GetTextBounds(i32 noundef 0, <2 x float> %189, <2 x float> %191)
  %193 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %25, i32 0, i32 0
  %194 = extractvalue { <2 x float>, <2 x float> } %192, 0
  store <2 x float> %194, ptr %193, align 4
  %195 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %25, i32 0, i32 1
  %196 = extractvalue { <2 x float>, <2 x float> } %192, 1
  store <2 x float> %196, ptr %195, align 4
  %197 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 14)
  %198 = load i32, ptr %10, align 4, !tbaa !11
  %199 = mul i32 %198, 3
  %200 = add i32 2, %199
  %201 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef %200)
  %202 = call i32 @GetColor(i32 noundef %201)
  store i32 %202, ptr %27, align 1
  %203 = load float, ptr @guiAlpha, align 4, !tbaa !14
  %204 = load i32, ptr %27, align 1
  %205 = call i32 @Fade(i32 %204, float noundef %203)
  store i32 %205, ptr %26, align 1
  %206 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %25, i32 0, i32 0
  %207 = load <2 x float>, ptr %206, align 4
  %208 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %25, i32 0, i32 1
  %209 = load <2 x float>, ptr %208, align 4
  %210 = load i32, ptr %26, align 1
  call void @GuiDrawText(ptr noundef %187, <2 x float> %207, <2 x float> %209, i32 noundef %197, i32 %210)
  %211 = load i8, ptr %9, align 1, !tbaa !9, !range !18, !noundef !19
  %212 = trunc i8 %211 to i1
  br i1 %212, label %213, label %353

213:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  store i32 0, ptr %28, align 4, !tbaa !11
  br label %214

214:                                              ; preds = %349, %213
  %215 = load i32, ptr %28, align 4, !tbaa !11
  %216 = load i32, ptr %13, align 4, !tbaa !11
  %217 = icmp slt i32 %215, %216
  br i1 %217, label %219, label %218

218:                                              ; preds = %214
  store i32 5, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  br label %352

219:                                              ; preds = %214
  %220 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 3
  %221 = load float, ptr %220, align 4, !tbaa !16
  %222 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 17)
  %223 = sitofp i32 %222 to float
  %224 = fadd float %221, %223
  %225 = getelementptr inbounds %struct.Rectangle, ptr %16, i32 0, i32 1
  %226 = load float, ptr %225, align 4, !tbaa !20
  %227 = fadd float %226, %224
  store float %227, ptr %225, align 4, !tbaa !20
  %228 = load i32, ptr %28, align 4, !tbaa !11
  %229 = load i32, ptr %11, align 4, !tbaa !11
  %230 = icmp eq i32 %228, %229
  br i1 %230, label %231, label %274

231:                                              ; preds = %219
  %232 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 12)
  %233 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 6)
  %234 = call i32 @GetColor(i32 noundef %233)
  store i32 %234, ptr %30, align 1
  %235 = load float, ptr @guiAlpha, align 4, !tbaa !14
  %236 = load i32, ptr %30, align 1
  %237 = call i32 @Fade(i32 %236, float noundef %235)
  store i32 %237, ptr %29, align 1
  %238 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 7)
  %239 = call i32 @GetColor(i32 noundef %238)
  store i32 %239, ptr %32, align 1
  %240 = load float, ptr @guiAlpha, align 4, !tbaa !14
  %241 = load i32, ptr %32, align 1
  %242 = call i32 @Fade(i32 %241, float noundef %240)
  store i32 %242, ptr %31, align 1
  %243 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %16, i32 0, i32 0
  %244 = load <2 x float>, ptr %243, align 4
  %245 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %16, i32 0, i32 1
  %246 = load <2 x float>, ptr %245, align 4
  %247 = load i32, ptr %29, align 1
  %248 = load i32, ptr %31, align 1
  call void @GuiDrawRectangle(<2 x float> %244, <2 x float> %246, i32 noundef %232, i32 %247, i32 %248)
  %249 = load ptr, ptr %14, align 8, !tbaa !5
  %250 = load i32, ptr %28, align 4, !tbaa !11
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds ptr, ptr %249, i64 %251
  %253 = load ptr, ptr %252, align 8, !tbaa !5
  %254 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %16, i32 0, i32 0
  %255 = load <2 x float>, ptr %254, align 4
  %256 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %16, i32 0, i32 1
  %257 = load <2 x float>, ptr %256, align 4
  %258 = call { <2 x float>, <2 x float> } @GetTextBounds(i32 noundef 0, <2 x float> %255, <2 x float> %257)
  %259 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %33, i32 0, i32 0
  %260 = extractvalue { <2 x float>, <2 x float> } %258, 0
  store <2 x float> %260, ptr %259, align 4
  %261 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %33, i32 0, i32 1
  %262 = extractvalue { <2 x float>, <2 x float> } %258, 1
  store <2 x float> %262, ptr %261, align 4
  %263 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 14)
  %264 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 8)
  %265 = call i32 @GetColor(i32 noundef %264)
  store i32 %265, ptr %35, align 1
  %266 = load float, ptr @guiAlpha, align 4, !tbaa !14
  %267 = load i32, ptr %35, align 1
  %268 = call i32 @Fade(i32 %267, float noundef %266)
  store i32 %268, ptr %34, align 1
  %269 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %33, i32 0, i32 0
  %270 = load <2 x float>, ptr %269, align 4
  %271 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %33, i32 0, i32 1
  %272 = load <2 x float>, ptr %271, align 4
  %273 = load i32, ptr %34, align 1
  call void @GuiDrawText(ptr noundef %253, <2 x float> %270, <2 x float> %272, i32 noundef %263, i32 %273)
  br label %348

274:                                              ; preds = %219
  %275 = load i32, ptr %28, align 4, !tbaa !11
  %276 = load i32, ptr %12, align 4, !tbaa !11
  %277 = icmp eq i32 %275, %276
  br i1 %277, label %278, label %321

278:                                              ; preds = %274
  %279 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 12)
  %280 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 3)
  %281 = call i32 @GetColor(i32 noundef %280)
  store i32 %281, ptr %37, align 1
  %282 = load float, ptr @guiAlpha, align 4, !tbaa !14
  %283 = load i32, ptr %37, align 1
  %284 = call i32 @Fade(i32 %283, float noundef %282)
  store i32 %284, ptr %36, align 1
  %285 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 4)
  %286 = call i32 @GetColor(i32 noundef %285)
  store i32 %286, ptr %39, align 1
  %287 = load float, ptr @guiAlpha, align 4, !tbaa !14
  %288 = load i32, ptr %39, align 1
  %289 = call i32 @Fade(i32 %288, float noundef %287)
  store i32 %289, ptr %38, align 1
  %290 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %16, i32 0, i32 0
  %291 = load <2 x float>, ptr %290, align 4
  %292 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %16, i32 0, i32 1
  %293 = load <2 x float>, ptr %292, align 4
  %294 = load i32, ptr %36, align 1
  %295 = load i32, ptr %38, align 1
  call void @GuiDrawRectangle(<2 x float> %291, <2 x float> %293, i32 noundef %279, i32 %294, i32 %295)
  %296 = load ptr, ptr %14, align 8, !tbaa !5
  %297 = load i32, ptr %28, align 4, !tbaa !11
  %298 = sext i32 %297 to i64
  %299 = getelementptr inbounds ptr, ptr %296, i64 %298
  %300 = load ptr, ptr %299, align 8, !tbaa !5
  %301 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %16, i32 0, i32 0
  %302 = load <2 x float>, ptr %301, align 4
  %303 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %16, i32 0, i32 1
  %304 = load <2 x float>, ptr %303, align 4
  %305 = call { <2 x float>, <2 x float> } @GetTextBounds(i32 noundef 0, <2 x float> %302, <2 x float> %304)
  %306 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %40, i32 0, i32 0
  %307 = extractvalue { <2 x float>, <2 x float> } %305, 0
  store <2 x float> %307, ptr %306, align 4
  %308 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %40, i32 0, i32 1
  %309 = extractvalue { <2 x float>, <2 x float> } %305, 1
  store <2 x float> %309, ptr %308, align 4
  %310 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 14)
  %311 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 5)
  %312 = call i32 @GetColor(i32 noundef %311)
  store i32 %312, ptr %42, align 1
  %313 = load float, ptr @guiAlpha, align 4, !tbaa !14
  %314 = load i32, ptr %42, align 1
  %315 = call i32 @Fade(i32 %314, float noundef %313)
  store i32 %315, ptr %41, align 1
  %316 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %40, i32 0, i32 0
  %317 = load <2 x float>, ptr %316, align 4
  %318 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %40, i32 0, i32 1
  %319 = load <2 x float>, ptr %318, align 4
  %320 = load i32, ptr %41, align 1
  call void @GuiDrawText(ptr noundef %300, <2 x float> %317, <2 x float> %319, i32 noundef %310, i32 %320)
  br label %347

321:                                              ; preds = %274
  %322 = load ptr, ptr %14, align 8, !tbaa !5
  %323 = load i32, ptr %28, align 4, !tbaa !11
  %324 = sext i32 %323 to i64
  %325 = getelementptr inbounds ptr, ptr %322, i64 %324
  %326 = load ptr, ptr %325, align 8, !tbaa !5
  %327 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %16, i32 0, i32 0
  %328 = load <2 x float>, ptr %327, align 4
  %329 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %16, i32 0, i32 1
  %330 = load <2 x float>, ptr %329, align 4
  %331 = call { <2 x float>, <2 x float> } @GetTextBounds(i32 noundef 0, <2 x float> %328, <2 x float> %330)
  %332 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %43, i32 0, i32 0
  %333 = extractvalue { <2 x float>, <2 x float> } %331, 0
  store <2 x float> %333, ptr %332, align 4
  %334 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %43, i32 0, i32 1
  %335 = extractvalue { <2 x float>, <2 x float> } %331, 1
  store <2 x float> %335, ptr %334, align 4
  %336 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 14)
  %337 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 2)
  %338 = call i32 @GetColor(i32 noundef %337)
  store i32 %338, ptr %45, align 1
  %339 = load float, ptr @guiAlpha, align 4, !tbaa !14
  %340 = load i32, ptr %45, align 1
  %341 = call i32 @Fade(i32 %340, float noundef %339)
  store i32 %341, ptr %44, align 1
  %342 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %43, i32 0, i32 0
  %343 = load <2 x float>, ptr %342, align 4
  %344 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %43, i32 0, i32 1
  %345 = load <2 x float>, ptr %344, align 4
  %346 = load i32, ptr %44, align 1
  call void @GuiDrawText(ptr noundef %326, <2 x float> %343, <2 x float> %345, i32 noundef %336, i32 %346)
  br label %347

347:                                              ; preds = %321, %278
  br label %348

348:                                              ; preds = %347, %231
  br label %349

349:                                              ; preds = %348
  %350 = load i32, ptr %28, align 4, !tbaa !11
  %351 = add nsw i32 %350, 1
  store i32 %351, ptr %28, align 4, !tbaa !11
  br label %214, !llvm.loop !23

352:                                              ; preds = %218
  br label %353

353:                                              ; preds = %352, %159
  %354 = getelementptr inbounds %struct.Vector2, ptr %46, i32 0, i32 0
  %355 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 0
  %356 = load float, ptr %355, align 4, !tbaa !24
  %357 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 2
  %358 = load float, ptr %357, align 4, !tbaa !25
  %359 = fadd float %356, %358
  %360 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 16)
  %361 = sitofp i32 %360 to float
  %362 = fsub float %359, %361
  store float %362, ptr %354, align 4, !tbaa !26
  %363 = getelementptr inbounds %struct.Vector2, ptr %46, i32 0, i32 1
  %364 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 1
  %365 = load float, ptr %364, align 4, !tbaa !20
  %366 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 3
  %367 = load float, ptr %366, align 4, !tbaa !16
  %368 = fdiv float %367, 2.000000e+00
  %369 = fadd float %365, %368
  %370 = fsub float %369, 2.000000e+00
  store float %370, ptr %363, align 4, !tbaa !28
  %371 = getelementptr inbounds %struct.Vector2, ptr %47, i32 0, i32 0
  %372 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 0
  %373 = load float, ptr %372, align 4, !tbaa !24
  %374 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 2
  %375 = load float, ptr %374, align 4, !tbaa !25
  %376 = fadd float %373, %375
  %377 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 16)
  %378 = sitofp i32 %377 to float
  %379 = fsub float %376, %378
  %380 = fadd float %379, 5.000000e+00
  store float %380, ptr %371, align 4, !tbaa !26
  %381 = getelementptr inbounds %struct.Vector2, ptr %47, i32 0, i32 1
  %382 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 1
  %383 = load float, ptr %382, align 4, !tbaa !20
  %384 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 3
  %385 = load float, ptr %384, align 4, !tbaa !16
  %386 = fdiv float %385, 2.000000e+00
  %387 = fadd float %383, %386
  %388 = fsub float %387, 2.000000e+00
  %389 = fadd float %388, 5.000000e+00
  store float %389, ptr %381, align 4, !tbaa !28
  %390 = getelementptr inbounds %struct.Vector2, ptr %48, i32 0, i32 0
  %391 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 0
  %392 = load float, ptr %391, align 4, !tbaa !24
  %393 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 2
  %394 = load float, ptr %393, align 4, !tbaa !25
  %395 = fadd float %392, %394
  %396 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 16)
  %397 = sitofp i32 %396 to float
  %398 = fsub float %395, %397
  %399 = fadd float %398, 1.000000e+01
  store float %399, ptr %390, align 4, !tbaa !26
  %400 = getelementptr inbounds %struct.Vector2, ptr %48, i32 0, i32 1
  %401 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 1
  %402 = load float, ptr %401, align 4, !tbaa !20
  %403 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 3
  %404 = load float, ptr %403, align 4, !tbaa !16
  %405 = fdiv float %404, 2.000000e+00
  %406 = fadd float %402, %405
  %407 = fsub float %406, 2.000000e+00
  store float %407, ptr %400, align 4, !tbaa !28
  %408 = load i32, ptr %10, align 4, !tbaa !11
  %409 = mul i32 %408, 3
  %410 = add i32 2, %409
  %411 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef %410)
  %412 = call i32 @GetColor(i32 noundef %411)
  store i32 %412, ptr %50, align 1
  %413 = load float, ptr @guiAlpha, align 4, !tbaa !14
  %414 = load i32, ptr %50, align 1
  %415 = call i32 @Fade(i32 %414, float noundef %413)
  store i32 %415, ptr %49, align 1
  %416 = load <2 x float>, ptr %46, align 4
  %417 = load <2 x float>, ptr %47, align 4
  %418 = load <2 x float>, ptr %48, align 4
  %419 = load i32, ptr %49, align 1
  call void @DrawTriangle(<2 x float> %416, <2 x float> %417, <2 x float> %418, i32 %419)
  %420 = load i32, ptr %11, align 4, !tbaa !11
  %421 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 %420, ptr %421, align 4, !tbaa !11
  %422 = load i8, ptr %17, align 1, !tbaa !9, !range !18, !noundef !19
  %423 = trunc i8 %422 to i1
  store i32 1, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  ret i1 %423
}

declare void @DrawTriangle(<2 x float>, <2 x float>, <2 x float>, 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 = { nounwind }

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

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


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

@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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @GuiPanel(<2 x float>, <2 x float>) local_unnamed_addr #2

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

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

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

declare zeroext i1 @IsMouseButtonReleased(i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden ptr @GuiTextSplit(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @GuiDropdownBox(<2 x float> %0, <2 x float> %1, ptr noundef %2, ptr nocapture noundef %3, i1 noundef zeroext %4) local_unnamed_addr #2 {
  %6 = alloca i32, align 4
  %7 = load i32, ptr @guiState, align 4, !tbaa !5
  %8 = load i32, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  store i32 0, ptr %6, align 4, !tbaa !5
  %9 = call ptr @GuiTextSplit(ptr noundef %2, ptr noundef nonnull %6, ptr noundef null)
  %10 = load i32, ptr %6, align 4, !tbaa !5
  %11 = add nsw i32 %10, 1
  %12 = sitofp i32 %11 to float
  %.sroa.14107.12.vec.extract = extractelement <2 x float> %1, i64 1
  %13 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 17)
  %14 = sitofp i32 %13 to float
  %15 = fadd float %.sroa.14107.12.vec.extract, %14
  %16 = fmul float %15, %12
  %.sroa.5.12.vec.insert = insertelement <2 x float> %1, float %16, i64 1
  %.not142 = icmp eq i32 %7, 3
  br i1 %.not142, label %.loopexit155, label %17

17:                                               ; preds = %5
  %18 = load i8, ptr @guiLocked, align 1, !tbaa !9, !range !11, !noundef !12
  %19 = trunc nuw i8 %18 to i1
  %20 = load i32, ptr %6, align 4
  %21 = icmp slt i32 %20, 2
  %or.cond.not = select i1 %19, i1 true, i1 %21
  br i1 %or.cond.not, label %.loopexit155, label %22

22:                                               ; preds = %17
  %23 = call <2 x float> @GetMousePosition() #4
  br i1 %4, label %24, label %49

24:                                               ; preds = %22
  %25 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %23, <2 x float> %0, <2 x float> %.sroa.5.12.vec.insert) #4
  br i1 %25, label %31, label %26

26:                                               ; preds = %24
  %27 = call zeroext i1 @IsMouseButtonPressed(i32 noundef 0) #4
  br i1 %27, label %30, label %28

28:                                               ; preds = %26
  %29 = call zeroext i1 @IsMouseButtonReleased(i32 noundef 0) #4
  br i1 %29, label %30, label %31

30:                                               ; preds = %28, %26
  br label %31

31:                                               ; preds = %28, %30, %24
  %.0134 = phi i1 [ false, %24 ], [ true, %30 ], [ false, %28 ]
  %32 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %23, <2 x float> %0, <2 x float> %1) #4
  br i1 %32, label %33, label %35

33:                                               ; preds = %31
  %34 = call zeroext i1 @IsMouseButtonPressed(i32 noundef 0) #4
  %spec.select = or i1 %34, %.0134
  br label %35

35:                                               ; preds = %33, %31
  %.1135 = phi i1 [ %.0134, %31 ], [ %spec.select, %33 ]
  %36 = load i32, ptr %6, align 4, !tbaa !5
  %37 = icmp sgt i32 %36, 0
  br i1 %37, label %.lr.ph, label %.loopexit155.thread

.lr.ph:                                           ; preds = %35, %45
  %.sroa.051.0158 = phi <2 x float> [ %.sroa.051.4.vec.insert, %45 ], [ %0, %35 ]
  %.0138157 = phi i32 [ %46, %45 ], [ 0, %35 ]
  %38 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 17)
  %39 = sitofp i32 %38 to float
  %40 = fadd float %.sroa.14107.12.vec.extract, %39
  %.sroa.051.4.vec.extract = extractelement <2 x float> %.sroa.051.0158, i64 1
  %41 = fadd float %.sroa.051.4.vec.extract, %40
  %.sroa.051.4.vec.insert = insertelement <2 x float> %.sroa.051.0158, float %41, i64 1
  %42 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %23, <2 x float> %.sroa.051.4.vec.insert, <2 x float> %1) #4
  br i1 %42, label %43, label %45

43:                                               ; preds = %.lr.ph
  %44 = call zeroext i1 @IsMouseButtonReleased(i32 noundef 0) #4
  %spec.select144 = select i1 %44, i1 true, i1 %.1135
  %spec.select145 = select i1 %44, i32 %.0138157, i32 %8
  br label %.loopexit155

45:                                               ; preds = %.lr.ph
  %46 = add nuw nsw i32 %.0138157, 1
  %47 = load i32, ptr %6, align 4, !tbaa !5
  %48 = icmp slt i32 %46, %47
  br i1 %48, label %.lr.ph, label %.loopexit155, !llvm.loop !13

49:                                               ; preds = %22
  %50 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %23, <2 x float> %0, <2 x float> %1) #4
  br i1 %50, label %51, label %.thread

51:                                               ; preds = %49
  %52 = call zeroext i1 @IsMouseButtonPressed(i32 noundef 0) #4
  %.146 = select i1 %52, i32 2, i32 1
  br label %.thread

.loopexit155:                                     ; preds = %45, %43, %17, %5
  %.5 = phi i1 [ false, %17 ], [ false, %5 ], [ %spec.select144, %43 ], [ %.1135, %45 ]
  %.2133 = phi i32 [ -1, %17 ], [ -1, %5 ], [ %.0138157, %43 ], [ -1, %45 ]
  %.3 = phi i32 [ %8, %17 ], [ %8, %5 ], [ %spec.select145, %43 ], [ %8, %45 ]
  %.1 = phi i32 [ %7, %17 ], [ 3, %5 ], [ 2, %43 ], [ 2, %45 ]
  br i1 %4, label %.loopexit155.thread, label %.thread

.loopexit155.thread:                              ; preds = %35, %.loopexit155
  %.1172 = phi i32 [ %.1, %.loopexit155 ], [ 2, %35 ]
  %.3171 = phi i32 [ %.3, %.loopexit155 ], [ %8, %35 ]
  %.2133170 = phi i32 [ %.2133, %.loopexit155 ], [ -1, %35 ]
  %.5169 = phi i1 [ %.5, %.loopexit155 ], [ %.1135, %35 ]
  call void @GuiPanel(<2 x float> %0, <2 x float> %.sroa.5.12.vec.insert)
  br label %.thread

.thread:                                          ; preds = %51, %49, %.loopexit155.thread, %.loopexit155
  %.1154 = phi i32 [ %.1172, %.loopexit155.thread ], [ %.1, %.loopexit155 ], [ %.146, %51 ], [ %7, %49 ]
  %.3153 = phi i32 [ %.3171, %.loopexit155.thread ], [ %.3, %.loopexit155 ], [ %8, %51 ], [ %8, %49 ]
  %.2133152 = phi i32 [ %.2133170, %.loopexit155.thread ], [ %.2133, %.loopexit155 ], [ -1, %51 ], [ -1, %49 ]
  %.5151 = phi i1 [ %.5169, %.loopexit155.thread ], [ %.5, %.loopexit155 ], [ %52, %51 ], [ false, %49 ]
  %53 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 12)
  %54 = mul i32 %.1154, 3
  %55 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef %54)
  %56 = call i32 @GetColor(i32 noundef %55) #4
  %57 = load float, ptr @guiAlpha, align 4, !tbaa !15
  %58 = call i32 @Fade(i32 %56, float noundef %57) #4
  %59 = add i32 %54, 1
  %60 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef %59)
  %61 = call i32 @GetColor(i32 noundef %60) #4
  %62 = load float, ptr @guiAlpha, align 4, !tbaa !15
  %63 = call i32 @Fade(i32 %61, float noundef %62) #4
  call void @GuiDrawRectangle(<2 x float> %0, <2 x float> %1, i32 noundef %53, i32 %58, i32 %63)
  %64 = sext i32 %.3153 to i64
  %65 = getelementptr inbounds ptr, ptr %9, i64 %64
  %66 = load ptr, ptr %65, align 8, !tbaa !17
  %67 = call { <2 x float>, <2 x float> } @GetTextBounds(i32 noundef 0, <2 x float> %0, <2 x float> %1)
  %68 = extractvalue { <2 x float>, <2 x float> } %67, 0
  %69 = extractvalue { <2 x float>, <2 x float> } %67, 1
  %70 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 14)
  %71 = add i32 %54, 2
  %72 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef %71)
  %73 = call i32 @GetColor(i32 noundef %72) #4
  %74 = load float, ptr @guiAlpha, align 4, !tbaa !15
  %75 = call i32 @Fade(i32 %73, float noundef %74) #4
  call void @GuiDrawText(ptr noundef %66, <2 x float> %68, <2 x float> %69, i32 noundef %70, i32 %75)
  %76 = load i32, ptr %6, align 4
  %77 = icmp sgt i32 %76, 0
  %or.cond = select i1 %4, i1 %77, i1 false
  br i1 %or.cond, label %.lr.ph161.preheader, label %.loopexit

.lr.ph161.preheader:                              ; preds = %.thread
  %78 = zext i32 %.2133152 to i64
  %79 = zext i32 %.3153 to i64
  %80 = getelementptr inbounds ptr, ptr %9, i64 %78
  %81 = getelementptr inbounds ptr, ptr %9, i64 %79
  br label %.lr.ph161

.lr.ph161:                                        ; preds = %.lr.ph161.preheader, %111
  %indvars.iv = phi i64 [ 0, %.lr.ph161.preheader ], [ %indvars.iv.next, %111 ]
  %.sroa.051.3160 = phi <2 x float> [ %0, %.lr.ph161.preheader ], [ %.sroa.051.4.vec.insert62, %111 ]
  %82 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 17)
  %83 = sitofp i32 %82 to float
  %84 = fadd float %.sroa.14107.12.vec.extract, %83
  %.sroa.051.4.vec.extract60 = extractelement <2 x float> %.sroa.051.3160, i64 1
  %85 = fadd float %.sroa.051.4.vec.extract60, %84
  %.sroa.051.4.vec.insert62 = insertelement <2 x float> %.sroa.051.3160, float %85, i64 1
  %86 = icmp eq i64 %indvars.iv, %79
  br i1 %86, label %87, label %97

87:                                               ; preds = %.lr.ph161
  %88 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 12)
  %89 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 6)
  %90 = call i32 @GetColor(i32 noundef %89) #4
  %91 = load float, ptr @guiAlpha, align 4, !tbaa !15
  %92 = call i32 @Fade(i32 %90, float noundef %91) #4
  %93 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 7)
  %94 = call i32 @GetColor(i32 noundef %93) #4
  %95 = load float, ptr @guiAlpha, align 4, !tbaa !15
  %96 = call i32 @Fade(i32 %94, float noundef %95) #4
  call void @GuiDrawRectangle(<2 x float> %.sroa.051.4.vec.insert62, <2 x float> %1, i32 noundef %88, i32 %92, i32 %96)
  br label %111

97:                                               ; preds = %.lr.ph161
  %98 = icmp eq i64 %indvars.iv, %78
  br i1 %98, label %99, label %109

99:                                               ; preds = %97
  %100 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 12)
  %101 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 3)
  %102 = call i32 @GetColor(i32 noundef %101) #4
  %103 = load float, ptr @guiAlpha, align 4, !tbaa !15
  %104 = call i32 @Fade(i32 %102, float noundef %103) #4
  %105 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 4)
  %106 = call i32 @GetColor(i32 noundef %105) #4
  %107 = load float, ptr @guiAlpha, align 4, !tbaa !15
  %108 = call i32 @Fade(i32 %106, float noundef %107) #4
  call void @GuiDrawRectangle(<2 x float> %.sroa.051.4.vec.insert62, <2 x float> %1, i32 noundef %100, i32 %104, i32 %108)
  br label %111

109:                                              ; preds = %97
  %110 = getelementptr inbounds ptr, ptr %9, i64 %indvars.iv
  br label %111

111:                                              ; preds = %87, %109, %99
  %.sink184 = phi ptr [ %81, %87 ], [ %110, %109 ], [ %80, %99 ]
  %.sink181 = phi i32 [ 8, %87 ], [ 2, %109 ], [ 5, %99 ]
  %112 = load ptr, ptr %.sink184, align 8, !tbaa !17
  %113 = call { <2 x float>, <2 x float> } @GetTextBounds(i32 noundef 0, <2 x float> %.sroa.051.4.vec.insert62, <2 x float> %1)
  %114 = extractvalue { <2 x float>, <2 x float> } %113, 0
  %115 = extractvalue { <2 x float>, <2 x float> } %113, 1
  %116 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 14)
  %117 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef %.sink181)
  %118 = call i32 @GetColor(i32 noundef %117) #4
  %119 = load float, ptr @guiAlpha, align 4, !tbaa !15
  %120 = call i32 @Fade(i32 %118, float noundef %119) #4
  call void @GuiDrawText(ptr noundef %112, <2 x float> %114, <2 x float> %115, i32 noundef %116, i32 %120)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %121 = load i32, ptr %6, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = icmp slt i64 %indvars.iv.next, %122
  br i1 %123, label %.lr.ph161, label %.loopexit, !llvm.loop !19

.loopexit:                                        ; preds = %111, %.thread
  %124 = fadd <2 x float> %0, %1
  %125 = extractelement <2 x float> %124, i64 0
  %126 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 16)
  %127 = sitofp i32 %126 to float
  %128 = fsub float %125, %127
  %.sroa.07.0.vec.insert = insertelement <2 x float> poison, float %128, i64 0
  %.sroa.091.4.vec.extract = extractelement <2 x float> %0, i64 1
  %129 = fmul float %.sroa.14107.12.vec.extract, 5.000000e-01
  %130 = fadd float %.sroa.091.4.vec.extract, %129
  %131 = fadd float %130, -2.000000e+00
  %.sroa.07.4.vec.insert = insertelement <2 x float> %.sroa.07.0.vec.insert, float %131, i64 1
  %132 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 16)
  %133 = sitofp i32 %132 to float
  %134 = fsub float %125, %133
  %135 = insertelement <2 x float> poison, float %134, i64 0
  %136 = insertelement <2 x float> %135, float %131, i64 1
  %137 = fadd <2 x float> %136, <float 5.000000e+00, float 5.000000e+00>
  %138 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef 16)
  %139 = sitofp i32 %138 to float
  %140 = fsub float %125, %139
  %141 = fadd float %140, 1.000000e+01
  %.sroa.03.0.vec.insert = insertelement <2 x float> poison, float %141, i64 0
  %.sroa.03.4.vec.insert = insertelement <2 x float> %.sroa.03.0.vec.insert, float %131, i64 1
  %142 = call i32 @GuiGetStyle(i32 noundef 8, i32 noundef %71)
  %143 = call i32 @GetColor(i32 noundef %142) #4
  %144 = load float, ptr @guiAlpha, align 4, !tbaa !15
  %145 = call i32 @Fade(i32 %143, float noundef %144) #4
  call void @DrawTriangle(<2 x float> %.sroa.07.4.vec.insert, <2 x float> %137, <2 x float> %.sroa.03.4.vec.insert, i32 %145) #4
  store i32 %.3153, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  ret i1 %.5151
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { 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 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"any pointer", !7, i64 0}
!19 = distinct !{!19, !14}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,VectorCombinePass