; 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 }
%"class.juce::Path" = type <{ %"class.juce::ArrayAllocationBase.123", i64, %"struct.juce::Path::PathBounds", i8, [7 x i8] }>
%"class.juce::ArrayAllocationBase.123" = type <{ %"class.juce::HeapBlock.124", i32, [4 x i8] }>
%"class.juce::HeapBlock.124" = type { ptr }
%"struct.juce::Path::PathBounds" = type { float, float, float, float }
%"class.juce::PathStrokeType" = type { float, i32, i32 }
%"class.juce::AffineTransform" = type { float, float, float, float, float, float }

@_ZN4juce7Colours5blackE = external global %"class.juce::Colour", align 1
@_ZN4juce7Colours5whiteE = external global %"class.juce::Colour", align 1

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: nounwind
declare void @_ZN4juce15AffineTransformC1Ev(ptr noundef nonnull align 4 dereferenceable(24)) unnamed_addr #1

; 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

declare void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef) #3

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

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

declare void @_ZN4juce4PathC1Ev(ptr noundef nonnull align 8 dereferenceable(41)) unnamed_addr #3

declare void @_ZN4juce4Path11addTriangleEffffff(ptr noundef nonnull align 8 dereferenceable(41), float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) #3

; Function Attrs: nounwind
declare void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41)) unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1, ptr noundef nonnull align 1 dereferenceable(4), float noundef) #1

declare void @_ZNK4juce8Graphics8fillPathERKNS_4PathE(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(41)) #3

declare void @_ZNK4juce8Graphics10strokePathERKNS_4PathERKNS_14PathStrokeTypeERKNS_15AffineTransformE(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(41), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(24)) #3

; Function Attrs: nounwind
declare void @_ZN4juce14PathStrokeTypeC1Ef(ptr noundef nonnull align 4 dereferenceable(12), float noundef) unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce14LookAndFeel_V119drawScrollbarButtonERNS_8GraphicsERNS_9ScrollBarEiiibbb(ptr noundef nonnull align 8 dereferenceable(328) %0, ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull align 8 dereferenceable(376) %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i1 noundef zeroext %6, i1 noundef zeroext %7, i1 noundef zeroext %8) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i8, align 1
  %17 = alloca i8, align 1
  %18 = alloca i8, align 1
  %19 = alloca %"class.juce::Path", align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca %"class.juce::Colour", align 1
  %23 = alloca %"class.juce::Colour", align 1
  %24 = alloca %"class.juce::Colour", align 1
  %25 = alloca %"class.juce::Colour", align 1
  %26 = alloca %"class.juce::Colour", align 1
  %27 = alloca %"class.juce::PathStrokeType", align 4
  %28 = alloca %"class.juce::AffineTransform", align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store ptr %2, ptr %12, align 8, !tbaa !5
  store i32 %3, ptr %13, align 4, !tbaa !9
  store i32 %4, ptr %14, align 4, !tbaa !9
  store i32 %5, ptr %15, align 4, !tbaa !9
  %29 = zext i1 %6 to i8
  store i8 %29, ptr %16, align 1, !tbaa !11
  %30 = zext i1 %7 to i8
  store i8 %30, ptr %17, align 1, !tbaa !11
  %31 = zext i1 %8 to i8
  store i8 %31, ptr %18, align 1, !tbaa !11
  %32 = load ptr, ptr %10, align 8
  %33 = load i8, ptr %16, align 1, !tbaa !11, !range !13, !noundef !14
  %34 = trunc i8 %33 to i1
  br i1 %34, label %35, label %38

35:                                               ; preds = %9
  %36 = load i32, ptr %13, align 4, !tbaa !9
  %37 = sub nsw i32 %36, 2
  store i32 %37, ptr %13, align 4, !tbaa !9
  br label %41

38:                                               ; preds = %9
  %39 = load i32, ptr %14, align 4, !tbaa !9
  %40 = sub nsw i32 %39, 2
  store i32 %40, ptr %14, align 4, !tbaa !9
  br label %41

41:                                               ; preds = %38, %35
  call void @llvm.lifetime.start.p0(i64 48, ptr %19) #4
  call void @_ZN4juce4PathC1Ev(ptr noundef nonnull align 8 dereferenceable(41) %19)
  %42 = load i32, ptr %15, align 4, !tbaa !9
  %43 = icmp eq i32 %42, 0
  br i1 %43, label %44, label %68

44:                                               ; preds = %41
  %45 = load i32, ptr %13, align 4, !tbaa !9
  %46 = sitofp i32 %45 to float
  %47 = fmul float %46, 5.000000e-01
  %48 = load i32, ptr %14, align 4, !tbaa !9
  %49 = sitofp i32 %48 to float
  %50 = fmul float %49, 0x3FC99999A0000000
  %51 = load i32, ptr %13, align 4, !tbaa !9
  %52 = sitofp i32 %51 to float
  %53 = fmul float %52, 0x3FB99999A0000000
  %54 = load i32, ptr %14, align 4, !tbaa !9
  %55 = sitofp i32 %54 to float
  %56 = fmul float %55, 0x3FE6666660000000
  %57 = load i32, ptr %13, align 4, !tbaa !9
  %58 = sitofp i32 %57 to float
  %59 = fmul float %58, 0x3FECCCCCC0000000
  %60 = load i32, ptr %14, align 4, !tbaa !9
  %61 = sitofp i32 %60 to float
  %62 = fmul float %61, 0x3FE6666660000000
  invoke void @_ZN4juce4Path11addTriangleEffffff(ptr noundef nonnull align 8 dereferenceable(41) %19, float noundef %47, float noundef %50, float noundef %53, float noundef %56, float noundef %59, float noundef %62)
          to label %63 unwind label %64

63:                                               ; preds = %44
  br label %140

64:                                               ; preds = %175, %117, %94, %71, %44
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %20, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %21, align 4
  br label %190

68:                                               ; preds = %41
  %69 = load i32, ptr %15, align 4, !tbaa !9
  %70 = icmp eq i32 %69, 1
  br i1 %70, label %71, label %91

71:                                               ; preds = %68
  %72 = load i32, ptr %13, align 4, !tbaa !9
  %73 = sitofp i32 %72 to float
  %74 = fmul float %73, 0x3FE99999A0000000
  %75 = load i32, ptr %14, align 4, !tbaa !9
  %76 = sitofp i32 %75 to float
  %77 = fmul float %76, 5.000000e-01
  %78 = load i32, ptr %13, align 4, !tbaa !9
  %79 = sitofp i32 %78 to float
  %80 = fmul float %79, 0x3FD3333340000000
  %81 = load i32, ptr %14, align 4, !tbaa !9
  %82 = sitofp i32 %81 to float
  %83 = fmul float %82, 0x3FB99999A0000000
  %84 = load i32, ptr %13, align 4, !tbaa !9
  %85 = sitofp i32 %84 to float
  %86 = fmul float %85, 0x3FD3333340000000
  %87 = load i32, ptr %14, align 4, !tbaa !9
  %88 = sitofp i32 %87 to float
  %89 = fmul float %88, 0x3FECCCCCC0000000
  invoke void @_ZN4juce4Path11addTriangleEffffff(ptr noundef nonnull align 8 dereferenceable(41) %19, float noundef %74, float noundef %77, float noundef %80, float noundef %83, float noundef %86, float noundef %89)
          to label %90 unwind label %64

90:                                               ; preds = %71
  br label %139

91:                                               ; preds = %68
  %92 = load i32, ptr %15, align 4, !tbaa !9
  %93 = icmp eq i32 %92, 2
  br i1 %93, label %94, label %114

94:                                               ; preds = %91
  %95 = load i32, ptr %13, align 4, !tbaa !9
  %96 = sitofp i32 %95 to float
  %97 = fmul float %96, 5.000000e-01
  %98 = load i32, ptr %14, align 4, !tbaa !9
  %99 = sitofp i32 %98 to float
  %100 = fmul float %99, 0x3FE99999A0000000
  %101 = load i32, ptr %13, align 4, !tbaa !9
  %102 = sitofp i32 %101 to float
  %103 = fmul float %102, 0x3FB99999A0000000
  %104 = load i32, ptr %14, align 4, !tbaa !9
  %105 = sitofp i32 %104 to float
  %106 = fmul float %105, 0x3FD3333340000000
  %107 = load i32, ptr %13, align 4, !tbaa !9
  %108 = sitofp i32 %107 to float
  %109 = fmul float %108, 0x3FECCCCCC0000000
  %110 = load i32, ptr %14, align 4, !tbaa !9
  %111 = sitofp i32 %110 to float
  %112 = fmul float %111, 0x3FD3333340000000
  invoke void @_ZN4juce4Path11addTriangleEffffff(ptr noundef nonnull align 8 dereferenceable(41) %19, float noundef %97, float noundef %100, float noundef %103, float noundef %106, float noundef %109, float noundef %112)
          to label %113 unwind label %64

113:                                              ; preds = %94
  br label %138

114:                                              ; preds = %91
  %115 = load i32, ptr %15, align 4, !tbaa !9
  %116 = icmp eq i32 %115, 3
  br i1 %116, label %117, label %137

117:                                              ; preds = %114
  %118 = load i32, ptr %13, align 4, !tbaa !9
  %119 = sitofp i32 %118 to float
  %120 = fmul float %119, 0x3FC99999A0000000
  %121 = load i32, ptr %14, align 4, !tbaa !9
  %122 = sitofp i32 %121 to float
  %123 = fmul float %122, 5.000000e-01
  %124 = load i32, ptr %13, align 4, !tbaa !9
  %125 = sitofp i32 %124 to float
  %126 = fmul float %125, 0x3FE6666660000000
  %127 = load i32, ptr %14, align 4, !tbaa !9
  %128 = sitofp i32 %127 to float
  %129 = fmul float %128, 0x3FB99999A0000000
  %130 = load i32, ptr %13, align 4, !tbaa !9
  %131 = sitofp i32 %130 to float
  %132 = fmul float %131, 0x3FE6666660000000
  %133 = load i32, ptr %14, align 4, !tbaa !9
  %134 = sitofp i32 %133 to float
  %135 = fmul float %134, 0x3FECCCCCC0000000
  invoke void @_ZN4juce4Path11addTriangleEffffff(ptr noundef nonnull align 8 dereferenceable(41) %19, float noundef %120, float noundef %123, float noundef %126, float noundef %129, float noundef %132, float noundef %135)
          to label %136 unwind label %64

136:                                              ; preds = %117
  br label %137

137:                                              ; preds = %136, %114
  br label %138

138:                                              ; preds = %137, %113
  br label %139

139:                                              ; preds = %138, %90
  br label %140

140:                                              ; preds = %139, %63
  %141 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %142 = trunc i8 %141 to i1
  br i1 %142, label %143, label %150

143:                                              ; preds = %140
  %144 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN4juce6ColourC1ERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %22, ptr noundef nonnull align 1 dereferenceable(4) @_ZN4juce7Colours5whiteE) #4
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %144, ptr noundef %22)
          to label %145 unwind label %146

145:                                              ; preds = %143
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %22) #4
  br label %175

146:                                              ; preds = %143
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %20, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %21, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %22) #4
  br label %190

150:                                              ; preds = %140
  %151 = load i8, ptr %17, align 1, !tbaa !11, !range !13, !noundef !14
  %152 = trunc i8 %151 to i1
  br i1 %152, label %153, label %160

153:                                              ; preds = %150
  %154 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %23, ptr noundef nonnull align 1 dereferenceable(4) @_ZN4juce7Colours5whiteE, float noundef 0x3FE6666660000000) #4
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %154, ptr noundef %23)
          to label %155 unwind label %156

155:                                              ; preds = %153
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %23) #4
  br label %174

156:                                              ; preds = %153
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %20, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %21, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %23) #4
  br label %190

160:                                              ; preds = %150
  %161 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  %162 = load ptr, ptr %12, align 8, !tbaa !5
  invoke void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %25, ptr noundef nonnull align 8 dereferenceable(197) %162, i32 noundef 16778240, i1 noundef zeroext false)
          to label %163 unwind label %165

163:                                              ; preds = %160
  call void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %24, ptr noundef nonnull align 1 dereferenceable(4) %25, float noundef 5.000000e-01) #4
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %161, ptr noundef %24)
          to label %164 unwind label %169

164:                                              ; preds = %163
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %24) #4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  br label %174

165:                                              ; preds = %160
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %20, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %21, align 4
  br label %173

169:                                              ; preds = %163
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %20, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %21, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %24) #4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %25) #4
  br label %173

173:                                              ; preds = %169, %165
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  br label %190

174:                                              ; preds = %164, %155
  br label %175

175:                                              ; preds = %174, %145
  %176 = load ptr, ptr %11, align 8, !tbaa !5
  invoke void @_ZNK4juce8Graphics8fillPathERKNS_4PathE(ptr noundef nonnull align 8 dereferenceable(17) %176, ptr noundef nonnull align 8 dereferenceable(41) %19)
          to label %177 unwind label %64

177:                                              ; preds = %175
  %178 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %26, ptr noundef nonnull align 1 dereferenceable(4) @_ZN4juce7Colours5blackE, float noundef 5.000000e-01) #4
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %178, ptr noundef %26)
          to label %179 unwind label %182

179:                                              ; preds = %177
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %26) #4
  %180 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %27) #4
  call void @_ZN4juce14PathStrokeTypeC1Ef(ptr noundef nonnull align 4 dereferenceable(12) %27, float noundef 5.000000e-01) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #4
  call void @_ZN4juce15AffineTransformC1Ev(ptr noundef nonnull align 4 dereferenceable(24) %28) #4
  invoke void @_ZNK4juce8Graphics10strokePathERKNS_4PathERKNS_14PathStrokeTypeERKNS_15AffineTransformE(ptr noundef nonnull align 8 dereferenceable(17) %180, ptr noundef nonnull align 8 dereferenceable(41) %19, ptr noundef nonnull align 4 dereferenceable(12) %27, ptr noundef nonnull align 4 dereferenceable(24) %28)
          to label %181 unwind label %186

181:                                              ; preds = %179
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #4
  call void @_ZN4juce14PathStrokeTypeD1Ev(ptr noundef nonnull align 4 dereferenceable(12) %27) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %27) #4
  call void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %19) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %19) #4
  ret void

182:                                              ; preds = %177
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %20, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %21, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %26) #4
  br label %190

186:                                              ; preds = %179
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %20, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #4
  call void @_ZN4juce14PathStrokeTypeD1Ev(ptr noundef nonnull align 4 dereferenceable(12) %27) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %27) #4
  br label %190

190:                                              ; preds = %186, %182, %173, %156, %146, %64
  call void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %19) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %19) #4
  br label %191

191:                                              ; preds = %190
  %192 = load ptr, ptr %20, align 8
  %193 = load i32, ptr %21, align 4
  %194 = insertvalue { ptr, i32 } poison, ptr %192, 0
  %195 = insertvalue { ptr, i32 } %194, i32 %193, 1
  resume { ptr, i32 } %195
}

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


; 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 }
%"class.juce::Path" = type <{ %"class.juce::ArrayAllocationBase.123", i64, %"struct.juce::Path::PathBounds", i8, [7 x i8] }>
%"class.juce::ArrayAllocationBase.123" = type <{ %"class.juce::HeapBlock.124", i32, [4 x i8] }>
%"class.juce::HeapBlock.124" = type { ptr }
%"struct.juce::Path::PathBounds" = type { float, float, float, float }
%"class.juce::PathStrokeType" = type { float, i32, i32 }
%"class.juce::AffineTransform" = type { float, float, float, float, float, float }

@_ZN4juce7Colours5blackE = external global %"class.juce::Colour", align 1
@_ZN4juce7Colours5whiteE = external global %"class.juce::Colour", align 1

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: nounwind
declare void @_ZN4juce15AffineTransformC1Ev(ptr noundef nonnull align 4 dereferenceable(24)) unnamed_addr #1

; 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

declare void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef) local_unnamed_addr #3

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

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

declare void @_ZN4juce4PathC1Ev(ptr noundef nonnull align 8 dereferenceable(41)) unnamed_addr #3

declare void @_ZN4juce4Path11addTriangleEffffff(ptr noundef nonnull align 8 dereferenceable(41), float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41)) unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1, ptr noundef nonnull align 1 dereferenceable(4), float noundef) local_unnamed_addr #1

declare void @_ZNK4juce8Graphics8fillPathERKNS_4PathE(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(41)) local_unnamed_addr #3

declare void @_ZNK4juce8Graphics10strokePathERKNS_4PathERKNS_14PathStrokeTypeERKNS_15AffineTransformE(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(41), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(24)) local_unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN4juce14PathStrokeTypeC1Ef(ptr noundef nonnull align 4 dereferenceable(12), float noundef) unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce14LookAndFeel_V119drawScrollbarButtonERNS_8GraphicsERNS_9ScrollBarEiiibbb(ptr nocapture noundef nonnull readnone align 8 dereferenceable(328) %0, ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull align 8 dereferenceable(376) %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i1 noundef zeroext %6, i1 noundef zeroext %7, i1 noundef zeroext %8) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %10 = alloca %"class.juce::Path", align 8
  %11 = alloca %"class.juce::Colour", align 1
  %12 = alloca %"class.juce::Colour", align 1
  %13 = alloca %"class.juce::Colour", align 1
  %14 = alloca %"class.juce::Colour", align 1
  %15 = alloca %"class.juce::Colour", align 1
  %16 = alloca %"class.juce::PathStrokeType", align 4
  %17 = alloca %"class.juce::AffineTransform", align 4
  %18 = add nsw i32 %3, -2
  %19 = add nsw i32 %4, -2
  %20 = insertelement <2 x i1> poison, i1 %6, i64 0
  %21 = shufflevector <2 x i1> %20, <2 x i1> poison, <2 x i32> zeroinitializer
  %22 = insertelement <2 x i32> poison, i32 %18, i64 0
  %23 = insertelement <2 x i32> %22, i32 %4, i64 1
  %24 = insertelement <2 x i32> poison, i32 %3, i64 0
  %25 = insertelement <2 x i32> %24, i32 %19, i64 1
  %26 = select <2 x i1> %21, <2 x i32> %23, <2 x i32> %25
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %10) #4
  call void @_ZN4juce4PathC1Ev(ptr noundef nonnull align 8 dereferenceable(41) %10)
  switch i32 %5, label %64 [
    i32 0, label %27
    i32 1, label %36
    i32 2, label %43
    i32 3, label %50
  ]

27:                                               ; preds = %9
  %28 = sitofp <2 x i32> %26 to <2 x float>
  %29 = shufflevector <2 x float> %28, <2 x float> poison, <4 x i32> <i32 0, i32 1, i32 0, i32 1>
  %30 = fmul <4 x float> %29, <float 5.000000e-01, float 0x3FC99999A0000000, float 0x3FB99999A0000000, float 0x3FE6666660000000>
  %31 = extractelement <2 x float> %28, i64 0
  %32 = fmul float %31, 0x3FECCCCCC0000000
  %33 = extractelement <4 x float> %30, i64 3
  br label %.invoke

34:                                               ; preds = %.invoke, %82
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %90

36:                                               ; preds = %9
  %37 = sitofp <2 x i32> %26 to <2 x float>
  %38 = shufflevector <2 x float> %37, <2 x float> poison, <4 x i32> <i32 0, i32 1, i32 0, i32 1>
  %39 = fmul <4 x float> %38, <float 0x3FE99999A0000000, float 5.000000e-01, float 0x3FD3333340000000, float 0x3FB99999A0000000>
  %40 = extractelement <2 x float> %37, i64 1
  %41 = fmul float %40, 0x3FECCCCCC0000000
  %42 = extractelement <4 x float> %39, i64 2
  br label %.invoke

43:                                               ; preds = %9
  %44 = sitofp <2 x i32> %26 to <2 x float>
  %45 = shufflevector <2 x float> %44, <2 x float> poison, <4 x i32> <i32 0, i32 1, i32 0, i32 1>
  %46 = fmul <4 x float> %45, <float 5.000000e-01, float 0x3FE99999A0000000, float 0x3FB99999A0000000, float 0x3FD3333340000000>
  %47 = extractelement <2 x float> %44, i64 0
  %48 = fmul float %47, 0x3FECCCCCC0000000
  %49 = extractelement <4 x float> %46, i64 3
  br label %.invoke

50:                                               ; preds = %9
  %51 = sitofp <2 x i32> %26 to <2 x float>
  %52 = shufflevector <2 x float> %51, <2 x float> poison, <4 x i32> <i32 0, i32 1, i32 0, i32 1>
  %53 = fmul <4 x float> %52, <float 0x3FC99999A0000000, float 5.000000e-01, float 0x3FE6666660000000, float 0x3FB99999A0000000>
  %54 = extractelement <2 x float> %51, i64 1
  %55 = fmul float %54, 0x3FECCCCCC0000000
  %56 = extractelement <4 x float> %53, i64 2
  br label %.invoke

.invoke:                                          ; preds = %27, %36, %43, %50
  %57 = phi float [ %56, %50 ], [ %48, %43 ], [ %42, %36 ], [ %32, %27 ]
  %58 = phi float [ %55, %50 ], [ %49, %43 ], [ %41, %36 ], [ %33, %27 ]
  %59 = phi <4 x float> [ %53, %50 ], [ %46, %43 ], [ %39, %36 ], [ %30, %27 ]
  %60 = extractelement <4 x float> %59, i64 0
  %61 = extractelement <4 x float> %59, i64 1
  %62 = extractelement <4 x float> %59, i64 2
  %63 = extractelement <4 x float> %59, i64 3
  invoke void @_ZN4juce4Path11addTriangleEffffff(ptr noundef nonnull align 8 dereferenceable(41) %10, float noundef %60, float noundef %61, float noundef %62, float noundef %63, float noundef %57, float noundef %58)
          to label %64 unwind label %34

64:                                               ; preds = %.invoke, %9
  br i1 %8, label %65, label %69

65:                                               ; preds = %64
  call void @_ZN4juce6ColourC1ERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %11, ptr noundef nonnull align 1 dereferenceable(4) @_ZN4juce7Colours5whiteE) #4
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %11)
          to label %66 unwind label %67

66:                                               ; preds = %65
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %11) #4
  br label %82

67:                                               ; preds = %65
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %11) #4
  br label %90

69:                                               ; preds = %64
  br i1 %7, label %70, label %74

70:                                               ; preds = %69
  call void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %12, ptr noundef nonnull align 1 dereferenceable(4) @_ZN4juce7Colours5whiteE, float noundef 0x3FE6666660000000) #4
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %12)
          to label %71 unwind label %72

71:                                               ; preds = %70
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %12) #4
  br label %82

72:                                               ; preds = %70
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %12) #4
  br label %90

74:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #4
  invoke void @_ZNK4juce9Component10findColourEib(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %14, ptr noundef nonnull align 8 dereferenceable(197) %2, i32 noundef 16778240, i1 noundef zeroext false)
          to label %75 unwind label %77

75:                                               ; preds = %74
  call void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %13, ptr noundef nonnull align 1 dereferenceable(4) %14, float noundef 5.000000e-01) #4
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %13)
          to label %76 unwind label %79

76:                                               ; preds = %75
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %13) #4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #4
  br label %82

77:                                               ; preds = %74
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %81

79:                                               ; preds = %75
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %13) #4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %14) #4
  br label %81

81:                                               ; preds = %79, %77
  %.pn = phi { ptr, i32 } [ %80, %79 ], [ %78, %77 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #4
  br label %90

82:                                               ; preds = %71, %76, %66
  invoke void @_ZNK4juce8Graphics8fillPathERKNS_4PathE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull align 8 dereferenceable(41) %10)
          to label %83 unwind label %34

83:                                               ; preds = %82
  call void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %15, ptr noundef nonnull align 1 dereferenceable(4) @_ZN4juce7Colours5blackE, float noundef 5.000000e-01) #4
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %15)
          to label %84 unwind label %86

84:                                               ; preds = %83
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %15) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #4
  call void @_ZN4juce14PathStrokeTypeC1Ef(ptr noundef nonnull align 4 dereferenceable(12) %16, float noundef 5.000000e-01) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #4
  call void @_ZN4juce15AffineTransformC1Ev(ptr noundef nonnull align 4 dereferenceable(24) %17) #4
  invoke void @_ZNK4juce8Graphics10strokePathERKNS_4PathERKNS_14PathStrokeTypeERKNS_15AffineTransformE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull align 8 dereferenceable(41) %10, ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 4 dereferenceable(24) %17)
          to label %85 unwind label %88

85:                                               ; preds = %84
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #4
  call void @_ZN4juce14PathStrokeTypeD1Ev(ptr noundef nonnull align 4 dereferenceable(12) %16) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #4
  call void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %10) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #4
  ret void

86:                                               ; preds = %83
  %87 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %15) #4
  br label %90

88:                                               ; preds = %84
  %89 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #4
  call void @_ZN4juce14PathStrokeTypeD1Ev(ptr noundef nonnull align 4 dereferenceable(12) %16) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #4
  br label %90

90:                                               ; preds = %88, %86, %81, %72, %67, %34
  %.pn48 = phi { ptr, i32 } [ %89, %88 ], [ %87, %86 ], [ %35, %34 ], [ %68, %67 ], [ %73, %72 ], [ %.pn, %81 ]
  call void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %10) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #4
  resume { ptr, i32 } %.pn48
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { "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)"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass