; LLVM IR from vectozavr/3dzavr :: engine/io/microui (microui)

; 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.mu_Color = type { i8, i8, i8, i8 }
%struct.mu_Rect = type { i32, i32, i32, i32 }
%struct.mu_Vec2 = type { i32, i32 }
%struct.mu_Context = type { ptr, ptr, ptr, %struct.mu_Style, ptr, i32, i32, i32, %struct.mu_Rect, i32, i32, i32, ptr, ptr, ptr, [127 x i8], i32, %struct.anon, %struct.anon.0, %struct.anon.1, %struct.anon.2, %struct.anon.3, %struct.anon.4, [48 x %struct.mu_PoolItem], [48 x %struct.mu_Container], [48 x %struct.mu_PoolItem], %struct.mu_Vec2, %struct.mu_Vec2, %struct.mu_Vec2, %struct.mu_Vec2, i32, i32, i32, i32, [32 x i8] }
%struct.mu_Style = type { ptr, %struct.mu_Vec2, i32, i32, i32, i32, i32, i32, [14 x %struct.mu_Color] }
%struct.anon = type { i32, [262144 x i8] }
%struct.anon.0 = type { i32, [32 x ptr] }
%struct.anon.1 = type { i32, [32 x ptr] }
%struct.anon.2 = type { i32, [32 x %struct.mu_Rect] }
%struct.anon.3 = type { i32, [32 x i32] }
%struct.anon.4 = type { i32, [16 x %struct.mu_Layout] }
%struct.mu_Layout = type { %struct.mu_Rect, %struct.mu_Rect, %struct.mu_Vec2, %struct.mu_Vec2, %struct.mu_Vec2, [16 x i32], i32, i32, i32, i32, i32 }
%struct.mu_Container = type { ptr, ptr, %struct.mu_Rect, %struct.mu_Rect, %struct.mu_Vec2, %struct.mu_Vec2, i32, i32 }
%struct.mu_PoolItem = type { i32, i32 }

; Function Attrs: nounwind uwtable
declare dso_local i64 @mu_vec2(i32 noundef, i32 noundef) #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.start.p0(i64 immarg, ptr nocapture) #2

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

; Function Attrs: nounwind uwtable
declare dso_local void @mu_draw_text(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i64, i32) #0

; Function Attrs: nounwind uwtable
declare dso_local void @mu_layout_begin_column(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local { i64, i64 } @mu_layout_next(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @mu_layout_end_column(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @mu_layout_row(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
define dso_local void @mu_text(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca %struct.mu_Color, align 1
  %11 = alloca %struct.mu_Rect, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %struct.mu_Vec2, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %16, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 -1, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.mu_Context, ptr %17, i32 0, i32 4
  %19 = load ptr, ptr %18, align 8, !tbaa !11
  %20 = getelementptr inbounds %struct.mu_Style, ptr %19, i32 0, i32 0
  %21 = load ptr, ptr %20, align 8, !tbaa !18
  store ptr %21, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.mu_Context, ptr %22, i32 0, i32 4
  %24 = load ptr, ptr %23, align 8, !tbaa !11
  %25 = getelementptr inbounds %struct.mu_Style, ptr %24, i32 0, i32 8
  %26 = getelementptr inbounds [14 x %struct.mu_Color], ptr %25, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %10, ptr align 8 %26, i64 4, i1 false), !tbaa.struct !19
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  call void @mu_layout_begin_column(ptr noundef %27)
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.mu_Context, ptr %29, i32 0, i32 1
  %31 = load ptr, ptr %30, align 8, !tbaa !21
  %32 = load ptr, ptr %9, align 8, !tbaa !5
  %33 = call i32 %31(ptr noundef %32)
  call void @mu_layout_row(ptr noundef %28, i32 noundef 1, ptr noundef %8, i32 noundef %33)
  br label %34

34:                                               ; preds = %133, %2
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #3
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = call { i64, i64 } @mu_layout_next(ptr noundef %35)
  %37 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 0
  %38 = extractvalue { i64, i64 } %36, 0
  store i64 %38, ptr %37, align 4
  %39 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 1
  %40 = extractvalue { i64, i64 } %36, 1
  store i64 %40, ptr %39, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  store i32 0, ptr %12, align 4, !tbaa !9
  %41 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %41, ptr %6, align 8, !tbaa !5
  store ptr %41, ptr %5, align 8, !tbaa !5
  br label %42

42:                                               ; preds = %112, %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %43, ptr %13, align 8, !tbaa !5
  br label %44

44:                                               ; preds = %61, %42
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = load i8, ptr %45, align 1, !tbaa !20
  %47 = sext i8 %46 to i32
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %49, label %59

49:                                               ; preds = %44
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = load i8, ptr %50, align 1, !tbaa !20
  %52 = sext i8 %51 to i32
  %53 = icmp ne i32 %52, 32
  br i1 %53, label %54, label %59

54:                                               ; preds = %49
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = load i8, ptr %55, align 1, !tbaa !20
  %57 = sext i8 %56 to i32
  %58 = icmp ne i32 %57, 10
  br label %59

59:                                               ; preds = %54, %49, %44
  %60 = phi i1 [ false, %49 ], [ false, %44 ], [ %58, %54 ]
  br i1 %60, label %61, label %64

61:                                               ; preds = %59
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %62, i32 1
  store ptr %63, ptr %7, align 8, !tbaa !5
  br label %44, !llvm.loop !22

64:                                               ; preds = %59
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.mu_Context, ptr %65, i32 0, i32 0
  %67 = load ptr, ptr %66, align 8, !tbaa !24
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  %69 = load ptr, ptr %13, align 8, !tbaa !5
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = load ptr, ptr %13, align 8, !tbaa !5
  %72 = ptrtoint ptr %70 to i64
  %73 = ptrtoint ptr %71 to i64
  %74 = sub i64 %72, %73
  %75 = trunc i64 %74 to i32
  %76 = call i32 %67(ptr noundef %68, ptr noundef %69, i32 noundef %75)
  %77 = load i32, ptr %12, align 4, !tbaa !9
  %78 = add nsw i32 %77, %76
  store i32 %78, ptr %12, align 4, !tbaa !9
  %79 = load i32, ptr %12, align 4, !tbaa !9
  %80 = getelementptr inbounds %struct.mu_Rect, ptr %11, i32 0, i32 2
  %81 = load i32, ptr %80, align 4, !tbaa !25
  %82 = icmp sgt i32 %79, %81
  br i1 %82, label %83, label %88

83:                                               ; preds = %64
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = icmp ne ptr %84, %85
  br i1 %86, label %87, label %88

87:                                               ; preds = %83
  store i32 4, ptr %14, align 4
  br label %99

88:                                               ; preds = %83, %64
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.mu_Context, ptr %89, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8, !tbaa !24
  %92 = load ptr, ptr %9, align 8, !tbaa !5
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = call i32 %91(ptr noundef %92, ptr noundef %93, i32 noundef 1)
  %95 = load i32, ptr %12, align 4, !tbaa !9
  %96 = add nsw i32 %95, %94
  store i32 %96, ptr %12, align 4, !tbaa !9
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = getelementptr inbounds i8, ptr %97, i32 1
  store ptr %98, ptr %7, align 8, !tbaa !5
  store ptr %97, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %14, align 4
  br label %99

99:                                               ; preds = %88, %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  %100 = load i32, ptr %14, align 4
  switch i32 %100, label %139 [
    i32 0, label %101
    i32 4, label %114
  ]

101:                                              ; preds = %99
  br label %102

102:                                              ; preds = %101
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = load i8, ptr %103, align 1, !tbaa !20
  %105 = sext i8 %104 to i32
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %112

107:                                              ; preds = %102
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = load i8, ptr %108, align 1, !tbaa !20
  %110 = sext i8 %109 to i32
  %111 = icmp ne i32 %110, 10
  br label %112

112:                                              ; preds = %107, %102
  %113 = phi i1 [ false, %102 ], [ %111, %107 ]
  br i1 %113, label %42, label %114, !llvm.loop !26

114:                                              ; preds = %112, %99
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  %116 = load ptr, ptr %9, align 8, !tbaa !5
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = ptrtoint ptr %118 to i64
  %121 = ptrtoint ptr %119 to i64
  %122 = sub i64 %120, %121
  %123 = trunc i64 %122 to i32
  %124 = getelementptr inbounds %struct.mu_Rect, ptr %11, i32 0, i32 0
  %125 = load i32, ptr %124, align 4, !tbaa !27
  %126 = getelementptr inbounds %struct.mu_Rect, ptr %11, i32 0, i32 1
  %127 = load i32, ptr %126, align 4, !tbaa !28
  %128 = call i64 @mu_vec2(i32 noundef %125, i32 noundef %127)
  store i64 %128, ptr %15, align 4
  %129 = load i64, ptr %15, align 4
  %130 = load i32, ptr %10, align 1
  call void @mu_draw_text(ptr noundef %115, ptr noundef %116, ptr noundef %117, i32 noundef %123, i64 %129, i32 %130)
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  %132 = getelementptr inbounds i8, ptr %131, i64 1
  store ptr %132, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #3
  br label %133

133:                                              ; preds = %114
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = load i8, ptr %134, align 1, !tbaa !20
  %136 = icmp ne i8 %135, 0
  br i1 %136, label %34, label %137, !llvm.loop !29

137:                                              ; preds = %133
  %138 = load ptr, ptr %3, align 8, !tbaa !5
  call void @mu_layout_end_column(ptr noundef %138)
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  ret void

139:                                              ; preds = %99
  unreachable
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 120}
!12 = !{!"mu_Context", !6, i64 0, !6, i64 8, !6, i64 16, !13, i64 24, !6, i64 120, !10, i64 128, !10, i64 132, !10, i64 136, !15, i64 140, !10, i64 156, !10, i64 160, !10, i64 164, !6, i64 168, !6, i64 176, !6, i64 184, !7, i64 192, !10, i64 320, !16, i64 324, !17, i64 262472, !17, i64 262736, !16, i64 263000, !16, i64 263516, !16, i64 263648, !7, i64 265892, !7, i64 266280, !7, i64 269736, !14, i64 270120, !14, i64 270128, !14, i64 270136, !14, i64 270144, !10, i64 270152, !10, i64 270156, !10, i64 270160, !10, i64 270164, !7, i64 270168}
!13 = !{!"", !6, i64 0, !14, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !7, i64 40}
!14 = !{!"", !10, i64 0, !10, i64 4}
!15 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!16 = !{!"", !10, i64 0, !7, i64 4}
!17 = !{!"", !10, i64 0, !7, i64 8}
!18 = !{!13, !6, i64 0}
!19 = !{i64 0, i64 1, !20, i64 1, i64 1, !20, i64 2, i64 1, !20, i64 3, i64 1, !20}
!20 = !{!7, !7, i64 0}
!21 = !{!12, !6, i64 8}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!12, !6, i64 0}
!25 = !{!15, !10, i64 8}
!26 = distinct !{!26, !23}
!27 = !{!15, !10, i64 0}
!28 = !{!15, !10, i64 4}
!29 = distinct !{!29, !23}


; 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: nounwind uwtable
declare dso_local i64 @mu_vec2(i32 noundef, i32 noundef) local_unnamed_addr #0

; 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: nounwind uwtable
declare dso_local void @mu_draw_text(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i64, i32) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @mu_layout_begin_column(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local { i64, i64 } @mu_layout_next(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @mu_layout_end_column(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @mu_layout_row(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @mu_text(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #2
  store i32 -1, ptr %3, align 4, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 120
  %5 = load ptr, ptr %4, align 8, !tbaa !9
  %6 = load ptr, ptr %5, align 8, !tbaa !17
  %7 = getelementptr inbounds i8, ptr %5, i64 40
  %.sroa.08.0.copyload = load i32, ptr %7, align 8
  tail call void @mu_layout_begin_column(ptr noundef %0)
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  %9 = load ptr, ptr %8, align 8, !tbaa !18
  %10 = tail call i32 %9(ptr noundef %6) #2
  call void @mu_layout_row(ptr noundef %0, i32 noundef 1, ptr noundef nonnull %3, i32 noundef %10)
  br label %11

11:                                               ; preds = %.critedge2, %2
  %.043 = phi ptr [ %1, %2 ], [ %38, %.critedge2 ]
  %12 = call { i64, i64 } @mu_layout_next(ptr noundef nonnull %0)
  %13 = extractvalue { i64, i64 } %12, 0
  %14 = extractvalue { i64, i64 } %12, 1
  %.sroa.5.8.extract.trunc = trunc i64 %14 to i32
  br label %15

15:                                               ; preds = %28, %11
  %.045 = phi i32 [ 0, %11 ], [ %31, %28 ]
  %.144 = phi ptr [ %.043, %11 ], [ %32, %28 ]
  %.0 = phi ptr [ %.043, %11 ], [ %.2, %28 ]
  br label %16

16:                                               ; preds = %18, %15
  %.2 = phi ptr [ %.144, %15 ], [ %19, %18 ]
  %17 = load i8, ptr %.2, align 1, !tbaa !19
  switch i8 %17, label %18 [
    i8 0, label %.critedge
    i8 32, label %.critedge
    i8 10, label %.critedge
  ]

18:                                               ; preds = %16
  %19 = getelementptr inbounds i8, ptr %.2, i64 1
  br label %16, !llvm.loop !20

.critedge:                                        ; preds = %16, %16, %16
  %20 = load ptr, ptr %0, align 8, !tbaa !22
  %21 = ptrtoint ptr %.2 to i64
  %22 = ptrtoint ptr %.144 to i64
  %23 = sub i64 %21, %22
  %24 = trunc i64 %23 to i32
  %25 = call i32 %20(ptr noundef %6, ptr noundef %.144, i32 noundef %24) #2
  %26 = add nsw i32 %25, %.045
  %27 = icmp sle i32 %26, %.sroa.5.8.extract.trunc
  %.not52 = icmp eq ptr %.0, %.043
  %or.cond = select i1 %27, i1 true, i1 %.not52
  br i1 %or.cond, label %28, label %.critedge..critedge2_crit_edge

.critedge..critedge2_crit_edge:                   ; preds = %.critedge
  %.pre = ptrtoint ptr %.0 to i64
  br label %.critedge2

28:                                               ; preds = %.critedge
  %29 = load ptr, ptr %0, align 8, !tbaa !22
  %30 = call i32 %29(ptr noundef %6, ptr noundef nonnull %.2, i32 noundef 1) #2
  %31 = add nsw i32 %30, %26
  %32 = getelementptr inbounds i8, ptr %.2, i64 1
  %33 = load i8, ptr %.2, align 1, !tbaa !19
  switch i8 %33, label %15 [
    i8 0, label %.critedge2
    i8 10, label %.critedge2
  ]

.critedge2:                                       ; preds = %28, %28, %.critedge..critedge2_crit_edge
  %.pre-phi = phi i64 [ %.pre, %.critedge..critedge2_crit_edge ], [ %21, %28 ], [ %21, %28 ]
  %.166 = phi ptr [ %.0, %.critedge..critedge2_crit_edge ], [ %.2, %28 ], [ %.2, %28 ]
  %34 = ptrtoint ptr %.043 to i64
  %35 = sub i64 %.pre-phi, %34
  %36 = trunc i64 %35 to i32
  %.sroa.07.0.extract.trunc = trunc i64 %13 to i32
  %.sroa.07.4.extract.shift = lshr i64 %13, 32
  %.sroa.07.4.extract.trunc = trunc nuw i64 %.sroa.07.4.extract.shift to i32
  %37 = call i64 @mu_vec2(i32 noundef %.sroa.07.0.extract.trunc, i32 noundef %.sroa.07.4.extract.trunc)
  call void @mu_draw_text(ptr noundef nonnull %0, ptr noundef %6, ptr noundef %.043, i32 noundef %36, i64 %37, i32 %.sroa.08.0.copyload)
  %38 = getelementptr inbounds i8, ptr %.166, i64 1
  %39 = load i8, ptr %.166, align 1, !tbaa !19
  %.not55 = icmp eq i8 %39, 0
  br i1 %.not55, label %40, label %11, !llvm.loop !23

40:                                               ; preds = %.critedge2
  call void @mu_layout_end_column(ptr noundef nonnull %0)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #2
  ret void
}

attributes #0 = { 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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 120}
!10 = !{!"mu_Context", !11, i64 0, !11, i64 8, !11, i64 16, !12, i64 24, !11, i64 120, !6, i64 128, !6, i64 132, !6, i64 136, !14, i64 140, !6, i64 156, !6, i64 160, !6, i64 164, !11, i64 168, !11, i64 176, !11, i64 184, !7, i64 192, !6, i64 320, !15, i64 324, !16, i64 262472, !16, i64 262736, !15, i64 263000, !15, i64 263516, !15, i64 263648, !7, i64 265892, !7, i64 266280, !7, i64 269736, !13, i64 270120, !13, i64 270128, !13, i64 270136, !13, i64 270144, !6, i64 270152, !6, i64 270156, !6, i64 270160, !6, i64 270164, !7, i64 270168}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"", !11, i64 0, !13, i64 8, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !7, i64 40}
!13 = !{!"", !6, i64 0, !6, i64 4}
!14 = !{!"", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!15 = !{!"", !6, i64 0, !7, i64 4}
!16 = !{!"", !6, i64 0, !7, i64 8}
!17 = !{!12, !11, i64 0}
!18 = !{!10, !11, i64 8}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!10, !11, i64 0}
!23 = distinct !{!23, !21}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass