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

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: 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) #1

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

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

declare i32 @GetColor(i32 noundef) #3

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

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

declare zeroext i1 @IsMouseButtonDown(i32 noundef) #3

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

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

declare zeroext i1 @IsMouseButtonReleased(i32 noundef) #3

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

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

33:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %34 = call <2 x float> @GetMousePosition()
  store <2 x float> %34, ptr %9, align 4
  %35 = load <2 x float>, ptr %9, align 4
  %36 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %5, i32 0, i32 0
  %37 = load <2 x float>, ptr %36, align 4
  %38 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %5, i32 0, i32 1
  %39 = load <2 x float>, ptr %38, align 4
  %40 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %35, <2 x float> %37, <2 x float> %39)
  br i1 %40, label %41, label %54

41:                                               ; preds = %33
  %42 = call zeroext i1 @IsMouseButtonDown(i32 noundef 0)
  br i1 %42, label %43, label %44

43:                                               ; preds = %41
  store i32 2, ptr %8, align 4, !tbaa !11
  br label %53

44:                                               ; preds = %41
  %45 = call zeroext i1 @IsMouseButtonReleased(i32 noundef 0)
  br i1 %45, label %46, label %51

46:                                               ; preds = %44
  store i32 0, ptr %8, align 4, !tbaa !11
  %47 = load i8, ptr %7, align 1, !tbaa !9, !range !13, !noundef !14
  %48 = trunc i8 %47 to i1
  %49 = xor i1 %48, true
  %50 = zext i1 %49 to i8
  store i8 %50, ptr %7, align 1, !tbaa !9
  br label %52

51:                                               ; preds = %44
  store i32 1, ptr %8, align 4, !tbaa !11
  br label %52

52:                                               ; preds = %51, %46
  br label %53

53:                                               ; preds = %52, %43
  br label %54

54:                                               ; preds = %53, %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %55

55:                                               ; preds = %54, %30, %4
  %56 = load i32, ptr %8, align 4, !tbaa !11
  %57 = icmp eq i32 %56, 0
  br i1 %57, label %58, label %124

58:                                               ; preds = %55
  %59 = call i32 @GuiGetStyle(i32 noundef 3, i32 noundef 12)
  %60 = load i8, ptr %7, align 1, !tbaa !9, !range !13, !noundef !14
  %61 = trunc i8 %60 to i1
  br i1 %61, label %62, label %63

62:                                               ; preds = %58
  br label %67

63:                                               ; preds = %58
  %64 = load i32, ptr %8, align 4, !tbaa !11
  %65 = mul i32 %64, 3
  %66 = add i32 0, %65
  br label %67

67:                                               ; preds = %63, %62
  %68 = phi i32 [ 6, %62 ], [ %66, %63 ]
  %69 = call i32 @GuiGetStyle(i32 noundef 3, i32 noundef %68)
  %70 = call i32 @GetColor(i32 noundef %69)
  store i32 %70, ptr %11, align 1
  %71 = load float, ptr @guiAlpha, align 4, !tbaa !15
  %72 = load i32, ptr %11, align 1
  %73 = call i32 @Fade(i32 %72, float noundef %71)
  store i32 %73, ptr %10, align 1
  %74 = load i8, ptr %7, align 1, !tbaa !9, !range !13, !noundef !14
  %75 = trunc i8 %74 to i1
  br i1 %75, label %76, label %77

76:                                               ; preds = %67
  br label %81

77:                                               ; preds = %67
  %78 = load i32, ptr %8, align 4, !tbaa !11
  %79 = mul i32 %78, 3
  %80 = add i32 1, %79
  br label %81

81:                                               ; preds = %77, %76
  %82 = phi i32 [ 7, %76 ], [ %80, %77 ]
  %83 = call i32 @GuiGetStyle(i32 noundef 3, i32 noundef %82)
  %84 = call i32 @GetColor(i32 noundef %83)
  store i32 %84, ptr %13, align 1
  %85 = load float, ptr @guiAlpha, align 4, !tbaa !15
  %86 = load i32, ptr %13, align 1
  %87 = call i32 @Fade(i32 %86, float noundef %85)
  store i32 %87, ptr %12, align 1
  %88 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %5, i32 0, i32 0
  %89 = load <2 x float>, ptr %88, align 4
  %90 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %5, i32 0, i32 1
  %91 = load <2 x float>, ptr %90, align 4
  %92 = load i32, ptr %10, align 1
  %93 = load i32, ptr %12, align 1
  call void @GuiDrawRectangle(<2 x float> %89, <2 x float> %91, i32 noundef %59, i32 %92, i32 %93)
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %5, i32 0, i32 0
  %96 = load <2 x float>, ptr %95, align 4
  %97 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %5, i32 0, i32 1
  %98 = load <2 x float>, ptr %97, align 4
  %99 = call { <2 x float>, <2 x float> } @GetTextBounds(i32 noundef 3, <2 x float> %96, <2 x float> %98)
  %100 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %14, i32 0, i32 0
  %101 = extractvalue { <2 x float>, <2 x float> } %99, 0
  store <2 x float> %101, ptr %100, align 4
  %102 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %14, i32 0, i32 1
  %103 = extractvalue { <2 x float>, <2 x float> } %99, 1
  store <2 x float> %103, ptr %102, align 4
  %104 = call i32 @GuiGetStyle(i32 noundef 3, i32 noundef 14)
  %105 = load i8, ptr %7, align 1, !tbaa !9, !range !13, !noundef !14
  %106 = trunc i8 %105 to i1
  br i1 %106, label %107, label %108

107:                                              ; preds = %81
  br label %112

108:                                              ; preds = %81
  %109 = load i32, ptr %8, align 4, !tbaa !11
  %110 = mul i32 %109, 3
  %111 = add i32 2, %110
  br label %112

112:                                              ; preds = %108, %107
  %113 = phi i32 [ 8, %107 ], [ %111, %108 ]
  %114 = call i32 @GuiGetStyle(i32 noundef 3, i32 noundef %113)
  %115 = call i32 @GetColor(i32 noundef %114)
  store i32 %115, ptr %16, align 1
  %116 = load float, ptr @guiAlpha, align 4, !tbaa !15
  %117 = load i32, ptr %16, align 1
  %118 = call i32 @Fade(i32 %117, float noundef %116)
  store i32 %118, ptr %15, align 1
  %119 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %14, i32 0, i32 0
  %120 = load <2 x float>, ptr %119, align 4
  %121 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %14, i32 0, i32 1
  %122 = load <2 x float>, ptr %121, align 4
  %123 = load i32, ptr %15, align 1
  call void @GuiDrawText(ptr noundef %94, <2 x float> %120, <2 x float> %122, i32 noundef %104, i32 %123)
  br label %172

124:                                              ; preds = %55
  %125 = call i32 @GuiGetStyle(i32 noundef 3, i32 noundef 12)
  %126 = load i32, ptr %8, align 4, !tbaa !11
  %127 = mul i32 %126, 3
  %128 = add i32 0, %127
  %129 = call i32 @GuiGetStyle(i32 noundef 3, i32 noundef %128)
  %130 = call i32 @GetColor(i32 noundef %129)
  store i32 %130, ptr %18, align 1
  %131 = load float, ptr @guiAlpha, align 4, !tbaa !15
  %132 = load i32, ptr %18, align 1
  %133 = call i32 @Fade(i32 %132, float noundef %131)
  store i32 %133, ptr %17, align 1
  %134 = load i32, ptr %8, align 4, !tbaa !11
  %135 = mul i32 %134, 3
  %136 = add i32 1, %135
  %137 = call i32 @GuiGetStyle(i32 noundef 3, i32 noundef %136)
  %138 = call i32 @GetColor(i32 noundef %137)
  store i32 %138, ptr %20, align 1
  %139 = load float, ptr @guiAlpha, align 4, !tbaa !15
  %140 = load i32, ptr %20, align 1
  %141 = call i32 @Fade(i32 %140, float noundef %139)
  store i32 %141, ptr %19, align 1
  %142 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %5, i32 0, i32 0
  %143 = load <2 x float>, ptr %142, align 4
  %144 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %5, i32 0, i32 1
  %145 = load <2 x float>, ptr %144, align 4
  %146 = load i32, ptr %17, align 1
  %147 = load i32, ptr %19, align 1
  call void @GuiDrawRectangle(<2 x float> %143, <2 x float> %145, i32 noundef %125, i32 %146, i32 %147)
  %148 = load ptr, ptr %6, align 8, !tbaa !5
  %149 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %5, i32 0, i32 0
  %150 = load <2 x float>, ptr %149, align 4
  %151 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %5, i32 0, i32 1
  %152 = load <2 x float>, ptr %151, align 4
  %153 = call { <2 x float>, <2 x float> } @GetTextBounds(i32 noundef 3, <2 x float> %150, <2 x float> %152)
  %154 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %21, i32 0, i32 0
  %155 = extractvalue { <2 x float>, <2 x float> } %153, 0
  store <2 x float> %155, ptr %154, align 4
  %156 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %21, i32 0, i32 1
  %157 = extractvalue { <2 x float>, <2 x float> } %153, 1
  store <2 x float> %157, ptr %156, align 4
  %158 = call i32 @GuiGetStyle(i32 noundef 3, i32 noundef 14)
  %159 = load i32, ptr %8, align 4, !tbaa !11
  %160 = mul i32 %159, 3
  %161 = add i32 2, %160
  %162 = call i32 @GuiGetStyle(i32 noundef 3, i32 noundef %161)
  %163 = call i32 @GetColor(i32 noundef %162)
  store i32 %163, ptr %23, align 1
  %164 = load float, ptr @guiAlpha, align 4, !tbaa !15
  %165 = load i32, ptr %23, align 1
  %166 = call i32 @Fade(i32 %165, float noundef %164)
  store i32 %166, ptr %22, align 1
  %167 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %21, i32 0, i32 0
  %168 = load <2 x float>, ptr %167, align 4
  %169 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %21, i32 0, i32 1
  %170 = load <2 x float>, ptr %169, align 4
  %171 = load i32, ptr %22, align 1
  call void @GuiDrawText(ptr noundef %148, <2 x float> %168, <2 x float> %170, i32 noundef %158, i32 %171)
  br label %172

172:                                              ; preds = %124, %112
  %173 = load i8, ptr %7, align 1, !tbaa !9, !range !13, !noundef !14
  %174 = trunc i8 %173 to i1
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  ret i1 %174
}

attributes #0 = { 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 = !{!"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 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !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"

@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: 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
declare hidden void @GuiDrawText(ptr noundef, <2 x float>, <2 x float>, i32 noundef, i32) local_unnamed_addr #1

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

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

; Function Attrs: nounwind 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 @guiState, align 4, !tbaa !5
  %.not = icmp eq i32 %5, 3
  br i1 %.not, label %.thread, label %6

6:                                                ; preds = %4
  %7 = load i8, ptr @guiLocked, 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() #3
  %11 = tail call zeroext i1 @CheckCollisionPointRec(<2 x float> %10, <2 x float> %0, <2 x float> %1) #3
  br i1 %11, label %12, label %17

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

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

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

.thread48:                                        ; preds = %14, %17
  %.151 = phi i1 [ %3, %17 ], [ %16, %14 ]
  %19 = tail call i32 @GuiGetStyle(i32 noundef 3, i32 noundef 12)
  %20 = select i1 %.151, i32 6, i32 0
  %21 = tail call i32 @GuiGetStyle(i32 noundef 3, i32 noundef %20)
  %22 = tail call i32 @GetColor(i32 noundef %21) #3
  %23 = load float, ptr @guiAlpha, align 4, !tbaa !13
  %24 = tail call i32 @Fade(i32 %22, float noundef %23) #3
  %25 = select i1 %.151, i32 7, i32 1
  %26 = tail call i32 @GuiGetStyle(i32 noundef 3, i32 noundef %25)
  %27 = tail call i32 @GetColor(i32 noundef %26) #3
  %28 = load float, ptr @guiAlpha, align 4, !tbaa !13
  %29 = tail call i32 @Fade(i32 %27, float noundef %28) #3
  tail call void @GuiDrawRectangle(<2 x float> %0, <2 x float> %1, i32 noundef %19, i32 %24, i32 %29)
  %30 = tail call { <2 x float>, <2 x float> } @GetTextBounds(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 %.151, i32 8, i32 2
  %35 = tail call i32 @GuiGetStyle(i32 noundef 3, i32 noundef %34)
  %36 = tail call i32 @GetColor(i32 noundef %35) #3
  %37 = load float, ptr @guiAlpha, align 4, !tbaa !13
  %38 = tail call i32 @Fade(i32 %36, float noundef %37) #3
  tail call void @GuiDrawText(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
  %.13945 = phi i32 [ %5, %17 ], [ 1, %14 ], [ 2, %12 ], [ 3, %4 ]
  %39 = tail call i32 @GuiGetStyle(i32 noundef 3, i32 noundef 12)
  %40 = mul i32 %.13945, 3
  %41 = tail call i32 @GuiGetStyle(i32 noundef 3, i32 noundef %40)
  %42 = tail call i32 @GetColor(i32 noundef %41) #3
  %43 = load float, ptr @guiAlpha, align 4, !tbaa !13
  %44 = tail call i32 @Fade(i32 %42, float noundef %43) #3
  %45 = add i32 %40, 1
  %46 = tail call i32 @GuiGetStyle(i32 noundef 3, i32 noundef %45)
  %47 = tail call i32 @GetColor(i32 noundef %46) #3
  %48 = load float, ptr @guiAlpha, align 4, !tbaa !13
  %49 = tail call i32 @Fade(i32 %47, float noundef %48) #3
  tail call void @GuiDrawRectangle(<2 x float> %0, <2 x float> %1, i32 noundef %39, i32 %44, i32 %49)
  %50 = tail call { <2 x float>, <2 x float> } @GetTextBounds(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 i32 %40, 2
  %55 = tail call i32 @GuiGetStyle(i32 noundef 3, i32 noundef %54)
  %56 = tail call i32 @GetColor(i32 noundef %55) #3
  %57 = load float, ptr @guiAlpha, align 4, !tbaa !13
  %58 = tail call i32 @Fade(i32 %56, float noundef %57) #3
  tail call void @GuiDrawText(ptr noundef %2, <2 x float> %51, <2 x float> %52, i32 noundef %53, i32 %58)
  br label %59

59:                                               ; preds = %.thread, %.thread48
  %.146 = phi i1 [ %3, %.thread ], [ %.151, %.thread48 ]
  ret i1 %.146
}

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 = { 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,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass