; LLVM IR from caryll/otfcc :: lib/otf-writer (stat)

; 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._caryll_font = type { i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.table_glyf = type { i64, i64, ptr }
%struct.glyf_Glyph = type { ptr, %struct.VQ, %struct.VQ, %struct.VQ, %struct.VQ, %struct.glyf_ContourList, %struct.glyf_ReferenceList, %struct.glyf_StemDefList, %struct.glyf_StemDefList, %struct.glyf_MaskList, %struct.glyf_MaskList, i16, ptr, i8, %struct.otfcc_Handle, i16, %struct.glyf_GlyphStat }
%struct.VQ = type { double, %struct.vq_SegList }
%struct.vq_SegList = type { i64, i64, ptr }
%struct.glyf_ContourList = type { i64, i64, ptr }
%struct.glyf_ReferenceList = type { i64, i64, ptr }
%struct.glyf_StemDefList = type { i64, i64, ptr }
%struct.glyf_MaskList = type { i64, i64, ptr }
%struct.otfcc_Handle = type { i32, i16, ptr }
%struct.glyf_GlyphStat = type { double, double, double, double, i16, i16, i16, i16, i16 }
%struct.table_maxp = type { i32, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16 }

; 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: nounwind uwtable
define dso_local void @statMaxp(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca i16, align 2
  %4 = alloca i16, align 2
  %5 = alloca i16, align 2
  %6 = alloca i16, align 2
  %7 = alloca i16, align 2
  %8 = alloca i16, align 2
  %9 = alloca i16, align 2
  %10 = alloca i16, align 2
  %11 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %3) #2
  store i16 0, ptr %3, align 2, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2, ptr %4) #2
  store i16 0, ptr %4, align 2, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2, ptr %5) #2
  store i16 0, ptr %5, align 2, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2, ptr %6) #2
  store i16 0, ptr %6, align 2, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2, ptr %7) #2
  store i16 0, ptr %7, align 2, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2, ptr %8) #2
  store i16 0, ptr %8, align 2, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2, ptr %9) #2
  store i16 0, ptr %9, align 2, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2, ptr %10) #2
  store i16 0, ptr %10, align 2, !tbaa !9
  br label %12

12:                                               ; preds = %143, %1
  %13 = load i16, ptr %10, align 2, !tbaa !9
  %14 = zext i16 %13 to i64
  %15 = load ptr, ptr %2, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct._caryll_font, ptr %15, i32 0, i32 13
  %17 = load ptr, ptr %16, align 8, !tbaa !11
  %18 = getelementptr inbounds %struct.table_glyf, ptr %17, i32 0, i32 0
  %19 = load i64, ptr %18, align 8, !tbaa !14
  %20 = icmp ult i64 %14, %19
  br i1 %20, label %22, label %21

21:                                               ; preds = %12
  call void @llvm.lifetime.end.p0(i64 2, ptr %10) #2
  br label %146

22:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #2
  %23 = load ptr, ptr %2, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct._caryll_font, ptr %23, i32 0, i32 13
  %25 = load ptr, ptr %24, align 8, !tbaa !11
  %26 = getelementptr inbounds %struct.table_glyf, ptr %25, i32 0, i32 2
  %27 = load ptr, ptr %26, align 8, !tbaa !17
  %28 = load i16, ptr %10, align 2, !tbaa !9
  %29 = zext i16 %28 to i64
  %30 = getelementptr inbounds ptr, ptr %27, i64 %29
  %31 = load ptr, ptr %30, align 8, !tbaa !5
  store ptr %31, ptr %11, align 8, !tbaa !5
  %32 = load ptr, ptr %11, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.glyf_Glyph, ptr %32, i32 0, i32 5
  %34 = getelementptr inbounds %struct.glyf_ContourList, ptr %33, i32 0, i32 0
  %35 = load i64, ptr %34, align 8, !tbaa !18
  %36 = icmp ugt i64 %35, 0
  br i1 %36, label %37, label %66

37:                                               ; preds = %22
  %38 = load ptr, ptr %11, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.glyf_Glyph, ptr %38, i32 0, i32 16
  %40 = getelementptr inbounds %struct.glyf_GlyphStat, ptr %39, i32 0, i32 5
  %41 = load i16, ptr %40, align 2, !tbaa !24
  %42 = zext i16 %41 to i32
  %43 = load i16, ptr %4, align 2, !tbaa !9
  %44 = zext i16 %43 to i32
  %45 = icmp sgt i32 %42, %44
  br i1 %45, label %46, label %51

46:                                               ; preds = %37
  %47 = load ptr, ptr %11, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.glyf_Glyph, ptr %47, i32 0, i32 16
  %49 = getelementptr inbounds %struct.glyf_GlyphStat, ptr %48, i32 0, i32 5
  %50 = load i16, ptr %49, align 2, !tbaa !24
  store i16 %50, ptr %4, align 2, !tbaa !9
  br label %51

51:                                               ; preds = %46, %37
  %52 = load ptr, ptr %11, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.glyf_Glyph, ptr %52, i32 0, i32 16
  %54 = getelementptr inbounds %struct.glyf_GlyphStat, ptr %53, i32 0, i32 6
  %55 = load i16, ptr %54, align 4, !tbaa !25
  %56 = zext i16 %55 to i32
  %57 = load i16, ptr %5, align 2, !tbaa !9
  %58 = zext i16 %57 to i32
  %59 = icmp sgt i32 %56, %58
  br i1 %59, label %60, label %65

60:                                               ; preds = %51
  %61 = load ptr, ptr %11, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.glyf_Glyph, ptr %61, i32 0, i32 16
  %63 = getelementptr inbounds %struct.glyf_GlyphStat, ptr %62, i32 0, i32 6
  %64 = load i16, ptr %63, align 4, !tbaa !25
  store i16 %64, ptr %5, align 2, !tbaa !9
  br label %65

65:                                               ; preds = %60, %51
  br label %130

66:                                               ; preds = %22
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.glyf_Glyph, ptr %67, i32 0, i32 6
  %69 = getelementptr inbounds %struct.glyf_ReferenceList, ptr %68, i32 0, i32 0
  %70 = load i64, ptr %69, align 8, !tbaa !26
  %71 = icmp ugt i64 %70, 0
  br i1 %71, label %72, label %129

72:                                               ; preds = %66
  %73 = load ptr, ptr %11, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.glyf_Glyph, ptr %73, i32 0, i32 16
  %75 = getelementptr inbounds %struct.glyf_GlyphStat, ptr %74, i32 0, i32 7
  %76 = load i16, ptr %75, align 2, !tbaa !27
  %77 = zext i16 %76 to i32
  %78 = load i16, ptr %7, align 2, !tbaa !9
  %79 = zext i16 %78 to i32
  %80 = icmp sgt i32 %77, %79
  br i1 %80, label %81, label %86

81:                                               ; preds = %72
  %82 = load ptr, ptr %11, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.glyf_Glyph, ptr %82, i32 0, i32 16
  %84 = getelementptr inbounds %struct.glyf_GlyphStat, ptr %83, i32 0, i32 7
  %85 = load i16, ptr %84, align 2, !tbaa !27
  store i16 %85, ptr %7, align 2, !tbaa !9
  br label %86

86:                                               ; preds = %81, %72
  %87 = load ptr, ptr %11, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.glyf_Glyph, ptr %87, i32 0, i32 16
  %89 = getelementptr inbounds %struct.glyf_GlyphStat, ptr %88, i32 0, i32 8
  %90 = load i16, ptr %89, align 8, !tbaa !28
  %91 = zext i16 %90 to i32
  %92 = load i16, ptr %8, align 2, !tbaa !9
  %93 = zext i16 %92 to i32
  %94 = icmp sgt i32 %91, %93
  br i1 %94, label %95, label %100

95:                                               ; preds = %86
  %96 = load ptr, ptr %11, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.glyf_Glyph, ptr %96, i32 0, i32 16
  %98 = getelementptr inbounds %struct.glyf_GlyphStat, ptr %97, i32 0, i32 8
  %99 = load i16, ptr %98, align 8, !tbaa !28
  store i16 %99, ptr %8, align 2, !tbaa !9
  br label %100

100:                                              ; preds = %95, %86
  %101 = load ptr, ptr %11, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.glyf_Glyph, ptr %101, i32 0, i32 16
  %103 = getelementptr inbounds %struct.glyf_GlyphStat, ptr %102, i32 0, i32 4
  %104 = load i16, ptr %103, align 8, !tbaa !29
  %105 = zext i16 %104 to i32
  %106 = load i16, ptr %3, align 2, !tbaa !9
  %107 = zext i16 %106 to i32
  %108 = icmp sgt i32 %105, %107
  br i1 %108, label %109, label %114

109:                                              ; preds = %100
  %110 = load ptr, ptr %11, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.glyf_Glyph, ptr %110, i32 0, i32 16
  %112 = getelementptr inbounds %struct.glyf_GlyphStat, ptr %111, i32 0, i32 4
  %113 = load i16, ptr %112, align 8, !tbaa !29
  store i16 %113, ptr %3, align 2, !tbaa !9
  br label %114

114:                                              ; preds = %109, %100
  %115 = load ptr, ptr %11, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.glyf_Glyph, ptr %115, i32 0, i32 6
  %117 = getelementptr inbounds %struct.glyf_ReferenceList, ptr %116, i32 0, i32 0
  %118 = load i64, ptr %117, align 8, !tbaa !26
  %119 = load i16, ptr %6, align 2, !tbaa !9
  %120 = zext i16 %119 to i64
  %121 = icmp ugt i64 %118, %120
  br i1 %121, label %122, label %128

122:                                              ; preds = %114
  %123 = load ptr, ptr %11, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.glyf_Glyph, ptr %123, i32 0, i32 6
  %125 = getelementptr inbounds %struct.glyf_ReferenceList, ptr %124, i32 0, i32 0
  %126 = load i64, ptr %125, align 8, !tbaa !26
  %127 = trunc i64 %126 to i16
  store i16 %127, ptr %6, align 2, !tbaa !9
  br label %128

128:                                              ; preds = %122, %114
  br label %129

129:                                              ; preds = %128, %66
  br label %130

130:                                              ; preds = %129, %65
  %131 = load ptr, ptr %11, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.glyf_Glyph, ptr %131, i32 0, i32 11
  %133 = load i16, ptr %132, align 8, !tbaa !30
  %134 = zext i16 %133 to i32
  %135 = load i16, ptr %9, align 2, !tbaa !9
  %136 = zext i16 %135 to i32
  %137 = icmp sgt i32 %134, %136
  br i1 %137, label %138, label %142

138:                                              ; preds = %130
  %139 = load ptr, ptr %11, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.glyf_Glyph, ptr %139, i32 0, i32 11
  %141 = load i16, ptr %140, align 8, !tbaa !30
  store i16 %141, ptr %9, align 2, !tbaa !9
  br label %142

142:                                              ; preds = %138, %130
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #2
  br label %143

143:                                              ; preds = %142
  %144 = load i16, ptr %10, align 2, !tbaa !9
  %145 = add i16 %144, 1
  store i16 %145, ptr %10, align 2, !tbaa !9
  br label %12, !llvm.loop !31

146:                                              ; preds = %21
  %147 = load i16, ptr %4, align 2, !tbaa !9
  %148 = load ptr, ptr %2, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct._caryll_font, ptr %148, i32 0, i32 4
  %150 = load ptr, ptr %149, align 8, !tbaa !33
  %151 = getelementptr inbounds %struct.table_maxp, ptr %150, i32 0, i32 2
  store i16 %147, ptr %151, align 2, !tbaa !34
  %152 = load i16, ptr %5, align 2, !tbaa !9
  %153 = load ptr, ptr %2, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct._caryll_font, ptr %153, i32 0, i32 4
  %155 = load ptr, ptr %154, align 8, !tbaa !33
  %156 = getelementptr inbounds %struct.table_maxp, ptr %155, i32 0, i32 3
  store i16 %152, ptr %156, align 4, !tbaa !36
  %157 = load i16, ptr %7, align 2, !tbaa !9
  %158 = load ptr, ptr %2, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct._caryll_font, ptr %158, i32 0, i32 4
  %160 = load ptr, ptr %159, align 8, !tbaa !33
  %161 = getelementptr inbounds %struct.table_maxp, ptr %160, i32 0, i32 4
  store i16 %157, ptr %161, align 2, !tbaa !37
  %162 = load i16, ptr %8, align 2, !tbaa !9
  %163 = load ptr, ptr %2, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct._caryll_font, ptr %163, i32 0, i32 4
  %165 = load ptr, ptr %164, align 8, !tbaa !33
  %166 = getelementptr inbounds %struct.table_maxp, ptr %165, i32 0, i32 5
  store i16 %162, ptr %166, align 4, !tbaa !38
  %167 = load i16, ptr %3, align 2, !tbaa !9
  %168 = load ptr, ptr %2, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct._caryll_font, ptr %168, i32 0, i32 4
  %170 = load ptr, ptr %169, align 8, !tbaa !33
  %171 = getelementptr inbounds %struct.table_maxp, ptr %170, i32 0, i32 14
  store i16 %167, ptr %171, align 2, !tbaa !39
  %172 = load i16, ptr %6, align 2, !tbaa !9
  %173 = load ptr, ptr %2, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct._caryll_font, ptr %173, i32 0, i32 4
  %175 = load ptr, ptr %174, align 8, !tbaa !33
  %176 = getelementptr inbounds %struct.table_maxp, ptr %175, i32 0, i32 13
  store i16 %172, ptr %176, align 4, !tbaa !40
  %177 = load i16, ptr %9, align 2, !tbaa !9
  %178 = load ptr, ptr %2, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct._caryll_font, ptr %178, i32 0, i32 4
  %180 = load ptr, ptr %179, align 8, !tbaa !33
  %181 = getelementptr inbounds %struct.table_maxp, ptr %180, i32 0, i32 12
  store i16 %177, ptr %181, align 2, !tbaa !41
  call void @llvm.lifetime.end.p0(i64 2, ptr %9) #2
  call void @llvm.lifetime.end.p0(i64 2, ptr %8) #2
  call void @llvm.lifetime.end.p0(i64 2, ptr %7) #2
  call void @llvm.lifetime.end.p0(i64 2, ptr %6) #2
  call void @llvm.lifetime.end.p0(i64 2, ptr %5) #2
  call void @llvm.lifetime.end.p0(i64 2, ptr %4) #2
  call void @llvm.lifetime.end.p0(i64 2, ptr %3) #2
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = !{!"short", !7, i64 0}
!11 = !{!12, !6, i64 104}
!12 = !{!"_caryll_font", !13, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !16, i64 0}
!15 = !{!"", !16, i64 0, !16, i64 8, !6, i64 16}
!16 = !{!"long", !7, i64 0}
!17 = !{!15, !6, i64 16}
!18 = !{!19, !16, i64 136}
!19 = !{!"", !6, i64 0, !20, i64 8, !20, i64 40, !20, i64 72, !20, i64 104, !15, i64 136, !15, i64 160, !15, i64 184, !15, i64 208, !15, i64 232, !15, i64 256, !10, i64 280, !6, i64 288, !7, i64 296, !22, i64 304, !10, i64 320, !23, i64 328}
!20 = !{!"", !21, i64 0, !15, i64 8}
!21 = !{!"double", !7, i64 0}
!22 = !{!"otfcc_Handle", !13, i64 0, !10, i64 4, !6, i64 8}
!23 = !{!"", !21, i64 0, !21, i64 8, !21, i64 16, !21, i64 24, !10, i64 32, !10, i64 34, !10, i64 36, !10, i64 38, !10, i64 40}
!24 = !{!19, !10, i64 362}
!25 = !{!19, !10, i64 364}
!26 = !{!19, !16, i64 160}
!27 = !{!19, !10, i64 366}
!28 = !{!19, !10, i64 368}
!29 = !{!19, !10, i64 360}
!30 = !{!19, !10, i64 280}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!12, !6, i64 32}
!34 = !{!35, !10, i64 6}
!35 = !{!"", !13, i64 0, !10, i64 4, !10, i64 6, !10, i64 8, !10, i64 10, !10, i64 12, !10, i64 14, !10, i64 16, !10, i64 18, !10, i64 20, !10, i64 22, !10, i64 24, !10, i64 26, !10, i64 28, !10, i64 30}
!36 = !{!35, !10, i64 8}
!37 = !{!35, !10, i64 10}
!38 = !{!35, !10, i64 12}
!39 = !{!35, !10, i64 30}
!40 = !{!35, !10, i64 28}
!41 = !{!35, !10, i64 26}


; 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: nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable
define dso_local void @statMaxp(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 104
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = load i64, ptr %3, align 8, !tbaa !11
  %.not78 = icmp eq i64 %4, 0
  br i1 %.not78, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %1
  %5 = getelementptr inbounds i8, ptr %3, i64 16
  %6 = load ptr, ptr %5, align 8, !tbaa !14
  br label %16

._crit_edge:                                      ; preds = %39, %1
  %.050.lcssa = phi i16 [ 0, %1 ], [ %.151, %39 ]
  %.042.lcssa = phi i16 [ 0, %1 ], [ %spec.select61, %39 ]
  %.0.lcssa = phi i16 [ 0, %1 ], [ %.2, %39 ]
  %7 = phi <2 x i16> [ zeroinitializer, %1 ], [ %40, %39 ]
  %8 = phi <2 x i16> [ zeroinitializer, %1 ], [ %41, %39 ]
  %9 = getelementptr inbounds i8, ptr %0, i64 32
  %10 = load ptr, ptr %9, align 8, !tbaa !15
  %11 = getelementptr inbounds i8, ptr %10, i64 6
  store <2 x i16> %7, ptr %11, align 2, !tbaa !16
  %12 = getelementptr inbounds i8, ptr %10, i64 10
  store <2 x i16> %8, ptr %12, align 2, !tbaa !16
  %13 = getelementptr inbounds i8, ptr %10, i64 30
  store i16 %.0.lcssa, ptr %13, align 2, !tbaa !18
  %14 = getelementptr inbounds i8, ptr %10, i64 28
  store i16 %.050.lcssa, ptr %14, align 4, !tbaa !20
  %15 = getelementptr inbounds i8, ptr %10, i64 26
  store i16 %.042.lcssa, ptr %15, align 2, !tbaa !21
  ret void

16:                                               ; preds = %.lr.ph, %39
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %39 ]
  %.071 = phi i16 [ 0, %.lr.ph ], [ %.2, %39 ]
  %.04269 = phi i16 [ 0, %.lr.ph ], [ %spec.select61, %39 ]
  %.05066 = phi i16 [ 0, %.lr.ph ], [ %.151, %39 ]
  %17 = phi <2 x i16> [ zeroinitializer, %.lr.ph ], [ %40, %39 ]
  %18 = phi <2 x i16> [ zeroinitializer, %.lr.ph ], [ %41, %39 ]
  %19 = getelementptr inbounds ptr, ptr %6, i64 %indvars.iv
  %20 = load ptr, ptr %19, align 8, !tbaa !22
  %21 = getelementptr inbounds i8, ptr %20, i64 136
  %22 = load i64, ptr %21, align 8, !tbaa !23
  %.not = icmp eq i64 %22, 0
  br i1 %.not, label %27, label %23

23:                                               ; preds = %16
  %24 = getelementptr inbounds i8, ptr %20, i64 362
  %25 = load <2 x i16>, ptr %24, align 2, !tbaa !16
  %26 = tail call <2 x i16> @llvm.umax.v2i16(<2 x i16> %25, <2 x i16> %17)
  br label %39

27:                                               ; preds = %16
  %28 = getelementptr inbounds i8, ptr %20, i64 160
  %29 = load i64, ptr %28, align 8, !tbaa !29
  %.not59 = icmp eq i64 %29, 0
  br i1 %.not59, label %39, label %30

30:                                               ; preds = %27
  %31 = getelementptr inbounds i8, ptr %20, i64 366
  %32 = load <2 x i16>, ptr %31, align 2, !tbaa !16
  %33 = tail call <2 x i16> @llvm.umax.v2i16(<2 x i16> %32, <2 x i16> %18)
  %34 = getelementptr inbounds i8, ptr %20, i64 360
  %35 = load i16, ptr %34, align 8, !tbaa !30
  %.1 = tail call i16 @llvm.umax.i16(i16 %35, i16 %.071)
  %36 = zext i16 %.05066 to i64
  %37 = icmp ugt i64 %29, %36
  %38 = trunc i64 %29 to i16
  %spec.select63 = select i1 %37, i16 %38, i16 %.05066
  br label %39

39:                                               ; preds = %30, %23, %27
  %.151 = phi i16 [ %.05066, %27 ], [ %.05066, %23 ], [ %spec.select63, %30 ]
  %.2 = phi i16 [ %.071, %27 ], [ %.071, %23 ], [ %.1, %30 ]
  %40 = phi <2 x i16> [ %17, %27 ], [ %26, %23 ], [ %17, %30 ]
  %41 = phi <2 x i16> [ %18, %27 ], [ %18, %23 ], [ %33, %30 ]
  %42 = getelementptr inbounds i8, ptr %20, i64 280
  %43 = load i16, ptr %42, align 8, !tbaa !31
  %spec.select61 = tail call i16 @llvm.umax.i16(i16 %43, i16 %.04269)
  %indvars.iv.next = add i64 %indvars.iv, 1
  %44 = and i64 %indvars.iv.next, 65535
  %45 = icmp ugt i64 %4, %44
  br i1 %45, label %16, label %._crit_edge, !llvm.loop !32
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i16 @llvm.umax.i16(i16, i16) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x i16> @llvm.umax.v2i16(<2 x i16>, <2 x i16>) #1

attributes #0 = { nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) 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 speculatable willreturn memory(none) }

!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 104}
!6 = !{!"_caryll_font", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !10, i64 224, !10, i64 232, !10, i64 240, !10, i64 248, !10, i64 256, !10, i64 264}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"", !13, i64 0, !13, i64 8, !10, i64 16}
!13 = !{!"long", !8, i64 0}
!14 = !{!12, !10, i64 16}
!15 = !{!6, !10, i64 32}
!16 = !{!17, !17, i64 0}
!17 = !{!"short", !8, i64 0}
!18 = !{!19, !17, i64 30}
!19 = !{!"", !7, i64 0, !17, i64 4, !17, i64 6, !17, i64 8, !17, i64 10, !17, i64 12, !17, i64 14, !17, i64 16, !17, i64 18, !17, i64 20, !17, i64 22, !17, i64 24, !17, i64 26, !17, i64 28, !17, i64 30}
!20 = !{!19, !17, i64 28}
!21 = !{!19, !17, i64 26}
!22 = !{!10, !10, i64 0}
!23 = !{!24, !13, i64 136}
!24 = !{!"", !10, i64 0, !25, i64 8, !25, i64 40, !25, i64 72, !25, i64 104, !12, i64 136, !12, i64 160, !12, i64 184, !12, i64 208, !12, i64 232, !12, i64 256, !17, i64 280, !10, i64 288, !8, i64 296, !27, i64 304, !17, i64 320, !28, i64 328}
!25 = !{!"", !26, i64 0, !12, i64 8}
!26 = !{!"double", !8, i64 0}
!27 = !{!"otfcc_Handle", !7, i64 0, !17, i64 4, !10, i64 8}
!28 = !{!"", !26, i64 0, !26, i64 8, !26, i64 16, !26, i64 24, !17, i64 32, !17, i64 34, !17, i64 36, !17, i64 38, !17, i64 40}
!29 = !{!24, !13, i64 160}
!30 = !{!24, !17, i64 360}
!31 = !{!24, !17, i64 280}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass