; 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::AffineTransform" = type { float, float, float, float, float, float }
%"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 }

@_ZN4juce7Colours5blackE = external global %"class.juce::Colour", align 1
@_ZN4juce7Colours4greyE = external global %"class.juce::Colour", align 1
@_ZN4juce7Colours9lightgreyE = external global %"class.juce::Colour", align 1
@_ZN4juce7Colours4blueE = 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 @_ZN4juce15AffineTransform5scaleEff(ptr dead_on_unwind writable sret(%"class.juce::AffineTransform") align 4, float noundef, float noundef) #1

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

; 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 #2

; 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_4PathERKNS_15AffineTransformE(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(41), ptr noundef nonnull align 4 dereferenceable(24)) #2

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)) #2

; 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

declare void @_ZN4juce4Path15startNewSubPathEff(ptr noundef nonnull align 8 dereferenceable(41), float noundef, float noundef) #2

declare void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41), float noundef, float noundef) #2

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

declare void @_ZN4juce4Path19addRoundedRectangleEfffff(ptr noundef nonnull align 8 dereferenceable(41), float noundef, float noundef, float noundef, float noundef, float noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce14LookAndFeel_V111drawTickBoxERNS_8GraphicsERNS_9ComponentEffffbbbb(ptr noundef nonnull align 8 dereferenceable(328) %0, ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull align 8 dereferenceable(197) %2, float noundef %3, float noundef %4, float noundef %5, float noundef %6, i1 noundef zeroext %7, i1 noundef zeroext %8, i1 noundef zeroext %9, i1 noundef zeroext %10) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca i8, align 1
  %20 = alloca i8, align 1
  %21 = alloca i8, align 1
  %22 = alloca i8, align 1
  %23 = alloca %"class.juce::Path", align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca %"class.juce::Colour", align 1
  %27 = alloca i1, align 1
  %28 = alloca i1, align 1
  %29 = alloca %"class.juce::AffineTransform", align 4
  %30 = alloca %"class.juce::AffineTransform", align 4
  %31 = alloca %"class.juce::Colour", align 1
  %32 = alloca %"class.juce::PathStrokeType", align 4
  %33 = alloca %"class.juce::Path", align 8
  %34 = alloca %"class.juce::Colour", align 1
  %35 = alloca %"class.juce::PathStrokeType", align 4
  store ptr %0, ptr %12, align 8, !tbaa !5
  store ptr %1, ptr %13, align 8, !tbaa !5
  store ptr %2, ptr %14, align 8, !tbaa !5
  store float %3, ptr %15, align 4, !tbaa !9
  store float %4, ptr %16, align 4, !tbaa !9
  store float %5, ptr %17, align 4, !tbaa !9
  store float %6, ptr %18, align 4, !tbaa !9
  %36 = zext i1 %7 to i8
  store i8 %36, ptr %19, align 1, !tbaa !11
  %37 = zext i1 %8 to i8
  store i8 %37, ptr %20, align 1, !tbaa !11
  %38 = zext i1 %9 to i8
  store i8 %38, ptr %21, align 1, !tbaa !11
  %39 = zext i1 %10 to i8
  store i8 %39, ptr %22, align 1, !tbaa !11
  %40 = load ptr, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr %23) #4
  call void @_ZN4juce4PathC1Ev(ptr noundef nonnull align 8 dereferenceable(41) %23)
  invoke void @_ZN4juce4Path19addRoundedRectangleEfffff(ptr noundef nonnull align 8 dereferenceable(41) %23, float noundef 0.000000e+00, float noundef 2.000000e+00, float noundef 6.000000e+00, float noundef 6.000000e+00, float noundef 1.000000e+00)
          to label %41 unwind label %88

41:                                               ; preds = %11
  %42 = load ptr, ptr %13, align 8, !tbaa !5
  %43 = load i8, ptr %20, align 1, !tbaa !11, !range !13, !noundef !14
  %44 = trunc i8 %43 to i1
  store i1 false, ptr %27, align 1
  store i1 false, ptr %28, align 1
  br i1 %44, label %45, label %50

45:                                               ; preds = %41
  %46 = load i8, ptr %22, align 1, !tbaa !11, !range !13, !noundef !14
  %47 = trunc i8 %46 to i1
  %48 = zext i1 %47 to i64
  %49 = select i1 %47, float 0x3FD3333340000000, float 0x3FB99999A0000000
  call void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %26, ptr noundef nonnull align 1 dereferenceable(4) @_ZN4juce7Colours4blueE, float noundef %49) #4
  store i1 true, ptr %27, align 1
  br label %51

50:                                               ; preds = %41
  call void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %26, ptr noundef nonnull align 1 dereferenceable(4) @_ZN4juce7Colours9lightgreyE, float noundef 0x3FB99999A0000000) #4
  store i1 true, ptr %28, align 1
  br label %51

51:                                               ; preds = %50, %45
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %42, ptr noundef %26)
          to label %52 unwind label %92

52:                                               ; preds = %51
  %53 = load i1, ptr %28, align 1
  br i1 %53, label %54, label %55

54:                                               ; preds = %52
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %26) #4
  br label %55

55:                                               ; preds = %54, %52
  %56 = load i1, ptr %27, align 1
  br i1 %56, label %57, label %58

57:                                               ; preds = %55
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %26) #4
  br label %58

58:                                               ; preds = %57, %55
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #4
  %59 = load float, ptr %17, align 4, !tbaa !9
  %60 = fdiv float %59, 9.000000e+00
  %61 = load float, ptr %18, align 4, !tbaa !9
  %62 = fdiv float %61, 9.000000e+00
  call void @_ZN4juce15AffineTransform5scaleEff(ptr dead_on_unwind writable sret(%"class.juce::AffineTransform") align 4 %30, float noundef %60, float noundef %62) #4
  %63 = load float, ptr %15, align 4, !tbaa !9
  %64 = load float, ptr %16, align 4, !tbaa !9
  call void @_ZNK4juce15AffineTransform10translatedEff(ptr dead_on_unwind writable sret(%"class.juce::AffineTransform") align 4 %29, ptr noundef nonnull align 4 dereferenceable(24) %30, float noundef %63, float noundef %64) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #4
  %65 = load ptr, ptr %13, align 8, !tbaa !5
  invoke void @_ZNK4juce8Graphics8fillPathERKNS_4PathERKNS_15AffineTransformE(ptr noundef nonnull align 8 dereferenceable(17) %65, ptr noundef nonnull align 8 dereferenceable(41) %23, ptr noundef nonnull align 4 dereferenceable(24) %29)
          to label %66 unwind label %102

66:                                               ; preds = %58
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind writable sret(%"class.juce::Colour") align 1 %31, ptr noundef nonnull align 1 dereferenceable(4) @_ZN4juce7Colours5blackE, float noundef 0x3FE3333340000000) #4
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %67, ptr noundef %31)
          to label %68 unwind label %106

68:                                               ; preds = %66
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %31) #4
  %69 = load ptr, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %32) #4
  call void @_ZN4juce14PathStrokeTypeC1Ef(ptr noundef nonnull align 4 dereferenceable(12) %32, float noundef 0x3FECCCCCC0000000) #4
  invoke void @_ZNK4juce8Graphics10strokePathERKNS_4PathERKNS_14PathStrokeTypeERKNS_15AffineTransformE(ptr noundef nonnull align 8 dereferenceable(17) %69, ptr noundef nonnull align 8 dereferenceable(41) %23, ptr noundef nonnull align 4 dereferenceable(12) %32, ptr noundef nonnull align 4 dereferenceable(24) %29)
          to label %70 unwind label %110

70:                                               ; preds = %68
  call void @_ZN4juce14PathStrokeTypeD1Ev(ptr noundef nonnull align 4 dereferenceable(12) %32) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #4
  %71 = load i8, ptr %19, align 1, !tbaa !11, !range !13, !noundef !14
  %72 = trunc i8 %71 to i1
  br i1 %72, label %73, label %132

73:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 48, ptr %33) #4
  invoke void @_ZN4juce4PathC1Ev(ptr noundef nonnull align 8 dereferenceable(41) %33)
          to label %74 unwind label %114

74:                                               ; preds = %73
  invoke void @_ZN4juce4Path15startNewSubPathEff(ptr noundef nonnull align 8 dereferenceable(41) %33, float noundef 1.500000e+00, float noundef 3.000000e+00)
          to label %75 unwind label %118

75:                                               ; preds = %74
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %33, float noundef 3.000000e+00, float noundef 6.000000e+00)
          to label %76 unwind label %118

76:                                               ; preds = %75
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %33, float noundef 6.000000e+00, float noundef 0.000000e+00)
          to label %77 unwind label %118

77:                                               ; preds = %76
  %78 = load ptr, ptr %13, align 8, !tbaa !5
  %79 = load i8, ptr %20, align 1, !tbaa !11, !range !13, !noundef !14
  %80 = trunc i8 %79 to i1
  br i1 %80, label %81, label %82

81:                                               ; preds = %77
  br label %83

82:                                               ; preds = %77
  br label %83

83:                                               ; preds = %82, %81
  %84 = phi ptr [ @_ZN4juce7Colours5blackE, %81 ], [ @_ZN4juce7Colours4greyE, %82 ]
  call void @_ZN4juce6ColourC1ERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %34, ptr noundef nonnull align 1 dereferenceable(4) %84) #4
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %78, ptr noundef %34)
          to label %85 unwind label %122

85:                                               ; preds = %83
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %34) #4
  %86 = load ptr, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %35) #4
  call void @_ZN4juce14PathStrokeTypeC1Ef(ptr noundef nonnull align 4 dereferenceable(12) %35, float noundef 2.500000e+00) #4
  invoke void @_ZNK4juce8Graphics10strokePathERKNS_4PathERKNS_14PathStrokeTypeERKNS_15AffineTransformE(ptr noundef nonnull align 8 dereferenceable(17) %86, ptr noundef nonnull align 8 dereferenceable(41) %33, ptr noundef nonnull align 4 dereferenceable(12) %35, ptr noundef nonnull align 4 dereferenceable(24) %29)
          to label %87 unwind label %126

87:                                               ; preds = %85
  call void @_ZN4juce14PathStrokeTypeD1Ev(ptr noundef nonnull align 4 dereferenceable(12) %35) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %35) #4
  call void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %33) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %33) #4
  br label %132

88:                                               ; preds = %11
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %24, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %25, align 4
  br label %134

92:                                               ; preds = %51
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %24, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %25, align 4
  %96 = load i1, ptr %28, align 1
  br i1 %96, label %97, label %98

97:                                               ; preds = %92
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %26) #4
  br label %98

98:                                               ; preds = %97, %92
  %99 = load i1, ptr %27, align 1
  br i1 %99, label %100, label %101

100:                                              ; preds = %98
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %26) #4
  br label %101

101:                                              ; preds = %100, %98
  br label %134

102:                                              ; preds = %58
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %24, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %25, align 4
  br label %133

106:                                              ; preds = %66
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %24, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %25, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %31) #4
  br label %133

110:                                              ; preds = %68
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %24, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %25, align 4
  call void @_ZN4juce14PathStrokeTypeD1Ev(ptr noundef nonnull align 4 dereferenceable(12) %32) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #4
  br label %133

114:                                              ; preds = %73
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %24, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %25, align 4
  br label %131

118:                                              ; preds = %76, %75, %74
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %24, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %25, align 4
  br label %130

122:                                              ; preds = %83
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %24, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %25, align 4
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %34) #4
  br label %130

126:                                              ; preds = %85
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %24, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %25, align 4
  call void @_ZN4juce14PathStrokeTypeD1Ev(ptr noundef nonnull align 4 dereferenceable(12) %35) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %35) #4
  br label %130

130:                                              ; preds = %126, %122, %118
  call void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %33) #4
  br label %131

131:                                              ; preds = %130, %114
  call void @llvm.lifetime.end.p0(i64 48, ptr %33) #4
  br label %133

132:                                              ; preds = %87, %70
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #4
  call void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %23) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %23) #4
  ret void

133:                                              ; preds = %131, %110, %106, %102
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #4
  br label %134

134:                                              ; preds = %133, %101, %88
  call void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %23) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %23) #4
  br label %135

135:                                              ; preds = %134
  %136 = load ptr, ptr %24, align 8
  %137 = load i32, ptr %25, align 4
  %138 = insertvalue { ptr, i32 } poison, ptr %136, 0
  %139 = insertvalue { ptr, i32 } %138, i32 %137, 1
  resume { ptr, i32 } %139
}

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="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 #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 = !{!"float", !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::AffineTransform" = type { float, float, float, float, float, float }
%"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 }

@_ZN4juce7Colours5blackE = external global %"class.juce::Colour", align 1
@_ZN4juce7Colours4greyE = external global %"class.juce::Colour", align 1
@_ZN4juce7Colours9lightgreyE = external global %"class.juce::Colour", align 1
@_ZN4juce7Colours4blueE = 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 @_ZN4juce15AffineTransform5scaleEff(ptr dead_on_unwind writable sret(%"class.juce::AffineTransform") align 4, float noundef, float noundef) local_unnamed_addr #1

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

; 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 #2

; 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_4PathERKNS_15AffineTransformE(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(41), ptr noundef nonnull align 4 dereferenceable(24)) local_unnamed_addr #2

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 #2

; 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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce14LookAndFeel_V111drawTickBoxERNS_8GraphicsERNS_9ComponentEffffbbbb(ptr nocapture noundef nonnull readnone align 8 dereferenceable(328) %0, ptr noundef nonnull align 8 dereferenceable(17) %1, ptr nocapture noundef nonnull readnone align 8 dereferenceable(197) %2, float noundef %3, float noundef %4, float noundef %5, float noundef %6, i1 noundef zeroext %7, i1 noundef zeroext %8, i1 noundef zeroext %9, i1 noundef zeroext %10) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %12 = alloca %"class.juce::Path", align 8
  %13 = alloca %"class.juce::Colour", align 1
  %14 = alloca %"class.juce::AffineTransform", align 4
  %15 = alloca %"class.juce::AffineTransform", align 4
  %16 = alloca %"class.juce::Colour", align 1
  %17 = alloca %"class.juce::PathStrokeType", align 4
  %18 = alloca %"class.juce::Path", align 8
  %19 = alloca %"class.juce::Colour", align 1
  %20 = alloca %"class.juce::PathStrokeType", align 4
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %12) #4
  call void @_ZN4juce4PathC1Ev(ptr noundef nonnull align 8 dereferenceable(41) %12)
  invoke void @_ZN4juce4Path19addRoundedRectangleEfffff(ptr noundef nonnull align 8 dereferenceable(41) %12, float noundef 0.000000e+00, float noundef 2.000000e+00, float noundef 6.000000e+00, float noundef 6.000000e+00, float noundef 1.000000e+00)
          to label %21 unwind label %39

21:                                               ; preds = %11
  br i1 %8, label %22, label %24

22:                                               ; preds = %21
  %23 = select i1 %10, float 0x3FD3333340000000, float 0x3FB99999A0000000
  call void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %13, ptr noundef nonnull align 1 dereferenceable(4) @_ZN4juce7Colours4blueE, float noundef %23) #4
  br label %25

24:                                               ; preds = %21
  call void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %13, ptr noundef nonnull align 1 dereferenceable(4) @_ZN4juce7Colours9lightgreyE, float noundef 0x3FB99999A0000000) #4
  br label %25

25:                                               ; preds = %24, %22
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %13)
          to label %26 unwind label %41

26:                                               ; preds = %25
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %13) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #4
  %27 = fdiv float %5, 9.000000e+00
  %28 = fdiv float %6, 9.000000e+00
  call void @_ZN4juce15AffineTransform5scaleEff(ptr dead_on_unwind nonnull writable sret(%"class.juce::AffineTransform") align 4 %15, float noundef %27, float noundef %28) #4
  call void @_ZNK4juce15AffineTransform10translatedEff(ptr dead_on_unwind nonnull writable sret(%"class.juce::AffineTransform") align 4 %14, ptr noundef nonnull align 4 dereferenceable(24) %15, float noundef %3, float noundef %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #4
  invoke void @_ZNK4juce8Graphics8fillPathERKNS_4PathERKNS_15AffineTransformE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull align 8 dereferenceable(41) %12, ptr noundef nonnull align 4 dereferenceable(24) %14)
          to label %29 unwind label %43

29:                                               ; preds = %26
  call void @_ZNK4juce6Colour9withAlphaEf(ptr dead_on_unwind nonnull writable sret(%"class.juce::Colour") align 1 %16, ptr noundef nonnull align 1 dereferenceable(4) @_ZN4juce7Colours5blackE, float noundef 0x3FE3333340000000) #4
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %16)
          to label %30 unwind label %45

30:                                               ; preds = %29
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %16) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %17) #4
  call void @_ZN4juce14PathStrokeTypeC1Ef(ptr noundef nonnull align 4 dereferenceable(12) %17, float noundef 0x3FECCCCCC0000000) #4
  invoke void @_ZNK4juce8Graphics10strokePathERKNS_4PathERKNS_14PathStrokeTypeERKNS_15AffineTransformE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull align 8 dereferenceable(41) %12, ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(24) %14)
          to label %31 unwind label %47

31:                                               ; preds = %30
  call void @_ZN4juce14PathStrokeTypeD1Ev(ptr noundef nonnull align 4 dereferenceable(12) %17) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #4
  br i1 %7, label %32, label %59

32:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %18) #4
  invoke void @_ZN4juce4PathC1Ev(ptr noundef nonnull align 8 dereferenceable(41) %18)
          to label %33 unwind label %49

33:                                               ; preds = %32
  invoke void @_ZN4juce4Path15startNewSubPathEff(ptr noundef nonnull align 8 dereferenceable(41) %18, float noundef 1.500000e+00, float noundef 3.000000e+00)
          to label %34 unwind label %51

34:                                               ; preds = %33
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %18, float noundef 3.000000e+00, float noundef 6.000000e+00)
          to label %35 unwind label %51

35:                                               ; preds = %34
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %18, float noundef 6.000000e+00, float noundef 0.000000e+00)
          to label %36 unwind label %51

36:                                               ; preds = %35
  %_ZN4juce7Colours5blackE._ZN4juce7Colours4greyE = select i1 %8, ptr @_ZN4juce7Colours5blackE, ptr @_ZN4juce7Colours4greyE
  call void @_ZN4juce6ColourC1ERKS0_(ptr noundef nonnull align 1 dereferenceable(4) %19, ptr noundef nonnull align 1 dereferenceable(4) %_ZN4juce7Colours5blackE._ZN4juce7Colours4greyE) #4
  invoke void @_ZN4juce8Graphics9setColourENS_6ColourE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull %19)
          to label %37 unwind label %53

37:                                               ; preds = %36
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %19) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %20) #4
  call void @_ZN4juce14PathStrokeTypeC1Ef(ptr noundef nonnull align 4 dereferenceable(12) %20, float noundef 2.500000e+00) #4
  invoke void @_ZNK4juce8Graphics10strokePathERKNS_4PathERKNS_14PathStrokeTypeERKNS_15AffineTransformE(ptr noundef nonnull align 8 dereferenceable(17) %1, ptr noundef nonnull align 8 dereferenceable(41) %18, ptr noundef nonnull align 4 dereferenceable(12) %20, ptr noundef nonnull align 4 dereferenceable(24) %14)
          to label %38 unwind label %55

38:                                               ; preds = %37
  call void @_ZN4juce14PathStrokeTypeD1Ev(ptr noundef nonnull align 4 dereferenceable(12) %20) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %20) #4
  call void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %18) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %18) #4
  br label %59

39:                                               ; preds = %11
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %61

41:                                               ; preds = %25
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %13) #4
  br label %61

43:                                               ; preds = %26
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %60

45:                                               ; preds = %29
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %16) #4
  br label %60

47:                                               ; preds = %30
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce14PathStrokeTypeD1Ev(ptr noundef nonnull align 4 dereferenceable(12) %17) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #4
  br label %60

49:                                               ; preds = %32
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %58

51:                                               ; preds = %35, %34, %33
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %57

53:                                               ; preds = %36
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6ColourD1Ev(ptr noundef nonnull align 1 dereferenceable(4) %19) #4
  br label %57

55:                                               ; preds = %37
  %56 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce14PathStrokeTypeD1Ev(ptr noundef nonnull align 4 dereferenceable(12) %20) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %20) #4
  br label %57

57:                                               ; preds = %55, %53, %51
  %.pn = phi { ptr, i32 } [ %56, %55 ], [ %54, %53 ], [ %52, %51 ]
  call void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %18) #4
  br label %58

58:                                               ; preds = %57, %49
  %.pn.pn = phi { ptr, i32 } [ %.pn, %57 ], [ %50, %49 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %18) #4
  br label %60

59:                                               ; preds = %38, %31
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #4
  call void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %12) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %12) #4
  ret void

60:                                               ; preds = %58, %47, %45, %43
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %58 ], [ %48, %47 ], [ %46, %45 ], [ %44, %43 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #4
  br label %61

61:                                               ; preds = %41, %60, %39
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %60 ], [ %40, %39 ], [ %42, %41 ]
  call void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %12) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %12) #4
  resume { ptr, i32 } %.pn.pn.pn.pn
}

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="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 #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,SROAPass,SimplifyCFGPass