; LLVM IR from modlfo/AudioEngine :: AudioEngine/JuceLibraryCode (juce_gui_basics)

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

%"class.juce::Colour" = type { %"class.juce::PixelARGB" }
%"class.juce::PixelARGB" = type { %union.anon.77 }
%union.anon.77 = type { i32 }

declare i32 @__gxx_personality_v0(...)

; 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: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce9Component16hasKeyboardFocusEb(ptr noundef nonnull align 8 dereferenceable(197), i1 noundef zeroext) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind noalias writable sret(%"class.juce::Colour") align 1, ptr noundef nonnull align 8 dereferenceable(197), i32 noundef, i1 noundef zeroext) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce9Component9isEnabledEv(ptr noundef nonnull align 8 dereferenceable(197)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce9Component17isMouseButtonDownEv(ptr noundef nonnull align 8 dereferenceable(197)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce9Component21isMouseOverOrDraggingEb(ptr noundef nonnull align 8 dereferenceable(197), i1 noundef zeroext) #2 align 2

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

; Function Attrs: nounwind
declare void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4)) unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN4juce4jmaxIfEET_S1_S1_(float noundef, float noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN4juce4jminIfEET_S1_S1_(float noundef, float noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN4juce18LookAndFeelHelpersL16createBaseColourENS_6ColourEbbb(ptr dead_on_unwind noalias writable sret(%"class.juce::Colour") align 1, ptr noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce14LookAndFeel_V215drawGlassSphereERNS_8GraphicsEfffRKNS_6ColourEf(ptr noundef nonnull align 8 dereferenceable(17), float noundef, float noundef, float noundef, ptr noundef nonnull align 1 dereferenceable(4), float noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce14LookAndFeel_V221drawLinearSliderThumbERNS_8GraphicsEiiiifffNS_6Slider11SliderStyleERS3_(ptr noundef nonnull align 8 dereferenceable(304) %0, ptr noundef nonnull align 8 dereferenceable(17) %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, float noundef %6, float noundef %7, float noundef %8, i32 noundef %9, ptr noundef nonnull align 8 dereferenceable(224) %10) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca float, align 4
  %24 = alloca %"class.juce::Colour", align 1
  %25 = alloca %"class.juce::Colour", align 1
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca float, align 4
  %29 = alloca float, align 4
  %30 = alloca float, align 4
  %31 = alloca float, align 4
  %32 = alloca float, align 4
  store ptr %0, ptr %12, align 8, !tbaa !5
  store ptr %1, ptr %13, align 8, !tbaa !5
  store i32 %2, ptr %14, align 4, !tbaa !9
  store i32 %3, ptr %15, align 4, !tbaa !9
  store i32 %4, ptr %16, align 4, !tbaa !9
  store i32 %5, ptr %17, align 4, !tbaa !9
  store float %6, ptr %18, align 4, !tbaa !11
  store float %7, ptr %19, align 4, !tbaa !11
  store float %8, ptr %20, align 4, !tbaa !11
  store i32 %9, ptr %21, align 4, !tbaa !13
  store ptr %10, ptr %22, align 8, !tbaa !5
  %33 = load ptr, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %34 = load ptr, ptr %22, align 8, !tbaa !5
  %35 = load ptr, ptr %33, align 8, !tbaa !15
  %36 = getelementptr inbounds ptr, ptr %35, i64 72
  %37 = load ptr, ptr %36, align 8
  %38 = call noundef i32 %37(ptr noundef nonnull align 8 dereferenceable(304) %33, ptr noundef nonnull align 8 dereferenceable(224) %34)
  %39 = sub nsw i32 %38, 2
  %40 = sitofp i32 %39 to float
  store float %40, ptr %23, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  %41 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %25, ptr noundef nonnull align 8 dereferenceable(197) %41, i32 noundef 16782080, i1 noundef zeroext false)
  %42 = load ptr, ptr %22, align 8, !tbaa !5
  %43 = call noundef zeroext i1 @_ZNK4juce9Component16hasKeyboardFocusEb(ptr noundef nonnull align 8 dereferenceable(197) %42, i1 noundef zeroext false)
  br i1 %43, label %44, label %47

44:                                               ; preds = %11
  %45 = load ptr, ptr %22, align 8, !tbaa !5
  %46 = call noundef zeroext i1 @_ZNK4juce9Component9isEnabledEv(ptr noundef nonnull align 8 dereferenceable(197) %45) #5
  br label %47

47:                                               ; preds = %44, %11
  %48 = phi i1 [ false, %11 ], [ %46, %44 ]
  %49 = load ptr, ptr %22, align 8, !tbaa !5
  %50 = invoke noundef zeroext i1 @_ZNK4juce9Component21isMouseOverOrDraggingEb(ptr noundef nonnull align 8 dereferenceable(197) %49, i1 noundef zeroext false)
          to label %51 unwind label %84

51:                                               ; preds = %47
  br i1 %50, label %52, label %55

52:                                               ; preds = %51
  %53 = load ptr, ptr %22, align 8, !tbaa !5
  %54 = call noundef zeroext i1 @_ZNK4juce9Component9isEnabledEv(ptr noundef nonnull align 8 dereferenceable(197) %53) #5
  br label %55

55:                                               ; preds = %52, %51
  %56 = phi i1 [ false, %51 ], [ %54, %52 ]
  %57 = load ptr, ptr %22, align 8, !tbaa !5
  %58 = invoke noundef zeroext i1 @_ZNK4juce9Component17isMouseButtonDownEv(ptr noundef nonnull align 8 dereferenceable(197) %57)
          to label %59 unwind label %84

59:                                               ; preds = %55
  br i1 %58, label %60, label %63

60:                                               ; preds = %59
  %61 = load ptr, ptr %22, align 8, !tbaa !5
  %62 = call noundef zeroext i1 @_ZNK4juce9Component9isEnabledEv(ptr noundef nonnull align 8 dereferenceable(197) %61) #5
  br label %63

63:                                               ; preds = %60, %59
  %64 = phi i1 [ false, %59 ], [ %62, %60 ]
  call void @_ZN4juce18LookAndFeelHelpersL16createBaseColourENS_6ColourEbbb(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %24, ptr noundef %25, i1 noundef zeroext %48, i1 noundef zeroext %56, i1 noundef zeroext %64) #5
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %25) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  %65 = load ptr, ptr %22, align 8, !tbaa !5
  %66 = call noundef zeroext i1 @_ZNK4juce9Component9isEnabledEv(ptr noundef nonnull align 8 dereferenceable(197) %65) #5
  %67 = zext i1 %66 to i64
  %68 = select i1 %66, float 0x3FE99999A0000000, float 0x3FD3333340000000
  store float %68, ptr %28, align 4, !tbaa !11
  %69 = load i32, ptr %21, align 4, !tbaa !13
  %70 = icmp eq i32 %69, 0
  br i1 %70, label %74, label %71

71:                                               ; preds = %63
  %72 = load i32, ptr %21, align 4, !tbaa !13
  %73 = icmp eq i32 %72, 1
  br i1 %73, label %74, label %106

74:                                               ; preds = %71, %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  %75 = load i32, ptr %21, align 4, !tbaa !13
  %76 = icmp eq i32 %75, 1
  br i1 %76, label %77, label %88

77:                                               ; preds = %74
  %78 = load i32, ptr %14, align 4, !tbaa !9
  %79 = sitofp i32 %78 to float
  %80 = load i32, ptr %16, align 4, !tbaa !9
  %81 = sitofp i32 %80 to float
  %82 = call float @llvm.fmuladd.f32(float %81, float 5.000000e-01, float %79)
  store float %82, ptr %29, align 4, !tbaa !11
  %83 = load float, ptr %18, align 4, !tbaa !11
  store float %83, ptr %30, align 4, !tbaa !11
  br label %95

84:                                               ; preds = %55, %47
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %26, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %27, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %25) #5
  br label %257

88:                                               ; preds = %74
  %89 = load float, ptr %18, align 4, !tbaa !11
  store float %89, ptr %29, align 4, !tbaa !11
  %90 = load i32, ptr %15, align 4, !tbaa !9
  %91 = sitofp i32 %90 to float
  %92 = load i32, ptr %17, align 4, !tbaa !9
  %93 = sitofp i32 %92 to float
  %94 = call float @llvm.fmuladd.f32(float %93, float 5.000000e-01, float %91)
  store float %94, ptr %30, align 4, !tbaa !11
  br label %95

95:                                               ; preds = %88, %77
  %96 = load ptr, ptr %13, align 8, !tbaa !5
  %97 = load float, ptr %29, align 4, !tbaa !11
  %98 = load float, ptr %23, align 4, !tbaa !11
  %99 = fsub float %97, %98
  %100 = load float, ptr %30, align 4, !tbaa !11
  %101 = load float, ptr %23, align 4, !tbaa !11
  %102 = fsub float %100, %101
  %103 = load float, ptr %23, align 4, !tbaa !11
  %104 = fmul float %103, 2.000000e+00
  %105 = load float, ptr %28, align 4, !tbaa !11
  call void @_ZN4juce14LookAndFeel_V215drawGlassSphereERNS_8GraphicsEfffRKNS_6ColourEf(ptr noundef nonnull align 8 dereferenceable(17) %96, float noundef %99, float noundef %102, float noundef %104, ptr noundef nonnull align 1 dereferenceable(4) %24, float noundef %105) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  br label %255

106:                                              ; preds = %71
  %107 = load i32, ptr %21, align 4, !tbaa !13
  %108 = icmp eq i32 %107, 12
  br i1 %108, label %109, label %124

109:                                              ; preds = %106
  %110 = load ptr, ptr %13, align 8, !tbaa !5
  %111 = load i32, ptr %14, align 4, !tbaa !9
  %112 = sitofp i32 %111 to float
  %113 = load i32, ptr %16, align 4, !tbaa !9
  %114 = sitofp i32 %113 to float
  %115 = call float @llvm.fmuladd.f32(float %114, float 5.000000e-01, float %112)
  %116 = load float, ptr %23, align 4, !tbaa !11
  %117 = fsub float %115, %116
  %118 = load float, ptr %18, align 4, !tbaa !11
  %119 = load float, ptr %23, align 4, !tbaa !11
  %120 = fsub float %118, %119
  %121 = load float, ptr %23, align 4, !tbaa !11
  %122 = fmul float %121, 2.000000e+00
  %123 = load float, ptr %28, align 4, !tbaa !11
  call void @_ZN4juce14LookAndFeel_V215drawGlassSphereERNS_8GraphicsEfffRKNS_6ColourEf(ptr noundef nonnull align 8 dereferenceable(17) %110, float noundef %117, float noundef %120, float noundef %122, ptr noundef nonnull align 1 dereferenceable(4) %24, float noundef %123) #5
  br label %143

124:                                              ; preds = %106
  %125 = load i32, ptr %21, align 4, !tbaa !13
  %126 = icmp eq i32 %125, 11
  br i1 %126, label %127, label %142

127:                                              ; preds = %124
  %128 = load ptr, ptr %13, align 8, !tbaa !5
  %129 = load float, ptr %18, align 4, !tbaa !11
  %130 = load float, ptr %23, align 4, !tbaa !11
  %131 = fsub float %129, %130
  %132 = load i32, ptr %15, align 4, !tbaa !9
  %133 = sitofp i32 %132 to float
  %134 = load i32, ptr %17, align 4, !tbaa !9
  %135 = sitofp i32 %134 to float
  %136 = call float @llvm.fmuladd.f32(float %135, float 5.000000e-01, float %133)
  %137 = load float, ptr %23, align 4, !tbaa !11
  %138 = fsub float %136, %137
  %139 = load float, ptr %23, align 4, !tbaa !11
  %140 = fmul float %139, 2.000000e+00
  %141 = load float, ptr %28, align 4, !tbaa !11
  call void @_ZN4juce14LookAndFeel_V215drawGlassSphereERNS_8GraphicsEfffRKNS_6ColourEf(ptr noundef nonnull align 8 dereferenceable(17) %128, float noundef %131, float noundef %138, float noundef %140, ptr noundef nonnull align 1 dereferenceable(4) %24, float noundef %141) #5
  br label %142

142:                                              ; preds = %127, %124
  br label %143

143:                                              ; preds = %142, %109
  %144 = load i32, ptr %21, align 4, !tbaa !13
  %145 = icmp eq i32 %144, 10
  br i1 %145, label %149, label %146

146:                                              ; preds = %143
  %147 = load i32, ptr %21, align 4, !tbaa !13
  %148 = icmp eq i32 %147, 12
  br i1 %148, label %149, label %198

149:                                              ; preds = %146, %143
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #5
  %150 = load float, ptr %23, align 4, !tbaa !11
  %151 = load i32, ptr %16, align 4, !tbaa !9
  %152 = sitofp i32 %151 to float
  %153 = fmul float %152, 0x3FD99999A0000000
  %154 = invoke noundef float @_ZN4juce4jminIfEET_S1_S1_(float noundef %150, float noundef %153)
          to label %155 unwind label %194

155:                                              ; preds = %149
  store float %154, ptr %31, align 4, !tbaa !11
  %156 = load ptr, ptr %13, align 8, !tbaa !5
  %157 = load i32, ptr %14, align 4, !tbaa !9
  %158 = sitofp i32 %157 to float
  %159 = load i32, ptr %16, align 4, !tbaa !9
  %160 = sitofp i32 %159 to float
  %161 = call float @llvm.fmuladd.f32(float %160, float 5.000000e-01, float %158)
  %162 = load float, ptr %23, align 4, !tbaa !11
  %163 = fneg float %162
  %164 = call float @llvm.fmuladd.f32(float %163, float 2.000000e+00, float %161)
  %165 = invoke noundef float @_ZN4juce4jmaxIfEET_S1_S1_(float noundef 0.000000e+00, float noundef %164)
          to label %166 unwind label %194

166:                                              ; preds = %155
  %167 = load float, ptr %19, align 4, !tbaa !11
  %168 = load float, ptr %23, align 4, !tbaa !11
  %169 = fsub float %167, %168
  %170 = load float, ptr %23, align 4, !tbaa !11
  %171 = fmul float %170, 2.000000e+00
  %172 = load float, ptr %28, align 4, !tbaa !11
  call void @_ZN4juce14LookAndFeel_V216drawGlassPointerERNS_8GraphicsEfffRKNS_6ColourEfi(ptr noundef nonnull align 8 dereferenceable(17) %156, float noundef %165, float noundef %169, float noundef %171, ptr noundef nonnull align 1 dereferenceable(4) %24, float noundef %172, i32 noundef 1) #5
  %173 = load ptr, ptr %13, align 8, !tbaa !5
  %174 = load i32, ptr %14, align 4, !tbaa !9
  %175 = load i32, ptr %16, align 4, !tbaa !9
  %176 = add nsw i32 %174, %175
  %177 = sitofp i32 %176 to float
  %178 = load float, ptr %23, align 4, !tbaa !11
  %179 = fneg float %178
  %180 = call float @llvm.fmuladd.f32(float %179, float 2.000000e+00, float %177)
  %181 = load i32, ptr %14, align 4, !tbaa !9
  %182 = sitofp i32 %181 to float
  %183 = load i32, ptr %16, align 4, !tbaa !9
  %184 = sitofp i32 %183 to float
  %185 = call float @llvm.fmuladd.f32(float %184, float 5.000000e-01, float %182)
  %186 = invoke noundef float @_ZN4juce4jminIfEET_S1_S1_(float noundef %180, float noundef %185)
          to label %187 unwind label %194

187:                                              ; preds = %166
  %188 = load float, ptr %20, align 4, !tbaa !11
  %189 = load float, ptr %31, align 4, !tbaa !11
  %190 = fsub float %188, %189
  %191 = load float, ptr %23, align 4, !tbaa !11
  %192 = fmul float %191, 2.000000e+00
  %193 = load float, ptr %28, align 4, !tbaa !11
  call void @_ZN4juce14LookAndFeel_V216drawGlassPointerERNS_8GraphicsEfffRKNS_6ColourEfi(ptr noundef nonnull align 8 dereferenceable(17) %173, float noundef %186, float noundef %190, float noundef %192, ptr noundef nonnull align 1 dereferenceable(4) %24, float noundef %193, i32 noundef 3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  br label %254

194:                                              ; preds = %166, %155, %149
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %26, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  br label %256

198:                                              ; preds = %146
  %199 = load i32, ptr %21, align 4, !tbaa !13
  %200 = icmp eq i32 %199, 9
  br i1 %200, label %204, label %201

201:                                              ; preds = %198
  %202 = load i32, ptr %21, align 4, !tbaa !13
  %203 = icmp eq i32 %202, 11
  br i1 %203, label %204, label %253

204:                                              ; preds = %201, %198
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #5
  %205 = load float, ptr %23, align 4, !tbaa !11
  %206 = load i32, ptr %17, align 4, !tbaa !9
  %207 = sitofp i32 %206 to float
  %208 = fmul float %207, 0x3FD99999A0000000
  %209 = invoke noundef float @_ZN4juce4jminIfEET_S1_S1_(float noundef %205, float noundef %208)
          to label %210 unwind label %249

210:                                              ; preds = %204
  store float %209, ptr %32, align 4, !tbaa !11
  %211 = load ptr, ptr %13, align 8, !tbaa !5
  %212 = load float, ptr %19, align 4, !tbaa !11
  %213 = load float, ptr %32, align 4, !tbaa !11
  %214 = fsub float %212, %213
  %215 = load i32, ptr %15, align 4, !tbaa !9
  %216 = sitofp i32 %215 to float
  %217 = load i32, ptr %17, align 4, !tbaa !9
  %218 = sitofp i32 %217 to float
  %219 = call float @llvm.fmuladd.f32(float %218, float 5.000000e-01, float %216)
  %220 = load float, ptr %23, align 4, !tbaa !11
  %221 = fneg float %220
  %222 = call float @llvm.fmuladd.f32(float %221, float 2.000000e+00, float %219)
  %223 = invoke noundef float @_ZN4juce4jmaxIfEET_S1_S1_(float noundef 0.000000e+00, float noundef %222)
          to label %224 unwind label %249

224:                                              ; preds = %210
  %225 = load float, ptr %23, align 4, !tbaa !11
  %226 = fmul float %225, 2.000000e+00
  %227 = load float, ptr %28, align 4, !tbaa !11
  call void @_ZN4juce14LookAndFeel_V216drawGlassPointerERNS_8GraphicsEfffRKNS_6ColourEfi(ptr noundef nonnull align 8 dereferenceable(17) %211, float noundef %214, float noundef %223, float noundef %226, ptr noundef nonnull align 1 dereferenceable(4) %24, float noundef %227, i32 noundef 2) #5
  %228 = load ptr, ptr %13, align 8, !tbaa !5
  %229 = load float, ptr %20, align 4, !tbaa !11
  %230 = load float, ptr %23, align 4, !tbaa !11
  %231 = fsub float %229, %230
  %232 = load i32, ptr %15, align 4, !tbaa !9
  %233 = load i32, ptr %17, align 4, !tbaa !9
  %234 = add nsw i32 %232, %233
  %235 = sitofp i32 %234 to float
  %236 = load float, ptr %23, align 4, !tbaa !11
  %237 = fneg float %236
  %238 = call float @llvm.fmuladd.f32(float %237, float 2.000000e+00, float %235)
  %239 = load i32, ptr %15, align 4, !tbaa !9
  %240 = sitofp i32 %239 to float
  %241 = load i32, ptr %17, align 4, !tbaa !9
  %242 = sitofp i32 %241 to float
  %243 = call float @llvm.fmuladd.f32(float %242, float 5.000000e-01, float %240)
  %244 = invoke noundef float @_ZN4juce4jminIfEET_S1_S1_(float noundef %238, float noundef %243)
          to label %245 unwind label %249

245:                                              ; preds = %224
  %246 = load float, ptr %23, align 4, !tbaa !11
  %247 = fmul float %246, 2.000000e+00
  %248 = load float, ptr %28, align 4, !tbaa !11
  call void @_ZN4juce14LookAndFeel_V216drawGlassPointerERNS_8GraphicsEfffRKNS_6ColourEfi(ptr noundef nonnull align 8 dereferenceable(17) %228, float noundef %231, float noundef %244, float noundef %247, ptr noundef nonnull align 1 dereferenceable(4) %24, float noundef %248, i32 noundef 4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #5
  br label %253

249:                                              ; preds = %224, %210, %204
  %250 = landingpad { ptr, i32 }
          cleanup
  %251 = extractvalue { ptr, i32 } %250, 0
  store ptr %251, ptr %26, align 8
  %252 = extractvalue { ptr, i32 } %250, 1
  store i32 %252, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #5
  br label %256

253:                                              ; preds = %245, %201
  br label %254

254:                                              ; preds = %253, %187
  br label %255

255:                                              ; preds = %254, %95
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  ret void

256:                                              ; preds = %249, %194
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %24) #5
  br label %257

257:                                              ; preds = %256, %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %258

258:                                              ; preds = %257
  %259 = load ptr, ptr %26, align 8
  %260 = load i32, ptr %27, align 4
  %261 = insertvalue { ptr, i32 } poison, ptr %259, 0
  %262 = insertvalue { ptr, i32 } %261, i32 %260, 1
  resume { ptr, i32 } %262
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce14LookAndFeel_V216drawGlassPointerERNS_8GraphicsEfffRKNS_6ColourEfi(ptr noundef nonnull align 8 dereferenceable(17), float noundef, float noundef, float noundef, ptr noundef nonnull align 1 dereferenceable(4), float noundef, i32 noundef) #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind "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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTSN4juce6Slider11SliderStyleE", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, 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"

%"class.juce::Colour" = type { %"class.juce::PixelARGB" }
%"class.juce::PixelARGB" = type { %union.anon.77 }
%union.anon.77 = type { i32 }

declare i32 @__gxx_personality_v0(...)

; 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: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce9Component16hasKeyboardFocusEb(ptr noundef nonnull align 8 dereferenceable(197), i1 noundef zeroext) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind noalias writable sret(%"class.juce::Colour") align 1, ptr noundef nonnull align 8 dereferenceable(197), i32 noundef, i1 noundef zeroext) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce9Component9isEnabledEv(ptr noundef nonnull align 8 dereferenceable(197)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce9Component17isMouseButtonDownEv(ptr noundef nonnull align 8 dereferenceable(197)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce9Component21isMouseOverOrDraggingEb(ptr noundef nonnull align 8 dereferenceable(197), i1 noundef zeroext) local_unnamed_addr #2 align 2

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

; Function Attrs: nounwind
declare void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4)) unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN4juce4jmaxIfEET_S1_S1_(float noundef, float noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN4juce4jminIfEET_S1_S1_(float noundef, float noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN4juce18LookAndFeelHelpersL16createBaseColourENS_6ColourEbbb(ptr dead_on_unwind noalias writable sret(%"class.juce::Colour") align 1, ptr noundef, i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce14LookAndFeel_V215drawGlassSphereERNS_8GraphicsEfffRKNS_6ColourEf(ptr noundef nonnull align 8 dereferenceable(17), float noundef, float noundef, float noundef, ptr noundef nonnull align 1 dereferenceable(4), float noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce14LookAndFeel_V221drawLinearSliderThumbERNS_8GraphicsEiiiifffNS_6Slider11SliderStyleERS3_(ptr noundef nonnull align 8 dereferenceable(304) %0, ptr noundef nonnull align 8 dereferenceable(17) %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, float noundef %6, float noundef %7, float noundef %8, i32 noundef %9, ptr noundef nonnull align 8 dereferenceable(224) %10) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %12 = alloca %"class.juce::Colour", align 1
  %13 = alloca %"class.juce::Colour", align 1
  %14 = load ptr, ptr %0, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %14, i64 576
  %16 = load ptr, ptr %15, align 8
  %17 = tail call noundef i32 %16(ptr noundef nonnull align 8 dereferenceable(304) %0, ptr noundef nonnull align 8 dereferenceable(224) %10)
  %18 = add nsw i32 %17, -2
  %19 = sitofp i32 %18 to float
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  call void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %13, ptr noundef nonnull align 8 dereferenceable(197) %10, i32 noundef 16782080, i1 noundef zeroext false)
  %20 = call noundef zeroext i1 @_ZNK4juce9Component16hasKeyboardFocusEb(ptr noundef nonnull align 8 dereferenceable(197) %10, i1 noundef zeroext false)
  br i1 %20, label %21, label %23

21:                                               ; preds = %11
  %22 = call noundef zeroext i1 @_ZNK4juce9Component9isEnabledEv(ptr noundef nonnull align 8 dereferenceable(197) %10) #5
  br label %23

23:                                               ; preds = %21, %11
  %24 = phi i1 [ false, %11 ], [ %22, %21 ]
  %25 = invoke noundef zeroext i1 @_ZNK4juce9Component21isMouseOverOrDraggingEb(ptr noundef nonnull align 8 dereferenceable(197) %10, i1 noundef zeroext false)
          to label %26 unwind label %45

26:                                               ; preds = %23
  br i1 %25, label %27, label %29

27:                                               ; preds = %26
  %28 = call noundef zeroext i1 @_ZNK4juce9Component9isEnabledEv(ptr noundef nonnull align 8 dereferenceable(197) %10) #5
  br label %29

29:                                               ; preds = %27, %26
  %30 = phi i1 [ false, %26 ], [ %28, %27 ]
  %31 = invoke noundef zeroext i1 @_ZNK4juce9Component17isMouseButtonDownEv(ptr noundef nonnull align 8 dereferenceable(197) %10)
          to label %32 unwind label %45

32:                                               ; preds = %29
  br i1 %31, label %33, label %35

33:                                               ; preds = %32
  %34 = call noundef zeroext i1 @_ZNK4juce9Component9isEnabledEv(ptr noundef nonnull align 8 dereferenceable(197) %10) #5
  br label %35

35:                                               ; preds = %33, %32
  %36 = phi i1 [ false, %32 ], [ %34, %33 ]
  call void @_ZN4juce18LookAndFeelHelpersL16createBaseColourENS_6ColourEbbb(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %12, ptr noundef nonnull %13, i1 noundef zeroext %24, i1 noundef zeroext %30, i1 noundef zeroext %36) #5
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %13) #5
  %37 = call noundef zeroext i1 @_ZNK4juce9Component9isEnabledEv(ptr noundef nonnull align 8 dereferenceable(197) %10) #5
  %38 = select i1 %37, float 0x3FE99999A0000000, float 0x3FD3333340000000
  %or.cond = icmp ult i32 %9, 2
  br i1 %or.cond, label %39, label %55

39:                                               ; preds = %35
  %40 = icmp eq i32 %9, 1
  br i1 %40, label %41, label %47

41:                                               ; preds = %39
  %42 = sitofp i32 %2 to float
  %43 = sitofp i32 %4 to float
  %44 = call float @llvm.fmuladd.f32(float %43, float 5.000000e-01, float %42)
  br label %51

45:                                               ; preds = %29, %23
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  resume { ptr, i32 } %46

47:                                               ; preds = %39
  %48 = sitofp i32 %3 to float
  %49 = sitofp i32 %5 to float
  %50 = call float @llvm.fmuladd.f32(float %49, float 5.000000e-01, float %48)
  br label %51

51:                                               ; preds = %47, %41
  %.094 = phi float [ %6, %41 ], [ %50, %47 ]
  %.0 = phi float [ %44, %41 ], [ %6, %47 ]
  %52 = fsub float %.0, %19
  %53 = fsub float %.094, %19
  %54 = fmul float %19, 2.000000e+00
  call void @_ZN4juce14LookAndFeel_V215drawGlassSphereERNS_8GraphicsEfffRKNS_6ColourEf(ptr noundef nonnull align 8 dereferenceable(17) %1, float noundef %52, float noundef %53, float noundef %54, ptr noundef nonnull align 1 dereferenceable(4) %12, float noundef %38) #5
  br label %95

55:                                               ; preds = %35
  switch i32 %9, label %81 [
    i32 12, label %62
    i32 11, label %.thread96
    i32 10, label %._crit_edge
  ]

._crit_edge:                                      ; preds = %55
  %.pre105 = sitofp i32 %4 to float
  %.pre107 = sitofp i32 %2 to float
  %.pre109 = call float @llvm.fmuladd.f32(float %.pre105, float 5.000000e-01, float %.pre107)
  %.pre111 = fmul float %19, 2.000000e+00
  br label %69

.thread96:                                        ; preds = %55
  %56 = fsub float %6, %19
  %57 = sitofp i32 %3 to float
  %58 = sitofp i32 %5 to float
  %59 = call float @llvm.fmuladd.f32(float %58, float 5.000000e-01, float %57)
  %60 = fsub float %59, %19
  %61 = fmul float %19, 2.000000e+00
  call void @_ZN4juce14LookAndFeel_V215drawGlassSphereERNS_8GraphicsEfffRKNS_6ColourEf(ptr noundef nonnull align 8 dereferenceable(17) %1, float noundef %56, float noundef %60, float noundef %61, ptr noundef nonnull align 1 dereferenceable(4) %12, float noundef %38) #5
  br label %83

62:                                               ; preds = %55
  %63 = sitofp i32 %2 to float
  %64 = sitofp i32 %4 to float
  %65 = call float @llvm.fmuladd.f32(float %64, float 5.000000e-01, float %63)
  %66 = fsub float %65, %19
  %67 = fsub float %6, %19
  %68 = fmul float %19, 2.000000e+00
  call void @_ZN4juce14LookAndFeel_V215drawGlassSphereERNS_8GraphicsEfffRKNS_6ColourEf(ptr noundef nonnull align 8 dereferenceable(17) %1, float noundef %66, float noundef %67, float noundef %68, ptr noundef nonnull align 1 dereferenceable(4) %12, float noundef %38) #5
  br label %69

69:                                               ; preds = %._crit_edge, %62
  %.pre-phi112 = phi float [ %.pre111, %._crit_edge ], [ %68, %62 ]
  %.pre-phi110 = phi float [ %.pre109, %._crit_edge ], [ %65, %62 ]
  %.pre-phi106 = phi float [ %.pre105, %._crit_edge ], [ %64, %62 ]
  %70 = fmul float %.pre-phi106, 0x3FD99999A0000000
  %71 = call noundef float @_ZN4juce4jminIfEET_S1_S1_(float noundef %19, float noundef %70)
  %72 = fneg float %19
  %73 = call float @llvm.fmuladd.f32(float %72, float 2.000000e+00, float %.pre-phi110)
  %74 = call noundef float @_ZN4juce4jmaxIfEET_S1_S1_(float noundef 0.000000e+00, float noundef %73)
  %75 = fsub float %7, %19
  call void @_ZN4juce14LookAndFeel_V216drawGlassPointerERNS_8GraphicsEfffRKNS_6ColourEfi(ptr noundef nonnull align 8 dereferenceable(17) %1, float noundef %74, float noundef %75, float noundef %.pre-phi112, ptr noundef nonnull align 1 dereferenceable(4) %12, float noundef %38, i32 noundef 1) #5
  %76 = add nsw i32 %4, %2
  %77 = sitofp i32 %76 to float
  %78 = call float @llvm.fmuladd.f32(float %72, float 2.000000e+00, float %77)
  %79 = call noundef float @_ZN4juce4jminIfEET_S1_S1_(float noundef %78, float noundef %.pre-phi110)
  %80 = fsub float %8, %71
  call void @_ZN4juce14LookAndFeel_V216drawGlassPointerERNS_8GraphicsEfffRKNS_6ColourEfi(ptr noundef nonnull align 8 dereferenceable(17) %1, float noundef %79, float noundef %80, float noundef %.pre-phi112, ptr noundef nonnull align 1 dereferenceable(4) %12, float noundef %38, i32 noundef 3) #5
  br label %95

81:                                               ; preds = %55
  %82 = and i32 %9, -3
  %or.cond5 = icmp eq i32 %82, 9
  br i1 %or.cond5, label %._crit_edge98, label %95

._crit_edge98:                                    ; preds = %81
  %.pre = sitofp i32 %5 to float
  %.pre99 = sitofp i32 %3 to float
  %.pre101 = call float @llvm.fmuladd.f32(float %.pre, float 5.000000e-01, float %.pre99)
  %.pre103 = fmul float %19, 2.000000e+00
  br label %83

83:                                               ; preds = %._crit_edge98, %.thread96
  %.pre-phi104 = phi float [ %.pre103, %._crit_edge98 ], [ %61, %.thread96 ]
  %.pre-phi102 = phi float [ %.pre101, %._crit_edge98 ], [ %59, %.thread96 ]
  %.pre-phi = phi float [ %.pre, %._crit_edge98 ], [ %58, %.thread96 ]
  %84 = fmul float %.pre-phi, 0x3FD99999A0000000
  %85 = call noundef float @_ZN4juce4jminIfEET_S1_S1_(float noundef %19, float noundef %84)
  %86 = fsub float %7, %85
  %87 = fneg float %19
  %88 = call float @llvm.fmuladd.f32(float %87, float 2.000000e+00, float %.pre-phi102)
  %89 = call noundef float @_ZN4juce4jmaxIfEET_S1_S1_(float noundef 0.000000e+00, float noundef %88)
  call void @_ZN4juce14LookAndFeel_V216drawGlassPointerERNS_8GraphicsEfffRKNS_6ColourEfi(ptr noundef nonnull align 8 dereferenceable(17) %1, float noundef %86, float noundef %89, float noundef %.pre-phi104, ptr noundef nonnull align 1 dereferenceable(4) %12, float noundef %38, i32 noundef 2) #5
  %90 = fsub float %8, %19
  %91 = add nsw i32 %5, %3
  %92 = sitofp i32 %91 to float
  %93 = call float @llvm.fmuladd.f32(float %87, float 2.000000e+00, float %92)
  %94 = call noundef float @_ZN4juce4jminIfEET_S1_S1_(float noundef %93, float noundef %.pre-phi102)
  call void @_ZN4juce14LookAndFeel_V216drawGlassPointerERNS_8GraphicsEfffRKNS_6ColourEfi(ptr noundef nonnull align 8 dereferenceable(17) %1, float noundef %90, float noundef %94, float noundef %.pre-phi104, ptr noundef nonnull align 1 dereferenceable(4) %12, float noundef %38, i32 noundef 4) #5
  br label %95

95:                                               ; preds = %69, %81, %83, %51
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce14LookAndFeel_V216drawGlassPointerERNS_8GraphicsEfffRKNS_6ColourEfi(ptr noundef nonnull align 8 dereferenceable(17), float noundef, float noundef, float noundef, ptr noundef nonnull align 1 dereferenceable(4), float noundef, i32 noundef) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 = { 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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind "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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass