; LLVM IR from caryll/otfcc :: lib/table (OS_2)

; 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_elementinterface_table_OS_2 = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.otfcc_Packet = type { i32, i16, i16, i16, i16, ptr }
%struct.otfcc_PacketPiece = type { i32, i32, i32, i32, ptr }
%struct.table_OS_2 = type { i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, [10 x i8], i32, i32, i32, i32, [4 x i8], i16, i16, i16, i16, i16, i16, i16, i16, i32, i32, i16, i16, i16, i16, i16, i16, i16 }
%struct.otfcc_Options = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, ptr, ptr }
%struct.otfcc_ILogger = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@table_iOS_2 = external dso_local constant %struct.__caryll_elementinterface_table_OS_2, align 8
@.str = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @otfcc_readOS_2(ptr noundef byval(%struct.otfcc_Packet) align 8 %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %struct.otfcc_PacketPiece, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store ptr null, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 1, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 1, ptr %8, align 4, !tbaa !9
  br label %14

14:                                               ; preds = %345, %2
  %15 = load i32, ptr %8, align 4, !tbaa !9
  %16 = icmp ne i32 %15, 0
  br i1 %16, label %17, label %26

17:                                               ; preds = %14
  %18 = load i32, ptr %6, align 4, !tbaa !9
  %19 = icmp ne i32 %18, 0
  br i1 %19, label %20, label %26

20:                                               ; preds = %17
  %21 = load i32, ptr %7, align 4, !tbaa !9
  %22 = getelementptr inbounds %struct.otfcc_Packet, ptr %0, i32 0, i32 1
  %23 = load i16, ptr %22, align 4, !tbaa !11
  %24 = zext i16 %23 to i32
  %25 = icmp slt i32 %21, %24
  br label %26

26:                                               ; preds = %20, %17, %14
  %27 = phi i1 [ false, %17 ], [ false, %14 ], [ %25, %20 ]
  br i1 %27, label %29, label %28

28:                                               ; preds = %26
  store i32 2, ptr %9, align 4
  br label %352

29:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #6
  %30 = getelementptr inbounds %struct.otfcc_Packet, ptr %0, i32 0, i32 5
  %31 = load ptr, ptr %30, align 8, !tbaa !14
  %32 = load i32, ptr %7, align 4, !tbaa !9
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds %struct.otfcc_PacketPiece, ptr %31, i64 %33
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %34, i64 24, i1 false), !tbaa.struct !15
  br label %35

35:                                               ; preds = %337, %29
  %36 = load i32, ptr %6, align 4, !tbaa !9
  %37 = icmp ne i32 %36, 0
  br i1 %37, label %39, label %38

38:                                               ; preds = %35
  store i32 5, ptr %9, align 4
  br label %342

39:                                               ; preds = %35
  %40 = getelementptr inbounds %struct.otfcc_PacketPiece, ptr %10, i32 0, i32 0
  %41 = load i32, ptr %40, align 8, !tbaa !16
  %42 = icmp eq i32 %41, 1330851634
  br i1 %42, label %43, label %336

43:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 1, ptr %11, align 4, !tbaa !9
  br label %44

44:                                               ; preds = %332, %43
  %45 = load i32, ptr %11, align 4, !tbaa !9
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %48, label %47

47:                                               ; preds = %44
  store i32 8, ptr %9, align 4
  br label %333

48:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %49 = getelementptr inbounds %struct.otfcc_PacketPiece, ptr %10, i32 0, i32 4
  %50 = load ptr, ptr %49, align 8, !tbaa !18
  store ptr %50, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %51 = getelementptr inbounds %struct.otfcc_PacketPiece, ptr %10, i32 0, i32 3
  %52 = load i32, ptr %51, align 4, !tbaa !19
  store i32 %52, ptr %13, align 4, !tbaa !9
  %53 = load i32, ptr %13, align 4, !tbaa !9
  %54 = icmp ult i32 %53, 2
  br i1 %54, label %55, label %56

55:                                               ; preds = %48
  br label %313

56:                                               ; preds = %48
  %57 = load ptr, ptr getelementptr inbounds (%struct.__caryll_elementinterface_table_OS_2, ptr @table_iOS_2, i32 0, i32 6), align 8, !tbaa !20
  %58 = call ptr (...) %57()
  store ptr %58, ptr %5, align 8, !tbaa !5
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  %60 = call zeroext i16 @read_16u(ptr noundef %59)
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.table_OS_2, ptr %61, i32 0, i32 0
  store i16 %60, ptr %62, align 4, !tbaa !22
  %63 = load i32, ptr %13, align 4, !tbaa !9
  %64 = icmp ult i32 %63, 68
  br i1 %64, label %65, label %66

65:                                               ; preds = %56
  br label %313

66:                                               ; preds = %56
  %67 = load ptr, ptr %12, align 8, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %67, i64 2
  %69 = call zeroext i16 @read_16u(ptr noundef %68)
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.table_OS_2, ptr %70, i32 0, i32 1
  store i16 %69, ptr %71, align 2, !tbaa !24
  %72 = load ptr, ptr %12, align 8, !tbaa !5
  %73 = getelementptr inbounds i8, ptr %72, i64 4
  %74 = call zeroext i16 @read_16u(ptr noundef %73)
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.table_OS_2, ptr %75, i32 0, i32 2
  store i16 %74, ptr %76, align 4, !tbaa !25
  %77 = load ptr, ptr %12, align 8, !tbaa !5
  %78 = getelementptr inbounds i8, ptr %77, i64 6
  %79 = call zeroext i16 @read_16u(ptr noundef %78)
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.table_OS_2, ptr %80, i32 0, i32 3
  store i16 %79, ptr %81, align 2, !tbaa !26
  %82 = load ptr, ptr %12, align 8, !tbaa !5
  %83 = getelementptr inbounds i8, ptr %82, i64 8
  %84 = call zeroext i16 @read_16u(ptr noundef %83)
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.table_OS_2, ptr %85, i32 0, i32 4
  store i16 %84, ptr %86, align 4, !tbaa !27
  %87 = load ptr, ptr %12, align 8, !tbaa !5
  %88 = getelementptr inbounds i8, ptr %87, i64 10
  %89 = call zeroext i16 @read_16u(ptr noundef %88)
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.table_OS_2, ptr %90, i32 0, i32 5
  store i16 %89, ptr %91, align 2, !tbaa !28
  %92 = load ptr, ptr %12, align 8, !tbaa !5
  %93 = getelementptr inbounds i8, ptr %92, i64 12
  %94 = call zeroext i16 @read_16u(ptr noundef %93)
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.table_OS_2, ptr %95, i32 0, i32 6
  store i16 %94, ptr %96, align 4, !tbaa !29
  %97 = load ptr, ptr %12, align 8, !tbaa !5
  %98 = getelementptr inbounds i8, ptr %97, i64 14
  %99 = call zeroext i16 @read_16u(ptr noundef %98)
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.table_OS_2, ptr %100, i32 0, i32 7
  store i16 %99, ptr %101, align 2, !tbaa !30
  %102 = load ptr, ptr %12, align 8, !tbaa !5
  %103 = getelementptr inbounds i8, ptr %102, i64 16
  %104 = call zeroext i16 @read_16u(ptr noundef %103)
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.table_OS_2, ptr %105, i32 0, i32 8
  store i16 %104, ptr %106, align 4, !tbaa !31
  %107 = load ptr, ptr %12, align 8, !tbaa !5
  %108 = getelementptr inbounds i8, ptr %107, i64 18
  %109 = call zeroext i16 @read_16u(ptr noundef %108)
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.table_OS_2, ptr %110, i32 0, i32 9
  store i16 %109, ptr %111, align 2, !tbaa !32
  %112 = load ptr, ptr %12, align 8, !tbaa !5
  %113 = getelementptr inbounds i8, ptr %112, i64 20
  %114 = call zeroext i16 @read_16u(ptr noundef %113)
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.table_OS_2, ptr %115, i32 0, i32 10
  store i16 %114, ptr %116, align 4, !tbaa !33
  %117 = load ptr, ptr %12, align 8, !tbaa !5
  %118 = getelementptr inbounds i8, ptr %117, i64 22
  %119 = call zeroext i16 @read_16u(ptr noundef %118)
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.table_OS_2, ptr %120, i32 0, i32 11
  store i16 %119, ptr %121, align 2, !tbaa !34
  %122 = load ptr, ptr %12, align 8, !tbaa !5
  %123 = getelementptr inbounds i8, ptr %122, i64 24
  %124 = call zeroext i16 @read_16u(ptr noundef %123)
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.table_OS_2, ptr %125, i32 0, i32 12
  store i16 %124, ptr %126, align 4, !tbaa !35
  %127 = load ptr, ptr %12, align 8, !tbaa !5
  %128 = getelementptr inbounds i8, ptr %127, i64 26
  %129 = call zeroext i16 @read_16u(ptr noundef %128)
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.table_OS_2, ptr %130, i32 0, i32 13
  store i16 %129, ptr %131, align 2, !tbaa !36
  %132 = load ptr, ptr %12, align 8, !tbaa !5
  %133 = getelementptr inbounds i8, ptr %132, i64 28
  %134 = call zeroext i16 @read_16u(ptr noundef %133)
  %135 = load ptr, ptr %5, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.table_OS_2, ptr %135, i32 0, i32 14
  store i16 %134, ptr %136, align 4, !tbaa !37
  %137 = load ptr, ptr %12, align 8, !tbaa !5
  %138 = getelementptr inbounds i8, ptr %137, i64 30
  %139 = call zeroext i16 @read_16u(ptr noundef %138)
  %140 = load ptr, ptr %5, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.table_OS_2, ptr %140, i32 0, i32 15
  store i16 %139, ptr %141, align 2, !tbaa !38
  %142 = load ptr, ptr %5, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.table_OS_2, ptr %142, i32 0, i32 16
  %144 = getelementptr inbounds [10 x i8], ptr %143, i64 0, i64 0
  %145 = load ptr, ptr %12, align 8, !tbaa !5
  %146 = getelementptr inbounds i8, ptr %145, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %144, ptr align 1 %146, i64 10, i1 false)
  %147 = load ptr, ptr %12, align 8, !tbaa !5
  %148 = getelementptr inbounds i8, ptr %147, i64 42
  %149 = call i32 @read_32u(ptr noundef %148)
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.table_OS_2, ptr %150, i32 0, i32 17
  store i32 %149, ptr %151, align 4, !tbaa !39
  %152 = load ptr, ptr %12, align 8, !tbaa !5
  %153 = getelementptr inbounds i8, ptr %152, i64 46
  %154 = call i32 @read_32u(ptr noundef %153)
  %155 = load ptr, ptr %5, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.table_OS_2, ptr %155, i32 0, i32 18
  store i32 %154, ptr %156, align 4, !tbaa !40
  %157 = load ptr, ptr %12, align 8, !tbaa !5
  %158 = getelementptr inbounds i8, ptr %157, i64 50
  %159 = call i32 @read_32u(ptr noundef %158)
  %160 = load ptr, ptr %5, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.table_OS_2, ptr %160, i32 0, i32 19
  store i32 %159, ptr %161, align 4, !tbaa !41
  %162 = load ptr, ptr %12, align 8, !tbaa !5
  %163 = getelementptr inbounds i8, ptr %162, i64 54
  %164 = call i32 @read_32u(ptr noundef %163)
  %165 = load ptr, ptr %5, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.table_OS_2, ptr %165, i32 0, i32 20
  store i32 %164, ptr %166, align 4, !tbaa !42
  %167 = load ptr, ptr %5, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.table_OS_2, ptr %167, i32 0, i32 21
  %169 = getelementptr inbounds [4 x i8], ptr %168, i64 0, i64 0
  %170 = load ptr, ptr %12, align 8, !tbaa !5
  %171 = getelementptr inbounds i8, ptr %170, i64 58
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %169, ptr align 1 %171, i64 4, i1 false)
  %172 = load ptr, ptr %12, align 8, !tbaa !5
  %173 = getelementptr inbounds i8, ptr %172, i64 62
  %174 = call zeroext i16 @read_16u(ptr noundef %173)
  %175 = load ptr, ptr %5, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.table_OS_2, ptr %175, i32 0, i32 22
  store i16 %174, ptr %176, align 4, !tbaa !43
  %177 = load ptr, ptr %12, align 8, !tbaa !5
  %178 = getelementptr inbounds i8, ptr %177, i64 64
  %179 = call zeroext i16 @read_16u(ptr noundef %178)
  %180 = load ptr, ptr %5, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.table_OS_2, ptr %180, i32 0, i32 23
  store i16 %179, ptr %181, align 2, !tbaa !44
  %182 = load ptr, ptr %12, align 8, !tbaa !5
  %183 = getelementptr inbounds i8, ptr %182, i64 66
  %184 = call zeroext i16 @read_16u(ptr noundef %183)
  %185 = load ptr, ptr %5, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.table_OS_2, ptr %185, i32 0, i32 24
  store i16 %184, ptr %186, align 4, !tbaa !45
  %187 = load i32, ptr %13, align 4, !tbaa !9
  %188 = icmp uge i32 %187, 78
  br i1 %188, label %189, label %215

189:                                              ; preds = %66
  %190 = load ptr, ptr %12, align 8, !tbaa !5
  %191 = getelementptr inbounds i8, ptr %190, i64 68
  %192 = call signext i16 @read_16s(ptr noundef %191)
  %193 = load ptr, ptr %5, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.table_OS_2, ptr %193, i32 0, i32 25
  store i16 %192, ptr %194, align 2, !tbaa !46
  %195 = load ptr, ptr %12, align 8, !tbaa !5
  %196 = getelementptr inbounds i8, ptr %195, i64 70
  %197 = call signext i16 @read_16s(ptr noundef %196)
  %198 = load ptr, ptr %5, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.table_OS_2, ptr %198, i32 0, i32 26
  store i16 %197, ptr %199, align 4, !tbaa !47
  %200 = load ptr, ptr %12, align 8, !tbaa !5
  %201 = getelementptr inbounds i8, ptr %200, i64 72
  %202 = call signext i16 @read_16s(ptr noundef %201)
  %203 = load ptr, ptr %5, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.table_OS_2, ptr %203, i32 0, i32 27
  store i16 %202, ptr %204, align 2, !tbaa !48
  %205 = load ptr, ptr %12, align 8, !tbaa !5
  %206 = getelementptr inbounds i8, ptr %205, i64 74
  %207 = call zeroext i16 @read_16u(ptr noundef %206)
  %208 = load ptr, ptr %5, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.table_OS_2, ptr %208, i32 0, i32 28
  store i16 %207, ptr %209, align 4, !tbaa !49
  %210 = load ptr, ptr %12, align 8, !tbaa !5
  %211 = getelementptr inbounds i8, ptr %210, i64 76
  %212 = call zeroext i16 @read_16u(ptr noundef %211)
  %213 = load ptr, ptr %5, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.table_OS_2, ptr %213, i32 0, i32 29
  store i16 %212, ptr %214, align 2, !tbaa !50
  br label %215

215:                                              ; preds = %189, %66
  %216 = load ptr, ptr %5, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.table_OS_2, ptr %216, i32 0, i32 0
  %218 = load i16, ptr %217, align 4, !tbaa !22
  %219 = zext i16 %218 to i32
  %220 = icmp sge i32 %219, 1
  br i1 %220, label %221, label %225

221:                                              ; preds = %215
  %222 = load i32, ptr %13, align 4, !tbaa !9
  %223 = icmp ult i32 %222, 86
  br i1 %223, label %224, label %225

224:                                              ; preds = %221
  br label %313

225:                                              ; preds = %221, %215
  %226 = load ptr, ptr %5, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.table_OS_2, ptr %226, i32 0, i32 0
  %228 = load i16, ptr %227, align 4, !tbaa !22
  %229 = zext i16 %228 to i32
  %230 = icmp sge i32 %229, 1
  br i1 %230, label %231, label %242

231:                                              ; preds = %225
  %232 = load ptr, ptr %12, align 8, !tbaa !5
  %233 = getelementptr inbounds i8, ptr %232, i64 78
  %234 = call i32 @read_32u(ptr noundef %233)
  %235 = load ptr, ptr %5, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.table_OS_2, ptr %235, i32 0, i32 30
  store i32 %234, ptr %236, align 4, !tbaa !51
  %237 = load ptr, ptr %12, align 8, !tbaa !5
  %238 = getelementptr inbounds i8, ptr %237, i64 82
  %239 = call i32 @read_32u(ptr noundef %238)
  %240 = load ptr, ptr %5, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.table_OS_2, ptr %240, i32 0, i32 31
  store i32 %239, ptr %241, align 4, !tbaa !52
  br label %242

242:                                              ; preds = %231, %225
  %243 = load ptr, ptr %5, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.table_OS_2, ptr %243, i32 0, i32 0
  %245 = load i16, ptr %244, align 4, !tbaa !22
  %246 = zext i16 %245 to i32
  %247 = icmp sge i32 %246, 2
  br i1 %247, label %248, label %252

248:                                              ; preds = %242
  %249 = load i32, ptr %13, align 4, !tbaa !9
  %250 = icmp ult i32 %249, 96
  br i1 %250, label %251, label %252

251:                                              ; preds = %248
  br label %313

252:                                              ; preds = %248, %242
  %253 = load ptr, ptr %5, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.table_OS_2, ptr %253, i32 0, i32 0
  %255 = load i16, ptr %254, align 4, !tbaa !22
  %256 = zext i16 %255 to i32
  %257 = icmp sge i32 %256, 2
  br i1 %257, label %258, label %284

258:                                              ; preds = %252
  %259 = load ptr, ptr %12, align 8, !tbaa !5
  %260 = getelementptr inbounds i8, ptr %259, i64 86
  %261 = call signext i16 @read_16s(ptr noundef %260)
  %262 = load ptr, ptr %5, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.table_OS_2, ptr %262, i32 0, i32 32
  store i16 %261, ptr %263, align 4, !tbaa !53
  %264 = load ptr, ptr %12, align 8, !tbaa !5
  %265 = getelementptr inbounds i8, ptr %264, i64 88
  %266 = call signext i16 @read_16s(ptr noundef %265)
  %267 = load ptr, ptr %5, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.table_OS_2, ptr %267, i32 0, i32 33
  store i16 %266, ptr %268, align 2, !tbaa !54
  %269 = load ptr, ptr %12, align 8, !tbaa !5
  %270 = getelementptr inbounds i8, ptr %269, i64 90
  %271 = call zeroext i16 @read_16u(ptr noundef %270)
  %272 = load ptr, ptr %5, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.table_OS_2, ptr %272, i32 0, i32 34
  store i16 %271, ptr %273, align 4, !tbaa !55
  %274 = load ptr, ptr %12, align 8, !tbaa !5
  %275 = getelementptr inbounds i8, ptr %274, i64 92
  %276 = call zeroext i16 @read_16u(ptr noundef %275)
  %277 = load ptr, ptr %5, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.table_OS_2, ptr %277, i32 0, i32 35
  store i16 %276, ptr %278, align 2, !tbaa !56
  %279 = load ptr, ptr %12, align 8, !tbaa !5
  %280 = getelementptr inbounds i8, ptr %279, i64 94
  %281 = call zeroext i16 @read_16u(ptr noundef %280)
  %282 = load ptr, ptr %5, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.table_OS_2, ptr %282, i32 0, i32 36
  store i16 %281, ptr %283, align 4, !tbaa !57
  br label %284

284:                                              ; preds = %258, %252
  %285 = load ptr, ptr %5, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.table_OS_2, ptr %285, i32 0, i32 0
  %287 = load i16, ptr %286, align 4, !tbaa !22
  %288 = zext i16 %287 to i32
  %289 = icmp sge i32 %288, 5
  br i1 %289, label %290, label %294

290:                                              ; preds = %284
  %291 = load i32, ptr %13, align 4, !tbaa !9
  %292 = icmp ult i32 %291, 100
  br i1 %292, label %293, label %294

293:                                              ; preds = %290
  br label %313

294:                                              ; preds = %290, %284
  %295 = load ptr, ptr %5, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.table_OS_2, ptr %295, i32 0, i32 0
  %297 = load i16, ptr %296, align 4, !tbaa !22
  %298 = zext i16 %297 to i32
  %299 = icmp sge i32 %298, 5
  br i1 %299, label %300, label %311

300:                                              ; preds = %294
  %301 = load ptr, ptr %12, align 8, !tbaa !5
  %302 = getelementptr inbounds i8, ptr %301, i64 96
  %303 = call zeroext i16 @read_16u(ptr noundef %302)
  %304 = load ptr, ptr %5, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.table_OS_2, ptr %304, i32 0, i32 37
  store i16 %303, ptr %305, align 2, !tbaa !58
  %306 = load ptr, ptr %12, align 8, !tbaa !5
  %307 = getelementptr inbounds i8, ptr %306, i64 98
  %308 = call zeroext i16 @read_16u(ptr noundef %307)
  %309 = load ptr, ptr %5, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.table_OS_2, ptr %309, i32 0, i32 37
  store i16 %308, ptr %310, align 2, !tbaa !58
  br label %311

311:                                              ; preds = %300, %294
  %312 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %312, ptr %3, align 8
  store i32 1, ptr %9, align 4
  br label %329

313:                                              ; preds = %293, %251, %224, %65, %55
  %314 = load ptr, ptr %4, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.otfcc_Options, ptr %314, i32 0, i32 24
  %316 = load ptr, ptr %315, align 8, !tbaa !59
  %317 = getelementptr inbounds %struct.otfcc_ILogger, ptr %316, i32 0, i32 6
  %318 = load ptr, ptr %317, align 8, !tbaa !62
  %319 = load ptr, ptr %4, align 8, !tbaa !5
  %320 = getelementptr inbounds %struct.otfcc_Options, ptr %319, i32 0, i32 24
  %321 = load ptr, ptr %320, align 8, !tbaa !59
  %322 = call ptr @sdsempty()
  %323 = call ptr (ptr, ptr, ...) @sdscatprintf(ptr noundef %322, ptr noundef @.str)
  call void %318(ptr noundef %321, i8 noundef zeroext 1, i32 noundef 1, ptr noundef %323)
  %324 = load ptr, ptr %5, align 8, !tbaa !5
  %325 = icmp ne ptr %324, null
  br i1 %325, label %326, label %328

326:                                              ; preds = %313
  %327 = load ptr, ptr %5, align 8, !tbaa !5
  call void @free(ptr noundef %327) #6
  store ptr null, ptr %5, align 8, !tbaa !5
  br label %328

328:                                              ; preds = %326, %313
  store i32 0, ptr %9, align 4
  br label %329

329:                                              ; preds = %328, %311
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  %330 = load i32, ptr %9, align 4
  switch i32 %330, label %333 [
    i32 0, label %331
  ]

331:                                              ; preds = %329
  br label %332

332:                                              ; preds = %331
  store i32 0, ptr %11, align 4, !tbaa !9
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %44, !llvm.loop !64

333:                                              ; preds = %329, %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  %334 = load i32, ptr %9, align 4
  switch i32 %334, label %342 [
    i32 8, label %335
  ]

335:                                              ; preds = %333
  br label %336

336:                                              ; preds = %335, %39
  br label %337

337:                                              ; preds = %336
  %338 = load i32, ptr %6, align 4, !tbaa !9
  %339 = icmp ne i32 %338, 0
  %340 = xor i1 %339, true
  %341 = zext i1 %340 to i32
  store i32 %341, ptr %6, align 4, !tbaa !9
  br label %35, !llvm.loop !66

342:                                              ; preds = %333, %38
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #6
  %343 = load i32, ptr %9, align 4
  switch i32 %343, label %352 [
    i32 5, label %344
  ]

344:                                              ; preds = %342
  br label %345

345:                                              ; preds = %344
  %346 = load i32, ptr %6, align 4, !tbaa !9
  %347 = icmp ne i32 %346, 0
  %348 = xor i1 %347, true
  %349 = zext i1 %348 to i32
  store i32 %349, ptr %6, align 4, !tbaa !9
  %350 = load i32, ptr %7, align 4, !tbaa !9
  %351 = add nsw i32 %350, 1
  store i32 %351, ptr %7, align 4, !tbaa !9
  br label %14, !llvm.loop !67

352:                                              ; preds = %342, %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  %353 = load i32, ptr %9, align 4
  switch i32 %353, label %355 [
    i32 2, label %354
  ]

354:                                              ; preds = %352
  store ptr null, ptr %3, align 8
  store i32 1, ptr %9, align 4
  br label %355

355:                                              ; preds = %354, %352
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  %356 = load ptr, ptr %3, align 8
  ret ptr %356
}

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @read_32u(ptr noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden signext i16 @read_16s(ptr noundef) #3

declare ptr @sdscatprintf(ptr noundef, ptr noundef, ...) #4

declare ptr @sdsempty() #4

; Function Attrs: nounwind
declare void @free(ptr noundef) #5

; 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { "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 #5 = { nounwind "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 #6 = { 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, !13, i64 4}
!12 = !{!"", !10, i64 0, !13, i64 4, !13, i64 6, !13, i64 8, !13, i64 10, !6, i64 16}
!13 = !{!"short", !7, i64 0}
!14 = !{!12, !6, i64 16}
!15 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 12, i64 4, !9, i64 16, i64 8, !5}
!16 = !{!17, !10, i64 0}
!17 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !6, i64 16}
!18 = !{!17, !6, i64 16}
!19 = !{!17, !10, i64 12}
!20 = !{!21, !6, i64 48}
!21 = !{!"__caryll_elementinterface_table_OS_2", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!22 = !{!23, !13, i64 0}
!23 = !{!"", !13, i64 0, !13, i64 2, !13, i64 4, !13, i64 6, !13, i64 8, !13, i64 10, !13, i64 12, !13, i64 14, !13, i64 16, !13, i64 18, !13, i64 20, !13, i64 22, !13, i64 24, !13, i64 26, !13, i64 28, !13, i64 30, !7, i64 32, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !7, i64 60, !13, i64 64, !13, i64 66, !13, i64 68, !13, i64 70, !13, i64 72, !13, i64 74, !13, i64 76, !13, i64 78, !10, i64 80, !10, i64 84, !13, i64 88, !13, i64 90, !13, i64 92, !13, i64 94, !13, i64 96, !13, i64 98, !13, i64 100}
!24 = !{!23, !13, i64 2}
!25 = !{!23, !13, i64 4}
!26 = !{!23, !13, i64 6}
!27 = !{!23, !13, i64 8}
!28 = !{!23, !13, i64 10}
!29 = !{!23, !13, i64 12}
!30 = !{!23, !13, i64 14}
!31 = !{!23, !13, i64 16}
!32 = !{!23, !13, i64 18}
!33 = !{!23, !13, i64 20}
!34 = !{!23, !13, i64 22}
!35 = !{!23, !13, i64 24}
!36 = !{!23, !13, i64 26}
!37 = !{!23, !13, i64 28}
!38 = !{!23, !13, i64 30}
!39 = !{!23, !10, i64 44}
!40 = !{!23, !10, i64 48}
!41 = !{!23, !10, i64 52}
!42 = !{!23, !10, i64 56}
!43 = !{!23, !13, i64 64}
!44 = !{!23, !13, i64 66}
!45 = !{!23, !13, i64 68}
!46 = !{!23, !13, i64 70}
!47 = !{!23, !13, i64 72}
!48 = !{!23, !13, i64 74}
!49 = !{!23, !13, i64 76}
!50 = !{!23, !13, i64 78}
!51 = !{!23, !10, i64 80}
!52 = !{!23, !10, i64 84}
!53 = !{!23, !13, i64 88}
!54 = !{!23, !13, i64 90}
!55 = !{!23, !13, i64 92}
!56 = !{!23, !13, i64 94}
!57 = !{!23, !13, i64 96}
!58 = !{!23, !13, i64 98}
!59 = !{!60, !6, i64 32}
!60 = !{!"", !61, i64 0, !61, i64 1, !61, i64 2, !61, i64 3, !61, i64 4, !61, i64 5, !61, i64 6, !61, i64 7, !61, i64 8, !61, i64 9, !61, i64 10, !61, i64 11, !61, i64 12, !61, i64 13, !61, i64 14, !61, i64 15, !61, i64 16, !61, i64 17, !61, i64 18, !61, i64 19, !61, i64 20, !61, i64 21, !61, i64 22, !6, i64 24, !6, i64 32}
!61 = !{!"_Bool", !7, i64 0}
!62 = !{!63, !6, i64 48}
!63 = !{!"otfcc_ILogger", !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}
!64 = distinct !{!64, !65}
!65 = !{!"llvm.loop.mustprogress"}
!66 = distinct !{!66, !65}
!67 = distinct !{!67, !65}


; 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_elementinterface_table_OS_2 = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.otfcc_Packet = type { i32, i16, i16, i16, i16, ptr }
%struct.otfcc_PacketPiece = type { i32, i32, i32, i32, ptr }

@table_iOS_2 = external dso_local local_unnamed_addr constant %struct.__caryll_elementinterface_table_OS_2, align 8
@.str = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @otfcc_readOS_2(ptr nocapture noundef readonly byval(%struct.otfcc_Packet) align 8 %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = getelementptr inbounds i8, ptr %0, i64 4
  %4 = load i16, ptr %3, align 4
  %.not = icmp eq i16 %4, 0
  br i1 %.not, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %5 = getelementptr inbounds i8, ptr %0, i64 16
  %6 = load ptr, ptr getelementptr inbounds (i8, ptr @table_iOS_2, i64 48), align 8
  %7 = getelementptr inbounds i8, ptr %1, i64 32
  %8 = load ptr, ptr %5, align 8, !tbaa !5
  %9 = zext i16 %4 to i64
  br label %10

10:                                               ; preds = %.lr.ph, %.thread153
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %.thread153 ]
  %11 = getelementptr inbounds %struct.otfcc_PacketPiece, ptr %8, i64 %indvars.iv
  %.sroa.0.0.copyload = load i32, ptr %11, align 8, !tbaa !12
  %.not351 = icmp eq i32 %.sroa.0.0.copyload, 1330851634
  br i1 %.not351, label %.split.us, label %.thread153

.split.us:                                        ; preds = %10
  %.sroa.455.0..sroa_idx.le = getelementptr inbounds i8, ptr %11, i64 12
  %.sroa.455.0.copyload.le = load i32, ptr %.sroa.455.0..sroa_idx.le, align 4, !tbaa !12
  %.sroa.455.0.copyload.fr.le = freeze i32 %.sroa.455.0.copyload.le
  %.sroa.5.0..sroa_idx.le = getelementptr inbounds i8, ptr %11, i64 16
  %.sroa.5.0.copyload.le = load ptr, ptr %.sroa.5.0..sroa_idx.le, align 8, !tbaa !13
  %12 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 2
  %13 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 4
  %14 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 6
  %15 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 8
  %16 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 10
  %17 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 12
  %18 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 14
  %19 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 16
  %20 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 18
  %21 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 20
  %22 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 22
  %23 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 24
  %24 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 26
  %25 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 28
  %26 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 30
  %27 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 32
  %28 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 42
  %29 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 46
  %30 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 50
  %31 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 54
  %32 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 58
  %33 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 62
  %34 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 64
  %35 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 66
  %36 = icmp ugt i32 %.sroa.455.0.copyload.fr.le, 77
  %37 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 68
  %38 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 70
  %39 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 72
  %40 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 74
  %41 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 76
  %42 = icmp ult i32 %.sroa.455.0.copyload.fr.le, 86
  %43 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 78
  %44 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 82
  %45 = icmp ult i32 %.sroa.455.0.copyload.fr.le, 96
  %46 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 86
  %47 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 88
  %48 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 90
  %49 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 92
  %50 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 94
  %51 = icmp ult i32 %.sroa.455.0.copyload.fr.le, 100
  %52 = icmp ult i32 %.sroa.455.0.copyload.fr.le, 2
  br i1 %52, label %.preheader.us.us, label %.split.us.split

.preheader.us.us:                                 ; preds = %.split.us
  %53 = load ptr, ptr %7, align 8, !tbaa !14
  %54 = getelementptr inbounds i8, ptr %53, i64 48
  %55 = load ptr, ptr %54, align 8, !tbaa !17
  %56 = tail call ptr @sdsempty() #5
  %57 = tail call ptr (ptr, ptr, ...) @sdscatprintf(ptr noundef %56, ptr noundef nonnull @.str) #5
  tail call void %55(ptr noundef %53, i8 noundef zeroext 1, i32 noundef 1, ptr noundef %57) #5
  br label %.critedge

.split.us.split:                                  ; preds = %.split.us
  %58 = icmp ult i32 %.sroa.455.0.copyload.fr.le, 68
  %59 = tail call ptr (...) %6() #5
  %60 = tail call zeroext i16 @read_16u(ptr noundef %.sroa.5.0.copyload.le)
  store i16 %60, ptr %59, align 4, !tbaa !19
  br i1 %58, label %.preheader.us.us210, label %.preheader.us

.preheader.us.us210:                              ; preds = %.split.us.split
  %61 = load ptr, ptr %7, align 8, !tbaa !14
  %62 = getelementptr inbounds i8, ptr %61, i64 48
  %63 = load ptr, ptr %62, align 8, !tbaa !17
  %64 = tail call ptr @sdsempty() #5
  %65 = tail call ptr (ptr, ptr, ...) @sdscatprintf(ptr noundef %64, ptr noundef nonnull @.str) #5
  tail call void %63(ptr noundef %61, i8 noundef zeroext 1, i32 noundef 1, ptr noundef %65) #5
  tail call void @free(ptr noundef nonnull %59) #5
  br label %.critedge

.preheader.us:                                    ; preds = %.split.us.split
  %66 = tail call zeroext i16 @read_16u(ptr noundef nonnull %12)
  %67 = getelementptr inbounds i8, ptr %59, i64 2
  store i16 %66, ptr %67, align 2, !tbaa !21
  %68 = tail call zeroext i16 @read_16u(ptr noundef nonnull %13)
  %69 = getelementptr inbounds i8, ptr %59, i64 4
  store i16 %68, ptr %69, align 4, !tbaa !22
  %70 = tail call zeroext i16 @read_16u(ptr noundef nonnull %14)
  %71 = getelementptr inbounds i8, ptr %59, i64 6
  store i16 %70, ptr %71, align 2, !tbaa !23
  %72 = tail call zeroext i16 @read_16u(ptr noundef nonnull %15)
  %73 = getelementptr inbounds i8, ptr %59, i64 8
  store i16 %72, ptr %73, align 4, !tbaa !24
  %74 = tail call zeroext i16 @read_16u(ptr noundef nonnull %16)
  %75 = getelementptr inbounds i8, ptr %59, i64 10
  store i16 %74, ptr %75, align 2, !tbaa !25
  %76 = tail call zeroext i16 @read_16u(ptr noundef nonnull %17)
  %77 = getelementptr inbounds i8, ptr %59, i64 12
  store i16 %76, ptr %77, align 4, !tbaa !26
  %78 = tail call zeroext i16 @read_16u(ptr noundef nonnull %18)
  %79 = getelementptr inbounds i8, ptr %59, i64 14
  store i16 %78, ptr %79, align 2, !tbaa !27
  %80 = tail call zeroext i16 @read_16u(ptr noundef nonnull %19)
  %81 = getelementptr inbounds i8, ptr %59, i64 16
  store i16 %80, ptr %81, align 4, !tbaa !28
  %82 = tail call zeroext i16 @read_16u(ptr noundef nonnull %20)
  %83 = getelementptr inbounds i8, ptr %59, i64 18
  store i16 %82, ptr %83, align 2, !tbaa !29
  %84 = tail call zeroext i16 @read_16u(ptr noundef nonnull %21)
  %85 = getelementptr inbounds i8, ptr %59, i64 20
  store i16 %84, ptr %85, align 4, !tbaa !30
  %86 = tail call zeroext i16 @read_16u(ptr noundef nonnull %22)
  %87 = getelementptr inbounds i8, ptr %59, i64 22
  store i16 %86, ptr %87, align 2, !tbaa !31
  %88 = tail call zeroext i16 @read_16u(ptr noundef nonnull %23)
  %89 = getelementptr inbounds i8, ptr %59, i64 24
  store i16 %88, ptr %89, align 4, !tbaa !32
  %90 = tail call zeroext i16 @read_16u(ptr noundef nonnull %24)
  %91 = getelementptr inbounds i8, ptr %59, i64 26
  store i16 %90, ptr %91, align 2, !tbaa !33
  %92 = tail call zeroext i16 @read_16u(ptr noundef nonnull %25)
  %93 = getelementptr inbounds i8, ptr %59, i64 28
  store i16 %92, ptr %93, align 4, !tbaa !34
  %94 = tail call zeroext i16 @read_16u(ptr noundef nonnull %26)
  %95 = getelementptr inbounds i8, ptr %59, i64 30
  store i16 %94, ptr %95, align 2, !tbaa !35
  %96 = getelementptr inbounds i8, ptr %59, i64 32
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(10) %96, ptr noundef nonnull align 1 dereferenceable(10) %27, i64 10, i1 false)
  %97 = tail call i32 @read_32u(ptr noundef nonnull %28)
  %98 = getelementptr inbounds i8, ptr %59, i64 44
  store i32 %97, ptr %98, align 4, !tbaa !36
  %99 = tail call i32 @read_32u(ptr noundef nonnull %29)
  %100 = getelementptr inbounds i8, ptr %59, i64 48
  store i32 %99, ptr %100, align 4, !tbaa !37
  %101 = tail call i32 @read_32u(ptr noundef nonnull %30)
  %102 = getelementptr inbounds i8, ptr %59, i64 52
  store i32 %101, ptr %102, align 4, !tbaa !38
  %103 = tail call i32 @read_32u(ptr noundef nonnull %31)
  %104 = getelementptr inbounds i8, ptr %59, i64 56
  store i32 %103, ptr %104, align 4, !tbaa !39
  %105 = getelementptr inbounds i8, ptr %59, i64 60
  %106 = load i32, ptr %32, align 1
  store i32 %106, ptr %105, align 4
  %107 = tail call zeroext i16 @read_16u(ptr noundef nonnull %33)
  %108 = getelementptr inbounds i8, ptr %59, i64 64
  store i16 %107, ptr %108, align 4, !tbaa !40
  %109 = tail call zeroext i16 @read_16u(ptr noundef nonnull %34)
  %110 = getelementptr inbounds i8, ptr %59, i64 66
  store i16 %109, ptr %110, align 2, !tbaa !41
  %111 = tail call zeroext i16 @read_16u(ptr noundef nonnull %35)
  %112 = getelementptr inbounds i8, ptr %59, i64 68
  store i16 %111, ptr %112, align 4, !tbaa !42
  br i1 %36, label %113, label %124

113:                                              ; preds = %.preheader.us
  %114 = tail call signext i16 @read_16s(ptr noundef nonnull %37)
  %115 = getelementptr inbounds i8, ptr %59, i64 70
  store i16 %114, ptr %115, align 2, !tbaa !43
  %116 = tail call signext i16 @read_16s(ptr noundef nonnull %38)
  %117 = getelementptr inbounds i8, ptr %59, i64 72
  store i16 %116, ptr %117, align 4, !tbaa !44
  %118 = tail call signext i16 @read_16s(ptr noundef nonnull %39)
  %119 = getelementptr inbounds i8, ptr %59, i64 74
  store i16 %118, ptr %119, align 2, !tbaa !45
  %120 = tail call zeroext i16 @read_16u(ptr noundef nonnull %40)
  %121 = getelementptr inbounds i8, ptr %59, i64 76
  store i16 %120, ptr %121, align 4, !tbaa !46
  %122 = tail call zeroext i16 @read_16u(ptr noundef nonnull %41)
  %123 = getelementptr inbounds i8, ptr %59, i64 78
  store i16 %122, ptr %123, align 2, !tbaa !47
  br label %124

124:                                              ; preds = %113, %.preheader.us
  %125 = load i16, ptr %59, align 4, !tbaa !19
  %126 = icmp ne i16 %125, 0
  %or.cond6.us = and i1 %126, %42
  br i1 %or.cond6.us, label %.thread150.loopexit.split.split.us195, label %127

127:                                              ; preds = %124
  br i1 %126, label %128, label %.critedge

128:                                              ; preds = %127
  %129 = tail call i32 @read_32u(ptr noundef nonnull %43)
  %130 = getelementptr inbounds i8, ptr %59, i64 80
  store i32 %129, ptr %130, align 4, !tbaa !48
  %131 = tail call i32 @read_32u(ptr noundef nonnull %44)
  %132 = getelementptr inbounds i8, ptr %59, i64 84
  store i32 %131, ptr %132, align 4, !tbaa !49
  %.pr.us = load i16, ptr %59, align 4, !tbaa !19
  %133 = icmp ugt i16 %.pr.us, 1
  %or.cond8.us = and i1 %133, %45
  br i1 %or.cond8.us, label %.thread150.loopexit.split.split.us195, label %134

134:                                              ; preds = %128
  br i1 %133, label %.thread164.us, label %.critedge

.thread164.us:                                    ; preds = %134
  %135 = tail call signext i16 @read_16s(ptr noundef nonnull %46)
  %136 = getelementptr inbounds i8, ptr %59, i64 88
  store i16 %135, ptr %136, align 4, !tbaa !50
  %137 = tail call signext i16 @read_16s(ptr noundef nonnull %47)
  %138 = getelementptr inbounds i8, ptr %59, i64 90
  store i16 %137, ptr %138, align 2, !tbaa !51
  %139 = tail call zeroext i16 @read_16u(ptr noundef nonnull %48)
  %140 = getelementptr inbounds i8, ptr %59, i64 92
  store i16 %139, ptr %140, align 4, !tbaa !52
  %141 = tail call zeroext i16 @read_16u(ptr noundef nonnull %49)
  %142 = getelementptr inbounds i8, ptr %59, i64 94
  store i16 %141, ptr %142, align 2, !tbaa !53
  %143 = tail call zeroext i16 @read_16u(ptr noundef nonnull %50)
  %144 = getelementptr inbounds i8, ptr %59, i64 96
  store i16 %143, ptr %144, align 4, !tbaa !54
  %.pr165.us.pre = load i16, ptr %59, align 4, !tbaa !19
  %145 = icmp ugt i16 %.pr165.us.pre, 4
  %or.cond10.us = and i1 %145, %51
  br i1 %or.cond10.us, label %.thread150.loopexit.split.split.us195, label %.split202.us

.thread150.loopexit.split.split.us195:            ; preds = %.thread164.us, %128, %124
  %146 = load ptr, ptr %7, align 8, !tbaa !14
  %147 = getelementptr inbounds i8, ptr %146, i64 48
  %148 = load ptr, ptr %147, align 8, !tbaa !17
  %149 = tail call ptr @sdsempty() #5
  %150 = tail call ptr (ptr, ptr, ...) @sdscatprintf(ptr noundef %149, ptr noundef nonnull @.str) #5
  tail call void %148(ptr noundef %146, i8 noundef zeroext 1, i32 noundef 1, ptr noundef %150) #5
  tail call void @free(ptr noundef nonnull %59) #5
  br label %.critedge

.split202.us:                                     ; preds = %.thread164.us
  br i1 %145, label %151, label %.critedge

151:                                              ; preds = %.split202.us
  %152 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 96
  %153 = tail call zeroext i16 @read_16u(ptr noundef nonnull %152)
  %154 = getelementptr inbounds i8, ptr %59, i64 98
  store i16 %153, ptr %154, align 2, !tbaa !55
  %155 = getelementptr inbounds i8, ptr %.sroa.5.0.copyload.le, i64 98
  %156 = tail call zeroext i16 @read_16u(ptr noundef nonnull %155)
  store i16 %156, ptr %154, align 2, !tbaa !55
  br label %.critedge

.thread153:                                       ; preds = %10
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %157 = icmp ult i64 %indvars.iv.next, %9
  br i1 %157, label %10, label %.critedge, !llvm.loop !56

.critedge:                                        ; preds = %.thread153, %.preheader.us.us210, %.thread150.loopexit.split.split.us195, %.preheader.us.us, %134, %127, %.split202.us, %151, %2
  %158 = phi ptr [ null, %2 ], [ %59, %127 ], [ %59, %.split202.us ], [ %59, %151 ], [ %59, %134 ], [ null, %.preheader.us.us ], [ null, %.thread150.loopexit.split.split.us195 ], [ null, %.preheader.us.us210 ], [ null, %.thread153 ]
  ret ptr %158
}

; 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) #1

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @read_32u(ptr noundef) local_unnamed_addr #2

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

declare ptr @sdscatprintf(ptr noundef, ptr noundef, ...) local_unnamed_addr #3

declare ptr @sdsempty() local_unnamed_addr #3

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #4

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 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 nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 #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, !11, i64 16}
!6 = !{!"", !7, i64 0, !10, i64 4, !10, i64 6, !10, i64 8, !10, i64 10, !11, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"short", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!15, !11, i64 32}
!15 = !{!"", !16, i64 0, !16, i64 1, !16, i64 2, !16, i64 3, !16, i64 4, !16, i64 5, !16, i64 6, !16, i64 7, !16, i64 8, !16, i64 9, !16, i64 10, !16, i64 11, !16, i64 12, !16, i64 13, !16, i64 14, !16, i64 15, !16, i64 16, !16, i64 17, !16, i64 18, !16, i64 19, !16, i64 20, !16, i64 21, !16, i64 22, !11, i64 24, !11, i64 32}
!16 = !{!"_Bool", !8, i64 0}
!17 = !{!18, !11, i64 48}
!18 = !{!"otfcc_ILogger", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88}
!19 = !{!20, !10, i64 0}
!20 = !{!"", !10, i64 0, !10, i64 2, !10, i64 4, !10, i64 6, !10, i64 8, !10, i64 10, !10, i64 12, !10, i64 14, !10, i64 16, !10, i64 18, !10, i64 20, !10, i64 22, !10, i64 24, !10, i64 26, !10, i64 28, !10, i64 30, !8, i64 32, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !8, i64 60, !10, i64 64, !10, i64 66, !10, i64 68, !10, i64 70, !10, i64 72, !10, i64 74, !10, i64 76, !10, i64 78, !7, i64 80, !7, i64 84, !10, i64 88, !10, i64 90, !10, i64 92, !10, i64 94, !10, i64 96, !10, i64 98, !10, i64 100}
!21 = !{!20, !10, i64 2}
!22 = !{!20, !10, i64 4}
!23 = !{!20, !10, i64 6}
!24 = !{!20, !10, i64 8}
!25 = !{!20, !10, i64 10}
!26 = !{!20, !10, i64 12}
!27 = !{!20, !10, i64 14}
!28 = !{!20, !10, i64 16}
!29 = !{!20, !10, i64 18}
!30 = !{!20, !10, i64 20}
!31 = !{!20, !10, i64 22}
!32 = !{!20, !10, i64 24}
!33 = !{!20, !10, i64 26}
!34 = !{!20, !10, i64 28}
!35 = !{!20, !10, i64 30}
!36 = !{!20, !7, i64 44}
!37 = !{!20, !7, i64 48}
!38 = !{!20, !7, i64 52}
!39 = !{!20, !7, i64 56}
!40 = !{!20, !10, i64 64}
!41 = !{!20, !10, i64 66}
!42 = !{!20, !10, i64 68}
!43 = !{!20, !10, i64 70}
!44 = !{!20, !10, i64 72}
!45 = !{!20, !10, i64 74}
!46 = !{!20, !10, i64 76}
!47 = !{!20, !10, i64 78}
!48 = !{!20, !7, i64 80}
!49 = !{!20, !7, i64 84}
!50 = !{!20, !10, i64 88}
!51 = !{!20, !10, i64 90}
!52 = !{!20, !10, i64 92}
!53 = !{!20, !10, i64 94}
!54 = !{!20, !10, i64 96}
!55 = !{!20, !10, i64 98}
!56 = distinct !{!56, !57}
!57 = !{!"llvm.loop.mustprogress"}


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