; 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::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, i32 }
%"class.juce::ResizableBorderComponent::Zone" = type { i32 }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce5PointIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16)) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce10BorderSizeIiE14subtractedFromERKNS_9RectangleIiEE(ptr dead_on_unwind noalias writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce9RectangleIiE8containsENS_5PointIiEE(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce24ResizableBorderComponent4Zone20fromPositionOnBorderERKNS_9RectangleIiEERKNS_10BorderSizeIiEENS_5PointIiEE(ptr dead_on_unwind noalias writable sret(%"class.juce::ResizableBorderComponent::Zone") align 4 %0, ptr noundef nonnull align 4 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef %3) #3 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.juce::Point", align 4
  %11 = alloca %"class.juce::Rectangle", align 4
  %12 = alloca i1, align 1
  %13 = alloca i1, align 1
  %14 = alloca %"class.juce::Point", align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4juce5PointIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %3) #4
  %18 = call noundef zeroext i1 @_ZNK4juce9RectangleIiE8containsENS_5PointIiEE(ptr noundef nonnull align 4 dereferenceable(16) %17, ptr noundef %10) #4
  store i1 false, ptr %12, align 1
  store i1 false, ptr %13, align 1
  br i1 %18, label %19, label %24

19:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #4
  store i1 true, ptr %12, align 1
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNK4juce10BorderSizeIiE14subtractedFromERKNS_9RectangleIiEE(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %11, ptr noundef nonnull align 4 dereferenceable(16) %20, ptr noundef nonnull align 4 dereferenceable(16) %21) #4
  store i1 true, ptr %13, align 1
  call void @_ZN4juce5PointIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %3) #4
  %22 = call noundef zeroext i1 @_ZNK4juce9RectangleIiE8containsENS_5PointIiEE(ptr noundef nonnull align 4 dereferenceable(16) %11, ptr noundef %14) #4
  %23 = xor i1 %22, true
  br label %24

24:                                               ; preds = %19, %4
  %25 = phi i1 [ false, %4 ], [ %23, %19 ]
  %26 = load i1, ptr %13, align 1
  br i1 %26, label %27, label %28

27:                                               ; preds = %24
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %11) #4
  br label %28

28:                                               ; preds = %27, %24
  %29 = load i1, ptr %12, align 1
  br i1 %29, label %30, label %31

30:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #4
  br label %31

31:                                               ; preds = %30, %28
  br i1 %25, label %32, label %117

32:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = call noundef i32 @_ZNK4juce9RectangleIiE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16) %33) #4
  %35 = sdiv i32 %34, 10
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = call noundef i32 @_ZNK4juce9RectangleIiE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16) %36) #4
  %38 = sdiv i32 %37, 3
  %39 = call noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef 10, i32 noundef %38)
  %40 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef %35, i32 noundef %39)
  store i32 %40, ptr %15, align 4, !tbaa !9
  %41 = getelementptr inbounds %"class.juce::Point", ptr %3, i32 0, i32 0
  %42 = load i32, ptr %41, align 4, !tbaa !11
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = call noundef i32 @_ZNK4juce10BorderSizeIiE7getLeftEv(ptr noundef nonnull align 4 dereferenceable(16) %43) #4
  %45 = load i32, ptr %15, align 4, !tbaa !9
  %46 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef %44, i32 noundef %45)
  %47 = icmp slt i32 %42, %46
  br i1 %47, label %48, label %55

48:                                               ; preds = %32
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = call noundef i32 @_ZNK4juce10BorderSizeIiE7getLeftEv(ptr noundef nonnull align 4 dereferenceable(16) %49) #4
  %51 = icmp sgt i32 %50, 0
  br i1 %51, label %52, label %55

52:                                               ; preds = %48
  %53 = load i32, ptr %9, align 4, !tbaa !9
  %54 = or i32 %53, 1
  store i32 %54, ptr %9, align 4, !tbaa !9
  br label %74

55:                                               ; preds = %48, %32
  %56 = getelementptr inbounds %"class.juce::Point", ptr %3, i32 0, i32 0
  %57 = load i32, ptr %56, align 4, !tbaa !11
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = call noundef i32 @_ZNK4juce9RectangleIiE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16) %58) #4
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = call noundef i32 @_ZNK4juce10BorderSizeIiE8getRightEv(ptr noundef nonnull align 4 dereferenceable(16) %60) #4
  %62 = load i32, ptr %15, align 4, !tbaa !9
  %63 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef %61, i32 noundef %62)
  %64 = sub nsw i32 %59, %63
  %65 = icmp sge i32 %57, %64
  br i1 %65, label %66, label %73

66:                                               ; preds = %55
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = call noundef i32 @_ZNK4juce10BorderSizeIiE8getRightEv(ptr noundef nonnull align 4 dereferenceable(16) %67) #4
  %69 = icmp sgt i32 %68, 0
  br i1 %69, label %70, label %73

70:                                               ; preds = %66
  %71 = load i32, ptr %9, align 4, !tbaa !9
  %72 = or i32 %71, 4
  store i32 %72, ptr %9, align 4, !tbaa !9
  br label %73

73:                                               ; preds = %70, %66, %55
  br label %74

74:                                               ; preds = %73, %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = call noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %75) #4
  %77 = sdiv i32 %76, 10
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = call noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %78) #4
  %80 = sdiv i32 %79, 3
  %81 = call noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef 10, i32 noundef %80)
  %82 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef %77, i32 noundef %81)
  store i32 %82, ptr %16, align 4, !tbaa !9
  %83 = getelementptr inbounds %"class.juce::Point", ptr %3, i32 0, i32 1
  %84 = load i32, ptr %83, align 4, !tbaa !13
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = call noundef i32 @_ZNK4juce10BorderSizeIiE6getTopEv(ptr noundef nonnull align 4 dereferenceable(16) %85) #4
  %87 = load i32, ptr %16, align 4, !tbaa !9
  %88 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef %86, i32 noundef %87)
  %89 = icmp slt i32 %84, %88
  br i1 %89, label %90, label %97

90:                                               ; preds = %74
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = call noundef i32 @_ZNK4juce10BorderSizeIiE6getTopEv(ptr noundef nonnull align 4 dereferenceable(16) %91) #4
  %93 = icmp sgt i32 %92, 0
  br i1 %93, label %94, label %97

94:                                               ; preds = %90
  %95 = load i32, ptr %9, align 4, !tbaa !9
  %96 = or i32 %95, 2
  store i32 %96, ptr %9, align 4, !tbaa !9
  br label %116

97:                                               ; preds = %90, %74
  %98 = getelementptr inbounds %"class.juce::Point", ptr %3, i32 0, i32 1
  %99 = load i32, ptr %98, align 4, !tbaa !13
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = call noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %100) #4
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = call noundef i32 @_ZNK4juce10BorderSizeIiE9getBottomEv(ptr noundef nonnull align 4 dereferenceable(16) %102) #4
  %104 = load i32, ptr %16, align 4, !tbaa !9
  %105 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef %103, i32 noundef %104)
  %106 = sub nsw i32 %101, %105
  %107 = icmp sge i32 %99, %106
  br i1 %107, label %108, label %115

108:                                              ; preds = %97
  %109 = load ptr, ptr %7, align 8, !tbaa !5
  %110 = call noundef i32 @_ZNK4juce10BorderSizeIiE9getBottomEv(ptr noundef nonnull align 4 dereferenceable(16) %109) #4
  %111 = icmp sgt i32 %110, 0
  br i1 %111, label %112, label %115

112:                                              ; preds = %108
  %113 = load i32, ptr %9, align 4, !tbaa !9
  %114 = or i32 %113, 8
  store i32 %114, ptr %9, align 4, !tbaa !9
  br label %115

115:                                              ; preds = %112, %108, %97
  br label %116

116:                                              ; preds = %115, %94
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %117

117:                                              ; preds = %116, %31
  %118 = load i32, ptr %9, align 4, !tbaa !9
  call void @_ZN4juce24ResizableBorderComponent4ZoneC1Ei(ptr noundef nonnull align 4 dereferenceable(4) %0, i32 noundef %118) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce10BorderSizeIiE7getLeftEv(ptr noundef nonnull align 4 dereferenceable(16)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce10BorderSizeIiE8getRightEv(ptr noundef nonnull align 4 dereferenceable(16)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce10BorderSizeIiE6getTopEv(ptr noundef nonnull align 4 dereferenceable(16)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce10BorderSizeIiE9getBottomEv(ptr noundef nonnull align 4 dereferenceable(16)) #0 align 2

declare void @_ZN4juce24ResizableBorderComponent4ZoneC1Ei(ptr, i32)

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


; 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::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, i32 }
%"class.juce::ResizableBorderComponent::Zone" = type { i32 }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce5PointIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce10BorderSizeIiE14subtractedFromERKNS_9RectangleIiEE(ptr dead_on_unwind noalias writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce9RectangleIiE8containsENS_5PointIiEE(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN4juce24ResizableBorderComponent4Zone20fromPositionOnBorderERKNS_9RectangleIiEERKNS_10BorderSizeIiEENS_5PointIiEE(ptr dead_on_unwind noalias writable sret(%"class.juce::ResizableBorderComponent::Zone") align 4 %0, ptr noundef nonnull align 4 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull %3) local_unnamed_addr #0 align 2 {
  %5 = alloca %"class.juce::Point", align 4
  %6 = alloca %"class.juce::Rectangle", align 4
  %7 = alloca %"class.juce::Point", align 4
  call void @_ZN4juce5PointIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %3) #3
  %8 = call noundef zeroext i1 @_ZNK4juce9RectangleIiE8containsENS_5PointIiEE(ptr noundef nonnull align 4 dereferenceable(16) %1, ptr noundef nonnull %5) #3
  br i1 %8, label %.critedge, label %.critedge.thread

.critedge:                                        ; preds = %4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #3
  call void @_ZNK4juce10BorderSizeIiE14subtractedFromERKNS_9RectangleIiEE(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %6, ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(16) %1) #3
  call void @_ZN4juce5PointIiEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %3) #3
  %9 = call noundef zeroext i1 @_ZNK4juce9RectangleIiE8containsENS_5PointIiEE(ptr noundef nonnull align 4 dereferenceable(16) %6, ptr noundef nonnull %7) #3
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %6) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #3
  br i1 %9, label %.critedge.thread, label %10

10:                                               ; preds = %.critedge
  %11 = call noundef i32 @_ZNK4juce9RectangleIiE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16) %1) #3
  %12 = sdiv i32 %11, 10
  %13 = call noundef i32 @_ZNK4juce9RectangleIiE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16) %1) #3
  %14 = sdiv i32 %13, 3
  %15 = call noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef 10, i32 noundef %14)
  %16 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef %12, i32 noundef %15)
  %17 = load i32, ptr %3, align 4, !tbaa !5
  %18 = call noundef i32 @_ZNK4juce10BorderSizeIiE7getLeftEv(ptr noundef nonnull align 4 dereferenceable(16) %2) #3
  %19 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef %18, i32 noundef %16)
  %20 = icmp slt i32 %17, %19
  br i1 %20, label %21, label %24

21:                                               ; preds = %10
  %22 = call noundef i32 @_ZNK4juce10BorderSizeIiE7getLeftEv(ptr noundef nonnull align 4 dereferenceable(16) %2) #3
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %33, label %24

24:                                               ; preds = %21, %10
  %25 = load i32, ptr %3, align 4, !tbaa !5
  %26 = call noundef i32 @_ZNK4juce9RectangleIiE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16) %1) #3
  %27 = call noundef i32 @_ZNK4juce10BorderSizeIiE8getRightEv(ptr noundef nonnull align 4 dereferenceable(16) %2) #3
  %28 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef %27, i32 noundef %16)
  %29 = sub nsw i32 %26, %28
  %.not = icmp slt i32 %25, %29
  br i1 %.not, label %33, label %30

30:                                               ; preds = %24
  %31 = call noundef i32 @_ZNK4juce10BorderSizeIiE8getRightEv(ptr noundef nonnull align 4 dereferenceable(16) %2) #3
  %32 = icmp sgt i32 %31, 0
  %spec.select = select i1 %32, i32 4, i32 0
  br label %33

33:                                               ; preds = %30, %21, %24
  %.0 = phi i32 [ 0, %24 ], [ 1, %21 ], [ %spec.select, %30 ]
  %34 = call noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %1) #3
  %35 = sdiv i32 %34, 10
  %36 = call noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %1) #3
  %37 = sdiv i32 %36, 3
  %38 = call noundef i32 @_ZN4juce4jminIiEET_S1_S1_(i32 noundef 10, i32 noundef %37)
  %39 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef %35, i32 noundef %38)
  %40 = getelementptr inbounds i8, ptr %3, i64 4
  %41 = load i32, ptr %40, align 4, !tbaa !10
  %42 = call noundef i32 @_ZNK4juce10BorderSizeIiE6getTopEv(ptr noundef nonnull align 4 dereferenceable(16) %2) #3
  %43 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef %42, i32 noundef %39)
  %44 = icmp slt i32 %41, %43
  br i1 %44, label %45, label %50

45:                                               ; preds = %33
  %46 = call noundef i32 @_ZNK4juce10BorderSizeIiE6getTopEv(ptr noundef nonnull align 4 dereferenceable(16) %2) #3
  %47 = icmp sgt i32 %46, 0
  br i1 %47, label %48, label %50

48:                                               ; preds = %45
  %49 = or disjoint i32 %.0, 2
  br label %.critedge.thread

50:                                               ; preds = %45, %33
  %51 = load i32, ptr %40, align 4, !tbaa !10
  %52 = call noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %1) #3
  %53 = call noundef i32 @_ZNK4juce10BorderSizeIiE9getBottomEv(ptr noundef nonnull align 4 dereferenceable(16) %2) #3
  %54 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef %53, i32 noundef %39)
  %55 = sub nsw i32 %52, %54
  %.not29 = icmp slt i32 %51, %55
  br i1 %.not29, label %.critedge.thread, label %56

56:                                               ; preds = %50
  %57 = call noundef i32 @_ZNK4juce10BorderSizeIiE9getBottomEv(ptr noundef nonnull align 4 dereferenceable(16) %2) #3
  %58 = icmp sgt i32 %57, 0
  %59 = or disjoint i32 %.0, 8
  %spec.select30 = select i1 %58, i32 %59, i32 %.0
  br label %.critedge.thread

.critedge.thread:                                 ; preds = %4, %56, %48, %50, %.critedge
  %.2 = phi i32 [ 0, %.critedge ], [ %49, %48 ], [ %.0, %50 ], [ %spec.select30, %56 ], [ 0, %4 ]
  call void @_ZN4juce24ResizableBorderComponent4ZoneC1Ei(ptr noundef nonnull align 4 dereferenceable(4) %0, i32 noundef %.2) #3
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce10BorderSizeIiE7getLeftEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce10BorderSizeIiE8getRightEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce10BorderSizeIiE6getTopEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce10BorderSizeIiE9getBottomEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #0 align 2

declare void @_ZN4juce24ResizableBorderComponent4ZoneC1Ei(ptr, i32) local_unnamed_addr

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

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

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


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