; LLVM IR from caryll/otfcc :: lib/table/otl/subtables (gpos-mark-to-ligature)

; 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_otl_LigatureArray = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.__caryll_elementinterface_subtable_gpos_markToLigature = type { 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_LigatureBaseRecord = type { %struct.otfcc_Handle, i16, ptr }
%struct.otfcc_Handle = type { i32, i16, ptr }
%struct.otl_Anchor = type { i8, double, double }
%struct.otl_Coverage = type { i16, i32, ptr }
%struct.subtable_gpos_markToLigature = type { i16, %struct.otl_MarkArray, %struct.otl_LigatureArray }
%struct.otl_MarkArray = type { i64, i64, ptr }
%struct.otl_LigatureArray = type { i64, i64, ptr }

@otl_iLigatureArray = external dso_local constant %struct.__caryll_vectorinterface_otl_LigatureArray, align 8
@iSubtable_gpos_markToLigature = external dso_local constant %struct.__caryll_elementinterface_subtable_gpos_markToLigature, 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_gpos_markToLigature(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 ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i16, align 2
  %18 = alloca i32, align 4
  %19 = alloca %struct.otl_LigatureBaseRecord, align 8
  %20 = alloca %struct.otfcc_Handle, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i16, align 2
  %24 = alloca i16, align 2
  %25 = alloca i32, align 4
  %26 = alloca %struct.otl_Anchor, align 8
  %27 = alloca %struct.otl_Anchor, 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) #5
  %28 = load ptr, ptr getelementptr inbounds (%struct.__caryll_elementinterface_subtable_gpos_markToLigature, ptr @iSubtable_gpos_markToLigature, i32 0, i32 6), align 8, !tbaa !13
  %29 = call ptr (...) %28()
  store ptr %29, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store ptr null, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store ptr null, ptr %14, align 8, !tbaa !5
  %30 = load i32, ptr %8, align 4, !tbaa !9
  %31 = load i32, ptr %9, align 4, !tbaa !9
  %32 = add i32 %31, 12
  %33 = icmp ult i32 %30, %32
  br i1 %33, label %34, label %35

34:                                               ; preds = %5
  br label %314

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

64:                                               ; preds = %35
  %65 = load ptr, ptr %13, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.otl_Coverage, ptr %65, i32 0, i32 0
  %67 = load i16, ptr %66, align 8, !tbaa !17
  %68 = zext i16 %67 to i32
  %69 = icmp eq i32 %68, 0
  br i1 %69, label %79, label %70

70:                                               ; preds = %64
  %71 = load ptr, ptr %14, align 8, !tbaa !5
  %72 = icmp ne ptr %71, null
  br i1 %72, label %73, label %79

73:                                               ; preds = %70
  %74 = load ptr, ptr %14, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.otl_Coverage, ptr %74, i32 0, i32 0
  %76 = load i16, ptr %75, align 8, !tbaa !17
  %77 = zext i16 %76 to i32
  %78 = icmp eq i32 %77, 0
  br i1 %78, label %79, label %80

79:                                               ; preds = %73, %70, %64, %35
  br label %314

80:                                               ; preds = %73
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  %82 = load i32, ptr %9, align 4, !tbaa !9
  %83 = zext i32 %82 to i64
  %84 = getelementptr inbounds i8, ptr %81, i64 %83
  %85 = getelementptr inbounds i8, ptr %84, i64 6
  %86 = call zeroext i16 @read_16u(ptr noundef %85)
  %87 = load ptr, ptr %12, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.subtable_gpos_markToLigature, ptr %87, i32 0, i32 0
  store i16 %86, ptr %88, align 8, !tbaa !19
  %89 = load i32, ptr %9, align 4, !tbaa !9
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  %91 = load i32, ptr %9, 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 8
  %95 = call zeroext i16 @read_16u(ptr noundef %94)
  %96 = zext i16 %95 to i32
  %97 = add i32 %89, %96
  store i32 %97, ptr %15, align 4, !tbaa !9
  %98 = load ptr, ptr %12, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.subtable_gpos_markToLigature, ptr %98, i32 0, i32 1
  %100 = load ptr, ptr %13, align 8, !tbaa !5
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %102 = load i32, ptr %8, align 4, !tbaa !9
  %103 = load i32, ptr %15, align 4, !tbaa !9
  call void @otl_readMarkArray(ptr noundef %99, ptr noundef %100, ptr noundef %101, i32 noundef %102, i32 noundef %103)
  %104 = load i32, ptr %9, align 4, !tbaa !9
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  %106 = load i32, ptr %9, align 4, !tbaa !9
  %107 = zext i32 %106 to i64
  %108 = getelementptr inbounds i8, ptr %105, i64 %107
  %109 = getelementptr inbounds i8, ptr %108, i64 10
  %110 = call zeroext i16 @read_16u(ptr noundef %109)
  %111 = zext i16 %110 to i32
  %112 = add i32 %104, %111
  store i32 %112, ptr %16, align 4, !tbaa !9
  %113 = load i32, ptr %8, align 4, !tbaa !9
  %114 = load i32, ptr %16, align 4, !tbaa !9
  %115 = add i32 %114, 2
  %116 = load ptr, ptr %14, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.otl_Coverage, ptr %116, i32 0, i32 0
  %118 = load i16, ptr %117, align 8, !tbaa !17
  %119 = zext i16 %118 to i32
  %120 = mul nsw i32 2, %119
  %121 = add i32 %115, %120
  %122 = icmp ult i32 %113, %121
  br i1 %122, label %123, label %124

123:                                              ; preds = %80
  br label %314

124:                                              ; preds = %80
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  %126 = load i32, ptr %16, align 4, !tbaa !9
  %127 = zext i32 %126 to i64
  %128 = getelementptr inbounds i8, ptr %125, i64 %127
  %129 = call zeroext i16 @read_16u(ptr noundef %128)
  %130 = zext i16 %129 to i32
  %131 = load ptr, ptr %14, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.otl_Coverage, ptr %131, i32 0, i32 0
  %133 = load i16, ptr %132, align 8, !tbaa !17
  %134 = zext i16 %133 to i32
  %135 = icmp ne i32 %130, %134
  br i1 %135, label %136, label %137

136:                                              ; preds = %124
  br label %314

137:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 2, ptr %17) #5
  store i16 0, ptr %17, align 2, !tbaa !11
  br label %138

138:                                              ; preds = %295, %137
  %139 = load i16, ptr %17, align 2, !tbaa !11
  %140 = zext i16 %139 to i32
  %141 = load ptr, ptr %14, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.otl_Coverage, ptr %141, i32 0, i32 0
  %143 = load i16, ptr %142, align 8, !tbaa !17
  %144 = zext i16 %143 to i32
  %145 = icmp slt i32 %140, %144
  br i1 %145, label %147, label %146

146:                                              ; preds = %138
  store i32 3, ptr %18, align 4
  br label %298

147:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #5
  %148 = getelementptr inbounds %struct.otl_LigatureBaseRecord, ptr %19, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #5
  %149 = load ptr, ptr getelementptr inbounds (%struct.otfcc_HandlePackage, ptr @otfcc_iHandle, i32 0, i32 7), align 8, !tbaa !23
  %150 = load ptr, ptr %14, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.otl_Coverage, ptr %150, i32 0, i32 2
  %152 = load ptr, ptr %151, align 8, !tbaa !25
  %153 = load i16, ptr %17, align 2, !tbaa !11
  %154 = zext i16 %153 to i64
  %155 = getelementptr inbounds %struct.otfcc_Handle, ptr %152, i64 %154
  %156 = getelementptr inbounds { i64, ptr }, ptr %155, i32 0, i32 0
  %157 = load i64, ptr %156, align 8
  %158 = getelementptr inbounds { i64, ptr }, ptr %155, i32 0, i32 1
  %159 = load ptr, ptr %158, align 8
  %160 = call { i64, ptr } %149(i64 %157, ptr %159)
  %161 = getelementptr inbounds { i64, ptr }, ptr %20, i32 0, i32 0
  %162 = extractvalue { i64, ptr } %160, 0
  store i64 %162, ptr %161, align 8
  %163 = getelementptr inbounds { i64, ptr }, ptr %20, i32 0, i32 1
  %164 = extractvalue { i64, ptr } %160, 1
  store ptr %164, ptr %163, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %148, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !26
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %165 = load i32, ptr %16, align 4, !tbaa !9
  %166 = load ptr, ptr %7, align 8, !tbaa !5
  %167 = load i32, ptr %16, align 4, !tbaa !9
  %168 = zext i32 %167 to i64
  %169 = getelementptr inbounds i8, ptr %166, i64 %168
  %170 = getelementptr inbounds i8, ptr %169, i64 2
  %171 = load i16, ptr %17, align 2, !tbaa !11
  %172 = zext i16 %171 to i32
  %173 = mul nsw i32 %172, 2
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds i8, ptr %170, i64 %174
  %176 = call zeroext i16 @read_16u(ptr noundef %175)
  %177 = zext i16 %176 to i32
  %178 = add i32 %165, %177
  store i32 %178, ptr %21, align 4, !tbaa !9
  %179 = load i32, ptr %8, align 4, !tbaa !9
  %180 = load i32, ptr %21, align 4, !tbaa !9
  %181 = add i32 %180, 2
  %182 = icmp ult i32 %179, %181
  br i1 %182, label %183, label %184

183:                                              ; preds = %147
  store i32 2, ptr %18, align 4
  br label %292

184:                                              ; preds = %147
  %185 = load ptr, ptr %7, align 8, !tbaa !5
  %186 = load i32, ptr %21, align 4, !tbaa !9
  %187 = zext i32 %186 to i64
  %188 = getelementptr inbounds i8, ptr %185, i64 %187
  %189 = call zeroext i16 @read_16u(ptr noundef %188)
  %190 = getelementptr inbounds %struct.otl_LigatureBaseRecord, ptr %19, i32 0, i32 1
  store i16 %189, ptr %190, align 8, !tbaa !27
  %191 = load i32, ptr %8, align 4, !tbaa !9
  %192 = load i32, ptr %21, align 4, !tbaa !9
  %193 = add i32 %192, 2
  %194 = getelementptr inbounds %struct.otl_LigatureBaseRecord, ptr %19, i32 0, i32 1
  %195 = load i16, ptr %194, align 8, !tbaa !27
  %196 = zext i16 %195 to i32
  %197 = mul nsw i32 2, %196
  %198 = load ptr, ptr %12, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.subtable_gpos_markToLigature, ptr %198, i32 0, i32 0
  %200 = load i16, ptr %199, align 8, !tbaa !19
  %201 = zext i16 %200 to i32
  %202 = mul nsw i32 %197, %201
  %203 = add i32 %193, %202
  %204 = icmp ult i32 %191, %203
  br i1 %204, label %205, label %206

205:                                              ; preds = %184
  store i32 2, ptr %18, align 4
  br label %292

206:                                              ; preds = %184
  %207 = getelementptr inbounds %struct.otl_LigatureBaseRecord, ptr %19, i32 0, i32 1
  %208 = load i16, ptr %207, align 8, !tbaa !27
  %209 = zext i16 %208 to i64
  %210 = mul i64 8, %209
  %211 = call ptr @__caryll_allocate_clean(i64 noundef %210, i64 noundef 58)
  %212 = getelementptr inbounds %struct.otl_LigatureBaseRecord, ptr %19, i32 0, i32 2
  store ptr %211, ptr %212, align 8, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %213 = load i32, ptr %21, align 4, !tbaa !9
  %214 = add i32 %213, 2
  store i32 %214, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2, ptr %23) #5
  store i16 0, ptr %23, align 2, !tbaa !11
  br label %215

215:                                              ; preds = %285, %206
  %216 = load i16, ptr %23, align 2, !tbaa !11
  %217 = zext i16 %216 to i32
  %218 = getelementptr inbounds %struct.otl_LigatureBaseRecord, ptr %19, i32 0, i32 1
  %219 = load i16, ptr %218, align 8, !tbaa !27
  %220 = zext i16 %219 to i32
  %221 = icmp slt i32 %217, %220
  br i1 %221, label %223, label %222

222:                                              ; preds = %215
  store i32 6, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %23) #5
  br label %288

223:                                              ; preds = %215
  %224 = load ptr, ptr %12, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.subtable_gpos_markToLigature, ptr %224, i32 0, i32 0
  %226 = load i16, ptr %225, align 8, !tbaa !19
  %227 = zext i16 %226 to i64
  %228 = mul i64 24, %227
  %229 = call ptr @__caryll_allocate_clean(i64 noundef %228, i64 noundef 62)
  %230 = getelementptr inbounds %struct.otl_LigatureBaseRecord, ptr %19, i32 0, i32 2
  %231 = load ptr, ptr %230, align 8, !tbaa !30
  %232 = load i16, ptr %23, align 2, !tbaa !11
  %233 = zext i16 %232 to i64
  %234 = getelementptr inbounds ptr, ptr %231, i64 %233
  store ptr %229, ptr %234, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %24) #5
  store i16 0, ptr %24, align 2, !tbaa !11
  br label %235

235:                                              ; preds = %281, %223
  %236 = load i16, ptr %24, align 2, !tbaa !11
  %237 = zext i16 %236 to i32
  %238 = load ptr, ptr %12, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.subtable_gpos_markToLigature, ptr %238, i32 0, i32 0
  %240 = load i16, ptr %239, align 8, !tbaa !19
  %241 = zext i16 %240 to i32
  %242 = icmp slt i32 %237, %241
  br i1 %242, label %244, label %243

243:                                              ; preds = %235
  store i32 9, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %24) #5
  br label %284

244:                                              ; preds = %235
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %245 = load ptr, ptr %7, align 8, !tbaa !5
  %246 = load i32, ptr %22, align 4, !tbaa !9
  %247 = zext i32 %246 to i64
  %248 = getelementptr inbounds i8, ptr %245, i64 %247
  %249 = call zeroext i16 @read_16u(ptr noundef %248)
  %250 = zext i16 %249 to i32
  store i32 %250, ptr %25, align 4, !tbaa !9
  %251 = load i32, ptr %25, align 4, !tbaa !9
  %252 = icmp ne i32 %251, 0
  br i1 %252, label %253, label %268

253:                                              ; preds = %244
  %254 = getelementptr inbounds %struct.otl_LigatureBaseRecord, ptr %19, i32 0, i32 2
  %255 = load ptr, ptr %254, align 8, !tbaa !30
  %256 = load i16, ptr %23, align 2, !tbaa !11
  %257 = zext i16 %256 to i64
  %258 = getelementptr inbounds ptr, ptr %255, i64 %257
  %259 = load ptr, ptr %258, align 8, !tbaa !5
  %260 = load i16, ptr %24, align 2, !tbaa !11
  %261 = zext i16 %260 to i64
  %262 = getelementptr inbounds %struct.otl_Anchor, ptr %259, i64 %261
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #5
  %263 = load ptr, ptr %7, align 8, !tbaa !5
  %264 = load i32, ptr %8, align 4, !tbaa !9
  %265 = load i32, ptr %21, align 4, !tbaa !9
  %266 = load i32, ptr %25, align 4, !tbaa !9
  %267 = add i32 %265, %266
  call void @otl_read_anchor(ptr dead_on_unwind writable sret(%struct.otl_Anchor) align 8 %26, ptr noundef %263, i32 noundef %264, i32 noundef %267)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %262, ptr align 8 %26, i64 24, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #5
  br label %278

268:                                              ; preds = %244
  %269 = getelementptr inbounds %struct.otl_LigatureBaseRecord, ptr %19, i32 0, i32 2
  %270 = load ptr, ptr %269, align 8, !tbaa !30
  %271 = load i16, ptr %23, align 2, !tbaa !11
  %272 = zext i16 %271 to i64
  %273 = getelementptr inbounds ptr, ptr %270, i64 %272
  %274 = load ptr, ptr %273, align 8, !tbaa !5
  %275 = load i16, ptr %24, align 2, !tbaa !11
  %276 = zext i16 %275 to i64
  %277 = getelementptr inbounds %struct.otl_Anchor, ptr %274, i64 %276
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #5
  call void (ptr, ...) @otl_anchor_absent(ptr dead_on_unwind writable sret(%struct.otl_Anchor) align 8 %27)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %277, ptr align 8 %27, i64 24, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #5
  br label %278

278:                                              ; preds = %268, %253
  %279 = load i32, ptr %22, align 4, !tbaa !9
  %280 = add i32 %279, 2
  store i32 %280, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %281

281:                                              ; preds = %278
  %282 = load i16, ptr %24, align 2, !tbaa !11
  %283 = add i16 %282, 1
  store i16 %283, ptr %24, align 2, !tbaa !11
  br label %235, !llvm.loop !36

284:                                              ; preds = %243
  br label %285

285:                                              ; preds = %284
  %286 = load i16, ptr %23, align 2, !tbaa !11
  %287 = add i16 %286, 1
  store i16 %287, ptr %23, align 2, !tbaa !11
  br label %215, !llvm.loop !38

288:                                              ; preds = %222
  %289 = load ptr, ptr getelementptr inbounds (%struct.__caryll_vectorinterface_otl_LigatureArray, ptr @otl_iLigatureArray, i32 0, i32 13), align 8, !tbaa !39
  %290 = load ptr, ptr %12, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.subtable_gpos_markToLigature, ptr %290, i32 0, i32 2
  call void %289(ptr noundef %291, ptr noundef byval(%struct.otl_LigatureBaseRecord) align 8 %19)
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  store i32 0, ptr %18, align 4
  br label %292

292:                                              ; preds = %288, %205, %183
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #5
  %293 = load i32, ptr %18, align 4
  switch i32 %293, label %298 [
    i32 0, label %294
  ]

294:                                              ; preds = %292
  br label %295

295:                                              ; preds = %294
  %296 = load i16, ptr %17, align 2, !tbaa !11
  %297 = add i16 %296, 1
  store i16 %297, ptr %17, align 2, !tbaa !11
  br label %138, !llvm.loop !41

298:                                              ; preds = %292, %146
  call void @llvm.lifetime.end.p0(i64 2, ptr %17) #5
  %299 = load i32, ptr %18, align 4
  switch i32 %299, label %329 [
    i32 3, label %300
    i32 2, label %314
  ]

300:                                              ; preds = %298
  %301 = load ptr, ptr %13, align 8, !tbaa !5
  %302 = icmp ne ptr %301, null
  br i1 %302, label %303, label %306

303:                                              ; preds = %300
  %304 = load ptr, ptr getelementptr inbounds (%struct.__otfcc_ICoverage, ptr @otl_iCoverage, i32 0, i32 7), align 8, !tbaa !42
  %305 = load ptr, ptr %13, align 8, !tbaa !5
  call void %304(ptr noundef %305)
  br label %306

306:                                              ; preds = %303, %300
  %307 = load ptr, ptr %14, align 8, !tbaa !5
  %308 = icmp ne ptr %307, null
  br i1 %308, label %309, label %312

309:                                              ; preds = %306
  %310 = load ptr, ptr getelementptr inbounds (%struct.__otfcc_ICoverage, ptr @otl_iCoverage, i32 0, i32 7), align 8, !tbaa !42
  %311 = load ptr, ptr %14, align 8, !tbaa !5
  call void %310(ptr noundef %311)
  br label %312

312:                                              ; preds = %309, %306
  %313 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %313, ptr %6, align 8
  store i32 1, ptr %18, align 4
  br label %329

314:                                              ; preds = %298, %136, %123, %79, %34
  %315 = load ptr, ptr %13, align 8, !tbaa !5
  %316 = icmp ne ptr %315, null
  br i1 %316, label %317, label %320

317:                                              ; preds = %314
  %318 = load ptr, ptr getelementptr inbounds (%struct.__otfcc_ICoverage, ptr @otl_iCoverage, i32 0, i32 7), align 8, !tbaa !42
  %319 = load ptr, ptr %13, align 8, !tbaa !5
  call void %318(ptr noundef %319)
  br label %320

320:                                              ; preds = %317, %314
  %321 = load ptr, ptr %14, align 8, !tbaa !5
  %322 = icmp ne ptr %321, null
  br i1 %322, label %323, label %326

323:                                              ; preds = %320
  %324 = load ptr, ptr getelementptr inbounds (%struct.__otfcc_ICoverage, ptr @otl_iCoverage, i32 0, i32 7), align 8, !tbaa !42
  %325 = load ptr, ptr %14, align 8, !tbaa !5
  call void %324(ptr noundef %325)
  br label %326

326:                                              ; preds = %323, %320
  %327 = load ptr, ptr getelementptr inbounds (%struct.__caryll_elementinterface_subtable_gpos_markToLigature, ptr @iSubtable_gpos_markToLigature, i32 0, i32 7), align 8, !tbaa !43
  %328 = load ptr, ptr %12, align 8, !tbaa !5
  call void %327(ptr noundef %328)
  store ptr null, ptr %6, align 8
  store i32 1, ptr %18, align 4
  br label %329

329:                                              ; preds = %326, %312, %298
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  %330 = load ptr, ptr %6, align 8
  ret ptr %330
}

; 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

declare void @otl_readMarkArray(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @__caryll_allocate_clean(i64 noundef, i64 noundef) #2

declare void @otl_read_anchor(ptr dead_on_unwind writable sret(%struct.otl_Anchor) align 8, ptr noundef, i32 noundef, i32 noundef) #3

declare void @otl_anchor_absent(ptr dead_on_unwind writable sret(%struct.otl_Anchor) align 8, ...) #3

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 = { "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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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_elementinterface_subtable_gpos_markToLigature", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!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 = !{!20, !12, i64 0}
!20 = !{!"", !12, i64 0, !21, i64 8, !21, i64 32}
!21 = !{!"", !22, i64 0, !22, i64 8, !6, i64 16}
!22 = !{!"long", !7, i64 0}
!23 = !{!24, !6, i64 56}
!24 = !{!"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}
!25 = !{!18, !6, i64 8}
!26 = !{i64 0, i64 4, !9, i64 4, i64 2, !11, i64 8, i64 8, !5}
!27 = !{!28, !12, i64 16}
!28 = !{!"", !29, i64 0, !12, i64 16, !6, i64 24}
!29 = !{!"otfcc_Handle", !10, i64 0, !12, i64 4, !6, i64 8}
!30 = !{!28, !6, i64 24}
!31 = !{i64 0, i64 1, !32, i64 8, i64 8, !34, i64 16, i64 8, !34}
!32 = !{!33, !33, i64 0}
!33 = !{!"_Bool", !7, i64 0}
!34 = !{!35, !35, i64 0}
!35 = !{!"double", !7, i64 0}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = distinct !{!38, !37}
!39 = !{!40, !6, i64 104}
!40 = !{!"__caryll_vectorinterface_otl_LigatureArray", !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}
!41 = distinct !{!41, !37}
!42 = !{!16, !6, i64 56}
!43 = !{!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_otl_LigatureArray = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.__caryll_elementinterface_subtable_gpos_markToLigature = type { 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_LigatureBaseRecord = type { %struct.otfcc_Handle, i16, ptr }
%struct.otfcc_Handle = type { i32, i16, ptr }
%struct.otl_Anchor = type { i8, double, double }

@otl_iLigatureArray = external dso_local local_unnamed_addr constant %struct.__caryll_vectorinterface_otl_LigatureArray, align 8
@iSubtable_gpos_markToLigature = external dso_local local_unnamed_addr constant %struct.__caryll_elementinterface_subtable_gpos_markToLigature, 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_gpos_markToLigature(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_LigatureBaseRecord, align 8
  %7 = alloca %struct.otl_Anchor, align 8
  %8 = alloca %struct.otl_Anchor, align 8
  %9 = load ptr, ptr getelementptr inbounds (i8, ptr @iSubtable_gpos_markToLigature, i64 48), align 8, !tbaa !5
  %10 = tail call ptr (...) %9() #5
  %11 = add i32 %2, 12
  %12 = icmp ugt i32 %11, %1
  br i1 %12, label %.thread118.thread, label %13

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

27:                                               ; preds = %13
  %28 = load i16, ptr %21, align 8, !tbaa !12
  %29 = icmp ne i16 %28, 0
  %30 = icmp ne ptr %26, null
  %or.cond = select i1 %29, i1 %30, i1 false
  br i1 %or.cond, label %31, label %.thread110

31:                                               ; preds = %27
  %32 = load i16, ptr %26, align 8, !tbaa !12
  %33 = icmp eq i16 %32, 0
  br i1 %33, label %.thread110, label %34

34:                                               ; preds = %31
  %35 = getelementptr inbounds i8, ptr %16, i64 6
  %36 = tail call zeroext i16 @read_16u(ptr noundef nonnull %35)
  store i16 %36, ptr %10, align 8, !tbaa !16
  %37 = getelementptr inbounds i8, ptr %16, i64 8
  %38 = tail call zeroext i16 @read_16u(ptr noundef nonnull %37)
  %39 = zext i16 %38 to i32
  %40 = add i32 %39, %2
  %41 = getelementptr inbounds i8, ptr %10, i64 8
  tail call void @otl_readMarkArray(ptr noundef nonnull %41, ptr noundef nonnull %21, ptr noundef %0, i32 noundef %1, i32 noundef %40) #5
  %42 = getelementptr inbounds i8, ptr %16, i64 10
  %43 = tail call zeroext i16 @read_16u(ptr noundef nonnull %42)
  %44 = zext i16 %43 to i32
  %45 = add i32 %44, %2
  %46 = add i32 %45, 2
  %47 = load i16, ptr %26, align 8, !tbaa !12
  %48 = zext i16 %47 to i32
  %49 = shl nuw nsw i32 %48, 1
  %50 = add i32 %46, %49
  %51 = icmp ugt i32 %50, %1
  br i1 %51, label %.thread110, label %52

52:                                               ; preds = %34
  %53 = zext i32 %45 to i64
  %54 = getelementptr inbounds i8, ptr %0, i64 %53
  %55 = tail call zeroext i16 @read_16u(ptr noundef %54)
  %56 = load i16, ptr %26, align 8, !tbaa !12
  %.not101 = icmp eq i16 %55, %56
  br i1 %.not101, label %.preheader, label %.thread110

.preheader:                                       ; preds = %52
  %.not138 = icmp eq i16 %55, 0
  br i1 %.not138, label %._crit_edge137, label %.lr.ph136

.lr.ph136:                                        ; preds = %.preheader
  %57 = load ptr, ptr getelementptr inbounds (i8, ptr @otfcc_iHandle, i64 56), align 8, !tbaa !20
  %58 = getelementptr inbounds i8, ptr %26, i64 8
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  %59 = getelementptr inbounds i8, ptr %54, i64 2
  %60 = getelementptr inbounds i8, ptr %6, i64 16
  %61 = getelementptr inbounds i8, ptr %6, i64 24
  %62 = load ptr, ptr getelementptr inbounds (i8, ptr @otl_iLigatureArray, i64 104), align 8
  %63 = getelementptr inbounds i8, ptr %10, i64 32
  br label %64

64:                                               ; preds = %.lr.ph136, %._crit_edge134
  %indvars.iv145 = phi i64 [ 0, %.lr.ph136 ], [ %indvars.iv.next146, %._crit_edge134 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #5
  %65 = load ptr, ptr %58, align 8, !tbaa !22
  %66 = getelementptr inbounds %struct.otfcc_Handle, ptr %65, i64 %indvars.iv145
  %67 = load i64, ptr %66, align 8
  %68 = getelementptr inbounds i8, ptr %66, i64 8
  %69 = load ptr, ptr %68, align 8
  %70 = call { i64, ptr } %57(i64 %67, ptr %69) #5
  %71 = extractvalue { i64, ptr } %70, 0
  %72 = extractvalue { i64, ptr } %70, 1
  store i64 %71, ptr %6, align 8
  store ptr %72, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !23
  %73 = shl nuw nsw i64 %indvars.iv145, 1
  %74 = getelementptr inbounds i8, ptr %59, i64 %73
  %75 = call zeroext i16 @read_16u(ptr noundef nonnull %74)
  %76 = zext i16 %75 to i32
  %77 = add i32 %45, %76
  %78 = add i32 %77, 2
  %79 = icmp ugt i32 %78, %1
  br i1 %79, label %131, label %80

80:                                               ; preds = %64
  %81 = zext i32 %77 to i64
  %82 = getelementptr inbounds i8, ptr %0, i64 %81
  %83 = call zeroext i16 @read_16u(ptr noundef %82)
  store i16 %83, ptr %60, align 8, !tbaa !24
  %84 = zext i16 %83 to i32
  %85 = shl nuw nsw i32 %84, 1
  %86 = load i16, ptr %10, align 8, !tbaa !16
  %87 = zext i16 %86 to i32
  %88 = mul nuw nsw i32 %85, %87
  %89 = add i32 %88, %78
  %90 = icmp ugt i32 %89, %1
  br i1 %90, label %131, label %91

91:                                               ; preds = %80
  %92 = zext i16 %83 to i64
  %93 = shl nuw nsw i64 %92, 3
  %94 = call ptr @__caryll_allocate_clean(i64 noundef %93, i64 noundef 58)
  store ptr %94, ptr %61, align 8, !tbaa !27
  %95 = load i16, ptr %60, align 8, !tbaa !24
  %.not139 = icmp eq i16 %95, 0
  br i1 %.not139, label %._crit_edge134, label %.lr.ph133.preheader

.lr.ph133.preheader:                              ; preds = %91
  %.pre = load i16, ptr %10, align 8, !tbaa !16
  br label %.lr.ph133

.lr.ph133:                                        ; preds = %.lr.ph133.preheader, %._crit_edge
  %96 = phi i16 [ %.pre, %.lr.ph133.preheader ], [ %103, %._crit_edge ]
  %indvars.iv142 = phi i64 [ 0, %.lr.ph133.preheader ], [ %indvars.iv.next143, %._crit_edge ]
  %.088130 = phi i32 [ %78, %.lr.ph133.preheader ], [ %.1.lcssa, %._crit_edge ]
  %97 = zext i16 %96 to i64
  %98 = mul nuw nsw i64 %97, 24
  %99 = call ptr @__caryll_allocate_clean(i64 noundef %98, i64 noundef 62)
  %100 = load ptr, ptr %61, align 8, !tbaa !27
  %101 = getelementptr inbounds ptr, ptr %100, i64 %indvars.iv142
  store ptr %99, ptr %101, align 8, !tbaa !23
  %102 = load i16, ptr %10, align 8, !tbaa !16
  %.not140 = icmp eq i16 %102, 0
  br i1 %.not140, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %122, %.lr.ph133
  %103 = phi i16 [ 0, %.lr.ph133 ], [ %124, %122 ]
  %.1.lcssa = phi i32 [ %.088130, %.lr.ph133 ], [ %123, %122 ]
  %indvars.iv.next143 = add nuw nsw i64 %indvars.iv142, 1
  %104 = load i16, ptr %60, align 8, !tbaa !24
  %105 = zext i16 %104 to i64
  %106 = icmp ult i64 %indvars.iv.next143, %105
  br i1 %106, label %.lr.ph133, label %._crit_edge134, !llvm.loop !28

.lr.ph:                                           ; preds = %.lr.ph133, %122
  %indvars.iv = phi i64 [ %indvars.iv.next, %122 ], [ 0, %.lr.ph133 ]
  %.1128 = phi i32 [ %123, %122 ], [ %.088130, %.lr.ph133 ]
  %107 = zext i32 %.1128 to i64
  %108 = getelementptr inbounds i8, ptr %0, i64 %107
  %109 = call zeroext i16 @read_16u(ptr noundef %108)
  %.not102 = icmp eq i16 %109, 0
  br i1 %.not102, label %117, label %110

110:                                              ; preds = %.lr.ph
  %111 = zext i16 %109 to i32
  %112 = load ptr, ptr %61, align 8, !tbaa !27
  %113 = getelementptr inbounds ptr, ptr %112, i64 %indvars.iv142
  %114 = load ptr, ptr %113, align 8, !tbaa !23
  %115 = getelementptr inbounds %struct.otl_Anchor, ptr %114, i64 %indvars.iv
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #5
  %116 = add i32 %77, %111
  call void @otl_read_anchor(ptr dead_on_unwind nonnull writable sret(%struct.otl_Anchor) align 8 %7, ptr noundef %0, i32 noundef %1, i32 noundef %116) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %115, ptr noundef nonnull align 8 dereferenceable(24) %7, i64 24, i1 false), !tbaa.struct !30
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  br label %122

117:                                              ; preds = %.lr.ph
  %118 = load ptr, ptr %61, align 8, !tbaa !27
  %119 = getelementptr inbounds ptr, ptr %118, i64 %indvars.iv142
  %120 = load ptr, ptr %119, align 8, !tbaa !23
  %121 = getelementptr inbounds %struct.otl_Anchor, ptr %120, i64 %indvars.iv
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #5
  call void (ptr, ...) @otl_anchor_absent(ptr dead_on_unwind nonnull writable sret(%struct.otl_Anchor) align 8 %8) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %121, ptr noundef nonnull align 8 dereferenceable(24) %8, i64 24, i1 false), !tbaa.struct !30
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  br label %122

122:                                              ; preds = %117, %110
  %123 = add i32 %.1128, 2
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %124 = load i16, ptr %10, align 8, !tbaa !16
  %125 = zext i16 %124 to i64
  %126 = icmp ult i64 %indvars.iv.next, %125
  br i1 %126, label %.lr.ph, label %._crit_edge, !llvm.loop !35

._crit_edge134:                                   ; preds = %._crit_edge, %91
  call void %62(ptr noundef nonnull %63, ptr noundef nonnull byval(%struct.otl_LigatureBaseRecord) align 8 %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  %indvars.iv.next146 = add nuw nsw i64 %indvars.iv145, 1
  %127 = load i16, ptr %26, align 8, !tbaa !12
  %128 = zext i16 %127 to i64
  %129 = icmp ult i64 %indvars.iv.next146, %128
  br i1 %129, label %64, label %._crit_edge137, !llvm.loop !36

._crit_edge137:                                   ; preds = %._crit_edge134, %.preheader
  %130 = load ptr, ptr getelementptr inbounds (i8, ptr @otl_iCoverage, i64 56), align 8, !tbaa !37
  call void %130(ptr noundef nonnull %21) #5
  call void %130(ptr noundef nonnull %26) #5
  br label %135

131:                                              ; preds = %80, %64
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  br label %.thread110

.thread110:                                       ; preds = %131, %27, %52, %34, %31
  %132 = load ptr, ptr getelementptr inbounds (i8, ptr @otl_iCoverage, i64 56), align 8, !tbaa !37
  call void %132(ptr noundef nonnull %21) #5
  br label %.thread118

.thread118:                                       ; preds = %13, %.thread110
  %.not104 = icmp eq ptr %26, null
  br i1 %.not104, label %.thread118.thread, label %.thread122

.thread122:                                       ; preds = %.thread118
  %133 = load ptr, ptr getelementptr inbounds (i8, ptr @otl_iCoverage, i64 56), align 8, !tbaa !37
  call void %133(ptr noundef nonnull %26) #5
  br label %.thread118.thread

.thread118.thread:                                ; preds = %5, %.thread122, %.thread118
  %134 = load ptr, ptr getelementptr inbounds (i8, ptr @iSubtable_gpos_markToLigature, i64 56), align 8, !tbaa !38
  call void %134(ptr noundef %10) #5
  br label %135

135:                                              ; preds = %.thread118.thread, %._crit_edge137
  %.0 = phi ptr [ null, %.thread118.thread ], [ %10, %._crit_edge137 ]
  ret ptr %.0
}

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

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

declare void @otl_readMarkArray(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @__caryll_allocate_clean(i64 noundef, i64 noundef) local_unnamed_addr #2

declare void @otl_read_anchor(ptr dead_on_unwind writable sret(%struct.otl_Anchor) align 8, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare void @otl_anchor_absent(ptr dead_on_unwind writable sret(%struct.otl_Anchor) align 8, ...) local_unnamed_addr #3

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { "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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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_elementinterface_subtable_gpos_markToLigature", !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 = !{!"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 = !{!17, !14, i64 0}
!17 = !{!"", !14, i64 0, !18, i64 8, !18, i64 32}
!18 = !{!"", !19, i64 0, !19, i64 8, !7, i64 16}
!19 = !{!"long", !8, i64 0}
!20 = !{!21, !7, i64 56}
!21 = !{!"otfcc_HandlePackage", !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}
!22 = !{!13, !7, i64 8}
!23 = !{!7, !7, i64 0}
!24 = !{!25, !14, i64 16}
!25 = !{!"", !26, i64 0, !14, i64 16, !7, i64 24}
!26 = !{!"otfcc_Handle", !15, i64 0, !14, i64 4, !7, i64 8}
!27 = !{!25, !7, i64 24}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{i64 0, i64 1, !31, i64 8, i64 8, !33, i64 16, i64 8, !33}
!31 = !{!32, !32, i64 0}
!32 = !{!"_Bool", !8, i64 0}
!33 = !{!34, !34, i64 0}
!34 = !{!"double", !8, i64 0}
!35 = distinct !{!35, !29}
!36 = distinct !{!36, !29}
!37 = !{!11, !7, i64 56}
!38 = !{!6, !7, i64 56}


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