; LLVM IR from DarrenSweeney/3D-Physics-Engine :: Physics Engine/Imgui/imgui.ll (ZN10ImDrawList8AddImageEPvRK6ImVec2S3_S3_S3_j)

; 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.ImVec2 = type { float, float }
%struct.ImDrawList = type { %class.ImVector.13, %class.ImVector.14, %class.ImVector.12, %class.ImVector.15, ptr }
%class.ImVector.13 = type { i64, i64, ptr }
%class.ImVector.14 = type { i64, i64, ptr }
%class.ImVector.12 = type { i64, i64, ptr }
%class.ImVector.15 = type { i64, i64, ptr }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) 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 uwtable
define dso_local void @_ZN10ImDrawList8AddImageEPvRK6ImVec2S3_S3_S3_j(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %5, i32 noundef %6) #2 align 2 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i8, align 1
  %16 = alloca %struct.ImVec2, align 4
  %17 = alloca %struct.ImVec2, align 4
  %18 = alloca %struct.ImVec2, align 4
  %19 = alloca %struct.ImVec2, align 4
  %20 = alloca %struct.ImVec2, align 4
  %21 = alloca %struct.ImVec2, align 4
  %22 = alloca %struct.ImVec2, align 4
  %23 = alloca %struct.ImVec2, align 4
  %24 = alloca %struct.ImVec2, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store i32 %6, ptr %14, align 4, !tbaa !9
  %25 = load ptr, ptr %8, align 8
  %26 = load i32, ptr %14, align 4, !tbaa !9
  %27 = lshr i32 %26, 24
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %29, label %30

29:                                               ; preds = %7
  br label %113

30:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #4
  %31 = getelementptr inbounds %struct.ImDrawList, ptr %25, i32 0, i32 3
  %32 = call noundef zeroext i1 @_ZNK8ImVectorIPvE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %31)
  br i1 %32, label %39, label %33

33:                                               ; preds = %30
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.ImDrawList, ptr %25, i32 0, i32 3
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIPvE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %35)
  %37 = load ptr, ptr %36, align 8, !tbaa !5
  %38 = icmp ne ptr %34, %37
  br label %39

39:                                               ; preds = %33, %30
  %40 = phi i1 [ true, %30 ], [ %38, %33 ]
  %41 = zext i1 %40 to i8
  store i8 %41, ptr %15, align 1, !tbaa !11
  %42 = load i8, ptr %15, align 1, !tbaa !11, !range !13, !noundef !14
  %43 = trunc i8 %42 to i1
  br i1 %43, label %44, label %45

44:                                               ; preds = %39
  call void @_ZN10ImDrawList13PushTextureIDERKPv(ptr noundef nonnull align 8 dereferenceable(104) %25, ptr noundef nonnull align 8 dereferenceable(8) %9)
  br label %45

45:                                               ; preds = %44, %39
  call void @_ZN10ImDrawList15ReserveVerticesEj(ptr noundef nonnull align 8 dereferenceable(104) %25, i32 noundef 6)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.ImVec2, ptr %46, i32 0, i32 0
  %48 = load float, ptr %47, align 4, !tbaa !15
  %49 = load ptr, ptr %10, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.ImVec2, ptr %49, i32 0, i32 1
  %51 = load float, ptr %50, align 4, !tbaa !18
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %16, float noundef %48, float noundef %51)
  %52 = load i32, ptr %14, align 4, !tbaa !9
  %53 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN10ImDrawList8AddVtxUVERK6ImVec2jS2_(ptr noundef nonnull align 8 dereferenceable(104) %25, ptr noundef nonnull align 4 dereferenceable(8) %16, i32 noundef %52, ptr noundef nonnull align 4 dereferenceable(8) %53)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.ImVec2, ptr %54, i32 0, i32 0
  %56 = load float, ptr %55, align 4, !tbaa !15
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.ImVec2, ptr %57, i32 0, i32 1
  %59 = load float, ptr %58, align 4, !tbaa !18
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %17, float noundef %56, float noundef %59)
  %60 = load i32, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %61 = load ptr, ptr %13, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.ImVec2, ptr %61, i32 0, i32 0
  %63 = load float, ptr %62, align 4, !tbaa !15
  %64 = load ptr, ptr %12, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.ImVec2, ptr %64, i32 0, i32 1
  %66 = load float, ptr %65, align 4, !tbaa !18
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %18, float noundef %63, float noundef %66)
  call void @_ZN10ImDrawList8AddVtxUVERK6ImVec2jS2_(ptr noundef nonnull align 8 dereferenceable(104) %25, ptr noundef nonnull align 4 dereferenceable(8) %17, i32 noundef %60, ptr noundef nonnull align 4 dereferenceable(8) %18)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.ImVec2, ptr %67, i32 0, i32 0
  %69 = load float, ptr %68, align 4, !tbaa !15
  %70 = load ptr, ptr %11, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.ImVec2, ptr %70, i32 0, i32 1
  %72 = load float, ptr %71, align 4, !tbaa !18
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %19, float noundef %69, float noundef %72)
  %73 = load i32, ptr %14, align 4, !tbaa !9
  %74 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN10ImDrawList8AddVtxUVERK6ImVec2jS2_(ptr noundef nonnull align 8 dereferenceable(104) %25, ptr noundef nonnull align 4 dereferenceable(8) %19, i32 noundef %73, ptr noundef nonnull align 4 dereferenceable(8) %74)
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %75 = load ptr, ptr %10, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.ImVec2, ptr %75, i32 0, i32 0
  %77 = load float, ptr %76, align 4, !tbaa !15
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.ImVec2, ptr %78, i32 0, i32 1
  %80 = load float, ptr %79, align 4, !tbaa !18
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %20, float noundef %77, float noundef %80)
  %81 = load i32, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %82 = load ptr, ptr %12, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.ImVec2, ptr %82, i32 0, i32 0
  %84 = load float, ptr %83, align 4, !tbaa !15
  %85 = load ptr, ptr %12, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.ImVec2, ptr %85, i32 0, i32 1
  %87 = load float, ptr %86, align 4, !tbaa !18
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %21, float noundef %84, float noundef %87)
  call void @_ZN10ImDrawList8AddVtxUVERK6ImVec2jS2_(ptr noundef nonnull align 8 dereferenceable(104) %25, ptr noundef nonnull align 4 dereferenceable(8) %20, i32 noundef %81, ptr noundef nonnull align 4 dereferenceable(8) %21)
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.ImVec2, ptr %88, i32 0, i32 0
  %90 = load float, ptr %89, align 4, !tbaa !15
  %91 = load ptr, ptr %11, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.ImVec2, ptr %91, i32 0, i32 1
  %93 = load float, ptr %92, align 4, !tbaa !18
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %22, float noundef %90, float noundef %93)
  %94 = load i32, ptr %14, align 4, !tbaa !9
  %95 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN10ImDrawList8AddVtxUVERK6ImVec2jS2_(ptr noundef nonnull align 8 dereferenceable(104) %25, ptr noundef nonnull align 4 dereferenceable(8) %22, i32 noundef %94, ptr noundef nonnull align 4 dereferenceable(8) %95)
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %96 = load ptr, ptr %10, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.ImVec2, ptr %96, i32 0, i32 0
  %98 = load float, ptr %97, align 4, !tbaa !15
  %99 = load ptr, ptr %11, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.ImVec2, ptr %99, i32 0, i32 1
  %101 = load float, ptr %100, align 4, !tbaa !18
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %23, float noundef %98, float noundef %101)
  %102 = load i32, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %103 = load ptr, ptr %12, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.ImVec2, ptr %103, i32 0, i32 0
  %105 = load float, ptr %104, align 4, !tbaa !15
  %106 = load ptr, ptr %13, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.ImVec2, ptr %106, i32 0, i32 1
  %108 = load float, ptr %107, align 4, !tbaa !18
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %24, float noundef %105, float noundef %108)
  call void @_ZN10ImDrawList8AddVtxUVERK6ImVec2jS2_(ptr noundef nonnull align 8 dereferenceable(104) %25, ptr noundef nonnull align 4 dereferenceable(8) %23, i32 noundef %102, ptr noundef nonnull align 4 dereferenceable(8) %24)
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  %109 = load i8, ptr %15, align 1, !tbaa !11, !range !13, !noundef !14
  %110 = trunc i8 %109 to i1
  br i1 %110, label %111, label %112

111:                                              ; preds = %45
  call void @_ZN10ImDrawList12PopTextureIDEv(ptr noundef nonnull align 8 dereferenceable(104) %25)
  br label %112

112:                                              ; preds = %111, %45
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #4
  br label %113

113:                                              ; preds = %112, %29
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10ImDrawList13PushTextureIDERKPv(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10ImDrawList12PopTextureIDEv(ptr noundef nonnull align 8 dereferenceable(104)) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10ImDrawList15ReserveVerticesEj(ptr noundef nonnull align 8 dereferenceable(104), i32 noundef) #2 align 2

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

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 = { 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 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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !17, i64 0}
!16 = !{!"_ZTS6ImVec2", !17, i64 0, !17, i64 4}
!17 = !{!"float", !7, i64 0}
!18 = !{!16, !17, 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"

%struct.ImVec2 = type { float, float }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) 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 uwtable
define dso_local void @_ZN10ImDrawList8AddImageEPvRK6ImVec2S3_S3_S3_j(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef %1, ptr nocapture noundef nonnull readonly align 4 dereferenceable(8) %2, ptr nocapture noundef nonnull readonly align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %5, i32 noundef %6) local_unnamed_addr #2 align 2 {
  %8 = alloca ptr, align 8
  %9 = alloca %struct.ImVec2, align 4
  %10 = alloca %struct.ImVec2, align 4
  %11 = alloca %struct.ImVec2, align 4
  %12 = alloca %struct.ImVec2, align 4
  %13 = alloca %struct.ImVec2, align 4
  %14 = alloca %struct.ImVec2, align 4
  %15 = alloca %struct.ImVec2, align 4
  %16 = alloca %struct.ImVec2, align 4
  %17 = alloca %struct.ImVec2, align 4
  store ptr %1, ptr %8, align 8, !tbaa !5
  %18 = icmp ult i32 %6, 16777216
  br i1 %18, label %50, label %19

19:                                               ; preds = %7
  %20 = getelementptr inbounds i8, ptr %0, i64 72
  %21 = tail call noundef zeroext i1 @_ZNK8ImVectorIPvE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %20)
  br i1 %21, label %.thread, label %22

22:                                               ; preds = %19
  %23 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIPvE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %20)
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  %.not = icmp eq ptr %24, %1
  br i1 %.not, label %25, label %.thread

.thread:                                          ; preds = %19, %22
  call void @_ZN10ImDrawList13PushTextureIDERKPv(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef nonnull align 8 dereferenceable(8) %8)
  br label %25

25:                                               ; preds = %.thread, %22
  %26 = phi i1 [ true, %.thread ], [ false, %22 ]
  call void @_ZN10ImDrawList15ReserveVerticesEj(ptr noundef nonnull align 8 dereferenceable(104) %0, i32 noundef 6)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %27 = load float, ptr %2, align 4, !tbaa !9
  %28 = getelementptr inbounds i8, ptr %2, i64 4
  %29 = load float, ptr %28, align 4, !tbaa !12
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %9, float noundef %27, float noundef %29)
  call void @_ZN10ImDrawList8AddVtxUVERK6ImVec2jS2_(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef nonnull align 4 dereferenceable(8) %9, i32 noundef %6, ptr noundef nonnull align 4 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  %30 = load float, ptr %3, align 4, !tbaa !9
  %31 = load float, ptr %28, align 4, !tbaa !12
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %10, float noundef %30, float noundef %31)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  %32 = load float, ptr %5, align 4, !tbaa !9
  %33 = getelementptr inbounds i8, ptr %4, i64 4
  %34 = load float, ptr %33, align 4, !tbaa !12
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %11, float noundef %32, float noundef %34)
  call void @_ZN10ImDrawList8AddVtxUVERK6ImVec2jS2_(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef nonnull align 4 dereferenceable(8) %10, i32 noundef %6, ptr noundef nonnull align 4 dereferenceable(8) %11)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  %35 = load float, ptr %3, align 4, !tbaa !9
  %36 = getelementptr inbounds i8, ptr %3, i64 4
  %37 = load float, ptr %36, align 4, !tbaa !12
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %12, float noundef %35, float noundef %37)
  call void @_ZN10ImDrawList8AddVtxUVERK6ImVec2jS2_(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef nonnull align 4 dereferenceable(8) %12, i32 noundef %6, ptr noundef nonnull align 4 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  %38 = load float, ptr %2, align 4, !tbaa !9
  %39 = load float, ptr %28, align 4, !tbaa !12
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %13, float noundef %38, float noundef %39)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #4
  %40 = load float, ptr %4, align 4, !tbaa !9
  %41 = load float, ptr %33, align 4, !tbaa !12
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %14, float noundef %40, float noundef %41)
  call void @_ZN10ImDrawList8AddVtxUVERK6ImVec2jS2_(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef nonnull align 4 dereferenceable(8) %13, i32 noundef %6, ptr noundef nonnull align 4 dereferenceable(8) %14)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #4
  %42 = load float, ptr %3, align 4, !tbaa !9
  %43 = load float, ptr %36, align 4, !tbaa !12
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %15, float noundef %42, float noundef %43)
  call void @_ZN10ImDrawList8AddVtxUVERK6ImVec2jS2_(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef nonnull align 4 dereferenceable(8) %15, i32 noundef %6, ptr noundef nonnull align 4 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #4
  %44 = load float, ptr %2, align 4, !tbaa !9
  %45 = load float, ptr %36, align 4, !tbaa !12
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %16, float noundef %44, float noundef %45)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #4
  %46 = load float, ptr %4, align 4, !tbaa !9
  %47 = getelementptr inbounds i8, ptr %5, i64 4
  %48 = load float, ptr %47, align 4, !tbaa !12
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %17, float noundef %46, float noundef %48)
  call void @_ZN10ImDrawList8AddVtxUVERK6ImVec2jS2_(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef nonnull align 4 dereferenceable(8) %16, i32 noundef %6, ptr noundef nonnull align 4 dereferenceable(8) %17)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #4
  br i1 %26, label %49, label %50

49:                                               ; preds = %25
  call void @_ZN10ImDrawList12PopTextureIDEv(ptr noundef nonnull align 8 dereferenceable(104) %0)
  br label %50

50:                                               ; preds = %25, %49, %7
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10ImDrawList13PushTextureIDERKPv(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10ImDrawList12PopTextureIDEv(ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8ImVectorIPvE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIPvE4backEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10ImDrawList15ReserveVerticesEj(ptr noundef nonnull align 8 dereferenceable(104), i32 noundef) local_unnamed_addr #2 align 2

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

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 = { 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 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 = { 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, !11, i64 0}
!10 = !{!"_ZTS6ImVec2", !11, i64 0, !11, i64 4}
!11 = !{!"float", !7, i64 0}
!12 = !{!10, !11, i64 4}


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