; LLVM IR from caryll/otfcc :: lib/table/otl/subtables (gsub-multi)

; 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_vectorinterface_subtable_gsub_multi = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.__otfcc_ICoverage = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.otfcc_HandlePackage = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.otfcc_Handle = type { i32, i16, ptr }
%struct.otl_GsubMultiEntry = type { %struct.otfcc_Handle, ptr }
%struct.otl_Coverage = type { i16, i32, ptr }

@iSubtable_gsub_multi = external dso_local constant %struct.__caryll_vectorinterface_subtable_gsub_multi, align 8
@otl_iCoverage = external constant %struct.__otfcc_ICoverage, align 8
@otfcc_iHandle = external constant %struct.otfcc_HandlePackage, align 8

; Function Attrs: nounwind uwtable
define dso_local ptr @otl_read_gsub_multi(ptr noundef %0, i32 noundef %1, i32 noundef %2, i16 noundef zeroext %3, ptr noundef %4) #0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i16, align 2
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i16, align 2
  %15 = alloca i16, align 2
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca i16, align 2
  %20 = alloca i16, align 2
  %21 = alloca %struct.otfcc_Handle, align 8
  %22 = alloca %struct.otl_GsubMultiEntry, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i16 %3, ptr %10, align 2, !tbaa !11
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %23 = load ptr, ptr getelementptr inbounds (%struct.__caryll_vectorinterface_subtable_gsub_multi, ptr @iSubtable_gsub_multi, i32 0, i32 6), align 8, !tbaa !13
  %24 = call ptr (...) %23()
  store ptr %24, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  store ptr null, ptr %13, align 8, !tbaa !5
  %25 = load i32, ptr %8, align 4, !tbaa !9
  %26 = load i32, ptr %9, align 4, !tbaa !9
  %27 = add i32 %26, 6
  %28 = icmp ult i32 %25, %27
  br i1 %28, label %29, label %30

29:                                               ; preds = %5
  br label %161

30:                                               ; preds = %5
  %31 = load ptr, ptr getelementptr inbounds (%struct.__otfcc_ICoverage, ptr @otl_iCoverage, i32 0, i32 9), align 8, !tbaa !15
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = load i32, ptr %8, align 4, !tbaa !9
  %34 = load i32, ptr %9, align 4, !tbaa !9
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = load i32, ptr %9, align 4, !tbaa !9
  %37 = zext i32 %36 to i64
  %38 = getelementptr inbounds i8, ptr %35, i64 %37
  %39 = getelementptr inbounds i8, ptr %38, i64 2
  %40 = call zeroext i16 @read_16u(ptr noundef %39)
  %41 = zext i16 %40 to i32
  %42 = add i32 %34, %41
  %43 = call ptr %31(ptr noundef %32, i32 noundef %33, i32 noundef %42)
  store ptr %43, ptr %13, align 8, !tbaa !5
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = load i32, ptr %9, align 4, !tbaa !9
  %46 = zext i32 %45 to i64
  %47 = getelementptr inbounds i8, ptr %44, i64 %46
  %48 = getelementptr inbounds i8, ptr %47, i64 4
  %49 = call zeroext i16 @read_16u(ptr noundef %48)
  store i16 %49, ptr %14, align 2, !tbaa !11
  %50 = load i16, ptr %14, align 2, !tbaa !11
  %51 = zext i16 %50 to i32
  %52 = load ptr, ptr %13, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.otl_Coverage, ptr %52, i32 0, i32 0
  %54 = load i16, ptr %53, align 8, !tbaa !17
  %55 = zext i16 %54 to i32
  %56 = icmp ne i32 %51, %55
  br i1 %56, label %57, label %58

57:                                               ; preds = %30
  br label %161

58:                                               ; preds = %30
  %59 = load i32, ptr %8, align 4, !tbaa !9
  %60 = load i32, ptr %9, align 4, !tbaa !9
  %61 = add i32 %60, 6
  %62 = load i16, ptr %14, align 2, !tbaa !11
  %63 = zext i16 %62 to i32
  %64 = mul nsw i32 %63, 2
  %65 = add i32 %61, %64
  %66 = icmp ult i32 %59, %65
  br i1 %66, label %67, label %68

67:                                               ; preds = %58
  br label %161

68:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 2, ptr %15) #3
  store i16 0, ptr %15, align 2, !tbaa !11
  br label %69

69:                                               ; preds = %154, %68
  %70 = load i16, ptr %15, align 2, !tbaa !11
  %71 = zext i16 %70 to i32
  %72 = load i16, ptr %14, align 2, !tbaa !11
  %73 = zext i16 %72 to i32
  %74 = icmp slt i32 %71, %73
  br i1 %74, label %76, label %75

75:                                               ; preds = %69
  store i32 3, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #3
  br label %157

76:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  %77 = load i32, ptr %9, align 4, !tbaa !9
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = load i32, ptr %9, align 4, !tbaa !9
  %80 = zext i32 %79 to i64
  %81 = getelementptr inbounds i8, ptr %78, i64 %80
  %82 = getelementptr inbounds i8, ptr %81, i64 6
  %83 = load i16, ptr %15, align 2, !tbaa !11
  %84 = zext i16 %83 to i32
  %85 = mul nsw i32 %84, 2
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds i8, ptr %82, i64 %86
  %88 = call zeroext i16 @read_16u(ptr noundef %87)
  %89 = zext i16 %88 to i32
  %90 = add i32 %77, %89
  store i32 %90, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  %91 = load ptr, ptr getelementptr inbounds (%struct.__otfcc_ICoverage, ptr @otl_iCoverage, i32 0, i32 6), align 8, !tbaa !19
  %92 = call ptr (...) %91()
  store ptr %92, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %19) #3
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = load i32, ptr %17, align 4, !tbaa !9
  %95 = zext i32 %94 to i64
  %96 = getelementptr inbounds i8, ptr %93, i64 %95
  %97 = call zeroext i16 @read_16u(ptr noundef %96)
  store i16 %97, ptr %19, align 2, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 2, ptr %20) #3
  store i16 0, ptr %20, align 2, !tbaa !11
  br label %98

98:                                               ; preds = %129, %76
  %99 = load i16, ptr %20, align 2, !tbaa !11
  %100 = zext i16 %99 to i32
  %101 = load i16, ptr %19, align 2, !tbaa !11
  %102 = zext i16 %101 to i32
  %103 = icmp slt i32 %100, %102
  br i1 %103, label %105, label %104

104:                                              ; preds = %98
  store i32 6, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %20) #3
  br label %132

105:                                              ; preds = %98
  %106 = load ptr, ptr getelementptr inbounds (%struct.__otfcc_ICoverage, ptr @otl_iCoverage, i32 0, i32 15), align 8, !tbaa !20
  %107 = load ptr, ptr %18, align 8, !tbaa !5
  %108 = load ptr, ptr getelementptr inbounds (%struct.otfcc_HandlePackage, ptr @otfcc_iHandle, i32 0, i32 8), align 8, !tbaa !21
  %109 = load ptr, ptr %7, align 8, !tbaa !5
  %110 = load i32, ptr %17, align 4, !tbaa !9
  %111 = zext i32 %110 to i64
  %112 = getelementptr inbounds i8, ptr %109, i64 %111
  %113 = getelementptr inbounds i8, ptr %112, i64 2
  %114 = load i16, ptr %20, align 2, !tbaa !11
  %115 = zext i16 %114 to i32
  %116 = mul nsw i32 %115, 2
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds i8, ptr %113, i64 %117
  %119 = call zeroext i16 @read_16u(ptr noundef %118)
  %120 = call { i64, ptr } %108(i16 noundef zeroext %119)
  %121 = getelementptr inbounds { i64, ptr }, ptr %21, i32 0, i32 0
  %122 = extractvalue { i64, ptr } %120, 0
  store i64 %122, ptr %121, align 8
  %123 = getelementptr inbounds { i64, ptr }, ptr %21, i32 0, i32 1
  %124 = extractvalue { i64, ptr } %120, 1
  store ptr %124, ptr %123, align 8
  %125 = getelementptr inbounds { i64, ptr }, ptr %21, i32 0, i32 0
  %126 = load i64, ptr %125, align 8
  %127 = getelementptr inbounds { i64, ptr }, ptr %21, i32 0, i32 1
  %128 = load ptr, ptr %127, align 8
  call void %106(ptr noundef %107, i64 %126, ptr %128)
  br label %129

129:                                              ; preds = %105
  %130 = load i16, ptr %20, align 2, !tbaa !11
  %131 = add i16 %130, 1
  store i16 %131, ptr %20, align 2, !tbaa !11
  br label %98, !llvm.loop !23

132:                                              ; preds = %104
  %133 = load ptr, ptr getelementptr inbounds (%struct.__caryll_vectorinterface_subtable_gsub_multi, ptr @iSubtable_gsub_multi, i32 0, i32 13), align 8, !tbaa !25
  %134 = load ptr, ptr %12, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.otl_GsubMultiEntry, ptr %22, i32 0, i32 0
  %136 = load ptr, ptr getelementptr inbounds (%struct.otfcc_HandlePackage, ptr @otfcc_iHandle, i32 0, i32 7), align 8, !tbaa !26
  %137 = load ptr, ptr %13, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.otl_Coverage, ptr %137, i32 0, i32 2
  %139 = load ptr, ptr %138, align 8, !tbaa !27
  %140 = load i16, ptr %15, align 2, !tbaa !11
  %141 = zext i16 %140 to i64
  %142 = getelementptr inbounds %struct.otfcc_Handle, ptr %139, i64 %141
  %143 = getelementptr inbounds { i64, ptr }, ptr %142, i32 0, i32 0
  %144 = load i64, ptr %143, align 8
  %145 = getelementptr inbounds { i64, ptr }, ptr %142, i32 0, i32 1
  %146 = load ptr, ptr %145, align 8
  %147 = call { i64, ptr } %136(i64 %144, ptr %146)
  %148 = getelementptr inbounds { i64, ptr }, ptr %135, i32 0, i32 0
  %149 = extractvalue { i64, ptr } %147, 0
  store i64 %149, ptr %148, align 8
  %150 = getelementptr inbounds { i64, ptr }, ptr %135, i32 0, i32 1
  %151 = extractvalue { i64, ptr } %147, 1
  store ptr %151, ptr %150, align 8
  %152 = getelementptr inbounds %struct.otl_GsubMultiEntry, ptr %22, i32 0, i32 1
  %153 = load ptr, ptr %18, align 8, !tbaa !5
  store ptr %153, ptr %152, align 8, !tbaa !28
  call void %133(ptr noundef %134, ptr noundef byval(%struct.otl_GsubMultiEntry) align 8 %22)
  call void @llvm.lifetime.end.p0(i64 2, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  br label %154

154:                                              ; preds = %132
  %155 = load i16, ptr %15, align 2, !tbaa !11
  %156 = add i16 %155, 1
  store i16 %156, ptr %15, align 2, !tbaa !11
  br label %69, !llvm.loop !31

157:                                              ; preds = %75
  %158 = load ptr, ptr getelementptr inbounds (%struct.__otfcc_ICoverage, ptr @otl_iCoverage, i32 0, i32 7), align 8, !tbaa !32
  %159 = load ptr, ptr %13, align 8, !tbaa !5
  call void %158(ptr noundef %159)
  %160 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %160, ptr %6, align 8
  store i32 1, ptr %16, align 4
  br label %170

161:                                              ; preds = %67, %57, %29
  %162 = load ptr, ptr %13, align 8, !tbaa !5
  %163 = icmp ne ptr %162, null
  br i1 %163, label %164, label %167

164:                                              ; preds = %161
  %165 = load ptr, ptr getelementptr inbounds (%struct.__otfcc_ICoverage, ptr @otl_iCoverage, i32 0, i32 7), align 8, !tbaa !32
  %166 = load ptr, ptr %13, align 8, !tbaa !5
  call void %165(ptr noundef %166)
  br label %167

167:                                              ; preds = %164, %161
  %168 = load ptr, ptr getelementptr inbounds (%struct.__caryll_vectorinterface_subtable_gsub_multi, ptr @iSubtable_gsub_multi, i32 0, i32 7), align 8, !tbaa !33
  %169 = load ptr, ptr %12, align 8, !tbaa !5
  call void %168(ptr noundef %169)
  store ptr null, ptr %6, align 8
  store i32 1, ptr %16, align 4
  br label %170

170:                                              ; preds = %167, %157
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  %171 = load ptr, ptr %6, align 8
  ret ptr %171
}

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @read_16u(ptr noundef) #2

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

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 nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!14, !6, i64 48}
!14 = !{!"__caryll_vectorinterface_subtable_gsub_multi", !6, 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}
!15 = !{!16, !6, i64 72}
!16 = !{!"__otfcc_ICoverage", !6, 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}
!17 = !{!18, !12, i64 0}
!18 = !{!"", !12, i64 0, !10, i64 4, !6, i64 8}
!19 = !{!16, !6, i64 48}
!20 = !{!16, !6, i64 120}
!21 = !{!22, !6, i64 64}
!22 = !{!"otfcc_HandlePackage", !6, 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}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!14, !6, i64 104}
!26 = !{!22, !6, i64 56}
!27 = !{!18, !6, i64 8}
!28 = !{!29, !6, i64 16}
!29 = !{!"", !30, i64 0, !6, i64 16}
!30 = !{!"otfcc_Handle", !10, i64 0, !12, i64 4, !6, i64 8}
!31 = distinct !{!31, !24}
!32 = !{!16, !6, i64 56}
!33 = !{!14, !6, i64 56}


; 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.__caryll_vectorinterface_subtable_gsub_multi = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.__otfcc_ICoverage = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.otfcc_HandlePackage = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.otl_GsubMultiEntry = type { %struct.otfcc_Handle, ptr }
%struct.otfcc_Handle = type { i32, i16, ptr }

@iSubtable_gsub_multi = external dso_local local_unnamed_addr constant %struct.__caryll_vectorinterface_subtable_gsub_multi, align 8
@otl_iCoverage = external local_unnamed_addr constant %struct.__otfcc_ICoverage, align 8
@otfcc_iHandle = external local_unnamed_addr constant %struct.otfcc_HandlePackage, align 8

; Function Attrs: nounwind uwtable
define dso_local ptr @otl_read_gsub_multi(ptr noundef %0, i32 noundef %1, i32 noundef %2, i16 noundef zeroext %3, ptr nocapture noundef readnone %4) local_unnamed_addr #0 {
  %6 = alloca %struct.otl_GsubMultiEntry, align 8
  %7 = load ptr, ptr getelementptr inbounds (i8, ptr @iSubtable_gsub_multi, i64 48), align 8, !tbaa !5
  %8 = tail call ptr (...) %7() #2
  %9 = add i32 %2, 6
  %10 = icmp ugt i32 %9, %1
  br i1 %10, label %66, label %11

11:                                               ; preds = %5
  %12 = load ptr, ptr getelementptr inbounds (i8, ptr @otl_iCoverage, i64 72), align 8, !tbaa !10
  %13 = zext i32 %2 to i64
  %14 = getelementptr inbounds i8, ptr %0, i64 %13
  %15 = getelementptr inbounds i8, ptr %14, i64 2
  %16 = tail call zeroext i16 @read_16u(ptr noundef nonnull %15)
  %17 = zext i16 %16 to i32
  %18 = add i32 %17, %2
  %19 = tail call ptr %12(ptr noundef %0, i32 noundef %1, i32 noundef %18) #2
  %20 = getelementptr inbounds i8, ptr %14, i64 4
  %21 = tail call zeroext i16 @read_16u(ptr noundef nonnull %20)
  %22 = load i16, ptr %19, align 8, !tbaa !12
  %.not = icmp eq i16 %21, %22
  br i1 %.not, label %23, label %64

23:                                               ; preds = %11
  %24 = zext i16 %21 to i32
  %25 = shl nuw nsw i32 %24, 1
  %26 = add i32 %25, %9
  %27 = icmp ugt i32 %26, %1
  br i1 %27, label %64, label %.preheader

.preheader:                                       ; preds = %23
  %.not55 = icmp eq i16 %21, 0
  br i1 %.not55, label %._crit_edge54, label %.lr.ph53

.lr.ph53:                                         ; preds = %.preheader
  %28 = getelementptr inbounds i8, ptr %14, i64 6
  %29 = load ptr, ptr getelementptr inbounds (i8, ptr @otl_iCoverage, i64 48), align 8
  %30 = load ptr, ptr getelementptr inbounds (i8, ptr @otl_iCoverage, i64 120), align 8
  %31 = load ptr, ptr getelementptr inbounds (i8, ptr @otfcc_iHandle, i64 64), align 8
  %32 = load ptr, ptr getelementptr inbounds (i8, ptr @iSubtable_gsub_multi, i64 104), align 8
  %33 = load ptr, ptr getelementptr inbounds (i8, ptr @otfcc_iHandle, i64 56), align 8
  %34 = getelementptr inbounds i8, ptr %19, i64 8
  %35 = getelementptr inbounds i8, ptr %6, i64 8
  %36 = getelementptr inbounds i8, ptr %6, i64 16
  %wide.trip.count61 = zext i16 %21 to i64
  br label %38

._crit_edge54:                                    ; preds = %._crit_edge, %.preheader
  %37 = load ptr, ptr getelementptr inbounds (i8, ptr @otl_iCoverage, i64 56), align 8, !tbaa !16
  tail call void %37(ptr noundef nonnull %19) #2
  br label %68

38:                                               ; preds = %.lr.ph53, %._crit_edge
  %indvars.iv58 = phi i64 [ 0, %.lr.ph53 ], [ %indvars.iv.next59, %._crit_edge ]
  %39 = shl nuw nsw i64 %indvars.iv58, 1
  %40 = getelementptr inbounds i8, ptr %28, i64 %39
  %41 = tail call zeroext i16 @read_16u(ptr noundef nonnull %40)
  %42 = zext i16 %41 to i32
  %43 = add i32 %42, %2
  %44 = tail call ptr (...) %29() #2
  %45 = zext i32 %43 to i64
  %46 = getelementptr inbounds i8, ptr %0, i64 %45
  %47 = tail call zeroext i16 @read_16u(ptr noundef %46)
  %.not56 = icmp eq i16 %47, 0
  br i1 %.not56, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %38
  %48 = getelementptr inbounds i8, ptr %46, i64 2
  %wide.trip.count = zext i16 %47 to i64
  br label %57

._crit_edge:                                      ; preds = %57, %38
  %49 = load ptr, ptr %34, align 8, !tbaa !17
  %50 = getelementptr inbounds %struct.otfcc_Handle, ptr %49, i64 %indvars.iv58
  %51 = load i64, ptr %50, align 8
  %52 = getelementptr inbounds i8, ptr %50, i64 8
  %53 = load ptr, ptr %52, align 8
  %54 = tail call { i64, ptr } %33(i64 %51, ptr %53) #2
  %55 = extractvalue { i64, ptr } %54, 0
  store i64 %55, ptr %6, align 8
  %56 = extractvalue { i64, ptr } %54, 1
  store ptr %56, ptr %35, align 8
  store ptr %44, ptr %36, align 8, !tbaa !18
  tail call void %32(ptr noundef %8, ptr noundef nonnull byval(%struct.otl_GsubMultiEntry) align 8 %6) #2
  %indvars.iv.next59 = add nuw nsw i64 %indvars.iv58, 1
  %exitcond62.not = icmp eq i64 %indvars.iv.next59, %wide.trip.count61
  br i1 %exitcond62.not, label %._crit_edge54, label %38, !llvm.loop !21

57:                                               ; preds = %.lr.ph, %57
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %57 ]
  %58 = shl nuw nsw i64 %indvars.iv, 1
  %59 = getelementptr inbounds i8, ptr %48, i64 %58
  %60 = tail call zeroext i16 @read_16u(ptr noundef nonnull %59)
  %61 = tail call { i64, ptr } %31(i16 noundef zeroext %60) #2
  %62 = extractvalue { i64, ptr } %61, 0
  %63 = extractvalue { i64, ptr } %61, 1
  tail call void %30(ptr noundef %44, i64 %62, ptr %63) #2
  %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 %57, !llvm.loop !23

64:                                               ; preds = %11, %23
  %65 = load ptr, ptr getelementptr inbounds (i8, ptr @otl_iCoverage, i64 56), align 8, !tbaa !16
  tail call void %65(ptr noundef nonnull %19) #2
  br label %66

66:                                               ; preds = %5, %64
  %67 = load ptr, ptr getelementptr inbounds (i8, ptr @iSubtable_gsub_multi, i64 56), align 8, !tbaa !24
  tail call void %67(ptr noundef %8) #2
  br label %68

68:                                               ; preds = %66, %._crit_edge54
  %.0 = phi ptr [ null, %66 ], [ %8, %._crit_edge54 ]
  ret ptr %.0
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @read_16u(ptr noundef) local_unnamed_addr #1

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 = { inlinehint 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, !7, i64 48}
!6 = !{!"__caryll_vectorinterface_subtable_gsub_multi", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 72}
!11 = !{!"__otfcc_ICoverage", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120}
!12 = !{!13, !14, i64 0}
!13 = !{!"", !14, i64 0, !15, i64 4, !7, i64 8}
!14 = !{!"short", !8, i64 0}
!15 = !{!"int", !8, i64 0}
!16 = !{!11, !7, i64 56}
!17 = !{!13, !7, i64 8}
!18 = !{!19, !7, i64 16}
!19 = !{!"", !20, i64 0, !7, i64 16}
!20 = !{!"otfcc_Handle", !15, i64 0, !14, i64 4, !7, i64 8}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = !{!6, !7, i64 56}


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