; LLVM IR from jrouwe/JoltPhysics :: TestFramework/UI/UICheckBox.ll (ZNK10UICheckBox4DrawEv)

; 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.JPH::Color" = type { %union.anon.7 }
%union.anon.7 = type { i32 }
%class.UIStaticText = type <{ %class.UIElement, %"class.JPH::RefConst", %"class.std::__cxx11::basic_string", %"class.JPH::Color", %"class.JPH::Color", i32, i32, i32, i32, i32, i8, [3 x i8] }>
%class.UIElement = type { %class.UIEventListener, i32, ptr, %"class.JPH::Array", %"class.UIElement::Position", %"class.UIElement::Position", %"class.UIElement::Size", %"class.UIElement::Size", %"class.UIElement::Size", %"class.UIElement::Size", i8, i8, i8, i8, i8, i8, i8, %"class.JPH::Array.2", ptr }
%class.UIEventListener = type { ptr }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.UIElement::Position" = type { i32, %"class.UIElement::Size" }
%"class.UIElement::Size" = type { i32, i32 }
%"class.JPH::Array.2" = type { i64, i64, ptr }
%"class.JPH::RefConst" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%class.UICheckBox = type <{ %class.UIStaticText.base, [3 x i8], %"class.JPH::Color", %"class.JPH::Color", i32, [4 x i8], %"class.std::function", %class.UITexturedQuad, %class.UITexturedQuad, i32, i8, [3 x i8] }>
%class.UIStaticText.base = type <{ %class.UIElement, %"class.JPH::RefConst", %"class.std::__cxx11::basic_string", %"class.JPH::Color", %"class.JPH::Color", i32, i32, i32, i32, i32, i8 }>
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.UITexturedQuad = type { %"class.JPH::RefConst.8", i32, i32, i32, i32, i32, i32, i32, i32 }
%"class.JPH::RefConst.8" = type { ptr }

; 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: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK10UICheckBox4DrawEv(ptr noundef nonnull align 8 dereferenceable(349) %0) unnamed_addr #2 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.JPH::Color", align 4
  %4 = alloca %"class.JPH::Color", align 4
  %5 = alloca %"class.JPH::Color", align 4
  %6 = alloca %"class.JPH::Color", align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %7 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  %8 = call noundef zeroext i1 @_ZNK9UIElement10IsDisabledEv(ptr noundef nonnull align 8 dereferenceable(144) %7)
  br i1 %8, label %9, label %11

9:                                                ; preds = %1
  %10 = getelementptr inbounds %class.UIStaticText, ptr %7, i32 0, i32 4
  br label %29

11:                                               ; preds = %1
  %12 = getelementptr inbounds %class.UICheckBox, ptr %7, i32 0, i32 10
  %13 = load i8, ptr %12, align 4, !tbaa !9, !range !32, !noundef !33
  %14 = trunc i8 %13 to i1
  br i1 %14, label %15, label %17

15:                                               ; preds = %11
  %16 = getelementptr inbounds %class.UICheckBox, ptr %7, i32 0, i32 2
  br label %27

17:                                               ; preds = %11
  %18 = getelementptr inbounds %class.UIElement, ptr %7, i32 0, i32 12
  %19 = load i8, ptr %18, align 2, !tbaa !34, !range !32, !noundef !33
  %20 = trunc i8 %19 to i1
  br i1 %20, label %21, label %23

21:                                               ; preds = %17
  %22 = getelementptr inbounds %class.UICheckBox, ptr %7, i32 0, i32 3
  br label %25

23:                                               ; preds = %17
  %24 = getelementptr inbounds %class.UIStaticText, ptr %7, i32 0, i32 3
  br label %25

25:                                               ; preds = %23, %21
  %26 = phi ptr [ %22, %21 ], [ %24, %23 ]
  br label %27

27:                                               ; preds = %25, %15
  %28 = phi ptr [ %16, %15 ], [ %26, %25 ]
  br label %29

29:                                               ; preds = %27, %9
  %30 = phi ptr [ %10, %9 ], [ %28, %27 ]
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 %30, i64 4, i1 false), !tbaa.struct !35
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %4, ptr align 4 %3, i64 4, i1 false), !tbaa.struct !35
  %31 = getelementptr inbounds %"class.JPH::Color", ptr %4, i32 0, i32 0
  %32 = getelementptr inbounds %union.anon.7, ptr %31, i32 0, i32 0
  %33 = load i32, ptr %32, align 4
  call void @_ZNK12UIStaticText10DrawCustomEN3JPH5ColorE(ptr noundef nonnull align 8 dereferenceable(213) %7, i32 %33)
  %34 = getelementptr inbounds %class.UICheckBox, ptr %7, i32 0, i32 9
  %35 = load i32, ptr %34, align 8, !tbaa !37
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %58

37:                                               ; preds = %29
  %38 = call noundef ptr @_ZNK9UIElement10GetManagerEv(ptr noundef nonnull align 8 dereferenceable(144) %7)
  %39 = call noundef i32 @_ZNK9UIElement4GetXEv(ptr noundef nonnull align 8 dereferenceable(144) %7)
  %40 = call noundef i32 @_ZNK9UIElement4GetYEv(ptr noundef nonnull align 8 dereferenceable(144) %7)
  %41 = call noundef i32 @_ZNK9UIElement9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(144) %7)
  %42 = getelementptr inbounds %class.UICheckBox, ptr %7, i32 0, i32 7
  %43 = getelementptr inbounds %class.UITexturedQuad, ptr %42, i32 0, i32 4
  %44 = load i32, ptr %43, align 4, !tbaa !38
  %45 = sub nsw i32 %41, %44
  %46 = sdiv i32 %45, 2
  %47 = add nsw i32 %40, %46
  %48 = getelementptr inbounds %class.UICheckBox, ptr %7, i32 0, i32 7
  %49 = getelementptr inbounds %class.UITexturedQuad, ptr %48, i32 0, i32 3
  %50 = load i32, ptr %49, align 8, !tbaa !39
  %51 = getelementptr inbounds %class.UICheckBox, ptr %7, i32 0, i32 7
  %52 = getelementptr inbounds %class.UITexturedQuad, ptr %51, i32 0, i32 4
  %53 = load i32, ptr %52, align 4, !tbaa !38
  %54 = getelementptr inbounds %class.UICheckBox, ptr %7, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 4 %3, i64 4, i1 false), !tbaa.struct !35
  %55 = getelementptr inbounds %"class.JPH::Color", ptr %5, i32 0, i32 0
  %56 = getelementptr inbounds %union.anon.7, ptr %55, i32 0, i32 0
  %57 = load i32, ptr %56, align 4
  call void @_ZN9UIManager8DrawQuadEiiiiRK14UITexturedQuadN3JPH5ColorE(ptr noundef nonnull align 8 dereferenceable(248) %38, i32 noundef %39, i32 noundef %47, i32 noundef %50, i32 noundef %53, ptr noundef nonnull align 8 dereferenceable(40) %54, i32 %57)
  br label %84

58:                                               ; preds = %29
  %59 = getelementptr inbounds %class.UICheckBox, ptr %7, i32 0, i32 9
  %60 = load i32, ptr %59, align 8, !tbaa !37
  %61 = icmp eq i32 %60, 1
  br i1 %61, label %62, label %83

62:                                               ; preds = %58
  %63 = call noundef ptr @_ZNK9UIElement10GetManagerEv(ptr noundef nonnull align 8 dereferenceable(144) %7)
  %64 = call noundef i32 @_ZNK9UIElement4GetXEv(ptr noundef nonnull align 8 dereferenceable(144) %7)
  %65 = call noundef i32 @_ZNK9UIElement4GetYEv(ptr noundef nonnull align 8 dereferenceable(144) %7)
  %66 = call noundef i32 @_ZNK9UIElement9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(144) %7)
  %67 = getelementptr inbounds %class.UICheckBox, ptr %7, i32 0, i32 8
  %68 = getelementptr inbounds %class.UITexturedQuad, ptr %67, i32 0, i32 4
  %69 = load i32, ptr %68, align 4, !tbaa !40
  %70 = sub nsw i32 %66, %69
  %71 = sdiv i32 %70, 2
  %72 = add nsw i32 %65, %71
  %73 = getelementptr inbounds %class.UICheckBox, ptr %7, i32 0, i32 8
  %74 = getelementptr inbounds %class.UITexturedQuad, ptr %73, i32 0, i32 3
  %75 = load i32, ptr %74, align 8, !tbaa !41
  %76 = getelementptr inbounds %class.UICheckBox, ptr %7, i32 0, i32 8
  %77 = getelementptr inbounds %class.UITexturedQuad, ptr %76, i32 0, i32 4
  %78 = load i32, ptr %77, align 4, !tbaa !40
  %79 = getelementptr inbounds %class.UICheckBox, ptr %7, i32 0, i32 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 %3, i64 4, i1 false), !tbaa.struct !35
  %80 = getelementptr inbounds %"class.JPH::Color", ptr %6, i32 0, i32 0
  %81 = getelementptr inbounds %union.anon.7, ptr %80, i32 0, i32 0
  %82 = load i32, ptr %81, align 4
  call void @_ZN9UIManager8DrawQuadEiiiiRK14UITexturedQuadN3JPH5ColorE(ptr noundef nonnull align 8 dereferenceable(248) %63, i32 noundef %64, i32 noundef %72, i32 noundef %75, i32 noundef %78, ptr noundef nonnull align 8 dereferenceable(40) %79, i32 %82)
  br label %83

83:                                               ; preds = %62, %58
  br label %84

84:                                               ; preds = %83, %37
  call void @_ZNK9UIElement4DrawEv(ptr noundef nonnull align 8 dereferenceable(144) %7)
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK9UIElement10IsDisabledEv(ptr noundef nonnull align 8 dereferenceable(144)) #3 align 2

declare void @_ZNK12UIStaticText10DrawCustomEN3JPH5ColorE(ptr noundef nonnull align 8 dereferenceable(213), i32) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK9UIElement10GetManagerEv(ptr noundef nonnull align 8 dereferenceable(144)) #3 align 2

declare void @_ZN9UIManager8DrawQuadEiiiiRK14UITexturedQuadN3JPH5ColorE(ptr noundef nonnull align 8 dereferenceable(248), i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(40), i32) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK9UIElement4GetXEv(ptr noundef nonnull align 8 dereferenceable(144)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK9UIElement4GetYEv(ptr noundef nonnull align 8 dereferenceable(144)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK9UIElement9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(144)) #2 align 2

declare void @_ZNK9UIElement4DrawEv(ptr noundef nonnull align 8 dereferenceable(144)) unnamed_addr #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !21, i64 348}
!10 = !{!"_ZTS10UICheckBox", !11, i64 0, !26, i64 216, !26, i64 220, !14, i64 224, !27, i64 232, !29, i64 264, !29, i64 304, !31, i64 344, !21, i64 348}
!11 = !{!"_ZTS12UIStaticText", !12, i64 0, !23, i64 144, !24, i64 152, !26, i64 184, !26, i64 188, !14, i64 192, !14, i64 196, !14, i64 200, !14, i64 204, !18, i64 208, !21, i64 212}
!12 = !{!"_ZTS9UIElement", !13, i64 0, !14, i64 8, !6, i64 16, !15, i64 24, !17, i64 48, !17, i64 60, !19, i64 72, !19, i64 80, !19, i64 88, !19, i64 96, !21, i64 104, !21, i64 105, !21, i64 106, !21, i64 107, !21, i64 108, !21, i64 109, !21, i64 110, !22, i64 112, !6, i64 136}
!13 = !{!"_ZTS15UIEventListener"}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTSN3JPH5ArrayIP9UIElementNS_12STLAllocatorIS2_EEEE", !16, i64 0, !16, i64 8, !6, i64 16}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTSN9UIElement8PositionE", !18, i64 0, !19, i64 4}
!18 = !{!"_ZTSN9UIElement10EAlignmentE", !7, i64 0}
!19 = !{!"_ZTSN9UIElement4SizeE", !14, i64 0, !20, i64 4}
!20 = !{!"_ZTSN9UIElement6EUnitsE", !7, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{!"_ZTSN3JPH5ArrayIP11UIAnimationNS_12STLAllocatorIS2_EEEE", !16, i64 0, !16, i64 8, !6, i64 16}
!23 = !{!"_ZTSN3JPH8RefConstI4FontEE", !6, i64 0}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEE", !25, i64 0, !16, i64 8, !7, i64 16}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEE12_Alloc_hiderE", !6, i64 0}
!26 = !{!"_ZTSN3JPH5ColorE", !7, i64 0}
!27 = !{!"_ZTSSt8functionIFvN10UICheckBox6EStateEEE", !28, i64 0, !6, i64 24}
!28 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!29 = !{!"_ZTS14UITexturedQuad", !30, i64 0, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28, !14, i64 32, !14, i64 36}
!30 = !{!"_ZTSN3JPH8RefConstI7TextureEE", !6, i64 0}
!31 = !{!"_ZTSN10UICheckBox6EStateE", !7, i64 0}
!32 = !{i8 0, i8 2}
!33 = !{}
!34 = !{!12, !21, i64 106}
!35 = !{i64 0, i64 4, !36}
!36 = !{!7, !7, i64 0}
!37 = !{!10, !31, i64 344}
!38 = !{!10, !14, i64 284}
!39 = !{!10, !14, i64 280}
!40 = !{!10, !14, i64 324}
!41 = !{!10, !14, i64 320}


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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK10UICheckBox4DrawEv(ptr noundef nonnull align 8 dereferenceable(349) %0) unnamed_addr #0 align 2 {
  %2 = tail call noundef zeroext i1 @_ZNK9UIElement10IsDisabledEv(ptr noundef nonnull align 8 dereferenceable(144) %0)
  br i1 %2, label %11, label %3

3:                                                ; preds = %1
  %4 = getelementptr inbounds i8, ptr %0, i64 348
  %5 = load i8, ptr %4, align 4, !tbaa !5, !range !31, !noundef !32
  %6 = trunc nuw i8 %5 to i1
  br i1 %6, label %11, label %7

7:                                                ; preds = %3
  %8 = getelementptr inbounds i8, ptr %0, i64 106
  %9 = load i8, ptr %8, align 2, !tbaa !33, !range !31, !noundef !32
  %10 = trunc nuw i8 %9 to i1
  %.v = select i1 %10, i64 220, i64 184
  br label %11

11:                                               ; preds = %3, %1, %7
  %.sink = phi i64 [ %.v, %7 ], [ 188, %1 ], [ 216, %3 ]
  %12 = getelementptr inbounds i8, ptr %0, i64 %.sink
  %.sroa.03.0.copyload = load i32, ptr %12, align 4, !tbaa !34
  tail call void @_ZNK12UIStaticText10DrawCustomEN3JPH5ColorE(ptr noundef nonnull align 8 dereferenceable(213) %0, i32 %.sroa.03.0.copyload)
  %13 = getelementptr inbounds i8, ptr %0, i64 344
  %14 = load i32, ptr %13, align 8, !tbaa !35
  switch i32 %14, label %28 [
    i32 0, label %.sink.split
    i32 1, label %15
  ]

15:                                               ; preds = %11
  br label %.sink.split

.sink.split:                                      ; preds = %11, %15
  %.sink21 = phi i64 [ 304, %15 ], [ 264, %11 ]
  %.sink20 = phi i64 [ 324, %15 ], [ 284, %11 ]
  %.sink13 = phi i64 [ 320, %15 ], [ 280, %11 ]
  %16 = tail call noundef ptr @_ZNK9UIElement10GetManagerEv(ptr noundef nonnull align 8 dereferenceable(144) %0)
  %17 = tail call noundef i32 @_ZNK9UIElement4GetXEv(ptr noundef nonnull align 8 dereferenceable(144) %0)
  %18 = tail call noundef i32 @_ZNK9UIElement4GetYEv(ptr noundef nonnull align 8 dereferenceable(144) %0)
  %19 = tail call noundef i32 @_ZNK9UIElement9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(144) %0)
  %20 = getelementptr inbounds i8, ptr %0, i64 %.sink21
  %21 = getelementptr inbounds i8, ptr %0, i64 %.sink20
  %22 = load i32, ptr %21, align 4, !tbaa !36
  %23 = sub nsw i32 %19, %22
  %24 = sdiv i32 %23, 2
  %25 = add nsw i32 %24, %18
  %26 = getelementptr inbounds i8, ptr %0, i64 %.sink13
  %27 = load i32, ptr %26, align 8, !tbaa !36
  tail call void @_ZN9UIManager8DrawQuadEiiiiRK14UITexturedQuadN3JPH5ColorE(ptr noundef nonnull align 8 dereferenceable(248) %16, i32 noundef %17, i32 noundef %25, i32 noundef %27, i32 noundef %22, ptr noundef nonnull align 8 dereferenceable(40) %20, i32 %.sroa.03.0.copyload)
  br label %28

28:                                               ; preds = %.sink.split, %11
  tail call void @_ZNK9UIElement4DrawEv(ptr noundef nonnull align 8 dereferenceable(144) %0)
  ret void
}

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

declare void @_ZNK12UIStaticText10DrawCustomEN3JPH5ColorE(ptr noundef nonnull align 8 dereferenceable(213), i32) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK9UIElement10GetManagerEv(ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #1 align 2

declare void @_ZN9UIManager8DrawQuadEiiiiRK14UITexturedQuadN3JPH5ColorE(ptr noundef nonnull align 8 dereferenceable(248), i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(40), i32) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK9UIElement4GetXEv(ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK9UIElement4GetYEv(ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK9UIElement9GetHeightEv(ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #0 align 2

declare void @_ZNK9UIElement4DrawEv(ptr noundef nonnull align 8 dereferenceable(144)) unnamed_addr #2

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

!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, !20, i64 348}
!6 = !{!"_ZTS10UICheckBox", !7, i64 0, !25, i64 216, !25, i64 220, !10, i64 224, !26, i64 232, !28, i64 264, !28, i64 304, !30, i64 344, !20, i64 348}
!7 = !{!"_ZTS12UIStaticText", !8, i64 0, !22, i64 144, !23, i64 152, !25, i64 184, !25, i64 188, !10, i64 192, !10, i64 196, !10, i64 200, !10, i64 204, !17, i64 208, !20, i64 212}
!8 = !{!"_ZTS9UIElement", !9, i64 0, !10, i64 8, !13, i64 16, !14, i64 24, !16, i64 48, !16, i64 60, !18, i64 72, !18, i64 80, !18, i64 88, !18, i64 96, !20, i64 104, !20, i64 105, !20, i64 106, !20, i64 107, !20, i64 108, !20, i64 109, !20, i64 110, !21, i64 112, !13, i64 136}
!9 = !{!"_ZTS15UIEventListener"}
!10 = !{!"int", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"any pointer", !11, i64 0}
!14 = !{!"_ZTSN3JPH5ArrayIP9UIElementNS_12STLAllocatorIS2_EEEE", !15, i64 0, !15, i64 8, !13, i64 16}
!15 = !{!"long", !11, i64 0}
!16 = !{!"_ZTSN9UIElement8PositionE", !17, i64 0, !18, i64 4}
!17 = !{!"_ZTSN9UIElement10EAlignmentE", !11, i64 0}
!18 = !{!"_ZTSN9UIElement4SizeE", !10, i64 0, !19, i64 4}
!19 = !{!"_ZTSN9UIElement6EUnitsE", !11, i64 0}
!20 = !{!"bool", !11, i64 0}
!21 = !{!"_ZTSN3JPH5ArrayIP11UIAnimationNS_12STLAllocatorIS2_EEEE", !15, i64 0, !15, i64 8, !13, i64 16}
!22 = !{!"_ZTSN3JPH8RefConstI4FontEE", !13, i64 0}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEE", !24, i64 0, !15, i64 8, !11, i64 16}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEE12_Alloc_hiderE", !13, i64 0}
!25 = !{!"_ZTSN3JPH5ColorE", !11, i64 0}
!26 = !{!"_ZTSSt8functionIFvN10UICheckBox6EStateEEE", !27, i64 0, !13, i64 24}
!27 = !{!"_ZTSSt14_Function_base", !11, i64 0, !13, i64 16}
!28 = !{!"_ZTS14UITexturedQuad", !29, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36}
!29 = !{!"_ZTSN3JPH8RefConstI7TextureEE", !13, i64 0}
!30 = !{!"_ZTSN10UICheckBox6EStateE", !11, i64 0}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = !{!8, !20, i64 106}
!34 = !{!11, !11, i64 0}
!35 = !{!6, !30, i64 344}
!36 = !{!10, !10, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass