; LLVM IR from ClementineAccount/Albuquerque :: src/HelloSDL (main)

; 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.stbtt_fontinfo = type { ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.stbtt__buf, %struct.stbtt__buf, %struct.stbtt__buf, %struct.stbtt__buf, %struct.stbtt__buf, %struct.stbtt__buf }
%struct.stbtt__buf = type { ptr, i32, i32 }
%struct.stbtt_pack_range = type { float, i32, ptr, i32, ptr, i8, i8 }
%struct.stbtt_packedchar = type { i16, i16, i16, i16, float, float, float, float, float }
%struct.stbtt_pack_context = type { ptr, ptr, i32, i32, i32, i32, i32, i32, i32, ptr, ptr }

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL13nk_stbtt_freePvS_(ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL15nk_stbtt_mallocmPv(i64 noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local i32 @stbtt_PackFontRangesGatherRects(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local i32 @stbtt_PackFontRangesRenderIntoRects(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @stbtt_PackFontRangesPackRects(ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local i32 @stbtt_PackFontRanges(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #1 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %struct.stbtt_fontinfo, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store i32 %4, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 160, ptr %12) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #2
  store i32 1, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #2
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %19

19:                                               ; preds = %78, %5
  %20 = load i32, ptr %13, align 4, !tbaa !9
  %21 = load i32, ptr %11, align 4, !tbaa !9
  %22 = icmp slt i32 %20, %21
  br i1 %22, label %23, label %81

23:                                               ; preds = %19
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %24

24:                                               ; preds = %74, %23
  %25 = load i32, ptr %14, align 4, !tbaa !9
  %26 = load ptr, ptr %10, align 8, !tbaa !5
  %27 = load i32, ptr %13, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds %struct.stbtt_pack_range, ptr %26, i64 %28
  %30 = getelementptr inbounds %struct.stbtt_pack_range, ptr %29, i32 0, i32 3
  %31 = load i32, ptr %30, align 8, !tbaa !11
  %32 = icmp slt i32 %25, %31
  br i1 %32, label %33, label %77

33:                                               ; preds = %24
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  %35 = load i32, ptr %13, align 4, !tbaa !9
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds %struct.stbtt_pack_range, ptr %34, i64 %36
  %38 = getelementptr inbounds %struct.stbtt_pack_range, ptr %37, i32 0, i32 4
  %39 = load ptr, ptr %38, align 8, !tbaa !14
  %40 = load i32, ptr %14, align 4, !tbaa !9
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds %struct.stbtt_packedchar, ptr %39, i64 %41
  %43 = getelementptr inbounds %struct.stbtt_packedchar, ptr %42, i32 0, i32 3
  store i16 0, ptr %43, align 2, !tbaa !15
  %44 = load ptr, ptr %10, align 8, !tbaa !5
  %45 = load i32, ptr %13, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds %struct.stbtt_pack_range, ptr %44, i64 %46
  %48 = getelementptr inbounds %struct.stbtt_pack_range, ptr %47, i32 0, i32 4
  %49 = load ptr, ptr %48, align 8, !tbaa !14
  %50 = load i32, ptr %14, align 4, !tbaa !9
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds %struct.stbtt_packedchar, ptr %49, i64 %51
  %53 = getelementptr inbounds %struct.stbtt_packedchar, ptr %52, i32 0, i32 2
  store i16 0, ptr %53, align 4, !tbaa !18
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  %55 = load i32, ptr %13, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds %struct.stbtt_pack_range, ptr %54, i64 %56
  %58 = getelementptr inbounds %struct.stbtt_pack_range, ptr %57, i32 0, i32 4
  %59 = load ptr, ptr %58, align 8, !tbaa !14
  %60 = load i32, ptr %14, align 4, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds %struct.stbtt_packedchar, ptr %59, i64 %61
  %63 = getelementptr inbounds %struct.stbtt_packedchar, ptr %62, i32 0, i32 1
  store i16 0, ptr %63, align 2, !tbaa !19
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  %65 = load i32, ptr %13, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds %struct.stbtt_pack_range, ptr %64, i64 %66
  %68 = getelementptr inbounds %struct.stbtt_pack_range, ptr %67, i32 0, i32 4
  %69 = load ptr, ptr %68, align 8, !tbaa !14
  %70 = load i32, ptr %14, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds %struct.stbtt_packedchar, ptr %69, i64 %71
  %73 = getelementptr inbounds %struct.stbtt_packedchar, ptr %72, i32 0, i32 0
  store i16 0, ptr %73, align 4, !tbaa !20
  br label %74

74:                                               ; preds = %33
  %75 = load i32, ptr %14, align 4, !tbaa !9
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %14, align 4, !tbaa !9
  br label %24, !llvm.loop !21

77:                                               ; preds = %24
  br label %78

78:                                               ; preds = %77
  %79 = load i32, ptr %13, align 4, !tbaa !9
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %13, align 4, !tbaa !9
  br label %19, !llvm.loop !23

81:                                               ; preds = %19
  store i32 0, ptr %15, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %82

82:                                               ; preds = %95, %81
  %83 = load i32, ptr %13, align 4, !tbaa !9
  %84 = load i32, ptr %11, align 4, !tbaa !9
  %85 = icmp slt i32 %83, %84
  br i1 %85, label %86, label %98

86:                                               ; preds = %82
  %87 = load ptr, ptr %10, align 8, !tbaa !5
  %88 = load i32, ptr %13, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds %struct.stbtt_pack_range, ptr %87, i64 %89
  %91 = getelementptr inbounds %struct.stbtt_pack_range, ptr %90, i32 0, i32 3
  %92 = load i32, ptr %91, align 8, !tbaa !11
  %93 = load i32, ptr %15, align 4, !tbaa !9
  %94 = add nsw i32 %93, %92
  store i32 %94, ptr %15, align 4, !tbaa !9
  br label %95

95:                                               ; preds = %86
  %96 = load i32, ptr %13, align 4, !tbaa !9
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %13, align 4, !tbaa !9
  br label %82, !llvm.loop !24

98:                                               ; preds = %82
  %99 = load i32, ptr %15, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = mul i64 24, %100
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.stbtt_pack_context, ptr %102, i32 0, i32 0
  %104 = load ptr, ptr %103, align 8, !tbaa !25
  %105 = call noundef ptr @_ZL15nk_stbtt_mallocmPv(i64 noundef %101, ptr noundef %104)
  store ptr %105, ptr %17, align 8, !tbaa !5
  %106 = load ptr, ptr %17, align 8, !tbaa !5
  %107 = icmp eq ptr %106, null
  br i1 %107, label %108, label %109

108:                                              ; preds = %98
  store i32 0, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %137

109:                                              ; preds = %98
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.stbtt_pack_context, ptr %110, i32 0, i32 0
  %112 = load ptr, ptr %111, align 8, !tbaa !25
  %113 = getelementptr inbounds %struct.stbtt_fontinfo, ptr %12, i32 0, i32 0
  store ptr %112, ptr %113, align 8, !tbaa !27
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = load i32, ptr %9, align 4, !tbaa !9
  %117 = call i32 @stbtt_GetFontOffsetForIndex(ptr noundef %115, i32 noundef %116)
  %118 = call i32 @stbtt_InitFont(ptr noundef %12, ptr noundef %114, i32 noundef %117)
  %119 = load ptr, ptr %7, align 8, !tbaa !5
  %120 = load ptr, ptr %10, align 8, !tbaa !5
  %121 = load i32, ptr %11, align 4, !tbaa !9
  %122 = load ptr, ptr %17, align 8, !tbaa !5
  %123 = call i32 @stbtt_PackFontRangesGatherRects(ptr noundef %119, ptr noundef %12, ptr noundef %120, i32 noundef %121, ptr noundef %122)
  store i32 %123, ptr %15, align 4, !tbaa !9
  %124 = load ptr, ptr %7, align 8, !tbaa !5
  %125 = load ptr, ptr %17, align 8, !tbaa !5
  %126 = load i32, ptr %15, align 4, !tbaa !9
  call void @stbtt_PackFontRangesPackRects(ptr noundef %124, ptr noundef %125, i32 noundef %126)
  %127 = load ptr, ptr %7, align 8, !tbaa !5
  %128 = load ptr, ptr %10, align 8, !tbaa !5
  %129 = load i32, ptr %11, align 4, !tbaa !9
  %130 = load ptr, ptr %17, align 8, !tbaa !5
  %131 = call i32 @stbtt_PackFontRangesRenderIntoRects(ptr noundef %127, ptr noundef %12, ptr noundef %128, i32 noundef %129, ptr noundef %130)
  store i32 %131, ptr %16, align 4, !tbaa !9
  %132 = load ptr, ptr %17, align 8, !tbaa !5
  %133 = load ptr, ptr %7, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.stbtt_pack_context, ptr %133, i32 0, i32 0
  %135 = load ptr, ptr %134, align 8, !tbaa !25
  call void @_ZL13nk_stbtt_freePvS_(ptr noundef %132, ptr noundef %135)
  %136 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %136, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %137

137:                                              ; preds = %109, %108
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #2
  call void @llvm.lifetime.end.p0(i64 160, ptr %12) #2
  %138 = load i32, ptr %6, align 4
  ret i32 %138
}

; Function Attrs: mustprogress uwtable
declare dso_local i32 @stbtt_InitFont(ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local i32 @stbtt_GetFontOffsetForIndex(ptr noundef, i32 noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = !{!"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, !10, i64 16}
!12 = !{!"_ZTS16stbtt_pack_range", !13, i64 0, !10, i64 4, !6, i64 8, !10, i64 16, !6, i64 24, !7, i64 32, !7, i64 33}
!13 = !{!"float", !7, i64 0}
!14 = !{!12, !6, i64 24}
!15 = !{!16, !17, i64 6}
!16 = !{!"_ZTS16stbtt_packedchar", !17, i64 0, !17, i64 2, !17, i64 4, !17, i64 6, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24}
!17 = !{!"short", !7, i64 0}
!18 = !{!16, !17, i64 4}
!19 = !{!16, !17, i64 2}
!20 = !{!16, !17, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = distinct !{!24, !22}
!25 = !{!26, !6, i64 0}
!26 = !{!"_ZTS18stbtt_pack_context", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !6, i64 48, !6, i64 56}
!27 = !{!28, !6, i64 0}
!28 = !{!"_ZTS14stbtt_fontinfo", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !29, i64 64, !29, i64 80, !29, i64 96, !29, i64 112, !29, i64 128, !29, i64 144}
!29 = !{!"_ZTS10stbtt__buf", !6, i64 0, !10, i64 8, !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.stbtt_fontinfo = type { ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.stbtt__buf, %struct.stbtt__buf, %struct.stbtt__buf, %struct.stbtt__buf, %struct.stbtt__buf, %struct.stbtt__buf }
%struct.stbtt__buf = type { ptr, i32, i32 }
%struct.stbtt_pack_range = type { float, i32, ptr, i32, ptr, i8, i8 }
%struct.stbtt_packedchar = type { i16, i16, i16, i16, float, float, float, float, float }

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL13nk_stbtt_freePvS_(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL15nk_stbtt_mallocmPv(i64 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local i32 @stbtt_PackFontRangesGatherRects(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local i32 @stbtt_PackFontRangesRenderIntoRects(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @stbtt_PackFontRangesPackRects(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local i32 @stbtt_PackFontRanges(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) local_unnamed_addr #1 {
  %6 = alloca %struct.stbtt_fontinfo, align 8
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %6) #3
  %7 = icmp sgt i32 %4, 0
  br i1 %7, label %.preheader51.preheader, label %._crit_edge57

.preheader51.preheader:                           ; preds = %5
  %wide.trip.count62 = zext nneg i32 %4 to i64
  br label %.preheader51

.preheader51:                                     ; preds = %.preheader51.preheader, %._crit_edge
  %indvars.iv59 = phi i64 [ 0, %.preheader51.preheader ], [ %indvars.iv.next60, %._crit_edge ]
  %8 = getelementptr inbounds %struct.stbtt_pack_range, ptr %3, i64 %indvars.iv59
  %9 = getelementptr inbounds i8, ptr %8, i64 16
  %10 = load i32, ptr %9, align 8, !tbaa !5
  %11 = icmp sgt i32 %10, 0
  br i1 %11, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader51
  %12 = getelementptr inbounds i8, ptr %8, i64 24
  %13 = load ptr, ptr %12, align 8, !tbaa !12
  %wide.trip.count = zext nneg i32 %10 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %14 = icmp ult i32 %10, 4
  br i1 %14, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %50

.preheader:                                       ; preds = %._crit_edge
  br i1 %7, label %.lr.ph56.preheader, label %._crit_edge57

.lr.ph56.preheader:                               ; preds = %.preheader
  %wide.trip.count67 = zext nneg i32 %4 to i64
  %min.iters.check = icmp ult i32 %4, 8
  br i1 %min.iters.check, label %.lr.ph56.preheader70, label %vector.ph

.lr.ph56.preheader70:                             ; preds = %middle.block, %.lr.ph56.preheader
  %indvars.iv64.ph = phi i64 [ 0, %.lr.ph56.preheader ], [ %n.vec, %middle.block ]
  %.04655.ph = phi i32 [ 0, %.lr.ph56.preheader ], [ %49, %middle.block ]
  br label %.lr.ph56

vector.ph:                                        ; preds = %.lr.ph56.preheader
  %n.vec = and i64 %wide.trip.count62, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %46, %vector.body ]
  %vec.phi69 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %47, %vector.body ]
  %15 = or disjoint i64 %index, 1
  %16 = or disjoint i64 %index, 2
  %17 = or disjoint i64 %index, 3
  %18 = or disjoint i64 %index, 4
  %19 = or disjoint i64 %index, 5
  %20 = or disjoint i64 %index, 6
  %21 = or disjoint i64 %index, 7
  %22 = getelementptr inbounds %struct.stbtt_pack_range, ptr %3, i64 %index, i32 3
  %23 = getelementptr inbounds %struct.stbtt_pack_range, ptr %3, i64 %15, i32 3
  %24 = getelementptr inbounds %struct.stbtt_pack_range, ptr %3, i64 %16, i32 3
  %25 = getelementptr inbounds %struct.stbtt_pack_range, ptr %3, i64 %17, i32 3
  %26 = getelementptr inbounds %struct.stbtt_pack_range, ptr %3, i64 %18, i32 3
  %27 = getelementptr inbounds %struct.stbtt_pack_range, ptr %3, i64 %19, i32 3
  %28 = getelementptr inbounds %struct.stbtt_pack_range, ptr %3, i64 %20, i32 3
  %29 = getelementptr inbounds %struct.stbtt_pack_range, ptr %3, i64 %21, i32 3
  %30 = load i32, ptr %22, align 8, !tbaa !5
  %31 = load i32, ptr %23, align 8, !tbaa !5
  %32 = load i32, ptr %24, align 8, !tbaa !5
  %33 = load i32, ptr %25, align 8, !tbaa !5
  %34 = insertelement <4 x i32> poison, i32 %30, i64 0
  %35 = insertelement <4 x i32> %34, i32 %31, i64 1
  %36 = insertelement <4 x i32> %35, i32 %32, i64 2
  %37 = insertelement <4 x i32> %36, i32 %33, i64 3
  %38 = load i32, ptr %26, align 8, !tbaa !5
  %39 = load i32, ptr %27, align 8, !tbaa !5
  %40 = load i32, ptr %28, align 8, !tbaa !5
  %41 = load i32, ptr %29, align 8, !tbaa !5
  %42 = insertelement <4 x i32> poison, i32 %38, i64 0
  %43 = insertelement <4 x i32> %42, i32 %39, i64 1
  %44 = insertelement <4 x i32> %43, i32 %40, i64 2
  %45 = insertelement <4 x i32> %44, i32 %41, i64 3
  %46 = add <4 x i32> %37, %vec.phi
  %47 = add <4 x i32> %45, %vec.phi69
  %index.next = add nuw i64 %index, 8
  %48 = icmp eq i64 %index.next, %n.vec
  br i1 %48, label %middle.block, label %vector.body, !llvm.loop !13

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %47, %46
  %49 = tail call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count62
  br i1 %cmp.n, label %._crit_edge57.loopexit, label %.lr.ph56.preheader70

50:                                               ; preds = %50, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.3, %50 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %50 ]
  %51 = getelementptr inbounds %struct.stbtt_packedchar, ptr %13, i64 %indvars.iv
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  store i64 0, ptr %51, align 4
  %52 = getelementptr inbounds %struct.stbtt_packedchar, ptr %13, i64 %indvars.iv.next
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  store i64 0, ptr %52, align 4
  %53 = getelementptr inbounds %struct.stbtt_packedchar, ptr %13, i64 %indvars.iv.next.1
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  store i64 0, ptr %53, align 4
  %54 = getelementptr inbounds %struct.stbtt_packedchar, ptr %13, i64 %indvars.iv.next.2
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  store i64 0, ptr %54, align 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %50, !llvm.loop !17

._crit_edge.loopexit.unr-lcssa:                   ; preds = %50, %.lr.ph
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.3, %50 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %55 = getelementptr inbounds %struct.stbtt_packedchar, ptr %13, i64 %indvars.iv.epil
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  store i64 0, ptr %55, align 4
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.epil.preheader, !llvm.loop !18

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %.preheader51
  %indvars.iv.next60 = add nuw nsw i64 %indvars.iv59, 1
  %exitcond63.not = icmp eq i64 %indvars.iv.next60, %wide.trip.count62
  br i1 %exitcond63.not, label %.preheader, label %.preheader51, !llvm.loop !20

.lr.ph56:                                         ; preds = %.lr.ph56.preheader70, %.lr.ph56
  %indvars.iv64 = phi i64 [ %indvars.iv.next65, %.lr.ph56 ], [ %indvars.iv64.ph, %.lr.ph56.preheader70 ]
  %.04655 = phi i32 [ %58, %.lr.ph56 ], [ %.04655.ph, %.lr.ph56.preheader70 ]
  %56 = getelementptr inbounds %struct.stbtt_pack_range, ptr %3, i64 %indvars.iv64, i32 3
  %57 = load i32, ptr %56, align 8, !tbaa !5
  %58 = add nsw i32 %57, %.04655
  %indvars.iv.next65 = add nuw nsw i64 %indvars.iv64, 1
  %exitcond68.not = icmp eq i64 %indvars.iv.next65, %wide.trip.count67
  br i1 %exitcond68.not, label %._crit_edge57.loopexit, label %.lr.ph56, !llvm.loop !21

._crit_edge57.loopexit:                           ; preds = %.lr.ph56, %middle.block
  %.lcssa = phi i32 [ %49, %middle.block ], [ %58, %.lr.ph56 ]
  %59 = sext i32 %.lcssa to i64
  %60 = mul nsw i64 %59, 24
  br label %._crit_edge57

._crit_edge57:                                    ; preds = %5, %._crit_edge57.loopexit, %.preheader
  %.046.lcssa = phi i64 [ 0, %.preheader ], [ %60, %._crit_edge57.loopexit ], [ 0, %5 ]
  %61 = load ptr, ptr %0, align 8, !tbaa !22
  %62 = tail call noundef ptr @_ZL15nk_stbtt_mallocmPv(i64 noundef %.046.lcssa, ptr noundef %61)
  %63 = icmp eq ptr %62, null
  br i1 %63, label %71, label %64

64:                                               ; preds = %._crit_edge57
  %65 = load ptr, ptr %0, align 8, !tbaa !22
  store ptr %65, ptr %6, align 8, !tbaa !24
  %66 = tail call i32 @stbtt_GetFontOffsetForIndex(ptr noundef %1, i32 noundef %2)
  %67 = call i32 @stbtt_InitFont(ptr noundef nonnull %6, ptr noundef %1, i32 noundef %66)
  %68 = call i32 @stbtt_PackFontRangesGatherRects(ptr noundef nonnull %0, ptr noundef nonnull %6, ptr noundef %3, i32 noundef %4, ptr noundef nonnull %62)
  call void @stbtt_PackFontRangesPackRects(ptr noundef nonnull %0, ptr noundef nonnull %62, i32 noundef %68)
  %69 = call i32 @stbtt_PackFontRangesRenderIntoRects(ptr noundef nonnull %0, ptr noundef nonnull %6, ptr noundef %3, i32 noundef %4, ptr noundef nonnull %62)
  %70 = load ptr, ptr %0, align 8, !tbaa !22
  call void @_ZL13nk_stbtt_freePvS_(ptr noundef nonnull %62, ptr noundef %70)
  br label %71

71:                                               ; preds = %._crit_edge57, %64
  %.0 = phi i32 [ %69, %64 ], [ 0, %._crit_edge57 ]
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %6) #3
  ret i32 %.0
}

; Function Attrs: mustprogress uwtable
declare dso_local i32 @stbtt_InitFont(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local i32 @stbtt_GetFontOffsetForIndex(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !10, i64 16}
!6 = !{!"_ZTS16stbtt_pack_range", !7, i64 0, !10, i64 4, !11, i64 8, !10, i64 16, !11, i64 24, !8, i64 32, !8, i64 33}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!6, !11, i64 24}
!13 = distinct !{!13, !14, !15, !16}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!"llvm.loop.isvectorized", i32 1}
!16 = !{!"llvm.loop.unroll.runtime.disable"}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.unroll.disable"}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14, !16, !15}
!22 = !{!23, !11, i64 0}
!23 = !{!"_ZTS18stbtt_pack_context", !11, i64 0, !11, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !11, i64 48, !11, i64 56}
!24 = !{!25, !11, i64 0}
!25 = !{!"_ZTS14stbtt_fontinfo", !11, i64 0, !11, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !26, i64 64, !26, i64 80, !26, i64 96, !26, i64 112, !26, i64 128, !26, i64 144}
!26 = !{!"_ZTS10stbtt__buf", !11, i64 0, !10, i64 8, !10, i64 12}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,MemCpyOptPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass