; LLVM IR from mackorone/mms :: old/v2/src/lib/stb (stb_truetype)

; 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 }

@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_Z8ttUSHORTPKh(ptr noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z7ttULONGPKh(ptr noundef) #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @stbtt_InitFont(ptr noundef %0, ptr noundef %1, i32 noundef %2) #2 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %15, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  %16 = load ptr, ptr %8, align 8, !tbaa !5
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.stbtt_fontinfo, ptr %17, i32 0, i32 1
  store ptr %16, ptr %18, align 8, !tbaa !11
  %19 = load i32, ptr %7, align 4, !tbaa !9
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.stbtt_fontinfo, ptr %20, i32 0, i32 2
  store i32 %19, ptr %21, align 8, !tbaa !13
  %22 = load ptr, ptr %8, align 8, !tbaa !5
  %23 = load i32, ptr %7, align 4, !tbaa !9
  %24 = call noundef i32 @_ZL17stbtt__find_tablePhjPKc(ptr noundef %22, i32 noundef %23, ptr noundef @.str.1)
  store i32 %24, ptr %9, align 4, !tbaa !9
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  %26 = load i32, ptr %7, align 4, !tbaa !9
  %27 = call noundef i32 @_ZL17stbtt__find_tablePhjPKc(ptr noundef %25, i32 noundef %26, ptr noundef @.str.2)
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.stbtt_fontinfo, ptr %28, i32 0, i32 4
  store i32 %27, ptr %29, align 8, !tbaa !14
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  %31 = load i32, ptr %7, align 4, !tbaa !9
  %32 = call noundef i32 @_ZL17stbtt__find_tablePhjPKc(ptr noundef %30, i32 noundef %31, ptr noundef @.str.3)
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.stbtt_fontinfo, ptr %33, i32 0, i32 5
  store i32 %32, ptr %34, align 4, !tbaa !15
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = load i32, ptr %7, align 4, !tbaa !9
  %37 = call noundef i32 @_ZL17stbtt__find_tablePhjPKc(ptr noundef %35, i32 noundef %36, ptr noundef @.str.4)
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.stbtt_fontinfo, ptr %38, i32 0, i32 6
  store i32 %37, ptr %39, align 8, !tbaa !16
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = load i32, ptr %7, align 4, !tbaa !9
  %42 = call noundef i32 @_ZL17stbtt__find_tablePhjPKc(ptr noundef %40, i32 noundef %41, ptr noundef @.str.5)
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.stbtt_fontinfo, ptr %43, i32 0, i32 7
  store i32 %42, ptr %44, align 4, !tbaa !17
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = load i32, ptr %7, align 4, !tbaa !9
  %47 = call noundef i32 @_ZL17stbtt__find_tablePhjPKc(ptr noundef %45, i32 noundef %46, ptr noundef @.str.6)
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.stbtt_fontinfo, ptr %48, i32 0, i32 8
  store i32 %47, ptr %49, align 8, !tbaa !18
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = load i32, ptr %7, align 4, !tbaa !9
  %52 = call noundef i32 @_ZL17stbtt__find_tablePhjPKc(ptr noundef %50, i32 noundef %51, ptr noundef @.str.7)
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.stbtt_fontinfo, ptr %53, i32 0, i32 9
  store i32 %52, ptr %54, align 4, !tbaa !19
  %55 = load i32, ptr %9, align 4, !tbaa !9
  %56 = icmp ne i32 %55, 0
  br i1 %56, label %57, label %82

57:                                               ; preds = %3
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.stbtt_fontinfo, ptr %58, i32 0, i32 4
  %60 = load i32, ptr %59, align 8, !tbaa !14
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %82

62:                                               ; preds = %57
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.stbtt_fontinfo, ptr %63, i32 0, i32 5
  %65 = load i32, ptr %64, align 4, !tbaa !15
  %66 = icmp ne i32 %65, 0
  br i1 %66, label %67, label %82

67:                                               ; preds = %62
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.stbtt_fontinfo, ptr %68, i32 0, i32 6
  %70 = load i32, ptr %69, align 8, !tbaa !16
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %72, label %82

72:                                               ; preds = %67
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.stbtt_fontinfo, ptr %73, i32 0, i32 7
  %75 = load i32, ptr %74, align 4, !tbaa !17
  %76 = icmp ne i32 %75, 0
  br i1 %76, label %77, label %82

77:                                               ; preds = %72
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.stbtt_fontinfo, ptr %78, i32 0, i32 8
  %80 = load i32, ptr %79, align 8, !tbaa !18
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %83, label %82

82:                                               ; preds = %77, %72, %67, %62, %57, %3
  store i32 0, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %170

83:                                               ; preds = %77
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = load i32, ptr %7, align 4, !tbaa !9
  %86 = call noundef i32 @_ZL17stbtt__find_tablePhjPKc(ptr noundef %84, i32 noundef %85, ptr noundef @.str.8)
  store i32 %86, ptr %10, align 4, !tbaa !9
  %87 = load i32, ptr %10, align 4, !tbaa !9
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %89, label %99

89:                                               ; preds = %83
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = load i32, ptr %10, align 4, !tbaa !9
  %92 = zext i32 %91 to i64
  %93 = getelementptr inbounds i8, ptr %90, i64 %92
  %94 = getelementptr inbounds i8, ptr %93, i64 4
  %95 = call noundef zeroext i16 @_Z8ttUSHORTPKh(ptr noundef %94)
  %96 = zext i16 %95 to i32
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.stbtt_fontinfo, ptr %97, i32 0, i32 3
  store i32 %96, ptr %98, align 4, !tbaa !20
  br label %102

99:                                               ; preds = %83
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.stbtt_fontinfo, ptr %100, i32 0, i32 3
  store i32 65535, ptr %101, align 4, !tbaa !20
  br label %102

102:                                              ; preds = %99, %89
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = load i32, ptr %9, align 4, !tbaa !9
  %105 = zext i32 %104 to i64
  %106 = getelementptr inbounds i8, ptr %103, i64 %105
  %107 = getelementptr inbounds i8, ptr %106, i64 2
  %108 = call noundef zeroext i16 @_Z8ttUSHORTPKh(ptr noundef %107)
  %109 = zext i16 %108 to i32
  store i32 %109, ptr %12, align 4, !tbaa !9
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.stbtt_fontinfo, ptr %110, i32 0, i32 10
  store i32 0, ptr %111, align 8, !tbaa !21
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %112

112:                                              ; preds = %149, %102
  %113 = load i32, ptr %11, align 4, !tbaa !9
  %114 = load i32, ptr %12, align 4, !tbaa !9
  %115 = icmp slt i32 %113, %114
  br i1 %115, label %116, label %152

116:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  %117 = load i32, ptr %9, align 4, !tbaa !9
  %118 = add i32 %117, 4
  %119 = load i32, ptr %11, align 4, !tbaa !9
  %120 = mul nsw i32 8, %119
  %121 = add i32 %118, %120
  store i32 %121, ptr %14, align 4, !tbaa !9
  %122 = load ptr, ptr %8, align 8, !tbaa !5
  %123 = load i32, ptr %14, align 4, !tbaa !9
  %124 = zext i32 %123 to i64
  %125 = getelementptr inbounds i8, ptr %122, i64 %124
  %126 = call noundef zeroext i16 @_Z8ttUSHORTPKh(ptr noundef %125)
  %127 = zext i16 %126 to i32
  switch i32 %127, label %148 [
    i32 3, label %128
  ]

128:                                              ; preds = %116
  %129 = load ptr, ptr %8, align 8, !tbaa !5
  %130 = load i32, ptr %14, align 4, !tbaa !9
  %131 = zext i32 %130 to i64
  %132 = getelementptr inbounds i8, ptr %129, i64 %131
  %133 = getelementptr inbounds i8, ptr %132, i64 2
  %134 = call noundef zeroext i16 @_Z8ttUSHORTPKh(ptr noundef %133)
  %135 = zext i16 %134 to i32
  switch i32 %135, label %147 [
    i32 1, label %136
    i32 10, label %136
  ]

136:                                              ; preds = %128, %128
  %137 = load i32, ptr %9, align 4, !tbaa !9
  %138 = load ptr, ptr %8, align 8, !tbaa !5
  %139 = load i32, ptr %14, align 4, !tbaa !9
  %140 = zext i32 %139 to i64
  %141 = getelementptr inbounds i8, ptr %138, i64 %140
  %142 = getelementptr inbounds i8, ptr %141, i64 4
  %143 = call noundef i32 @_Z7ttULONGPKh(ptr noundef %142)
  %144 = add i32 %137, %143
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.stbtt_fontinfo, ptr %145, i32 0, i32 10
  store i32 %144, ptr %146, align 8, !tbaa !21
  br label %147

147:                                              ; preds = %136, %128
  br label %148

148:                                              ; preds = %147, %116
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  br label %149

149:                                              ; preds = %148
  %150 = load i32, ptr %11, align 4, !tbaa !9
  %151 = add nsw i32 %150, 1
  store i32 %151, ptr %11, align 4, !tbaa !9
  br label %112, !llvm.loop !22

152:                                              ; preds = %112
  %153 = load ptr, ptr %5, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.stbtt_fontinfo, ptr %153, i32 0, i32 10
  %155 = load i32, ptr %154, align 8, !tbaa !21
  %156 = icmp eq i32 %155, 0
  br i1 %156, label %157, label %158

157:                                              ; preds = %152
  store i32 0, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %170

158:                                              ; preds = %152
  %159 = load ptr, ptr %8, align 8, !tbaa !5
  %160 = load ptr, ptr %5, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.stbtt_fontinfo, ptr %160, i32 0, i32 5
  %162 = load i32, ptr %161, align 4, !tbaa !15
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds i8, ptr %159, i64 %163
  %165 = getelementptr inbounds i8, ptr %164, i64 50
  %166 = call noundef zeroext i16 @_Z8ttUSHORTPKh(ptr noundef %165)
  %167 = zext i16 %166 to i32
  %168 = load ptr, ptr %5, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.stbtt_fontinfo, ptr %168, i32 0, i32 11
  store i32 %167, ptr %169, align 4, !tbaa !24
  store i32 1, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %170

170:                                              ; preds = %158, %157, %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  %171 = load i32, ptr %4, align 4
  ret i32 %171
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL17stbtt__find_tablePhjPKc(ptr noundef, i32 noundef, ptr noundef) #0

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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, !6, i64 8}
!12 = !{!"_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}
!13 = !{!12, !10, i64 16}
!14 = !{!12, !10, i64 24}
!15 = !{!12, !10, i64 28}
!16 = !{!12, !10, i64 32}
!17 = !{!12, !10, i64 36}
!18 = !{!12, !10, i64 40}
!19 = !{!12, !10, i64 44}
!20 = !{!12, !10, i64 20}
!21 = !{!12, !10, i64 48}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!12, !10, i64 52}


; 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"

@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_Z8ttUSHORTPKh(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z7ttULONGPKh(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
define dso_local range(i32 0, 2) i32 @stbtt_InitFont(ptr nocapture noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %2, ptr %5, align 8, !tbaa !11
  %6 = tail call noundef i32 @_ZL17stbtt__find_tablePhjPKc(ptr noundef %1, i32 noundef %2, ptr noundef nonnull @.str.1)
  %7 = tail call noundef i32 @_ZL17stbtt__find_tablePhjPKc(ptr noundef %1, i32 noundef %2, ptr noundef nonnull @.str.2)
  %8 = getelementptr inbounds i8, ptr %0, i64 24
  store i32 %7, ptr %8, align 8, !tbaa !12
  %9 = tail call noundef i32 @_ZL17stbtt__find_tablePhjPKc(ptr noundef %1, i32 noundef %2, ptr noundef nonnull @.str.3)
  %10 = getelementptr inbounds i8, ptr %0, i64 28
  store i32 %9, ptr %10, align 4, !tbaa !13
  %11 = tail call noundef i32 @_ZL17stbtt__find_tablePhjPKc(ptr noundef %1, i32 noundef %2, ptr noundef nonnull @.str.4)
  %12 = getelementptr inbounds i8, ptr %0, i64 32
  store i32 %11, ptr %12, align 8, !tbaa !14
  %13 = tail call noundef i32 @_ZL17stbtt__find_tablePhjPKc(ptr noundef %1, i32 noundef %2, ptr noundef nonnull @.str.5)
  %14 = getelementptr inbounds i8, ptr %0, i64 36
  store i32 %13, ptr %14, align 4, !tbaa !15
  %15 = tail call noundef i32 @_ZL17stbtt__find_tablePhjPKc(ptr noundef %1, i32 noundef %2, ptr noundef nonnull @.str.6)
  %16 = getelementptr inbounds i8, ptr %0, i64 40
  store i32 %15, ptr %16, align 8, !tbaa !16
  %17 = tail call noundef i32 @_ZL17stbtt__find_tablePhjPKc(ptr noundef %1, i32 noundef %2, ptr noundef nonnull @.str.7)
  %18 = getelementptr inbounds i8, ptr %0, i64 44
  store i32 %17, ptr %18, align 4, !tbaa !17
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %._crit_edge.thread, label %19

19:                                               ; preds = %3
  %20 = load i32, ptr %8, align 8, !tbaa !12
  %.not61 = icmp eq i32 %20, 0
  br i1 %.not61, label %._crit_edge.thread, label %21

21:                                               ; preds = %19
  %22 = load i32, ptr %10, align 4, !tbaa !13
  %.not62 = icmp eq i32 %22, 0
  br i1 %.not62, label %._crit_edge.thread, label %23

23:                                               ; preds = %21
  %24 = load i32, ptr %12, align 8, !tbaa !14
  %.not63 = icmp eq i32 %24, 0
  br i1 %.not63, label %._crit_edge.thread, label %25

25:                                               ; preds = %23
  %26 = load i32, ptr %14, align 4, !tbaa !15
  %.not64 = icmp eq i32 %26, 0
  br i1 %.not64, label %._crit_edge.thread, label %27

27:                                               ; preds = %25
  %28 = load i32, ptr %16, align 8, !tbaa !16
  %.not65 = icmp eq i32 %28, 0
  br i1 %.not65, label %._crit_edge.thread, label %29

29:                                               ; preds = %27
  %30 = tail call noundef i32 @_ZL17stbtt__find_tablePhjPKc(ptr noundef %1, i32 noundef %2, ptr noundef nonnull @.str.8)
  %.not66 = icmp eq i32 %30, 0
  br i1 %.not66, label %37, label %31

31:                                               ; preds = %29
  %32 = zext i32 %30 to i64
  %33 = getelementptr inbounds i8, ptr %1, i64 %32
  %34 = getelementptr inbounds i8, ptr %33, i64 4
  %35 = tail call noundef zeroext i16 @_Z8ttUSHORTPKh(ptr noundef nonnull %34)
  %36 = zext i16 %35 to i32
  br label %37

37:                                               ; preds = %29, %31
  %.sink = phi i32 [ %36, %31 ], [ 65535, %29 ]
  %38 = getelementptr inbounds i8, ptr %0, i64 20
  store i32 %.sink, ptr %38, align 4
  %39 = zext i32 %6 to i64
  %40 = getelementptr inbounds i8, ptr %1, i64 %39
  %41 = getelementptr inbounds i8, ptr %40, i64 2
  %42 = tail call noundef zeroext i16 @_Z8ttUSHORTPKh(ptr noundef nonnull %41)
  %43 = getelementptr inbounds i8, ptr %0, i64 48
  store i32 0, ptr %43, align 8, !tbaa !18
  %.not68 = icmp eq i16 %42, 0
  br i1 %.not68, label %._crit_edge.thread, label %.lr.ph

.lr.ph:                                           ; preds = %37
  %44 = add i32 %6, 4
  %wide.trip.count = zext i16 %42 to i64
  br label %45

45:                                               ; preds = %.lr.ph, %58
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %58 ]
  %indvars.iv.tr = trunc i64 %indvars.iv to i32
  %46 = shl i32 %indvars.iv.tr, 3
  %47 = add i32 %44, %46
  %48 = zext i32 %47 to i64
  %49 = getelementptr inbounds i8, ptr %1, i64 %48
  %50 = tail call noundef zeroext i16 @_Z8ttUSHORTPKh(ptr noundef %49)
  %cond = icmp eq i16 %50, 3
  br i1 %cond, label %51, label %58

51:                                               ; preds = %45
  %52 = getelementptr inbounds i8, ptr %49, i64 2
  %53 = tail call noundef zeroext i16 @_Z8ttUSHORTPKh(ptr noundef nonnull %52)
  switch i16 %53, label %58 [
    i16 1, label %54
    i16 10, label %54
  ]

54:                                               ; preds = %51, %51
  %55 = getelementptr inbounds i8, ptr %49, i64 4
  %56 = tail call noundef i32 @_Z7ttULONGPKh(ptr noundef nonnull %55)
  %57 = add i32 %56, %6
  store i32 %57, ptr %43, align 8, !tbaa !18
  br label %58

58:                                               ; preds = %51, %54, %45
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %45, !llvm.loop !19

._crit_edge:                                      ; preds = %58
  %.pre = load i32, ptr %43, align 8, !tbaa !18
  %59 = icmp eq i32 %.pre, 0
  br i1 %59, label %._crit_edge.thread, label %60

60:                                               ; preds = %._crit_edge
  %61 = load i32, ptr %10, align 4, !tbaa !13
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds i8, ptr %1, i64 %62
  %64 = getelementptr inbounds i8, ptr %63, i64 50
  %65 = tail call noundef zeroext i16 @_Z8ttUSHORTPKh(ptr noundef nonnull %64)
  %66 = zext i16 %65 to i32
  %67 = getelementptr inbounds i8, ptr %0, i64 52
  store i32 %66, ptr %67, align 4, !tbaa !21
  br label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %37, %._crit_edge, %3, %19, %21, %23, %25, %27, %60
  %.0 = phi i32 [ 1, %60 ], [ 0, %27 ], [ 0, %25 ], [ 0, %23 ], [ 0, %21 ], [ 0, %19 ], [ 0, %3 ], [ 0, %._crit_edge ], [ 0, %37 ]
  ret i32 %.0
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL17stbtt__find_tablePhjPKc(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

!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, !7, i64 8}
!6 = !{!"_ZTS14stbtt_fontinfo", !7, i64 0, !7, 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}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !10, i64 16}
!12 = !{!6, !10, i64 24}
!13 = !{!6, !10, i64 28}
!14 = !{!6, !10, i64 32}
!15 = !{!6, !10, i64 36}
!16 = !{!6, !10, i64 40}
!17 = !{!6, !10, i64 44}
!18 = !{!6, !10, i64 48}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!6, !10, i64 52}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass