; LLVM IR from xhub/reshop :: gui/external/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.ImVec4 = type { float, float, float, float }
%struct.ImDrawList = type { %struct.ImVector.0, %struct.ImVector.1, %struct.ImVector.2, i32, i32, ptr, ptr, ptr, %struct.ImVector, %struct.ImDrawCmdHeader, %struct.ImDrawListSplitter, %struct.ImVector.4, %struct.ImVector.5, %struct.ImVector.6, float, ptr }
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImVector.1 = type { i32, i32, ptr }
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImVector = type { i32, i32, ptr }
%struct.ImDrawCmdHeader = type <{ %struct.ImVec4, i64, i32, [4 x i8] }>
%struct.ImDrawListSplitter = type { i32, i32, %struct.ImVector.3 }
%struct.ImVector.3 = type { i32, i32, ptr }
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImVector.5 = type { i32, i32, ptr }
%struct.ImVector.6 = type { i32, i32, ptr }
%struct.ImDrawListSharedData = type <{ %struct.ImVec2, ptr, ptr, float, float, float, float, %struct.ImVec4, i32, [4 x i8], %struct.ImVector, [48 x %struct.ImVec2], float, [64 x i8], [4 x i8] }>
%struct.ImVec2 = type { float, float }
%struct.ImFont = type <{ %struct.ImVector.7, float, float, %struct.ImVector.1, %struct.ImVector.8, ptr, ptr, ptr, i16, i16, i16, i16, float, float, i8, [3 x i8], float, float, float, i32, [2 x i8], [2 x i8] }>
%struct.ImVector.7 = type { i32, i32, ptr }
%struct.ImVector.8 = type { i32, i32, ptr }
%struct.ImFontAtlas = type <{ i32, [4 x i8], i64, i32, i32, i8, [7 x i8], ptr, i8, i8, [6 x i8], ptr, ptr, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVector.9, %struct.ImVector.10, %struct.ImVector.11, [64 x %struct.ImVec4], ptr, i32, i32, i32, [4 x i8] }>
%struct.ImVector.9 = type { i32, i32, ptr }
%struct.ImVector.10 = type { i32, i32, ptr }
%struct.ImVector.11 = type { i32, i32, ptr }

@.str.1 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [52 x i8], align 1
@__PRETTY_FUNCTION__._ZN10ImDrawList7AddTextEP6ImFontfRK6ImVec2jPKcS6_fPK6ImVec4 = external hidden unnamed_addr constant [116 x i8], align 1

; 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 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef, float noundef) #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImMinIfET_S0_S0_(float noundef, float noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10ImDrawList7AddTextEP6ImFontfRK6ImVec2jPKcS6_fPK6ImVec4(ptr noundef nonnull align 8 dereferenceable(216) %0, ptr noundef %1, float noundef %2, ptr noundef nonnull align 4 dereferenceable(8) %3, i32 noundef %4, ptr noundef %5, ptr noundef %6, float noundef %7, ptr noundef %8) #4 align 2 {
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca float, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca float, align 4
  %18 = alloca ptr, align 8
  %19 = alloca %struct.ImVec4, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store float %2, ptr %12, align 4, !tbaa !9
  store ptr %3, ptr %13, align 8, !tbaa !5
  store i32 %4, ptr %14, align 4, !tbaa !11
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  store float %7, ptr %17, align 4, !tbaa !9
  store ptr %8, ptr %18, align 8, !tbaa !5
  %20 = load ptr, ptr %10, align 8
  %21 = load i32, ptr %14, align 4, !tbaa !11
  %22 = and i32 %21, -16777216
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %24, label %25

24:                                               ; preds = %9
  br label %117

25:                                               ; preds = %9
  %26 = load ptr, ptr %15, align 8, !tbaa !5
  %27 = load ptr, ptr %16, align 8, !tbaa !5
  %28 = icmp eq ptr %26, %27
  br i1 %28, label %35, label %29

29:                                               ; preds = %25
  %30 = load ptr, ptr %15, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %30, i64 0
  %32 = load i8, ptr %31, align 1, !tbaa !13
  %33 = sext i8 %32 to i32
  %34 = icmp eq i32 %33, 0
  br i1 %34, label %35, label %36

35:                                               ; preds = %29, %25
  br label %117

36:                                               ; preds = %29
  %37 = load ptr, ptr %16, align 8, !tbaa !5
  %38 = icmp eq ptr %37, null
  br i1 %38, label %39, label %44

39:                                               ; preds = %36
  %40 = load ptr, ptr %15, align 8, !tbaa !5
  %41 = load ptr, ptr %15, align 8, !tbaa !5
  %42 = call i64 @strlen(ptr noundef %41) #6
  %43 = getelementptr inbounds i8, ptr %40, i64 %42
  store ptr %43, ptr %16, align 8, !tbaa !5
  br label %44

44:                                               ; preds = %39, %36
  %45 = load ptr, ptr %11, align 8, !tbaa !5
  %46 = icmp eq ptr %45, null
  br i1 %46, label %47, label %52

47:                                               ; preds = %44
  %48 = getelementptr inbounds %struct.ImDrawList, ptr %20, i32 0, i32 5
  %49 = load ptr, ptr %48, align 8, !tbaa !14
  %50 = getelementptr inbounds %struct.ImDrawListSharedData, ptr %49, i32 0, i32 2
  %51 = load ptr, ptr %50, align 8, !tbaa !28
  store ptr %51, ptr %11, align 8, !tbaa !5
  br label %52

52:                                               ; preds = %47, %44
  %53 = load float, ptr %12, align 4, !tbaa !9
  %54 = fcmp oeq float %53, 0.000000e+00
  br i1 %54, label %55, label %60

55:                                               ; preds = %52
  %56 = getelementptr inbounds %struct.ImDrawList, ptr %20, i32 0, i32 5
  %57 = load ptr, ptr %56, align 8, !tbaa !14
  %58 = getelementptr inbounds %struct.ImDrawListSharedData, ptr %57, i32 0, i32 3
  %59 = load float, ptr %58, align 8, !tbaa !31
  store float %59, ptr %12, align 4, !tbaa !9
  br label %60

60:                                               ; preds = %55, %52
  %61 = load ptr, ptr %11, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.ImFont, ptr %61, i32 0, i32 6
  %63 = load ptr, ptr %62, align 8, !tbaa !32
  %64 = getelementptr inbounds %struct.ImFontAtlas, ptr %63, i32 0, i32 2
  %65 = load i64, ptr %64, align 8, !tbaa !38
  %66 = getelementptr inbounds %struct.ImDrawList, ptr %20, i32 0, i32 9
  %67 = getelementptr inbounds %struct.ImDrawCmdHeader, ptr %66, i32 0, i32 1
  %68 = load i64, ptr %67, align 8, !tbaa !43
  %69 = icmp eq i64 %65, %68
  br i1 %69, label %70, label %71

70:                                               ; preds = %60
  br label %73

71:                                               ; preds = %60
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 1681, ptr noundef @__PRETTY_FUNCTION__._ZN10ImDrawList7AddTextEP6ImFontfRK6ImVec2jPKcS6_fPK6ImVec4) #7
  unreachable

72:                                               ; No predecessors!
  br label %73

73:                                               ; preds = %72, %70
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #8
  %74 = getelementptr inbounds %struct.ImDrawList, ptr %20, i32 0, i32 9
  %75 = getelementptr inbounds %struct.ImDrawCmdHeader, ptr %74, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 8 %75, i64 16, i1 false), !tbaa.struct !44
  %76 = load ptr, ptr %18, align 8, !tbaa !5
  %77 = icmp ne ptr %76, null
  br i1 %77, label %78, label %107

78:                                               ; preds = %73
  %79 = getelementptr inbounds %struct.ImVec4, ptr %19, i32 0, i32 0
  %80 = load float, ptr %79, align 4, !tbaa !45
  %81 = load ptr, ptr %18, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.ImVec4, ptr %81, i32 0, i32 0
  %83 = load float, ptr %82, align 4, !tbaa !45
  %84 = call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef %80, float noundef %83)
  %85 = getelementptr inbounds %struct.ImVec4, ptr %19, i32 0, i32 0
  store float %84, ptr %85, align 4, !tbaa !45
  %86 = getelementptr inbounds %struct.ImVec4, ptr %19, i32 0, i32 1
  %87 = load float, ptr %86, align 4, !tbaa !46
  %88 = load ptr, ptr %18, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.ImVec4, ptr %88, i32 0, i32 1
  %90 = load float, ptr %89, align 4, !tbaa !46
  %91 = call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef %87, float noundef %90)
  %92 = getelementptr inbounds %struct.ImVec4, ptr %19, i32 0, i32 1
  store float %91, ptr %92, align 4, !tbaa !46
  %93 = getelementptr inbounds %struct.ImVec4, ptr %19, i32 0, i32 2
  %94 = load float, ptr %93, align 4, !tbaa !47
  %95 = load ptr, ptr %18, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.ImVec4, ptr %95, i32 0, i32 2
  %97 = load float, ptr %96, align 4, !tbaa !47
  %98 = call noundef float @_ZL5ImMinIfET_S0_S0_(float noundef %94, float noundef %97)
  %99 = getelementptr inbounds %struct.ImVec4, ptr %19, i32 0, i32 2
  store float %98, ptr %99, align 4, !tbaa !47
  %100 = getelementptr inbounds %struct.ImVec4, ptr %19, i32 0, i32 3
  %101 = load float, ptr %100, align 4, !tbaa !48
  %102 = load ptr, ptr %18, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.ImVec4, ptr %102, i32 0, i32 3
  %104 = load float, ptr %103, align 4, !tbaa !48
  %105 = call noundef float @_ZL5ImMinIfET_S0_S0_(float noundef %101, float noundef %104)
  %106 = getelementptr inbounds %struct.ImVec4, ptr %19, i32 0, i32 3
  store float %105, ptr %106, align 4, !tbaa !48
  br label %107

107:                                              ; preds = %78, %73
  %108 = load ptr, ptr %11, align 8, !tbaa !5
  %109 = load float, ptr %12, align 4, !tbaa !9
  %110 = load ptr, ptr %13, align 8, !tbaa !5
  %111 = load i32, ptr %14, align 4, !tbaa !11
  %112 = load ptr, ptr %15, align 8, !tbaa !5
  %113 = load ptr, ptr %16, align 8, !tbaa !5
  %114 = load float, ptr %17, align 4, !tbaa !9
  %115 = load ptr, ptr %18, align 8, !tbaa !5
  %116 = icmp ne ptr %115, null
  call void @_ZN6ImFont10RenderTextEP10ImDrawListfRK6ImVec2jRK6ImVec4PKcS9_fb(ptr noundef nonnull align 8 dereferenceable(118) %108, ptr noundef %20, float noundef %109, ptr noundef nonnull align 4 dereferenceable(8) %110, i32 noundef %111, ptr noundef nonnull align 4 dereferenceable(16) %19, ptr noundef %112, ptr noundef %113, float noundef %114, i1 noundef zeroext %116)
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #8
  br label %117

117:                                              ; preds = %107, %35, %24
  ret void
}

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImFont10RenderTextEP10ImDrawListfRK6ImVec2jRK6ImVec4PKcS9_fb(ptr noundef nonnull align 8 dereferenceable(118), ptr noundef, float noundef, ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef, ptr noundef, float noundef, i1 noundef zeroext) #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree 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 = { 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 #4 = { 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 #5 = { nounwind willreturn memory(read) "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 #6 = { nounwind willreturn memory(read) }
attributes #7 = { noreturn nounwind }
attributes #8 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !6, i64 56}
!15 = !{!"_ZTS10ImDrawList", !16, i64 0, !17, i64 16, !18, i64 32, !12, i64 48, !12, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !19, i64 80, !20, i64 96, !23, i64 128, !25, i64 152, !26, i64 168, !27, i64 184, !10, i64 200, !6, i64 208}
!16 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !12, i64 0, !12, i64 4, !6, i64 8}
!17 = !{!"_ZTS8ImVectorItE", !12, i64 0, !12, i64 4, !6, i64 8}
!18 = !{!"_ZTS8ImVectorI10ImDrawVertE", !12, i64 0, !12, i64 4, !6, i64 8}
!19 = !{!"_ZTS8ImVectorI6ImVec2E", !12, i64 0, !12, i64 4, !6, i64 8}
!20 = !{!"_ZTS15ImDrawCmdHeader", !21, i64 0, !22, i64 16, !12, i64 24}
!21 = !{!"_ZTS6ImVec4", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!22 = !{!"long long", !7, i64 0}
!23 = !{!"_ZTS18ImDrawListSplitter", !12, i64 0, !12, i64 4, !24, i64 8}
!24 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !12, i64 0, !12, i64 4, !6, i64 8}
!25 = !{!"_ZTS8ImVectorI6ImVec4E", !12, i64 0, !12, i64 4, !6, i64 8}
!26 = !{!"_ZTS8ImVectorIyE", !12, i64 0, !12, i64 4, !6, i64 8}
!27 = !{!"_ZTS8ImVectorIhE", !12, i64 0, !12, i64 4, !6, i64 8}
!28 = !{!29, !6, i64 16}
!29 = !{!"_ZTS20ImDrawListSharedData", !30, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !21, i64 40, !12, i64 56, !19, i64 64, !7, i64 80, !10, i64 464, !7, i64 468}
!30 = !{!"_ZTS6ImVec2", !10, i64 0, !10, i64 4}
!31 = !{!29, !10, i64 24}
!32 = !{!33, !6, i64 64}
!33 = !{!"_ZTS6ImFont", !34, i64 0, !10, i64 16, !10, i64 20, !17, i64 24, !35, i64 40, !6, i64 56, !6, i64 64, !6, i64 72, !36, i64 80, !36, i64 82, !36, i64 84, !36, i64 86, !10, i64 88, !10, i64 92, !37, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !12, i64 112, !7, i64 116}
!34 = !{!"_ZTS8ImVectorIfE", !12, i64 0, !12, i64 4, !6, i64 8}
!35 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !12, i64 0, !12, i64 4, !6, i64 8}
!36 = !{!"short", !7, i64 0}
!37 = !{!"bool", !7, i64 0}
!38 = !{!39, !22, i64 8}
!39 = !{!"_ZTS11ImFontAtlas", !12, i64 0, !22, i64 8, !12, i64 16, !12, i64 20, !37, i64 24, !6, i64 32, !37, i64 40, !37, i64 41, !6, i64 48, !6, i64 56, !12, i64 64, !12, i64 68, !30, i64 72, !30, i64 80, !40, i64 88, !41, i64 104, !42, i64 120, !7, i64 136, !6, i64 1160, !12, i64 1168, !12, i64 1172, !12, i64 1176}
!40 = !{!"_ZTS8ImVectorIP6ImFontE", !12, i64 0, !12, i64 4, !6, i64 8}
!41 = !{!"_ZTS8ImVectorI21ImFontAtlasCustomRectE", !12, i64 0, !12, i64 4, !6, i64 8}
!42 = !{!"_ZTS8ImVectorI12ImFontConfigE", !12, i64 0, !12, i64 4, !6, i64 8}
!43 = !{!15, !22, i64 112}
!44 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 12, i64 4, !9}
!45 = !{!21, !10, i64 0}
!46 = !{!21, !10, i64 4}
!47 = !{!21, !10, i64 8}
!48 = !{!21, !10, i64 12}


; 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.ImVec4 = type { float, float, float, float }

@.str.1 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [52 x i8], align 1
@__PRETTY_FUNCTION__._ZN10ImDrawList7AddTextEP6ImFontfRK6ImVec2jPKcS6_fPK6ImVec4 = external hidden unnamed_addr constant [116 x i8], align 1

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

; Function Attrs: mustprogress nocallback nofree 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef, float noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImMinIfET_S0_S0_(float noundef, float noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10ImDrawList7AddTextEP6ImFontfRK6ImVec2jPKcS6_fPK6ImVec4(ptr noundef nonnull align 8 dereferenceable(216) %0, ptr noundef %1, float noundef %2, ptr noundef nonnull align 4 dereferenceable(8) %3, i32 noundef %4, ptr noundef %5, ptr noundef %6, float noundef %7, ptr noundef readonly %8) local_unnamed_addr #4 align 2 {
  %10 = alloca %struct.ImVec4, align 4
  %11 = icmp ult i32 %4, 16777216
  %12 = icmp eq ptr %5, %6
  %or.cond = or i1 %11, %12
  br i1 %or.cond, label %67, label %13

13:                                               ; preds = %9
  %14 = load i8, ptr %5, align 1, !tbaa !5
  %15 = icmp eq i8 %14, 0
  br i1 %15, label %67, label %16

16:                                               ; preds = %13
  %17 = icmp eq ptr %6, null
  br i1 %17, label %18, label %21

18:                                               ; preds = %16
  %19 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %5) #6
  %20 = getelementptr inbounds i8, ptr %5, i64 %19
  br label %21

21:                                               ; preds = %18, %16
  %.024 = phi ptr [ %20, %18 ], [ %6, %16 ]
  %22 = icmp eq ptr %1, null
  br i1 %22, label %23, label %28

23:                                               ; preds = %21
  %24 = getelementptr inbounds i8, ptr %0, i64 56
  %25 = load ptr, ptr %24, align 8, !tbaa !8
  %26 = getelementptr inbounds i8, ptr %25, i64 16
  %27 = load ptr, ptr %26, align 8, !tbaa !25
  br label %28

28:                                               ; preds = %23, %21
  %.0 = phi ptr [ %27, %23 ], [ %1, %21 ]
  %29 = fcmp oeq float %2, 0.000000e+00
  br i1 %29, label %30, label %35

30:                                               ; preds = %28
  %31 = getelementptr inbounds i8, ptr %0, i64 56
  %32 = load ptr, ptr %31, align 8, !tbaa !8
  %33 = getelementptr inbounds i8, ptr %32, i64 24
  %34 = load float, ptr %33, align 8, !tbaa !28
  br label %35

35:                                               ; preds = %30, %28
  %.023 = phi float [ %34, %30 ], [ %2, %28 ]
  %36 = getelementptr inbounds i8, ptr %.0, i64 64
  %37 = load ptr, ptr %36, align 8, !tbaa !29
  %38 = getelementptr inbounds i8, ptr %37, i64 8
  %39 = load i64, ptr %38, align 8, !tbaa !35
  %40 = getelementptr inbounds i8, ptr %0, i64 112
  %41 = load i64, ptr %40, align 8, !tbaa !40
  %42 = icmp eq i64 %39, %41
  br i1 %42, label %44, label %43

43:                                               ; preds = %35
  tail call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, i32 noundef 1681, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN10ImDrawList7AddTextEP6ImFontfRK6ImVec2jPKcS6_fPK6ImVec4) #7
  unreachable

44:                                               ; preds = %35
  %45 = getelementptr inbounds i8, ptr %0, i64 96
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %45, i64 16, i1 false), !tbaa.struct !41
  %46 = icmp ne ptr %8, null
  br i1 %46, label %47, label %66

47:                                               ; preds = %44
  %48 = load float, ptr %10, align 4, !tbaa !43
  %49 = load float, ptr %8, align 4, !tbaa !43
  %50 = tail call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef %48, float noundef %49)
  store float %50, ptr %10, align 4, !tbaa !43
  %51 = getelementptr inbounds i8, ptr %10, i64 4
  %52 = load float, ptr %51, align 4, !tbaa !44
  %53 = getelementptr inbounds i8, ptr %8, i64 4
  %54 = load float, ptr %53, align 4, !tbaa !44
  %55 = tail call noundef float @_ZL5ImMaxIfET_S0_S0_(float noundef %52, float noundef %54)
  store float %55, ptr %51, align 4, !tbaa !44
  %56 = getelementptr inbounds i8, ptr %10, i64 8
  %57 = load float, ptr %56, align 4, !tbaa !45
  %58 = getelementptr inbounds i8, ptr %8, i64 8
  %59 = load float, ptr %58, align 4, !tbaa !45
  %60 = tail call noundef float @_ZL5ImMinIfET_S0_S0_(float noundef %57, float noundef %59)
  store float %60, ptr %56, align 4, !tbaa !45
  %61 = getelementptr inbounds i8, ptr %10, i64 12
  %62 = load float, ptr %61, align 4, !tbaa !46
  %63 = getelementptr inbounds i8, ptr %8, i64 12
  %64 = load float, ptr %63, align 4, !tbaa !46
  %65 = tail call noundef float @_ZL5ImMinIfET_S0_S0_(float noundef %62, float noundef %64)
  store float %65, ptr %61, align 4, !tbaa !46
  br label %66

66:                                               ; preds = %47, %44
  call void @_ZN6ImFont10RenderTextEP10ImDrawListfRK6ImVec2jRK6ImVec4PKcS9_fb(ptr noundef nonnull align 8 dereferenceable(118) %.0, ptr noundef nonnull %0, float noundef %.023, ptr noundef nonnull align 4 dereferenceable(8) %3, i32 noundef %4, ptr noundef nonnull align 4 dereferenceable(16) %10, ptr noundef nonnull %5, ptr noundef %.024, float noundef %7, i1 noundef zeroext %46)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  br label %67

67:                                               ; preds = %13, %9, %66
  ret void
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImFont10RenderTextEP10ImDrawListfRK6ImVec2jRK6ImVec4PKcS9_fb(ptr noundef nonnull align 8 dereferenceable(118), ptr noundef, float noundef, ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef, ptr noundef, float noundef, i1 noundef zeroext) local_unnamed_addr #4 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree 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 = { 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 #4 = { 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 #5 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 #6 = { nounwind willreturn memory(read) }
attributes #7 = { noreturn nounwind }
attributes #8 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !12, i64 56}
!9 = !{!"_ZTS10ImDrawList", !10, i64 0, !13, i64 16, !14, i64 32, !11, i64 48, !11, i64 52, !12, i64 56, !12, i64 64, !12, i64 72, !15, i64 80, !16, i64 96, !20, i64 128, !22, i64 152, !23, i64 168, !24, i64 184, !18, i64 200, !12, i64 208}
!10 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !11, i64 0, !11, i64 4, !12, i64 8}
!11 = !{!"int", !6, i64 0}
!12 = !{!"any pointer", !6, i64 0}
!13 = !{!"_ZTS8ImVectorItE", !11, i64 0, !11, i64 4, !12, i64 8}
!14 = !{!"_ZTS8ImVectorI10ImDrawVertE", !11, i64 0, !11, i64 4, !12, i64 8}
!15 = !{!"_ZTS8ImVectorI6ImVec2E", !11, i64 0, !11, i64 4, !12, i64 8}
!16 = !{!"_ZTS15ImDrawCmdHeader", !17, i64 0, !19, i64 16, !11, i64 24}
!17 = !{!"_ZTS6ImVec4", !18, i64 0, !18, i64 4, !18, i64 8, !18, i64 12}
!18 = !{!"float", !6, i64 0}
!19 = !{!"long long", !6, i64 0}
!20 = !{!"_ZTS18ImDrawListSplitter", !11, i64 0, !11, i64 4, !21, i64 8}
!21 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !11, i64 0, !11, i64 4, !12, i64 8}
!22 = !{!"_ZTS8ImVectorI6ImVec4E", !11, i64 0, !11, i64 4, !12, i64 8}
!23 = !{!"_ZTS8ImVectorIyE", !11, i64 0, !11, i64 4, !12, i64 8}
!24 = !{!"_ZTS8ImVectorIhE", !11, i64 0, !11, i64 4, !12, i64 8}
!25 = !{!26, !12, i64 16}
!26 = !{!"_ZTS20ImDrawListSharedData", !27, i64 0, !12, i64 8, !12, i64 16, !18, i64 24, !18, i64 28, !18, i64 32, !18, i64 36, !17, i64 40, !11, i64 56, !15, i64 64, !6, i64 80, !18, i64 464, !6, i64 468}
!27 = !{!"_ZTS6ImVec2", !18, i64 0, !18, i64 4}
!28 = !{!26, !18, i64 24}
!29 = !{!30, !12, i64 64}
!30 = !{!"_ZTS6ImFont", !31, i64 0, !18, i64 16, !18, i64 20, !13, i64 24, !32, i64 40, !12, i64 56, !12, i64 64, !12, i64 72, !33, i64 80, !33, i64 82, !33, i64 84, !33, i64 86, !18, i64 88, !18, i64 92, !34, i64 96, !18, i64 100, !18, i64 104, !18, i64 108, !11, i64 112, !6, i64 116}
!31 = !{!"_ZTS8ImVectorIfE", !11, i64 0, !11, i64 4, !12, i64 8}
!32 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !11, i64 0, !11, i64 4, !12, i64 8}
!33 = !{!"short", !6, i64 0}
!34 = !{!"bool", !6, i64 0}
!35 = !{!36, !19, i64 8}
!36 = !{!"_ZTS11ImFontAtlas", !11, i64 0, !19, i64 8, !11, i64 16, !11, i64 20, !34, i64 24, !12, i64 32, !34, i64 40, !34, i64 41, !12, i64 48, !12, i64 56, !11, i64 64, !11, i64 68, !27, i64 72, !27, i64 80, !37, i64 88, !38, i64 104, !39, i64 120, !6, i64 136, !12, i64 1160, !11, i64 1168, !11, i64 1172, !11, i64 1176}
!37 = !{!"_ZTS8ImVectorIP6ImFontE", !11, i64 0, !11, i64 4, !12, i64 8}
!38 = !{!"_ZTS8ImVectorI21ImFontAtlasCustomRectE", !11, i64 0, !11, i64 4, !12, i64 8}
!39 = !{!"_ZTS8ImVectorI12ImFontConfigE", !11, i64 0, !11, i64 4, !12, i64 8}
!40 = !{!9, !19, i64 112}
!41 = !{i64 0, i64 4, !42, i64 4, i64 4, !42, i64 8, i64 4, !42, i64 12, i64 4, !42}
!42 = !{!18, !18, i64 0}
!43 = !{!17, !18, i64 0}
!44 = !{!17, !18, i64 4}
!45 = !{!17, !18, i64 8}
!46 = !{!17, !18, i64 12}


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