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

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

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

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

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

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

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

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

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

declare zeroext i1 @IsMouseButtonDown(i32 noundef) #4

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

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

declare zeroext i1 @IsMouseButtonReleased(i32 noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local zeroext i1 @GuiToggle(<2 x float> %0, <2 x float> %1, ptr noundef %2, i1 noundef zeroext %3) #3 {
  %5 = alloca %struct.Rectangle, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  %8 = alloca i32, align 4
  %9 = alloca %struct.Vector2, align 4
  %10 = alloca %struct.Vector2, align 4
  %11 = alloca %struct.Rectangle, align 4
  %12 = alloca %struct.Rectangle, align 4
  %13 = alloca %struct.Color, align 1
  %14 = alloca %struct.Color, align 1
  %15 = alloca %struct.Color, align 1
  %16 = alloca %struct.Color, align 1
  %17 = alloca %struct.Rectangle, align 4
  %18 = alloca %struct.Rectangle, align 4
  %19 = alloca %struct.Color, align 1
  %20 = alloca %struct.Color, align 1
  %21 = alloca %struct.Rectangle, align 4
  %22 = alloca %struct.Color, align 1
  %23 = alloca %struct.Color, align 1
  %24 = alloca %struct.Color, align 1
  %25 = alloca %struct.Color, align 1
  %26 = alloca %struct.Rectangle, align 4
  %27 = alloca %struct.Rectangle, align 4
  %28 = alloca %struct.Color, align 1
  %29 = alloca %struct.Color, align 1
  %30 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %5, i32 0, i32 0
  store <2 x float> %0, ptr %30, align 4
  %31 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %5, i32 0, i32 1
  store <2 x float> %1, ptr %31, align 4
  store ptr %2, ptr %6, align 8, !tbaa !5
  %32 = zext i1 %3 to i8
  store i8 %32, ptr %7, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %33 = load i32, ptr @_ZL8guiState, align 4, !tbaa !11
  store i32 %33, ptr %8, align 4, !tbaa !11
  %34 = load i32, ptr %8, align 4, !tbaa !11
  %35 = icmp ne i32 %34, 3
  br i1 %35, label %36, label %61

36:                                               ; preds = %4
  %37 = load i8, ptr @_ZL9guiLocked, align 1, !tbaa !9, !range !13, !noundef !14
  %38 = trunc i8 %37 to i1
  br i1 %38, label %61, label %39

39:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %40 = call <2 x float> @GetMousePosition()
  store <2 x float> %40, ptr %9, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %9, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %5, i64 16, i1 false), !tbaa.struct !18
  %41 = load <2 x float>, ptr %10, align 4
  %42 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %11, i32 0, i32 0
  %43 = load <2 x float>, ptr %42, align 4
  %44 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %11, i32 0, i32 1
  %45 = load <2 x float>, ptr %44, align 4
  %46 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %41, <2 x float> %43, <2 x float> %45)
  br i1 %46, label %47, label %60

47:                                               ; preds = %39
  %48 = call zeroext i1 @IsMouseButtonDown(i32 noundef 0)
  br i1 %48, label %49, label %50

49:                                               ; preds = %47
  store i32 2, ptr %8, align 4, !tbaa !11
  br label %59

50:                                               ; preds = %47
  %51 = call zeroext i1 @IsMouseButtonReleased(i32 noundef 0)
  br i1 %51, label %52, label %57

52:                                               ; preds = %50
  store i32 0, ptr %8, align 4, !tbaa !11
  %53 = load i8, ptr %7, align 1, !tbaa !9, !range !13, !noundef !14
  %54 = trunc i8 %53 to i1
  %55 = xor i1 %54, true
  %56 = zext i1 %55 to i8
  store i8 %56, ptr %7, align 1, !tbaa !9
  br label %58

57:                                               ; preds = %50
  store i32 1, ptr %8, align 4, !tbaa !11
  br label %58

58:                                               ; preds = %57, %52
  br label %59

59:                                               ; preds = %58, %49
  br label %60

60:                                               ; preds = %59, %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %61

61:                                               ; preds = %60, %36, %4
  %62 = load i32, ptr %8, align 4, !tbaa !11
  %63 = icmp eq i32 %62, 0
  br i1 %63, label %64, label %130

64:                                               ; preds = %61
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %5, i64 16, i1 false), !tbaa.struct !18
  %65 = call i32 @GuiGetStyle(i32 noundef 3, i32 noundef 12)
  %66 = load i8, ptr %7, align 1, !tbaa !9, !range !13, !noundef !14
  %67 = trunc i8 %66 to i1
  br i1 %67, label %68, label %69

68:                                               ; preds = %64
  br label %73

69:                                               ; preds = %64
  %70 = load i32, ptr %8, align 4, !tbaa !11
  %71 = mul nsw i32 %70, 3
  %72 = add nsw i32 0, %71
  br label %73

73:                                               ; preds = %69, %68
  %74 = phi i32 [ 6, %68 ], [ %72, %69 ]
  %75 = call i32 @GuiGetStyle(i32 noundef 3, i32 noundef %74)
  %76 = call i32 @GetColor(i32 noundef %75)
  store i32 %76, ptr %14, align 1
  %77 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !16
  %78 = load i32, ptr %14, align 1
  %79 = call i32 @Fade(i32 %78, float noundef %77)
  store i32 %79, ptr %13, align 1
  %80 = load i8, ptr %7, align 1, !tbaa !9, !range !13, !noundef !14
  %81 = trunc i8 %80 to i1
  br i1 %81, label %82, label %83

82:                                               ; preds = %73
  br label %87

83:                                               ; preds = %73
  %84 = load i32, ptr %8, align 4, !tbaa !11
  %85 = mul nsw i32 %84, 3
  %86 = add nsw i32 1, %85
  br label %87

87:                                               ; preds = %83, %82
  %88 = phi i32 [ 7, %82 ], [ %86, %83 ]
  %89 = call i32 @GuiGetStyle(i32 noundef 3, i32 noundef %88)
  %90 = call i32 @GetColor(i32 noundef %89)
  store i32 %90, ptr %16, align 1
  %91 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !16
  %92 = load i32, ptr %16, align 1
  %93 = call i32 @Fade(i32 %92, float noundef %91)
  store i32 %93, ptr %15, align 1
  %94 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %12, i32 0, i32 0
  %95 = load <2 x float>, ptr %94, align 4
  %96 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %12, i32 0, i32 1
  %97 = load <2 x float>, ptr %96, align 4
  %98 = load i32, ptr %13, align 1
  %99 = load i32, ptr %15, align 1
  call void @_ZL16GuiDrawRectangle9Rectanglei5ColorS0_(<2 x float> %95, <2 x float> %97, i32 noundef %65, i32 %98, i32 %99)
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %5, i64 16, i1 false), !tbaa.struct !18
  %101 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %18, i32 0, i32 0
  %102 = load <2 x float>, ptr %101, align 4
  %103 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %18, i32 0, i32 1
  %104 = load <2 x float>, ptr %103, align 4
  %105 = call { <2 x float>, <2 x float> } @_ZL13GetTextBoundsi9Rectangle(i32 noundef 3, <2 x float> %102, <2 x float> %104)
  %106 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %17, i32 0, i32 0
  %107 = extractvalue { <2 x float>, <2 x float> } %105, 0
  store <2 x float> %107, ptr %106, align 4
  %108 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %17, i32 0, i32 1
  %109 = extractvalue { <2 x float>, <2 x float> } %105, 1
  store <2 x float> %109, ptr %108, align 4
  %110 = call i32 @GuiGetStyle(i32 noundef 3, i32 noundef 14)
  %111 = load i8, ptr %7, align 1, !tbaa !9, !range !13, !noundef !14
  %112 = trunc i8 %111 to i1
  br i1 %112, label %113, label %114

113:                                              ; preds = %87
  br label %118

114:                                              ; preds = %87
  %115 = load i32, ptr %8, align 4, !tbaa !11
  %116 = mul nsw i32 %115, 3
  %117 = add nsw i32 2, %116
  br label %118

118:                                              ; preds = %114, %113
  %119 = phi i32 [ 8, %113 ], [ %117, %114 ]
  %120 = call i32 @GuiGetStyle(i32 noundef 3, i32 noundef %119)
  %121 = call i32 @GetColor(i32 noundef %120)
  store i32 %121, ptr %20, align 1
  %122 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !16
  %123 = load i32, ptr %20, align 1
  %124 = call i32 @Fade(i32 %123, float noundef %122)
  store i32 %124, ptr %19, align 1
  %125 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %17, i32 0, i32 0
  %126 = load <2 x float>, ptr %125, align 4
  %127 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %17, i32 0, i32 1
  %128 = load <2 x float>, ptr %127, align 4
  %129 = load i32, ptr %19, align 1
  call void @_ZL11GuiDrawTextPKc9Rectanglei5Color(ptr noundef %100, <2 x float> %126, <2 x float> %128, i32 noundef %110, i32 %129)
  br label %178

130:                                              ; preds = %61
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %5, i64 16, i1 false), !tbaa.struct !18
  %131 = call i32 @GuiGetStyle(i32 noundef 3, i32 noundef 12)
  %132 = load i32, ptr %8, align 4, !tbaa !11
  %133 = mul nsw i32 %132, 3
  %134 = add nsw i32 0, %133
  %135 = call i32 @GuiGetStyle(i32 noundef 3, i32 noundef %134)
  %136 = call i32 @GetColor(i32 noundef %135)
  store i32 %136, ptr %23, align 1
  %137 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !16
  %138 = load i32, ptr %23, align 1
  %139 = call i32 @Fade(i32 %138, float noundef %137)
  store i32 %139, ptr %22, align 1
  %140 = load i32, ptr %8, align 4, !tbaa !11
  %141 = mul nsw i32 %140, 3
  %142 = add nsw i32 1, %141
  %143 = call i32 @GuiGetStyle(i32 noundef 3, i32 noundef %142)
  %144 = call i32 @GetColor(i32 noundef %143)
  store i32 %144, ptr %25, align 1
  %145 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !16
  %146 = load i32, ptr %25, align 1
  %147 = call i32 @Fade(i32 %146, float noundef %145)
  store i32 %147, ptr %24, align 1
  %148 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %21, i32 0, i32 0
  %149 = load <2 x float>, ptr %148, align 4
  %150 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %21, i32 0, i32 1
  %151 = load <2 x float>, ptr %150, align 4
  %152 = load i32, ptr %22, align 1
  %153 = load i32, ptr %24, align 1
  call void @_ZL16GuiDrawRectangle9Rectanglei5ColorS0_(<2 x float> %149, <2 x float> %151, i32 noundef %131, i32 %152, i32 %153)
  %154 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %5, i64 16, i1 false), !tbaa.struct !18
  %155 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %27, i32 0, i32 0
  %156 = load <2 x float>, ptr %155, align 4
  %157 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %27, i32 0, i32 1
  %158 = load <2 x float>, ptr %157, align 4
  %159 = call { <2 x float>, <2 x float> } @_ZL13GetTextBoundsi9Rectangle(i32 noundef 3, <2 x float> %156, <2 x float> %158)
  %160 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %26, i32 0, i32 0
  %161 = extractvalue { <2 x float>, <2 x float> } %159, 0
  store <2 x float> %161, ptr %160, align 4
  %162 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %26, i32 0, i32 1
  %163 = extractvalue { <2 x float>, <2 x float> } %159, 1
  store <2 x float> %163, ptr %162, align 4
  %164 = call i32 @GuiGetStyle(i32 noundef 3, i32 noundef 14)
  %165 = load i32, ptr %8, align 4, !tbaa !11
  %166 = mul nsw i32 %165, 3
  %167 = add nsw i32 2, %166
  %168 = call i32 @GuiGetStyle(i32 noundef 3, i32 noundef %167)
  %169 = call i32 @GetColor(i32 noundef %168)
  store i32 %169, ptr %29, align 1
  %170 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !16
  %171 = load i32, ptr %29, align 1
  %172 = call i32 @Fade(i32 %171, float noundef %170)
  store i32 %172, ptr %28, align 1
  %173 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %26, i32 0, i32 0
  %174 = load <2 x float>, ptr %173, align 4
  %175 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %26, i32 0, i32 1
  %176 = load <2 x float>, ptr %175, align 4
  %177 = load i32, ptr %28, align 1
  call void @_ZL11GuiDrawTextPKc9Rectanglei5Color(ptr noundef %154, <2 x float> %174, <2 x float> %176, i32 noundef %164, i32 %177)
  br label %178

178:                                              ; preds = %130, %118
  %179 = load i8, ptr %7, align 1, !tbaa !9, !range !13, !noundef !14
  %180 = trunc i8 %179 to i1
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  ret i1 %180
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS15GuiControlState", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{i64 0, i64 4, !16, i64 4, i64 4, !16}
!16 = !{!17, !17, i64 0}
!17 = !{!"float", !7, i64 0}
!18 = !{i64 0, i64 4, !16, i64 4, i64 4, !16, i64 8, i64 4, !16, i64 12, i64 4, !16}


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

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

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

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

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

declare i32 @GetColor(i32 noundef) local_unnamed_addr #2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @GuiToggle(<2 x float> %0, <2 x float> %1, ptr noundef %2, i1 noundef zeroext %3) local_unnamed_addr #1 {
  %5 = load i32, ptr @_ZL8guiState, align 4, !tbaa !5
  %.not = icmp eq i32 %5, 3
  br i1 %.not, label %.thread, label %6

6:                                                ; preds = %4
  %7 = load i8, ptr @_ZL9guiLocked, align 1, !tbaa !9, !range !11, !noundef !12
  %8 = trunc nuw i8 %7 to i1
  br i1 %8, label %17, label %9

9:                                                ; preds = %6
  %10 = tail call <2 x float> @GetMousePosition()
  %11 = tail call zeroext i1 @CheckCollisionPointRec(<2 x float> %10, <2 x float> %0, <2 x float> %1)
  br i1 %11, label %12, label %17

12:                                               ; preds = %9
  %13 = tail call zeroext i1 @IsMouseButtonDown(i32 noundef 0)
  br i1 %13, label %.thread, label %14

14:                                               ; preds = %12
  %15 = tail call zeroext i1 @IsMouseButtonReleased(i32 noundef 0)
  %16 = xor i1 %3, true
  br i1 %15, label %.thread59, label %.thread

17:                                               ; preds = %9, %6
  %18 = icmp eq i32 %5, 0
  br i1 %18, label %.thread59, label %.thread

.thread59:                                        ; preds = %14, %17
  %.162 = phi i1 [ %3, %17 ], [ %16, %14 ]
  %19 = tail call i32 @GuiGetStyle(i32 noundef 3, i32 noundef 12)
  %20 = select i1 %.162, i32 6, i32 0
  %21 = tail call i32 @GuiGetStyle(i32 noundef 3, i32 noundef %20)
  %22 = tail call i32 @GetColor(i32 noundef %21)
  %23 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %24 = tail call i32 @Fade(i32 %22, float noundef %23)
  %25 = select i1 %.162, i32 7, i32 1
  %26 = tail call i32 @GuiGetStyle(i32 noundef 3, i32 noundef %25)
  %27 = tail call i32 @GetColor(i32 noundef %26)
  %28 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %29 = tail call i32 @Fade(i32 %27, float noundef %28)
  tail call void @_ZL16GuiDrawRectangle9Rectanglei5ColorS0_(<2 x float> %0, <2 x float> %1, i32 noundef %19, i32 %24, i32 %29)
  %30 = tail call { <2 x float>, <2 x float> } @_ZL13GetTextBoundsi9Rectangle(i32 noundef 3, <2 x float> %0, <2 x float> %1)
  %31 = extractvalue { <2 x float>, <2 x float> } %30, 0
  %32 = extractvalue { <2 x float>, <2 x float> } %30, 1
  %33 = tail call i32 @GuiGetStyle(i32 noundef 3, i32 noundef 14)
  %34 = select i1 %.162, i32 8, i32 2
  %35 = tail call i32 @GuiGetStyle(i32 noundef 3, i32 noundef %34)
  %36 = tail call i32 @GetColor(i32 noundef %35)
  %37 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %38 = tail call i32 @Fade(i32 %36, float noundef %37)
  tail call void @_ZL11GuiDrawTextPKc9Rectanglei5Color(ptr noundef %2, <2 x float> %31, <2 x float> %32, i32 noundef %33, i32 %38)
  br label %59

.thread:                                          ; preds = %14, %12, %4, %17
  %.15056 = phi i32 [ %5, %17 ], [ 1, %14 ], [ 2, %12 ], [ 3, %4 ]
  %39 = tail call i32 @GuiGetStyle(i32 noundef 3, i32 noundef 12)
  %40 = mul nsw i32 %.15056, 3
  %41 = tail call i32 @GuiGetStyle(i32 noundef 3, i32 noundef %40)
  %42 = tail call i32 @GetColor(i32 noundef %41)
  %43 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %44 = tail call i32 @Fade(i32 %42, float noundef %43)
  %45 = add nsw i32 %40, 1
  %46 = tail call i32 @GuiGetStyle(i32 noundef 3, i32 noundef %45)
  %47 = tail call i32 @GetColor(i32 noundef %46)
  %48 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %49 = tail call i32 @Fade(i32 %47, float noundef %48)
  tail call void @_ZL16GuiDrawRectangle9Rectanglei5ColorS0_(<2 x float> %0, <2 x float> %1, i32 noundef %39, i32 %44, i32 %49)
  %50 = tail call { <2 x float>, <2 x float> } @_ZL13GetTextBoundsi9Rectangle(i32 noundef 3, <2 x float> %0, <2 x float> %1)
  %51 = extractvalue { <2 x float>, <2 x float> } %50, 0
  %52 = extractvalue { <2 x float>, <2 x float> } %50, 1
  %53 = tail call i32 @GuiGetStyle(i32 noundef 3, i32 noundef 14)
  %54 = add nsw i32 %40, 2
  %55 = tail call i32 @GuiGetStyle(i32 noundef 3, i32 noundef %54)
  %56 = tail call i32 @GetColor(i32 noundef %55)
  %57 = load float, ptr @_ZL8guiAlpha, align 4, !tbaa !13
  %58 = tail call i32 @Fade(i32 %56, float noundef %57)
  tail call void @_ZL11GuiDrawTextPKc9Rectanglei5Color(ptr noundef %2, <2 x float> %51, <2 x float> %52, i32 noundef %53, i32 %58)
  br label %59

59:                                               ; preds = %.thread, %.thread59
  %.157 = phi i1 [ %3, %.thread ], [ %.162, %.thread59 ]
  ret i1 %.157
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"_ZTS15GuiControlState", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass