; LLVM IR from hadryansalles/Luz :: deps/imgui (imgui_draw)

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

%struct.ImDrawList = type <{ %struct.ImVector.0, %struct.ImVector.1, %struct.ImVector.2, i32, i32, ptr, ptr, ptr, ptr, %struct.ImVector.3, %struct.ImVector.4, %struct.ImVector, %struct.ImDrawCmdHeader, %struct.ImDrawListSplitter, float, [4 x i8] }>
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImVector.1 = type { i32, i32, ptr }
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImVector.3 = type { i32, i32, ptr }
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImVector = type { i32, i32, ptr }
%struct.ImDrawCmdHeader = type <{ %struct.ImVec4, ptr, i32, [4 x i8] }>
%struct.ImVec4 = type { float, float, float, float }
%struct.ImDrawListSplitter = type { i32, i32, %struct.ImVector.5 }
%struct.ImVector.5 = type { i32, i32, ptr }
%struct.ImDrawCmd = type { %struct.ImVec4, ptr, i32, i32, i32, ptr, ptr }
%struct.ImDrawVert = type { %struct.ImVec2, %struct.ImVec2, i32 }
%struct.ImVec2 = type { float, float }
%struct.ImDrawData = type { i8, i32, i32, i32, %struct.ImVector.11, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, ptr }
%struct.ImVector.11 = type { i32, i32, ptr }

@.str.1 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [115 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui23AddDrawListToDrawDataExEP10ImDrawDataP8ImVectorIP10ImDrawListES4_ = external hidden unnamed_addr constant [90 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [115 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [116 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN8ImVectorI9ImDrawCmdEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui23AddDrawListToDrawDataExEP10ImDrawDataP8ImVectorIP10ImDrawListES4_(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds %struct.ImDrawList, ptr %7, i32 0, i32 0
  %9 = getelementptr inbounds %struct.ImVector.0, ptr %8, i32 0, i32 0
  %10 = load i32, ptr %9, align 8, !tbaa !9
  %11 = icmp eq i32 %10, 0
  br i1 %11, label %12, label %13

12:                                               ; preds = %3
  br label %138

13:                                               ; preds = %3
  %14 = load ptr, ptr %6, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.ImDrawList, ptr %14, i32 0, i32 0
  %16 = getelementptr inbounds %struct.ImVector.0, ptr %15, i32 0, i32 0
  %17 = load i32, ptr %16, align 8, !tbaa !9
  %18 = icmp eq i32 %17, 1
  br i1 %18, label %19, label %34

19:                                               ; preds = %13
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.ImDrawList, ptr %20, i32 0, i32 0
  %22 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZN8ImVectorI9ImDrawCmdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %21, i32 noundef 0)
  %23 = getelementptr inbounds %struct.ImDrawCmd, ptr %22, i32 0, i32 4
  %24 = load i32, ptr %23, align 8, !tbaa !23
  %25 = icmp eq i32 %24, 0
  br i1 %25, label %26, label %34

26:                                               ; preds = %19
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.ImDrawList, ptr %27, i32 0, i32 0
  %29 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZN8ImVectorI9ImDrawCmdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %28, i32 noundef 0)
  %30 = getelementptr inbounds %struct.ImDrawCmd, ptr %29, i32 0, i32 5
  %31 = load ptr, ptr %30, align 8, !tbaa !25
  %32 = icmp eq ptr %31, null
  br i1 %32, label %33, label %34

33:                                               ; preds = %26
  br label %138

34:                                               ; preds = %26, %19, %13
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.ImDrawList, ptr %35, i32 0, i32 2
  %37 = getelementptr inbounds %struct.ImVector.2, ptr %36, i32 0, i32 0
  %38 = load i32, ptr %37, align 8, !tbaa !26
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %55, label %40

40:                                               ; preds = %34
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.ImDrawList, ptr %41, i32 0, i32 7
  %43 = load ptr, ptr %42, align 8, !tbaa !27
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.ImDrawList, ptr %44, i32 0, i32 2
  %46 = getelementptr inbounds %struct.ImVector.2, ptr %45, i32 0, i32 2
  %47 = load ptr, ptr %46, align 8, !tbaa !28
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.ImDrawList, ptr %48, i32 0, i32 2
  %50 = getelementptr inbounds %struct.ImVector.2, ptr %49, i32 0, i32 0
  %51 = load i32, ptr %50, align 8, !tbaa !26
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds %struct.ImDrawVert, ptr %47, i64 %52
  %54 = icmp eq ptr %43, %53
  br label %55

55:                                               ; preds = %40, %34
  %56 = phi i1 [ true, %34 ], [ %54, %40 ]
  br i1 %56, label %57, label %58

57:                                               ; preds = %55
  br label %60

58:                                               ; preds = %55
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.1, i32 noundef 1879, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui23AddDrawListToDrawDataExEP10ImDrawDataP8ImVectorIP10ImDrawListES4_) #4
  unreachable

59:                                               ; No predecessors!
  br label %60

60:                                               ; preds = %59, %57
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.ImDrawList, ptr %61, i32 0, i32 1
  %63 = getelementptr inbounds %struct.ImVector.1, ptr %62, i32 0, i32 0
  %64 = load i32, ptr %63, align 8, !tbaa !29
  %65 = icmp eq i32 %64, 0
  br i1 %65, label %81, label %66

66:                                               ; preds = %60
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.ImDrawList, ptr %67, i32 0, i32 8
  %69 = load ptr, ptr %68, align 8, !tbaa !30
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.ImDrawList, ptr %70, i32 0, i32 1
  %72 = getelementptr inbounds %struct.ImVector.1, ptr %71, i32 0, i32 2
  %73 = load ptr, ptr %72, align 8, !tbaa !31
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.ImDrawList, ptr %74, i32 0, i32 1
  %76 = getelementptr inbounds %struct.ImVector.1, ptr %75, i32 0, i32 0
  %77 = load i32, ptr %76, align 8, !tbaa !29
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds i16, ptr %73, i64 %78
  %80 = icmp eq ptr %69, %79
  br label %81

81:                                               ; preds = %66, %60
  %82 = phi i1 [ true, %60 ], [ %80, %66 ]
  br i1 %82, label %83, label %84

83:                                               ; preds = %81
  br label %86

84:                                               ; preds = %81
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.1, i32 noundef 1880, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui23AddDrawListToDrawDataExEP10ImDrawDataP8ImVectorIP10ImDrawListES4_) #4
  unreachable

85:                                               ; No predecessors!
  br label %86

86:                                               ; preds = %85, %83
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.ImDrawList, ptr %87, i32 0, i32 3
  %89 = load i32, ptr %88, align 8, !tbaa !32
  %90 = and i32 %89, 8
  %91 = icmp ne i32 %90, 0
  br i1 %91, label %105, label %92

92:                                               ; preds = %86
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.ImDrawList, ptr %93, i32 0, i32 4
  %95 = load i32, ptr %94, align 4, !tbaa !33
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.ImDrawList, ptr %96, i32 0, i32 2
  %98 = getelementptr inbounds %struct.ImVector.2, ptr %97, i32 0, i32 0
  %99 = load i32, ptr %98, align 8, !tbaa !26
  %100 = icmp eq i32 %95, %99
  br i1 %100, label %101, label %102

101:                                              ; preds = %92
  br label %104

102:                                              ; preds = %92
  call void @__assert_fail(ptr noundef @.str.11, ptr noundef @.str.1, i32 noundef 1882, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui23AddDrawListToDrawDataExEP10ImDrawDataP8ImVectorIP10ImDrawListES4_) #4
  unreachable

103:                                              ; No predecessors!
  br label %104

104:                                              ; preds = %103, %101
  br label %105

105:                                              ; preds = %104, %86
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.ImDrawList, ptr %106, i32 0, i32 4
  %108 = load i32, ptr %107, align 4, !tbaa !33
  %109 = icmp ult i32 %108, 65536
  br i1 %109, label %110, label %111

110:                                              ; preds = %105
  br label %111

111:                                              ; preds = %110, %105
  %112 = phi i1 [ false, %105 ], [ true, %110 ]
  br i1 %112, label %113, label %114

113:                                              ; preds = %111
  br label %116

114:                                              ; preds = %111
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.1, i32 noundef 1900, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui23AddDrawListToDrawDataExEP10ImDrawDataP8ImVectorIP10ImDrawListES4_) #4
  unreachable

115:                                              ; No predecessors!
  br label %116

116:                                              ; preds = %115, %113
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN8ImVectorIP10ImDrawListE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %117, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.ImDrawData, ptr %118, i32 0, i32 1
  %120 = load i32, ptr %119, align 4, !tbaa !34
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %119, align 4, !tbaa !34
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.ImDrawList, ptr %122, i32 0, i32 2
  %124 = getelementptr inbounds %struct.ImVector.2, ptr %123, i32 0, i32 0
  %125 = load i32, ptr %124, align 8, !tbaa !26
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.ImDrawData, ptr %126, i32 0, i32 3
  %128 = load i32, ptr %127, align 4, !tbaa !39
  %129 = add nsw i32 %128, %125
  store i32 %129, ptr %127, align 4, !tbaa !39
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.ImDrawList, ptr %130, i32 0, i32 1
  %132 = getelementptr inbounds %struct.ImVector.1, ptr %131, i32 0, i32 0
  %133 = load i32, ptr %132, align 8, !tbaa !29
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.ImDrawData, ptr %134, i32 0, i32 2
  %136 = load i32, ptr %135, align 8, !tbaa !40
  %137 = add nsw i32 %136, %133
  store i32 %137, ptr %135, align 8, !tbaa !40
  br label %138

138:                                              ; preds = %116, %33, %12
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorIP10ImDrawListE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

attributes #0 = { noreturn 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 #1 = { 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 #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 = { inlinehint 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 = { noreturn 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, !12, i64 0}
!10 = !{!"_ZTS10ImDrawList", !11, i64 0, !13, i64 16, !14, i64 32, !12, i64 48, !12, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !15, i64 88, !16, i64 104, !17, i64 120, !18, i64 136, !21, i64 168, !20, i64 192}
!11 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !12, i64 0, !12, i64 4, !6, i64 8}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTS8ImVectorItE", !12, i64 0, !12, i64 4, !6, i64 8}
!14 = !{!"_ZTS8ImVectorI10ImDrawVertE", !12, i64 0, !12, i64 4, !6, i64 8}
!15 = !{!"_ZTS8ImVectorI6ImVec4E", !12, i64 0, !12, i64 4, !6, i64 8}
!16 = !{!"_ZTS8ImVectorIPvE", !12, i64 0, !12, i64 4, !6, i64 8}
!17 = !{!"_ZTS8ImVectorI6ImVec2E", !12, i64 0, !12, i64 4, !6, i64 8}
!18 = !{!"_ZTS15ImDrawCmdHeader", !19, i64 0, !6, i64 16, !12, i64 24}
!19 = !{!"_ZTS6ImVec4", !20, i64 0, !20, i64 4, !20, i64 8, !20, i64 12}
!20 = !{!"float", !7, i64 0}
!21 = !{!"_ZTS18ImDrawListSplitter", !12, i64 0, !12, i64 4, !22, i64 8}
!22 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !12, i64 0, !12, i64 4, !6, i64 8}
!23 = !{!24, !12, i64 32}
!24 = !{!"_ZTS9ImDrawCmd", !19, i64 0, !6, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !6, i64 40, !6, i64 48}
!25 = !{!24, !6, i64 40}
!26 = !{!10, !12, i64 32}
!27 = !{!10, !6, i64 72}
!28 = !{!10, !6, i64 40}
!29 = !{!10, !12, i64 16}
!30 = !{!10, !6, i64 80}
!31 = !{!10, !6, i64 24}
!32 = !{!10, !12, i64 48}
!33 = !{!10, !12, i64 52}
!34 = !{!35, !12, i64 4}
!35 = !{!"_ZTS10ImDrawData", !36, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !37, i64 16, !38, i64 32, !38, i64 40, !38, i64 48, !6, i64 56}
!36 = !{!"bool", !7, i64 0}
!37 = !{!"_ZTS8ImVectorIP10ImDrawListE", !12, i64 0, !12, i64 4, !6, i64 8}
!38 = !{!"_ZTS6ImVec2", !20, i64 0, !20, i64 4}
!39 = !{!35, !12, i64 12}
!40 = !{!35, !12, i64 8}


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

%struct.ImDrawVert = type { %struct.ImVec2, %struct.ImVec2, i32 }
%struct.ImVec2 = type { float, float }

@.str.1 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [115 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui23AddDrawListToDrawDataExEP10ImDrawDataP8ImVectorIP10ImDrawListES4_ = external hidden unnamed_addr constant [90 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [115 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [116 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN8ImVectorI9ImDrawCmdEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui23AddDrawListToDrawDataExEP10ImDrawDataP8ImVectorIP10ImDrawListES4_(ptr nocapture noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #2 {
  %4 = alloca ptr, align 8
  store ptr %2, ptr %4, align 8, !tbaa !5
  %5 = load i32, ptr %2, align 8, !tbaa !9
  switch i32 %5, label %16 [
    i32 0, label %65
    i32 1, label %6
  ]

6:                                                ; preds = %3
  %7 = tail call noundef nonnull align 8 dereferenceable(56) ptr @_ZN8ImVectorI9ImDrawCmdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 0)
  %8 = getelementptr inbounds i8, ptr %7, i64 32
  %9 = load i32, ptr %8, align 8, !tbaa !23
  %10 = icmp eq i32 %9, 0
  br i1 %10, label %11, label %16

11:                                               ; preds = %6
  %12 = tail call noundef nonnull align 8 dereferenceable(56) ptr @_ZN8ImVectorI9ImDrawCmdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef 0)
  %13 = getelementptr inbounds i8, ptr %12, i64 40
  %14 = load ptr, ptr %13, align 8, !tbaa !25
  %15 = icmp eq ptr %14, null
  br i1 %15, label %65, label %16

16:                                               ; preds = %3, %11, %6
  %17 = getelementptr inbounds i8, ptr %2, i64 32
  %18 = load i32, ptr %17, align 8, !tbaa !26
  %19 = icmp eq i32 %18, 0
  br i1 %19, label %.critedge, label %20

20:                                               ; preds = %16
  %21 = getelementptr inbounds i8, ptr %2, i64 72
  %22 = load ptr, ptr %21, align 8, !tbaa !27
  %23 = getelementptr inbounds i8, ptr %2, i64 40
  %24 = load ptr, ptr %23, align 8, !tbaa !28
  %25 = sext i32 %18 to i64
  %26 = getelementptr inbounds %struct.ImDrawVert, ptr %24, i64 %25
  %27 = icmp eq ptr %22, %26
  br i1 %27, label %.critedge, label %28

28:                                               ; preds = %20
  tail call void @__assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.1, i32 noundef 1879, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui23AddDrawListToDrawDataExEP10ImDrawDataP8ImVectorIP10ImDrawListES4_) #4
  unreachable

.critedge:                                        ; preds = %16, %20
  %29 = getelementptr inbounds i8, ptr %2, i64 16
  %30 = load i32, ptr %29, align 8, !tbaa !29
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %.critedge2, label %32

32:                                               ; preds = %.critedge
  %33 = getelementptr inbounds i8, ptr %2, i64 80
  %34 = load ptr, ptr %33, align 8, !tbaa !30
  %35 = getelementptr inbounds i8, ptr %2, i64 24
  %36 = load ptr, ptr %35, align 8, !tbaa !31
  %37 = sext i32 %30 to i64
  %38 = getelementptr inbounds i16, ptr %36, i64 %37
  %39 = icmp eq ptr %34, %38
  br i1 %39, label %.critedge2, label %40

40:                                               ; preds = %32
  tail call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.1, i32 noundef 1880, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui23AddDrawListToDrawDataExEP10ImDrawDataP8ImVectorIP10ImDrawListES4_) #4
  unreachable

.critedge2:                                       ; preds = %.critedge, %32
  %41 = getelementptr inbounds i8, ptr %2, i64 48
  %42 = load i32, ptr %41, align 8, !tbaa !32
  %43 = and i32 %42, 8
  %.not = icmp eq i32 %43, 0
  %44 = getelementptr inbounds i8, ptr %2, i64 52
  %45 = load i32, ptr %44, align 4, !tbaa !33
  br i1 %.not, label %46, label %.critedge2._crit_edge

46:                                               ; preds = %.critedge2
  %47 = icmp eq i32 %45, %18
  br i1 %47, label %.critedge2._crit_edge, label %48

48:                                               ; preds = %46
  tail call void @__assert_fail(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.1, i32 noundef 1882, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui23AddDrawListToDrawDataExEP10ImDrawDataP8ImVectorIP10ImDrawListES4_) #4
  unreachable

.critedge2._crit_edge:                            ; preds = %.critedge2, %46
  %49 = phi i32 [ %18, %46 ], [ %45, %.critedge2 ]
  %50 = icmp ult i32 %49, 65536
  br i1 %50, label %52, label %51

51:                                               ; preds = %.critedge2._crit_edge
  tail call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.1, i32 noundef 1900, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui23AddDrawListToDrawDataExEP10ImDrawDataP8ImVectorIP10ImDrawListES4_) #4
  unreachable

52:                                               ; preds = %.critedge2._crit_edge
  call void @_ZN8ImVectorIP10ImDrawListE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %53 = getelementptr inbounds i8, ptr %0, i64 4
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %54, i64 32
  %56 = load i32, ptr %55, align 8, !tbaa !26
  %57 = getelementptr inbounds i8, ptr %0, i64 12
  %58 = load i32, ptr %57, align 4, !tbaa !34
  %59 = add nsw i32 %58, %56
  store i32 %59, ptr %57, align 4, !tbaa !34
  %60 = getelementptr inbounds i8, ptr %54, i64 16
  %61 = load i32, ptr %60, align 8, !tbaa !29
  %62 = load <2 x i32>, ptr %53, align 4, !tbaa !39
  %63 = insertelement <2 x i32> <i32 1, i32 poison>, i32 %61, i64 1
  %64 = add nsw <2 x i32> %62, %63
  store <2 x i32> %64, ptr %53, align 4, !tbaa !39
  br label %65

65:                                               ; preds = %3, %11, %52
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorIP10ImDrawListE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

attributes #0 = { noreturn 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 #1 = { 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 #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 = { inlinehint 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 = { noreturn 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, !12, i64 0}
!10 = !{!"_ZTS10ImDrawList", !11, i64 0, !13, i64 16, !14, i64 32, !12, i64 48, !12, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !15, i64 88, !16, i64 104, !17, i64 120, !18, i64 136, !21, i64 168, !20, i64 192}
!11 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !12, i64 0, !12, i64 4, !6, i64 8}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTS8ImVectorItE", !12, i64 0, !12, i64 4, !6, i64 8}
!14 = !{!"_ZTS8ImVectorI10ImDrawVertE", !12, i64 0, !12, i64 4, !6, i64 8}
!15 = !{!"_ZTS8ImVectorI6ImVec4E", !12, i64 0, !12, i64 4, !6, i64 8}
!16 = !{!"_ZTS8ImVectorIPvE", !12, i64 0, !12, i64 4, !6, i64 8}
!17 = !{!"_ZTS8ImVectorI6ImVec2E", !12, i64 0, !12, i64 4, !6, i64 8}
!18 = !{!"_ZTS15ImDrawCmdHeader", !19, i64 0, !6, i64 16, !12, i64 24}
!19 = !{!"_ZTS6ImVec4", !20, i64 0, !20, i64 4, !20, i64 8, !20, i64 12}
!20 = !{!"float", !7, i64 0}
!21 = !{!"_ZTS18ImDrawListSplitter", !12, i64 0, !12, i64 4, !22, i64 8}
!22 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !12, i64 0, !12, i64 4, !6, i64 8}
!23 = !{!24, !12, i64 32}
!24 = !{!"_ZTS9ImDrawCmd", !19, i64 0, !6, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !6, i64 40, !6, i64 48}
!25 = !{!24, !6, i64 40}
!26 = !{!10, !12, i64 32}
!27 = !{!10, !6, i64 72}
!28 = !{!10, !6, i64 40}
!29 = !{!10, !12, i64 16}
!30 = !{!10, !6, i64 80}
!31 = !{!10, !6, i64 24}
!32 = !{!10, !12, i64 48}
!33 = !{!10, !12, i64 52}
!34 = !{!35, !12, i64 12}
!35 = !{!"_ZTS10ImDrawData", !36, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !37, i64 16, !38, i64 32, !38, i64 40, !38, i64 48, !6, i64 56}
!36 = !{!"bool", !7, i64 0}
!37 = !{!"_ZTS8ImVectorIP10ImDrawListE", !12, i64 0, !12, i64 4, !6, i64 8}
!38 = !{!"_ZTS6ImVec2", !20, i64 0, !20, i64 4}
!39 = !{!12, !12, i64 0}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InstCombinePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass